Home | History | Annotate | Line # | Download | only in gdb
configure revision 1.1
      1 #! /bin/sh
      2 # Guess values for system-dependent variables and create Makefiles.
      3 # Generated by GNU Autoconf 2.64.
      4 #
      5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
      6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
      7 # Foundation, Inc.
      8 #
      9 # This configure script is free software; the Free Software Foundation
     10 # gives unlimited permission to copy, distribute and modify it.
     11 ## -------------------- ##
     12 ## M4sh Initialization. ##
     13 ## -------------------- ##
     14 
     15 # Be more Bourne compatible
     16 DUALCASE=1; export DUALCASE # for MKS sh
     17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
     18   emulate sh
     19   NULLCMD=:
     20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
     21   # is contrary to our usage.  Disable this feature.
     22   alias -g '${1+"$@"}'='"$@"'
     23   setopt NO_GLOB_SUBST
     24 else
     25   case `(set -o) 2>/dev/null` in #(
     26   *posix*) :
     27     set -o posix ;; #(
     28   *) :
     29      ;;
     30 esac
     31 fi
     32 
     33 
     34 as_nl='
     35 '
     36 export as_nl
     37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
     38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
     39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
     40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
     41 # Prefer a ksh shell builtin over an external printf program on Solaris,
     42 # but without wasting forks for bash or zsh.
     43 if test -z "$BASH_VERSION$ZSH_VERSION" \
     44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
     45   as_echo='print -r --'
     46   as_echo_n='print -rn --'
     47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
     48   as_echo='printf %s\n'
     49   as_echo_n='printf %s'
     50 else
     51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
     52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
     53     as_echo_n='/usr/ucb/echo -n'
     54   else
     55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
     56     as_echo_n_body='eval
     57       arg=$1;
     58       case $arg in #(
     59       *"$as_nl"*)
     60 	expr "X$arg" : "X\\(.*\\)$as_nl";
     61 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
     62       esac;
     63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
     64     '
     65     export as_echo_n_body
     66     as_echo_n='sh -c $as_echo_n_body as_echo'
     67   fi
     68   export as_echo_body
     69   as_echo='sh -c $as_echo_body as_echo'
     70 fi
     71 
     72 # The user is always right.
     73 if test "${PATH_SEPARATOR+set}" != set; then
     74   PATH_SEPARATOR=:
     75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
     76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
     77       PATH_SEPARATOR=';'
     78   }
     79 fi
     80 
     81 
     82 # IFS
     83 # We need space, tab and new line, in precisely that order.  Quoting is
     84 # there to prevent editors from complaining about space-tab.
     85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
     86 # splitting by setting IFS to empty value.)
     87 IFS=" ""	$as_nl"
     88 
     89 # Find who we are.  Look in the path if we contain no directory separator.
     90 case $0 in #((
     91   *[\\/]* ) as_myself=$0 ;;
     92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     93 for as_dir in $PATH
     94 do
     95   IFS=$as_save_IFS
     96   test -z "$as_dir" && as_dir=.
     97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
     98   done
     99 IFS=$as_save_IFS
    100 
    101      ;;
    102 esac
    103 # We did not find ourselves, most probably we were run as `sh COMMAND'
    104 # in which case we are not to be found in the path.
    105 if test "x$as_myself" = x; then
    106   as_myself=$0
    107 fi
    108 if test ! -f "$as_myself"; then
    109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
    110   exit 1
    111 fi
    112 
    113 # Unset variables that we do not need and which cause bugs (e.g. in
    114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
    115 # suppresses any "Segmentation fault" message there.  '((' could
    116 # trigger a bug in pdksh 5.2.14.
    117 for as_var in BASH_ENV ENV MAIL MAILPATH
    118 do eval test x\${$as_var+set} = xset \
    119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
    120 done
    121 PS1='$ '
    122 PS2='> '
    123 PS4='+ '
    124 
    125 # NLS nuisances.
    126 LC_ALL=C
    127 export LC_ALL
    128 LANGUAGE=C
    129 export LANGUAGE
    130 
    131 # CDPATH.
    132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    133 
    134 if test "x$CONFIG_SHELL" = x; then
    135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
    136   emulate sh
    137   NULLCMD=:
    138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
    139   # is contrary to our usage.  Disable this feature.
    140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
    141   setopt NO_GLOB_SUBST
    142 else
    143   case \`(set -o) 2>/dev/null\` in #(
    144   *posix*) :
    145     set -o posix ;; #(
    146   *) :
    147      ;;
    148 esac
    149 fi
    150 "
    151   as_required="as_fn_return () { (exit \$1); }
    152 as_fn_success () { as_fn_return 0; }
    153 as_fn_failure () { as_fn_return 1; }
    154 as_fn_ret_success () { return 0; }
    155 as_fn_ret_failure () { return 1; }
    156 
    157 exitcode=0
    158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
    159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
    160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
    161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
    162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
    163 
    164 else
    165   exitcode=1; echo positional parameters were not saved.
    166 fi
    167 test x\$exitcode = x0 || exit 1"
    168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
    169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
    170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
    171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
    172 test \$(( 1 + 1 )) = 2 || exit 1"
    173   if (eval "$as_required") 2>/dev/null; then :
    174   as_have_required=yes
    175 else
    176   as_have_required=no
    177 fi
    178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
    179 
    180 else
    181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    182 as_found=false
    183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
    184 do
    185   IFS=$as_save_IFS
    186   test -z "$as_dir" && as_dir=.
    187   as_found=:
    188   case $as_dir in #(
    189 	 /*)
    190 	   for as_base in sh bash ksh sh5; do
    191 	     # Try only shells that exist, to save several forks.
    192 	     as_shell=$as_dir/$as_base
    193 	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
    194 		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
    195   CONFIG_SHELL=$as_shell as_have_required=yes
    196 		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
    197   break 2
    198 fi
    199 fi
    200 	   done;;
    201        esac
    202   as_found=false
    203 done
    204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
    205 	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
    206   CONFIG_SHELL=$SHELL as_have_required=yes
    207 fi; }
    208 IFS=$as_save_IFS
    209 
    210 
    211       if test "x$CONFIG_SHELL" != x; then :
    212   # We cannot yet assume a decent shell, so we have to provide a
    213 	# neutralization value for shells without unset; and this also
    214 	# works around shells that cannot unset nonexistent variables.
    215 	BASH_ENV=/dev/null
    216 	ENV=/dev/null
    217 	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
    218 	export CONFIG_SHELL
    219 	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
    220 fi
    221 
    222     if test x$as_have_required = xno; then :
    223   $as_echo "$0: This script requires a shell more modern than all"
    224   $as_echo "$0: the shells that I found on your system."
    225   if test x${ZSH_VERSION+set} = xset ; then
    226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
    227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
    228   else
    229     $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
    230 $0: including any error possibly output before this
    231 $0: message. Then install a modern shell, or manually run
    232 $0: the script under such a shell if you do have one."
    233   fi
    234   exit 1
    235 fi
    236 fi
    237 fi
    238 SHELL=${CONFIG_SHELL-/bin/sh}
    239 export SHELL
    240 # Unset more variables known to interfere with behavior of common tools.
    241 CLICOLOR_FORCE= GREP_OPTIONS=
    242 unset CLICOLOR_FORCE GREP_OPTIONS
    243 
    244 ## --------------------- ##
    245 ## M4sh Shell Functions. ##
    246 ## --------------------- ##
    247 # as_fn_unset VAR
    248 # ---------------
    249 # Portably unset VAR.
    250 as_fn_unset ()
    251 {
    252   { eval $1=; unset $1;}
    253 }
    254 as_unset=as_fn_unset
    255 
    256 # as_fn_set_status STATUS
    257 # -----------------------
    258 # Set $? to STATUS, without forking.
    259 as_fn_set_status ()
    260 {
    261   return $1
    262 } # as_fn_set_status
    263 
    264 # as_fn_exit STATUS
    265 # -----------------
    266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
    267 as_fn_exit ()
    268 {
    269   set +e
    270   as_fn_set_status $1
    271   exit $1
    272 } # as_fn_exit
    273 
    274 # as_fn_mkdir_p
    275 # -------------
    276 # Create "$as_dir" as a directory, including parents if necessary.
    277 as_fn_mkdir_p ()
    278 {
    279 
    280   case $as_dir in #(
    281   -*) as_dir=./$as_dir;;
    282   esac
    283   test -d "$as_dir" || eval $as_mkdir_p || {
    284     as_dirs=
    285     while :; do
    286       case $as_dir in #(
    287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
    288       *) as_qdir=$as_dir;;
    289       esac
    290       as_dirs="'$as_qdir' $as_dirs"
    291       as_dir=`$as_dirname -- "$as_dir" ||
    292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
    293 	 X"$as_dir" : 'X\(//\)[^/]' \| \
    294 	 X"$as_dir" : 'X\(//\)$' \| \
    295 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
    296 $as_echo X"$as_dir" |
    297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
    298 	    s//\1/
    299 	    q
    300 	  }
    301 	  /^X\(\/\/\)[^/].*/{
    302 	    s//\1/
    303 	    q
    304 	  }
    305 	  /^X\(\/\/\)$/{
    306 	    s//\1/
    307 	    q
    308 	  }
    309 	  /^X\(\/\).*/{
    310 	    s//\1/
    311 	    q
    312 	  }
    313 	  s/.*/./; q'`
    314       test -d "$as_dir" && break
    315     done
    316     test -z "$as_dirs" || eval "mkdir $as_dirs"
    317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    318 
    319 
    320 } # as_fn_mkdir_p
    321 # as_fn_append VAR VALUE
    322 # ----------------------
    323 # Append the text in VALUE to the end of the definition contained in VAR. Take
    324 # advantage of any shell optimizations that allow amortized linear growth over
    325 # repeated appends, instead of the typical quadratic growth present in naive
    326 # implementations.
    327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
    328   eval 'as_fn_append ()
    329   {
    330     eval $1+=\$2
    331   }'
    332 else
    333   as_fn_append ()
    334   {
    335     eval $1=\$$1\$2
    336   }
    337 fi # as_fn_append
    338 
    339 # as_fn_arith ARG...
    340 # ------------------
    341 # Perform arithmetic evaluation on the ARGs, and store the result in the
    342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
    343 # must be portable across $(()) and expr.
    344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
    345   eval 'as_fn_arith ()
    346   {
    347     as_val=$(( $* ))
    348   }'
    349 else
    350   as_fn_arith ()
    351   {
    352     as_val=`expr "$@" || test $? -eq 1`
    353   }
    354 fi # as_fn_arith
    355 
    356 
    357 # as_fn_error ERROR [LINENO LOG_FD]
    358 # ---------------------------------
    359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    361 # script with status $?, using 1 if that was 0.
    362 as_fn_error ()
    363 {
    364   as_status=$?; test $as_status -eq 0 && as_status=1
    365   if test "$3"; then
    366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
    368   fi
    369   $as_echo "$as_me: error: $1" >&2
    370   as_fn_exit $as_status
    371 } # as_fn_error
    372 
    373 if expr a : '\(a\)' >/dev/null 2>&1 &&
    374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
    375   as_expr=expr
    376 else
    377   as_expr=false
    378 fi
    379 
    380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
    381   as_basename=basename
    382 else
    383   as_basename=false
    384 fi
    385 
    386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
    387   as_dirname=dirname
    388 else
    389   as_dirname=false
    390 fi
    391 
    392 as_me=`$as_basename -- "$0" ||
    393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
    394 	 X"$0" : 'X\(//\)$' \| \
    395 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
    396 $as_echo X/"$0" |
    397     sed '/^.*\/\([^/][^/]*\)\/*$/{
    398 	    s//\1/
    399 	    q
    400 	  }
    401 	  /^X\/\(\/\/\)$/{
    402 	    s//\1/
    403 	    q
    404 	  }
    405 	  /^X\/\(\/\).*/{
    406 	    s//\1/
    407 	    q
    408 	  }
    409 	  s/.*/./; q'`
    410 
    411 # Avoid depending upon Character Ranges.
    412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
    413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
    414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
    415 as_cr_digits='0123456789'
    416 as_cr_alnum=$as_cr_Letters$as_cr_digits
    417 
    418 
    419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
    420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
    421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
    422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
    423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
    424   sed -n '
    425     p
    426     /[$]LINENO/=
    427   ' <$as_myself |
    428     sed '
    429       s/[$]LINENO.*/&-/
    430       t lineno
    431       b
    432       :lineno
    433       N
    434       :loop
    435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
    436       t loop
    437       s/-\n.*//
    438     ' >$as_me.lineno &&
    439   chmod +x "$as_me.lineno" ||
    440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
    441 
    442   # Don't try to exec as it changes $[0], causing all sort of problems
    443   # (the dirname of $[0] is not the place where we might find the
    444   # original and so on.  Autoconf is especially sensitive to this).
    445   . "./$as_me.lineno"
    446   # Exit status is that of the last command.
    447   exit
    448 }
    449 
    450 ECHO_C= ECHO_N= ECHO_T=
    451 case `echo -n x` in #(((((
    452 -n*)
    453   case `echo 'xy\c'` in
    454   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
    455   xy)  ECHO_C='\c';;
    456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
    457        ECHO_T='	';;
    458   esac;;
    459 *)
    460   ECHO_N='-n';;
    461 esac
    462 
    463 rm -f conf$$ conf$$.exe conf$$.file
    464 if test -d conf$$.dir; then
    465   rm -f conf$$.dir/conf$$.file
    466 else
    467   rm -f conf$$.dir
    468   mkdir conf$$.dir 2>/dev/null
    469 fi
    470 if (echo >conf$$.file) 2>/dev/null; then
    471   if ln -s conf$$.file conf$$ 2>/dev/null; then
    472     as_ln_s='ln -s'
    473     # ... but there are two gotchas:
    474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
    475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
    476     # In both cases, we have to default to `cp -p'.
    477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
    478       as_ln_s='cp -p'
    479   elif ln conf$$.file conf$$ 2>/dev/null; then
    480     as_ln_s=ln
    481   else
    482     as_ln_s='cp -p'
    483   fi
    484 else
    485   as_ln_s='cp -p'
    486 fi
    487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
    488 rmdir conf$$.dir 2>/dev/null
    489 
    490 if mkdir -p . 2>/dev/null; then
    491   as_mkdir_p='mkdir -p "$as_dir"'
    492 else
    493   test -d ./-p && rmdir ./-p
    494   as_mkdir_p=false
    495 fi
    496 
    497 if test -x / >/dev/null 2>&1; then
    498   as_test_x='test -x'
    499 else
    500   if ls -dL / >/dev/null 2>&1; then
    501     as_ls_L_option=L
    502   else
    503     as_ls_L_option=
    504   fi
    505   as_test_x='
    506     eval sh -c '\''
    507       if test -d "$1"; then
    508 	test -d "$1/.";
    509       else
    510 	case $1 in #(
    511 	-*)set "./$1";;
    512 	esac;
    513 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
    514 	???[sx]*):;;*)false;;esac;fi
    515     '\'' sh
    516   '
    517 fi
    518 as_executable_p=$as_test_x
    519 
    520 # Sed expression to map a string onto a valid CPP name.
    521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
    522 
    523 # Sed expression to map a string onto a valid variable name.
    524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
    525 
    526 
    527 exec 7<&0 </dev/null 6>&1
    528 
    529 # Name of the host.
    530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    531 # so uname gets run too.
    532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
    533 
    534 #
    535 # Initializations.
    536 #
    537 ac_default_prefix=/usr/local
    538 ac_clean_files=
    539 ac_config_libobj_dir=.
    540 LIBOBJS=
    541 cross_compiling=no
    542 subdirs=
    543 MFLAGS=
    544 MAKEFLAGS=
    545 
    546 # Identity of this package.
    547 PACKAGE_NAME=
    548 PACKAGE_TARNAME=
    549 PACKAGE_VERSION=
    550 PACKAGE_STRING=
    551 PACKAGE_BUGREPORT=
    552 PACKAGE_URL=
    553 
    554 ac_unique_file="main.c"
    555 # Factoring default headers for most tests.
    556 ac_includes_default="\
    557 #include <stdio.h>
    558 #ifdef HAVE_SYS_TYPES_H
    559 # include <sys/types.h>
    560 #endif
    561 #ifdef HAVE_SYS_STAT_H
    562 # include <sys/stat.h>
    563 #endif
    564 #ifdef STDC_HEADERS
    565 # include <stdlib.h>
    566 # include <stddef.h>
    567 #else
    568 # ifdef HAVE_STDLIB_H
    569 #  include <stdlib.h>
    570 # endif
    571 #endif
    572 #ifdef HAVE_STRING_H
    573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
    574 #  include <memory.h>
    575 # endif
    576 # include <string.h>
    577 #endif
    578 #ifdef HAVE_STRINGS_H
    579 # include <strings.h>
    580 #endif
    581 #ifdef HAVE_INTTYPES_H
    582 # include <inttypes.h>
    583 #endif
    584 #ifdef HAVE_STDINT_H
    585 # include <stdint.h>
    586 #endif
    587 #ifdef HAVE_UNISTD_H
    588 # include <unistd.h>
    589 #endif"
    590 
    591 enable_option_checking=no
    592 ac_subst_vars='LTLIBOBJS
    593 LIBOBJS
    594 GCORE_TRANSFORM_NAME
    595 GDB_TRANSFORM_NAME
    596 GDB_NM_FILE
    597 LTLIBBABELTRACE
    598 LIBBABELTRACE
    599 HAVE_LIBBABELTRACE
    600 frags
    601 target_subdir
    602 CONFIG_UNINSTALL
    603 CONFIG_INSTALL
    604 CONFIG_CLEAN
    605 CONFIG_ALL
    606 CONFIG_SRCS
    607 CONFIG_DEPS
    608 CONFIG_OBS
    609 PROFILE_CFLAGS
    610 ENABLE_CFLAGS
    611 SIM_OBS
    612 SIM
    613 XMKMF
    614 GDBTK_SRC_DIR
    615 GDBTK_CFLAGS
    616 GDBTKLIBS
    617 X_LIBS
    618 X_LDFLAGS
    619 X_CFLAGS
    620 TK_XINCLUDES
    621 TK_DEPS
    622 TK_LIBRARY
    623 TK_INCLUDE
    624 TK_STUB_LIB_SPEC
    625 TK_STUB_LIB_FLAG
    626 TK_STUB_LIB_FILE
    627 TK_LIB_SPEC
    628 TK_LIB_FLAG
    629 TK_LIB_FILE
    630 TK_SRC_DIR
    631 TK_BIN_DIR
    632 TK_VERSION
    633 TCL_DEPS
    634 TCL_LIBRARY
    635 TCL_INCLUDE
    636 TCL_STUB_LIB_SPEC
    637 TCL_STUB_LIB_FLAG
    638 TCL_STUB_LIB_FILE
    639 TCL_LIB_SPEC
    640 TCL_LIB_FLAG
    641 TCL_LIB_FILE
    642 TCL_SRC_DIR
    643 TCL_BIN_DIR
    644 TCL_PATCH_LEVEL
    645 TCL_VERSION
    646 WIN32LDAPP
    647 GUI_CFLAGS_X
    648 LIBGUI
    649 LTLIBLZMA
    650 LIBLZMA
    651 HAVE_LIBLZMA
    652 WIN32LIBS
    653 SER_HARDWIRE
    654 WERROR_CFLAGS
    655 WARN_CFLAGS
    656 SYSTEM_GDBINIT
    657 TARGET_SYSTEM_ROOT
    658 CONFIG_LDFLAGS
    659 RDYNAMIC
    660 ALLOCA
    661 PYTHON_LIBS
    662 PYTHON_CPPFLAGS
    663 PYTHON_CFLAGS
    664 python_prog_path
    665 LTLIBEXPAT
    666 LIBEXPAT
    667 HAVE_LIBEXPAT
    668 JIT_READER_DIR
    669 TARGET_PTR
    670 READLINE_TEXI_INCFLAG
    671 READLINE_CFLAGS
    672 READLINE_DEPS
    673 READLINE
    674 MIG
    675 WINDRES
    676 DLLTOOL
    677 AR
    678 YFLAGS
    679 YACC
    680 RANLIB
    681 LN_S
    682 INSTALL_DATA
    683 INSTALL_SCRIPT
    684 INSTALL_PROGRAM
    685 AWK
    686 REPORT_BUGS_TEXI
    687 REPORT_BUGS_TO
    688 PKGVERSION
    689 HAVE_NATIVE_GCORE_TARGET
    690 TARGET_OBS
    691 subdirs
    692 GDB_DATADIR
    693 DEBUGDIR
    694 MAKEINFO_EXTRA_FLAGS
    695 MAKEINFOFLAGS
    696 MAKEINFO
    697 PACKAGE
    698 GNULIB_STDINT_H
    699 CATOBJEXT
    700 GENCAT
    701 INSTOBJEXT
    702 DATADIRNAME
    703 CATALOGS
    704 POSUB
    705 GMSGFMT
    706 XGETTEXT
    707 INCINTL
    708 LIBINTL_DEP
    709 LIBINTL
    710 USE_NLS
    711 SET_MAKE
    712 GMAKE_FALSE
    713 GMAKE_TRUE
    714 MAKE
    715 CCDEPMODE
    716 DEPDIR
    717 am__leading_dot
    718 INSTALL_STRIP_PROGRAM
    719 STRIP
    720 install_sh
    721 target_os
    722 target_vendor
    723 target_cpu
    724 target
    725 host_os
    726 host_vendor
    727 host_cpu
    728 host
    729 build_os
    730 build_vendor
    731 build_cpu
    732 build
    733 EGREP
    734 GREP
    735 CPP
    736 OBJEXT
    737 EXEEXT
    738 ac_ct_CC
    739 CPPFLAGS
    740 LDFLAGS
    741 CFLAGS
    742 CC
    743 MAINT
    744 MAINTAINER_MODE_FALSE
    745 MAINTAINER_MODE_TRUE
    746 target_alias
    747 host_alias
    748 build_alias
    749 LIBS
    750 ECHO_T
    751 ECHO_N
    752 ECHO_C
    753 DEFS
    754 mandir
    755 localedir
    756 libdir
    757 psdir
    758 pdfdir
    759 dvidir
    760 htmldir
    761 infodir
    762 docdir
    763 oldincludedir
    764 includedir
    765 localstatedir
    766 sharedstatedir
    767 sysconfdir
    768 datadir
    769 datarootdir
    770 libexecdir
    771 sbindir
    772 bindir
    773 program_transform_name
    774 prefix
    775 exec_prefix
    776 PACKAGE_URL
    777 PACKAGE_BUGREPORT
    778 PACKAGE_STRING
    779 PACKAGE_VERSION
    780 PACKAGE_TARNAME
    781 PACKAGE_NAME
    782 PATH_SEPARATOR
    783 SHELL'
    784 ac_subst_files='host_makefile_frag'
    785 ac_user_opts='
    786 enable_option_checking
    787 enable_maintainer_mode
    788 enable_plugins
    789 enable_largefile
    790 with_separate_debug_dir
    791 with_gdb_datadir
    792 with_relocated_sources
    793 with_auto_load_dir
    794 with_auto_load_safe_path
    795 enable_targets
    796 enable_64_bit_bfd
    797 enable_gdbcli
    798 enable_gdbmi
    799 enable_tui
    800 enable_gdbtk
    801 with_libunwind_ia64
    802 with_curses
    803 enable_profiling
    804 with_pkgversion
    805 with_bugurl
    806 with_zlib
    807 with_libiconv_prefix
    808 with_iconv_bin
    809 with_system_readline
    810 with_jit_reader_dir
    811 with_expat
    812 with_gnu_ld
    813 enable_rpath
    814 with_libexpat_prefix
    815 with_python
    816 enable_libmcheck
    817 with_included_regex
    818 with_sysroot
    819 with_system_gdbinit
    820 enable_werror
    821 enable_build_warnings
    822 enable_gdb_build_warnings
    823 with_lzma
    824 with_liblzma_prefix
    825 with_tcl
    826 with_tk
    827 with_x
    828 enable_sim
    829 enable_multi_ice
    830 enable_gdbserver
    831 with_babeltrace
    832 with_libbabeltrace_prefix
    833 '
    834       ac_precious_vars='build_alias
    835 host_alias
    836 target_alias
    837 CC
    838 CFLAGS
    839 LDFLAGS
    840 LIBS
    841 CPPFLAGS
    842 CPP
    843 MAKEINFO
    844 MAKEINFOFLAGS
    845 YACC
    846 YFLAGS
    847 XMKMF'
    848 ac_subdirs_all='testsuite
    849 gdbtk
    850 multi-ice
    851 gdbserver'
    852 
    853 # Initialize some variables set by options.
    854 ac_init_help=
    855 ac_init_version=false
    856 ac_unrecognized_opts=
    857 ac_unrecognized_sep=
    858 # The variables have the same names as the options, with
    859 # dashes changed to underlines.
    860 cache_file=/dev/null
    861 exec_prefix=NONE
    862 no_create=
    863 no_recursion=
    864 prefix=NONE
    865 program_prefix=NONE
    866 program_suffix=NONE
    867 program_transform_name=s,x,x,
    868 silent=
    869 site=
    870 srcdir=
    871 verbose=
    872 x_includes=NONE
    873 x_libraries=NONE
    874 
    875 # Installation directory options.
    876 # These are left unexpanded so users can "make install exec_prefix=/foo"
    877 # and all the variables that are supposed to be based on exec_prefix
    878 # by default will actually change.
    879 # Use braces instead of parens because sh, perl, etc. also accept them.
    880 # (The list follows the same order as the GNU Coding Standards.)
    881 bindir='${exec_prefix}/bin'
    882 sbindir='${exec_prefix}/sbin'
    883 libexecdir='${exec_prefix}/libexec'
    884 datarootdir='${prefix}/share'
    885 datadir='${datarootdir}'
    886 sysconfdir='${prefix}/etc'
    887 sharedstatedir='${prefix}/com'
    888 localstatedir='${prefix}/var'
    889 includedir='${prefix}/include'
    890 oldincludedir='/usr/include'
    891 docdir='${datarootdir}/doc/${PACKAGE}'
    892 infodir='${datarootdir}/info'
    893 htmldir='${docdir}'
    894 dvidir='${docdir}'
    895 pdfdir='${docdir}'
    896 psdir='${docdir}'
    897 libdir='${exec_prefix}/lib'
    898 localedir='${datarootdir}/locale'
    899 mandir='${datarootdir}/man'
    900 
    901 ac_prev=
    902 ac_dashdash=
    903 for ac_option
    904 do
    905   # If the previous option needs an argument, assign it.
    906   if test -n "$ac_prev"; then
    907     eval $ac_prev=\$ac_option
    908     ac_prev=
    909     continue
    910   fi
    911 
    912   case $ac_option in
    913   *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    914   *)	ac_optarg=yes ;;
    915   esac
    916 
    917   # Accept the important Cygnus configure options, so we can diagnose typos.
    918 
    919   case $ac_dashdash$ac_option in
    920   --)
    921     ac_dashdash=yes ;;
    922 
    923   -bindir | --bindir | --bindi | --bind | --bin | --bi)
    924     ac_prev=bindir ;;
    925   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    926     bindir=$ac_optarg ;;
    927 
    928   -build | --build | --buil | --bui | --bu)
    929     ac_prev=build_alias ;;
    930   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    931     build_alias=$ac_optarg ;;
    932 
    933   -cache-file | --cache-file | --cache-fil | --cache-fi \
    934   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
    935     ac_prev=cache_file ;;
    936   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
    937   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
    938     cache_file=$ac_optarg ;;
    939 
    940   --config-cache | -C)
    941     cache_file=config.cache ;;
    942 
    943   -datadir | --datadir | --datadi | --datad)
    944     ac_prev=datadir ;;
    945   -datadir=* | --datadir=* | --datadi=* | --datad=*)
    946     datadir=$ac_optarg ;;
    947 
    948   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
    949   | --dataroo | --dataro | --datar)
    950     ac_prev=datarootdir ;;
    951   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
    952   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
    953     datarootdir=$ac_optarg ;;
    954 
    955   -disable-* | --disable-*)
    956     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
    957     # Reject names that are not valid shell variable names.
    958     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    959       as_fn_error "invalid feature name: $ac_useropt"
    960     ac_useropt_orig=$ac_useropt
    961     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    962     case $ac_user_opts in
    963       *"
    964 "enable_$ac_useropt"
    965 "*) ;;
    966       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
    967 	 ac_unrecognized_sep=', ';;
    968     esac
    969     eval enable_$ac_useropt=no ;;
    970 
    971   -docdir | --docdir | --docdi | --doc | --do)
    972     ac_prev=docdir ;;
    973   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
    974     docdir=$ac_optarg ;;
    975 
    976   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
    977     ac_prev=dvidir ;;
    978   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
    979     dvidir=$ac_optarg ;;
    980 
    981   -enable-* | --enable-*)
    982     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
    983     # Reject names that are not valid shell variable names.
    984     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    985       as_fn_error "invalid feature name: $ac_useropt"
    986     ac_useropt_orig=$ac_useropt
    987     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
    988     case $ac_user_opts in
    989       *"
    990 "enable_$ac_useropt"
    991 "*) ;;
    992       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
    993 	 ac_unrecognized_sep=', ';;
    994     esac
    995     eval enable_$ac_useropt=\$ac_optarg ;;
    996 
    997   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
    998   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
    999   | --exec | --exe | --ex)
   1000     ac_prev=exec_prefix ;;
   1001   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1002   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1003   | --exec=* | --exe=* | --ex=*)
   1004     exec_prefix=$ac_optarg ;;
   1005 
   1006   -gas | --gas | --ga | --g)
   1007     # Obsolete; use --with-gas.
   1008     with_gas=yes ;;
   1009 
   1010   -help | --help | --hel | --he | -h)
   1011     ac_init_help=long ;;
   1012   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
   1013     ac_init_help=recursive ;;
   1014   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
   1015     ac_init_help=short ;;
   1016 
   1017   -host | --host | --hos | --ho)
   1018     ac_prev=host_alias ;;
   1019   -host=* | --host=* | --hos=* | --ho=*)
   1020     host_alias=$ac_optarg ;;
   1021 
   1022   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
   1023     ac_prev=htmldir ;;
   1024   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
   1025   | --ht=*)
   1026     htmldir=$ac_optarg ;;
   1027 
   1028   -includedir | --includedir | --includedi | --included | --include \
   1029   | --includ | --inclu | --incl | --inc)
   1030     ac_prev=includedir ;;
   1031   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1032   | --includ=* | --inclu=* | --incl=* | --inc=*)
   1033     includedir=$ac_optarg ;;
   1034 
   1035   -infodir | --infodir | --infodi | --infod | --info | --inf)
   1036     ac_prev=infodir ;;
   1037   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1038     infodir=$ac_optarg ;;
   1039 
   1040   -libdir | --libdir | --libdi | --libd)
   1041     ac_prev=libdir ;;
   1042   -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1043     libdir=$ac_optarg ;;
   1044 
   1045   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1046   | --libexe | --libex | --libe)
   1047     ac_prev=libexecdir ;;
   1048   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1049   | --libexe=* | --libex=* | --libe=*)
   1050     libexecdir=$ac_optarg ;;
   1051 
   1052   -localedir | --localedir | --localedi | --localed | --locale)
   1053     ac_prev=localedir ;;
   1054   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
   1055     localedir=$ac_optarg ;;
   1056 
   1057   -localstatedir | --localstatedir | --localstatedi | --localstated \
   1058   | --localstate | --localstat | --localsta | --localst | --locals)
   1059     ac_prev=localstatedir ;;
   1060   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1061   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
   1062     localstatedir=$ac_optarg ;;
   1063 
   1064   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1065     ac_prev=mandir ;;
   1066   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1067     mandir=$ac_optarg ;;
   1068 
   1069   -nfp | --nfp | --nf)
   1070     # Obsolete; use --without-fp.
   1071     with_fp=no ;;
   1072 
   1073   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1074   | --no-cr | --no-c | -n)
   1075     no_create=yes ;;
   1076 
   1077   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1078   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1079     no_recursion=yes ;;
   1080 
   1081   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1082   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1083   | --oldin | --oldi | --old | --ol | --o)
   1084     ac_prev=oldincludedir ;;
   1085   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1086   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1087   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1088     oldincludedir=$ac_optarg ;;
   1089 
   1090   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1091     ac_prev=prefix ;;
   1092   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1093     prefix=$ac_optarg ;;
   1094 
   1095   -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1096   | --program-pre | --program-pr | --program-p)
   1097     ac_prev=program_prefix ;;
   1098   -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1099   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1100     program_prefix=$ac_optarg ;;
   1101 
   1102   -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1103   | --program-suf | --program-su | --program-s)
   1104     ac_prev=program_suffix ;;
   1105   -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1106   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1107     program_suffix=$ac_optarg ;;
   1108 
   1109   -program-transform-name | --program-transform-name \
   1110   | --program-transform-nam | --program-transform-na \
   1111   | --program-transform-n | --program-transform- \
   1112   | --program-transform | --program-transfor \
   1113   | --program-transfo | --program-transf \
   1114   | --program-trans | --program-tran \
   1115   | --progr-tra | --program-tr | --program-t)
   1116     ac_prev=program_transform_name ;;
   1117   -program-transform-name=* | --program-transform-name=* \
   1118   | --program-transform-nam=* | --program-transform-na=* \
   1119   | --program-transform-n=* | --program-transform-=* \
   1120   | --program-transform=* | --program-transfor=* \
   1121   | --program-transfo=* | --program-transf=* \
   1122   | --program-trans=* | --program-tran=* \
   1123   | --progr-tra=* | --program-tr=* | --program-t=*)
   1124     program_transform_name=$ac_optarg ;;
   1125 
   1126   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
   1127     ac_prev=pdfdir ;;
   1128   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
   1129     pdfdir=$ac_optarg ;;
   1130 
   1131   -psdir | --psdir | --psdi | --psd | --ps)
   1132     ac_prev=psdir ;;
   1133   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
   1134     psdir=$ac_optarg ;;
   1135 
   1136   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1137   | -silent | --silent | --silen | --sile | --sil)
   1138     silent=yes ;;
   1139 
   1140   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1141     ac_prev=sbindir ;;
   1142   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1143   | --sbi=* | --sb=*)
   1144     sbindir=$ac_optarg ;;
   1145 
   1146   -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1147   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1148   | --sharedst | --shareds | --shared | --share | --shar \
   1149   | --sha | --sh)
   1150     ac_prev=sharedstatedir ;;
   1151   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1152   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1153   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1154   | --sha=* | --sh=*)
   1155     sharedstatedir=$ac_optarg ;;
   1156 
   1157   -site | --site | --sit)
   1158     ac_prev=site ;;
   1159   -site=* | --site=* | --sit=*)
   1160     site=$ac_optarg ;;
   1161 
   1162   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1163     ac_prev=srcdir ;;
   1164   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1165     srcdir=$ac_optarg ;;
   1166 
   1167   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1168   | --syscon | --sysco | --sysc | --sys | --sy)
   1169     ac_prev=sysconfdir ;;
   1170   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1171   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1172     sysconfdir=$ac_optarg ;;
   1173 
   1174   -target | --target | --targe | --targ | --tar | --ta | --t)
   1175     ac_prev=target_alias ;;
   1176   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1177     target_alias=$ac_optarg ;;
   1178 
   1179   -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1180     verbose=yes ;;
   1181 
   1182   -version | --version | --versio | --versi | --vers | -V)
   1183     ac_init_version=: ;;
   1184 
   1185   -with-* | --with-*)
   1186     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
   1187     # Reject names that are not valid shell variable names.
   1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1189       as_fn_error "invalid package name: $ac_useropt"
   1190     ac_useropt_orig=$ac_useropt
   1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1192     case $ac_user_opts in
   1193       *"
   1194 "with_$ac_useropt"
   1195 "*) ;;
   1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
   1197 	 ac_unrecognized_sep=', ';;
   1198     esac
   1199     eval with_$ac_useropt=\$ac_optarg ;;
   1200 
   1201   -without-* | --without-*)
   1202     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
   1203     # Reject names that are not valid shell variable names.
   1204     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
   1205       as_fn_error "invalid package name: $ac_useropt"
   1206     ac_useropt_orig=$ac_useropt
   1207     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
   1208     case $ac_user_opts in
   1209       *"
   1210 "with_$ac_useropt"
   1211 "*) ;;
   1212       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
   1213 	 ac_unrecognized_sep=', ';;
   1214     esac
   1215     eval with_$ac_useropt=no ;;
   1216 
   1217   --x)
   1218     # Obsolete; use --with-x.
   1219     with_x=yes ;;
   1220 
   1221   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1222   | --x-incl | --x-inc | --x-in | --x-i)
   1223     ac_prev=x_includes ;;
   1224   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1225   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1226     x_includes=$ac_optarg ;;
   1227 
   1228   -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1229   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1230     ac_prev=x_libraries ;;
   1231   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1232   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1233     x_libraries=$ac_optarg ;;
   1234 
   1235   -*) as_fn_error "unrecognized option: \`$ac_option'
   1236 Try \`$0 --help' for more information."
   1237     ;;
   1238 
   1239   *=*)
   1240     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
   1241     # Reject names that are not valid shell variable names.
   1242     case $ac_envvar in #(
   1243       '' | [0-9]* | *[!_$as_cr_alnum]* )
   1244       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
   1245     esac
   1246     eval $ac_envvar=\$ac_optarg
   1247     export $ac_envvar ;;
   1248 
   1249   *)
   1250     # FIXME: should be removed in autoconf 3.0.
   1251     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
   1252     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
   1253       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
   1254     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
   1255     ;;
   1256 
   1257   esac
   1258 done
   1259 
   1260 if test -n "$ac_prev"; then
   1261   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
   1262   as_fn_error "missing argument to $ac_option"
   1263 fi
   1264 
   1265 if test -n "$ac_unrecognized_opts"; then
   1266   case $enable_option_checking in
   1267     no) ;;
   1268     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
   1269     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
   1270   esac
   1271 fi
   1272 
   1273 # Check all directory arguments for consistency.
   1274 for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
   1275 		datadir sysconfdir sharedstatedir localstatedir includedir \
   1276 		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
   1277 		libdir localedir mandir
   1278 do
   1279   eval ac_val=\$$ac_var
   1280   # Remove trailing slashes.
   1281   case $ac_val in
   1282     */ )
   1283       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
   1284       eval $ac_var=\$ac_val;;
   1285   esac
   1286   # Be sure to have absolute directory names.
   1287   case $ac_val in
   1288     [\\/$]* | ?:[\\/]* )  continue;;
   1289     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
   1290   esac
   1291   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
   1292 done
   1293 
   1294 # There might be people who depend on the old broken behavior: `$host'
   1295 # used to hold the argument of --host etc.
   1296 # FIXME: To remove some day.
   1297 build=$build_alias
   1298 host=$host_alias
   1299 target=$target_alias
   1300 
   1301 # FIXME: To remove some day.
   1302 if test "x$host_alias" != x; then
   1303   if test "x$build_alias" = x; then
   1304     cross_compiling=maybe
   1305     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
   1306     If a cross compiler is detected then cross compile mode will be used." >&2
   1307   elif test "x$build_alias" != "x$host_alias"; then
   1308     cross_compiling=yes
   1309   fi
   1310 fi
   1311 
   1312 ac_tool_prefix=
   1313 test -n "$host_alias" && ac_tool_prefix=$host_alias-
   1314 
   1315 test "$silent" = yes && exec 6>/dev/null
   1316 
   1317 
   1318 ac_pwd=`pwd` && test -n "$ac_pwd" &&
   1319 ac_ls_di=`ls -di .` &&
   1320 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
   1321   as_fn_error "working directory cannot be determined"
   1322 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
   1323   as_fn_error "pwd does not report name of working directory"
   1324 
   1325 
   1326 # Find the source files, if location was not specified.
   1327 if test -z "$srcdir"; then
   1328   ac_srcdir_defaulted=yes
   1329   # Try the directory containing this script, then the parent directory.
   1330   ac_confdir=`$as_dirname -- "$as_myself" ||
   1331 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   1332 	 X"$as_myself" : 'X\(//\)[^/]' \| \
   1333 	 X"$as_myself" : 'X\(//\)$' \| \
   1334 	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
   1335 $as_echo X"$as_myself" |
   1336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   1337 	    s//\1/
   1338 	    q
   1339 	  }
   1340 	  /^X\(\/\/\)[^/].*/{
   1341 	    s//\1/
   1342 	    q
   1343 	  }
   1344 	  /^X\(\/\/\)$/{
   1345 	    s//\1/
   1346 	    q
   1347 	  }
   1348 	  /^X\(\/\).*/{
   1349 	    s//\1/
   1350 	    q
   1351 	  }
   1352 	  s/.*/./; q'`
   1353   srcdir=$ac_confdir
   1354   if test ! -r "$srcdir/$ac_unique_file"; then
   1355     srcdir=..
   1356   fi
   1357 else
   1358   ac_srcdir_defaulted=no
   1359 fi
   1360 if test ! -r "$srcdir/$ac_unique_file"; then
   1361   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
   1362   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
   1363 fi
   1364 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
   1365 ac_abs_confdir=`(
   1366 	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
   1367 	pwd)`
   1368 # When building in place, set srcdir=.
   1369 if test "$ac_abs_confdir" = "$ac_pwd"; then
   1370   srcdir=.
   1371 fi
   1372 # Remove unnecessary trailing slashes from srcdir.
   1373 # Double slashes in file names in object file debugging info
   1374 # mess up M-x gdb in Emacs.
   1375 case $srcdir in
   1376 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
   1377 esac
   1378 for ac_var in $ac_precious_vars; do
   1379   eval ac_env_${ac_var}_set=\${${ac_var}+set}
   1380   eval ac_env_${ac_var}_value=\$${ac_var}
   1381   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
   1382   eval ac_cv_env_${ac_var}_value=\$${ac_var}
   1383 done
   1384 
   1385 #
   1386 # Report the --help message.
   1387 #
   1388 if test "$ac_init_help" = "long"; then
   1389   # Omit some internal or obsolete options to make the list less imposing.
   1390   # This message is too long to be a string in the A/UX 3.1 sh.
   1391   cat <<_ACEOF
   1392 \`configure' configures this package to adapt to many kinds of systems.
   1393 
   1394 Usage: $0 [OPTION]... [VAR=VALUE]...
   1395 
   1396 To assign environment variables (e.g., CC, CFLAGS...), specify them as
   1397 VAR=VALUE.  See below for descriptions of some of the useful variables.
   1398 
   1399 Defaults for the options are specified in brackets.
   1400 
   1401 Configuration:
   1402   -h, --help              display this help and exit
   1403       --help=short        display options specific to this package
   1404       --help=recursive    display the short help of all the included packages
   1405   -V, --version           display version information and exit
   1406   -q, --quiet, --silent   do not print \`checking...' messages
   1407       --cache-file=FILE   cache test results in FILE [disabled]
   1408   -C, --config-cache      alias for \`--cache-file=config.cache'
   1409   -n, --no-create         do not create output files
   1410       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
   1411 
   1412 Installation directories:
   1413   --prefix=PREFIX         install architecture-independent files in PREFIX
   1414                           [$ac_default_prefix]
   1415   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1416                           [PREFIX]
   1417 
   1418 By default, \`make install' will install all the files in
   1419 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
   1420 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
   1421 for instance \`--prefix=\$HOME'.
   1422 
   1423 For better control, use the options below.
   1424 
   1425 Fine tuning of the installation directories:
   1426   --bindir=DIR            user executables [EPREFIX/bin]
   1427   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   1428   --libexecdir=DIR        program executables [EPREFIX/libexec]
   1429   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   1430   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
   1431   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   1432   --libdir=DIR            object code libraries [EPREFIX/lib]
   1433   --includedir=DIR        C header files [PREFIX/include]
   1434   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   1435   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
   1436   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
   1437   --infodir=DIR           info documentation [DATAROOTDIR/info]
   1438   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   1439   --mandir=DIR            man documentation [DATAROOTDIR/man]
   1440   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
   1441   --htmldir=DIR           html documentation [DOCDIR]
   1442   --dvidir=DIR            dvi documentation [DOCDIR]
   1443   --pdfdir=DIR            pdf documentation [DOCDIR]
   1444   --psdir=DIR             ps documentation [DOCDIR]
   1445 _ACEOF
   1446 
   1447   cat <<\_ACEOF
   1448 
   1449 Program names:
   1450   --program-prefix=PREFIX            prepend PREFIX to installed program names
   1451   --program-suffix=SUFFIX            append SUFFIX to installed program names
   1452   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
   1453 
   1454 X features:
   1455   --x-includes=DIR    X include files are in DIR
   1456   --x-libraries=DIR   X library files are in DIR
   1457 
   1458 System types:
   1459   --build=BUILD     configure for building on BUILD [guessed]
   1460   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
   1461   --target=TARGET   configure for building compilers for TARGET [HOST]
   1462 _ACEOF
   1463 fi
   1464 
   1465 if test -n "$ac_init_help"; then
   1466 
   1467   cat <<\_ACEOF
   1468 
   1469 Optional Features:
   1470   --disable-option-checking  ignore unrecognized --enable/--with options
   1471   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1472   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1473   --enable-maintainer-mode  enable make rules and dependencies not useful
   1474 			  (and sometimes confusing) to the casual installer
   1475   --enable-plugins        Enable support for plugins (defaults no)
   1476   --disable-largefile     omit support for large files
   1477   --enable-targets=TARGETS
   1478                           alternative target configurations
   1479   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
   1480   --disable-gdbcli        disable command-line interface (CLI)
   1481   --disable-gdbmi         disable machine-interface (MI)
   1482   --enable-tui            enable full-screen terminal user interface (TUI)
   1483   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
   1484   --enable-profiling      enable profiling of GDB
   1485   --disable-rpath         do not hardcode runtime library paths
   1486   --enable-libmcheck      Try linking with -lmcheck if available
   1487   --enable-werror         treat compile warnings as errors
   1488   --enable-build-warnings enable build-time compiler warnings if gcc is used
   1489   --enable-gdb-build-warnings
   1490                           enable GDB specific build-time compiler warnings if
   1491                           gcc is used
   1492   --enable-sim            link gdb with simulator
   1493   --enable-multi-ice      build the multi-ice-gdb-server
   1494   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
   1495                           is auto)
   1496 
   1497 Optional Packages:
   1498   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1499   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1500   --with-separate-debug-dir=PATH
   1501                           look for global separate debug info in this path
   1502                           [LIBDIR/debug]
   1503   --with-gdb-datadir=PATH look for global separate data files in this path
   1504                           [DATADIR/gdb]
   1505   --with-relocated-sources=PATH
   1506                           automatically relocate this path for source files
   1507   --with-auto-load-dir=PATH
   1508                           directories from which to load auto-loaded scripts
   1509                           [$debugdir:$datadir/auto-load]
   1510   --with-auto-load-safe-path=PATH
   1511                           directories safe to hold auto-loaded files
   1512                           [--with-auto-load-dir]
   1513   --without-auto-load-safe-path
   1514                           do not restrict auto-loaded files locations
   1515   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
   1516   --with-curses           use the curses library instead of the termcap
   1517                           library
   1518   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
   1519   --with-bugurl=URL       Direct users to URL to report a bug
   1520   --with-zlib             include zlib support (auto/yes/no) default=auto
   1521   --with-libiconv-prefix=DIR
   1522                           search for libiconv in DIR/include and DIR/lib
   1523   --with-iconv-bin=PATH   specify where to find the iconv program
   1524   --with-system-readline  use installed readline library
   1525   --with-jit-reader-dir=PATH
   1526                           directory to load the JIT readers from
   1527   --with-expat            include expat support (auto/yes/no)
   1528   --with-gnu-ld           assume the C compiler uses GNU ld default=no
   1529   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
   1530   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
   1531   --with-python[=PYTHON]  include python support
   1532                           (auto/yes/no/<python-program>)
   1533   --without-included-regex
   1534                           don't use included regex; this is the default on
   1535                           systems with version 2 of the GNU C library (use
   1536                           with caution on other system)
   1537   --with-sysroot[=DIR]    search for usr/lib et al within DIR
   1538   --with-system-gdbinit=PATH
   1539                           automatically load a system-wide gdbinit file
   1540   --with-lzma             support lzma compression (auto/yes/no)
   1541   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
   1542   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
   1543   --with-tcl              directory containing tcl configuration (tclConfig.sh)
   1544   --with-tk               directory containing tk configuration (tkConfig.sh)
   1545   --with-x                use the X Window System
   1546   --with-babeltrace       include babeltrace support (auto/yes/no)
   1547   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
   1548   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
   1549 
   1550 Some influential environment variables:
   1551   CC          C compiler command
   1552   CFLAGS      C compiler flags
   1553   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
   1554               nonstandard directory <lib dir>
   1555   LIBS        libraries to pass to the linker, e.g. -l<library>
   1556   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
   1557               you have headers in a nonstandard directory <include dir>
   1558   CPP         C preprocessor
   1559   MAKEINFO    Parent configure detects if it is of sufficient version.
   1560   MAKEINFOFLAGS
   1561               Parameters for MAKEINFO.
   1562   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
   1563               the first program found out of: `bison -y', `byacc', `yacc'.
   1564   YFLAGS      The list of arguments that will be passed by default to $YACC.
   1565               This script will default YFLAGS to the empty string to avoid a
   1566               default value of `-d' given by some make applications.
   1567   XMKMF       Path to xmkmf, Makefile generator for X Window System
   1568 
   1569 Use these variables to override the choices made by `configure' or to help
   1570 it to find libraries and programs with nonstandard names/locations.
   1571 
   1572 Report bugs to the package provider.
   1573 _ACEOF
   1574 ac_status=$?
   1575 fi
   1576 
   1577 if test "$ac_init_help" = "recursive"; then
   1578   # If there are subdirs, report their specific --help.
   1579   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
   1580     test -d "$ac_dir" ||
   1581       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
   1582       continue
   1583     ac_builddir=.
   1584 
   1585 case "$ac_dir" in
   1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1587 *)
   1588   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   1589   # A ".." for each directory in $ac_dir_suffix.
   1590   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   1591   case $ac_top_builddir_sub in
   1592   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   1593   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   1594   esac ;;
   1595 esac
   1596 ac_abs_top_builddir=$ac_pwd
   1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   1598 # for backward compatibility:
   1599 ac_top_builddir=$ac_top_build_prefix
   1600 
   1601 case $srcdir in
   1602   .)  # We are building in place.
   1603     ac_srcdir=.
   1604     ac_top_srcdir=$ac_top_builddir_sub
   1605     ac_abs_top_srcdir=$ac_pwd ;;
   1606   [\\/]* | ?:[\\/]* )  # Absolute name.
   1607     ac_srcdir=$srcdir$ac_dir_suffix;
   1608     ac_top_srcdir=$srcdir
   1609     ac_abs_top_srcdir=$srcdir ;;
   1610   *) # Relative name.
   1611     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   1612     ac_top_srcdir=$ac_top_build_prefix$srcdir
   1613     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   1614 esac
   1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   1616 
   1617     cd "$ac_dir" || { ac_status=$?; continue; }
   1618     # Check for guested configure.
   1619     if test -f "$ac_srcdir/configure.gnu"; then
   1620       echo &&
   1621       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
   1622     elif test -f "$ac_srcdir/configure"; then
   1623       echo &&
   1624       $SHELL "$ac_srcdir/configure" --help=recursive
   1625     else
   1626       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
   1627     fi || ac_status=$?
   1628     cd "$ac_pwd" || { ac_status=$?; break; }
   1629   done
   1630 fi
   1631 
   1632 test -n "$ac_init_help" && exit $ac_status
   1633 if $ac_init_version; then
   1634   cat <<\_ACEOF
   1635 configure
   1636 generated by GNU Autoconf 2.64
   1637 
   1638 Copyright (C) 2009 Free Software Foundation, Inc.
   1639 This configure script is free software; the Free Software Foundation
   1640 gives unlimited permission to copy, distribute and modify it.
   1641 _ACEOF
   1642   exit
   1643 fi
   1644 
   1645 ## ------------------------ ##
   1646 ## Autoconf initialization. ##
   1647 ## ------------------------ ##
   1648 
   1649 # ac_fn_c_try_compile LINENO
   1650 # --------------------------
   1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
   1652 ac_fn_c_try_compile ()
   1653 {
   1654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1655   rm -f conftest.$ac_objext
   1656   if { { ac_try="$ac_compile"
   1657 case "(($ac_try" in
   1658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1659   *) ac_try_echo=$ac_try;;
   1660 esac
   1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1662 $as_echo "$ac_try_echo"; } >&5
   1663   (eval "$ac_compile") 2>conftest.err
   1664   ac_status=$?
   1665   if test -s conftest.err; then
   1666     grep -v '^ *+' conftest.err >conftest.er1
   1667     cat conftest.er1 >&5
   1668     mv -f conftest.er1 conftest.err
   1669   fi
   1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1671   test $ac_status = 0; } && {
   1672 	 test -z "$ac_c_werror_flag" ||
   1673 	 test ! -s conftest.err
   1674        } && test -s conftest.$ac_objext; then :
   1675   ac_retval=0
   1676 else
   1677   $as_echo "$as_me: failed program was:" >&5
   1678 sed 's/^/| /' conftest.$ac_ext >&5
   1679 
   1680 	ac_retval=1
   1681 fi
   1682   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1683   return $ac_retval
   1684 
   1685 } # ac_fn_c_try_compile
   1686 
   1687 # ac_fn_c_try_cpp LINENO
   1688 # ----------------------
   1689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
   1690 ac_fn_c_try_cpp ()
   1691 {
   1692   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1693   if { { ac_try="$ac_cpp conftest.$ac_ext"
   1694 case "(($ac_try" in
   1695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1696   *) ac_try_echo=$ac_try;;
   1697 esac
   1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1699 $as_echo "$ac_try_echo"; } >&5
   1700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
   1701   ac_status=$?
   1702   if test -s conftest.err; then
   1703     grep -v '^ *+' conftest.err >conftest.er1
   1704     cat conftest.er1 >&5
   1705     mv -f conftest.er1 conftest.err
   1706   fi
   1707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1708   test $ac_status = 0; } >/dev/null && {
   1709 	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
   1710 	 test ! -s conftest.err
   1711        }; then :
   1712   ac_retval=0
   1713 else
   1714   $as_echo "$as_me: failed program was:" >&5
   1715 sed 's/^/| /' conftest.$ac_ext >&5
   1716 
   1717     ac_retval=1
   1718 fi
   1719   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1720   return $ac_retval
   1721 
   1722 } # ac_fn_c_try_cpp
   1723 
   1724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
   1725 # -------------------------------------------------------
   1726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
   1727 # the include files in INCLUDES and setting the cache variable VAR
   1728 # accordingly.
   1729 ac_fn_c_check_header_mongrel ()
   1730 {
   1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1732   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1734 $as_echo_n "checking for $2... " >&6; }
   1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1736   $as_echo_n "(cached) " >&6
   1737 fi
   1738 eval ac_res=\$$3
   1739 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1740 $as_echo "$ac_res" >&6; }
   1741 else
   1742   # Is the header compilable?
   1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
   1744 $as_echo_n "checking $2 usability... " >&6; }
   1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1746 /* end confdefs.h.  */
   1747 $4
   1748 #include <$2>
   1749 _ACEOF
   1750 if ac_fn_c_try_compile "$LINENO"; then :
   1751   ac_header_compiler=yes
   1752 else
   1753   ac_header_compiler=no
   1754 fi
   1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
   1757 $as_echo "$ac_header_compiler" >&6; }
   1758 
   1759 # Is the header present?
   1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
   1761 $as_echo_n "checking $2 presence... " >&6; }
   1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1763 /* end confdefs.h.  */
   1764 #include <$2>
   1765 _ACEOF
   1766 if ac_fn_c_try_cpp "$LINENO"; then :
   1767   ac_header_preproc=yes
   1768 else
   1769   ac_header_preproc=no
   1770 fi
   1771 rm -f conftest.err conftest.$ac_ext
   1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
   1773 $as_echo "$ac_header_preproc" >&6; }
   1774 
   1775 # So?  What about this header?
   1776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
   1777   yes:no: )
   1778     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
   1779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
   1780     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1782     ;;
   1783   no:yes:* )
   1784     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
   1785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
   1786     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
   1787 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
   1788     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
   1789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
   1790     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
   1791 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
   1792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
   1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
   1794     ;;
   1795 esac
   1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1797 $as_echo_n "checking for $2... " >&6; }
   1798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1799   $as_echo_n "(cached) " >&6
   1800 else
   1801   eval "$3=\$ac_header_compiler"
   1802 fi
   1803 eval ac_res=\$$3
   1804 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1805 $as_echo "$ac_res" >&6; }
   1806 fi
   1807   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1808 
   1809 } # ac_fn_c_check_header_mongrel
   1810 
   1811 # ac_fn_c_try_run LINENO
   1812 # ----------------------
   1813 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
   1814 # that executables *can* be run.
   1815 ac_fn_c_try_run ()
   1816 {
   1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1818   if { { ac_try="$ac_link"
   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_link") 2>&5
   1826   ac_status=$?
   1827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1828   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
   1829   { { case "(($ac_try" in
   1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   1831   *) ac_try_echo=$ac_try;;
   1832 esac
   1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   1834 $as_echo "$ac_try_echo"; } >&5
   1835   (eval "$ac_try") 2>&5
   1836   ac_status=$?
   1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   1838   test $ac_status = 0; }; }; then :
   1839   ac_retval=0
   1840 else
   1841   $as_echo "$as_me: program exited with status $ac_status" >&5
   1842        $as_echo "$as_me: failed program was:" >&5
   1843 sed 's/^/| /' conftest.$ac_ext >&5
   1844 
   1845        ac_retval=$ac_status
   1846 fi
   1847   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   1848   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1849   return $ac_retval
   1850 
   1851 } # ac_fn_c_try_run
   1852 
   1853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
   1854 # -------------------------------------------------------
   1855 # Tests whether HEADER exists and can be compiled using the include files in
   1856 # INCLUDES, setting the cache variable VAR accordingly.
   1857 ac_fn_c_check_header_compile ()
   1858 {
   1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   1861 $as_echo_n "checking for $2... " >&6; }
   1862 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   1863   $as_echo_n "(cached) " >&6
   1864 else
   1865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1866 /* end confdefs.h.  */
   1867 $4
   1868 #include <$2>
   1869 _ACEOF
   1870 if ac_fn_c_try_compile "$LINENO"; then :
   1871   eval "$3=yes"
   1872 else
   1873   eval "$3=no"
   1874 fi
   1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1876 fi
   1877 eval ac_res=\$$3
   1878 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   1879 $as_echo "$ac_res" >&6; }
   1880   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   1881 
   1882 } # ac_fn_c_check_header_compile
   1883 
   1884 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
   1885 # --------------------------------------------
   1886 # Tries to find the compile-time value of EXPR in a program that includes
   1887 # INCLUDES, setting VAR accordingly. Returns whether the value could be
   1888 # computed
   1889 ac_fn_c_compute_int ()
   1890 {
   1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   1892   if test "$cross_compiling" = yes; then
   1893     # Depending upon the size, compute the lo and hi bounds.
   1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1895 /* end confdefs.h.  */
   1896 $4
   1897 int
   1898 main ()
   1899 {
   1900 static int test_array [1 - 2 * !(($2) >= 0)];
   1901 test_array [0] = 0
   1902 
   1903   ;
   1904   return 0;
   1905 }
   1906 _ACEOF
   1907 if ac_fn_c_try_compile "$LINENO"; then :
   1908   ac_lo=0 ac_mid=0
   1909   while :; do
   1910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1911 /* end confdefs.h.  */
   1912 $4
   1913 int
   1914 main ()
   1915 {
   1916 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1917 test_array [0] = 0
   1918 
   1919   ;
   1920   return 0;
   1921 }
   1922 _ACEOF
   1923 if ac_fn_c_try_compile "$LINENO"; then :
   1924   ac_hi=$ac_mid; break
   1925 else
   1926   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
   1927 			if test $ac_lo -le $ac_mid; then
   1928 			  ac_lo= ac_hi=
   1929 			  break
   1930 			fi
   1931 			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
   1932 fi
   1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1934   done
   1935 else
   1936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1937 /* end confdefs.h.  */
   1938 $4
   1939 int
   1940 main ()
   1941 {
   1942 static int test_array [1 - 2 * !(($2) < 0)];
   1943 test_array [0] = 0
   1944 
   1945   ;
   1946   return 0;
   1947 }
   1948 _ACEOF
   1949 if ac_fn_c_try_compile "$LINENO"; then :
   1950   ac_hi=-1 ac_mid=-1
   1951   while :; do
   1952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1953 /* end confdefs.h.  */
   1954 $4
   1955 int
   1956 main ()
   1957 {
   1958 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
   1959 test_array [0] = 0
   1960 
   1961   ;
   1962   return 0;
   1963 }
   1964 _ACEOF
   1965 if ac_fn_c_try_compile "$LINENO"; then :
   1966   ac_lo=$ac_mid; break
   1967 else
   1968   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
   1969 			if test $ac_mid -le $ac_hi; then
   1970 			  ac_lo= ac_hi=
   1971 			  break
   1972 			fi
   1973 			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
   1974 fi
   1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1976   done
   1977 else
   1978   ac_lo= ac_hi=
   1979 fi
   1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1981 fi
   1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   1983 # Binary search between lo and hi bounds.
   1984 while test "x$ac_lo" != "x$ac_hi"; do
   1985   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
   1986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   1987 /* end confdefs.h.  */
   1988 $4
   1989 int
   1990 main ()
   1991 {
   1992 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
   1993 test_array [0] = 0
   1994 
   1995   ;
   1996   return 0;
   1997 }
   1998 _ACEOF
   1999 if ac_fn_c_try_compile "$LINENO"; then :
   2000   ac_hi=$ac_mid
   2001 else
   2002   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
   2003 fi
   2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2005 done
   2006 case $ac_lo in #((
   2007 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
   2008 '') ac_retval=1 ;;
   2009 esac
   2010   else
   2011     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2012 /* end confdefs.h.  */
   2013 $4
   2014 static long int longval () { return $2; }
   2015 static unsigned long int ulongval () { return $2; }
   2016 #include <stdio.h>
   2017 #include <stdlib.h>
   2018 int
   2019 main ()
   2020 {
   2021 
   2022   FILE *f = fopen ("conftest.val", "w");
   2023   if (! f)
   2024     return 1;
   2025   if (($2) < 0)
   2026     {
   2027       long int i = longval ();
   2028       if (i != ($2))
   2029 	return 1;
   2030       fprintf (f, "%ld", i);
   2031     }
   2032   else
   2033     {
   2034       unsigned long int i = ulongval ();
   2035       if (i != ($2))
   2036 	return 1;
   2037       fprintf (f, "%lu", i);
   2038     }
   2039   /* Do not output a trailing newline, as this causes \r\n confusion
   2040      on some platforms.  */
   2041   return ferror (f) || fclose (f) != 0;
   2042 
   2043   ;
   2044   return 0;
   2045 }
   2046 _ACEOF
   2047 if ac_fn_c_try_run "$LINENO"; then :
   2048   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
   2049 else
   2050   ac_retval=1
   2051 fi
   2052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   2053   conftest.$ac_objext conftest.beam conftest.$ac_ext
   2054 rm -f conftest.val
   2055 
   2056   fi
   2057   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2058   return $ac_retval
   2059 
   2060 } # ac_fn_c_compute_int
   2061 
   2062 # ac_fn_c_try_link LINENO
   2063 # -----------------------
   2064 # Try to link conftest.$ac_ext, and return whether this succeeded.
   2065 ac_fn_c_try_link ()
   2066 {
   2067   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2068   rm -f conftest.$ac_objext conftest$ac_exeext
   2069   if { { ac_try="$ac_link"
   2070 case "(($ac_try" in
   2071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   2072   *) ac_try_echo=$ac_try;;
   2073 esac
   2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   2075 $as_echo "$ac_try_echo"; } >&5
   2076   (eval "$ac_link") 2>conftest.err
   2077   ac_status=$?
   2078   if test -s conftest.err; then
   2079     grep -v '^ *+' conftest.err >conftest.er1
   2080     cat conftest.er1 >&5
   2081     mv -f conftest.er1 conftest.err
   2082   fi
   2083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   2084   test $ac_status = 0; } && {
   2085 	 test -z "$ac_c_werror_flag" ||
   2086 	 test ! -s conftest.err
   2087        } && test -s conftest$ac_exeext && {
   2088 	 test "$cross_compiling" = yes ||
   2089 	 $as_test_x conftest$ac_exeext
   2090        }; then :
   2091   ac_retval=0
   2092 else
   2093   $as_echo "$as_me: failed program was:" >&5
   2094 sed 's/^/| /' conftest.$ac_ext >&5
   2095 
   2096 	ac_retval=1
   2097 fi
   2098   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
   2099   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
   2100   # interfere with the next link command; also delete a directory that is
   2101   # left behind by Apple's compiler.  We do this before executing the actions.
   2102   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
   2103   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2104   return $ac_retval
   2105 
   2106 } # ac_fn_c_try_link
   2107 
   2108 # ac_fn_c_check_func LINENO FUNC VAR
   2109 # ----------------------------------
   2110 # Tests whether FUNC exists, setting the cache variable VAR accordingly
   2111 ac_fn_c_check_func ()
   2112 {
   2113   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2115 $as_echo_n "checking for $2... " >&6; }
   2116 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2117   $as_echo_n "(cached) " >&6
   2118 else
   2119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2120 /* end confdefs.h.  */
   2121 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
   2122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
   2123 #define $2 innocuous_$2
   2124 
   2125 /* System header to define __stub macros and hopefully few prototypes,
   2126     which can conflict with char $2 (); below.
   2127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   2128     <limits.h> exists even on freestanding compilers.  */
   2129 
   2130 #ifdef __STDC__
   2131 # include <limits.h>
   2132 #else
   2133 # include <assert.h>
   2134 #endif
   2135 
   2136 #undef $2
   2137 
   2138 /* Override any GCC internal prototype to avoid an error.
   2139    Use char because int might match the return type of a GCC
   2140    builtin and then its argument prototype would still apply.  */
   2141 #ifdef __cplusplus
   2142 extern "C"
   2143 #endif
   2144 char $2 ();
   2145 /* The GNU C library defines this for functions which it implements
   2146     to always fail with ENOSYS.  Some functions are actually named
   2147     something starting with __ and the normal name is an alias.  */
   2148 #if defined __stub_$2 || defined __stub___$2
   2149 choke me
   2150 #endif
   2151 
   2152 int
   2153 main ()
   2154 {
   2155 return $2 ();
   2156   ;
   2157   return 0;
   2158 }
   2159 _ACEOF
   2160 if ac_fn_c_try_link "$LINENO"; then :
   2161   eval "$3=yes"
   2162 else
   2163   eval "$3=no"
   2164 fi
   2165 rm -f core conftest.err conftest.$ac_objext \
   2166     conftest$ac_exeext conftest.$ac_ext
   2167 fi
   2168 eval ac_res=\$$3
   2169 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2170 $as_echo "$ac_res" >&6; }
   2171   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2172 
   2173 } # ac_fn_c_check_func
   2174 
   2175 # ac_fn_c_check_decl LINENO SYMBOL VAR
   2176 # ------------------------------------
   2177 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
   2178 ac_fn_c_check_decl ()
   2179 {
   2180   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2181   as_decl_name=`echo $2|sed 's/ *(.*//'`
   2182   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
   2183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
   2184 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
   2185 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2186   $as_echo_n "(cached) " >&6
   2187 else
   2188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2189 /* end confdefs.h.  */
   2190 $4
   2191 int
   2192 main ()
   2193 {
   2194 #ifndef $as_decl_name
   2195 #ifdef __cplusplus
   2196   (void) $as_decl_use;
   2197 #else
   2198   (void) $as_decl_name;
   2199 #endif
   2200 #endif
   2201 
   2202   ;
   2203   return 0;
   2204 }
   2205 _ACEOF
   2206 if ac_fn_c_try_compile "$LINENO"; then :
   2207   eval "$3=yes"
   2208 else
   2209   eval "$3=no"
   2210 fi
   2211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2212 fi
   2213 eval ac_res=\$$3
   2214 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2215 $as_echo "$ac_res" >&6; }
   2216   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2217 
   2218 } # ac_fn_c_check_decl
   2219 
   2220 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
   2221 # ----------------------------------------------------
   2222 # Tries to find if the field MEMBER exists in type AGGR, after including
   2223 # INCLUDES, setting cache variable VAR accordingly.
   2224 ac_fn_c_check_member ()
   2225 {
   2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2227   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
   2228 $as_echo_n "checking for $2.$3... " >&6; }
   2229 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
   2230   $as_echo_n "(cached) " >&6
   2231 else
   2232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2233 /* end confdefs.h.  */
   2234 $5
   2235 int
   2236 main ()
   2237 {
   2238 static $2 ac_aggr;
   2239 if (ac_aggr.$3)
   2240 return 0;
   2241   ;
   2242   return 0;
   2243 }
   2244 _ACEOF
   2245 if ac_fn_c_try_compile "$LINENO"; then :
   2246   eval "$4=yes"
   2247 else
   2248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2249 /* end confdefs.h.  */
   2250 $5
   2251 int
   2252 main ()
   2253 {
   2254 static $2 ac_aggr;
   2255 if (sizeof ac_aggr.$3)
   2256 return 0;
   2257   ;
   2258   return 0;
   2259 }
   2260 _ACEOF
   2261 if ac_fn_c_try_compile "$LINENO"; then :
   2262   eval "$4=yes"
   2263 else
   2264   eval "$4=no"
   2265 fi
   2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2267 fi
   2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2269 fi
   2270 eval ac_res=\$$4
   2271 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2272 $as_echo "$ac_res" >&6; }
   2273   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2274 
   2275 } # ac_fn_c_check_member
   2276 
   2277 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
   2278 # -------------------------------------------
   2279 # Tests whether TYPE exists after having included INCLUDES, setting cache
   2280 # variable VAR accordingly.
   2281 ac_fn_c_check_type ()
   2282 {
   2283   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   2284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
   2285 $as_echo_n "checking for $2... " >&6; }
   2286 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
   2287   $as_echo_n "(cached) " >&6
   2288 else
   2289   eval "$3=no"
   2290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2291 /* end confdefs.h.  */
   2292 $4
   2293 int
   2294 main ()
   2295 {
   2296 if (sizeof ($2))
   2297 	 return 0;
   2298   ;
   2299   return 0;
   2300 }
   2301 _ACEOF
   2302 if ac_fn_c_try_compile "$LINENO"; then :
   2303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   2304 /* end confdefs.h.  */
   2305 $4
   2306 int
   2307 main ()
   2308 {
   2309 if (sizeof (($2)))
   2310 	    return 0;
   2311   ;
   2312   return 0;
   2313 }
   2314 _ACEOF
   2315 if ac_fn_c_try_compile "$LINENO"; then :
   2316 
   2317 else
   2318   eval "$3=yes"
   2319 fi
   2320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2321 fi
   2322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   2323 fi
   2324 eval ac_res=\$$3
   2325 	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
   2326 $as_echo "$ac_res" >&6; }
   2327   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
   2328 
   2329 } # ac_fn_c_check_type
   2330 cat >config.log <<_ACEOF
   2331 This file contains any messages produced by compilers while
   2332 running configure, to aid debugging if configure makes a mistake.
   2333 
   2334 It was created by $as_me, which was
   2335 generated by GNU Autoconf 2.64.  Invocation command line was
   2336 
   2337   $ $0 $@
   2338 
   2339 _ACEOF
   2340 exec 5>>config.log
   2341 {
   2342 cat <<_ASUNAME
   2343 ## --------- ##
   2344 ## Platform. ##
   2345 ## --------- ##
   2346 
   2347 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
   2348 uname -m = `(uname -m) 2>/dev/null || echo unknown`
   2349 uname -r = `(uname -r) 2>/dev/null || echo unknown`
   2350 uname -s = `(uname -s) 2>/dev/null || echo unknown`
   2351 uname -v = `(uname -v) 2>/dev/null || echo unknown`
   2352 
   2353 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
   2354 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
   2355 
   2356 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
   2357 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
   2358 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
   2359 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
   2360 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
   2361 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
   2362 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
   2363 
   2364 _ASUNAME
   2365 
   2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2367 for as_dir in $PATH
   2368 do
   2369   IFS=$as_save_IFS
   2370   test -z "$as_dir" && as_dir=.
   2371     $as_echo "PATH: $as_dir"
   2372   done
   2373 IFS=$as_save_IFS
   2374 
   2375 } >&5
   2376 
   2377 cat >&5 <<_ACEOF
   2378 
   2379 
   2380 ## ----------- ##
   2381 ## Core tests. ##
   2382 ## ----------- ##
   2383 
   2384 _ACEOF
   2385 
   2386 
   2387 # Keep a trace of the command line.
   2388 # Strip out --no-create and --no-recursion so they do not pile up.
   2389 # Strip out --silent because we don't want to record it for future runs.
   2390 # Also quote any args containing shell meta-characters.
   2391 # Make two passes to allow for proper duplicate-argument suppression.
   2392 ac_configure_args=
   2393 ac_configure_args0=
   2394 ac_configure_args1=
   2395 ac_must_keep_next=false
   2396 for ac_pass in 1 2
   2397 do
   2398   for ac_arg
   2399   do
   2400     case $ac_arg in
   2401     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
   2402     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   2403     | -silent | --silent | --silen | --sile | --sil)
   2404       continue ;;
   2405     *\'*)
   2406       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   2407     esac
   2408     case $ac_pass in
   2409     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
   2410     2)
   2411       as_fn_append ac_configure_args1 " '$ac_arg'"
   2412       if test $ac_must_keep_next = true; then
   2413 	ac_must_keep_next=false # Got value, back to normal.
   2414       else
   2415 	case $ac_arg in
   2416 	  *=* | --config-cache | -C | -disable-* | --disable-* \
   2417 	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
   2418 	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
   2419 	  | -with-* | --with-* | -without-* | --without-* | --x)
   2420 	    case "$ac_configure_args0 " in
   2421 	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
   2422 	    esac
   2423 	    ;;
   2424 	  -* ) ac_must_keep_next=true ;;
   2425 	esac
   2426       fi
   2427       as_fn_append ac_configure_args " '$ac_arg'"
   2428       ;;
   2429     esac
   2430   done
   2431 done
   2432 { ac_configure_args0=; unset ac_configure_args0;}
   2433 { ac_configure_args1=; unset ac_configure_args1;}
   2434 
   2435 # When interrupted or exit'd, cleanup temporary files, and complete
   2436 # config.log.  We remove comments because anyway the quotes in there
   2437 # would cause problems or look ugly.
   2438 # WARNING: Use '\'' to represent an apostrophe within the trap.
   2439 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
   2440 trap 'exit_status=$?
   2441   # Save into config.log some information that might help in debugging.
   2442   {
   2443     echo
   2444 
   2445     cat <<\_ASBOX
   2446 ## ---------------- ##
   2447 ## Cache variables. ##
   2448 ## ---------------- ##
   2449 _ASBOX
   2450     echo
   2451     # The following way of writing the cache mishandles newlines in values,
   2452 (
   2453   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
   2454     eval ac_val=\$$ac_var
   2455     case $ac_val in #(
   2456     *${as_nl}*)
   2457       case $ac_var in #(
   2458       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   2459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   2460       esac
   2461       case $ac_var in #(
   2462       _ | IFS | as_nl) ;; #(
   2463       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   2464       *) { eval $ac_var=; unset $ac_var;} ;;
   2465       esac ;;
   2466     esac
   2467   done
   2468   (set) 2>&1 |
   2469     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
   2470     *${as_nl}ac_space=\ *)
   2471       sed -n \
   2472 	"s/'\''/'\''\\\\'\'''\''/g;
   2473 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
   2474       ;; #(
   2475     *)
   2476       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   2477       ;;
   2478     esac |
   2479     sort
   2480 )
   2481     echo
   2482 
   2483     cat <<\_ASBOX
   2484 ## ----------------- ##
   2485 ## Output variables. ##
   2486 ## ----------------- ##
   2487 _ASBOX
   2488     echo
   2489     for ac_var in $ac_subst_vars
   2490     do
   2491       eval ac_val=\$$ac_var
   2492       case $ac_val in
   2493       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2494       esac
   2495       $as_echo "$ac_var='\''$ac_val'\''"
   2496     done | sort
   2497     echo
   2498 
   2499     if test -n "$ac_subst_files"; then
   2500       cat <<\_ASBOX
   2501 ## ------------------- ##
   2502 ## File substitutions. ##
   2503 ## ------------------- ##
   2504 _ASBOX
   2505       echo
   2506       for ac_var in $ac_subst_files
   2507       do
   2508 	eval ac_val=\$$ac_var
   2509 	case $ac_val in
   2510 	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
   2511 	esac
   2512 	$as_echo "$ac_var='\''$ac_val'\''"
   2513       done | sort
   2514       echo
   2515     fi
   2516 
   2517     if test -s confdefs.h; then
   2518       cat <<\_ASBOX
   2519 ## ----------- ##
   2520 ## confdefs.h. ##
   2521 ## ----------- ##
   2522 _ASBOX
   2523       echo
   2524       cat confdefs.h
   2525       echo
   2526     fi
   2527     test "$ac_signal" != 0 &&
   2528       $as_echo "$as_me: caught signal $ac_signal"
   2529     $as_echo "$as_me: exit $exit_status"
   2530   } >&5
   2531   rm -f core *.core core.conftest.* &&
   2532     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
   2533     exit $exit_status
   2534 ' 0
   2535 for ac_signal in 1 2 13 15; do
   2536   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
   2537 done
   2538 ac_signal=0
   2539 
   2540 # confdefs.h avoids OS command line length limits that DEFS can exceed.
   2541 rm -f -r conftest* confdefs.h
   2542 
   2543 $as_echo "/* confdefs.h */" > confdefs.h
   2544 
   2545 # Predefined preprocessor variables.
   2546 
   2547 cat >>confdefs.h <<_ACEOF
   2548 #define PACKAGE_NAME "$PACKAGE_NAME"
   2549 _ACEOF
   2550 
   2551 cat >>confdefs.h <<_ACEOF
   2552 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
   2553 _ACEOF
   2554 
   2555 cat >>confdefs.h <<_ACEOF
   2556 #define PACKAGE_VERSION "$PACKAGE_VERSION"
   2557 _ACEOF
   2558 
   2559 cat >>confdefs.h <<_ACEOF
   2560 #define PACKAGE_STRING "$PACKAGE_STRING"
   2561 _ACEOF
   2562 
   2563 cat >>confdefs.h <<_ACEOF
   2564 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
   2565 _ACEOF
   2566 
   2567 cat >>confdefs.h <<_ACEOF
   2568 #define PACKAGE_URL "$PACKAGE_URL"
   2569 _ACEOF
   2570 
   2571 
   2572 # Let the site file select an alternate cache file if it wants to.
   2573 # Prefer an explicitly selected file to automatically selected ones.
   2574 ac_site_file1=NONE
   2575 ac_site_file2=NONE
   2576 if test -n "$CONFIG_SITE"; then
   2577   ac_site_file1=$CONFIG_SITE
   2578 elif test "x$prefix" != xNONE; then
   2579   ac_site_file1=$prefix/share/config.site
   2580   ac_site_file2=$prefix/etc/config.site
   2581 else
   2582   ac_site_file1=$ac_default_prefix/share/config.site
   2583   ac_site_file2=$ac_default_prefix/etc/config.site
   2584 fi
   2585 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
   2586 do
   2587   test "x$ac_site_file" = xNONE && continue
   2588   if test -r "$ac_site_file"; then
   2589     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
   2590 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
   2591     sed 's/^/| /' "$ac_site_file" >&5
   2592     . "$ac_site_file"
   2593   fi
   2594 done
   2595 
   2596 if test -r "$cache_file"; then
   2597   # Some versions of bash will fail to source /dev/null (special
   2598   # files actually), so we avoid doing that.
   2599   if test -f "$cache_file"; then
   2600     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
   2601 $as_echo "$as_me: loading cache $cache_file" >&6;}
   2602     case $cache_file in
   2603       [\\/]* | ?:[\\/]* ) . "$cache_file";;
   2604       *)                      . "./$cache_file";;
   2605     esac
   2606   fi
   2607 else
   2608   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
   2609 $as_echo "$as_me: creating cache $cache_file" >&6;}
   2610   >$cache_file
   2611 fi
   2612 
   2613 # Check that the precious variables saved in the cache have kept the same
   2614 # value.
   2615 ac_cache_corrupted=false
   2616 for ac_var in $ac_precious_vars; do
   2617   eval ac_old_set=\$ac_cv_env_${ac_var}_set
   2618   eval ac_new_set=\$ac_env_${ac_var}_set
   2619   eval ac_old_val=\$ac_cv_env_${ac_var}_value
   2620   eval ac_new_val=\$ac_env_${ac_var}_value
   2621   case $ac_old_set,$ac_new_set in
   2622     set,)
   2623       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
   2624 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
   2625       ac_cache_corrupted=: ;;
   2626     ,set)
   2627       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
   2628 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
   2629       ac_cache_corrupted=: ;;
   2630     ,);;
   2631     *)
   2632       if test "x$ac_old_val" != "x$ac_new_val"; then
   2633 	# differences in whitespace do not lead to failure.
   2634 	ac_old_val_w=`echo x $ac_old_val`
   2635 	ac_new_val_w=`echo x $ac_new_val`
   2636 	if test "$ac_old_val_w" != "$ac_new_val_w"; then
   2637 	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
   2638 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
   2639 	  ac_cache_corrupted=:
   2640 	else
   2641 	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
   2642 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
   2643 	  eval $ac_var=\$ac_old_val
   2644 	fi
   2645 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
   2646 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
   2647 	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
   2648 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
   2649       fi;;
   2650   esac
   2651   # Pass precious variables to config.status.
   2652   if test "$ac_new_set" = set; then
   2653     case $ac_new_val in
   2654     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
   2655     *) ac_arg=$ac_var=$ac_new_val ;;
   2656     esac
   2657     case " $ac_configure_args " in
   2658       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
   2659       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
   2660     esac
   2661   fi
   2662 done
   2663 if $ac_cache_corrupted; then
   2664   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   2665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   2666   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
   2667 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
   2668   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
   2669 fi
   2670 ## -------------------- ##
   2671 ## Main body of script. ##
   2672 ## -------------------- ##
   2673 
   2674 ac_ext=c
   2675 ac_cpp='$CPP $CPPFLAGS'
   2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2679 
   2680 
   2681 
   2682 
   2683 
   2684 ac_config_headers="$ac_config_headers config.h:config.in"
   2685 
   2686 
   2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
   2688 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
   2689     # Check whether --enable-maintainer-mode was given.
   2690 if test "${enable_maintainer_mode+set}" = set; then :
   2691   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
   2692 else
   2693   USE_MAINTAINER_MODE=no
   2694 fi
   2695 
   2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
   2697 $as_echo "$USE_MAINTAINER_MODE" >&6; }
   2698    if test $USE_MAINTAINER_MODE = yes; then
   2699   MAINTAINER_MODE_TRUE=
   2700   MAINTAINER_MODE_FALSE='#'
   2701 else
   2702   MAINTAINER_MODE_TRUE='#'
   2703   MAINTAINER_MODE_FALSE=
   2704 fi
   2705 
   2706   MAINT=$MAINTAINER_MODE_TRUE
   2707 
   2708 
   2709 
   2710 # Set the 'development' global.
   2711 . $srcdir/development.sh
   2712 
   2713 ac_ext=c
   2714 ac_cpp='$CPP $CPPFLAGS'
   2715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   2716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   2717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   2718 if test -n "$ac_tool_prefix"; then
   2719   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
   2720 set dummy ${ac_tool_prefix}gcc; ac_word=$2
   2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2722 $as_echo_n "checking for $ac_word... " >&6; }
   2723 if test "${ac_cv_prog_CC+set}" = set; then :
   2724   $as_echo_n "(cached) " >&6
   2725 else
   2726   if test -n "$CC"; then
   2727   ac_cv_prog_CC="$CC" # Let the user override the test.
   2728 else
   2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2730 for as_dir in $PATH
   2731 do
   2732   IFS=$as_save_IFS
   2733   test -z "$as_dir" && as_dir=.
   2734     for ac_exec_ext in '' $ac_executable_extensions; do
   2735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2736     ac_cv_prog_CC="${ac_tool_prefix}gcc"
   2737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2738     break 2
   2739   fi
   2740 done
   2741   done
   2742 IFS=$as_save_IFS
   2743 
   2744 fi
   2745 fi
   2746 CC=$ac_cv_prog_CC
   2747 if test -n "$CC"; then
   2748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2749 $as_echo "$CC" >&6; }
   2750 else
   2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2752 $as_echo "no" >&6; }
   2753 fi
   2754 
   2755 
   2756 fi
   2757 if test -z "$ac_cv_prog_CC"; then
   2758   ac_ct_CC=$CC
   2759   # Extract the first word of "gcc", so it can be a program name with args.
   2760 set dummy gcc; ac_word=$2
   2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2762 $as_echo_n "checking for $ac_word... " >&6; }
   2763 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   2764   $as_echo_n "(cached) " >&6
   2765 else
   2766   if test -n "$ac_ct_CC"; then
   2767   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2768 else
   2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2770 for as_dir in $PATH
   2771 do
   2772   IFS=$as_save_IFS
   2773   test -z "$as_dir" && as_dir=.
   2774     for ac_exec_ext in '' $ac_executable_extensions; do
   2775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2776     ac_cv_prog_ac_ct_CC="gcc"
   2777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2778     break 2
   2779   fi
   2780 done
   2781   done
   2782 IFS=$as_save_IFS
   2783 
   2784 fi
   2785 fi
   2786 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2787 if test -n "$ac_ct_CC"; then
   2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2789 $as_echo "$ac_ct_CC" >&6; }
   2790 else
   2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2792 $as_echo "no" >&6; }
   2793 fi
   2794 
   2795   if test "x$ac_ct_CC" = x; then
   2796     CC=""
   2797   else
   2798     case $cross_compiling:$ac_tool_warned in
   2799 yes:)
   2800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   2801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   2802 ac_tool_warned=yes ;;
   2803 esac
   2804     CC=$ac_ct_CC
   2805   fi
   2806 else
   2807   CC="$ac_cv_prog_CC"
   2808 fi
   2809 
   2810 if test -z "$CC"; then
   2811           if test -n "$ac_tool_prefix"; then
   2812     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
   2813 set dummy ${ac_tool_prefix}cc; ac_word=$2
   2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2815 $as_echo_n "checking for $ac_word... " >&6; }
   2816 if test "${ac_cv_prog_CC+set}" = set; then :
   2817   $as_echo_n "(cached) " >&6
   2818 else
   2819   if test -n "$CC"; then
   2820   ac_cv_prog_CC="$CC" # Let the user override the test.
   2821 else
   2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2823 for as_dir in $PATH
   2824 do
   2825   IFS=$as_save_IFS
   2826   test -z "$as_dir" && as_dir=.
   2827     for ac_exec_ext in '' $ac_executable_extensions; do
   2828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2829     ac_cv_prog_CC="${ac_tool_prefix}cc"
   2830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2831     break 2
   2832   fi
   2833 done
   2834   done
   2835 IFS=$as_save_IFS
   2836 
   2837 fi
   2838 fi
   2839 CC=$ac_cv_prog_CC
   2840 if test -n "$CC"; then
   2841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2842 $as_echo "$CC" >&6; }
   2843 else
   2844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2845 $as_echo "no" >&6; }
   2846 fi
   2847 
   2848 
   2849   fi
   2850 fi
   2851 if test -z "$CC"; then
   2852   # Extract the first word of "cc", so it can be a program name with args.
   2853 set dummy cc; ac_word=$2
   2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2855 $as_echo_n "checking for $ac_word... " >&6; }
   2856 if test "${ac_cv_prog_CC+set}" = set; then :
   2857   $as_echo_n "(cached) " >&6
   2858 else
   2859   if test -n "$CC"; then
   2860   ac_cv_prog_CC="$CC" # Let the user override the test.
   2861 else
   2862   ac_prog_rejected=no
   2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2864 for as_dir in $PATH
   2865 do
   2866   IFS=$as_save_IFS
   2867   test -z "$as_dir" && as_dir=.
   2868     for ac_exec_ext in '' $ac_executable_extensions; do
   2869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2870     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
   2871        ac_prog_rejected=yes
   2872        continue
   2873      fi
   2874     ac_cv_prog_CC="cc"
   2875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2876     break 2
   2877   fi
   2878 done
   2879   done
   2880 IFS=$as_save_IFS
   2881 
   2882 if test $ac_prog_rejected = yes; then
   2883   # We found a bogon in the path, so make sure we never use it.
   2884   set dummy $ac_cv_prog_CC
   2885   shift
   2886   if test $# != 0; then
   2887     # We chose a different compiler from the bogus one.
   2888     # However, it has the same basename, so the bogon will be chosen
   2889     # first if we set CC to just the basename; use the full file name.
   2890     shift
   2891     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
   2892   fi
   2893 fi
   2894 fi
   2895 fi
   2896 CC=$ac_cv_prog_CC
   2897 if test -n "$CC"; then
   2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2899 $as_echo "$CC" >&6; }
   2900 else
   2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2902 $as_echo "no" >&6; }
   2903 fi
   2904 
   2905 
   2906 fi
   2907 if test -z "$CC"; then
   2908   if test -n "$ac_tool_prefix"; then
   2909   for ac_prog in cl.exe
   2910   do
   2911     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
   2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
   2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2914 $as_echo_n "checking for $ac_word... " >&6; }
   2915 if test "${ac_cv_prog_CC+set}" = set; then :
   2916   $as_echo_n "(cached) " >&6
   2917 else
   2918   if test -n "$CC"; then
   2919   ac_cv_prog_CC="$CC" # Let the user override the test.
   2920 else
   2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2922 for as_dir in $PATH
   2923 do
   2924   IFS=$as_save_IFS
   2925   test -z "$as_dir" && as_dir=.
   2926     for ac_exec_ext in '' $ac_executable_extensions; do
   2927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2928     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
   2929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2930     break 2
   2931   fi
   2932 done
   2933   done
   2934 IFS=$as_save_IFS
   2935 
   2936 fi
   2937 fi
   2938 CC=$ac_cv_prog_CC
   2939 if test -n "$CC"; then
   2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
   2941 $as_echo "$CC" >&6; }
   2942 else
   2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2944 $as_echo "no" >&6; }
   2945 fi
   2946 
   2947 
   2948     test -n "$CC" && break
   2949   done
   2950 fi
   2951 if test -z "$CC"; then
   2952   ac_ct_CC=$CC
   2953   for ac_prog in cl.exe
   2954 do
   2955   # Extract the first word of "$ac_prog", so it can be a program name with args.
   2956 set dummy $ac_prog; ac_word=$2
   2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   2958 $as_echo_n "checking for $ac_word... " >&6; }
   2959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
   2960   $as_echo_n "(cached) " >&6
   2961 else
   2962   if test -n "$ac_ct_CC"; then
   2963   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
   2964 else
   2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   2966 for as_dir in $PATH
   2967 do
   2968   IFS=$as_save_IFS
   2969   test -z "$as_dir" && as_dir=.
   2970     for ac_exec_ext in '' $ac_executable_extensions; do
   2971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   2972     ac_cv_prog_ac_ct_CC="$ac_prog"
   2973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   2974     break 2
   2975   fi
   2976 done
   2977   done
   2978 IFS=$as_save_IFS
   2979 
   2980 fi
   2981 fi
   2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
   2983 if test -n "$ac_ct_CC"; then
   2984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
   2985 $as_echo "$ac_ct_CC" >&6; }
   2986 else
   2987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   2988 $as_echo "no" >&6; }
   2989 fi
   2990 
   2991 
   2992   test -n "$ac_ct_CC" && break
   2993 done
   2994 
   2995   if test "x$ac_ct_CC" = x; then
   2996     CC=""
   2997   else
   2998     case $cross_compiling:$ac_tool_warned in
   2999 yes:)
   3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   3001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   3002 ac_tool_warned=yes ;;
   3003 esac
   3004     CC=$ac_ct_CC
   3005   fi
   3006 fi
   3007 
   3008 fi
   3009 
   3010 
   3011 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3013 as_fn_error "no acceptable C compiler found in \$PATH
   3014 See \`config.log' for more details." "$LINENO" 5; }
   3015 
   3016 # Provide some information about the compiler.
   3017 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
   3018 set X $ac_compile
   3019 ac_compiler=$2
   3020 for ac_option in --version -v -V -qversion; do
   3021   { { ac_try="$ac_compiler $ac_option >&5"
   3022 case "(($ac_try" in
   3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3024   *) ac_try_echo=$ac_try;;
   3025 esac
   3026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3027 $as_echo "$ac_try_echo"; } >&5
   3028   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
   3029   ac_status=$?
   3030   if test -s conftest.err; then
   3031     sed '10a\
   3032 ... rest of stderr output deleted ...
   3033          10q' conftest.err >conftest.er1
   3034     cat conftest.er1 >&5
   3035     rm -f conftest.er1 conftest.err
   3036   fi
   3037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3038   test $ac_status = 0; }
   3039 done
   3040 
   3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3042 /* end confdefs.h.  */
   3043 
   3044 int
   3045 main ()
   3046 {
   3047 
   3048   ;
   3049   return 0;
   3050 }
   3051 _ACEOF
   3052 ac_clean_files_save=$ac_clean_files
   3053 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
   3054 # Try to create an executable without -o first, disregard a.out.
   3055 # It will help us diagnose broken compilers, and finding out an intuition
   3056 # of exeext.
   3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
   3058 $as_echo_n "checking for C compiler default output file name... " >&6; }
   3059 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
   3060 
   3061 # The possible output files:
   3062 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
   3063 
   3064 ac_rmfiles=
   3065 for ac_file in $ac_files
   3066 do
   3067   case $ac_file in
   3068     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3069     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
   3070   esac
   3071 done
   3072 rm -f $ac_rmfiles
   3073 
   3074 if { { ac_try="$ac_link_default"
   3075 case "(($ac_try" in
   3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3077   *) ac_try_echo=$ac_try;;
   3078 esac
   3079 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3080 $as_echo "$ac_try_echo"; } >&5
   3081   (eval "$ac_link_default") 2>&5
   3082   ac_status=$?
   3083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3084   test $ac_status = 0; }; then :
   3085   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
   3086 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
   3087 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
   3088 # so that the user can short-circuit this test for compilers unknown to
   3089 # Autoconf.
   3090 for ac_file in $ac_files ''
   3091 do
   3092   test -f "$ac_file" || continue
   3093   case $ac_file in
   3094     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
   3095 	;;
   3096     [ab].out )
   3097 	# We found the default executable, but exeext='' is most
   3098 	# certainly right.
   3099 	break;;
   3100     *.* )
   3101 	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
   3102 	then :; else
   3103 	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3104 	fi
   3105 	# We set ac_cv_exeext here because the later test for it is not
   3106 	# safe: cross compilers may not add the suffix if given an `-o'
   3107 	# argument, so we may need to know it at that point already.
   3108 	# Even if this section looks crufty: it has the advantage of
   3109 	# actually working.
   3110 	break;;
   3111     * )
   3112 	break;;
   3113   esac
   3114 done
   3115 test "$ac_cv_exeext" = no && ac_cv_exeext=
   3116 
   3117 else
   3118   ac_file=''
   3119 fi
   3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
   3121 $as_echo "$ac_file" >&6; }
   3122 if test -z "$ac_file"; then :
   3123   $as_echo "$as_me: failed program was:" >&5
   3124 sed 's/^/| /' conftest.$ac_ext >&5
   3125 
   3126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3128 { as_fn_set_status 77
   3129 as_fn_error "C compiler cannot create executables
   3130 See \`config.log' for more details." "$LINENO" 5; }; }
   3131 fi
   3132 ac_exeext=$ac_cv_exeext
   3133 
   3134 # Check that the compiler produces executables we can run.  If not, either
   3135 # the compiler is broken, or we cross compile.
   3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
   3137 $as_echo_n "checking whether the C compiler works... " >&6; }
   3138 # If not cross compiling, check that we can run a simple program.
   3139 if test "$cross_compiling" != yes; then
   3140   if { ac_try='./$ac_file'
   3141   { { case "(($ac_try" in
   3142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3143   *) ac_try_echo=$ac_try;;
   3144 esac
   3145 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3146 $as_echo "$ac_try_echo"; } >&5
   3147   (eval "$ac_try") 2>&5
   3148   ac_status=$?
   3149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3150   test $ac_status = 0; }; }; then
   3151     cross_compiling=no
   3152   else
   3153     if test "$cross_compiling" = maybe; then
   3154 	cross_compiling=yes
   3155     else
   3156 	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3158 as_fn_error "cannot run C compiled programs.
   3159 If you meant to cross compile, use \`--host'.
   3160 See \`config.log' for more details." "$LINENO" 5; }
   3161     fi
   3162   fi
   3163 fi
   3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   3165 $as_echo "yes" >&6; }
   3166 
   3167 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
   3168 ac_clean_files=$ac_clean_files_save
   3169 # Check that the compiler produces executables we can run.  If not, either
   3170 # the compiler is broken, or we cross compile.
   3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
   3172 $as_echo_n "checking whether we are cross compiling... " >&6; }
   3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
   3174 $as_echo "$cross_compiling" >&6; }
   3175 
   3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
   3177 $as_echo_n "checking for suffix of executables... " >&6; }
   3178 if { { ac_try="$ac_link"
   3179 case "(($ac_try" in
   3180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3181   *) ac_try_echo=$ac_try;;
   3182 esac
   3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3184 $as_echo "$ac_try_echo"; } >&5
   3185   (eval "$ac_link") 2>&5
   3186   ac_status=$?
   3187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3188   test $ac_status = 0; }; then :
   3189   # If both `conftest.exe' and `conftest' are `present' (well, observable)
   3190 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
   3191 # work properly (i.e., refer to `conftest.exe'), while it won't with
   3192 # `rm'.
   3193 for ac_file in conftest.exe conftest conftest.*; do
   3194   test -f "$ac_file" || continue
   3195   case $ac_file in
   3196     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
   3197     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
   3198 	  break;;
   3199     * ) break;;
   3200   esac
   3201 done
   3202 else
   3203   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3205 as_fn_error "cannot compute suffix of executables: cannot compile and link
   3206 See \`config.log' for more details." "$LINENO" 5; }
   3207 fi
   3208 rm -f conftest$ac_cv_exeext
   3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
   3210 $as_echo "$ac_cv_exeext" >&6; }
   3211 
   3212 rm -f conftest.$ac_ext
   3213 EXEEXT=$ac_cv_exeext
   3214 ac_exeext=$EXEEXT
   3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
   3216 $as_echo_n "checking for suffix of object files... " >&6; }
   3217 if test "${ac_cv_objext+set}" = set; then :
   3218   $as_echo_n "(cached) " >&6
   3219 else
   3220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3221 /* end confdefs.h.  */
   3222 
   3223 int
   3224 main ()
   3225 {
   3226 
   3227   ;
   3228   return 0;
   3229 }
   3230 _ACEOF
   3231 rm -f conftest.o conftest.obj
   3232 if { { ac_try="$ac_compile"
   3233 case "(($ac_try" in
   3234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
   3235   *) ac_try_echo=$ac_try;;
   3236 esac
   3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
   3238 $as_echo "$ac_try_echo"; } >&5
   3239   (eval "$ac_compile") 2>&5
   3240   ac_status=$?
   3241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   3242   test $ac_status = 0; }; then :
   3243   for ac_file in conftest.o conftest.obj conftest.*; do
   3244   test -f "$ac_file" || continue;
   3245   case $ac_file in
   3246     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
   3247     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
   3248        break;;
   3249   esac
   3250 done
   3251 else
   3252   $as_echo "$as_me: failed program was:" >&5
   3253 sed 's/^/| /' conftest.$ac_ext >&5
   3254 
   3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3257 as_fn_error "cannot compute suffix of object files: cannot compile
   3258 See \`config.log' for more details." "$LINENO" 5; }
   3259 fi
   3260 rm -f conftest.$ac_cv_objext conftest.$ac_ext
   3261 fi
   3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
   3263 $as_echo "$ac_cv_objext" >&6; }
   3264 OBJEXT=$ac_cv_objext
   3265 ac_objext=$OBJEXT
   3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
   3267 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
   3268 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
   3269   $as_echo_n "(cached) " >&6
   3270 else
   3271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3272 /* end confdefs.h.  */
   3273 
   3274 int
   3275 main ()
   3276 {
   3277 #ifndef __GNUC__
   3278        choke me
   3279 #endif
   3280 
   3281   ;
   3282   return 0;
   3283 }
   3284 _ACEOF
   3285 if ac_fn_c_try_compile "$LINENO"; then :
   3286   ac_compiler_gnu=yes
   3287 else
   3288   ac_compiler_gnu=no
   3289 fi
   3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
   3292 
   3293 fi
   3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
   3295 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
   3296 if test $ac_compiler_gnu = yes; then
   3297   GCC=yes
   3298 else
   3299   GCC=
   3300 fi
   3301 ac_test_CFLAGS=${CFLAGS+set}
   3302 ac_save_CFLAGS=$CFLAGS
   3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
   3304 $as_echo_n "checking whether $CC accepts -g... " >&6; }
   3305 if test "${ac_cv_prog_cc_g+set}" = set; then :
   3306   $as_echo_n "(cached) " >&6
   3307 else
   3308   ac_save_c_werror_flag=$ac_c_werror_flag
   3309    ac_c_werror_flag=yes
   3310    ac_cv_prog_cc_g=no
   3311    CFLAGS="-g"
   3312    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3313 /* end confdefs.h.  */
   3314 
   3315 int
   3316 main ()
   3317 {
   3318 
   3319   ;
   3320   return 0;
   3321 }
   3322 _ACEOF
   3323 if ac_fn_c_try_compile "$LINENO"; then :
   3324   ac_cv_prog_cc_g=yes
   3325 else
   3326   CFLAGS=""
   3327       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3328 /* end confdefs.h.  */
   3329 
   3330 int
   3331 main ()
   3332 {
   3333 
   3334   ;
   3335   return 0;
   3336 }
   3337 _ACEOF
   3338 if ac_fn_c_try_compile "$LINENO"; then :
   3339 
   3340 else
   3341   ac_c_werror_flag=$ac_save_c_werror_flag
   3342 	 CFLAGS="-g"
   3343 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3344 /* end confdefs.h.  */
   3345 
   3346 int
   3347 main ()
   3348 {
   3349 
   3350   ;
   3351   return 0;
   3352 }
   3353 _ACEOF
   3354 if ac_fn_c_try_compile "$LINENO"; then :
   3355   ac_cv_prog_cc_g=yes
   3356 fi
   3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3358 fi
   3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3360 fi
   3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3362    ac_c_werror_flag=$ac_save_c_werror_flag
   3363 fi
   3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
   3365 $as_echo "$ac_cv_prog_cc_g" >&6; }
   3366 if test "$ac_test_CFLAGS" = set; then
   3367   CFLAGS=$ac_save_CFLAGS
   3368 elif test $ac_cv_prog_cc_g = yes; then
   3369   if test "$GCC" = yes; then
   3370     CFLAGS="-g -O2"
   3371   else
   3372     CFLAGS="-g"
   3373   fi
   3374 else
   3375   if test "$GCC" = yes; then
   3376     CFLAGS="-O2"
   3377   else
   3378     CFLAGS=
   3379   fi
   3380 fi
   3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
   3382 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
   3383 if test "${ac_cv_prog_cc_c89+set}" = set; then :
   3384   $as_echo_n "(cached) " >&6
   3385 else
   3386   ac_cv_prog_cc_c89=no
   3387 ac_save_CC=$CC
   3388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3389 /* end confdefs.h.  */
   3390 #include <stdarg.h>
   3391 #include <stdio.h>
   3392 #include <sys/types.h>
   3393 #include <sys/stat.h>
   3394 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   3395 struct buf { int x; };
   3396 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   3397 static char *e (p, i)
   3398      char **p;
   3399      int i;
   3400 {
   3401   return p[i];
   3402 }
   3403 static char *f (char * (*g) (char **, int), char **p, ...)
   3404 {
   3405   char *s;
   3406   va_list v;
   3407   va_start (v,p);
   3408   s = g (p, va_arg (v,int));
   3409   va_end (v);
   3410   return s;
   3411 }
   3412 
   3413 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
   3414    function prototypes and stuff, but not '\xHH' hex character constants.
   3415    These don't provoke an error unfortunately, instead are silently treated
   3416    as 'x'.  The following induces an error, until -std is added to get
   3417    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
   3418    array size at least.  It's necessary to write '\x00'==0 to get something
   3419    that's true only with -std.  */
   3420 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
   3421 
   3422 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
   3423    inside strings and character constants.  */
   3424 #define FOO(x) 'x'
   3425 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
   3426 
   3427 int test (int i, double x);
   3428 struct s1 {int (*f) (int a);};
   3429 struct s2 {int (*f) (double a);};
   3430 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   3431 int argc;
   3432 char **argv;
   3433 int
   3434 main ()
   3435 {
   3436 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   3437   ;
   3438   return 0;
   3439 }
   3440 _ACEOF
   3441 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
   3442 	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   3443 do
   3444   CC="$ac_save_CC $ac_arg"
   3445   if ac_fn_c_try_compile "$LINENO"; then :
   3446   ac_cv_prog_cc_c89=$ac_arg
   3447 fi
   3448 rm -f core conftest.err conftest.$ac_objext
   3449   test "x$ac_cv_prog_cc_c89" != "xno" && break
   3450 done
   3451 rm -f conftest.$ac_ext
   3452 CC=$ac_save_CC
   3453 
   3454 fi
   3455 # AC_CACHE_VAL
   3456 case "x$ac_cv_prog_cc_c89" in
   3457   x)
   3458     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   3459 $as_echo "none needed" >&6; } ;;
   3460   xno)
   3461     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
   3462 $as_echo "unsupported" >&6; } ;;
   3463   *)
   3464     CC="$CC $ac_cv_prog_cc_c89"
   3465     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
   3466 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
   3467 esac
   3468 if test "x$ac_cv_prog_cc_c89" != xno; then :
   3469 
   3470 fi
   3471 
   3472 ac_ext=c
   3473 ac_cpp='$CPP $CPPFLAGS'
   3474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3477 
   3478 
   3479 ac_ext=c
   3480 ac_cpp='$CPP $CPPFLAGS'
   3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
   3485 $as_echo_n "checking how to run the C preprocessor... " >&6; }
   3486 # On Suns, sometimes $CPP names a directory.
   3487 if test -n "$CPP" && test -d "$CPP"; then
   3488   CPP=
   3489 fi
   3490 if test -z "$CPP"; then
   3491   if test "${ac_cv_prog_CPP+set}" = set; then :
   3492   $as_echo_n "(cached) " >&6
   3493 else
   3494       # Double quotes because CPP needs to be expanded
   3495     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
   3496     do
   3497       ac_preproc_ok=false
   3498 for ac_c_preproc_warn_flag in '' yes
   3499 do
   3500   # Use a header file that comes with gcc, so configuring glibc
   3501   # with a fresh cross-compiler works.
   3502   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3503   # <limits.h> exists even on freestanding compilers.
   3504   # On the NeXT, cc -E runs the code through the compiler's parser,
   3505   # not just through cpp. "Syntax error" is here to catch this case.
   3506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3507 /* end confdefs.h.  */
   3508 #ifdef __STDC__
   3509 # include <limits.h>
   3510 #else
   3511 # include <assert.h>
   3512 #endif
   3513 		     Syntax error
   3514 _ACEOF
   3515 if ac_fn_c_try_cpp "$LINENO"; then :
   3516 
   3517 else
   3518   # Broken: fails on valid input.
   3519 continue
   3520 fi
   3521 rm -f conftest.err conftest.$ac_ext
   3522 
   3523   # OK, works on sane cases.  Now check whether nonexistent headers
   3524   # can be detected and how.
   3525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3526 /* end confdefs.h.  */
   3527 #include <ac_nonexistent.h>
   3528 _ACEOF
   3529 if ac_fn_c_try_cpp "$LINENO"; then :
   3530   # Broken: success on invalid input.
   3531 continue
   3532 else
   3533   # Passes both tests.
   3534 ac_preproc_ok=:
   3535 break
   3536 fi
   3537 rm -f conftest.err conftest.$ac_ext
   3538 
   3539 done
   3540 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3541 rm -f conftest.err conftest.$ac_ext
   3542 if $ac_preproc_ok; then :
   3543   break
   3544 fi
   3545 
   3546     done
   3547     ac_cv_prog_CPP=$CPP
   3548 
   3549 fi
   3550   CPP=$ac_cv_prog_CPP
   3551 else
   3552   ac_cv_prog_CPP=$CPP
   3553 fi
   3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
   3555 $as_echo "$CPP" >&6; }
   3556 ac_preproc_ok=false
   3557 for ac_c_preproc_warn_flag in '' yes
   3558 do
   3559   # Use a header file that comes with gcc, so configuring glibc
   3560   # with a fresh cross-compiler works.
   3561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
   3562   # <limits.h> exists even on freestanding compilers.
   3563   # On the NeXT, cc -E runs the code through the compiler's parser,
   3564   # not just through cpp. "Syntax error" is here to catch this case.
   3565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3566 /* end confdefs.h.  */
   3567 #ifdef __STDC__
   3568 # include <limits.h>
   3569 #else
   3570 # include <assert.h>
   3571 #endif
   3572 		     Syntax error
   3573 _ACEOF
   3574 if ac_fn_c_try_cpp "$LINENO"; then :
   3575 
   3576 else
   3577   # Broken: fails on valid input.
   3578 continue
   3579 fi
   3580 rm -f conftest.err conftest.$ac_ext
   3581 
   3582   # OK, works on sane cases.  Now check whether nonexistent headers
   3583   # can be detected and how.
   3584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3585 /* end confdefs.h.  */
   3586 #include <ac_nonexistent.h>
   3587 _ACEOF
   3588 if ac_fn_c_try_cpp "$LINENO"; then :
   3589   # Broken: success on invalid input.
   3590 continue
   3591 else
   3592   # Passes both tests.
   3593 ac_preproc_ok=:
   3594 break
   3595 fi
   3596 rm -f conftest.err conftest.$ac_ext
   3597 
   3598 done
   3599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
   3600 rm -f conftest.err conftest.$ac_ext
   3601 if $ac_preproc_ok; then :
   3602 
   3603 else
   3604   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   3605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   3606 as_fn_error "C preprocessor \"$CPP\" fails sanity check
   3607 See \`config.log' for more details." "$LINENO" 5; }
   3608 fi
   3609 
   3610 ac_ext=c
   3611 ac_cpp='$CPP $CPPFLAGS'
   3612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
   3613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
   3614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
   3615 
   3616 
   3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
   3618 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
   3619 if test "${ac_cv_path_GREP+set}" = set; then :
   3620   $as_echo_n "(cached) " >&6
   3621 else
   3622   if test -z "$GREP"; then
   3623   ac_path_GREP_found=false
   3624   # Loop through the user's path and test for each of PROGNAME-LIST
   3625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3627 do
   3628   IFS=$as_save_IFS
   3629   test -z "$as_dir" && as_dir=.
   3630     for ac_prog in grep ggrep; do
   3631     for ac_exec_ext in '' $ac_executable_extensions; do
   3632       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
   3633       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
   3634 # Check for GNU ac_path_GREP and select it if it is found.
   3635   # Check for GNU $ac_path_GREP
   3636 case `"$ac_path_GREP" --version 2>&1` in
   3637 *GNU*)
   3638   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
   3639 *)
   3640   ac_count=0
   3641   $as_echo_n 0123456789 >"conftest.in"
   3642   while :
   3643   do
   3644     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3645     mv "conftest.tmp" "conftest.in"
   3646     cp "conftest.in" "conftest.nl"
   3647     $as_echo 'GREP' >> "conftest.nl"
   3648     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3649     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3650     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3651     if test $ac_count -gt ${ac_path_GREP_max-0}; then
   3652       # Best one so far, save it but keep looking for a better one
   3653       ac_cv_path_GREP="$ac_path_GREP"
   3654       ac_path_GREP_max=$ac_count
   3655     fi
   3656     # 10*(2^10) chars as input seems more than enough
   3657     test $ac_count -gt 10 && break
   3658   done
   3659   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3660 esac
   3661 
   3662       $ac_path_GREP_found && break 3
   3663     done
   3664   done
   3665   done
   3666 IFS=$as_save_IFS
   3667   if test -z "$ac_cv_path_GREP"; then
   3668     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3669   fi
   3670 else
   3671   ac_cv_path_GREP=$GREP
   3672 fi
   3673 
   3674 fi
   3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
   3676 $as_echo "$ac_cv_path_GREP" >&6; }
   3677  GREP="$ac_cv_path_GREP"
   3678 
   3679 
   3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
   3681 $as_echo_n "checking for egrep... " >&6; }
   3682 if test "${ac_cv_path_EGREP+set}" = set; then :
   3683   $as_echo_n "(cached) " >&6
   3684 else
   3685   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
   3686    then ac_cv_path_EGREP="$GREP -E"
   3687    else
   3688      if test -z "$EGREP"; then
   3689   ac_path_EGREP_found=false
   3690   # Loop through the user's path and test for each of PROGNAME-LIST
   3691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   3692 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
   3693 do
   3694   IFS=$as_save_IFS
   3695   test -z "$as_dir" && as_dir=.
   3696     for ac_prog in egrep; do
   3697     for ac_exec_ext in '' $ac_executable_extensions; do
   3698       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
   3699       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
   3700 # Check for GNU ac_path_EGREP and select it if it is found.
   3701   # Check for GNU $ac_path_EGREP
   3702 case `"$ac_path_EGREP" --version 2>&1` in
   3703 *GNU*)
   3704   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
   3705 *)
   3706   ac_count=0
   3707   $as_echo_n 0123456789 >"conftest.in"
   3708   while :
   3709   do
   3710     cat "conftest.in" "conftest.in" >"conftest.tmp"
   3711     mv "conftest.tmp" "conftest.in"
   3712     cp "conftest.in" "conftest.nl"
   3713     $as_echo 'EGREP' >> "conftest.nl"
   3714     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
   3715     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
   3716     as_fn_arith $ac_count + 1 && ac_count=$as_val
   3717     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
   3718       # Best one so far, save it but keep looking for a better one
   3719       ac_cv_path_EGREP="$ac_path_EGREP"
   3720       ac_path_EGREP_max=$ac_count
   3721     fi
   3722     # 10*(2^10) chars as input seems more than enough
   3723     test $ac_count -gt 10 && break
   3724   done
   3725   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
   3726 esac
   3727 
   3728       $ac_path_EGREP_found && break 3
   3729     done
   3730   done
   3731   done
   3732 IFS=$as_save_IFS
   3733   if test -z "$ac_cv_path_EGREP"; then
   3734     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
   3735   fi
   3736 else
   3737   ac_cv_path_EGREP=$EGREP
   3738 fi
   3739 
   3740    fi
   3741 fi
   3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
   3743 $as_echo "$ac_cv_path_EGREP" >&6; }
   3744  EGREP="$ac_cv_path_EGREP"
   3745 
   3746 
   3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   3748 $as_echo_n "checking for ANSI C header files... " >&6; }
   3749 if test "${ac_cv_header_stdc+set}" = set; then :
   3750   $as_echo_n "(cached) " >&6
   3751 else
   3752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3753 /* end confdefs.h.  */
   3754 #include <stdlib.h>
   3755 #include <stdarg.h>
   3756 #include <string.h>
   3757 #include <float.h>
   3758 
   3759 int
   3760 main ()
   3761 {
   3762 
   3763   ;
   3764   return 0;
   3765 }
   3766 _ACEOF
   3767 if ac_fn_c_try_compile "$LINENO"; then :
   3768   ac_cv_header_stdc=yes
   3769 else
   3770   ac_cv_header_stdc=no
   3771 fi
   3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3773 
   3774 if test $ac_cv_header_stdc = yes; then
   3775   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   3776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3777 /* end confdefs.h.  */
   3778 #include <string.h>
   3779 
   3780 _ACEOF
   3781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3782   $EGREP "memchr" >/dev/null 2>&1; then :
   3783 
   3784 else
   3785   ac_cv_header_stdc=no
   3786 fi
   3787 rm -f conftest*
   3788 
   3789 fi
   3790 
   3791 if test $ac_cv_header_stdc = yes; then
   3792   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   3793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3794 /* end confdefs.h.  */
   3795 #include <stdlib.h>
   3796 
   3797 _ACEOF
   3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   3799   $EGREP "free" >/dev/null 2>&1; then :
   3800 
   3801 else
   3802   ac_cv_header_stdc=no
   3803 fi
   3804 rm -f conftest*
   3805 
   3806 fi
   3807 
   3808 if test $ac_cv_header_stdc = yes; then
   3809   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   3810   if test "$cross_compiling" = yes; then :
   3811   :
   3812 else
   3813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3814 /* end confdefs.h.  */
   3815 #include <ctype.h>
   3816 #include <stdlib.h>
   3817 #if ((' ' & 0x0FF) == 0x020)
   3818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   3819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   3820 #else
   3821 # define ISLOWER(c) \
   3822 		   (('a' <= (c) && (c) <= 'i') \
   3823 		     || ('j' <= (c) && (c) <= 'r') \
   3824 		     || ('s' <= (c) && (c) <= 'z'))
   3825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   3826 #endif
   3827 
   3828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   3829 int
   3830 main ()
   3831 {
   3832   int i;
   3833   for (i = 0; i < 256; i++)
   3834     if (XOR (islower (i), ISLOWER (i))
   3835 	|| toupper (i) != TOUPPER (i))
   3836       return 2;
   3837   return 0;
   3838 }
   3839 _ACEOF
   3840 if ac_fn_c_try_run "$LINENO"; then :
   3841 
   3842 else
   3843   ac_cv_header_stdc=no
   3844 fi
   3845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   3846   conftest.$ac_objext conftest.beam conftest.$ac_ext
   3847 fi
   3848 
   3849 fi
   3850 fi
   3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   3852 $as_echo "$ac_cv_header_stdc" >&6; }
   3853 if test $ac_cv_header_stdc = yes; then
   3854 
   3855 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   3856 
   3857 fi
   3858 
   3859 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
   3860 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
   3861 		  inttypes.h stdint.h unistd.h
   3862 do :
   3863   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   3864 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
   3865 "
   3866 eval as_val=\$$as_ac_Header
   3867    if test "x$as_val" = x""yes; then :
   3868   cat >>confdefs.h <<_ACEOF
   3869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   3870 _ACEOF
   3871 
   3872 fi
   3873 
   3874 done
   3875 
   3876 
   3877 
   3878   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
   3879 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
   3880   MINIX=yes
   3881 else
   3882   MINIX=
   3883 fi
   3884 
   3885 
   3886   if test "$MINIX" = yes; then
   3887 
   3888 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
   3889 
   3890 
   3891 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
   3892 
   3893 
   3894 $as_echo "#define _MINIX 1" >>confdefs.h
   3895 
   3896   fi
   3897 
   3898 
   3899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
   3900 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
   3901 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
   3902   $as_echo_n "(cached) " >&6
   3903 else
   3904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   3905 /* end confdefs.h.  */
   3906 
   3907 #	  define __EXTENSIONS__ 1
   3908 	  $ac_includes_default
   3909 int
   3910 main ()
   3911 {
   3912 
   3913   ;
   3914   return 0;
   3915 }
   3916 _ACEOF
   3917 if ac_fn_c_try_compile "$LINENO"; then :
   3918   ac_cv_safe_to_define___extensions__=yes
   3919 else
   3920   ac_cv_safe_to_define___extensions__=no
   3921 fi
   3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   3923 fi
   3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
   3925 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
   3926   test $ac_cv_safe_to_define___extensions__ = yes &&
   3927     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
   3928 
   3929   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
   3930 
   3931   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
   3932 
   3933   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
   3934 
   3935   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
   3936 
   3937 
   3938 ac_aux_dir=
   3939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
   3940   for ac_t in install-sh install.sh shtool; do
   3941     if test -f "$ac_dir/$ac_t"; then
   3942       ac_aux_dir=$ac_dir
   3943       ac_install_sh="$ac_aux_dir/$ac_t -c"
   3944       break 2
   3945     fi
   3946   done
   3947 done
   3948 if test -z "$ac_aux_dir"; then
   3949   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
   3950 fi
   3951 
   3952 # These three variables are undocumented and unsupported,
   3953 # and are intended to be withdrawn in a future Autoconf release.
   3954 # They can cause serious problems if a builder's source tree is in a directory
   3955 # whose full name contains unusual characters.
   3956 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   3957 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   3958 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   3959 
   3960 
   3961 # Make sure we can run config.sub.
   3962 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
   3963   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
   3964 
   3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
   3966 $as_echo_n "checking build system type... " >&6; }
   3967 if test "${ac_cv_build+set}" = set; then :
   3968   $as_echo_n "(cached) " >&6
   3969 else
   3970   ac_build_alias=$build_alias
   3971 test "x$ac_build_alias" = x &&
   3972   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
   3973 test "x$ac_build_alias" = x &&
   3974   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
   3975 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
   3976   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
   3977 
   3978 fi
   3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
   3980 $as_echo "$ac_cv_build" >&6; }
   3981 case $ac_cv_build in
   3982 *-*-*) ;;
   3983 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
   3984 esac
   3985 build=$ac_cv_build
   3986 ac_save_IFS=$IFS; IFS='-'
   3987 set x $ac_cv_build
   3988 shift
   3989 build_cpu=$1
   3990 build_vendor=$2
   3991 shift; shift
   3992 # Remember, the first character of IFS is used to create $*,
   3993 # except with old shells:
   3994 build_os=$*
   3995 IFS=$ac_save_IFS
   3996 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
   3997 
   3998 
   3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
   4000 $as_echo_n "checking host system type... " >&6; }
   4001 if test "${ac_cv_host+set}" = set; then :
   4002   $as_echo_n "(cached) " >&6
   4003 else
   4004   if test "x$host_alias" = x; then
   4005   ac_cv_host=$ac_cv_build
   4006 else
   4007   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
   4008     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
   4009 fi
   4010 
   4011 fi
   4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
   4013 $as_echo "$ac_cv_host" >&6; }
   4014 case $ac_cv_host in
   4015 *-*-*) ;;
   4016 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
   4017 esac
   4018 host=$ac_cv_host
   4019 ac_save_IFS=$IFS; IFS='-'
   4020 set x $ac_cv_host
   4021 shift
   4022 host_cpu=$1
   4023 host_vendor=$2
   4024 shift; shift
   4025 # Remember, the first character of IFS is used to create $*,
   4026 # except with old shells:
   4027 host_os=$*
   4028 IFS=$ac_save_IFS
   4029 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
   4030 
   4031 
   4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
   4033 $as_echo_n "checking target system type... " >&6; }
   4034 if test "${ac_cv_target+set}" = set; then :
   4035   $as_echo_n "(cached) " >&6
   4036 else
   4037   if test "x$target_alias" = x; then
   4038   ac_cv_target=$ac_cv_host
   4039 else
   4040   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
   4041     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
   4042 fi
   4043 
   4044 fi
   4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
   4046 $as_echo "$ac_cv_target" >&6; }
   4047 case $ac_cv_target in
   4048 *-*-*) ;;
   4049 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
   4050 esac
   4051 target=$ac_cv_target
   4052 ac_save_IFS=$IFS; IFS='-'
   4053 set x $ac_cv_target
   4054 shift
   4055 target_cpu=$1
   4056 target_vendor=$2
   4057 shift; shift
   4058 # Remember, the first character of IFS is used to create $*,
   4059 # except with old shells:
   4060 target_os=$*
   4061 IFS=$ac_save_IFS
   4062 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
   4063 
   4064 
   4065 # The aliases save the names the user supplied, while $host etc.
   4066 # will get canonicalized.
   4067 test -n "$target_alias" &&
   4068   test "$program_prefix$program_suffix$program_transform_name" = \
   4069     NONENONEs,x,x, &&
   4070   program_prefix=${target_alias}-
   4071 
   4072 # The tests for host and target for $enable_largefile require
   4073 # canonical names.
   4074 
   4075 
   4076 
   4077 # As the $enable_largefile decision depends on --enable-plugins we must set it
   4078 # even in directories otherwise not depending on the $plugins option.
   4079 
   4080 
   4081 # Check whether --enable-plugins was given.
   4082 if test "${enable_plugins+set}" = set; then :
   4083   enableval=$enable_plugins; case "${enableval}" in
   4084   yes | "") plugins=yes ;;
   4085   no) plugins=no ;;
   4086   *) plugins=yes ;;
   4087  esac
   4088 else
   4089   plugins=no
   4090 fi
   4091 
   4092 
   4093 
   4094 case "${host}" in
   4095   sparc-*-solaris*|i[3-7]86-*-solaris*)
   4096     # On native 32bit sparc and ia32 solaris, large-file and procfs support
   4097     # are mutually exclusive; and without procfs support, the bfd/ elf module
   4098     # cannot provide certain routines such as elfcore_write_prpsinfo
   4099     # or elfcore_write_prstatus.  So unless the user explicitly requested
   4100     # large-file support through the --enable-largefile switch, disable
   4101     # large-file support in favor of procfs support.
   4102     test "${target}" = "${host}" -a "x$plugins" = xno \
   4103       && : ${enable_largefile="no"}
   4104     ;;
   4105 esac
   4106 
   4107 # Check whether --enable-largefile was given.
   4108 if test "${enable_largefile+set}" = set; then :
   4109   enableval=$enable_largefile;
   4110 fi
   4111 
   4112 if test "$enable_largefile" != no; then
   4113 
   4114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
   4115 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
   4116 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
   4117   $as_echo_n "(cached) " >&6
   4118 else
   4119   ac_cv_sys_largefile_CC=no
   4120      if test "$GCC" != yes; then
   4121        ac_save_CC=$CC
   4122        while :; do
   4123 	 # IRIX 6.2 and later do not support large files by default,
   4124 	 # so use the C compiler's -n32 option if that helps.
   4125 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4126 /* end confdefs.h.  */
   4127 #include <sys/types.h>
   4128  /* Check that off_t can represent 2**63 - 1 correctly.
   4129     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4130     since some C++ compilers masquerading as C compilers
   4131     incorrectly reject 9223372036854775807.  */
   4132 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4133   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4134 		       && LARGE_OFF_T % 2147483647 == 1)
   4135 		      ? 1 : -1];
   4136 int
   4137 main ()
   4138 {
   4139 
   4140   ;
   4141   return 0;
   4142 }
   4143 _ACEOF
   4144 	 if ac_fn_c_try_compile "$LINENO"; then :
   4145   break
   4146 fi
   4147 rm -f core conftest.err conftest.$ac_objext
   4148 	 CC="$CC -n32"
   4149 	 if ac_fn_c_try_compile "$LINENO"; then :
   4150   ac_cv_sys_largefile_CC=' -n32'; break
   4151 fi
   4152 rm -f core conftest.err conftest.$ac_objext
   4153 	 break
   4154        done
   4155        CC=$ac_save_CC
   4156        rm -f conftest.$ac_ext
   4157     fi
   4158 fi
   4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
   4160 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
   4161   if test "$ac_cv_sys_largefile_CC" != no; then
   4162     CC=$CC$ac_cv_sys_largefile_CC
   4163   fi
   4164 
   4165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
   4166 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
   4167 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
   4168   $as_echo_n "(cached) " >&6
   4169 else
   4170   while :; do
   4171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4172 /* end confdefs.h.  */
   4173 #include <sys/types.h>
   4174  /* Check that off_t can represent 2**63 - 1 correctly.
   4175     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4176     since some C++ compilers masquerading as C compilers
   4177     incorrectly reject 9223372036854775807.  */
   4178 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4179   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4180 		       && LARGE_OFF_T % 2147483647 == 1)
   4181 		      ? 1 : -1];
   4182 int
   4183 main ()
   4184 {
   4185 
   4186   ;
   4187   return 0;
   4188 }
   4189 _ACEOF
   4190 if ac_fn_c_try_compile "$LINENO"; then :
   4191   ac_cv_sys_file_offset_bits=no; break
   4192 fi
   4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4195 /* end confdefs.h.  */
   4196 #define _FILE_OFFSET_BITS 64
   4197 #include <sys/types.h>
   4198  /* Check that off_t can represent 2**63 - 1 correctly.
   4199     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4200     since some C++ compilers masquerading as C compilers
   4201     incorrectly reject 9223372036854775807.  */
   4202 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4203   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4204 		       && LARGE_OFF_T % 2147483647 == 1)
   4205 		      ? 1 : -1];
   4206 int
   4207 main ()
   4208 {
   4209 
   4210   ;
   4211   return 0;
   4212 }
   4213 _ACEOF
   4214 if ac_fn_c_try_compile "$LINENO"; then :
   4215   ac_cv_sys_file_offset_bits=64; break
   4216 fi
   4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4218   ac_cv_sys_file_offset_bits=unknown
   4219   break
   4220 done
   4221 fi
   4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
   4223 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
   4224 case $ac_cv_sys_file_offset_bits in #(
   4225   no | unknown) ;;
   4226   *)
   4227 cat >>confdefs.h <<_ACEOF
   4228 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
   4229 _ACEOF
   4230 ;;
   4231 esac
   4232 rm -rf conftest*
   4233   if test $ac_cv_sys_file_offset_bits = unknown; then
   4234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
   4235 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
   4236 if test "${ac_cv_sys_large_files+set}" = set; then :
   4237   $as_echo_n "(cached) " >&6
   4238 else
   4239   while :; do
   4240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4241 /* end confdefs.h.  */
   4242 #include <sys/types.h>
   4243  /* Check that off_t can represent 2**63 - 1 correctly.
   4244     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4245     since some C++ compilers masquerading as C compilers
   4246     incorrectly reject 9223372036854775807.  */
   4247 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4248   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4249 		       && LARGE_OFF_T % 2147483647 == 1)
   4250 		      ? 1 : -1];
   4251 int
   4252 main ()
   4253 {
   4254 
   4255   ;
   4256   return 0;
   4257 }
   4258 _ACEOF
   4259 if ac_fn_c_try_compile "$LINENO"; then :
   4260   ac_cv_sys_large_files=no; break
   4261 fi
   4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4264 /* end confdefs.h.  */
   4265 #define _LARGE_FILES 1
   4266 #include <sys/types.h>
   4267  /* Check that off_t can represent 2**63 - 1 correctly.
   4268     We can't simply define LARGE_OFF_T to be 9223372036854775807,
   4269     since some C++ compilers masquerading as C compilers
   4270     incorrectly reject 9223372036854775807.  */
   4271 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
   4272   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
   4273 		       && LARGE_OFF_T % 2147483647 == 1)
   4274 		      ? 1 : -1];
   4275 int
   4276 main ()
   4277 {
   4278 
   4279   ;
   4280   return 0;
   4281 }
   4282 _ACEOF
   4283 if ac_fn_c_try_compile "$LINENO"; then :
   4284   ac_cv_sys_large_files=1; break
   4285 fi
   4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4287   ac_cv_sys_large_files=unknown
   4288   break
   4289 done
   4290 fi
   4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
   4292 $as_echo "$ac_cv_sys_large_files" >&6; }
   4293 case $ac_cv_sys_large_files in #(
   4294   no | unknown) ;;
   4295   *)
   4296 cat >>confdefs.h <<_ACEOF
   4297 #define _LARGE_FILES $ac_cv_sys_large_files
   4298 _ACEOF
   4299 ;;
   4300 esac
   4301 rm -rf conftest*
   4302   fi
   4303 fi
   4304 
   4305 
   4306 
   4307 
   4308 
   4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
   4310 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
   4311 if test "${am_cv_prog_cc_stdc+set}" = set; then :
   4312   $as_echo_n "(cached) " >&6
   4313 else
   4314   am_cv_prog_cc_stdc=no
   4315 ac_save_CC="$CC"
   4316 # Don't try gcc -ansi; that turns off useful extensions and
   4317 # breaks some systems' header files.
   4318 # AIX			-qlanglvl=ansi
   4319 # Ultrix and OSF/1	-std1
   4320 # HP-UX 10.20 and later	-Ae
   4321 # HP-UX older versions	-Aa -D_HPUX_SOURCE
   4322 # SVR4			-Xc -D__EXTENSIONS__
   4323 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
   4324 do
   4325   CC="$ac_save_CC $ac_arg"
   4326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   4327 /* end confdefs.h.  */
   4328 #include <stdarg.h>
   4329 #include <stdio.h>
   4330 #include <sys/types.h>
   4331 #include <sys/stat.h>
   4332 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
   4333 struct buf { int x; };
   4334 FILE * (*rcsopen) (struct buf *, struct stat *, int);
   4335 static char *e (p, i)
   4336      char **p;
   4337      int i;
   4338 {
   4339   return p[i];
   4340 }
   4341 static char *f (char * (*g) (char **, int), char **p, ...)
   4342 {
   4343   char *s;
   4344   va_list v;
   4345   va_start (v,p);
   4346   s = g (p, va_arg (v,int));
   4347   va_end (v);
   4348   return s;
   4349 }
   4350 int test (int i, double x);
   4351 struct s1 {int (*f) (int a);};
   4352 struct s2 {int (*f) (double a);};
   4353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
   4354 int argc;
   4355 char **argv;
   4356 
   4357 int
   4358 main ()
   4359 {
   4360 
   4361 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
   4362 
   4363   ;
   4364   return 0;
   4365 }
   4366 _ACEOF
   4367 if ac_fn_c_try_compile "$LINENO"; then :
   4368   am_cv_prog_cc_stdc="$ac_arg"; break
   4369 fi
   4370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   4371 done
   4372 CC="$ac_save_CC"
   4373 
   4374 fi
   4375 
   4376 if test -z "$am_cv_prog_cc_stdc"; then
   4377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
   4378 $as_echo "none needed" >&6; }
   4379 else
   4380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
   4381 $as_echo "$am_cv_prog_cc_stdc" >&6; }
   4382 fi
   4383 case "x$am_cv_prog_cc_stdc" in
   4384   x|xno) ;;
   4385   *) CC="$CC $am_cv_prog_cc_stdc" ;;
   4386 esac
   4387 
   4388 # expand $ac_aux_dir to an absolute path
   4389 am_aux_dir=`cd $ac_aux_dir && pwd`
   4390 
   4391 if test x"${install_sh}" != xset; then
   4392   case $am_aux_dir in
   4393   *\ * | *\	*)
   4394     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
   4395   *)
   4396     install_sh="\${SHELL} $am_aux_dir/install-sh"
   4397   esac
   4398 fi
   4399 
   4400 # Installed binaries are usually stripped using `strip' when the user
   4401 # run `make install-strip'.  However `strip' might not be the right
   4402 # tool to use in cross-compilation environments, therefore Automake
   4403 # will honor the `STRIP' environment variable to overrule this program.
   4404 if test "$cross_compiling" != no; then
   4405   if test -n "$ac_tool_prefix"; then
   4406   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
   4407 set dummy ${ac_tool_prefix}strip; ac_word=$2
   4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4409 $as_echo_n "checking for $ac_word... " >&6; }
   4410 if test "${ac_cv_prog_STRIP+set}" = set; then :
   4411   $as_echo_n "(cached) " >&6
   4412 else
   4413   if test -n "$STRIP"; then
   4414   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
   4415 else
   4416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4417 for as_dir in $PATH
   4418 do
   4419   IFS=$as_save_IFS
   4420   test -z "$as_dir" && as_dir=.
   4421     for ac_exec_ext in '' $ac_executable_extensions; do
   4422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4423     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
   4424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4425     break 2
   4426   fi
   4427 done
   4428   done
   4429 IFS=$as_save_IFS
   4430 
   4431 fi
   4432 fi
   4433 STRIP=$ac_cv_prog_STRIP
   4434 if test -n "$STRIP"; then
   4435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
   4436 $as_echo "$STRIP" >&6; }
   4437 else
   4438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4439 $as_echo "no" >&6; }
   4440 fi
   4441 
   4442 
   4443 fi
   4444 if test -z "$ac_cv_prog_STRIP"; then
   4445   ac_ct_STRIP=$STRIP
   4446   # Extract the first word of "strip", so it can be a program name with args.
   4447 set dummy strip; ac_word=$2
   4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4449 $as_echo_n "checking for $ac_word... " >&6; }
   4450 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
   4451   $as_echo_n "(cached) " >&6
   4452 else
   4453   if test -n "$ac_ct_STRIP"; then
   4454   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
   4455 else
   4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4457 for as_dir in $PATH
   4458 do
   4459   IFS=$as_save_IFS
   4460   test -z "$as_dir" && as_dir=.
   4461     for ac_exec_ext in '' $ac_executable_extensions; do
   4462   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4463     ac_cv_prog_ac_ct_STRIP="strip"
   4464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4465     break 2
   4466   fi
   4467 done
   4468   done
   4469 IFS=$as_save_IFS
   4470 
   4471 fi
   4472 fi
   4473 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
   4474 if test -n "$ac_ct_STRIP"; then
   4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
   4476 $as_echo "$ac_ct_STRIP" >&6; }
   4477 else
   4478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4479 $as_echo "no" >&6; }
   4480 fi
   4481 
   4482   if test "x$ac_ct_STRIP" = x; then
   4483     STRIP=":"
   4484   else
   4485     case $cross_compiling:$ac_tool_warned in
   4486 yes:)
   4487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   4488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   4489 ac_tool_warned=yes ;;
   4490 esac
   4491     STRIP=$ac_ct_STRIP
   4492   fi
   4493 else
   4494   STRIP="$ac_cv_prog_STRIP"
   4495 fi
   4496 
   4497 fi
   4498 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
   4499 
   4500 
   4501 ac_aux_dir=
   4502 for ac_dir in .. "$srcdir"/..; do
   4503   for ac_t in install-sh install.sh shtool; do
   4504     if test -f "$ac_dir/$ac_t"; then
   4505       ac_aux_dir=$ac_dir
   4506       ac_install_sh="$ac_aux_dir/$ac_t -c"
   4507       break 2
   4508     fi
   4509   done
   4510 done
   4511 if test -z "$ac_aux_dir"; then
   4512   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
   4513 fi
   4514 
   4515 # These three variables are undocumented and unsupported,
   4516 # and are intended to be withdrawn in a future Autoconf release.
   4517 # They can cause serious problems if a builder's source tree is in a directory
   4518 # whose full name contains unusual characters.
   4519 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
   4520 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
   4521 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
   4522 
   4523 
   4524 
   4525 test "$program_prefix" != NONE &&
   4526   program_transform_name="s&^&$program_prefix&;$program_transform_name"
   4527 # Use a double $ so make ignores it.
   4528 test "$program_suffix" != NONE &&
   4529   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
   4530 # Double any \ or $.
   4531 # By default was `s,x,x', remove it if useless.
   4532 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
   4533 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
   4534 
   4535 
   4536 # Dependency checking.
   4537 rm -rf .tst 2>/dev/null
   4538 mkdir .tst 2>/dev/null
   4539 if test -d .tst; then
   4540   am__leading_dot=.
   4541 else
   4542   am__leading_dot=_
   4543 fi
   4544 rmdir .tst 2>/dev/null
   4545 
   4546 DEPDIR="${am__leading_dot}deps"
   4547 
   4548 ac_config_commands="$ac_config_commands depdir"
   4549 
   4550 
   4551 depcc="$CC"   am_compiler_list=
   4552 
   4553 am_depcomp=$ac_aux_dir/depcomp
   4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
   4555 $as_echo_n "checking dependency style of $depcc... " >&6; }
   4556 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
   4557   $as_echo_n "(cached) " >&6
   4558 else
   4559   if test -f "$am_depcomp"; then
   4560   # We make a subdir and do the tests there.  Otherwise we can end up
   4561   # making bogus files that we don't know about and never remove.  For
   4562   # instance it was reported that on HP-UX the gcc test will end up
   4563   # making a dummy file named `D' -- because `-MD' means `put the output
   4564   # in D'.
   4565   mkdir conftest.dir
   4566   # Copy depcomp to subdir because otherwise we won't find it if we're
   4567   # using a relative directory.
   4568   cp "$am_depcomp" conftest.dir
   4569   cd conftest.dir
   4570   # We will build objects and dependencies in a subdirectory because
   4571   # it helps to detect inapplicable dependency modes.  For instance
   4572   # both Tru64's cc and ICC support -MD to output dependencies as a
   4573   # side effect of compilation, but ICC will put the dependencies in
   4574   # the current directory while Tru64 will put them in the object
   4575   # directory.
   4576   mkdir sub
   4577 
   4578   am_cv_CC_dependencies_compiler_type=none
   4579   if test "$am_compiler_list" = ""; then
   4580      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
   4581   fi
   4582   for depmode in $am_compiler_list; do
   4583     if test $depmode = none; then break; fi
   4584 
   4585     $as_echo "$as_me:$LINENO: trying $depmode" >&5
   4586     # Setup a source with many dependencies, because some compilers
   4587     # like to wrap large dependency lists on column 80 (with \), and
   4588     # we should not choose a depcomp mode which is confused by this.
   4589     #
   4590     # We need to recreate these files for each test, as the compiler may
   4591     # overwrite some of them when testing with obscure command lines.
   4592     # This happens at least with the AIX C compiler.
   4593     : > sub/conftest.c
   4594     for i in 1 2 3 4 5 6; do
   4595       echo '#include "conftst'$i'.h"' >> sub/conftest.c
   4596       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
   4597       # Solaris 8's {/usr,}/bin/sh.
   4598       touch sub/conftst$i.h
   4599     done
   4600     echo "include sub/conftest.Po" > confmf
   4601 
   4602     # We check with `-c' and `-o' for the sake of the "dashmstdout"
   4603     # mode.  It turns out that the SunPro C++ compiler does not properly
   4604     # handle `-M -o', and we need to detect this.
   4605     depcmd="depmode=$depmode \
   4606        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
   4607        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
   4608        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
   4609     echo "| $depcmd" | sed -e 's/  */ /g' >&5
   4610     if env $depcmd > conftest.err 2>&1 &&
   4611        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
   4612        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
   4613        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
   4614       # icc doesn't choke on unknown options, it will just issue warnings
   4615       # or remarks (even with -Werror).  So we grep stderr for any message
   4616       # that says an option was ignored or not supported.
   4617       # When given -MP, icc 7.0 and 7.1 complain thusly:
   4618       #   icc: Command line warning: ignoring option '-M'; no argument required
   4619       # The diagnosis changed in icc 8.0:
   4620       #   icc: Command line remark: option '-MP' not supported
   4621       if (grep 'ignoring option' conftest.err ||
   4622           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
   4623         am_cv_CC_dependencies_compiler_type=$depmode
   4624 	$as_echo "$as_me:$LINENO: success" >&5
   4625         break
   4626       fi
   4627     fi
   4628     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
   4629     sed -e 's/^/| /' < conftest.err >&5
   4630   done
   4631 
   4632   cd ..
   4633   rm -rf conftest.dir
   4634 else
   4635   am_cv_CC_dependencies_compiler_type=none
   4636 fi
   4637 
   4638 fi
   4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
   4640 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
   4641 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
   4642 then as_fn_error "no usable dependency style found" "$LINENO" 5
   4643 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
   4644 
   4645 fi
   4646 
   4647 
   4648 # Check for the 'make' the user wants to use.
   4649 for ac_prog in make
   4650 do
   4651   # Extract the first word of "$ac_prog", so it can be a program name with args.
   4652 set dummy $ac_prog; ac_word=$2
   4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   4654 $as_echo_n "checking for $ac_word... " >&6; }
   4655 if test "${ac_cv_prog_MAKE+set}" = set; then :
   4656   $as_echo_n "(cached) " >&6
   4657 else
   4658   if test -n "$MAKE"; then
   4659   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
   4660 else
   4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   4662 for as_dir in $PATH
   4663 do
   4664   IFS=$as_save_IFS
   4665   test -z "$as_dir" && as_dir=.
   4666     for ac_exec_ext in '' $ac_executable_extensions; do
   4667   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   4668     ac_cv_prog_MAKE="$ac_prog"
   4669     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   4670     break 2
   4671   fi
   4672 done
   4673   done
   4674 IFS=$as_save_IFS
   4675 
   4676 fi
   4677 fi
   4678 MAKE=$ac_cv_prog_MAKE
   4679 if test -n "$MAKE"; then
   4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
   4681 $as_echo "$MAKE" >&6; }
   4682 else
   4683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4684 $as_echo "no" >&6; }
   4685 fi
   4686 
   4687 
   4688   test -n "$MAKE" && break
   4689 done
   4690 
   4691 MAKE_IS_GNU=
   4692 case "`$MAKE --version 2>&1 | sed 1q`" in
   4693   *GNU*)
   4694     MAKE_IS_GNU=yes
   4695     ;;
   4696 esac
   4697  if test "$MAKE_IS_GNU" = yes; then
   4698   GMAKE_TRUE=
   4699   GMAKE_FALSE='#'
   4700 else
   4701   GMAKE_TRUE='#'
   4702   GMAKE_FALSE=
   4703 fi
   4704 
   4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
   4706 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
   4707 set x ${MAKE-make}
   4708 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
   4709 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
   4710   $as_echo_n "(cached) " >&6
   4711 else
   4712   cat >conftest.make <<\_ACEOF
   4713 SHELL = /bin/sh
   4714 all:
   4715 	@echo '@@@%%%=$(MAKE)=@@@%%%'
   4716 _ACEOF
   4717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   4718 case `${MAKE-make} -f conftest.make 2>/dev/null` in
   4719   *@@@%%%=?*=@@@%%%*)
   4720     eval ac_cv_prog_make_${ac_make}_set=yes;;
   4721   *)
   4722     eval ac_cv_prog_make_${ac_make}_set=no;;
   4723 esac
   4724 rm -f conftest.make
   4725 fi
   4726 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
   4727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4728 $as_echo "yes" >&6; }
   4729   SET_MAKE=
   4730 else
   4731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4732 $as_echo "no" >&6; }
   4733   SET_MAKE="MAKE=${MAKE-make}"
   4734 fi
   4735 
   4736 
   4737 # Configure gnulib.  We need to build gnulib under some other
   4738 # directory not "gnulib", to avoid the problem of both GDB and
   4739 # GDBserver wanting to build it in the same directory, when building
   4740 # in the source dir.
   4741 
   4742   in_src="gnulib"
   4743   in_build="build-gnulib"
   4744 
   4745   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   4746   # so they do not pile up.
   4747   ac_sub_configure_args=
   4748   ac_prev=
   4749   eval "set x $ac_configure_args"
   4750   shift
   4751   for ac_arg
   4752   do
   4753     if test -n "$ac_prev"; then
   4754       ac_prev=
   4755       continue
   4756     fi
   4757     case $ac_arg in
   4758     -cache-file | --cache-file | --cache-fil | --cache-fi \
   4759     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   4760       ac_prev=cache_file ;;
   4761     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   4762     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   4763     | --c=*)
   4764       ;;
   4765     --config-cache | -C)
   4766       ;;
   4767     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   4768       ac_prev=srcdir ;;
   4769     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   4770       ;;
   4771     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   4772       ac_prev=prefix ;;
   4773     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   4774       ;;
   4775     --disable-option-checking)
   4776       ;;
   4777     *)
   4778       case $ac_arg in
   4779       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   4780       esac
   4781       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   4782     esac
   4783   done
   4784 
   4785   # Always prepend --prefix to ensure using the same prefix
   4786   # in subdir configurations.
   4787   ac_arg="--prefix=$prefix"
   4788   case $ac_arg in
   4789   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   4790   esac
   4791   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   4792 
   4793   # Pass --silent
   4794   if test "$silent" = yes; then
   4795     ac_sub_configure_args="--silent $ac_sub_configure_args"
   4796   fi
   4797 
   4798   # Always prepend --disable-option-checking to silence warnings, since
   4799   # different subdirs can have different --enable and --with options.
   4800   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   4801 
   4802   ac_popdir=`pwd`
   4803   ac_dir=$in_build
   4804 
   4805   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   4806   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   4807   $as_echo "$ac_msg" >&6
   4808   as_dir="$ac_dir"; as_fn_mkdir_p
   4809 
   4810   case $srcdir in
   4811   [\\/]* | ?:[\\/]* )
   4812     ac_srcdir=$srcdir/$in_src ;;
   4813   *) # Relative name.
   4814     ac_srcdir=../$srcdir/$in_src ;;
   4815   esac
   4816 
   4817   cd "$ac_dir"
   4818 
   4819   ac_sub_configure=$ac_srcdir/configure
   4820 
   4821   # Make the cache file name correct relative to the subdirectory.
   4822   case $cache_file in
   4823   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   4824   *) # Relative name.
   4825     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   4826   esac
   4827 
   4828   { $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
   4829 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   4830   # The eval makes quoting arguments work.
   4831   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   4832        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   4833     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   4834 
   4835   cd "$ac_popdir"
   4836 
   4837 
   4838 
   4839 CONFIG_OBS=
   4840 CONFIG_DEPS=
   4841 CONFIG_SRCS=
   4842 ENABLE_CFLAGS=
   4843 
   4844 CONFIG_ALL=
   4845 CONFIG_CLEAN=
   4846 CONFIG_INSTALL=
   4847 CONFIG_UNINSTALL=
   4848 
   4849 # If we haven't got the data from the intl directory,
   4850 # assume NLS is disabled.
   4851 USE_NLS=no
   4852 LIBINTL=
   4853 LIBINTL_DEP=
   4854 INCINTL=
   4855 XGETTEXT=
   4856 GMSGFMT=
   4857 POSUB=
   4858 
   4859 if test -f  ../intl/config.intl; then
   4860   .  ../intl/config.intl
   4861 fi
   4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
   4863 $as_echo_n "checking whether NLS is requested... " >&6; }
   4864 if test x"$USE_NLS" != xyes; then
   4865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   4866 $as_echo "no" >&6; }
   4867 else
   4868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   4869 $as_echo "yes" >&6; }
   4870 
   4871 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
   4872 
   4873 
   4874   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
   4875 $as_echo_n "checking for catalogs to be installed... " >&6; }
   4876   # Look for .po and .gmo files in the source directory.
   4877   CATALOGS=
   4878   XLINGUAS=
   4879   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
   4880     # If there aren't any .gmo files the shell will give us the
   4881     # literal string "../path/to/srcdir/po/*.gmo" which has to be
   4882     # weeded out.
   4883     case "$cat" in *\**)
   4884       continue;;
   4885     esac
   4886     # The quadruple backslash is collapsed to a double backslash
   4887     # by the backticks, then collapsed again by the double quotes,
   4888     # leaving us with one backslash in the sed expression (right
   4889     # before the dot that mustn't act as a wildcard).
   4890     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
   4891     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
   4892     # The user is allowed to set LINGUAS to a list of languages to
   4893     # install catalogs for.  If it's empty that means "all of them."
   4894     if test "x$LINGUAS" = x; then
   4895       CATALOGS="$CATALOGS $cat"
   4896       XLINGUAS="$XLINGUAS $lang"
   4897     else
   4898       case "$LINGUAS" in *$lang*)
   4899         CATALOGS="$CATALOGS $cat"
   4900         XLINGUAS="$XLINGUAS $lang"
   4901         ;;
   4902       esac
   4903     fi
   4904   done
   4905   LINGUAS="$XLINGUAS"
   4906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
   4907 $as_echo "$LINGUAS" >&6; }
   4908 
   4909 
   4910     DATADIRNAME=share
   4911 
   4912   INSTOBJEXT=.mo
   4913 
   4914   GENCAT=gencat
   4915 
   4916   CATOBJEXT=.gmo
   4917 
   4918 fi
   4919 
   4920 localedir='${datadir}/locale'
   4921 
   4922 
   4923 if test x"$USE_NLS" = xyes; then
   4924    CONFIG_ALL="$CONFIG_ALL all-po"
   4925    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
   4926    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
   4927    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
   4928 fi
   4929 
   4930 GNULIB=build-gnulib/import
   4931 
   4932 # For Makefile dependencies.
   4933 GNULIB_STDINT_H=
   4934 if test x"$STDINT_H" != x; then
   4935   GNULIB_STDINT_H=$GNULIB/$STDINT_H
   4936 fi
   4937 
   4938 
   4939 PACKAGE=gdb
   4940 
   4941 cat >>confdefs.h <<_ACEOF
   4942 #define PACKAGE "$PACKAGE"
   4943 _ACEOF
   4944 
   4945 
   4946 
   4947 # We never need to detect it in this sub-configure.
   4948 # But preserve it for config.status --recheck.
   4949 
   4950 
   4951 
   4952 MAKEINFO_EXTRA_FLAGS=""
   4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
   4954 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
   4955 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
   4956   $as_echo_n "(cached) " >&6
   4957 else
   4958   echo '@clicksequence{a @click{} b}' >conftest.texinfo
   4959   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
   4960     gdb_cv_have_makeinfo_click=yes
   4961   else
   4962     gdb_cv_have_makeinfo_click=no
   4963   fi
   4964 fi
   4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
   4966 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
   4967 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
   4968   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
   4969 fi
   4970 
   4971 
   4972 
   4973 
   4974 # Check whether --with-separate-debug-dir was given.
   4975 if test "${with_separate_debug_dir+set}" = set; then :
   4976   withval=$with_separate_debug_dir;
   4977     DEBUGDIR=$withval
   4978 else
   4979   DEBUGDIR=${libdir}/debug
   4980 fi
   4981 
   4982 
   4983   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   4984   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   4985   ac_define_dir=`eval echo $DEBUGDIR`
   4986   ac_define_dir=`eval echo $ac_define_dir`
   4987 
   4988 cat >>confdefs.h <<_ACEOF
   4989 #define DEBUGDIR "$ac_define_dir"
   4990 _ACEOF
   4991 
   4992 
   4993 
   4994 
   4995   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   4996      if test "x$prefix" = xNONE; then
   4997      	test_prefix=/usr/local
   4998      else
   4999 	test_prefix=$prefix
   5000      fi
   5001   else
   5002      test_prefix=$exec_prefix
   5003   fi
   5004   value=0
   5005   case ${ac_define_dir} in
   5006      "${test_prefix}"|"${test_prefix}/"*|\
   5007 	'${exec_prefix}'|'${exec_prefix}/'*)
   5008      value=1
   5009      ;;
   5010   esac
   5011 
   5012 cat >>confdefs.h <<_ACEOF
   5013 #define DEBUGDIR_RELOCATABLE $value
   5014 _ACEOF
   5015 
   5016 
   5017 
   5018 
   5019 # We can't pass paths as command line arguments.
   5020 # Mingw32 tries to be clever and will convert the paths for us.
   5021 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
   5022 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
   5023 # This breaks GDB's relocatable path conversions since paths passed in
   5024 # config.h would not get so translated, the path prefixes no longer match.
   5025 
   5026   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5027   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5028   ac_define_dir=`eval echo $bindir`
   5029   ac_define_dir=`eval echo $ac_define_dir`
   5030 
   5031 cat >>confdefs.h <<_ACEOF
   5032 #define BINDIR "$ac_define_dir"
   5033 _ACEOF
   5034 
   5035 
   5036 
   5037 # GDB's datadir relocation
   5038 
   5039 
   5040 
   5041 # Check whether --with-gdb-datadir was given.
   5042 if test "${with_gdb_datadir+set}" = set; then :
   5043   withval=$with_gdb_datadir;
   5044     GDB_DATADIR=$withval
   5045 else
   5046   GDB_DATADIR=${datadir}/gdb
   5047 fi
   5048 
   5049 
   5050   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5051   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5052   ac_define_dir=`eval echo $GDB_DATADIR`
   5053   ac_define_dir=`eval echo $ac_define_dir`
   5054 
   5055 cat >>confdefs.h <<_ACEOF
   5056 #define GDB_DATADIR "$ac_define_dir"
   5057 _ACEOF
   5058 
   5059 
   5060 
   5061 
   5062   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   5063      if test "x$prefix" = xNONE; then
   5064      	test_prefix=/usr/local
   5065      else
   5066 	test_prefix=$prefix
   5067      fi
   5068   else
   5069      test_prefix=$exec_prefix
   5070   fi
   5071   value=0
   5072   case ${ac_define_dir} in
   5073      "${test_prefix}"|"${test_prefix}/"*|\
   5074 	'${exec_prefix}'|'${exec_prefix}/'*)
   5075      value=1
   5076      ;;
   5077   esac
   5078 
   5079 cat >>confdefs.h <<_ACEOF
   5080 #define GDB_DATADIR_RELOCATABLE $value
   5081 _ACEOF
   5082 
   5083 
   5084 
   5085 
   5086 
   5087 # Check whether --with-relocated-sources was given.
   5088 if test "${with_relocated_sources+set}" = set; then :
   5089   withval=$with_relocated_sources; reloc_srcdir="${withval}"
   5090 
   5091   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5092   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5093   ac_define_dir=`eval echo $reloc_srcdir`
   5094   ac_define_dir=`eval echo $ac_define_dir`
   5095 
   5096 cat >>confdefs.h <<_ACEOF
   5097 #define RELOC_SRCDIR "$ac_define_dir"
   5098 _ACEOF
   5099 
   5100 
   5101 
   5102 fi
   5103 
   5104 
   5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
   5106 $as_echo_n "checking for default auto-load directory... " >&6; }
   5107 
   5108 # Check whether --with-auto-load-dir was given.
   5109 if test "${with_auto_load_dir+set}" = set; then :
   5110   withval=$with_auto_load_dir;
   5111 else
   5112   with_auto_load_dir='$debugdir:$datadir/auto-load'
   5113 fi
   5114 
   5115 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
   5116 
   5117   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5118   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5119   ac_define_dir=`eval echo $escape_dir`
   5120   ac_define_dir=`eval echo $ac_define_dir`
   5121 
   5122 cat >>confdefs.h <<_ACEOF
   5123 #define AUTO_LOAD_DIR "$ac_define_dir"
   5124 _ACEOF
   5125 
   5126 
   5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
   5128 $as_echo "$with_auto_load_dir" >&6; }
   5129 
   5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
   5131 $as_echo_n "checking for default auto-load safe-path... " >&6; }
   5132 
   5133 # Check whether --with-auto-load-safe-path was given.
   5134 if test "${with_auto_load_safe_path+set}" = set; then :
   5135   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
   5136      with_auto_load_safe_path="/"
   5137      fi
   5138 else
   5139   with_auto_load_safe_path="$with_auto_load_dir"
   5140 fi
   5141 
   5142 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
   5143 
   5144   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   5145   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   5146   ac_define_dir=`eval echo $escape_dir`
   5147   ac_define_dir=`eval echo $ac_define_dir`
   5148 
   5149 cat >>confdefs.h <<_ACEOF
   5150 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
   5151 _ACEOF
   5152 
   5153 
   5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
   5155 $as_echo "$with_auto_load_safe_path" >&6; }
   5156 
   5157 
   5158 
   5159 subdirs="$subdirs testsuite"
   5160 
   5161 
   5162 # Check whether to support alternative target configurations
   5163 # Check whether --enable-targets was given.
   5164 if test "${enable_targets+set}" = set; then :
   5165   enableval=$enable_targets; case "${enableval}" in
   5166   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
   5167             ;;
   5168   no)       enable_targets= ;;
   5169   *)        enable_targets=$enableval ;;
   5170 esac
   5171 fi
   5172 
   5173 
   5174 # Check whether to enable 64-bit support on 32-bit hosts
   5175 # Check whether --enable-64-bit-bfd was given.
   5176 if test "${enable_64_bit_bfd+set}" = set; then :
   5177   enableval=$enable_64_bit_bfd; case "${enableval}" in
   5178   yes)  want64=true  ;;
   5179   no)   want64=false ;;
   5180   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
   5181 esac
   5182 else
   5183   want64=false
   5184 fi
   5185 
   5186 # Provide defaults for some variables set by the per-host and per-target
   5187 # configuration.
   5188 gdb_host_obs=posix-hdep.o
   5189 
   5190 if test "${target}" = "${host}"; then
   5191   gdb_native=yes
   5192 else
   5193   gdb_native=no
   5194 fi
   5195 
   5196 . $srcdir/configure.host
   5197 
   5198 # Accumulate some settings from configure.tgt over all enabled targets
   5199 
   5200 TARGET_OBS=
   5201 all_targets=
   5202 HAVE_NATIVE_GCORE_TARGET=
   5203 
   5204 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
   5205 do
   5206   if test "$targ_alias" = "all"; then
   5207     all_targets=true
   5208   else
   5209     # Canonicalize the secondary target names.
   5210     result=`$ac_config_sub $targ_alias 2>/dev/null`
   5211     if test -n "$result"; then
   5212         targ=$result
   5213     else
   5214         targ=$targ_alias
   5215     fi
   5216 
   5217     . ${srcdir}/configure.tgt
   5218 
   5219     if test -z "${gdb_target_obs}"; then :
   5220   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
   5221 fi
   5222 
   5223     # Target-specific object files
   5224     for i in ${gdb_target_obs}; do
   5225         case " $TARGET_OBS " in
   5226         *" ${i} "*) ;;
   5227         *)
   5228           TARGET_OBS="$TARGET_OBS ${i}"
   5229           ;;
   5230         esac
   5231     done
   5232 
   5233     # Check whether this target needs 64-bit CORE_ADDR
   5234     if test x${want64} = xfalse; then
   5235       . ${srcdir}/../bfd/config.bfd
   5236     fi
   5237 
   5238     # Check whether this target is native and supports gcore.
   5239     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
   5240        && $gdb_have_gcore; then
   5241       HAVE_NATIVE_GCORE_TARGET=1
   5242     fi
   5243   fi
   5244 done
   5245 
   5246 if test x${all_targets} = xtrue; then
   5247 
   5248   # We want all 64-bit targets if we either:
   5249   #  - run on a 64-bit host  or
   5250   #  - already require 64-bit support for some other target  or
   5251   #  - the --enable-64-bit-bfd option was supplied
   5252   # Otherwise we only support all 32-bit targets.
   5253   #
   5254   # NOTE: This test must be in sync with the corresponding
   5255   #       tests in BFD!
   5256 
   5257   if test x${want64} = xfalse; then
   5258     # The cast to long int works around a bug in the HP C Compiler
   5259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   5260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   5261 # This bug is HP SR number 8606223364.
   5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
   5263 $as_echo_n "checking size of long... " >&6; }
   5264 if test "${ac_cv_sizeof_long+set}" = set; then :
   5265   $as_echo_n "(cached) " >&6
   5266 else
   5267   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
   5268 
   5269 else
   5270   if test "$ac_cv_type_long" = yes; then
   5271      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   5272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   5273 { as_fn_set_status 77
   5274 as_fn_error "cannot compute sizeof (long)
   5275 See \`config.log' for more details." "$LINENO" 5; }; }
   5276    else
   5277      ac_cv_sizeof_long=0
   5278    fi
   5279 fi
   5280 
   5281 fi
   5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
   5283 $as_echo "$ac_cv_sizeof_long" >&6; }
   5284 
   5285 
   5286 
   5287 cat >>confdefs.h <<_ACEOF
   5288 #define SIZEOF_LONG $ac_cv_sizeof_long
   5289 _ACEOF
   5290 
   5291 
   5292     if test "x${ac_cv_sizeof_long}" = "x8"; then
   5293       want64=true
   5294     fi
   5295   fi
   5296   if test x${want64} = xtrue; then
   5297     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
   5298   else
   5299     TARGET_OBS='$(ALL_TARGET_OBS)'
   5300   fi
   5301 fi
   5302 
   5303 
   5304 
   5305 
   5306 # For other settings, only the main target counts.
   5307 gdb_sim=
   5308 gdb_osabi=
   5309 build_gdbserver=
   5310 targ=$target; . ${srcdir}/configure.tgt
   5311 
   5312 # Fetch the default architecture and default target vector from BFD.
   5313 targ=$target; . $srcdir/../bfd/config.bfd
   5314 
   5315 # We only want the first architecture, so strip off the others if
   5316 # there is more than one.
   5317 targ_archs=`echo $targ_archs | sed 's/ .*//'`
   5318 
   5319 if test "x$targ_archs" != x; then
   5320 
   5321 cat >>confdefs.h <<_ACEOF
   5322 #define DEFAULT_BFD_ARCH $targ_archs
   5323 _ACEOF
   5324 
   5325 fi
   5326 if test "x$targ_defvec" != x; then
   5327 
   5328 cat >>confdefs.h <<_ACEOF
   5329 #define DEFAULT_BFD_VEC $targ_defvec
   5330 _ACEOF
   5331 
   5332 fi
   5333 
   5334 # The CLI cannot be disabled yet, but may be in the future.
   5335 
   5336 # Enable CLI.
   5337 # Check whether --enable-gdbcli was given.
   5338 if test "${enable_gdbcli+set}" = set; then :
   5339   enableval=$enable_gdbcli; case $enableval in
   5340     yes)
   5341       ;;
   5342     no)
   5343       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
   5344     *)
   5345       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
   5346   esac
   5347 else
   5348   enable_gdbcli=yes
   5349 fi
   5350 
   5351 if test x"$enable_gdbcli" = xyes; then
   5352   if test -d $srcdir/cli; then
   5353     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
   5354     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
   5355     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
   5356     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
   5357   fi
   5358 fi
   5359 
   5360 # Enable MI.
   5361 # Check whether --enable-gdbmi was given.
   5362 if test "${enable_gdbmi+set}" = set; then :
   5363   enableval=$enable_gdbmi; case $enableval in
   5364     yes | no)
   5365       ;;
   5366     *)
   5367       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
   5368   esac
   5369 else
   5370   enable_gdbmi=yes
   5371 fi
   5372 
   5373 if test x"$enable_gdbmi" = xyes; then
   5374   if test -d $srcdir/mi; then
   5375     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
   5376     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
   5377     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
   5378     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
   5379   fi
   5380 fi
   5381 
   5382 # Enable TUI.
   5383 # Check whether --enable-tui was given.
   5384 if test "${enable_tui+set}" = set; then :
   5385   enableval=$enable_tui; case $enableval in
   5386     yes | no | auto)
   5387       ;;
   5388     *)
   5389       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
   5390   esac
   5391 else
   5392   enable_tui=auto
   5393 fi
   5394 
   5395 
   5396 # Enable gdbtk.
   5397 # Check whether --enable-gdbtk was given.
   5398 if test "${enable_gdbtk+set}" = set; then :
   5399   enableval=$enable_gdbtk; case $enableval in
   5400     yes | no)
   5401       ;;
   5402     *)
   5403       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
   5404   esac
   5405 else
   5406   if test -d $srcdir/gdbtk; then
   5407     enable_gdbtk=yes
   5408   else
   5409     enable_gdbtk=no
   5410   fi
   5411 fi
   5412 
   5413 # We unconditionally disable gdbtk tests on selected platforms.
   5414 case $host_os in
   5415   go32* | windows*)
   5416     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
   5417 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
   5418     enable_gdbtk=no ;;
   5419 esac
   5420 
   5421 # Libunwind support for ia64.
   5422 
   5423 
   5424 # Check whether --with-libunwind-ia64 was given.
   5425 if test "${with_libunwind_ia64+set}" = set; then :
   5426   withval=$with_libunwind_ia64;
   5427 else
   5428   with_libunwind_ia64=auto
   5429 fi
   5430 
   5431 
   5432 # Backward compatibility option.
   5433 if test "${with_libunwind+set}" = set; then
   5434   if test x"$with_libunwind_ia64" != xauto; then
   5435     as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
   5436   fi
   5437   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
   5438 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
   5439   with_libunwind_ia64="$with_libunwind"
   5440 fi
   5441 
   5442 case "$with_libunwind_ia64" in
   5443   yes | no)
   5444     ;;
   5445   auto)
   5446     for ac_header in libunwind-ia64.h
   5447 do :
   5448   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   5449 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
   5450   cat >>confdefs.h <<_ACEOF
   5451 #define HAVE_LIBUNWIND_IA64_H 1
   5452 _ACEOF
   5453 
   5454 fi
   5455 
   5456 done
   5457 
   5458     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
   5459     ;;
   5460   *)
   5461     as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
   5462     ;;
   5463 esac
   5464 
   5465 if test x"$with_libunwind_ia64" = xyes; then
   5466   for ac_header in libunwind-ia64.h
   5467 do :
   5468   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
   5469 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
   5470   cat >>confdefs.h <<_ACEOF
   5471 #define HAVE_LIBUNWIND_IA64_H 1
   5472 _ACEOF
   5473 
   5474 fi
   5475 
   5476 done
   5477 
   5478   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
   5479     as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
   5480   fi
   5481   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
   5482   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
   5483   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
   5484 fi
   5485 
   5486 opt_curses=no
   5487 
   5488 # Check whether --with-curses was given.
   5489 if test "${with_curses+set}" = set; then :
   5490   withval=$with_curses; opt_curses=$withval
   5491 fi
   5492 
   5493 
   5494 prefer_curses=no
   5495 if test "$opt_curses" = "yes"; then
   5496   prefer_curses=yes
   5497 fi
   5498 
   5499 # Profiling support.
   5500 # Check whether --enable-profiling was given.
   5501 if test "${enable_profiling+set}" = set; then :
   5502   enableval=$enable_profiling; case $enableval in
   5503     yes | no)
   5504       ;;
   5505     *)
   5506       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
   5507   esac
   5508 else
   5509   enable_profiling=no
   5510 fi
   5511 
   5512 
   5513 for ac_func in monstartup _mcleanup
   5514 do :
   5515   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   5516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   5517 eval as_val=\$$as_ac_var
   5518    if test "x$as_val" = x""yes; then :
   5519   cat >>confdefs.h <<_ACEOF
   5520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   5521 _ACEOF
   5522 
   5523 fi
   5524 done
   5525 
   5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
   5527 $as_echo_n "checking for _etext... " >&6; }
   5528 if test "${ac_cv_var__etext+set}" = set; then :
   5529   $as_echo_n "(cached) " >&6
   5530 else
   5531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5532 /* end confdefs.h.  */
   5533 #include <stdlib.h>
   5534 extern char _etext;
   5535 
   5536 int
   5537 main ()
   5538 {
   5539 free (&_etext);
   5540   ;
   5541   return 0;
   5542 }
   5543 _ACEOF
   5544 if ac_fn_c_try_link "$LINENO"; then :
   5545   ac_cv_var__etext=yes
   5546 else
   5547   ac_cv_var__etext=no
   5548 fi
   5549 rm -f core conftest.err conftest.$ac_objext \
   5550     conftest$ac_exeext conftest.$ac_ext
   5551 fi
   5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
   5553 $as_echo "$ac_cv_var__etext" >&6; }
   5554 if test $ac_cv_var__etext = yes; then
   5555 
   5556 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
   5557 
   5558 fi
   5559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
   5560 $as_echo_n "checking for etext... " >&6; }
   5561 if test "${ac_cv_var_etext+set}" = set; then :
   5562   $as_echo_n "(cached) " >&6
   5563 else
   5564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5565 /* end confdefs.h.  */
   5566 #include <stdlib.h>
   5567 extern char etext;
   5568 
   5569 int
   5570 main ()
   5571 {
   5572 free (&etext);
   5573   ;
   5574   return 0;
   5575 }
   5576 _ACEOF
   5577 if ac_fn_c_try_link "$LINENO"; then :
   5578   ac_cv_var_etext=yes
   5579 else
   5580   ac_cv_var_etext=no
   5581 fi
   5582 rm -f core conftest.err conftest.$ac_objext \
   5583     conftest$ac_exeext conftest.$ac_ext
   5584 fi
   5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
   5586 $as_echo "$ac_cv_var_etext" >&6; }
   5587 if test $ac_cv_var_etext = yes; then
   5588 
   5589 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
   5590 
   5591 fi
   5592 if test "$enable_profiling" = yes ; then
   5593   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
   5594     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
   5595   fi
   5596   PROFILE_CFLAGS=-pg
   5597   OLD_CFLAGS="$CFLAGS"
   5598   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
   5599 
   5600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
   5601 $as_echo_n "checking whether $CC supports -pg... " >&6; }
   5602 if test "${ac_cv_cc_supports_pg+set}" = set; then :
   5603   $as_echo_n "(cached) " >&6
   5604 else
   5605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   5606 /* end confdefs.h.  */
   5607 
   5608 int
   5609 main ()
   5610 {
   5611 int x;
   5612   ;
   5613   return 0;
   5614 }
   5615 _ACEOF
   5616 if ac_fn_c_try_compile "$LINENO"; then :
   5617   ac_cv_cc_supports_pg=yes
   5618 else
   5619   ac_cv_cc_supports_pg=no
   5620 fi
   5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   5622 fi
   5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
   5624 $as_echo "$ac_cv_cc_supports_pg" >&6; }
   5625 
   5626   if test $ac_cv_cc_supports_pg = no; then
   5627     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
   5628   fi
   5629 
   5630   CFLAGS="$OLD_CFLAGS"
   5631 fi
   5632 
   5633 
   5634 
   5635 # Check whether --with-pkgversion was given.
   5636 if test "${with_pkgversion+set}" = set; then :
   5637   withval=$with_pkgversion; case "$withval" in
   5638       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
   5639       no)  PKGVERSION= ;;
   5640       *)   PKGVERSION="($withval) " ;;
   5641      esac
   5642 else
   5643   PKGVERSION="(GDB) "
   5644 
   5645 fi
   5646 
   5647 
   5648 
   5649 
   5650 
   5651 # Check whether --with-bugurl was given.
   5652 if test "${with_bugurl+set}" = set; then :
   5653   withval=$with_bugurl; case "$withval" in
   5654       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
   5655       no)  BUGURL=
   5656 	   ;;
   5657       *)   BUGURL="$withval"
   5658 	   ;;
   5659      esac
   5660 else
   5661   BUGURL="http://www.gnu.org/software/gdb/bugs/"
   5662 
   5663 fi
   5664 
   5665   case ${BUGURL} in
   5666   "")
   5667     REPORT_BUGS_TO=
   5668     REPORT_BUGS_TEXI=
   5669     ;;
   5670   *)
   5671     REPORT_BUGS_TO="<$BUGURL>"
   5672     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
   5673     ;;
   5674   esac;
   5675 
   5676 
   5677 
   5678 
   5679 cat >>confdefs.h <<_ACEOF
   5680 #define PKGVERSION "$PKGVERSION"
   5681 _ACEOF
   5682 
   5683 
   5684 cat >>confdefs.h <<_ACEOF
   5685 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
   5686 _ACEOF
   5687 
   5688 
   5689 # --------------------- #
   5690 # Checks for programs.  #
   5691 # --------------------- #
   5692 
   5693 for ac_prog in gawk mawk nawk awk
   5694 do
   5695   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5696 set dummy $ac_prog; ac_word=$2
   5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5698 $as_echo_n "checking for $ac_word... " >&6; }
   5699 if test "${ac_cv_prog_AWK+set}" = set; then :
   5700   $as_echo_n "(cached) " >&6
   5701 else
   5702   if test -n "$AWK"; then
   5703   ac_cv_prog_AWK="$AWK" # Let the user override the test.
   5704 else
   5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5706 for as_dir in $PATH
   5707 do
   5708   IFS=$as_save_IFS
   5709   test -z "$as_dir" && as_dir=.
   5710     for ac_exec_ext in '' $ac_executable_extensions; do
   5711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5712     ac_cv_prog_AWK="$ac_prog"
   5713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5714     break 2
   5715   fi
   5716 done
   5717   done
   5718 IFS=$as_save_IFS
   5719 
   5720 fi
   5721 fi
   5722 AWK=$ac_cv_prog_AWK
   5723 if test -n "$AWK"; then
   5724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
   5725 $as_echo "$AWK" >&6; }
   5726 else
   5727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5728 $as_echo "no" >&6; }
   5729 fi
   5730 
   5731 
   5732   test -n "$AWK" && break
   5733 done
   5734 
   5735 # Find a good install program.  We prefer a C program (faster),
   5736 # so one script is as good as another.  But avoid the broken or
   5737 # incompatible versions:
   5738 # SysV /etc/install, /usr/sbin/install
   5739 # SunOS /usr/etc/install
   5740 # IRIX /sbin/install
   5741 # AIX /bin/install
   5742 # AmigaOS /C/install, which installs bootblocks on floppy discs
   5743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
   5744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
   5745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
   5746 # OS/2's system install, which has a completely different semantic
   5747 # ./install, which can be erroneously created by make from ./install.sh.
   5748 # Reject install programs that cannot install multiple files.
   5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
   5750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
   5751 if test -z "$INSTALL"; then
   5752 if test "${ac_cv_path_install+set}" = set; then :
   5753   $as_echo_n "(cached) " >&6
   5754 else
   5755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5756 for as_dir in $PATH
   5757 do
   5758   IFS=$as_save_IFS
   5759   test -z "$as_dir" && as_dir=.
   5760     # Account for people who put trailing slashes in PATH elements.
   5761 case $as_dir/ in #((
   5762   ./ | .// | /[cC]/* | \
   5763   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
   5764   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
   5765   /usr/ucb/* ) ;;
   5766   *)
   5767     # OSF1 and SCO ODT 3.0 have their own names for install.
   5768     # Don't use installbsd from OSF since it installs stuff as root
   5769     # by default.
   5770     for ac_prog in ginstall scoinst install; do
   5771       for ac_exec_ext in '' $ac_executable_extensions; do
   5772 	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
   5773 	  if test $ac_prog = install &&
   5774 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5775 	    # AIX install.  It has an incompatible calling convention.
   5776 	    :
   5777 	  elif test $ac_prog = install &&
   5778 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
   5779 	    # program-specific install script used by HP pwplus--don't use.
   5780 	    :
   5781 	  else
   5782 	    rm -rf conftest.one conftest.two conftest.dir
   5783 	    echo one > conftest.one
   5784 	    echo two > conftest.two
   5785 	    mkdir conftest.dir
   5786 	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
   5787 	      test -s conftest.one && test -s conftest.two &&
   5788 	      test -s conftest.dir/conftest.one &&
   5789 	      test -s conftest.dir/conftest.two
   5790 	    then
   5791 	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
   5792 	      break 3
   5793 	    fi
   5794 	  fi
   5795 	fi
   5796       done
   5797     done
   5798     ;;
   5799 esac
   5800 
   5801   done
   5802 IFS=$as_save_IFS
   5803 
   5804 rm -rf conftest.one conftest.two conftest.dir
   5805 
   5806 fi
   5807   if test "${ac_cv_path_install+set}" = set; then
   5808     INSTALL=$ac_cv_path_install
   5809   else
   5810     # As a last resort, use the slow shell script.  Don't cache a
   5811     # value for INSTALL within a source directory, because that will
   5812     # break other packages using the cache if that directory is
   5813     # removed, or if the value is a relative name.
   5814     INSTALL=$ac_install_sh
   5815   fi
   5816 fi
   5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
   5818 $as_echo "$INSTALL" >&6; }
   5819 
   5820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
   5821 # It thinks the first close brace ends the variable substitution.
   5822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
   5823 
   5824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
   5825 
   5826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
   5827 
   5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
   5829 $as_echo_n "checking whether ln -s works... " >&6; }
   5830 LN_S=$as_ln_s
   5831 if test "$LN_S" = "ln -s"; then
   5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   5833 $as_echo "yes" >&6; }
   5834 else
   5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
   5836 $as_echo "no, using $LN_S" >&6; }
   5837 fi
   5838 
   5839 if test -n "$ac_tool_prefix"; then
   5840   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
   5841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
   5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5843 $as_echo_n "checking for $ac_word... " >&6; }
   5844 if test "${ac_cv_prog_RANLIB+set}" = set; then :
   5845   $as_echo_n "(cached) " >&6
   5846 else
   5847   if test -n "$RANLIB"; then
   5848   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
   5849 else
   5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5851 for as_dir in $PATH
   5852 do
   5853   IFS=$as_save_IFS
   5854   test -z "$as_dir" && as_dir=.
   5855     for ac_exec_ext in '' $ac_executable_extensions; do
   5856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5857     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
   5858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5859     break 2
   5860   fi
   5861 done
   5862   done
   5863 IFS=$as_save_IFS
   5864 
   5865 fi
   5866 fi
   5867 RANLIB=$ac_cv_prog_RANLIB
   5868 if test -n "$RANLIB"; then
   5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
   5870 $as_echo "$RANLIB" >&6; }
   5871 else
   5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5873 $as_echo "no" >&6; }
   5874 fi
   5875 
   5876 
   5877 fi
   5878 if test -z "$ac_cv_prog_RANLIB"; then
   5879   ac_ct_RANLIB=$RANLIB
   5880   # Extract the first word of "ranlib", so it can be a program name with args.
   5881 set dummy ranlib; ac_word=$2
   5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5883 $as_echo_n "checking for $ac_word... " >&6; }
   5884 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
   5885   $as_echo_n "(cached) " >&6
   5886 else
   5887   if test -n "$ac_ct_RANLIB"; then
   5888   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
   5889 else
   5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5891 for as_dir in $PATH
   5892 do
   5893   IFS=$as_save_IFS
   5894   test -z "$as_dir" && as_dir=.
   5895     for ac_exec_ext in '' $ac_executable_extensions; do
   5896   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5897     ac_cv_prog_ac_ct_RANLIB="ranlib"
   5898     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5899     break 2
   5900   fi
   5901 done
   5902   done
   5903 IFS=$as_save_IFS
   5904 
   5905 fi
   5906 fi
   5907 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
   5908 if test -n "$ac_ct_RANLIB"; then
   5909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
   5910 $as_echo "$ac_ct_RANLIB" >&6; }
   5911 else
   5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5913 $as_echo "no" >&6; }
   5914 fi
   5915 
   5916   if test "x$ac_ct_RANLIB" = x; then
   5917     RANLIB=":"
   5918   else
   5919     case $cross_compiling:$ac_tool_warned in
   5920 yes:)
   5921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   5922 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   5923 ac_tool_warned=yes ;;
   5924 esac
   5925     RANLIB=$ac_ct_RANLIB
   5926   fi
   5927 else
   5928   RANLIB="$ac_cv_prog_RANLIB"
   5929 fi
   5930 
   5931 for ac_prog in 'bison -y' byacc
   5932 do
   5933   # Extract the first word of "$ac_prog", so it can be a program name with args.
   5934 set dummy $ac_prog; ac_word=$2
   5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5936 $as_echo_n "checking for $ac_word... " >&6; }
   5937 if test "${ac_cv_prog_YACC+set}" = set; then :
   5938   $as_echo_n "(cached) " >&6
   5939 else
   5940   if test -n "$YACC"; then
   5941   ac_cv_prog_YACC="$YACC" # Let the user override the test.
   5942 else
   5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5944 for as_dir in $PATH
   5945 do
   5946   IFS=$as_save_IFS
   5947   test -z "$as_dir" && as_dir=.
   5948     for ac_exec_ext in '' $ac_executable_extensions; do
   5949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5950     ac_cv_prog_YACC="$ac_prog"
   5951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5952     break 2
   5953   fi
   5954 done
   5955   done
   5956 IFS=$as_save_IFS
   5957 
   5958 fi
   5959 fi
   5960 YACC=$ac_cv_prog_YACC
   5961 if test -n "$YACC"; then
   5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
   5963 $as_echo "$YACC" >&6; }
   5964 else
   5965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   5966 $as_echo "no" >&6; }
   5967 fi
   5968 
   5969 
   5970   test -n "$YACC" && break
   5971 done
   5972 test -n "$YACC" || YACC="yacc"
   5973 
   5974 
   5975 if test -n "$ac_tool_prefix"; then
   5976   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
   5977 set dummy ${ac_tool_prefix}ar; ac_word=$2
   5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   5979 $as_echo_n "checking for $ac_word... " >&6; }
   5980 if test "${ac_cv_prog_AR+set}" = set; then :
   5981   $as_echo_n "(cached) " >&6
   5982 else
   5983   if test -n "$AR"; then
   5984   ac_cv_prog_AR="$AR" # Let the user override the test.
   5985 else
   5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   5987 for as_dir in $PATH
   5988 do
   5989   IFS=$as_save_IFS
   5990   test -z "$as_dir" && as_dir=.
   5991     for ac_exec_ext in '' $ac_executable_extensions; do
   5992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   5993     ac_cv_prog_AR="${ac_tool_prefix}ar"
   5994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   5995     break 2
   5996   fi
   5997 done
   5998   done
   5999 IFS=$as_save_IFS
   6000 
   6001 fi
   6002 fi
   6003 AR=$ac_cv_prog_AR
   6004 if test -n "$AR"; then
   6005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
   6006 $as_echo "$AR" >&6; }
   6007 else
   6008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6009 $as_echo "no" >&6; }
   6010 fi
   6011 
   6012 
   6013 fi
   6014 if test -z "$ac_cv_prog_AR"; then
   6015   ac_ct_AR=$AR
   6016   # Extract the first word of "ar", so it can be a program name with args.
   6017 set dummy ar; ac_word=$2
   6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6019 $as_echo_n "checking for $ac_word... " >&6; }
   6020 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
   6021   $as_echo_n "(cached) " >&6
   6022 else
   6023   if test -n "$ac_ct_AR"; then
   6024   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
   6025 else
   6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6027 for as_dir in $PATH
   6028 do
   6029   IFS=$as_save_IFS
   6030   test -z "$as_dir" && as_dir=.
   6031     for ac_exec_ext in '' $ac_executable_extensions; do
   6032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6033     ac_cv_prog_ac_ct_AR="ar"
   6034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6035     break 2
   6036   fi
   6037 done
   6038   done
   6039 IFS=$as_save_IFS
   6040 
   6041 fi
   6042 fi
   6043 ac_ct_AR=$ac_cv_prog_ac_ct_AR
   6044 if test -n "$ac_ct_AR"; then
   6045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
   6046 $as_echo "$ac_ct_AR" >&6; }
   6047 else
   6048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6049 $as_echo "no" >&6; }
   6050 fi
   6051 
   6052   if test "x$ac_ct_AR" = x; then
   6053     AR=""
   6054   else
   6055     case $cross_compiling:$ac_tool_warned in
   6056 yes:)
   6057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6059 ac_tool_warned=yes ;;
   6060 esac
   6061     AR=$ac_ct_AR
   6062   fi
   6063 else
   6064   AR="$ac_cv_prog_AR"
   6065 fi
   6066 
   6067 if test -n "$ac_tool_prefix"; then
   6068   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
   6069 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
   6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6071 $as_echo_n "checking for $ac_word... " >&6; }
   6072 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
   6073   $as_echo_n "(cached) " >&6
   6074 else
   6075   if test -n "$DLLTOOL"; then
   6076   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
   6077 else
   6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6079 for as_dir in $PATH
   6080 do
   6081   IFS=$as_save_IFS
   6082   test -z "$as_dir" && as_dir=.
   6083     for ac_exec_ext in '' $ac_executable_extensions; do
   6084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6085     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
   6086     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6087     break 2
   6088   fi
   6089 done
   6090   done
   6091 IFS=$as_save_IFS
   6092 
   6093 fi
   6094 fi
   6095 DLLTOOL=$ac_cv_prog_DLLTOOL
   6096 if test -n "$DLLTOOL"; then
   6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
   6098 $as_echo "$DLLTOOL" >&6; }
   6099 else
   6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6101 $as_echo "no" >&6; }
   6102 fi
   6103 
   6104 
   6105 fi
   6106 if test -z "$ac_cv_prog_DLLTOOL"; then
   6107   ac_ct_DLLTOOL=$DLLTOOL
   6108   # Extract the first word of "dlltool", so it can be a program name with args.
   6109 set dummy dlltool; ac_word=$2
   6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6111 $as_echo_n "checking for $ac_word... " >&6; }
   6112 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
   6113   $as_echo_n "(cached) " >&6
   6114 else
   6115   if test -n "$ac_ct_DLLTOOL"; then
   6116   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
   6117 else
   6118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6119 for as_dir in $PATH
   6120 do
   6121   IFS=$as_save_IFS
   6122   test -z "$as_dir" && as_dir=.
   6123     for ac_exec_ext in '' $ac_executable_extensions; do
   6124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6125     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
   6126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6127     break 2
   6128   fi
   6129 done
   6130   done
   6131 IFS=$as_save_IFS
   6132 
   6133 fi
   6134 fi
   6135 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
   6136 if test -n "$ac_ct_DLLTOOL"; then
   6137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
   6138 $as_echo "$ac_ct_DLLTOOL" >&6; }
   6139 else
   6140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6141 $as_echo "no" >&6; }
   6142 fi
   6143 
   6144   if test "x$ac_ct_DLLTOOL" = x; then
   6145     DLLTOOL=""
   6146   else
   6147     case $cross_compiling:$ac_tool_warned in
   6148 yes:)
   6149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6151 ac_tool_warned=yes ;;
   6152 esac
   6153     DLLTOOL=$ac_ct_DLLTOOL
   6154   fi
   6155 else
   6156   DLLTOOL="$ac_cv_prog_DLLTOOL"
   6157 fi
   6158 
   6159 if test -n "$ac_tool_prefix"; then
   6160   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
   6161 set dummy ${ac_tool_prefix}windres; ac_word=$2
   6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6163 $as_echo_n "checking for $ac_word... " >&6; }
   6164 if test "${ac_cv_prog_WINDRES+set}" = set; then :
   6165   $as_echo_n "(cached) " >&6
   6166 else
   6167   if test -n "$WINDRES"; then
   6168   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
   6169 else
   6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6171 for as_dir in $PATH
   6172 do
   6173   IFS=$as_save_IFS
   6174   test -z "$as_dir" && as_dir=.
   6175     for ac_exec_ext in '' $ac_executable_extensions; do
   6176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6177     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
   6178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6179     break 2
   6180   fi
   6181 done
   6182   done
   6183 IFS=$as_save_IFS
   6184 
   6185 fi
   6186 fi
   6187 WINDRES=$ac_cv_prog_WINDRES
   6188 if test -n "$WINDRES"; then
   6189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
   6190 $as_echo "$WINDRES" >&6; }
   6191 else
   6192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6193 $as_echo "no" >&6; }
   6194 fi
   6195 
   6196 
   6197 fi
   6198 if test -z "$ac_cv_prog_WINDRES"; then
   6199   ac_ct_WINDRES=$WINDRES
   6200   # Extract the first word of "windres", so it can be a program name with args.
   6201 set dummy windres; ac_word=$2
   6202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6203 $as_echo_n "checking for $ac_word... " >&6; }
   6204 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
   6205   $as_echo_n "(cached) " >&6
   6206 else
   6207   if test -n "$ac_ct_WINDRES"; then
   6208   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
   6209 else
   6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6211 for as_dir in $PATH
   6212 do
   6213   IFS=$as_save_IFS
   6214   test -z "$as_dir" && as_dir=.
   6215     for ac_exec_ext in '' $ac_executable_extensions; do
   6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6217     ac_cv_prog_ac_ct_WINDRES="windres"
   6218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6219     break 2
   6220   fi
   6221 done
   6222   done
   6223 IFS=$as_save_IFS
   6224 
   6225 fi
   6226 fi
   6227 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
   6228 if test -n "$ac_ct_WINDRES"; then
   6229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
   6230 $as_echo "$ac_ct_WINDRES" >&6; }
   6231 else
   6232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6233 $as_echo "no" >&6; }
   6234 fi
   6235 
   6236   if test "x$ac_ct_WINDRES" = x; then
   6237     WINDRES=""
   6238   else
   6239     case $cross_compiling:$ac_tool_warned in
   6240 yes:)
   6241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6243 ac_tool_warned=yes ;;
   6244 esac
   6245     WINDRES=$ac_ct_WINDRES
   6246   fi
   6247 else
   6248   WINDRES="$ac_cv_prog_WINDRES"
   6249 fi
   6250 
   6251 
   6252 case $host_os in
   6253   gnu*)
   6254     # Needed for GNU Hurd hosts.
   6255     if test -n "$ac_tool_prefix"; then
   6256   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
   6257 set dummy ${ac_tool_prefix}mig; ac_word=$2
   6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6259 $as_echo_n "checking for $ac_word... " >&6; }
   6260 if test "${ac_cv_prog_MIG+set}" = set; then :
   6261   $as_echo_n "(cached) " >&6
   6262 else
   6263   if test -n "$MIG"; then
   6264   ac_cv_prog_MIG="$MIG" # Let the user override the test.
   6265 else
   6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6267 for as_dir in $PATH
   6268 do
   6269   IFS=$as_save_IFS
   6270   test -z "$as_dir" && as_dir=.
   6271     for ac_exec_ext in '' $ac_executable_extensions; do
   6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6273     ac_cv_prog_MIG="${ac_tool_prefix}mig"
   6274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6275     break 2
   6276   fi
   6277 done
   6278   done
   6279 IFS=$as_save_IFS
   6280 
   6281 fi
   6282 fi
   6283 MIG=$ac_cv_prog_MIG
   6284 if test -n "$MIG"; then
   6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
   6286 $as_echo "$MIG" >&6; }
   6287 else
   6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6289 $as_echo "no" >&6; }
   6290 fi
   6291 
   6292 
   6293 fi
   6294 if test -z "$ac_cv_prog_MIG"; then
   6295   ac_ct_MIG=$MIG
   6296   # Extract the first word of "mig", so it can be a program name with args.
   6297 set dummy mig; ac_word=$2
   6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   6299 $as_echo_n "checking for $ac_word... " >&6; }
   6300 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
   6301   $as_echo_n "(cached) " >&6
   6302 else
   6303   if test -n "$ac_ct_MIG"; then
   6304   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
   6305 else
   6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   6307 for as_dir in $PATH
   6308 do
   6309   IFS=$as_save_IFS
   6310   test -z "$as_dir" && as_dir=.
   6311     for ac_exec_ext in '' $ac_executable_extensions; do
   6312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   6313     ac_cv_prog_ac_ct_MIG="mig"
   6314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   6315     break 2
   6316   fi
   6317 done
   6318   done
   6319 IFS=$as_save_IFS
   6320 
   6321 fi
   6322 fi
   6323 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
   6324 if test -n "$ac_ct_MIG"; then
   6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
   6326 $as_echo "$ac_ct_MIG" >&6; }
   6327 else
   6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   6329 $as_echo "no" >&6; }
   6330 fi
   6331 
   6332   if test "x$ac_ct_MIG" = x; then
   6333     MIG=""
   6334   else
   6335     case $cross_compiling:$ac_tool_warned in
   6336 yes:)
   6337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
   6338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
   6339 ac_tool_warned=yes ;;
   6340 esac
   6341     MIG=$ac_ct_MIG
   6342   fi
   6343 else
   6344   MIG="$ac_cv_prog_MIG"
   6345 fi
   6346 
   6347     if test x"$MIG" = x; then
   6348       as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
   6349     fi
   6350     ;;
   6351 esac
   6352 
   6353 # ---------------------- #
   6354 # Checks for libraries.  #
   6355 # ---------------------- #
   6356 
   6357 # We might need to link with -lm; most simulators need it.
   6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
   6359 $as_echo_n "checking for main in -lm... " >&6; }
   6360 if test "${ac_cv_lib_m_main+set}" = set; then :
   6361   $as_echo_n "(cached) " >&6
   6362 else
   6363   ac_check_lib_save_LIBS=$LIBS
   6364 LIBS="-lm  $LIBS"
   6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6366 /* end confdefs.h.  */
   6367 
   6368 
   6369 int
   6370 main ()
   6371 {
   6372 return main ();
   6373   ;
   6374   return 0;
   6375 }
   6376 _ACEOF
   6377 if ac_fn_c_try_link "$LINENO"; then :
   6378   ac_cv_lib_m_main=yes
   6379 else
   6380   ac_cv_lib_m_main=no
   6381 fi
   6382 rm -f core conftest.err conftest.$ac_objext \
   6383     conftest$ac_exeext conftest.$ac_ext
   6384 LIBS=$ac_check_lib_save_LIBS
   6385 fi
   6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
   6387 $as_echo "$ac_cv_lib_m_main" >&6; }
   6388 if test "x$ac_cv_lib_m_main" = x""yes; then :
   6389   cat >>confdefs.h <<_ACEOF
   6390 #define HAVE_LIBM 1
   6391 _ACEOF
   6392 
   6393   LIBS="-lm $LIBS"
   6394 
   6395 fi
   6396 
   6397 
   6398 # We need to link with -lw to get `wctype' on Solaris before Solaris
   6399 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
   6400 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
   6401 # is known to have this problem).  Therefore we avoid libw if we can.
   6402 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
   6403 if test "x$ac_cv_func_wctype" = x""yes; then :
   6404 
   6405 else
   6406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
   6407 $as_echo_n "checking for wctype in -lw... " >&6; }
   6408 if test "${ac_cv_lib_w_wctype+set}" = set; then :
   6409   $as_echo_n "(cached) " >&6
   6410 else
   6411   ac_check_lib_save_LIBS=$LIBS
   6412 LIBS="-lw  $LIBS"
   6413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6414 /* end confdefs.h.  */
   6415 
   6416 /* Override any GCC internal prototype to avoid an error.
   6417    Use char because int might match the return type of a GCC
   6418    builtin and then its argument prototype would still apply.  */
   6419 #ifdef __cplusplus
   6420 extern "C"
   6421 #endif
   6422 char wctype ();
   6423 int
   6424 main ()
   6425 {
   6426 return wctype ();
   6427   ;
   6428   return 0;
   6429 }
   6430 _ACEOF
   6431 if ac_fn_c_try_link "$LINENO"; then :
   6432   ac_cv_lib_w_wctype=yes
   6433 else
   6434   ac_cv_lib_w_wctype=no
   6435 fi
   6436 rm -f core conftest.err conftest.$ac_objext \
   6437     conftest$ac_exeext conftest.$ac_ext
   6438 LIBS=$ac_check_lib_save_LIBS
   6439 fi
   6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
   6441 $as_echo "$ac_cv_lib_w_wctype" >&6; }
   6442 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
   6443   cat >>confdefs.h <<_ACEOF
   6444 #define HAVE_LIBW 1
   6445 _ACEOF
   6446 
   6447   LIBS="-lw $LIBS"
   6448 
   6449 fi
   6450 
   6451 fi
   6452 
   6453 
   6454 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
   6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
   6456 $as_echo_n "checking for library containing gethostbyname... " >&6; }
   6457 if test "${ac_cv_search_gethostbyname+set}" = set; then :
   6458   $as_echo_n "(cached) " >&6
   6459 else
   6460   ac_func_search_save_LIBS=$LIBS
   6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6462 /* end confdefs.h.  */
   6463 
   6464 /* Override any GCC internal prototype to avoid an error.
   6465    Use char because int might match the return type of a GCC
   6466    builtin and then its argument prototype would still apply.  */
   6467 #ifdef __cplusplus
   6468 extern "C"
   6469 #endif
   6470 char gethostbyname ();
   6471 int
   6472 main ()
   6473 {
   6474 return gethostbyname ();
   6475   ;
   6476   return 0;
   6477 }
   6478 _ACEOF
   6479 for ac_lib in '' nsl; do
   6480   if test -z "$ac_lib"; then
   6481     ac_res="none required"
   6482   else
   6483     ac_res=-l$ac_lib
   6484     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6485   fi
   6486   if ac_fn_c_try_link "$LINENO"; then :
   6487   ac_cv_search_gethostbyname=$ac_res
   6488 fi
   6489 rm -f core conftest.err conftest.$ac_objext \
   6490     conftest$ac_exeext
   6491   if test "${ac_cv_search_gethostbyname+set}" = set; then :
   6492   break
   6493 fi
   6494 done
   6495 if test "${ac_cv_search_gethostbyname+set}" = set; then :
   6496 
   6497 else
   6498   ac_cv_search_gethostbyname=no
   6499 fi
   6500 rm conftest.$ac_ext
   6501 LIBS=$ac_func_search_save_LIBS
   6502 fi
   6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
   6504 $as_echo "$ac_cv_search_gethostbyname" >&6; }
   6505 ac_res=$ac_cv_search_gethostbyname
   6506 if test "$ac_res" != no; then :
   6507   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6508 
   6509 fi
   6510 
   6511 
   6512 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
   6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
   6514 $as_echo_n "checking for library containing socketpair... " >&6; }
   6515 if test "${ac_cv_search_socketpair+set}" = set; then :
   6516   $as_echo_n "(cached) " >&6
   6517 else
   6518   ac_func_search_save_LIBS=$LIBS
   6519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6520 /* end confdefs.h.  */
   6521 
   6522 /* Override any GCC internal prototype to avoid an error.
   6523    Use char because int might match the return type of a GCC
   6524    builtin and then its argument prototype would still apply.  */
   6525 #ifdef __cplusplus
   6526 extern "C"
   6527 #endif
   6528 char socketpair ();
   6529 int
   6530 main ()
   6531 {
   6532 return socketpair ();
   6533   ;
   6534   return 0;
   6535 }
   6536 _ACEOF
   6537 for ac_lib in '' socket; do
   6538   if test -z "$ac_lib"; then
   6539     ac_res="none required"
   6540   else
   6541     ac_res=-l$ac_lib
   6542     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6543   fi
   6544   if ac_fn_c_try_link "$LINENO"; then :
   6545   ac_cv_search_socketpair=$ac_res
   6546 fi
   6547 rm -f core conftest.err conftest.$ac_objext \
   6548     conftest$ac_exeext
   6549   if test "${ac_cv_search_socketpair+set}" = set; then :
   6550   break
   6551 fi
   6552 done
   6553 if test "${ac_cv_search_socketpair+set}" = set; then :
   6554 
   6555 else
   6556   ac_cv_search_socketpair=no
   6557 fi
   6558 rm conftest.$ac_ext
   6559 LIBS=$ac_func_search_save_LIBS
   6560 fi
   6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
   6562 $as_echo "$ac_cv_search_socketpair" >&6; }
   6563 ac_res=$ac_cv_search_socketpair
   6564 if test "$ac_res" != no; then :
   6565   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6566 
   6567 fi
   6568 
   6569 
   6570 # Link in zlib if we can.  This allows us to read compressed debug sections.
   6571 
   6572   # See if the user specified whether he wants zlib support or not.
   6573 
   6574 # Check whether --with-zlib was given.
   6575 if test "${with_zlib+set}" = set; then :
   6576   withval=$with_zlib;
   6577 else
   6578   with_zlib=auto
   6579 fi
   6580 
   6581 
   6582   if test "$with_zlib" != "no"; then
   6583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
   6584 $as_echo_n "checking for library containing zlibVersion... " >&6; }
   6585 if test "${ac_cv_search_zlibVersion+set}" = set; then :
   6586   $as_echo_n "(cached) " >&6
   6587 else
   6588   ac_func_search_save_LIBS=$LIBS
   6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6590 /* end confdefs.h.  */
   6591 
   6592 /* Override any GCC internal prototype to avoid an error.
   6593    Use char because int might match the return type of a GCC
   6594    builtin and then its argument prototype would still apply.  */
   6595 #ifdef __cplusplus
   6596 extern "C"
   6597 #endif
   6598 char zlibVersion ();
   6599 int
   6600 main ()
   6601 {
   6602 return zlibVersion ();
   6603   ;
   6604   return 0;
   6605 }
   6606 _ACEOF
   6607 for ac_lib in '' z; do
   6608   if test -z "$ac_lib"; then
   6609     ac_res="none required"
   6610   else
   6611     ac_res=-l$ac_lib
   6612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6613   fi
   6614   if ac_fn_c_try_link "$LINENO"; then :
   6615   ac_cv_search_zlibVersion=$ac_res
   6616 fi
   6617 rm -f core conftest.err conftest.$ac_objext \
   6618     conftest$ac_exeext
   6619   if test "${ac_cv_search_zlibVersion+set}" = set; then :
   6620   break
   6621 fi
   6622 done
   6623 if test "${ac_cv_search_zlibVersion+set}" = set; then :
   6624 
   6625 else
   6626   ac_cv_search_zlibVersion=no
   6627 fi
   6628 rm conftest.$ac_ext
   6629 LIBS=$ac_func_search_save_LIBS
   6630 fi
   6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
   6632 $as_echo "$ac_cv_search_zlibVersion" >&6; }
   6633 ac_res=$ac_cv_search_zlibVersion
   6634 if test "$ac_res" != no; then :
   6635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6636   for ac_header in zlib.h
   6637 do :
   6638   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
   6639 if test "x$ac_cv_header_zlib_h" = x""yes; then :
   6640   cat >>confdefs.h <<_ACEOF
   6641 #define HAVE_ZLIB_H 1
   6642 _ACEOF
   6643 
   6644 fi
   6645 
   6646 done
   6647 
   6648 fi
   6649 
   6650     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
   6651       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
   6652     fi
   6653   fi
   6654 
   6655 
   6656 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
   6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
   6658 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
   6659 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
   6660   $as_echo_n "(cached) " >&6
   6661 else
   6662   ac_func_search_save_LIBS=$LIBS
   6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6664 /* end confdefs.h.  */
   6665 
   6666 /* Override any GCC internal prototype to avoid an error.
   6667    Use char because int might match the return type of a GCC
   6668    builtin and then its argument prototype would still apply.  */
   6669 #ifdef __cplusplus
   6670 extern "C"
   6671 #endif
   6672 char dlgetmodinfo ();
   6673 int
   6674 main ()
   6675 {
   6676 return dlgetmodinfo ();
   6677   ;
   6678   return 0;
   6679 }
   6680 _ACEOF
   6681 for ac_lib in '' dl xpdl; do
   6682   if test -z "$ac_lib"; then
   6683     ac_res="none required"
   6684   else
   6685     ac_res=-l$ac_lib
   6686     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   6687   fi
   6688   if ac_fn_c_try_link "$LINENO"; then :
   6689   ac_cv_search_dlgetmodinfo=$ac_res
   6690 fi
   6691 rm -f core conftest.err conftest.$ac_objext \
   6692     conftest$ac_exeext
   6693   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
   6694   break
   6695 fi
   6696 done
   6697 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
   6698 
   6699 else
   6700   ac_cv_search_dlgetmodinfo=no
   6701 fi
   6702 rm conftest.$ac_ext
   6703 LIBS=$ac_func_search_save_LIBS
   6704 fi
   6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
   6706 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
   6707 ac_res=$ac_cv_search_dlgetmodinfo
   6708 if test "$ac_res" != no; then :
   6709   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   6710 
   6711 fi
   6712 
   6713 
   6714 
   6715 
   6716 
   6717 # Check whether --with-libiconv-prefix was given.
   6718 if test "${with_libiconv_prefix+set}" = set; then :
   6719   withval=$with_libiconv_prefix;
   6720     for dir in `echo "$withval" | tr : ' '`; do
   6721       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
   6722       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
   6723     done
   6724 
   6725 fi
   6726 
   6727 
   6728   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
   6729   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
   6730 
   6731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
   6732 $as_echo_n "checking for iconv... " >&6; }
   6733 if test "${am_cv_func_iconv+set}" = set; then :
   6734   $as_echo_n "(cached) " >&6
   6735 else
   6736 
   6737     am_cv_func_iconv="no, consider installing GNU libiconv"
   6738     am_cv_lib_iconv=no
   6739     am_cv_use_build_libiconv=no
   6740     am_cv_build_libiconv_path=
   6741 
   6742     # If libiconv is part of the build tree, then try using it over
   6743     # any system iconv.
   6744     if test -d ../libiconv; then
   6745       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
   6746         am_save_LIBS="$LIBS"
   6747         am_save_CPPFLAGS="$CPPFLAGS"
   6748         LIBS="$LIBS $lib_dir/libiconv.a"
   6749         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
   6750         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6751 /* end confdefs.h.  */
   6752 #include <stdlib.h>
   6753 #include <iconv.h>
   6754 int
   6755 main ()
   6756 {
   6757 iconv_t cd = iconv_open("","");
   6758            iconv(cd,NULL,NULL,NULL,NULL);
   6759            iconv_close(cd);
   6760   ;
   6761   return 0;
   6762 }
   6763 _ACEOF
   6764 if ac_fn_c_try_link "$LINENO"; then :
   6765   am_cv_use_build_libiconv=yes
   6766           am_cv_build_libiconv_path=$lib_dir/libiconv.a
   6767           am_cv_lib_iconv=yes
   6768           am_cv_func_iconv=yes
   6769 fi
   6770 rm -f core conftest.err conftest.$ac_objext \
   6771     conftest$ac_exeext conftest.$ac_ext
   6772         LIBS="$am_save_LIBS"
   6773         CPPFLAGS="$am_save_CPPFLAGS"
   6774         if test "$am_cv_use_build_libiconv" = "yes"; then
   6775           break
   6776         fi
   6777       done
   6778     fi
   6779 
   6780     # Next, try to find iconv in libc.
   6781     if test "$am_cv_func_iconv" != yes; then
   6782       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6783 /* end confdefs.h.  */
   6784 #include <stdlib.h>
   6785 #include <iconv.h>
   6786 int
   6787 main ()
   6788 {
   6789 iconv_t cd = iconv_open("","");
   6790          iconv(cd,NULL,NULL,NULL,NULL);
   6791          iconv_close(cd);
   6792   ;
   6793   return 0;
   6794 }
   6795 _ACEOF
   6796 if ac_fn_c_try_link "$LINENO"; then :
   6797   am_cv_func_iconv=yes
   6798 fi
   6799 rm -f core conftest.err conftest.$ac_objext \
   6800     conftest$ac_exeext conftest.$ac_ext
   6801     fi
   6802 
   6803     # If iconv was not in libc, try -liconv.  In this case, arrange to
   6804     # look in the libiconv prefix, if it was specified by the user.
   6805     if test "$am_cv_func_iconv" != yes; then
   6806       am_save_CPPFLAGS="$CPPFLAGS"
   6807       am_save_LIBS="$LIBS"
   6808       if test -n "$LIBICONV_INCLUDE"; then
   6809         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
   6810         LIBS="$LIBS $LIBICONV_LIBDIR"
   6811       fi
   6812       LIBS="$LIBS -liconv"
   6813       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6814 /* end confdefs.h.  */
   6815 #include <stdlib.h>
   6816 #include <iconv.h>
   6817 int
   6818 main ()
   6819 {
   6820 iconv_t cd = iconv_open("","");
   6821          iconv(cd,NULL,NULL,NULL,NULL);
   6822          iconv_close(cd);
   6823   ;
   6824   return 0;
   6825 }
   6826 _ACEOF
   6827 if ac_fn_c_try_link "$LINENO"; then :
   6828   am_cv_lib_iconv=yes
   6829         am_cv_func_iconv=yes
   6830 fi
   6831 rm -f core conftest.err conftest.$ac_objext \
   6832     conftest$ac_exeext conftest.$ac_ext
   6833       LIBS="$am_save_LIBS"
   6834       CPPFLAGS="$am_save_CPPFLAGS"
   6835     fi
   6836 
   6837 fi
   6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
   6839 $as_echo "$am_cv_func_iconv" >&6; }
   6840 
   6841   # Set the various flags based on the cache variables.  We can't rely
   6842   # on the flags to remain set from the above code, due to caching.
   6843   LIBICONV=
   6844   if test "$am_cv_lib_iconv" = yes; then
   6845     LIBICONV="-liconv"
   6846   else
   6847     LIBICONV_LIBDIR=
   6848     LIBICONV_INCLUDE=
   6849   fi
   6850   if test "$am_cv_use_build_libiconv" = yes; then
   6851     LIBICONV="$am_cv_build_libiconv_path"
   6852     LIBICONV_LIBDIR=""
   6853     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
   6854   fi
   6855   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
   6856   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
   6857 
   6858   if test "$am_cv_func_iconv" = yes; then
   6859 
   6860 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
   6861 
   6862     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
   6863 $as_echo_n "checking for iconv declaration... " >&6; }
   6864     if test "${am_cv_proto_iconv+set}" = set; then :
   6865   $as_echo_n "(cached) " >&6
   6866 else
   6867 
   6868       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   6869 /* end confdefs.h.  */
   6870 
   6871 #include <stdlib.h>
   6872 #include <iconv.h>
   6873 extern
   6874 #ifdef __cplusplus
   6875 "C"
   6876 #endif
   6877 #if defined(__STDC__) || defined(__cplusplus)
   6878 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
   6879 #else
   6880 size_t iconv();
   6881 #endif
   6882 
   6883 int
   6884 main ()
   6885 {
   6886 
   6887   ;
   6888   return 0;
   6889 }
   6890 _ACEOF
   6891 if ac_fn_c_try_compile "$LINENO"; then :
   6892   am_cv_proto_iconv_arg1=""
   6893 else
   6894   am_cv_proto_iconv_arg1="const"
   6895 fi
   6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   6897       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);"
   6898 fi
   6899 
   6900     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
   6901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
   6902          }$am_cv_proto_iconv" >&5
   6903 $as_echo "${ac_t:-
   6904          }$am_cv_proto_iconv" >&6; }
   6905 
   6906 cat >>confdefs.h <<_ACEOF
   6907 #define ICONV_CONST $am_cv_proto_iconv_arg1
   6908 _ACEOF
   6909 
   6910   fi
   6911 
   6912 
   6913 # GDB may fork/exec the iconv program to get the list of supported character
   6914 # sets.  Allow the user to specify where to find it.
   6915 # There are several factors affecting the choice of option name:
   6916 # - There is already --with-libiconv-prefix but we can't use it, it specifies
   6917 #   the build-time location of libiconv files.
   6918 # - The program we need to find is iconv, which comes with glibc.  The user
   6919 #   doesn't necessarily have libiconv installed.  Therefore naming this
   6920 #   --with-libiconv-foo feels wrong.
   6921 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
   6922 #   defined to work on directories not files (though it really doesn't know
   6923 #   the difference).
   6924 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
   6925 #   with --with-libiconv-prefix.
   6926 # Putting these together is why the option name is --with-iconv-bin.
   6927 
   6928 
   6929 # Check whether --with-iconv-bin was given.
   6930 if test "${with_iconv_bin+set}" = set; then :
   6931   withval=$with_iconv_bin; iconv_bin="${withval}"
   6932 
   6933 cat >>confdefs.h <<_ACEOF
   6934 #define ICONV_BIN "${iconv_bin}"
   6935 _ACEOF
   6936 
   6937 
   6938   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   6939      if test "x$prefix" = xNONE; then
   6940      	test_prefix=/usr/local
   6941      else
   6942 	test_prefix=$prefix
   6943      fi
   6944   else
   6945      test_prefix=$exec_prefix
   6946   fi
   6947   value=0
   6948   case ${iconv_bin} in
   6949      "${test_prefix}"|"${test_prefix}/"*|\
   6950 	'${exec_prefix}'|'${exec_prefix}/'*)
   6951      value=1
   6952      ;;
   6953   esac
   6954 
   6955 cat >>confdefs.h <<_ACEOF
   6956 #define ICONV_BIN_RELOCATABLE $value
   6957 _ACEOF
   6958 
   6959 
   6960 
   6961 fi
   6962 
   6963 
   6964 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
   6965 # There is a very specific comment in /usr/include/curses.h explaining that
   6966 # termcap routines built into libcurses must not be used.
   6967 #
   6968 # The symptoms we observed so far is GDB unexpectedly changing
   6969 # the terminal settings when tgetent is called - this is particularly
   6970 # visible as the output is missing carriage returns, and so rapidly
   6971 # becomes very hard to read.
   6972 #
   6973 # The readline configure script has already decided that libtermcap
   6974 # was enough for its purposes, and so decided to build readline using
   6975 # libtermcap.  Since the TUI mode requires curses, building GDB with
   6976 # TUI enabled results in both libraries to be used at the same time,
   6977 # which is not allowed.  This basically means that GDB with TUI is
   6978 # broken on alpha-osf.
   6979 
   6980 case $host_os in
   6981   osf* )
   6982     if test x"$enable_tui" = xyes; then
   6983       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
   6984     fi
   6985     if test x"$enable_tui" = xauto; then
   6986       enable_tui=no
   6987     fi
   6988     ;;
   6989 esac
   6990 
   6991 # For the TUI, we need enhanced curses functionality.
   6992 if test x"$enable_tui" != xno; then
   6993   prefer_curses=yes
   6994 fi
   6995 
   6996 curses_found=no
   6997 if test x"$prefer_curses" = xyes; then
   6998   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
   6999   # curses library because the latter might not provide all the
   7000   # functionality we need.  However, this leads to problems on systems
   7001   # where the linker searches /usr/local/lib, but the compiler doesn't
   7002   # search /usr/local/include, if ncurses is installed in /usr/local.  A
   7003   # default installation of ncurses on alpha*-dec-osf* will lead to such
   7004   # a situation.
   7005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
   7006 $as_echo_n "checking for library containing waddstr... " >&6; }
   7007 if test "${ac_cv_search_waddstr+set}" = set; then :
   7008   $as_echo_n "(cached) " >&6
   7009 else
   7010   ac_func_search_save_LIBS=$LIBS
   7011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7012 /* end confdefs.h.  */
   7013 
   7014 /* Override any GCC internal prototype to avoid an error.
   7015    Use char because int might match the return type of a GCC
   7016    builtin and then its argument prototype would still apply.  */
   7017 #ifdef __cplusplus
   7018 extern "C"
   7019 #endif
   7020 char waddstr ();
   7021 int
   7022 main ()
   7023 {
   7024 return waddstr ();
   7025   ;
   7026   return 0;
   7027 }
   7028 _ACEOF
   7029 for ac_lib in '' ncurses cursesX curses; do
   7030   if test -z "$ac_lib"; then
   7031     ac_res="none required"
   7032   else
   7033     ac_res=-l$ac_lib
   7034     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7035   fi
   7036   if ac_fn_c_try_link "$LINENO"; then :
   7037   ac_cv_search_waddstr=$ac_res
   7038 fi
   7039 rm -f core conftest.err conftest.$ac_objext \
   7040     conftest$ac_exeext
   7041   if test "${ac_cv_search_waddstr+set}" = set; then :
   7042   break
   7043 fi
   7044 done
   7045 if test "${ac_cv_search_waddstr+set}" = set; then :
   7046 
   7047 else
   7048   ac_cv_search_waddstr=no
   7049 fi
   7050 rm conftest.$ac_ext
   7051 LIBS=$ac_func_search_save_LIBS
   7052 fi
   7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
   7054 $as_echo "$ac_cv_search_waddstr" >&6; }
   7055 ac_res=$ac_cv_search_waddstr
   7056 if test "$ac_res" != no; then :
   7057   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7058 
   7059 fi
   7060 
   7061 
   7062   if test "$ac_cv_search_waddstr" != no; then
   7063     curses_found=yes
   7064   fi
   7065 fi
   7066 
   7067 # Check whether we should enable the TUI, but only do so if we really
   7068 # can.
   7069 if test x"$enable_tui" != xno; then
   7070   if test -d $srcdir/tui; then
   7071     if test "$curses_found" != no; then
   7072       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
   7073       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
   7074       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
   7075       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
   7076     else
   7077       if test x"$enable_tui" = xyes; then
   7078 	as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
   7079       else
   7080 	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
   7081 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
   7082       fi
   7083     fi
   7084   fi
   7085 fi
   7086 
   7087 # Since GDB uses Readline, we need termcap functionality.  In many
   7088 # cases this will be provided by the curses library, but some systems
   7089 # have a seperate termcap library, or no curses library at all.
   7090 
   7091 case $host_os in
   7092   cygwin*)
   7093     if test -d $srcdir/libtermcap; then
   7094       LIBS="../libtermcap/libtermcap.a $LIBS"
   7095       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
   7096     fi ;;
   7097   go32* | *djgpp*)
   7098     ac_cv_search_tgetent="none required"
   7099     ;;
   7100   *mingw32*)
   7101     ac_cv_search_tgetent="none required"
   7102     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
   7103     ;;
   7104 esac
   7105 
   7106 # These are the libraries checked by Readline.
   7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
   7108 $as_echo_n "checking for library containing tgetent... " >&6; }
   7109 if test "${ac_cv_search_tgetent+set}" = set; then :
   7110   $as_echo_n "(cached) " >&6
   7111 else
   7112   ac_func_search_save_LIBS=$LIBS
   7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7114 /* end confdefs.h.  */
   7115 
   7116 /* Override any GCC internal prototype to avoid an error.
   7117    Use char because int might match the return type of a GCC
   7118    builtin and then its argument prototype would still apply.  */
   7119 #ifdef __cplusplus
   7120 extern "C"
   7121 #endif
   7122 char tgetent ();
   7123 int
   7124 main ()
   7125 {
   7126 return tgetent ();
   7127   ;
   7128   return 0;
   7129 }
   7130 _ACEOF
   7131 for ac_lib in '' termcap tinfo curses ncurses; do
   7132   if test -z "$ac_lib"; then
   7133     ac_res="none required"
   7134   else
   7135     ac_res=-l$ac_lib
   7136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7137   fi
   7138   if ac_fn_c_try_link "$LINENO"; then :
   7139   ac_cv_search_tgetent=$ac_res
   7140 fi
   7141 rm -f core conftest.err conftest.$ac_objext \
   7142     conftest$ac_exeext
   7143   if test "${ac_cv_search_tgetent+set}" = set; then :
   7144   break
   7145 fi
   7146 done
   7147 if test "${ac_cv_search_tgetent+set}" = set; then :
   7148 
   7149 else
   7150   ac_cv_search_tgetent=no
   7151 fi
   7152 rm conftest.$ac_ext
   7153 LIBS=$ac_func_search_save_LIBS
   7154 fi
   7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
   7156 $as_echo "$ac_cv_search_tgetent" >&6; }
   7157 ac_res=$ac_cv_search_tgetent
   7158 if test "$ac_res" != no; then :
   7159   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7160 
   7161 fi
   7162 
   7163 
   7164 if test "$ac_cv_search_tgetent" = no; then
   7165   as_fn_error "no termcap library found" "$LINENO" 5
   7166 fi
   7167 
   7168 
   7169 # Check whether --with-system-readline was given.
   7170 if test "${with_system_readline+set}" = set; then :
   7171   withval=$with_system_readline;
   7172 fi
   7173 
   7174 
   7175 if test "$with_system_readline" = yes; then
   7176   READLINE=-lreadline
   7177   READLINE_DEPS=
   7178   READLINE_CFLAGS=
   7179   READLINE_TEXI_INCFLAG=
   7180 else
   7181   READLINE='$(READLINE_DIR)/libreadline.a'
   7182   READLINE_DEPS='$(READLINE)'
   7183   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
   7184   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
   7185 fi
   7186 
   7187 
   7188 
   7189 
   7190 
   7191 # Generate jit-reader.h
   7192 
   7193 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
   7194 TARGET_PTR=
   7195 
   7196 # The cast to long int works around a bug in the HP C Compiler
   7197 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7198 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7199 # This bug is HP SR number 8606223364.
   7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
   7201 $as_echo_n "checking size of unsigned long long... " >&6; }
   7202 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
   7203   $as_echo_n "(cached) " >&6
   7204 else
   7205   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
   7206 
   7207 else
   7208   if test "$ac_cv_type_unsigned_long_long" = yes; then
   7209      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7211 { as_fn_set_status 77
   7212 as_fn_error "cannot compute sizeof (unsigned long long)
   7213 See \`config.log' for more details." "$LINENO" 5; }; }
   7214    else
   7215      ac_cv_sizeof_unsigned_long_long=0
   7216    fi
   7217 fi
   7218 
   7219 fi
   7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
   7221 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
   7222 
   7223 
   7224 
   7225 cat >>confdefs.h <<_ACEOF
   7226 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
   7227 _ACEOF
   7228 
   7229 
   7230 # The cast to long int works around a bug in the HP C Compiler
   7231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7233 # This bug is HP SR number 8606223364.
   7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
   7235 $as_echo_n "checking size of unsigned long... " >&6; }
   7236 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
   7237   $as_echo_n "(cached) " >&6
   7238 else
   7239   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
   7240 
   7241 else
   7242   if test "$ac_cv_type_unsigned_long" = yes; then
   7243      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7245 { as_fn_set_status 77
   7246 as_fn_error "cannot compute sizeof (unsigned long)
   7247 See \`config.log' for more details." "$LINENO" 5; }; }
   7248    else
   7249      ac_cv_sizeof_unsigned_long=0
   7250    fi
   7251 fi
   7252 
   7253 fi
   7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
   7255 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
   7256 
   7257 
   7258 
   7259 cat >>confdefs.h <<_ACEOF
   7260 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
   7261 _ACEOF
   7262 
   7263 
   7264 # The cast to long int works around a bug in the HP C Compiler
   7265 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
   7266 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
   7267 # This bug is HP SR number 8606223364.
   7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
   7269 $as_echo_n "checking size of unsigned __int128... " >&6; }
   7270 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
   7271   $as_echo_n "(cached) " >&6
   7272 else
   7273   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
   7274 
   7275 else
   7276   if test "$ac_cv_type_unsigned___int128" = yes; then
   7277      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
   7278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
   7279 { as_fn_set_status 77
   7280 as_fn_error "cannot compute sizeof (unsigned __int128)
   7281 See \`config.log' for more details." "$LINENO" 5; }; }
   7282    else
   7283      ac_cv_sizeof_unsigned___int128=0
   7284    fi
   7285 fi
   7286 
   7287 fi
   7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
   7289 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
   7290 
   7291 
   7292 
   7293 cat >>confdefs.h <<_ACEOF
   7294 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
   7295 _ACEOF
   7296 
   7297 
   7298 
   7299 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
   7300   TARGET_PTR="unsigned long"
   7301 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
   7302   TARGET_PTR="unsigned long long"
   7303 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
   7304   TARGET_PTR="unsigned __int128"
   7305 else
   7306   TARGET_PTR="unsigned long"
   7307 fi
   7308 
   7309 
   7310 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
   7311 
   7312 
   7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   7314 $as_echo_n "checking for library containing dlopen... " >&6; }
   7315 if test "${ac_cv_search_dlopen+set}" = set; then :
   7316   $as_echo_n "(cached) " >&6
   7317 else
   7318   ac_func_search_save_LIBS=$LIBS
   7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   7320 /* end confdefs.h.  */
   7321 
   7322 /* Override any GCC internal prototype to avoid an error.
   7323    Use char because int might match the return type of a GCC
   7324    builtin and then its argument prototype would still apply.  */
   7325 #ifdef __cplusplus
   7326 extern "C"
   7327 #endif
   7328 char dlopen ();
   7329 int
   7330 main ()
   7331 {
   7332 return dlopen ();
   7333   ;
   7334   return 0;
   7335 }
   7336 _ACEOF
   7337 for ac_lib in '' dl; do
   7338   if test -z "$ac_lib"; then
   7339     ac_res="none required"
   7340   else
   7341     ac_res=-l$ac_lib
   7342     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   7343   fi
   7344   if ac_fn_c_try_link "$LINENO"; then :
   7345   ac_cv_search_dlopen=$ac_res
   7346 fi
   7347 rm -f core conftest.err conftest.$ac_objext \
   7348     conftest$ac_exeext
   7349   if test "${ac_cv_search_dlopen+set}" = set; then :
   7350   break
   7351 fi
   7352 done
   7353 if test "${ac_cv_search_dlopen+set}" = set; then :
   7354 
   7355 else
   7356   ac_cv_search_dlopen=no
   7357 fi
   7358 rm conftest.$ac_ext
   7359 LIBS=$ac_func_search_save_LIBS
   7360 fi
   7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   7362 $as_echo "$ac_cv_search_dlopen" >&6; }
   7363 ac_res=$ac_cv_search_dlopen
   7364 if test "$ac_res" != no; then :
   7365   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   7366 
   7367 fi
   7368 
   7369 
   7370 
   7371 
   7372 # Check whether --with-jit-reader-dir was given.
   7373 if test "${with_jit_reader_dir+set}" = set; then :
   7374   withval=$with_jit_reader_dir;
   7375     JIT_READER_DIR=$withval
   7376 else
   7377   JIT_READER_DIR=${libdir}/gdb
   7378 fi
   7379 
   7380 
   7381   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   7382   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   7383   ac_define_dir=`eval echo $JIT_READER_DIR`
   7384   ac_define_dir=`eval echo $ac_define_dir`
   7385 
   7386 cat >>confdefs.h <<_ACEOF
   7387 #define JIT_READER_DIR "$ac_define_dir"
   7388 _ACEOF
   7389 
   7390 
   7391 
   7392 
   7393   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   7394      if test "x$prefix" = xNONE; then
   7395      	test_prefix=/usr/local
   7396      else
   7397 	test_prefix=$prefix
   7398      fi
   7399   else
   7400      test_prefix=$exec_prefix
   7401   fi
   7402   value=0
   7403   case ${ac_define_dir} in
   7404      "${test_prefix}"|"${test_prefix}/"*|\
   7405 	'${exec_prefix}'|'${exec_prefix}/'*)
   7406      value=1
   7407      ;;
   7408   esac
   7409 
   7410 cat >>confdefs.h <<_ACEOF
   7411 #define JIT_READER_DIR_RELOCATABLE $value
   7412 _ACEOF
   7413 
   7414 
   7415 
   7416 
   7417 
   7418 # Check whether --with-expat was given.
   7419 if test "${with_expat+set}" = set; then :
   7420   withval=$with_expat;
   7421 else
   7422   with_expat=auto
   7423 fi
   7424 
   7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
   7426 $as_echo_n "checking whether to use expat... " >&6; }
   7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
   7428 $as_echo "$with_expat" >&6; }
   7429 
   7430 if test "${with_expat}" = no; then
   7431   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
   7432 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
   7433   HAVE_LIBEXPAT=no
   7434 else
   7435 
   7436       if test "X$prefix" = "XNONE"; then
   7437     acl_final_prefix="$ac_default_prefix"
   7438   else
   7439     acl_final_prefix="$prefix"
   7440   fi
   7441   if test "X$exec_prefix" = "XNONE"; then
   7442     acl_final_exec_prefix='${prefix}'
   7443   else
   7444     acl_final_exec_prefix="$exec_prefix"
   7445   fi
   7446   acl_save_prefix="$prefix"
   7447   prefix="$acl_final_prefix"
   7448   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
   7449   prefix="$acl_save_prefix"
   7450 
   7451 
   7452 # Check whether --with-gnu-ld was given.
   7453 if test "${with_gnu_ld+set}" = set; then :
   7454   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
   7455 else
   7456   with_gnu_ld=no
   7457 fi
   7458 
   7459 # Prepare PATH_SEPARATOR.
   7460 # The user is always right.
   7461 if test "${PATH_SEPARATOR+set}" != set; then
   7462   echo "#! /bin/sh" >conf$$.sh
   7463   echo  "exit 0"   >>conf$$.sh
   7464   chmod +x conf$$.sh
   7465   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   7466     PATH_SEPARATOR=';'
   7467   else
   7468     PATH_SEPARATOR=:
   7469   fi
   7470   rm -f conf$$.sh
   7471 fi
   7472 ac_prog=ld
   7473 if test "$GCC" = yes; then
   7474   # Check if gcc -print-prog-name=ld gives a path.
   7475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
   7476 $as_echo_n "checking for ld used by GCC... " >&6; }
   7477   case $host in
   7478   *-*-mingw*)
   7479     # gcc leaves a trailing carriage return which upsets mingw
   7480     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   7481   *)
   7482     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   7483   esac
   7484   case $ac_prog in
   7485     # Accept absolute paths.
   7486     [\\/]* | [A-Za-z]:[\\/]*)
   7487       re_direlt='/[^/][^/]*/\.\./'
   7488       # Canonicalize the path of ld
   7489       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   7490       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   7491 	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   7492       done
   7493       test -z "$LD" && LD="$ac_prog"
   7494       ;;
   7495   "")
   7496     # If it fails, then pretend we aren't using GCC.
   7497     ac_prog=ld
   7498     ;;
   7499   *)
   7500     # If it is relative, then search for the first ld in PATH.
   7501     with_gnu_ld=unknown
   7502     ;;
   7503   esac
   7504 elif test "$with_gnu_ld" = yes; then
   7505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
   7506 $as_echo_n "checking for GNU ld... " >&6; }
   7507 else
   7508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
   7509 $as_echo_n "checking for non-GNU ld... " >&6; }
   7510 fi
   7511 if test "${acl_cv_path_LD+set}" = set; then :
   7512   $as_echo_n "(cached) " >&6
   7513 else
   7514   if test -z "$LD"; then
   7515   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   7516   for ac_dir in $PATH; do
   7517     test -z "$ac_dir" && ac_dir=.
   7518     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   7519       acl_cv_path_LD="$ac_dir/$ac_prog"
   7520       # Check to see if the program is GNU ld.  I'd rather use --version,
   7521       # but apparently some GNU ld's only accept -v.
   7522       # Break only if it was the GNU/non-GNU ld that we prefer.
   7523       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
   7524 	test "$with_gnu_ld" != no && break
   7525       else
   7526 	test "$with_gnu_ld" != yes && break
   7527       fi
   7528     fi
   7529   done
   7530   IFS="$ac_save_ifs"
   7531 else
   7532   acl_cv_path_LD="$LD" # Let the user override the test with a path.
   7533 fi
   7534 fi
   7535 
   7536 LD="$acl_cv_path_LD"
   7537 if test -n "$LD"; then
   7538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
   7539 $as_echo "$LD" >&6; }
   7540 else
   7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   7542 $as_echo "no" >&6; }
   7543 fi
   7544 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
   7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
   7546 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
   7547 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
   7548   $as_echo_n "(cached) " >&6
   7549 else
   7550   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
   7551 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   7552   acl_cv_prog_gnu_ld=yes
   7553 else
   7554   acl_cv_prog_gnu_ld=no
   7555 fi
   7556 fi
   7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
   7558 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
   7559 with_gnu_ld=$acl_cv_prog_gnu_ld
   7560 
   7561 
   7562 
   7563                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
   7564 $as_echo_n "checking for shared library run path origin... " >&6; }
   7565 if test "${acl_cv_rpath+set}" = set; then :
   7566   $as_echo_n "(cached) " >&6
   7567 else
   7568 
   7569     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
   7570     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
   7571     . ./conftest.sh
   7572     rm -f ./conftest.sh
   7573     acl_cv_rpath=done
   7574 
   7575 fi
   7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
   7577 $as_echo "$acl_cv_rpath" >&6; }
   7578   wl="$acl_cv_wl"
   7579   libext="$acl_cv_libext"
   7580   shlibext="$acl_cv_shlibext"
   7581   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
   7582   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
   7583   hardcode_direct="$acl_cv_hardcode_direct"
   7584   hardcode_minus_L="$acl_cv_hardcode_minus_L"
   7585     # Check whether --enable-rpath was given.
   7586 if test "${enable_rpath+set}" = set; then :
   7587   enableval=$enable_rpath; :
   7588 else
   7589   enable_rpath=yes
   7590 fi
   7591 
   7592 
   7593 
   7594 
   7595 
   7596 
   7597 
   7598 
   7599 
   7600 
   7601     use_additional=yes
   7602 
   7603   acl_save_prefix="$prefix"
   7604   prefix="$acl_final_prefix"
   7605   acl_save_exec_prefix="$exec_prefix"
   7606   exec_prefix="$acl_final_exec_prefix"
   7607 
   7608     eval additional_includedir=\"$includedir\"
   7609     eval additional_libdir=\"$libdir\"
   7610 
   7611   exec_prefix="$acl_save_exec_prefix"
   7612   prefix="$acl_save_prefix"
   7613 
   7614 
   7615 # Check whether --with-libexpat-prefix was given.
   7616 if test "${with_libexpat_prefix+set}" = set; then :
   7617   withval=$with_libexpat_prefix;
   7618     if test "X$withval" = "Xno"; then
   7619       use_additional=no
   7620     else
   7621       if test "X$withval" = "X"; then
   7622 
   7623   acl_save_prefix="$prefix"
   7624   prefix="$acl_final_prefix"
   7625   acl_save_exec_prefix="$exec_prefix"
   7626   exec_prefix="$acl_final_exec_prefix"
   7627 
   7628           eval additional_includedir=\"$includedir\"
   7629           eval additional_libdir=\"$libdir\"
   7630 
   7631   exec_prefix="$acl_save_exec_prefix"
   7632   prefix="$acl_save_prefix"
   7633 
   7634       else
   7635         additional_includedir="$withval/include"
   7636         additional_libdir="$withval/lib"
   7637       fi
   7638     fi
   7639 
   7640 fi
   7641 
   7642       LIBEXPAT=
   7643   LTLIBEXPAT=
   7644   INCEXPAT=
   7645   rpathdirs=
   7646   ltrpathdirs=
   7647   names_already_handled=
   7648   names_next_round='expat '
   7649   while test -n "$names_next_round"; do
   7650     names_this_round="$names_next_round"
   7651     names_next_round=
   7652     for name in $names_this_round; do
   7653       already_handled=
   7654       for n in $names_already_handled; do
   7655         if test "$n" = "$name"; then
   7656           already_handled=yes
   7657           break
   7658         fi
   7659       done
   7660       if test -z "$already_handled"; then
   7661         names_already_handled="$names_already_handled $name"
   7662                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   7663         eval value=\"\$HAVE_LIB$uppername\"
   7664         if test -n "$value"; then
   7665           if test "$value" = yes; then
   7666             eval value=\"\$LIB$uppername\"
   7667             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
   7668             eval value=\"\$LTLIB$uppername\"
   7669             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
   7670           else
   7671                                     :
   7672           fi
   7673         else
   7674                               found_dir=
   7675           found_la=
   7676           found_so=
   7677           found_a=
   7678           if test $use_additional = yes; then
   7679             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   7680               found_dir="$additional_libdir"
   7681               found_so="$additional_libdir/lib$name.$shlibext"
   7682               if test -f "$additional_libdir/lib$name.la"; then
   7683                 found_la="$additional_libdir/lib$name.la"
   7684               fi
   7685             else
   7686               if test -f "$additional_libdir/lib$name.$libext"; then
   7687                 found_dir="$additional_libdir"
   7688                 found_a="$additional_libdir/lib$name.$libext"
   7689                 if test -f "$additional_libdir/lib$name.la"; then
   7690                   found_la="$additional_libdir/lib$name.la"
   7691                 fi
   7692               fi
   7693             fi
   7694           fi
   7695           if test "X$found_dir" = "X"; then
   7696             for x in $LDFLAGS $LTLIBEXPAT; do
   7697 
   7698   acl_save_prefix="$prefix"
   7699   prefix="$acl_final_prefix"
   7700   acl_save_exec_prefix="$exec_prefix"
   7701   exec_prefix="$acl_final_exec_prefix"
   7702   eval x=\"$x\"
   7703   exec_prefix="$acl_save_exec_prefix"
   7704   prefix="$acl_save_prefix"
   7705 
   7706               case "$x" in
   7707                 -L*)
   7708                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   7709                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   7710                     found_dir="$dir"
   7711                     found_so="$dir/lib$name.$shlibext"
   7712                     if test -f "$dir/lib$name.la"; then
   7713                       found_la="$dir/lib$name.la"
   7714                     fi
   7715                   else
   7716                     if test -f "$dir/lib$name.$libext"; then
   7717                       found_dir="$dir"
   7718                       found_a="$dir/lib$name.$libext"
   7719                       if test -f "$dir/lib$name.la"; then
   7720                         found_la="$dir/lib$name.la"
   7721                       fi
   7722                     fi
   7723                   fi
   7724                   ;;
   7725               esac
   7726               if test "X$found_dir" != "X"; then
   7727                 break
   7728               fi
   7729             done
   7730           fi
   7731           if test "X$found_dir" != "X"; then
   7732                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
   7733             if test "X$found_so" != "X"; then
   7734                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   7735                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   7736               else
   7737                                                                                 haveit=
   7738                 for x in $ltrpathdirs; do
   7739                   if test "X$x" = "X$found_dir"; then
   7740                     haveit=yes
   7741                     break
   7742                   fi
   7743                 done
   7744                 if test -z "$haveit"; then
   7745                   ltrpathdirs="$ltrpathdirs $found_dir"
   7746                 fi
   7747                                 if test "$hardcode_direct" = yes; then
   7748                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   7749                 else
   7750                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   7751                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   7752                                                             haveit=
   7753                     for x in $rpathdirs; do
   7754                       if test "X$x" = "X$found_dir"; then
   7755                         haveit=yes
   7756                         break
   7757                       fi
   7758                     done
   7759                     if test -z "$haveit"; then
   7760                       rpathdirs="$rpathdirs $found_dir"
   7761                     fi
   7762                   else
   7763                                                                                 haveit=
   7764                     for x in $LDFLAGS $LIBEXPAT; do
   7765 
   7766   acl_save_prefix="$prefix"
   7767   prefix="$acl_final_prefix"
   7768   acl_save_exec_prefix="$exec_prefix"
   7769   exec_prefix="$acl_final_exec_prefix"
   7770   eval x=\"$x\"
   7771   exec_prefix="$acl_save_exec_prefix"
   7772   prefix="$acl_save_prefix"
   7773 
   7774                       if test "X$x" = "X-L$found_dir"; then
   7775                         haveit=yes
   7776                         break
   7777                       fi
   7778                     done
   7779                     if test -z "$haveit"; then
   7780                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
   7781                     fi
   7782                     if test "$hardcode_minus_L" != no; then
   7783                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
   7784                     else
   7785                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   7786                     fi
   7787                   fi
   7788                 fi
   7789               fi
   7790             else
   7791               if test "X$found_a" != "X"; then
   7792                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
   7793               else
   7794                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
   7795               fi
   7796             fi
   7797                         additional_includedir=
   7798             case "$found_dir" in
   7799               */lib | */lib/)
   7800                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   7801                 additional_includedir="$basedir/include"
   7802                 ;;
   7803             esac
   7804             if test "X$additional_includedir" != "X"; then
   7805                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   7806                 haveit=
   7807                 if test "X$additional_includedir" = "X/usr/local/include"; then
   7808                   if test -n "$GCC"; then
   7809                     case $host_os in
   7810                       linux*) haveit=yes;;
   7811                     esac
   7812                   fi
   7813                 fi
   7814                 if test -z "$haveit"; then
   7815                   for x in $CPPFLAGS $INCEXPAT; do
   7816 
   7817   acl_save_prefix="$prefix"
   7818   prefix="$acl_final_prefix"
   7819   acl_save_exec_prefix="$exec_prefix"
   7820   exec_prefix="$acl_final_exec_prefix"
   7821   eval x=\"$x\"
   7822   exec_prefix="$acl_save_exec_prefix"
   7823   prefix="$acl_save_prefix"
   7824 
   7825                     if test "X$x" = "X-I$additional_includedir"; then
   7826                       haveit=yes
   7827                       break
   7828                     fi
   7829                   done
   7830                   if test -z "$haveit"; then
   7831                     if test -d "$additional_includedir"; then
   7832                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
   7833                     fi
   7834                   fi
   7835                 fi
   7836               fi
   7837             fi
   7838                         if test -n "$found_la"; then
   7839                                                         save_libdir="$libdir"
   7840               case "$found_la" in
   7841                 */* | *\\*) . "$found_la" ;;
   7842                 *) . "./$found_la" ;;
   7843               esac
   7844               libdir="$save_libdir"
   7845                             for dep in $dependency_libs; do
   7846                 case "$dep" in
   7847                   -L*)
   7848                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   7849                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   7850                       haveit=
   7851                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   7852                         if test -n "$GCC"; then
   7853                           case $host_os in
   7854                             linux*) haveit=yes;;
   7855                           esac
   7856                         fi
   7857                       fi
   7858                       if test -z "$haveit"; then
   7859                         haveit=
   7860                         for x in $LDFLAGS $LIBEXPAT; do
   7861 
   7862   acl_save_prefix="$prefix"
   7863   prefix="$acl_final_prefix"
   7864   acl_save_exec_prefix="$exec_prefix"
   7865   exec_prefix="$acl_final_exec_prefix"
   7866   eval x=\"$x\"
   7867   exec_prefix="$acl_save_exec_prefix"
   7868   prefix="$acl_save_prefix"
   7869 
   7870                           if test "X$x" = "X-L$additional_libdir"; then
   7871                             haveit=yes
   7872                             break
   7873                           fi
   7874                         done
   7875                         if test -z "$haveit"; then
   7876                           if test -d "$additional_libdir"; then
   7877                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
   7878                           fi
   7879                         fi
   7880                         haveit=
   7881                         for x in $LDFLAGS $LTLIBEXPAT; do
   7882 
   7883   acl_save_prefix="$prefix"
   7884   prefix="$acl_final_prefix"
   7885   acl_save_exec_prefix="$exec_prefix"
   7886   exec_prefix="$acl_final_exec_prefix"
   7887   eval x=\"$x\"
   7888   exec_prefix="$acl_save_exec_prefix"
   7889   prefix="$acl_save_prefix"
   7890 
   7891                           if test "X$x" = "X-L$additional_libdir"; then
   7892                             haveit=yes
   7893                             break
   7894                           fi
   7895                         done
   7896                         if test -z "$haveit"; then
   7897                           if test -d "$additional_libdir"; then
   7898                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
   7899                           fi
   7900                         fi
   7901                       fi
   7902                     fi
   7903                     ;;
   7904                   -R*)
   7905                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   7906                     if test "$enable_rpath" != no; then
   7907                                                                   haveit=
   7908                       for x in $rpathdirs; do
   7909                         if test "X$x" = "X$dir"; then
   7910                           haveit=yes
   7911                           break
   7912                         fi
   7913                       done
   7914                       if test -z "$haveit"; then
   7915                         rpathdirs="$rpathdirs $dir"
   7916                       fi
   7917                                                                   haveit=
   7918                       for x in $ltrpathdirs; do
   7919                         if test "X$x" = "X$dir"; then
   7920                           haveit=yes
   7921                           break
   7922                         fi
   7923                       done
   7924                       if test -z "$haveit"; then
   7925                         ltrpathdirs="$ltrpathdirs $dir"
   7926                       fi
   7927                     fi
   7928                     ;;
   7929                   -l*)
   7930                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   7931                     ;;
   7932                   *.la)
   7933                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   7934                     ;;
   7935                   *)
   7936                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
   7937                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
   7938                     ;;
   7939                 esac
   7940               done
   7941             fi
   7942           else
   7943                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
   7944             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
   7945           fi
   7946         fi
   7947       fi
   7948     done
   7949   done
   7950   if test "X$rpathdirs" != "X"; then
   7951     if test -n "$hardcode_libdir_separator"; then
   7952                         alldirs=
   7953       for found_dir in $rpathdirs; do
   7954         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   7955       done
   7956             acl_save_libdir="$libdir"
   7957       libdir="$alldirs"
   7958       eval flag=\"$hardcode_libdir_flag_spec\"
   7959       libdir="$acl_save_libdir"
   7960       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   7961     else
   7962             for found_dir in $rpathdirs; do
   7963         acl_save_libdir="$libdir"
   7964         libdir="$found_dir"
   7965         eval flag=\"$hardcode_libdir_flag_spec\"
   7966         libdir="$acl_save_libdir"
   7967         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
   7968       done
   7969     fi
   7970   fi
   7971   if test "X$ltrpathdirs" != "X"; then
   7972             for found_dir in $ltrpathdirs; do
   7973       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
   7974     done
   7975   fi
   7976 
   7977 
   7978         ac_save_CPPFLAGS="$CPPFLAGS"
   7979 
   7980   for element in $INCEXPAT; do
   7981     haveit=
   7982     for x in $CPPFLAGS; do
   7983 
   7984   acl_save_prefix="$prefix"
   7985   prefix="$acl_final_prefix"
   7986   acl_save_exec_prefix="$exec_prefix"
   7987   exec_prefix="$acl_final_exec_prefix"
   7988   eval x=\"$x\"
   7989   exec_prefix="$acl_save_exec_prefix"
   7990   prefix="$acl_save_prefix"
   7991 
   7992       if test "X$x" = "X$element"; then
   7993         haveit=yes
   7994         break
   7995       fi
   7996     done
   7997     if test -z "$haveit"; then
   7998       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   7999     fi
   8000   done
   8001 
   8002 
   8003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
   8004 $as_echo_n "checking for libexpat... " >&6; }
   8005 if test "${ac_cv_libexpat+set}" = set; then :
   8006   $as_echo_n "(cached) " >&6
   8007 else
   8008 
   8009     ac_save_LIBS="$LIBS"
   8010     LIBS="$LIBS $LIBEXPAT"
   8011     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8012 /* end confdefs.h.  */
   8013 #include "expat.h"
   8014 int
   8015 main ()
   8016 {
   8017 XML_Parser p = XML_ParserCreate (0);
   8018   ;
   8019   return 0;
   8020 }
   8021 _ACEOF
   8022 if ac_fn_c_try_link "$LINENO"; then :
   8023   ac_cv_libexpat=yes
   8024 else
   8025   ac_cv_libexpat=no
   8026 fi
   8027 rm -f core conftest.err conftest.$ac_objext \
   8028     conftest$ac_exeext conftest.$ac_ext
   8029     LIBS="$ac_save_LIBS"
   8030 
   8031 fi
   8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
   8033 $as_echo "$ac_cv_libexpat" >&6; }
   8034   if test "$ac_cv_libexpat" = yes; then
   8035     HAVE_LIBEXPAT=yes
   8036 
   8037 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
   8038 
   8039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
   8040 $as_echo_n "checking how to link with libexpat... " >&6; }
   8041     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
   8042 $as_echo "$LIBEXPAT" >&6; }
   8043   else
   8044     HAVE_LIBEXPAT=no
   8045             CPPFLAGS="$ac_save_CPPFLAGS"
   8046     LIBEXPAT=
   8047     LTLIBEXPAT=
   8048   fi
   8049 
   8050 
   8051 
   8052 
   8053 
   8054 
   8055   if test "$HAVE_LIBEXPAT" != yes; then
   8056     if test "$with_expat" = yes; then
   8057       as_fn_error "expat is missing or unusable" "$LINENO" 5
   8058     else
   8059       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
   8060 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
   8061     fi
   8062   else
   8063     save_LIBS=$LIBS
   8064     LIBS="$LIBS $LIBEXPAT"
   8065     for ac_func in XML_StopParser
   8066 do :
   8067   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
   8068 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
   8069   cat >>confdefs.h <<_ACEOF
   8070 #define HAVE_XML_STOPPARSER 1
   8071 _ACEOF
   8072 
   8073 fi
   8074 done
   8075 
   8076     LIBS=$save_LIBS
   8077   fi
   8078 fi
   8079 
   8080 # --------------------- #
   8081 # Check for libpython.  #
   8082 # --------------------- #
   8083 
   8084 
   8085 
   8086 
   8087 
   8088 
   8089 # Check whether --with-python was given.
   8090 if test "${with_python+set}" = set; then :
   8091   withval=$with_python;
   8092 else
   8093   with_python=auto
   8094 fi
   8095 
   8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
   8097 $as_echo_n "checking whether to use python... " >&6; }
   8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
   8099 $as_echo "$with_python" >&6; }
   8100 
   8101 if test "${with_python}" = no; then
   8102   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
   8103 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
   8104   have_libpython=no
   8105 else
   8106   case "${with_python}" in
   8107   [\\/]* | ?:[\\/]*)
   8108     if test -d ${with_python}; then
   8109       # Assume the python binary is ${with_python}/bin/python.
   8110       python_prog="${with_python}/bin/python"
   8111       python_prefix=
   8112       # If python does not exit ${with_python}/bin, then try in
   8113       # ${with_python}.  On Windows/MinGW, this is where the Python
   8114       # executable is.
   8115       if test ! -x "${python_prog}"; then
   8116         python_prog="${with_python}/python"
   8117         python_prefix=
   8118       fi
   8119       if test ! -x "${python_prog}"; then
   8120         # Fall back to gdb 7.0/7.1 behaviour.
   8121         python_prog=missing
   8122         python_prefix=${with_python}
   8123       fi
   8124     elif test -x "${with_python}"; then
   8125       # While we can't run python compiled for $host (unless host == build),
   8126       # the user could write a script that provides the needed information,
   8127       # so we support that.
   8128       python_prog=${with_python}
   8129       python_prefix=
   8130     else
   8131       as_fn_error "invalid value for --with-python" "$LINENO" 5
   8132     fi
   8133     ;;
   8134   */*)
   8135     # Disallow --with-python=foo/bar.
   8136     as_fn_error "invalid value for --with-python" "$LINENO" 5
   8137     ;;
   8138   *)
   8139     # The user has either specified auto, yes, or the name of the python
   8140     # program assumed to be in $PATH.
   8141     python_prefix=
   8142     case "${with_python}" in
   8143     yes | auto)
   8144       if test ${build} = ${host}; then
   8145         # Extract the first word of "python", so it can be a program name with args.
   8146 set dummy python; ac_word=$2
   8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8148 $as_echo_n "checking for $ac_word... " >&6; }
   8149 if test "${ac_cv_path_python_prog_path+set}" = set; then :
   8150   $as_echo_n "(cached) " >&6
   8151 else
   8152   case $python_prog_path in
   8153   [\\/]* | ?:[\\/]*)
   8154   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   8155   ;;
   8156   *)
   8157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8158 for as_dir in $PATH
   8159 do
   8160   IFS=$as_save_IFS
   8161   test -z "$as_dir" && as_dir=.
   8162     for ac_exec_ext in '' $ac_executable_extensions; do
   8163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8164     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   8165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8166     break 2
   8167   fi
   8168 done
   8169   done
   8170 IFS=$as_save_IFS
   8171 
   8172   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   8173   ;;
   8174 esac
   8175 fi
   8176 python_prog_path=$ac_cv_path_python_prog_path
   8177 if test -n "$python_prog_path"; then
   8178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   8179 $as_echo "$python_prog_path" >&6; }
   8180 else
   8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8182 $as_echo "no" >&6; }
   8183 fi
   8184 
   8185 
   8186         if test "${python_prog_path}" = missing; then
   8187           python_prog=missing
   8188         else
   8189           python_prog=${python_prog_path}
   8190         fi
   8191       else
   8192         # Not much we can do except assume the cross-compiler will find the
   8193         # right files.
   8194         python_prog=missing
   8195       fi
   8196       ;;
   8197     *)
   8198       # While we can't run python compiled for $host (unless host == build),
   8199       # the user could write a script that provides the needed information,
   8200       # so we support that.
   8201       python_prog="${with_python}"
   8202       # Extract the first word of "${python_prog}", so it can be a program name with args.
   8203 set dummy ${python_prog}; ac_word=$2
   8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
   8205 $as_echo_n "checking for $ac_word... " >&6; }
   8206 if test "${ac_cv_path_python_prog_path+set}" = set; then :
   8207   $as_echo_n "(cached) " >&6
   8208 else
   8209   case $python_prog_path in
   8210   [\\/]* | ?:[\\/]*)
   8211   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
   8212   ;;
   8213   *)
   8214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   8215 for as_dir in $PATH
   8216 do
   8217   IFS=$as_save_IFS
   8218   test -z "$as_dir" && as_dir=.
   8219     for ac_exec_ext in '' $ac_executable_extensions; do
   8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
   8221     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
   8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
   8223     break 2
   8224   fi
   8225 done
   8226   done
   8227 IFS=$as_save_IFS
   8228 
   8229   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
   8230   ;;
   8231 esac
   8232 fi
   8233 python_prog_path=$ac_cv_path_python_prog_path
   8234 if test -n "$python_prog_path"; then
   8235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
   8236 $as_echo "$python_prog_path" >&6; }
   8237 else
   8238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   8239 $as_echo "no" >&6; }
   8240 fi
   8241 
   8242 
   8243       if test "${python_prog_path}" = missing; then
   8244         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
   8245       fi
   8246       ;;
   8247     esac
   8248   esac
   8249 
   8250   if test "${python_prog}" != missing; then
   8251     # We have a python program to use, but it may be too old.
   8252     # Don't flag an error for --with-python=auto (the default).
   8253     have_python_config=yes
   8254     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
   8255     if test $? != 0; then
   8256       have_python_config=failed
   8257       if test "${with_python}" != auto; then
   8258         as_fn_error "failure running python-config --includes" "$LINENO" 5
   8259       fi
   8260     fi
   8261     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
   8262     if test $? != 0; then
   8263       have_python_config=failed
   8264       if test "${with_python}" != auto; then
   8265         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
   8266       fi
   8267     fi
   8268     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
   8269     if test $? != 0; then
   8270       have_python_config=failed
   8271       if test "${with_python}" != auto; then
   8272         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
   8273       fi
   8274     fi
   8275   else
   8276     # We do not have a python executable we can use to determine where
   8277     # to find the Python headers and libs.  We cannot guess the include
   8278     # path from the python_prefix either, because that include path
   8279     # depends on the Python version.  So, there is nothing much we can
   8280     # do except assume that the compiler will be able to find those files.
   8281     python_includes=
   8282     python_libs=
   8283     have_python_config=no
   8284   fi
   8285 
   8286   # If we have python-config, only try the configuration it provides.
   8287   # Otherwise fallback on the old way of trying different versions of
   8288   # python in turn.
   8289 
   8290   have_libpython=no
   8291   if test "${have_python_config}" = yes; then
   8292     # Determine the Python version by extracting "-lpython<version>"
   8293     # part of the python_libs. <version> is usually X.Y with X and Y
   8294     # being decimal numbers, but can also be XY (seen on Windows).
   8295     #
   8296     # The extraction is performed using sed with a regular expression.
   8297     # Initially, the regexp used was using the '?' quantifier to make
   8298     # the dot in the version number optional.  Unfortunately, this
   8299     # does not work with non-GNU versions of sed because, because of
   8300     # what looks like a limitation (the '?' quantifier does not work
   8301     # with back-references).  We work around this limitation by using
   8302     # the '*' quantifier instead.  It means that, in theory, we might
   8303     # match unexpected version strings such as "-lpython2..7", but
   8304     # this seems unlikely in practice.  And even if that happens,
   8305     # an error will be triggered later on, when checking that version
   8306     # number.
   8307     python_version=`echo " ${python_libs} " \
   8308                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
   8309     case "${python_version}" in
   8310     python*)
   8311 
   8312   version=${python_version}
   8313 
   8314   new_CPPFLAGS=${python_includes}
   8315   new_LIBS=${python_libs}
   8316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8317 $as_echo_n "checking for ${version}... " >&6; }
   8318   save_CPPFLAGS=$CPPFLAGS
   8319   save_LIBS=$LIBS
   8320   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8321   LIBS="$LIBS $new_LIBS"
   8322   found_usable_python=no
   8323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8324 /* end confdefs.h.  */
   8325 #include "Python.h"
   8326 int
   8327 main ()
   8328 {
   8329 Py_Initialize ();
   8330   ;
   8331   return 0;
   8332 }
   8333 _ACEOF
   8334 if ac_fn_c_try_link "$LINENO"; then :
   8335   have_libpython=${version}
   8336                   found_usable_python=yes
   8337                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8338                   PYTHON_LIBS=$new_LIBS
   8339 fi
   8340 rm -f core conftest.err conftest.$ac_objext \
   8341     conftest$ac_exeext conftest.$ac_ext
   8342   CPPFLAGS=$save_CPPFLAGS
   8343   LIBS=$save_LIBS
   8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8345 $as_echo "${found_usable_python}" >&6; }
   8346 
   8347       ;;
   8348     *)
   8349       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
   8350       ;;
   8351     esac
   8352   elif test "${have_python_config}" != failed; then
   8353     if test "${have_libpython}" = no; then
   8354 
   8355   version=python2.7
   8356 
   8357   new_CPPFLAGS=${python_includes}
   8358   new_LIBS="${python_libs} -lpython2.7"
   8359   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8360 $as_echo_n "checking for ${version}... " >&6; }
   8361   save_CPPFLAGS=$CPPFLAGS
   8362   save_LIBS=$LIBS
   8363   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8364   LIBS="$LIBS $new_LIBS"
   8365   found_usable_python=no
   8366   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8367 /* end confdefs.h.  */
   8368 #include "Python.h"
   8369 int
   8370 main ()
   8371 {
   8372 Py_Initialize ();
   8373   ;
   8374   return 0;
   8375 }
   8376 _ACEOF
   8377 if ac_fn_c_try_link "$LINENO"; then :
   8378   have_libpython=${version}
   8379                   found_usable_python=yes
   8380                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8381                   PYTHON_LIBS=$new_LIBS
   8382 fi
   8383 rm -f core conftest.err conftest.$ac_objext \
   8384     conftest$ac_exeext conftest.$ac_ext
   8385   CPPFLAGS=$save_CPPFLAGS
   8386   LIBS=$save_LIBS
   8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8388 $as_echo "${found_usable_python}" >&6; }
   8389 
   8390     fi
   8391     if test "${have_libpython}" = no; then
   8392 
   8393   version=python2.6
   8394 
   8395   new_CPPFLAGS=${python_includes}
   8396   new_LIBS="${python_libs} -lpython2.6"
   8397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8398 $as_echo_n "checking for ${version}... " >&6; }
   8399   save_CPPFLAGS=$CPPFLAGS
   8400   save_LIBS=$LIBS
   8401   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8402   LIBS="$LIBS $new_LIBS"
   8403   found_usable_python=no
   8404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8405 /* end confdefs.h.  */
   8406 #include "Python.h"
   8407 int
   8408 main ()
   8409 {
   8410 Py_Initialize ();
   8411   ;
   8412   return 0;
   8413 }
   8414 _ACEOF
   8415 if ac_fn_c_try_link "$LINENO"; then :
   8416   have_libpython=${version}
   8417                   found_usable_python=yes
   8418                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8419                   PYTHON_LIBS=$new_LIBS
   8420 fi
   8421 rm -f core conftest.err conftest.$ac_objext \
   8422     conftest$ac_exeext conftest.$ac_ext
   8423   CPPFLAGS=$save_CPPFLAGS
   8424   LIBS=$save_LIBS
   8425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8426 $as_echo "${found_usable_python}" >&6; }
   8427 
   8428     fi
   8429     if test ${have_libpython} = no; then
   8430 
   8431   version=python2.5
   8432 
   8433   new_CPPFLAGS=${python_includes}
   8434   new_LIBS="${python_libs} -lpython2.5"
   8435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8436 $as_echo_n "checking for ${version}... " >&6; }
   8437   save_CPPFLAGS=$CPPFLAGS
   8438   save_LIBS=$LIBS
   8439   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8440   LIBS="$LIBS $new_LIBS"
   8441   found_usable_python=no
   8442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8443 /* end confdefs.h.  */
   8444 #include "Python.h"
   8445 int
   8446 main ()
   8447 {
   8448 Py_Initialize ();
   8449   ;
   8450   return 0;
   8451 }
   8452 _ACEOF
   8453 if ac_fn_c_try_link "$LINENO"; then :
   8454   have_libpython=${version}
   8455                   found_usable_python=yes
   8456                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8457                   PYTHON_LIBS=$new_LIBS
   8458 fi
   8459 rm -f core conftest.err conftest.$ac_objext \
   8460     conftest$ac_exeext conftest.$ac_ext
   8461   CPPFLAGS=$save_CPPFLAGS
   8462   LIBS=$save_LIBS
   8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8464 $as_echo "${found_usable_python}" >&6; }
   8465 
   8466     fi
   8467     if test ${have_libpython} = no; then
   8468 
   8469   version=python2.4
   8470 
   8471   new_CPPFLAGS=${python_includes}
   8472   new_LIBS="${python_libs} -lpython2.4"
   8473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
   8474 $as_echo_n "checking for ${version}... " >&6; }
   8475   save_CPPFLAGS=$CPPFLAGS
   8476   save_LIBS=$LIBS
   8477   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
   8478   LIBS="$LIBS $new_LIBS"
   8479   found_usable_python=no
   8480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8481 /* end confdefs.h.  */
   8482 #include "Python.h"
   8483 int
   8484 main ()
   8485 {
   8486 Py_Initialize ();
   8487   ;
   8488   return 0;
   8489 }
   8490 _ACEOF
   8491 if ac_fn_c_try_link "$LINENO"; then :
   8492   have_libpython=${version}
   8493                   found_usable_python=yes
   8494                   PYTHON_CPPFLAGS=$new_CPPFLAGS
   8495                   PYTHON_LIBS=$new_LIBS
   8496 fi
   8497 rm -f core conftest.err conftest.$ac_objext \
   8498     conftest$ac_exeext conftest.$ac_ext
   8499   CPPFLAGS=$save_CPPFLAGS
   8500   LIBS=$save_LIBS
   8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
   8502 $as_echo "${found_usable_python}" >&6; }
   8503 
   8504     fi
   8505   fi
   8506   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
   8507 
   8508 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
   8509 
   8510   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
   8511 
   8512 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
   8513 
   8514   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
   8515 
   8516 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
   8517 
   8518   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
   8519 
   8520 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
   8521 
   8522   fi
   8523 
   8524   if test "${have_libpython}" = no; then
   8525     case "${with_python}" in
   8526     yes)
   8527       as_fn_error "python is missing or unusable" "$LINENO" 5
   8528       ;;
   8529     auto)
   8530       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
   8531 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
   8532       ;;
   8533     *)
   8534       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
   8535       ;;
   8536     esac
   8537   else
   8538     if test -n "${python_prefix}"; then
   8539 
   8540 cat >>confdefs.h <<_ACEOF
   8541 #define WITH_PYTHON_PATH "${python_prefix}"
   8542 _ACEOF
   8543 
   8544 
   8545   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   8546      if test "x$prefix" = xNONE; then
   8547      	test_prefix=/usr/local
   8548      else
   8549 	test_prefix=$prefix
   8550      fi
   8551   else
   8552      test_prefix=$exec_prefix
   8553   fi
   8554   value=0
   8555   case ${python_prefix} in
   8556      "${test_prefix}"|"${test_prefix}/"*|\
   8557 	'${exec_prefix}'|'${exec_prefix}/'*)
   8558      value=1
   8559      ;;
   8560   esac
   8561 
   8562 cat >>confdefs.h <<_ACEOF
   8563 #define PYTHON_PATH_RELOCATABLE $value
   8564 _ACEOF
   8565 
   8566 
   8567     fi
   8568   fi
   8569 fi
   8570 
   8571 if test "${have_libpython}" != no; then
   8572 
   8573 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
   8574 
   8575   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
   8576   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
   8577   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
   8578   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
   8579   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
   8580 
   8581   # Flags needed to compile Python code (taken from python-config --cflags).
   8582   # We cannot call python-config directly because it will output whatever was
   8583   # used when compiling the Python interpreter itself, including flags which
   8584   # would make the python-related objects be compiled differently from the
   8585   # rest of GDB (e.g., -O2 and -fPIC).
   8586   if test "${GCC}" = yes; then
   8587     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
   8588   fi
   8589 
   8590   if test "x${tentative_python_cflags}" != x; then
   8591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
   8592 $as_echo_n "checking compiler flags for python code... " >&6; }
   8593     for flag in ${tentative_python_cflags}; do
   8594       # Check that the compiler accepts it
   8595       saved_CFLAGS="$CFLAGS"
   8596       CFLAGS="$CFLAGS $flag"
   8597       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8598 /* end confdefs.h.  */
   8599 
   8600 int
   8601 main ()
   8602 {
   8603 
   8604   ;
   8605   return 0;
   8606 }
   8607 _ACEOF
   8608 if ac_fn_c_try_compile "$LINENO"; then :
   8609   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
   8610 fi
   8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8612       CFLAGS="$saved_CFLAGS"
   8613     done
   8614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
   8615 $as_echo "${PYTHON_CFLAGS}" >&6; }
   8616   fi
   8617 
   8618   # On IRIX, type siginfo is not defined.  Instead, sys/siginfo.h provides:
   8619   #    #if _SGIAPI
   8620   #    #define siginfo __siginfo
   8621   #    #endif
   8622   # The problem is that including Python causes some XOPEN macros to be
   8623   # unilaterally defined, and that in turn causes _SGIAPI to evaluate
   8624   # to false.  So, we work around this issue by defining siginfo ourself
   8625   # though the command-line.
   8626   #
   8627   # On x64 Windows, Python's include headers, and pyconfig.h in
   8628   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
   8629   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
   8630   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
   8631   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
   8632   # The issue was reported to the Python community, but still isn't
   8633   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
   8634 
   8635   case "$gdb_host" in
   8636     irix*) if test "${GCC}" = yes; then
   8637              CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
   8638            fi
   8639            ;;
   8640     mingw64)
   8641            if test "${GCC}" = yes; then
   8642              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
   8643            fi
   8644            ;;
   8645   esac
   8646 
   8647   # Note that "python -m threading" cannot be used to check for
   8648   # threading support due to a bug in Python 2.7.3
   8649   # (http://bugs.python.org/issue15567).
   8650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
   8651 $as_echo_n "checking whether python supports threads... " >&6; }
   8652   saved_CPPFLAGS="${CPPFLAGS}"
   8653   CPPFLAGS="${PYTHON_CPPFLAGS}"
   8654   # Note that the test is reversed so that python_has_threads=yes on
   8655   # unexpected failures.
   8656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8657 /* end confdefs.h.  */
   8658 
   8659 #include <Python.h>
   8660 #ifdef WITH_THREAD
   8661 # error
   8662 #endif
   8663 
   8664 _ACEOF
   8665 if ac_fn_c_try_cpp "$LINENO"; then :
   8666   python_has_threads=no
   8667 else
   8668   python_has_threads=yes
   8669 fi
   8670 rm -f conftest.err conftest.$ac_ext
   8671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
   8672 $as_echo "${python_has_threads}" >&6; }
   8673   CPPFLAGS="${saved_CPPFLAGS}"
   8674 else
   8675   # Even if Python support is not compiled in, we need to have these files
   8676   # included.
   8677   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
   8678   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
   8679 	python/py-prettyprint.c python/py-auto-load.c"
   8680 fi
   8681 
   8682 
   8683 
   8684 
   8685 # --------------------- #
   8686 # Check for libmcheck.  #
   8687 # --------------------- #
   8688 
   8689 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
   8690 # but turn it off if Python is enabled with threads, since -lmcheck is
   8691 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
   8692 # and for releases.
   8693 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
   8694    && $development; then
   8695   libmcheck_default=yes
   8696 else
   8697   libmcheck_default=no
   8698 fi
   8699 
   8700   # Check whether --enable-libmcheck was given.
   8701 if test "${enable_libmcheck+set}" = set; then :
   8702   enableval=$enable_libmcheck; case "${enableval}" in
   8703       yes | y) ENABLE_LIBMCHECK="yes" ;;
   8704       no | n)  ENABLE_LIBMCHECK="no" ;;
   8705       *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
   8706     esac
   8707 fi
   8708 
   8709 
   8710   if test -z "${ENABLE_LIBMCHECK}"; then
   8711     ENABLE_LIBMCHECK=${libmcheck_default}
   8712   fi
   8713 
   8714   if test "$ENABLE_LIBMCHECK" = "yes" ; then
   8715     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
   8716 $as_echo_n "checking for main in -lmcheck... " >&6; }
   8717 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
   8718   $as_echo_n "(cached) " >&6
   8719 else
   8720   ac_check_lib_save_LIBS=$LIBS
   8721 LIBS="-lmcheck  $LIBS"
   8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8723 /* end confdefs.h.  */
   8724 
   8725 
   8726 int
   8727 main ()
   8728 {
   8729 return main ();
   8730   ;
   8731   return 0;
   8732 }
   8733 _ACEOF
   8734 if ac_fn_c_try_link "$LINENO"; then :
   8735   ac_cv_lib_mcheck_main=yes
   8736 else
   8737   ac_cv_lib_mcheck_main=no
   8738 fi
   8739 rm -f core conftest.err conftest.$ac_objext \
   8740     conftest$ac_exeext conftest.$ac_ext
   8741 LIBS=$ac_check_lib_save_LIBS
   8742 fi
   8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
   8744 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
   8745 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
   8746   cat >>confdefs.h <<_ACEOF
   8747 #define HAVE_LIBMCHECK 1
   8748 _ACEOF
   8749 
   8750   LIBS="-lmcheck $LIBS"
   8751 
   8752 fi
   8753 
   8754   fi
   8755 
   8756 
   8757 if test "$ENABLE_LIBMCHECK" = "yes" \
   8758 	-a "${have_libpython}" != "no" \
   8759 	-a "${python_has_threads}" = "yes" ; then
   8760   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
   8761 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
   8762 fi
   8763 
   8764 # ------------------------- #
   8765 # Checks for header files.  #
   8766 # ------------------------- #
   8767 
   8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   8769 $as_echo_n "checking for ANSI C header files... " >&6; }
   8770 if test "${ac_cv_header_stdc+set}" = set; then :
   8771   $as_echo_n "(cached) " >&6
   8772 else
   8773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8774 /* end confdefs.h.  */
   8775 #include <stdlib.h>
   8776 #include <stdarg.h>
   8777 #include <string.h>
   8778 #include <float.h>
   8779 
   8780 int
   8781 main ()
   8782 {
   8783 
   8784   ;
   8785   return 0;
   8786 }
   8787 _ACEOF
   8788 if ac_fn_c_try_compile "$LINENO"; then :
   8789   ac_cv_header_stdc=yes
   8790 else
   8791   ac_cv_header_stdc=no
   8792 fi
   8793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   8794 
   8795 if test $ac_cv_header_stdc = yes; then
   8796   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   8797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8798 /* end confdefs.h.  */
   8799 #include <string.h>
   8800 
   8801 _ACEOF
   8802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8803   $EGREP "memchr" >/dev/null 2>&1; then :
   8804 
   8805 else
   8806   ac_cv_header_stdc=no
   8807 fi
   8808 rm -f conftest*
   8809 
   8810 fi
   8811 
   8812 if test $ac_cv_header_stdc = yes; then
   8813   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   8814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8815 /* end confdefs.h.  */
   8816 #include <stdlib.h>
   8817 
   8818 _ACEOF
   8819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   8820   $EGREP "free" >/dev/null 2>&1; then :
   8821 
   8822 else
   8823   ac_cv_header_stdc=no
   8824 fi
   8825 rm -f conftest*
   8826 
   8827 fi
   8828 
   8829 if test $ac_cv_header_stdc = yes; then
   8830   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   8831   if test "$cross_compiling" = yes; then :
   8832   :
   8833 else
   8834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   8835 /* end confdefs.h.  */
   8836 #include <ctype.h>
   8837 #include <stdlib.h>
   8838 #if ((' ' & 0x0FF) == 0x020)
   8839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   8840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   8841 #else
   8842 # define ISLOWER(c) \
   8843 		   (('a' <= (c) && (c) <= 'i') \
   8844 		     || ('j' <= (c) && (c) <= 'r') \
   8845 		     || ('s' <= (c) && (c) <= 'z'))
   8846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   8847 #endif
   8848 
   8849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   8850 int
   8851 main ()
   8852 {
   8853   int i;
   8854   for (i = 0; i < 256; i++)
   8855     if (XOR (islower (i), ISLOWER (i))
   8856 	|| toupper (i) != TOUPPER (i))
   8857       return 2;
   8858   return 0;
   8859 }
   8860 _ACEOF
   8861 if ac_fn_c_try_run "$LINENO"; then :
   8862 
   8863 else
   8864   ac_cv_header_stdc=no
   8865 fi
   8866 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   8867   conftest.$ac_objext conftest.beam conftest.$ac_ext
   8868 fi
   8869 
   8870 fi
   8871 fi
   8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   8873 $as_echo "$ac_cv_header_stdc" >&6; }
   8874 if test $ac_cv_header_stdc = yes; then
   8875 
   8876 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   8877 
   8878 fi
   8879 
   8880 # elf_hp.h is for HP/UX 64-bit shared library support.
   8881 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
   8882                   thread_db.h \
   8883 		  sys/fault.h \
   8884 		  sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
   8885 		  sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
   8886 		  sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
   8887 		  termios.h termio.h \
   8888 		  sgtty.h elf_hp.h \
   8889 		  dlfcn.h
   8890 do :
   8891   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8892 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   8893 eval as_val=\$$as_ac_Header
   8894    if test "x$as_val" = x""yes; then :
   8895   cat >>confdefs.h <<_ACEOF
   8896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8897 _ACEOF
   8898 
   8899 fi
   8900 
   8901 done
   8902 
   8903 for ac_header in sys/proc.h
   8904 do :
   8905   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
   8906 # include <sys/param.h>
   8907 #endif
   8908 
   8909 "
   8910 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
   8911   cat >>confdefs.h <<_ACEOF
   8912 #define HAVE_SYS_PROC_H 1
   8913 _ACEOF
   8914 
   8915 fi
   8916 
   8917 done
   8918 
   8919 for ac_header in sys/user.h
   8920 do :
   8921   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
   8922 # include <sys/param.h>
   8923 #endif
   8924 
   8925 "
   8926 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
   8927   cat >>confdefs.h <<_ACEOF
   8928 #define HAVE_SYS_USER_H 1
   8929 _ACEOF
   8930 
   8931 fi
   8932 
   8933 done
   8934 
   8935 
   8936 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
   8937 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
   8938 # think that we don't have <curses.h> if we're using GCC.
   8939 case $host_os in
   8940   solaris2.[789])
   8941     if test "$GCC" = yes; then
   8942 
   8943 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
   8944 
   8945     fi ;;
   8946 esac
   8947 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
   8948 do :
   8949   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   8950 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   8951 eval as_val=\$$as_ac_Header
   8952    if test "x$as_val" = x""yes; then :
   8953   cat >>confdefs.h <<_ACEOF
   8954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   8955 _ACEOF
   8956 
   8957 fi
   8958 
   8959 done
   8960 
   8961 for ac_header in term.h
   8962 do :
   8963   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
   8964 # include <curses.h>
   8965 #endif
   8966 
   8967 "
   8968 if test "x$ac_cv_header_term_h" = x""yes; then :
   8969   cat >>confdefs.h <<_ACEOF
   8970 #define HAVE_TERM_H 1
   8971 _ACEOF
   8972 
   8973 fi
   8974 
   8975 done
   8976 
   8977 
   8978 # ------------------------- #
   8979 # Checks for declarations.  #
   8980 # ------------------------- #
   8981 
   8982 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
   8983 if test "x$ac_cv_have_decl_free" = x""yes; then :
   8984   ac_have_decl=1
   8985 else
   8986   ac_have_decl=0
   8987 fi
   8988 
   8989 cat >>confdefs.h <<_ACEOF
   8990 #define HAVE_DECL_FREE $ac_have_decl
   8991 _ACEOF
   8992 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
   8993 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
   8994   ac_have_decl=1
   8995 else
   8996   ac_have_decl=0
   8997 fi
   8998 
   8999 cat >>confdefs.h <<_ACEOF
   9000 #define HAVE_DECL_MALLOC $ac_have_decl
   9001 _ACEOF
   9002 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
   9003 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
   9004   ac_have_decl=1
   9005 else
   9006   ac_have_decl=0
   9007 fi
   9008 
   9009 cat >>confdefs.h <<_ACEOF
   9010 #define HAVE_DECL_REALLOC $ac_have_decl
   9011 _ACEOF
   9012 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
   9013 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
   9014   ac_have_decl=1
   9015 else
   9016   ac_have_decl=0
   9017 fi
   9018 
   9019 cat >>confdefs.h <<_ACEOF
   9020 #define HAVE_DECL_SNPRINTF $ac_have_decl
   9021 _ACEOF
   9022 
   9023 
   9024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
   9025 $as_echo_n "checking for LC_MESSAGES... " >&6; }
   9026 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
   9027   $as_echo_n "(cached) " >&6
   9028 else
   9029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9030 /* end confdefs.h.  */
   9031 #include <locale.h>
   9032 int
   9033 main ()
   9034 {
   9035 return LC_MESSAGES
   9036   ;
   9037   return 0;
   9038 }
   9039 _ACEOF
   9040 if ac_fn_c_try_link "$LINENO"; then :
   9041   am_cv_val_LC_MESSAGES=yes
   9042 else
   9043   am_cv_val_LC_MESSAGES=no
   9044 fi
   9045 rm -f core conftest.err conftest.$ac_objext \
   9046     conftest$ac_exeext conftest.$ac_ext
   9047 fi
   9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
   9049 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
   9050   if test $am_cv_val_LC_MESSAGES = yes; then
   9051 
   9052 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
   9053 
   9054   fi
   9055 
   9056 
   9057 # ----------------------- #
   9058 # Checks for structures.  #
   9059 # ----------------------- #
   9060 
   9061 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
   9062 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
   9063 
   9064 cat >>confdefs.h <<_ACEOF
   9065 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
   9066 _ACEOF
   9067 
   9068 
   9069 fi
   9070 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
   9071 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
   9072 
   9073 cat >>confdefs.h <<_ACEOF
   9074 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
   9075 _ACEOF
   9076 
   9077 
   9078 fi
   9079 
   9080 
   9081 # ------------------ #
   9082 # Checks for types.  #
   9083 # ------------------ #
   9084 
   9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
   9086 $as_echo_n "checking return type of signal handlers... " >&6; }
   9087 if test "${ac_cv_type_signal+set}" = set; then :
   9088   $as_echo_n "(cached) " >&6
   9089 else
   9090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9091 /* end confdefs.h.  */
   9092 #include <sys/types.h>
   9093 #include <signal.h>
   9094 
   9095 int
   9096 main ()
   9097 {
   9098 return *(signal (0, 0)) (0) == 1;
   9099   ;
   9100   return 0;
   9101 }
   9102 _ACEOF
   9103 if ac_fn_c_try_compile "$LINENO"; then :
   9104   ac_cv_type_signal=int
   9105 else
   9106   ac_cv_type_signal=void
   9107 fi
   9108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9109 fi
   9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
   9111 $as_echo "$ac_cv_type_signal" >&6; }
   9112 
   9113 cat >>confdefs.h <<_ACEOF
   9114 #define RETSIGTYPE $ac_cv_type_signal
   9115 _ACEOF
   9116 
   9117 
   9118 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
   9119 #include <sys/socket.h>
   9120 
   9121 "
   9122 if test "x$ac_cv_type_socklen_t" = x""yes; then :
   9123 
   9124 cat >>confdefs.h <<_ACEOF
   9125 #define HAVE_SOCKLEN_T 1
   9126 _ACEOF
   9127 
   9128 
   9129 fi
   9130 
   9131 
   9132 # ------------------------------------- #
   9133 # Checks for compiler characteristics.  #
   9134 # ------------------------------------- #
   9135 
   9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
   9137 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
   9138 if test "${ac_cv_c_const+set}" = set; then :
   9139   $as_echo_n "(cached) " >&6
   9140 else
   9141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9142 /* end confdefs.h.  */
   9143 
   9144 int
   9145 main ()
   9146 {
   9147 /* FIXME: Include the comments suggested by Paul. */
   9148 #ifndef __cplusplus
   9149   /* Ultrix mips cc rejects this.  */
   9150   typedef int charset[2];
   9151   const charset cs;
   9152   /* SunOS 4.1.1 cc rejects this.  */
   9153   char const *const *pcpcc;
   9154   char **ppc;
   9155   /* NEC SVR4.0.2 mips cc rejects this.  */
   9156   struct point {int x, y;};
   9157   static struct point const zero = {0,0};
   9158   /* AIX XL C 1.02.0.0 rejects this.
   9159      It does not let you subtract one const X* pointer from another in
   9160      an arm of an if-expression whose if-part is not a constant
   9161      expression */
   9162   const char *g = "string";
   9163   pcpcc = &g + (g ? g-g : 0);
   9164   /* HPUX 7.0 cc rejects these. */
   9165   ++pcpcc;
   9166   ppc = (char**) pcpcc;
   9167   pcpcc = (char const *const *) ppc;
   9168   { /* SCO 3.2v4 cc rejects this.  */
   9169     char *t;
   9170     char const *s = 0 ? (char *) 0 : (char const *) 0;
   9171 
   9172     *t++ = 0;
   9173     if (s) return 0;
   9174   }
   9175   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
   9176     int x[] = {25, 17};
   9177     const int *foo = &x[0];
   9178     ++foo;
   9179   }
   9180   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
   9181     typedef const int *iptr;
   9182     iptr p = 0;
   9183     ++p;
   9184   }
   9185   { /* AIX XL C 1.02.0.0 rejects this saying
   9186        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
   9187     struct s { int j; const int *ap[3]; };
   9188     struct s *b; b->j = 5;
   9189   }
   9190   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
   9191     const int foo = 10;
   9192     if (!foo) return 0;
   9193   }
   9194   return !cs[0] && !zero.x;
   9195 #endif
   9196 
   9197   ;
   9198   return 0;
   9199 }
   9200 _ACEOF
   9201 if ac_fn_c_try_compile "$LINENO"; then :
   9202   ac_cv_c_const=yes
   9203 else
   9204   ac_cv_c_const=no
   9205 fi
   9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9207 fi
   9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
   9209 $as_echo "$ac_cv_c_const" >&6; }
   9210 if test $ac_cv_c_const = no; then
   9211 
   9212 $as_echo "#define const /**/" >>confdefs.h
   9213 
   9214 fi
   9215 
   9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
   9217 $as_echo_n "checking for inline... " >&6; }
   9218 if test "${ac_cv_c_inline+set}" = set; then :
   9219   $as_echo_n "(cached) " >&6
   9220 else
   9221   ac_cv_c_inline=no
   9222 for ac_kw in inline __inline__ __inline; do
   9223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9224 /* end confdefs.h.  */
   9225 #ifndef __cplusplus
   9226 typedef int foo_t;
   9227 static $ac_kw foo_t static_foo () {return 0; }
   9228 $ac_kw foo_t foo () {return 0; }
   9229 #endif
   9230 
   9231 _ACEOF
   9232 if ac_fn_c_try_compile "$LINENO"; then :
   9233   ac_cv_c_inline=$ac_kw
   9234 fi
   9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9236   test "$ac_cv_c_inline" != no && break
   9237 done
   9238 
   9239 fi
   9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
   9241 $as_echo "$ac_cv_c_inline" >&6; }
   9242 
   9243 case $ac_cv_c_inline in
   9244   inline | yes) ;;
   9245   *)
   9246     case $ac_cv_c_inline in
   9247       no) ac_val=;;
   9248       *) ac_val=$ac_cv_c_inline;;
   9249     esac
   9250     cat >>confdefs.h <<_ACEOF
   9251 #ifndef __cplusplus
   9252 #define inline $ac_val
   9253 #endif
   9254 _ACEOF
   9255     ;;
   9256 esac
   9257 
   9258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
   9259 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
   9260 if test "${ac_cv_c_bigendian+set}" = set; then :
   9261   $as_echo_n "(cached) " >&6
   9262 else
   9263   ac_cv_c_bigendian=unknown
   9264     # See if we're dealing with a universal compiler.
   9265     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9266 /* end confdefs.h.  */
   9267 #ifndef __APPLE_CC__
   9268 	       not a universal capable compiler
   9269 	     #endif
   9270 	     typedef int dummy;
   9271 
   9272 _ACEOF
   9273 if ac_fn_c_try_compile "$LINENO"; then :
   9274 
   9275 	# Check for potential -arch flags.  It is not universal unless
   9276 	# there are at least two -arch flags with different values.
   9277 	ac_arch=
   9278 	ac_prev=
   9279 	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
   9280 	 if test -n "$ac_prev"; then
   9281 	   case $ac_word in
   9282 	     i?86 | x86_64 | ppc | ppc64)
   9283 	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
   9284 		 ac_arch=$ac_word
   9285 	       else
   9286 		 ac_cv_c_bigendian=universal
   9287 		 break
   9288 	       fi
   9289 	       ;;
   9290 	   esac
   9291 	   ac_prev=
   9292 	 elif test "x$ac_word" = "x-arch"; then
   9293 	   ac_prev=arch
   9294 	 fi
   9295        done
   9296 fi
   9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9298     if test $ac_cv_c_bigendian = unknown; then
   9299       # See if sys/param.h defines the BYTE_ORDER macro.
   9300       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9301 /* end confdefs.h.  */
   9302 #include <sys/types.h>
   9303 	     #include <sys/param.h>
   9304 
   9305 int
   9306 main ()
   9307 {
   9308 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
   9309 		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
   9310 		     && LITTLE_ENDIAN)
   9311 	      bogus endian macros
   9312 	     #endif
   9313 
   9314   ;
   9315   return 0;
   9316 }
   9317 _ACEOF
   9318 if ac_fn_c_try_compile "$LINENO"; then :
   9319   # It does; now see whether it defined to BIG_ENDIAN or not.
   9320 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9321 /* end confdefs.h.  */
   9322 #include <sys/types.h>
   9323 		#include <sys/param.h>
   9324 
   9325 int
   9326 main ()
   9327 {
   9328 #if BYTE_ORDER != BIG_ENDIAN
   9329 		 not big endian
   9330 		#endif
   9331 
   9332   ;
   9333   return 0;
   9334 }
   9335 _ACEOF
   9336 if ac_fn_c_try_compile "$LINENO"; then :
   9337   ac_cv_c_bigendian=yes
   9338 else
   9339   ac_cv_c_bigendian=no
   9340 fi
   9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9342 fi
   9343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9344     fi
   9345     if test $ac_cv_c_bigendian = unknown; then
   9346       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
   9347       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9348 /* end confdefs.h.  */
   9349 #include <limits.h>
   9350 
   9351 int
   9352 main ()
   9353 {
   9354 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
   9355 	      bogus endian macros
   9356 	     #endif
   9357 
   9358   ;
   9359   return 0;
   9360 }
   9361 _ACEOF
   9362 if ac_fn_c_try_compile "$LINENO"; then :
   9363   # It does; now see whether it defined to _BIG_ENDIAN or not.
   9364 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9365 /* end confdefs.h.  */
   9366 #include <limits.h>
   9367 
   9368 int
   9369 main ()
   9370 {
   9371 #ifndef _BIG_ENDIAN
   9372 		 not big endian
   9373 		#endif
   9374 
   9375   ;
   9376   return 0;
   9377 }
   9378 _ACEOF
   9379 if ac_fn_c_try_compile "$LINENO"; then :
   9380   ac_cv_c_bigendian=yes
   9381 else
   9382   ac_cv_c_bigendian=no
   9383 fi
   9384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9385 fi
   9386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9387     fi
   9388     if test $ac_cv_c_bigendian = unknown; then
   9389       # Compile a test program.
   9390       if test "$cross_compiling" = yes; then :
   9391   # Try to guess by grepping values from an object file.
   9392 	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9393 /* end confdefs.h.  */
   9394 short int ascii_mm[] =
   9395 		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
   9396 		short int ascii_ii[] =
   9397 		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
   9398 		int use_ascii (int i) {
   9399 		  return ascii_mm[i] + ascii_ii[i];
   9400 		}
   9401 		short int ebcdic_ii[] =
   9402 		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
   9403 		short int ebcdic_mm[] =
   9404 		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
   9405 		int use_ebcdic (int i) {
   9406 		  return ebcdic_mm[i] + ebcdic_ii[i];
   9407 		}
   9408 		extern int foo;
   9409 
   9410 int
   9411 main ()
   9412 {
   9413 return use_ascii (foo) == use_ebcdic (foo);
   9414   ;
   9415   return 0;
   9416 }
   9417 _ACEOF
   9418 if ac_fn_c_try_compile "$LINENO"; then :
   9419   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
   9420 	      ac_cv_c_bigendian=yes
   9421 	    fi
   9422 	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
   9423 	      if test "$ac_cv_c_bigendian" = unknown; then
   9424 		ac_cv_c_bigendian=no
   9425 	      else
   9426 		# finding both strings is unlikely to happen, but who knows?
   9427 		ac_cv_c_bigendian=unknown
   9428 	      fi
   9429 	    fi
   9430 fi
   9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   9432 else
   9433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9434 /* end confdefs.h.  */
   9435 $ac_includes_default
   9436 int
   9437 main ()
   9438 {
   9439 
   9440 	     /* Are we little or big endian?  From Harbison&Steele.  */
   9441 	     union
   9442 	     {
   9443 	       long int l;
   9444 	       char c[sizeof (long int)];
   9445 	     } u;
   9446 	     u.l = 1;
   9447 	     return u.c[sizeof (long int) - 1] == 1;
   9448 
   9449   ;
   9450   return 0;
   9451 }
   9452 _ACEOF
   9453 if ac_fn_c_try_run "$LINENO"; then :
   9454   ac_cv_c_bigendian=no
   9455 else
   9456   ac_cv_c_bigendian=yes
   9457 fi
   9458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9459   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9460 fi
   9461 
   9462     fi
   9463 fi
   9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
   9465 $as_echo "$ac_cv_c_bigendian" >&6; }
   9466  case $ac_cv_c_bigendian in #(
   9467    yes)
   9468      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
   9469 ;; #(
   9470    no)
   9471       ;; #(
   9472    universal)
   9473 
   9474 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
   9475 
   9476      ;; #(
   9477    *)
   9478      as_fn_error "unknown endianness
   9479  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
   9480  esac
   9481 
   9482 
   9483 # ------------------------------ #
   9484 # Checks for library functions.  #
   9485 # ------------------------------ #
   9486 
   9487 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   9488 # for constant arguments.  Useless!
   9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   9490 $as_echo_n "checking for working alloca.h... " >&6; }
   9491 if test "${ac_cv_working_alloca_h+set}" = set; then :
   9492   $as_echo_n "(cached) " >&6
   9493 else
   9494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9495 /* end confdefs.h.  */
   9496 #include <alloca.h>
   9497 int
   9498 main ()
   9499 {
   9500 char *p = (char *) alloca (2 * sizeof (int));
   9501 			  if (p) return 0;
   9502   ;
   9503   return 0;
   9504 }
   9505 _ACEOF
   9506 if ac_fn_c_try_link "$LINENO"; then :
   9507   ac_cv_working_alloca_h=yes
   9508 else
   9509   ac_cv_working_alloca_h=no
   9510 fi
   9511 rm -f core conftest.err conftest.$ac_objext \
   9512     conftest$ac_exeext conftest.$ac_ext
   9513 fi
   9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   9515 $as_echo "$ac_cv_working_alloca_h" >&6; }
   9516 if test $ac_cv_working_alloca_h = yes; then
   9517 
   9518 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   9519 
   9520 fi
   9521 
   9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   9523 $as_echo_n "checking for alloca... " >&6; }
   9524 if test "${ac_cv_func_alloca_works+set}" = set; then :
   9525   $as_echo_n "(cached) " >&6
   9526 else
   9527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9528 /* end confdefs.h.  */
   9529 #ifdef __GNUC__
   9530 # define alloca __builtin_alloca
   9531 #else
   9532 # ifdef _MSC_VER
   9533 #  include <malloc.h>
   9534 #  define alloca _alloca
   9535 # else
   9536 #  ifdef HAVE_ALLOCA_H
   9537 #   include <alloca.h>
   9538 #  else
   9539 #   ifdef _AIX
   9540  #pragma alloca
   9541 #   else
   9542 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   9543 char *alloca ();
   9544 #    endif
   9545 #   endif
   9546 #  endif
   9547 # endif
   9548 #endif
   9549 
   9550 int
   9551 main ()
   9552 {
   9553 char *p = (char *) alloca (1);
   9554 				    if (p) return 0;
   9555   ;
   9556   return 0;
   9557 }
   9558 _ACEOF
   9559 if ac_fn_c_try_link "$LINENO"; then :
   9560   ac_cv_func_alloca_works=yes
   9561 else
   9562   ac_cv_func_alloca_works=no
   9563 fi
   9564 rm -f core conftest.err conftest.$ac_objext \
   9565     conftest$ac_exeext conftest.$ac_ext
   9566 fi
   9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   9568 $as_echo "$ac_cv_func_alloca_works" >&6; }
   9569 
   9570 if test $ac_cv_func_alloca_works = yes; then
   9571 
   9572 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   9573 
   9574 else
   9575   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   9576 # that cause trouble.  Some versions do not even contain alloca or
   9577 # contain a buggy version.  If you still want to use their alloca,
   9578 # use ar to extract alloca.o from them instead of compiling alloca.c.
   9579 
   9580 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   9581 
   9582 $as_echo "#define C_ALLOCA 1" >>confdefs.h
   9583 
   9584 
   9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
   9586 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   9587 if test "${ac_cv_os_cray+set}" = set; then :
   9588   $as_echo_n "(cached) " >&6
   9589 else
   9590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9591 /* end confdefs.h.  */
   9592 #if defined CRAY && ! defined CRAY2
   9593 webecray
   9594 #else
   9595 wenotbecray
   9596 #endif
   9597 
   9598 _ACEOF
   9599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   9600   $EGREP "webecray" >/dev/null 2>&1; then :
   9601   ac_cv_os_cray=yes
   9602 else
   9603   ac_cv_os_cray=no
   9604 fi
   9605 rm -f conftest*
   9606 
   9607 fi
   9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   9609 $as_echo "$ac_cv_os_cray" >&6; }
   9610 if test $ac_cv_os_cray = yes; then
   9611   for ac_func in _getb67 GETB67 getb67; do
   9612     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9613 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   9614 eval as_val=\$$as_ac_var
   9615    if test "x$as_val" = x""yes; then :
   9616 
   9617 cat >>confdefs.h <<_ACEOF
   9618 #define CRAY_STACKSEG_END $ac_func
   9619 _ACEOF
   9620 
   9621     break
   9622 fi
   9623 
   9624   done
   9625 fi
   9626 
   9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   9628 $as_echo_n "checking stack direction for C alloca... " >&6; }
   9629 if test "${ac_cv_c_stack_direction+set}" = set; then :
   9630   $as_echo_n "(cached) " >&6
   9631 else
   9632   if test "$cross_compiling" = yes; then :
   9633   ac_cv_c_stack_direction=0
   9634 else
   9635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9636 /* end confdefs.h.  */
   9637 $ac_includes_default
   9638 int
   9639 find_stack_direction ()
   9640 {
   9641   static char *addr = 0;
   9642   auto char dummy;
   9643   if (addr == 0)
   9644     {
   9645       addr = &dummy;
   9646       return find_stack_direction ();
   9647     }
   9648   else
   9649     return (&dummy > addr) ? 1 : -1;
   9650 }
   9651 
   9652 int
   9653 main ()
   9654 {
   9655   return find_stack_direction () < 0;
   9656 }
   9657 _ACEOF
   9658 if ac_fn_c_try_run "$LINENO"; then :
   9659   ac_cv_c_stack_direction=1
   9660 else
   9661   ac_cv_c_stack_direction=-1
   9662 fi
   9663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9664   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9665 fi
   9666 
   9667 fi
   9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   9669 $as_echo "$ac_cv_c_stack_direction" >&6; }
   9670 cat >>confdefs.h <<_ACEOF
   9671 #define STACK_DIRECTION $ac_cv_c_stack_direction
   9672 _ACEOF
   9673 
   9674 
   9675 fi
   9676 
   9677 for ac_header in stdlib.h unistd.h
   9678 do :
   9679   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   9680 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   9681 eval as_val=\$$as_ac_Header
   9682    if test "x$as_val" = x""yes; then :
   9683   cat >>confdefs.h <<_ACEOF
   9684 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   9685 _ACEOF
   9686 
   9687 fi
   9688 
   9689 done
   9690 
   9691 for ac_func in getpagesize
   9692 do :
   9693   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
   9694 if test "x$ac_cv_func_getpagesize" = x""yes; then :
   9695   cat >>confdefs.h <<_ACEOF
   9696 #define HAVE_GETPAGESIZE 1
   9697 _ACEOF
   9698 
   9699 fi
   9700 done
   9701 
   9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
   9703 $as_echo_n "checking for working mmap... " >&6; }
   9704 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
   9705   $as_echo_n "(cached) " >&6
   9706 else
   9707   if test "$cross_compiling" = yes; then :
   9708   ac_cv_func_mmap_fixed_mapped=no
   9709 else
   9710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9711 /* end confdefs.h.  */
   9712 $ac_includes_default
   9713 /* malloc might have been renamed as rpl_malloc. */
   9714 #undef malloc
   9715 
   9716 /* Thanks to Mike Haertel and Jim Avera for this test.
   9717    Here is a matrix of mmap possibilities:
   9718 	mmap private not fixed
   9719 	mmap private fixed at somewhere currently unmapped
   9720 	mmap private fixed at somewhere already mapped
   9721 	mmap shared not fixed
   9722 	mmap shared fixed at somewhere currently unmapped
   9723 	mmap shared fixed at somewhere already mapped
   9724    For private mappings, we should verify that changes cannot be read()
   9725    back from the file, nor mmap's back from the file at a different
   9726    address.  (There have been systems where private was not correctly
   9727    implemented like the infamous i386 svr4.0, and systems where the
   9728    VM page cache was not coherent with the file system buffer cache
   9729    like early versions of FreeBSD and possibly contemporary NetBSD.)
   9730    For shared mappings, we should conversely verify that changes get
   9731    propagated back to all the places they're supposed to be.
   9732 
   9733    Grep wants private fixed already mapped.
   9734    The main things grep needs to know about mmap are:
   9735    * does it exist and is it safe to write into the mmap'd area
   9736    * how to use it (BSD variants)  */
   9737 
   9738 #include <fcntl.h>
   9739 #include <sys/mman.h>
   9740 
   9741 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
   9742 char *malloc ();
   9743 #endif
   9744 
   9745 /* This mess was copied from the GNU getpagesize.h.  */
   9746 #ifndef HAVE_GETPAGESIZE
   9747 /* Assume that all systems that can run configure have sys/param.h.  */
   9748 # ifndef HAVE_SYS_PARAM_H
   9749 #  define HAVE_SYS_PARAM_H 1
   9750 # endif
   9751 
   9752 # ifdef _SC_PAGESIZE
   9753 #  define getpagesize() sysconf(_SC_PAGESIZE)
   9754 # else /* no _SC_PAGESIZE */
   9755 #  ifdef HAVE_SYS_PARAM_H
   9756 #   include <sys/param.h>
   9757 #   ifdef EXEC_PAGESIZE
   9758 #    define getpagesize() EXEC_PAGESIZE
   9759 #   else /* no EXEC_PAGESIZE */
   9760 #    ifdef NBPG
   9761 #     define getpagesize() NBPG * CLSIZE
   9762 #     ifndef CLSIZE
   9763 #      define CLSIZE 1
   9764 #     endif /* no CLSIZE */
   9765 #    else /* no NBPG */
   9766 #     ifdef NBPC
   9767 #      define getpagesize() NBPC
   9768 #     else /* no NBPC */
   9769 #      ifdef PAGESIZE
   9770 #       define getpagesize() PAGESIZE
   9771 #      endif /* PAGESIZE */
   9772 #     endif /* no NBPC */
   9773 #    endif /* no NBPG */
   9774 #   endif /* no EXEC_PAGESIZE */
   9775 #  else /* no HAVE_SYS_PARAM_H */
   9776 #   define getpagesize() 8192	/* punt totally */
   9777 #  endif /* no HAVE_SYS_PARAM_H */
   9778 # endif /* no _SC_PAGESIZE */
   9779 
   9780 #endif /* no HAVE_GETPAGESIZE */
   9781 
   9782 int
   9783 main ()
   9784 {
   9785   char *data, *data2, *data3;
   9786   int i, pagesize;
   9787   int fd;
   9788 
   9789   pagesize = getpagesize ();
   9790 
   9791   /* First, make a file with some known garbage in it. */
   9792   data = (char *) malloc (pagesize);
   9793   if (!data)
   9794     return 1;
   9795   for (i = 0; i < pagesize; ++i)
   9796     *(data + i) = rand ();
   9797   umask (0);
   9798   fd = creat ("conftest.mmap", 0600);
   9799   if (fd < 0)
   9800     return 1;
   9801   if (write (fd, data, pagesize) != pagesize)
   9802     return 1;
   9803   close (fd);
   9804 
   9805   /* Next, try to mmap the file at a fixed address which already has
   9806      something else allocated at it.  If we can, also make sure that
   9807      we see the same garbage.  */
   9808   fd = open ("conftest.mmap", O_RDWR);
   9809   if (fd < 0)
   9810     return 1;
   9811   data2 = (char *) malloc (2 * pagesize);
   9812   if (!data2)
   9813     return 1;
   9814   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
   9815   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
   9816 		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
   9817     return 1;
   9818   for (i = 0; i < pagesize; ++i)
   9819     if (*(data + i) != *(data2 + i))
   9820       return 1;
   9821 
   9822   /* Finally, make sure that changes to the mapped area do not
   9823      percolate back to the file as seen by read().  (This is a bug on
   9824      some variants of i386 svr4.0.)  */
   9825   for (i = 0; i < pagesize; ++i)
   9826     *(data2 + i) = *(data2 + i) + 1;
   9827   data3 = (char *) malloc (pagesize);
   9828   if (!data3)
   9829     return 1;
   9830   if (read (fd, data3, pagesize) != pagesize)
   9831     return 1;
   9832   for (i = 0; i < pagesize; ++i)
   9833     if (*(data + i) != *(data3 + i))
   9834       return 1;
   9835   close (fd);
   9836   return 0;
   9837 }
   9838 _ACEOF
   9839 if ac_fn_c_try_run "$LINENO"; then :
   9840   ac_cv_func_mmap_fixed_mapped=yes
   9841 else
   9842   ac_cv_func_mmap_fixed_mapped=no
   9843 fi
   9844 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9845   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9846 fi
   9847 
   9848 fi
   9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
   9850 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
   9851 if test $ac_cv_func_mmap_fixed_mapped = yes; then
   9852 
   9853 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
   9854 
   9855 fi
   9856 rm -f conftest.mmap
   9857 
   9858 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
   9859 if test "x$ac_cv_type_pid_t" = x""yes; then :
   9860 
   9861 else
   9862 
   9863 cat >>confdefs.h <<_ACEOF
   9864 #define pid_t int
   9865 _ACEOF
   9866 
   9867 fi
   9868 
   9869 for ac_header in vfork.h
   9870 do :
   9871   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
   9872 if test "x$ac_cv_header_vfork_h" = x""yes; then :
   9873   cat >>confdefs.h <<_ACEOF
   9874 #define HAVE_VFORK_H 1
   9875 _ACEOF
   9876 
   9877 fi
   9878 
   9879 done
   9880 
   9881 for ac_func in fork vfork
   9882 do :
   9883   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   9884 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   9885 eval as_val=\$$as_ac_var
   9886    if test "x$as_val" = x""yes; then :
   9887   cat >>confdefs.h <<_ACEOF
   9888 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   9889 _ACEOF
   9890 
   9891 fi
   9892 done
   9893 
   9894 if test "x$ac_cv_func_fork" = xyes; then
   9895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
   9896 $as_echo_n "checking for working fork... " >&6; }
   9897 if test "${ac_cv_func_fork_works+set}" = set; then :
   9898   $as_echo_n "(cached) " >&6
   9899 else
   9900   if test "$cross_compiling" = yes; then :
   9901   ac_cv_func_fork_works=cross
   9902 else
   9903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9904 /* end confdefs.h.  */
   9905 $ac_includes_default
   9906 int
   9907 main ()
   9908 {
   9909 
   9910 	  /* By Ruediger Kuhlmann. */
   9911 	  return fork () < 0;
   9912 
   9913   ;
   9914   return 0;
   9915 }
   9916 _ACEOF
   9917 if ac_fn_c_try_run "$LINENO"; then :
   9918   ac_cv_func_fork_works=yes
   9919 else
   9920   ac_cv_func_fork_works=no
   9921 fi
   9922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   9923   conftest.$ac_objext conftest.beam conftest.$ac_ext
   9924 fi
   9925 
   9926 fi
   9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
   9928 $as_echo "$ac_cv_func_fork_works" >&6; }
   9929 
   9930 else
   9931   ac_cv_func_fork_works=$ac_cv_func_fork
   9932 fi
   9933 if test "x$ac_cv_func_fork_works" = xcross; then
   9934   case $host in
   9935     *-*-amigaos* | *-*-msdosdjgpp*)
   9936       # Override, as these systems have only a dummy fork() stub
   9937       ac_cv_func_fork_works=no
   9938       ;;
   9939     *)
   9940       ac_cv_func_fork_works=yes
   9941       ;;
   9942   esac
   9943   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
   9944 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
   9945 fi
   9946 ac_cv_func_vfork_works=$ac_cv_func_vfork
   9947 if test "x$ac_cv_func_vfork" = xyes; then
   9948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
   9949 $as_echo_n "checking for working vfork... " >&6; }
   9950 if test "${ac_cv_func_vfork_works+set}" = set; then :
   9951   $as_echo_n "(cached) " >&6
   9952 else
   9953   if test "$cross_compiling" = yes; then :
   9954   ac_cv_func_vfork_works=cross
   9955 else
   9956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   9957 /* end confdefs.h.  */
   9958 /* Thanks to Paul Eggert for this test.  */
   9959 $ac_includes_default
   9960 #include <sys/wait.h>
   9961 #ifdef HAVE_VFORK_H
   9962 # include <vfork.h>
   9963 #endif
   9964 /* On some sparc systems, changes by the child to local and incoming
   9965    argument registers are propagated back to the parent.  The compiler
   9966    is told about this with #include <vfork.h>, but some compilers
   9967    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
   9968    static variable whose address is put into a register that is
   9969    clobbered by the vfork.  */
   9970 static void
   9971 #ifdef __cplusplus
   9972 sparc_address_test (int arg)
   9973 # else
   9974 sparc_address_test (arg) int arg;
   9975 #endif
   9976 {
   9977   static pid_t child;
   9978   if (!child) {
   9979     child = vfork ();
   9980     if (child < 0) {
   9981       perror ("vfork");
   9982       _exit(2);
   9983     }
   9984     if (!child) {
   9985       arg = getpid();
   9986       write(-1, "", 0);
   9987       _exit (arg);
   9988     }
   9989   }
   9990 }
   9991 
   9992 int
   9993 main ()
   9994 {
   9995   pid_t parent = getpid ();
   9996   pid_t child;
   9997 
   9998   sparc_address_test (0);
   9999 
   10000   child = vfork ();
   10001 
   10002   if (child == 0) {
   10003     /* Here is another test for sparc vfork register problems.  This
   10004        test uses lots of local variables, at least as many local
   10005        variables as main has allocated so far including compiler
   10006        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
   10007        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
   10008        reuse the register of parent for one of the local variables,
   10009        since it will think that parent can't possibly be used any more
   10010        in this routine.  Assigning to the local variable will thus
   10011        munge parent in the parent process.  */
   10012     pid_t
   10013       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
   10014       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
   10015     /* Convince the compiler that p..p7 are live; otherwise, it might
   10016        use the same hardware register for all 8 local variables.  */
   10017     if (p != p1 || p != p2 || p != p3 || p != p4
   10018 	|| p != p5 || p != p6 || p != p7)
   10019       _exit(1);
   10020 
   10021     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
   10022        from child file descriptors.  If the child closes a descriptor
   10023        before it execs or exits, this munges the parent's descriptor
   10024        as well.  Test for this by closing stdout in the child.  */
   10025     _exit(close(fileno(stdout)) != 0);
   10026   } else {
   10027     int status;
   10028     struct stat st;
   10029 
   10030     while (wait(&status) != child)
   10031       ;
   10032     return (
   10033 	 /* Was there some problem with vforking?  */
   10034 	 child < 0
   10035 
   10036 	 /* Did the child fail?  (This shouldn't happen.)  */
   10037 	 || status
   10038 
   10039 	 /* Did the vfork/compiler bug occur?  */
   10040 	 || parent != getpid()
   10041 
   10042 	 /* Did the file descriptor bug occur?  */
   10043 	 || fstat(fileno(stdout), &st) != 0
   10044 	 );
   10045   }
   10046 }
   10047 _ACEOF
   10048 if ac_fn_c_try_run "$LINENO"; then :
   10049   ac_cv_func_vfork_works=yes
   10050 else
   10051   ac_cv_func_vfork_works=no
   10052 fi
   10053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10054   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10055 fi
   10056 
   10057 fi
   10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
   10059 $as_echo "$ac_cv_func_vfork_works" >&6; }
   10060 
   10061 fi;
   10062 if test "x$ac_cv_func_fork_works" = xcross; then
   10063   ac_cv_func_vfork_works=$ac_cv_func_vfork
   10064   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
   10065 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
   10066 fi
   10067 
   10068 if test "x$ac_cv_func_vfork_works" = xyes; then
   10069 
   10070 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
   10071 
   10072 else
   10073 
   10074 $as_echo "#define vfork fork" >>confdefs.h
   10075 
   10076 fi
   10077 if test "x$ac_cv_func_fork_works" = xyes; then
   10078 
   10079 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
   10080 
   10081 fi
   10082 
   10083 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
   10084 		pipe poll pread pread64 pwrite readlink resize_term \
   10085 		sbrk setpgid setpgrp setsid \
   10086 		sigaction sigprocmask sigsetmask socketpair \
   10087 		ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
   10088 		setrlimit getrlimit posix_madvise waitpid lstat \
   10089 		ptrace64
   10090 do :
   10091   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10092 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   10093 eval as_val=\$$as_ac_var
   10094    if test "x$as_val" = x""yes; then :
   10095   cat >>confdefs.h <<_ACEOF
   10096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10097 _ACEOF
   10098 
   10099 fi
   10100 done
   10101 
   10102 
   10103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   10104 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   10105 if test "${am_cv_langinfo_codeset+set}" = set; then :
   10106   $as_echo_n "(cached) " >&6
   10107 else
   10108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10109 /* end confdefs.h.  */
   10110 #include <langinfo.h>
   10111 int
   10112 main ()
   10113 {
   10114 char* cs = nl_langinfo(CODESET);
   10115   ;
   10116   return 0;
   10117 }
   10118 _ACEOF
   10119 if ac_fn_c_try_link "$LINENO"; then :
   10120   am_cv_langinfo_codeset=yes
   10121 else
   10122   am_cv_langinfo_codeset=no
   10123 fi
   10124 rm -f core conftest.err conftest.$ac_objext \
   10125     conftest$ac_exeext conftest.$ac_ext
   10126 
   10127 fi
   10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   10129 $as_echo "$am_cv_langinfo_codeset" >&6; }
   10130   if test $am_cv_langinfo_codeset = yes; then
   10131 
   10132 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   10133 
   10134   fi
   10135 
   10136 
   10137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
   10138 $as_echo_n "checking for ANSI C header files... " >&6; }
   10139 if test "${ac_cv_header_stdc+set}" = set; then :
   10140   $as_echo_n "(cached) " >&6
   10141 else
   10142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10143 /* end confdefs.h.  */
   10144 #include <stdlib.h>
   10145 #include <stdarg.h>
   10146 #include <string.h>
   10147 #include <float.h>
   10148 
   10149 int
   10150 main ()
   10151 {
   10152 
   10153   ;
   10154   return 0;
   10155 }
   10156 _ACEOF
   10157 if ac_fn_c_try_compile "$LINENO"; then :
   10158   ac_cv_header_stdc=yes
   10159 else
   10160   ac_cv_header_stdc=no
   10161 fi
   10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10163 
   10164 if test $ac_cv_header_stdc = yes; then
   10165   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
   10166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10167 /* end confdefs.h.  */
   10168 #include <string.h>
   10169 
   10170 _ACEOF
   10171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10172   $EGREP "memchr" >/dev/null 2>&1; then :
   10173 
   10174 else
   10175   ac_cv_header_stdc=no
   10176 fi
   10177 rm -f conftest*
   10178 
   10179 fi
   10180 
   10181 if test $ac_cv_header_stdc = yes; then
   10182   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
   10183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10184 /* end confdefs.h.  */
   10185 #include <stdlib.h>
   10186 
   10187 _ACEOF
   10188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10189   $EGREP "free" >/dev/null 2>&1; then :
   10190 
   10191 else
   10192   ac_cv_header_stdc=no
   10193 fi
   10194 rm -f conftest*
   10195 
   10196 fi
   10197 
   10198 if test $ac_cv_header_stdc = yes; then
   10199   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
   10200   if test "$cross_compiling" = yes; then :
   10201   :
   10202 else
   10203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10204 /* end confdefs.h.  */
   10205 #include <ctype.h>
   10206 #include <stdlib.h>
   10207 #if ((' ' & 0x0FF) == 0x020)
   10208 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
   10209 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
   10210 #else
   10211 # define ISLOWER(c) \
   10212 		   (('a' <= (c) && (c) <= 'i') \
   10213 		     || ('j' <= (c) && (c) <= 'r') \
   10214 		     || ('s' <= (c) && (c) <= 'z'))
   10215 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
   10216 #endif
   10217 
   10218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
   10219 int
   10220 main ()
   10221 {
   10222   int i;
   10223   for (i = 0; i < 256; i++)
   10224     if (XOR (islower (i), ISLOWER (i))
   10225 	|| toupper (i) != TOUPPER (i))
   10226       return 2;
   10227   return 0;
   10228 }
   10229 _ACEOF
   10230 if ac_fn_c_try_run "$LINENO"; then :
   10231 
   10232 else
   10233   ac_cv_header_stdc=no
   10234 fi
   10235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10236   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10237 fi
   10238 
   10239 fi
   10240 fi
   10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
   10242 $as_echo "$ac_cv_header_stdc" >&6; }
   10243 if test $ac_cv_header_stdc = yes; then
   10244 
   10245 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
   10246 
   10247 fi
   10248 
   10249   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
   10250 # for constant arguments.  Useless!
   10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
   10252 $as_echo_n "checking for working alloca.h... " >&6; }
   10253 if test "${ac_cv_working_alloca_h+set}" = set; then :
   10254   $as_echo_n "(cached) " >&6
   10255 else
   10256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10257 /* end confdefs.h.  */
   10258 #include <alloca.h>
   10259 int
   10260 main ()
   10261 {
   10262 char *p = (char *) alloca (2 * sizeof (int));
   10263 			  if (p) return 0;
   10264   ;
   10265   return 0;
   10266 }
   10267 _ACEOF
   10268 if ac_fn_c_try_link "$LINENO"; then :
   10269   ac_cv_working_alloca_h=yes
   10270 else
   10271   ac_cv_working_alloca_h=no
   10272 fi
   10273 rm -f core conftest.err conftest.$ac_objext \
   10274     conftest$ac_exeext conftest.$ac_ext
   10275 fi
   10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
   10277 $as_echo "$ac_cv_working_alloca_h" >&6; }
   10278 if test $ac_cv_working_alloca_h = yes; then
   10279 
   10280 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
   10281 
   10282 fi
   10283 
   10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
   10285 $as_echo_n "checking for alloca... " >&6; }
   10286 if test "${ac_cv_func_alloca_works+set}" = set; then :
   10287   $as_echo_n "(cached) " >&6
   10288 else
   10289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10290 /* end confdefs.h.  */
   10291 #ifdef __GNUC__
   10292 # define alloca __builtin_alloca
   10293 #else
   10294 # ifdef _MSC_VER
   10295 #  include <malloc.h>
   10296 #  define alloca _alloca
   10297 # else
   10298 #  ifdef HAVE_ALLOCA_H
   10299 #   include <alloca.h>
   10300 #  else
   10301 #   ifdef _AIX
   10302  #pragma alloca
   10303 #   else
   10304 #    ifndef alloca /* predefined by HP cc +Olibcalls */
   10305 char *alloca ();
   10306 #    endif
   10307 #   endif
   10308 #  endif
   10309 # endif
   10310 #endif
   10311 
   10312 int
   10313 main ()
   10314 {
   10315 char *p = (char *) alloca (1);
   10316 				    if (p) return 0;
   10317   ;
   10318   return 0;
   10319 }
   10320 _ACEOF
   10321 if ac_fn_c_try_link "$LINENO"; then :
   10322   ac_cv_func_alloca_works=yes
   10323 else
   10324   ac_cv_func_alloca_works=no
   10325 fi
   10326 rm -f core conftest.err conftest.$ac_objext \
   10327     conftest$ac_exeext conftest.$ac_ext
   10328 fi
   10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
   10330 $as_echo "$ac_cv_func_alloca_works" >&6; }
   10331 
   10332 if test $ac_cv_func_alloca_works = yes; then
   10333 
   10334 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
   10335 
   10336 else
   10337   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
   10338 # that cause trouble.  Some versions do not even contain alloca or
   10339 # contain a buggy version.  If you still want to use their alloca,
   10340 # use ar to extract alloca.o from them instead of compiling alloca.c.
   10341 
   10342 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
   10343 
   10344 $as_echo "#define C_ALLOCA 1" >>confdefs.h
   10345 
   10346 
   10347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
   10348 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
   10349 if test "${ac_cv_os_cray+set}" = set; then :
   10350   $as_echo_n "(cached) " >&6
   10351 else
   10352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10353 /* end confdefs.h.  */
   10354 #if defined CRAY && ! defined CRAY2
   10355 webecray
   10356 #else
   10357 wenotbecray
   10358 #endif
   10359 
   10360 _ACEOF
   10361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   10362   $EGREP "webecray" >/dev/null 2>&1; then :
   10363   ac_cv_os_cray=yes
   10364 else
   10365   ac_cv_os_cray=no
   10366 fi
   10367 rm -f conftest*
   10368 
   10369 fi
   10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
   10371 $as_echo "$ac_cv_os_cray" >&6; }
   10372 if test $ac_cv_os_cray = yes; then
   10373   for ac_func in _getb67 GETB67 getb67; do
   10374     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10375 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   10376 eval as_val=\$$as_ac_var
   10377    if test "x$as_val" = x""yes; then :
   10378 
   10379 cat >>confdefs.h <<_ACEOF
   10380 #define CRAY_STACKSEG_END $ac_func
   10381 _ACEOF
   10382 
   10383     break
   10384 fi
   10385 
   10386   done
   10387 fi
   10388 
   10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
   10390 $as_echo_n "checking stack direction for C alloca... " >&6; }
   10391 if test "${ac_cv_c_stack_direction+set}" = set; then :
   10392   $as_echo_n "(cached) " >&6
   10393 else
   10394   if test "$cross_compiling" = yes; then :
   10395   ac_cv_c_stack_direction=0
   10396 else
   10397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10398 /* end confdefs.h.  */
   10399 $ac_includes_default
   10400 int
   10401 find_stack_direction ()
   10402 {
   10403   static char *addr = 0;
   10404   auto char dummy;
   10405   if (addr == 0)
   10406     {
   10407       addr = &dummy;
   10408       return find_stack_direction ();
   10409     }
   10410   else
   10411     return (&dummy > addr) ? 1 : -1;
   10412 }
   10413 
   10414 int
   10415 main ()
   10416 {
   10417   return find_stack_direction () < 0;
   10418 }
   10419 _ACEOF
   10420 if ac_fn_c_try_run "$LINENO"; then :
   10421   ac_cv_c_stack_direction=1
   10422 else
   10423   ac_cv_c_stack_direction=-1
   10424 fi
   10425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10426   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10427 fi
   10428 
   10429 fi
   10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
   10431 $as_echo "$ac_cv_c_stack_direction" >&6; }
   10432 cat >>confdefs.h <<_ACEOF
   10433 #define STACK_DIRECTION $ac_cv_c_stack_direction
   10434 _ACEOF
   10435 
   10436 
   10437 fi
   10438 
   10439 
   10440 
   10441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
   10442 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
   10443 if test "${am_cv_langinfo_codeset+set}" = set; then :
   10444   $as_echo_n "(cached) " >&6
   10445 else
   10446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10447 /* end confdefs.h.  */
   10448 #include <sys/param.h>
   10449 #define _KMEMUSER
   10450 #include <sys/lwp.h>
   10451 #include <langinfo.h>
   10452 int
   10453 main ()
   10454 {
   10455 char* cs = nl_langinfo(CODESET);
   10456   ;
   10457   return 0;
   10458 }
   10459 _ACEOF
   10460 if ac_fn_c_try_link "$LINENO"; then :
   10461   am_cv_langinfo_codeset=yes
   10462 else
   10463   am_cv_langinfo_codeset=no
   10464 fi
   10465 rm -f core conftest.err conftest.$ac_objext \
   10466     conftest$ac_exeext conftest.$ac_ext
   10467 
   10468 fi
   10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
   10470 $as_echo "$am_cv_langinfo_codeset" >&6; }
   10471   if test $am_cv_langinfo_codeset = yes; then
   10472 
   10473 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
   10474 
   10475   fi
   10476 
   10477 
   10478   for ac_header in linux/perf_event.h locale.h memory.h signal.h 		   sys/resource.h sys/socket.h sys/syscall.h 		   sys/un.h sys/wait.h 		   thread_db.h wait.h
   10479 do :
   10480   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
   10481 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
   10482 eval as_val=\$$as_ac_Header
   10483    if test "x$as_val" = x""yes; then :
   10484   cat >>confdefs.h <<_ACEOF
   10485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
   10486 _ACEOF
   10487 
   10488 fi
   10489 
   10490 done
   10491 
   10492 
   10493   for ac_func in fdwalk getrlimit pipe pipe2 socketpair
   10494 do :
   10495   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
   10496 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
   10497 eval as_val=\$$as_ac_var
   10498    if test "x$as_val" = x""yes; then :
   10499   cat >>confdefs.h <<_ACEOF
   10500 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
   10501 _ACEOF
   10502 
   10503 fi
   10504 done
   10505 
   10506 
   10507   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
   10508 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
   10509   ac_have_decl=1
   10510 else
   10511   ac_have_decl=0
   10512 fi
   10513 
   10514 cat >>confdefs.h <<_ACEOF
   10515 #define HAVE_DECL_STRERROR $ac_have_decl
   10516 _ACEOF
   10517 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
   10518 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
   10519   ac_have_decl=1
   10520 else
   10521   ac_have_decl=0
   10522 fi
   10523 
   10524 cat >>confdefs.h <<_ACEOF
   10525 #define HAVE_DECL_STRSTR $ac_have_decl
   10526 _ACEOF
   10527 
   10528 
   10529 
   10530 # Check the return and argument types of ptrace.  No canned test for
   10531 # this, so roll our own.
   10532 gdb_ptrace_headers='
   10533 #include <sys/types.h>
   10534 #if HAVE_SYS_PTRACE_H
   10535 # include <sys/ptrace.h>
   10536 #endif
   10537 #if HAVE_UNISTD_H
   10538 # include <unistd.h>
   10539 #endif
   10540 '
   10541 # There is no point in checking if we don't have a prototype.
   10542 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
   10543 "
   10544 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
   10545   ac_have_decl=1
   10546 else
   10547   ac_have_decl=0
   10548 fi
   10549 
   10550 cat >>confdefs.h <<_ACEOF
   10551 #define HAVE_DECL_PTRACE $ac_have_decl
   10552 _ACEOF
   10553 if test $ac_have_decl = 1; then :
   10554 
   10555 else
   10556 
   10557   : ${gdb_cv_func_ptrace_ret='int'}
   10558   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   10559 
   10560 fi
   10561 
   10562 # Check return type.  Varargs (used on GNU/Linux) conflict with the
   10563 # empty argument list, so check for that explicitly.
   10564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
   10565 $as_echo_n "checking return type of ptrace... " >&6; }
   10566 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
   10567   $as_echo_n "(cached) " >&6
   10568 else
   10569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10570 /* end confdefs.h.  */
   10571 $gdb_ptrace_headers
   10572 int
   10573 main ()
   10574 {
   10575 extern long ptrace (enum __ptrace_request, ...);
   10576   ;
   10577   return 0;
   10578 }
   10579 _ACEOF
   10580 if ac_fn_c_try_compile "$LINENO"; then :
   10581   gdb_cv_func_ptrace_ret='long'
   10582 else
   10583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10584 /* end confdefs.h.  */
   10585 $gdb_ptrace_headers
   10586 int
   10587 main ()
   10588 {
   10589 extern int ptrace ();
   10590   ;
   10591   return 0;
   10592 }
   10593 _ACEOF
   10594 if ac_fn_c_try_compile "$LINENO"; then :
   10595   gdb_cv_func_ptrace_ret='int'
   10596 else
   10597   gdb_cv_func_ptrace_ret='long'
   10598 fi
   10599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10600 fi
   10601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10602 fi
   10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
   10604 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
   10605 
   10606 cat >>confdefs.h <<_ACEOF
   10607 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
   10608 _ACEOF
   10609 
   10610 # Check argument types.
   10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
   10612 $as_echo_n "checking types of arguments for ptrace... " >&6; }
   10613 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
   10614   $as_echo_n "(cached) " >&6
   10615 else
   10616 
   10617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10618 /* end confdefs.h.  */
   10619 $gdb_ptrace_headers
   10620 int
   10621 main ()
   10622 {
   10623 extern long ptrace (enum __ptrace_request, ...);
   10624   ;
   10625   return 0;
   10626 }
   10627 _ACEOF
   10628 if ac_fn_c_try_compile "$LINENO"; then :
   10629   gdb_cv_func_ptrace_args='int,int,long,long'
   10630 else
   10631 
   10632 for gdb_arg1 in 'int' 'long'; do
   10633  for gdb_arg2 in 'pid_t' 'int' 'long'; do
   10634   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
   10635    for gdb_arg4 in 'int' 'long' 'void *'; do
   10636      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10637 /* end confdefs.h.  */
   10638 $gdb_ptrace_headers
   10639 int
   10640 main ()
   10641 {
   10642 
   10643 extern $gdb_cv_func_ptrace_ret
   10644   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
   10645 
   10646   ;
   10647   return 0;
   10648 }
   10649 _ACEOF
   10650 if ac_fn_c_try_compile "$LINENO"; then :
   10651   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
   10652     break 4;
   10653 fi
   10654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10655     for gdb_arg5 in 'int *' 'int' 'long'; do
   10656      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10657 /* end confdefs.h.  */
   10658 $gdb_ptrace_headers
   10659 int
   10660 main ()
   10661 {
   10662 
   10663 extern $gdb_cv_func_ptrace_ret
   10664   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
   10665 
   10666   ;
   10667   return 0;
   10668 }
   10669 _ACEOF
   10670 if ac_fn_c_try_compile "$LINENO"; then :
   10671 
   10672 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
   10673     break 5;
   10674 fi
   10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10676     done
   10677    done
   10678   done
   10679  done
   10680 done
   10681 # Provide a safe default value.
   10682 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
   10683 
   10684 fi
   10685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10686 fi
   10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
   10688 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
   10689 ac_save_IFS=$IFS; IFS=','
   10690 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
   10691 IFS=$ac_save_IFS
   10692 shift
   10693 
   10694 cat >>confdefs.h <<_ACEOF
   10695 #define PTRACE_TYPE_ARG3 $3
   10696 _ACEOF
   10697 
   10698 
   10699 cat >>confdefs.h <<_ACEOF
   10700 #define PTRACE_TYPE_ARG4 $4
   10701 _ACEOF
   10702 
   10703 if test -n "$5"; then
   10704 
   10705 cat >>confdefs.h <<_ACEOF
   10706 #define PTRACE_TYPE_ARG5 $5
   10707 _ACEOF
   10708 
   10709 fi
   10710 
   10711 if test "$cross_compiling" = no; then
   10712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   10713 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   10714 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
   10715   $as_echo_n "(cached) " >&6
   10716 else
   10717   if test "$cross_compiling" = yes; then :
   10718   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
   10719 else
   10720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10721 /* end confdefs.h.  */
   10722 $ac_includes_default
   10723 int
   10724 main ()
   10725 {
   10726 /* If this system has a BSD-style setpgrp which takes arguments,
   10727   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
   10728   exit successfully. */
   10729   return setpgrp (1,1) != -1;
   10730   ;
   10731   return 0;
   10732 }
   10733 _ACEOF
   10734 if ac_fn_c_try_run "$LINENO"; then :
   10735   ac_cv_func_setpgrp_void=no
   10736 else
   10737   ac_cv_func_setpgrp_void=yes
   10738 fi
   10739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   10740   conftest.$ac_objext conftest.beam conftest.$ac_ext
   10741 fi
   10742 
   10743 fi
   10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   10745 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   10746 if test $ac_cv_func_setpgrp_void = yes; then
   10747 
   10748 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   10749 
   10750 fi
   10751 
   10752 else
   10753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
   10754 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
   10755 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
   10756   $as_echo_n "(cached) " >&6
   10757 else
   10758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10759 /* end confdefs.h.  */
   10760 
   10761 #include <unistd.h>
   10762 
   10763 int
   10764 main ()
   10765 {
   10766 
   10767   if (setpgrp(1,1) == -1)
   10768     exit (0);
   10769   else
   10770     exit (1);
   10771 
   10772   ;
   10773   return 0;
   10774 }
   10775 _ACEOF
   10776 if ac_fn_c_try_compile "$LINENO"; then :
   10777   ac_cv_func_setpgrp_void=no
   10778 else
   10779   ac_cv_func_setpgrp_void=yes
   10780 fi
   10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10782 fi
   10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
   10784 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
   10785 if test $ac_cv_func_setpgrp_void = yes; then
   10786   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
   10787 
   10788 fi
   10789 fi
   10790 
   10791 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
   10792 # since sigsetjmp might only be defined as a macro.
   10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
   10794 $as_echo_n "checking for sigsetjmp... " >&6; }
   10795 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
   10796   $as_echo_n "(cached) " >&6
   10797 else
   10798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10799 /* end confdefs.h.  */
   10800 
   10801 #include <setjmp.h>
   10802 
   10803 int
   10804 main ()
   10805 {
   10806 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
   10807   ;
   10808   return 0;
   10809 }
   10810 _ACEOF
   10811 if ac_fn_c_try_compile "$LINENO"; then :
   10812   gdb_cv_func_sigsetjmp=yes
   10813 else
   10814   gdb_cv_func_sigsetjmp=no
   10815 fi
   10816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10817 fi
   10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
   10819 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
   10820 if test $gdb_cv_func_sigsetjmp = yes; then
   10821 
   10822 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
   10823 
   10824 fi
   10825 
   10826 # Assume we'll default to using the included libiberty regex.
   10827 gdb_use_included_regex=yes
   10828 
   10829 # However, if the system regex is GNU regex, then default to *not*
   10830 # using the included regex.
   10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
   10832 $as_echo_n "checking for GNU regex... " >&6; }
   10833 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
   10834   $as_echo_n "(cached) " >&6
   10835 else
   10836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10837 /* end confdefs.h.  */
   10838 #include <gnu-versions.h>
   10839 int
   10840 main ()
   10841 {
   10842 #define REGEX_INTERFACE_VERSION 1
   10843 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
   10844 # error "Version mismatch"
   10845 #endif
   10846   ;
   10847   return 0;
   10848 }
   10849 _ACEOF
   10850 if ac_fn_c_try_compile "$LINENO"; then :
   10851   gdb_cv_have_gnu_regex=yes
   10852 else
   10853   gdb_cv_have_gnu_regex=no
   10854 fi
   10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10856 fi
   10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
   10858 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
   10859 if test $gdb_cv_have_gnu_regex = yes; then
   10860   gdb_use_included_regex=no
   10861 fi
   10862 
   10863 
   10864 # Check whether --with-included-regex was given.
   10865 if test "${with_included_regex+set}" = set; then :
   10866   withval=$with_included_regex; gdb_with_regex=$withval
   10867 else
   10868   gdb_with_regex=$gdb_use_included_regex
   10869 fi
   10870 
   10871 if test "$gdb_with_regex" = yes; then
   10872 
   10873 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
   10874 
   10875 fi
   10876 
   10877 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
   10878 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
   10879 #include <sys/proc.h>
   10880 
   10881 "
   10882 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
   10883 
   10884 cat >>confdefs.h <<_ACEOF
   10885 #define HAVE_STRUCT_THREAD_TD_PCB 1
   10886 _ACEOF
   10887 
   10888 
   10889 fi
   10890 
   10891 
   10892 # See if <sys/lwp.h> defines `struct lwp`.
   10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
   10894 $as_echo_n "checking for struct lwp... " >&6; }
   10895 if test "${gdb_cv_struct_lwp+set}" = set; then :
   10896   $as_echo_n "(cached) " >&6
   10897 else
   10898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10899 /* end confdefs.h.  */
   10900 #include <sys/param.h>
   10901 #define _KMEMUSER
   10902 #include <sys/lwp.h>
   10903 int
   10904 main ()
   10905 {
   10906 struct lwp l;
   10907   ;
   10908   return 0;
   10909 }
   10910 _ACEOF
   10911 if ac_fn_c_try_compile "$LINENO"; then :
   10912   gdb_cv_struct_lwp=yes
   10913 else
   10914   gdb_cv_struct_lwp=no
   10915 fi
   10916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10917 fi
   10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
   10919 $as_echo "$gdb_cv_struct_lwp" >&6; }
   10920 if test $gdb_cv_struct_lwp = yes; then
   10921 
   10922 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
   10923 
   10924 fi
   10925 
   10926 # See if <machine/reg.h> degines `struct reg'.
   10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
   10928 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
   10929 if test "${gdb_cv_struct_reg+set}" = set; then :
   10930   $as_echo_n "(cached) " >&6
   10931 else
   10932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   10933 /* end confdefs.h.  */
   10934 #include <sys/types.h>
   10935 #include <machine/reg.h>
   10936 int
   10937 main ()
   10938 {
   10939 struct reg r;
   10940   ;
   10941   return 0;
   10942 }
   10943 _ACEOF
   10944 if ac_fn_c_try_compile "$LINENO"; then :
   10945   gdb_cv_struct_reg=yes
   10946 else
   10947   gdb_cv_struct_reg=no
   10948 fi
   10949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   10950 fi
   10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
   10952 $as_echo "$gdb_cv_struct_reg" >&6; }
   10953 if test $gdb_cv_struct_reg = yes; then
   10954 
   10955 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
   10956 
   10957 fi
   10958 
   10959 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
   10960 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
   10961 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
   10962 "
   10963 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
   10964 
   10965 cat >>confdefs.h <<_ACEOF
   10966 #define HAVE_STRUCT_REG_R_FS 1
   10967 _ACEOF
   10968 
   10969 
   10970 fi
   10971 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
   10972 "
   10973 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
   10974 
   10975 cat >>confdefs.h <<_ACEOF
   10976 #define HAVE_STRUCT_REG_R_GS 1
   10977 _ACEOF
   10978 
   10979 
   10980 fi
   10981 
   10982 
   10983 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
   10984 # Older amd64 Linux's don't have the fs_base and gs_base members of
   10985 # `struct user_regs_struct'.
   10986 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/user.h>
   10987 "
   10988 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
   10989 
   10990 cat >>confdefs.h <<_ACEOF
   10991 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
   10992 _ACEOF
   10993 
   10994 
   10995 fi
   10996 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/user.h>
   10997 "
   10998 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
   10999 
   11000 cat >>confdefs.h <<_ACEOF
   11001 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
   11002 _ACEOF
   11003 
   11004 
   11005 fi
   11006 
   11007 
   11008 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
   11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
   11010 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
   11011 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
   11012   $as_echo_n "(cached) " >&6
   11013 else
   11014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11015 /* end confdefs.h.  */
   11016 #include <sys/ptrace.h>
   11017 int
   11018 main ()
   11019 {
   11020 PTRACE_GETREGS;
   11021   ;
   11022   return 0;
   11023 }
   11024 _ACEOF
   11025 if ac_fn_c_try_compile "$LINENO"; then :
   11026   gdb_cv_have_ptrace_getregs=yes
   11027 else
   11028   gdb_cv_have_ptrace_getregs=no
   11029 fi
   11030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11031 fi
   11032 
   11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
   11034 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
   11035 if test $gdb_cv_have_ptrace_getregs = yes; then
   11036 
   11037 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
   11038 
   11039 fi
   11040 
   11041 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
   11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
   11043 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
   11044 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
   11045   $as_echo_n "(cached) " >&6
   11046 else
   11047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11048 /* end confdefs.h.  */
   11049 #include <sys/ptrace.h>
   11050 int
   11051 main ()
   11052 {
   11053 PTRACE_GETFPXREGS;
   11054   ;
   11055   return 0;
   11056 }
   11057 _ACEOF
   11058 if ac_fn_c_try_compile "$LINENO"; then :
   11059   gdb_cv_have_ptrace_getfpxregs=yes
   11060 else
   11061   gdb_cv_have_ptrace_getfpxregs=no
   11062 fi
   11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11064 fi
   11065 
   11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
   11067 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
   11068 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
   11069 
   11070 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
   11071 
   11072 fi
   11073 
   11074 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
   11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
   11076 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
   11077 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
   11078   $as_echo_n "(cached) " >&6
   11079 else
   11080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11081 /* end confdefs.h.  */
   11082 #include <sys/types.h>
   11083 #include <sys/ptrace.h>
   11084 int
   11085 main ()
   11086 {
   11087 PT_GETDBREGS;
   11088   ;
   11089   return 0;
   11090 }
   11091 _ACEOF
   11092 if ac_fn_c_try_compile "$LINENO"; then :
   11093   gdb_cv_have_pt_getdbregs=yes
   11094 else
   11095   gdb_cv_have_pt_getdbregs=no
   11096 fi
   11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11098 fi
   11099 
   11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
   11101 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
   11102 if test $gdb_cv_have_pt_getdbregs = yes; then
   11103 
   11104 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
   11105 
   11106 fi
   11107 
   11108 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
   11109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
   11110 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
   11111 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
   11112   $as_echo_n "(cached) " >&6
   11113 else
   11114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11115 /* end confdefs.h.  */
   11116 #include <sys/types.h>
   11117 #include <sys/ptrace.h>
   11118 int
   11119 main ()
   11120 {
   11121 PT_GETXMMREGS;
   11122   ;
   11123   return 0;
   11124 }
   11125 _ACEOF
   11126 if ac_fn_c_try_compile "$LINENO"; then :
   11127   gdb_cv_have_pt_getxmmregs=yes
   11128 else
   11129   gdb_cv_have_pt_getxmmregs=no
   11130 fi
   11131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11132 fi
   11133 
   11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
   11135 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
   11136 if test $gdb_cv_have_pt_getxmmregs = yes; then
   11137 
   11138 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
   11139 
   11140 fi
   11141 
   11142 # Detect which type of /proc is in use, such as for Solaris.
   11143 
   11144 if test "${target}" = "${host}"; then
   11145   case "${host}" in
   11146   *-*-sysv4.2* | *-*-sysv5* )
   11147 
   11148 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
   11149 
   11150       ;;
   11151   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
   11152 
   11153 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
   11154 
   11155       ;;
   11156   mips-sgi-irix5*)
   11157       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
   11158 
   11159 $as_echo "#define _KMEMUSER 1" >>confdefs.h
   11160 
   11161       ;;
   11162   esac
   11163 fi
   11164 
   11165 if test "$ac_cv_header_sys_procfs_h" = yes; then
   11166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
   11167 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
   11168  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
   11169   $as_echo_n "(cached) " >&6
   11170 else
   11171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11172 /* end confdefs.h.  */
   11173 
   11174 #define _SYSCALL32
   11175 /* Needed for new procfs interface on sparc-solaris.  */
   11176 #define _STRUCTURED_PROC 1
   11177 #include <sys/procfs.h>
   11178 int
   11179 main ()
   11180 {
   11181 gregset_t avar
   11182   ;
   11183   return 0;
   11184 }
   11185 _ACEOF
   11186 if ac_fn_c_try_compile "$LINENO"; then :
   11187   bfd_cv_have_sys_procfs_type_gregset_t=yes
   11188 else
   11189   bfd_cv_have_sys_procfs_type_gregset_t=no
   11190 
   11191 fi
   11192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11193 fi
   11194 
   11195  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
   11196 
   11197 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
   11198 
   11199  fi
   11200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
   11201 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
   11202 
   11203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
   11204 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
   11205  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
   11206   $as_echo_n "(cached) " >&6
   11207 else
   11208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11209 /* end confdefs.h.  */
   11210 
   11211 #define _SYSCALL32
   11212 /* Needed for new procfs interface on sparc-solaris.  */
   11213 #define _STRUCTURED_PROC 1
   11214 #include <sys/procfs.h>
   11215 int
   11216 main ()
   11217 {
   11218 fpregset_t avar
   11219   ;
   11220   return 0;
   11221 }
   11222 _ACEOF
   11223 if ac_fn_c_try_compile "$LINENO"; then :
   11224   bfd_cv_have_sys_procfs_type_fpregset_t=yes
   11225 else
   11226   bfd_cv_have_sys_procfs_type_fpregset_t=no
   11227 
   11228 fi
   11229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11230 fi
   11231 
   11232  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
   11233 
   11234 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
   11235 
   11236  fi
   11237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
   11238 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
   11239 
   11240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
   11241 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
   11242  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
   11243   $as_echo_n "(cached) " >&6
   11244 else
   11245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11246 /* end confdefs.h.  */
   11247 
   11248 #define _SYSCALL32
   11249 /* Needed for new procfs interface on sparc-solaris.  */
   11250 #define _STRUCTURED_PROC 1
   11251 #include <sys/procfs.h>
   11252 int
   11253 main ()
   11254 {
   11255 prgregset_t avar
   11256   ;
   11257   return 0;
   11258 }
   11259 _ACEOF
   11260 if ac_fn_c_try_compile "$LINENO"; then :
   11261   bfd_cv_have_sys_procfs_type_prgregset_t=yes
   11262 else
   11263   bfd_cv_have_sys_procfs_type_prgregset_t=no
   11264 
   11265 fi
   11266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11267 fi
   11268 
   11269  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
   11270 
   11271 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
   11272 
   11273  fi
   11274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
   11275 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
   11276 
   11277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
   11278 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
   11279  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
   11280   $as_echo_n "(cached) " >&6
   11281 else
   11282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11283 /* end confdefs.h.  */
   11284 
   11285 #define _SYSCALL32
   11286 /* Needed for new procfs interface on sparc-solaris.  */
   11287 #define _STRUCTURED_PROC 1
   11288 #include <sys/procfs.h>
   11289 int
   11290 main ()
   11291 {
   11292 prfpregset_t avar
   11293   ;
   11294   return 0;
   11295 }
   11296 _ACEOF
   11297 if ac_fn_c_try_compile "$LINENO"; then :
   11298   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
   11299 else
   11300   bfd_cv_have_sys_procfs_type_prfpregset_t=no
   11301 
   11302 fi
   11303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11304 fi
   11305 
   11306  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   11307 
   11308 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
   11309 
   11310  fi
   11311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
   11312 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
   11313 
   11314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
   11315 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
   11316  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
   11317   $as_echo_n "(cached) " >&6
   11318 else
   11319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11320 /* end confdefs.h.  */
   11321 
   11322 #define _SYSCALL32
   11323 /* Needed for new procfs interface on sparc-solaris.  */
   11324 #define _STRUCTURED_PROC 1
   11325 #include <sys/procfs.h>
   11326 int
   11327 main ()
   11328 {
   11329 prgregset32_t avar
   11330   ;
   11331   return 0;
   11332 }
   11333 _ACEOF
   11334 if ac_fn_c_try_compile "$LINENO"; then :
   11335   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
   11336 else
   11337   bfd_cv_have_sys_procfs_type_prgregset32_t=no
   11338 
   11339 fi
   11340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11341 fi
   11342 
   11343  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
   11344 
   11345 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
   11346 
   11347  fi
   11348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
   11349 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
   11350 
   11351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
   11352 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
   11353  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
   11354   $as_echo_n "(cached) " >&6
   11355 else
   11356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11357 /* end confdefs.h.  */
   11358 
   11359 #define _SYSCALL32
   11360 /* Needed for new procfs interface on sparc-solaris.  */
   11361 #define _STRUCTURED_PROC 1
   11362 #include <sys/procfs.h>
   11363 int
   11364 main ()
   11365 {
   11366 lwpid_t avar
   11367   ;
   11368   return 0;
   11369 }
   11370 _ACEOF
   11371 if ac_fn_c_try_compile "$LINENO"; then :
   11372   bfd_cv_have_sys_procfs_type_lwpid_t=yes
   11373 else
   11374   bfd_cv_have_sys_procfs_type_lwpid_t=no
   11375 
   11376 fi
   11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11378 fi
   11379 
   11380  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
   11381 
   11382 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
   11383 
   11384  fi
   11385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
   11386 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
   11387 
   11388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
   11389 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
   11390  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
   11391   $as_echo_n "(cached) " >&6
   11392 else
   11393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11394 /* end confdefs.h.  */
   11395 
   11396 #define _SYSCALL32
   11397 /* Needed for new procfs interface on sparc-solaris.  */
   11398 #define _STRUCTURED_PROC 1
   11399 #include <sys/procfs.h>
   11400 int
   11401 main ()
   11402 {
   11403 psaddr_t avar
   11404   ;
   11405   return 0;
   11406 }
   11407 _ACEOF
   11408 if ac_fn_c_try_compile "$LINENO"; then :
   11409   bfd_cv_have_sys_procfs_type_psaddr_t=yes
   11410 else
   11411   bfd_cv_have_sys_procfs_type_psaddr_t=no
   11412 
   11413 fi
   11414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11415 fi
   11416 
   11417  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
   11418 
   11419 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
   11420 
   11421  fi
   11422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
   11423 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
   11424 
   11425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
   11426 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
   11427  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
   11428   $as_echo_n "(cached) " >&6
   11429 else
   11430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11431 /* end confdefs.h.  */
   11432 
   11433 #define _SYSCALL32
   11434 /* Needed for new procfs interface on sparc-solaris.  */
   11435 #define _STRUCTURED_PROC 1
   11436 #include <sys/procfs.h>
   11437 int
   11438 main ()
   11439 {
   11440 prsysent_t avar
   11441   ;
   11442   return 0;
   11443 }
   11444 _ACEOF
   11445 if ac_fn_c_try_compile "$LINENO"; then :
   11446   bfd_cv_have_sys_procfs_type_prsysent_t=yes
   11447 else
   11448   bfd_cv_have_sys_procfs_type_prsysent_t=no
   11449 
   11450 fi
   11451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11452 fi
   11453 
   11454  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
   11455 
   11456 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
   11457 
   11458  fi
   11459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
   11460 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
   11461 
   11462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
   11463 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
   11464  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
   11465   $as_echo_n "(cached) " >&6
   11466 else
   11467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11468 /* end confdefs.h.  */
   11469 
   11470 #define _SYSCALL32
   11471 /* Needed for new procfs interface on sparc-solaris.  */
   11472 #define _STRUCTURED_PROC 1
   11473 #include <sys/procfs.h>
   11474 int
   11475 main ()
   11476 {
   11477 pr_sigset_t avar
   11478   ;
   11479   return 0;
   11480 }
   11481 _ACEOF
   11482 if ac_fn_c_try_compile "$LINENO"; then :
   11483   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
   11484 else
   11485   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
   11486 
   11487 fi
   11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11489 fi
   11490 
   11491  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
   11492 
   11493 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
   11494 
   11495  fi
   11496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
   11497 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
   11498 
   11499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
   11500 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
   11501  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
   11502   $as_echo_n "(cached) " >&6
   11503 else
   11504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11505 /* end confdefs.h.  */
   11506 
   11507 #define _SYSCALL32
   11508 /* Needed for new procfs interface on sparc-solaris.  */
   11509 #define _STRUCTURED_PROC 1
   11510 #include <sys/procfs.h>
   11511 int
   11512 main ()
   11513 {
   11514 pr_sigaction64_t avar
   11515   ;
   11516   return 0;
   11517 }
   11518 _ACEOF
   11519 if ac_fn_c_try_compile "$LINENO"; then :
   11520   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
   11521 else
   11522   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
   11523 
   11524 fi
   11525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11526 fi
   11527 
   11528  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
   11529 
   11530 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
   11531 
   11532  fi
   11533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
   11534 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
   11535 
   11536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
   11537 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
   11538  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
   11539   $as_echo_n "(cached) " >&6
   11540 else
   11541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11542 /* end confdefs.h.  */
   11543 
   11544 #define _SYSCALL32
   11545 /* Needed for new procfs interface on sparc-solaris.  */
   11546 #define _STRUCTURED_PROC 1
   11547 #include <sys/procfs.h>
   11548 int
   11549 main ()
   11550 {
   11551 pr_siginfo64_t avar
   11552   ;
   11553   return 0;
   11554 }
   11555 _ACEOF
   11556 if ac_fn_c_try_compile "$LINENO"; then :
   11557   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
   11558 else
   11559   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
   11560 
   11561 fi
   11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11563 fi
   11564 
   11565  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
   11566 
   11567 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
   11568 
   11569  fi
   11570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
   11571 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
   11572 
   11573 
   11574 
   11575 
   11576 
   11577   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
   11578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
   11579 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
   11580     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
   11581   $as_echo_n "(cached) " >&6
   11582 else
   11583   if test "$cross_compiling" = yes; then :
   11584   gdb_cv_prfpregset_t_broken=yes
   11585 else
   11586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11587 /* end confdefs.h.  */
   11588 #include <sys/procfs.h>
   11589        int main ()
   11590        {
   11591          if (sizeof (prfpregset_t) == sizeof (void *))
   11592            return 1;
   11593          return 0;
   11594        }
   11595 _ACEOF
   11596 if ac_fn_c_try_run "$LINENO"; then :
   11597   gdb_cv_prfpregset_t_broken=no
   11598 else
   11599   gdb_cv_prfpregset_t_broken=yes
   11600 fi
   11601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11602   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11603 fi
   11604 
   11605 fi
   11606 
   11607     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
   11608 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
   11609     if test $gdb_cv_prfpregset_t_broken = yes; then
   11610 
   11611 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
   11612 
   11613     fi
   11614   fi
   11615 fi
   11616 
   11617 # Check if the compiler supports the `long long' type.
   11618 
   11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
   11620 $as_echo_n "checking for long long support in compiler... " >&6; }
   11621 if test "${gdb_cv_c_long_long+set}" = set; then :
   11622   $as_echo_n "(cached) " >&6
   11623 else
   11624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11625 /* end confdefs.h.  */
   11626 extern long long foo;
   11627 int
   11628 main ()
   11629 {
   11630 switch (foo & 2) { case 0: return 1; }
   11631   ;
   11632   return 0;
   11633 }
   11634 _ACEOF
   11635 if ac_fn_c_try_compile "$LINENO"; then :
   11636   gdb_cv_c_long_long=yes
   11637 else
   11638   gdb_cv_c_long_long=no
   11639 fi
   11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11641 fi
   11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
   11643 $as_echo "$gdb_cv_c_long_long" >&6; }
   11644 if test $gdb_cv_c_long_long != yes; then
   11645   # libdecnumber requires long long.
   11646   as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
   11647 fi
   11648 
   11649 # Check if the compiler and runtime support printing long longs.
   11650 
   11651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
   11652 $as_echo_n "checking for long long support in printf... " >&6; }
   11653 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
   11654   $as_echo_n "(cached) " >&6
   11655 else
   11656   if test "$cross_compiling" = yes; then :
   11657   gdb_cv_printf_has_long_long=no
   11658 else
   11659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11660 /* end confdefs.h.  */
   11661 $ac_includes_default
   11662 int
   11663 main ()
   11664 {
   11665 char buf[32];
   11666   long long l = 0;
   11667   l = (l << 16) + 0x0123;
   11668   l = (l << 16) + 0x4567;
   11669   l = (l << 16) + 0x89ab;
   11670   l = (l << 16) + 0xcdef;
   11671   sprintf (buf, "0x%016llx", l);
   11672   return (strcmp ("0x0123456789abcdef", buf));
   11673   ;
   11674   return 0;
   11675 }
   11676 _ACEOF
   11677 if ac_fn_c_try_run "$LINENO"; then :
   11678   gdb_cv_printf_has_long_long=yes
   11679 else
   11680   gdb_cv_printf_has_long_long=no
   11681 fi
   11682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11683   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11684 fi
   11685 
   11686 fi
   11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
   11688 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
   11689 if test $gdb_cv_printf_has_long_long = yes; then
   11690 
   11691 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
   11692 
   11693 fi
   11694 
   11695 # Check if the compiler and runtime support printing decfloats.
   11696 
   11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
   11698 $as_echo_n "checking for decfloat support in printf... " >&6; }
   11699 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
   11700   $as_echo_n "(cached) " >&6
   11701 else
   11702   if test "$cross_compiling" = yes; then :
   11703   gdb_cv_printf_has_decfloat=no
   11704 else
   11705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11706 /* end confdefs.h.  */
   11707 $ac_includes_default
   11708 int
   11709 main ()
   11710 {
   11711 char buf[64];
   11712   _Decimal32 d32 = 1.2345df;
   11713   _Decimal64 d64 = 1.2345dd;
   11714   _Decimal128 d128 = 1.2345dl;
   11715   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
   11716   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
   11717   ;
   11718   return 0;
   11719 }
   11720 _ACEOF
   11721 if ac_fn_c_try_run "$LINENO"; then :
   11722   gdb_cv_printf_has_decfloat=yes
   11723 else
   11724   gdb_cv_printf_has_decfloat=no
   11725 fi
   11726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11727   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11728 fi
   11729 
   11730 fi
   11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
   11732 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
   11733 if test $gdb_cv_printf_has_decfloat = yes; then
   11734 
   11735 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
   11736 
   11737 fi
   11738 
   11739 # Check if the compiler supports the `long double' type.  We can't use
   11740 # AC_C_LONG_DOUBLE because that one does additional checks on the
   11741 # constants defined in <float.h> that fail on some systems,
   11742 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
   11743 
   11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
   11745 $as_echo_n "checking for long double support in compiler... " >&6; }
   11746 if test "${gdb_cv_c_long_double+set}" = set; then :
   11747   $as_echo_n "(cached) " >&6
   11748 else
   11749   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11750 /* end confdefs.h.  */
   11751 long double foo;
   11752 _ACEOF
   11753 if ac_fn_c_try_compile "$LINENO"; then :
   11754   gdb_cv_c_long_double=yes
   11755 else
   11756   gdb_cv_c_long_double=no
   11757 fi
   11758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   11759 fi
   11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
   11761 $as_echo "$gdb_cv_c_long_double" >&6; }
   11762 if test $gdb_cv_c_long_double = yes; then
   11763 
   11764 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
   11765 
   11766 fi
   11767 
   11768 # Check if the compiler and runtime support printing long doubles.
   11769 
   11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
   11771 $as_echo_n "checking for long double support in printf... " >&6; }
   11772 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
   11773   $as_echo_n "(cached) " >&6
   11774 else
   11775   if test "$cross_compiling" = yes; then :
   11776   gdb_cv_printf_has_long_double=no
   11777 else
   11778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11779 /* end confdefs.h.  */
   11780 $ac_includes_default
   11781 int
   11782 main ()
   11783 {
   11784 char buf[16];
   11785   long double f = 3.141592653;
   11786   sprintf (buf, "%Lg", f);
   11787   return (strncmp ("3.14159", buf, 7));
   11788   ;
   11789   return 0;
   11790 }
   11791 _ACEOF
   11792 if ac_fn_c_try_run "$LINENO"; then :
   11793   gdb_cv_printf_has_long_double=yes
   11794 else
   11795   gdb_cv_printf_has_long_double=no
   11796 fi
   11797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11798   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11799 fi
   11800 
   11801 fi
   11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
   11803 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
   11804 if test $gdb_cv_printf_has_long_double = yes; then
   11805 
   11806 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
   11807 
   11808 fi
   11809 
   11810 # Check if the compiler and runtime support scanning long doubles.
   11811 
   11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
   11813 $as_echo_n "checking for long double support in scanf... " >&6; }
   11814 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
   11815   $as_echo_n "(cached) " >&6
   11816 else
   11817   if test "$cross_compiling" = yes; then :
   11818   gdb_cv_scanf_has_long_double=no
   11819 else
   11820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11821 /* end confdefs.h.  */
   11822 #include <stdio.h>
   11823 int
   11824 main ()
   11825 {
   11826 char *buf = "3.141592653";
   11827   long double f = 0;
   11828   sscanf (buf, "%Lg", &f);
   11829   return !(f > 3.14159 && f < 3.14160);
   11830   ;
   11831   return 0;
   11832 }
   11833 _ACEOF
   11834 if ac_fn_c_try_run "$LINENO"; then :
   11835   gdb_cv_scanf_has_long_double=yes
   11836 else
   11837   gdb_cv_scanf_has_long_double=no
   11838 fi
   11839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11840   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11841 fi
   11842 
   11843 fi
   11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
   11845 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
   11846 if test $gdb_cv_scanf_has_long_double = yes; then
   11847 
   11848 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
   11849 
   11850 fi
   11851 
   11852 case ${host_os} in
   11853 aix*)
   11854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
   11855 $as_echo_n "checking for -bbigtoc option... " >&6; }
   11856 if test "${gdb_cv_bigtoc+set}" = set; then :
   11857   $as_echo_n "(cached) " >&6
   11858 else
   11859 
   11860     SAVE_LDFLAGS=$LDFLAGS
   11861 
   11862     case $GCC in
   11863     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
   11864     *) gdb_cv_bigtoc=-bbigtoc ;;
   11865     esac
   11866 
   11867     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
   11868     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11869 /* end confdefs.h.  */
   11870 
   11871 int
   11872 main ()
   11873 {
   11874 int i;
   11875   ;
   11876   return 0;
   11877 }
   11878 _ACEOF
   11879 if ac_fn_c_try_link "$LINENO"; then :
   11880 
   11881 else
   11882   gdb_cv_bigtoc=
   11883 fi
   11884 rm -f core conftest.err conftest.$ac_objext \
   11885     conftest$ac_exeext conftest.$ac_ext
   11886     LDFLAGS="${SAVE_LDFLAGS}"
   11887 
   11888 fi
   11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
   11890 $as_echo "$gdb_cv_bigtoc" >&6; }
   11891   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
   11892   ;;
   11893 esac
   11894 
   11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
   11896 $as_echo_n "checking for the dynamic export flag... " >&6; }
   11897 dynamic_list=false
   11898 if test "${gdb_native}" = yes; then
   11899    # The dynamically loaded libthread_db needs access to symbols in the gdb
   11900    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
   11901    # may not be supported there.
   11902    old_LDFLAGS="$LDFLAGS"
   11903    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
   11904    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
   11905    LDFLAGS="$LDFLAGS $RDYNAMIC"
   11906    if test "${have_libpython}" = no; then
   11907      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11908 /* end confdefs.h.  */
   11909 
   11910 int
   11911 main ()
   11912 {
   11913 
   11914   ;
   11915   return 0;
   11916 }
   11917 _ACEOF
   11918 if ac_fn_c_try_link "$LINENO"; then :
   11919   dynamic_list=true
   11920 fi
   11921 rm -f core conftest.err conftest.$ac_objext \
   11922     conftest$ac_exeext conftest.$ac_ext
   11923    else
   11924      # Workaround http://bugs.python.org/issue4434 where static
   11925      # libpythonX.Y.a would get its symbols required for
   11926      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
   11927      # Problem does not happen for the recommended libpythonX.Y.so linkage.
   11928      old_CFLAGS="$CFLAGS"
   11929      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
   11930      old_LIBS="$LIBS"
   11931      LIBS="$LIBS $PYTHON_LIBS"
   11932      if test "$cross_compiling" = yes; then :
   11933   true
   11934 else
   11935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11936 /* end confdefs.h.  */
   11937 #include "${have_libpython}/Python.h"
   11938 int
   11939 main ()
   11940 {
   11941 int err;
   11942           Py_Initialize ();
   11943           err = PyRun_SimpleString ("import itertools\n");
   11944           Py_Finalize ();
   11945           return err == 0 ? 0 : 1;
   11946   ;
   11947   return 0;
   11948 }
   11949 _ACEOF
   11950 if ac_fn_c_try_run "$LINENO"; then :
   11951   dynamic_list=true
   11952 fi
   11953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   11954   conftest.$ac_objext conftest.beam conftest.$ac_ext
   11955 fi
   11956 
   11957      LIBS="$old_LIBS"
   11958      CFLAGS="$old_CFLAGS"
   11959    fi
   11960    LDFLAGS="$old_LDFLAGS"
   11961 fi
   11962 if $dynamic_list; then
   11963   found="-Wl,--dynamic-list"
   11964   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
   11965 else
   11966   found="-rdynamic"
   11967   RDYNAMIC="-rdynamic"
   11968 fi
   11969 
   11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
   11971 $as_echo "$found" >&6; }
   11972 
   11973 
   11974 if test ${build} = ${host} -a ${host} = ${target} ; then
   11975    case ${host_os} in
   11976    solaris*)
   11977       # See if thread_db library is around for Solaris thread debugging.
   11978       # Note that we must explicitly test for version 1 of the library
   11979       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
   11980       # the same API.
   11981       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
   11982 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
   11983       if test -f /usr/lib/libthread_db.so.1 ; then
   11984          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   11985 $as_echo "yes" >&6; }
   11986 
   11987 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
   11988 
   11989          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
   11990          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
   11991          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
   11992 $as_echo_n "checking for dlopen in -ldl... " >&6; }
   11993 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
   11994   $as_echo_n "(cached) " >&6
   11995 else
   11996   ac_check_lib_save_LIBS=$LIBS
   11997 LIBS="-ldl  $LIBS"
   11998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   11999 /* end confdefs.h.  */
   12000 
   12001 /* Override any GCC internal prototype to avoid an error.
   12002    Use char because int might match the return type of a GCC
   12003    builtin and then its argument prototype would still apply.  */
   12004 #ifdef __cplusplus
   12005 extern "C"
   12006 #endif
   12007 char dlopen ();
   12008 int
   12009 main ()
   12010 {
   12011 return dlopen ();
   12012   ;
   12013   return 0;
   12014 }
   12015 _ACEOF
   12016 if ac_fn_c_try_link "$LINENO"; then :
   12017   ac_cv_lib_dl_dlopen=yes
   12018 else
   12019   ac_cv_lib_dl_dlopen=no
   12020 fi
   12021 rm -f core conftest.err conftest.$ac_objext \
   12022     conftest$ac_exeext conftest.$ac_ext
   12023 LIBS=$ac_check_lib_save_LIBS
   12024 fi
   12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
   12026 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
   12027 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
   12028   cat >>confdefs.h <<_ACEOF
   12029 #define HAVE_LIBDL 1
   12030 _ACEOF
   12031 
   12032   LIBS="-ldl $LIBS"
   12033 
   12034 fi
   12035 
   12036 	 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
   12037 	 # Sun randomly tweaked the prototypes in <proc_service.h>
   12038 	 # at one point.
   12039 	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
   12040 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
   12041 	 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
   12042   $as_echo_n "(cached) " >&6
   12043 else
   12044 
   12045 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12046 /* end confdefs.h.  */
   12047 
   12048 		#include <proc_service.h>
   12049 		ps_err_e ps_pdwrite
   12050 		    (struct ps_prochandle*, psaddr_t, const void*, size_t);
   12051 
   12052 int
   12053 main ()
   12054 {
   12055 
   12056   ;
   12057   return 0;
   12058 }
   12059 _ACEOF
   12060 if ac_fn_c_try_compile "$LINENO"; then :
   12061   gdb_cv_proc_service_is_old=no
   12062 else
   12063   gdb_cv_proc_service_is_old=yes
   12064 fi
   12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12066 
   12067 fi
   12068 
   12069 	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
   12070 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
   12071 	 if test $gdb_cv_proc_service_is_old = yes; then
   12072 
   12073 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
   12074 
   12075 	 fi
   12076       else
   12077          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   12078 $as_echo "no" >&6; }
   12079       fi
   12080       ;;
   12081    aix*)
   12082       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
   12083 $as_echo_n "checking for AiX thread debugging library... " >&6; }
   12084       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
   12085   $as_echo_n "(cached) " >&6
   12086 else
   12087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12088 /* end confdefs.h.  */
   12089 #include <sys/pthdebug.h>
   12090 int
   12091 main ()
   12092 {
   12093 #ifndef PTHDB_VERSION_3
   12094                                     #error
   12095                                     #endif
   12096   ;
   12097   return 0;
   12098 }
   12099 _ACEOF
   12100 if ac_fn_c_try_compile "$LINENO"; then :
   12101   gdb_cv_have_aix_thread_debug=yes
   12102 else
   12103   gdb_cv_have_aix_thread_debug=no
   12104 fi
   12105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12106 fi
   12107 
   12108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
   12109 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
   12110       if test $gdb_cv_have_aix_thread_debug = yes; then
   12111          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
   12112          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
   12113          LIBS="$LIBS -lpthdebug"
   12114 
   12115          # Older versions of AIX do not provide the declaration for
   12116          # the getthrds function (it appears that it was introduced
   12117          # with AIX 6.x).
   12118          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
   12119 "
   12120 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
   12121   ac_have_decl=1
   12122 else
   12123   ac_have_decl=0
   12124 fi
   12125 
   12126 cat >>confdefs.h <<_ACEOF
   12127 #define HAVE_DECL_GETTHRDS $ac_have_decl
   12128 _ACEOF
   12129 
   12130       fi
   12131       ;;
   12132    esac
   12133 
   12134 fi
   12135 
   12136 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
   12137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
   12138 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
   12139 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
   12140   $as_echo_n "(cached) " >&6
   12141 else
   12142   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12143 /* end confdefs.h.  */
   12144 #include <thread_db.h>
   12145 int
   12146 main ()
   12147 {
   12148 int i = TD_NOTALLOC;
   12149   ;
   12150   return 0;
   12151 }
   12152 _ACEOF
   12153 if ac_fn_c_try_compile "$LINENO"; then :
   12154   gdb_cv_thread_db_h_has_td_notalloc=yes
   12155 else
   12156   gdb_cv_thread_db_h_has_td_notalloc=no
   12157 
   12158 fi
   12159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12160 
   12161 fi
   12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
   12163 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
   12164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
   12165 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
   12166 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
   12167   $as_echo_n "(cached) " >&6
   12168 else
   12169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12170 /* end confdefs.h.  */
   12171 #include <thread_db.h>
   12172 int
   12173 main ()
   12174 {
   12175 int i = TD_VERSION;
   12176   ;
   12177   return 0;
   12178 }
   12179 _ACEOF
   12180 if ac_fn_c_try_compile "$LINENO"; then :
   12181   gdb_cv_thread_db_h_has_td_version=yes
   12182 else
   12183   gdb_cv_thread_db_h_has_td_version=no
   12184 
   12185 fi
   12186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12187 
   12188 fi
   12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
   12190 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
   12191    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
   12192 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
   12193 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
   12194   $as_echo_n "(cached) " >&6
   12195 else
   12196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12197 /* end confdefs.h.  */
   12198 #include <thread_db.h>
   12199 int
   12200 main ()
   12201 {
   12202 int i = TD_NOTLS;
   12203   ;
   12204   return 0;
   12205 }
   12206 _ACEOF
   12207 if ac_fn_c_try_compile "$LINENO"; then :
   12208   gdb_cv_thread_db_h_has_td_notls=yes
   12209 else
   12210   gdb_cv_thread_db_h_has_td_notls=no
   12211 
   12212 fi
   12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12214 
   12215 fi
   12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
   12217 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
   12218 fi
   12219 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
   12220 
   12221 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
   12222 
   12223 fi
   12224 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
   12225 
   12226 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
   12227 
   12228 fi
   12229 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
   12230 
   12231 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
   12232 
   12233 fi
   12234 
   12235 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
   12236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
   12237 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
   12238 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
   12239   $as_echo_n "(cached) " >&6
   12240 else
   12241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12242 /* end confdefs.h.  */
   12243 #include <sys/syscall.h>
   12244 int
   12245 main ()
   12246 {
   12247 int i = __NR_tkill;
   12248   ;
   12249   return 0;
   12250 }
   12251 _ACEOF
   12252 if ac_fn_c_try_compile "$LINENO"; then :
   12253   gdb_cv_sys_syscall_h_has_tkill=yes
   12254 else
   12255   gdb_cv_sys_syscall_h_has_tkill=no
   12256 
   12257 fi
   12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12259 
   12260 fi
   12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
   12262 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
   12263 fi
   12264 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
   12265   ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
   12266 if test "x$ac_cv_func_syscall" = x""yes; then :
   12267 
   12268 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
   12269 
   12270 
   12271 fi
   12272 
   12273 fi
   12274 
   12275 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
   12276 "
   12277 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
   12278   ac_have_decl=1
   12279 else
   12280   ac_have_decl=0
   12281 fi
   12282 
   12283 cat >>confdefs.h <<_ACEOF
   12284 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
   12285 _ACEOF
   12286 
   12287 
   12288 if test "$cross_compiling" = yes; then :
   12289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12290 /* end confdefs.h.  */
   12291 #include <sys/personality.h>
   12292 int
   12293 main ()
   12294 {
   12295 
   12296 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   12297 #       define ADDR_NO_RANDOMIZE 0x0040000
   12298 #      endif
   12299        /* Test the flag could be set and stays set.  */
   12300        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   12301        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   12302 	   return 1
   12303   ;
   12304   return 0;
   12305 }
   12306 _ACEOF
   12307 if ac_fn_c_try_link "$LINENO"; then :
   12308   have_personality=true
   12309 else
   12310   have_personality=false
   12311 fi
   12312 rm -f core conftest.err conftest.$ac_objext \
   12313     conftest$ac_exeext conftest.$ac_ext
   12314 else
   12315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12316 /* end confdefs.h.  */
   12317 #include <sys/personality.h>
   12318 int
   12319 main ()
   12320 {
   12321 
   12322 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
   12323 #       define ADDR_NO_RANDOMIZE 0x0040000
   12324 #      endif
   12325        /* Test the flag could be set and stays set.  */
   12326        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
   12327        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
   12328 	   return 1
   12329   ;
   12330   return 0;
   12331 }
   12332 _ACEOF
   12333 if ac_fn_c_try_run "$LINENO"; then :
   12334   have_personality=true
   12335 else
   12336   have_personality=false
   12337 fi
   12338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
   12339   conftest.$ac_objext conftest.beam conftest.$ac_ext
   12340 fi
   12341 
   12342 if $have_personality
   12343 then
   12344 
   12345 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
   12346 
   12347 fi
   12348 
   12349 case $host_os in
   12350   go32* | *djgpp*)
   12351     gdbinit=gdb.ini
   12352     ;;
   12353   *)
   12354     gdbinit=.gdbinit
   12355     ;;
   12356 esac
   12357 
   12358 cat >>confdefs.h <<_ACEOF
   12359 #define GDBINIT "$gdbinit"
   12360 _ACEOF
   12361 
   12362 
   12363 
   12364 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
   12365 # except that the argument to --with-sysroot is optional.
   12366 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
   12367 if test "x$with_sysroot" = xyes; then
   12368   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
   12369 fi
   12370 
   12371 # Check whether --with-sysroot was given.
   12372 if test "${with_sysroot+set}" = set; then :
   12373   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
   12374 else
   12375   TARGET_SYSTEM_ROOT=
   12376 fi
   12377 
   12378 
   12379   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   12380   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   12381   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
   12382   ac_define_dir=`eval echo $ac_define_dir`
   12383 
   12384 cat >>confdefs.h <<_ACEOF
   12385 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
   12386 _ACEOF
   12387 
   12388 
   12389 
   12390 
   12391   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   12392      if test "x$prefix" = xNONE; then
   12393      	test_prefix=/usr/local
   12394      else
   12395 	test_prefix=$prefix
   12396      fi
   12397   else
   12398      test_prefix=$exec_prefix
   12399   fi
   12400   value=0
   12401   case ${ac_define_dir} in
   12402      "${test_prefix}"|"${test_prefix}/"*|\
   12403 	'${exec_prefix}'|'${exec_prefix}/'*)
   12404      value=1
   12405      ;;
   12406   esac
   12407 
   12408 cat >>confdefs.h <<_ACEOF
   12409 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
   12410 _ACEOF
   12411 
   12412 
   12413 
   12414 
   12415 
   12416 # Check whether --with-system-gdbinit was given.
   12417 if test "${with_system_gdbinit+set}" = set; then :
   12418   withval=$with_system_gdbinit;
   12419     SYSTEM_GDBINIT=$withval
   12420 else
   12421   SYSTEM_GDBINIT=
   12422 fi
   12423 
   12424 
   12425   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
   12426   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   12427   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
   12428   ac_define_dir=`eval echo $ac_define_dir`
   12429 
   12430 cat >>confdefs.h <<_ACEOF
   12431 #define SYSTEM_GDBINIT "$ac_define_dir"
   12432 _ACEOF
   12433 
   12434 
   12435 
   12436 
   12437   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
   12438      if test "x$prefix" = xNONE; then
   12439      	test_prefix=/usr/local
   12440      else
   12441 	test_prefix=$prefix
   12442      fi
   12443   else
   12444      test_prefix=$exec_prefix
   12445   fi
   12446   value=0
   12447   case ${ac_define_dir} in
   12448      "${test_prefix}"|"${test_prefix}/"*|\
   12449 	'${exec_prefix}'|'${exec_prefix}/'*)
   12450      value=1
   12451      ;;
   12452   esac
   12453 
   12454 cat >>confdefs.h <<_ACEOF
   12455 #define SYSTEM_GDBINIT_RELOCATABLE $value
   12456 _ACEOF
   12457 
   12458 
   12459 
   12460 
   12461 # Check whether --enable-werror was given.
   12462 if test "${enable_werror+set}" = set; then :
   12463   enableval=$enable_werror; case "${enableval}" in
   12464      yes | y) ERROR_ON_WARNING="yes" ;;
   12465      no | n)  ERROR_ON_WARNING="no" ;;
   12466      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
   12467    esac
   12468 fi
   12469 
   12470 
   12471 # Enable -Werror by default when using gcc.  Turn it off for releases.
   12472 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
   12473     ERROR_ON_WARNING=yes
   12474 fi
   12475 
   12476 WERROR_CFLAGS=""
   12477 if test "${ERROR_ON_WARNING}" = yes ; then
   12478     WERROR_CFLAGS="-Werror"
   12479 fi
   12480 
   12481 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
   12482 -Wpointer-sign \
   12483 -Wno-unused -Wunused-value -Wunused-function \
   12484 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
   12485 -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
   12486 -Wold-style-declaration -Wold-style-definition"
   12487 
   12488 # Enable -Wno-format by default when using gcc on mingw since many
   12489 # GCC versions complain about %I64.
   12490 case "${host}" in
   12491   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
   12492   *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
   12493 esac
   12494 
   12495 # Check whether --enable-build-warnings was given.
   12496 if test "${enable_build_warnings+set}" = set; then :
   12497   enableval=$enable_build_warnings; case "${enableval}" in
   12498   yes)	;;
   12499   no)	build_warnings="-w";;
   12500   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   12501         build_warnings="${build_warnings} ${t}";;
   12502   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   12503         build_warnings="${t} ${build_warnings}";;
   12504   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   12505 esac
   12506 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   12507   echo "Setting compiler warning flags = $build_warnings" 6>&1
   12508 fi
   12509 fi
   12510 # Check whether --enable-gdb-build-warnings was given.
   12511 if test "${enable_gdb_build_warnings+set}" = set; then :
   12512   enableval=$enable_gdb_build_warnings; case "${enableval}" in
   12513   yes)	;;
   12514   no)	build_warnings="-w";;
   12515   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   12516         build_warnings="${build_warnings} ${t}";;
   12517   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
   12518         build_warnings="${t} ${build_warnings}";;
   12519   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
   12520 esac
   12521 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
   12522   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
   12523 fi
   12524 fi
   12525 WARN_CFLAGS=""
   12526 if test "x${build_warnings}" != x -a "x$GCC" = xyes
   12527 then
   12528     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
   12529 $as_echo_n "checking compiler warning flags... " >&6; }
   12530     # Separate out the -Werror flag as some files just cannot be
   12531     # compiled with it enabled.
   12532     for w in ${build_warnings}; do
   12533 	case $w in
   12534 	-Werr*) WERROR_CFLAGS=-Werror ;;
   12535 	*) # Check that GCC accepts it
   12536 	    saved_CFLAGS="$CFLAGS"
   12537 	    CFLAGS="$CFLAGS $w"
   12538 	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12539 /* end confdefs.h.  */
   12540 
   12541 int
   12542 main ()
   12543 {
   12544 
   12545   ;
   12546   return 0;
   12547 }
   12548 _ACEOF
   12549 if ac_fn_c_try_compile "$LINENO"; then :
   12550   WARN_CFLAGS="${WARN_CFLAGS} $w"
   12551 fi
   12552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
   12553 	    CFLAGS="$saved_CFLAGS"
   12554 	esac
   12555     done
   12556     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
   12557 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
   12558 fi
   12559 
   12560 
   12561 
   12562 # In the Cygwin environment, we need some additional flags.
   12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
   12564 $as_echo_n "checking for cygwin... " >&6; }
   12565 if test "${gdb_cv_os_cygwin+set}" = set; then :
   12566   $as_echo_n "(cached) " >&6
   12567 else
   12568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12569 /* end confdefs.h.  */
   12570 
   12571 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
   12572 lose
   12573 #endif
   12574 _ACEOF
   12575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
   12576   $EGREP "^lose$" >/dev/null 2>&1; then :
   12577   gdb_cv_os_cygwin=yes
   12578 else
   12579   gdb_cv_os_cygwin=no
   12580 fi
   12581 rm -f conftest*
   12582 
   12583 fi
   12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
   12585 $as_echo "$gdb_cv_os_cygwin" >&6; }
   12586 
   12587 
   12588 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
   12589 case ${host} in
   12590   *go32* ) SER_HARDWIRE=ser-go32.o ;;
   12591   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
   12592   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
   12593 esac
   12594 
   12595 
   12596 # libreadline needs libuser32.a in a cygwin environment
   12597 WIN32LIBS=
   12598 if test x$gdb_cv_os_cygwin = xyes; then
   12599     WIN32LIBS="-luser32"
   12600     case "${target}" in
   12601 	*cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
   12602 	;;
   12603     esac
   12604 fi
   12605 
   12606 # The ser-tcp.c module requires sockets.
   12607 case ${host} in
   12608   *mingw32*)
   12609 
   12610 $as_echo "#define USE_WIN32API 1" >>confdefs.h
   12611 
   12612     WIN32LIBS="$WIN32LIBS -lws2_32"
   12613     ;;
   12614 esac
   12615 
   12616 
   12617 # Add ELF support to GDB, but only if BFD includes ELF support.
   12618 
   12619   OLD_CFLAGS=$CFLAGS
   12620   OLD_LDFLAGS=$LDFLAGS
   12621   OLD_LIBS=$LIBS
   12622   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   12623   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   12624   # always want our bfd.
   12625   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   12626   LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
   12627   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   12628   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
   12629   if test "$plugins" = "yes"; then
   12630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   12631 $as_echo_n "checking for library containing dlopen... " >&6; }
   12632 if test "${ac_cv_search_dlopen+set}" = set; then :
   12633   $as_echo_n "(cached) " >&6
   12634 else
   12635   ac_func_search_save_LIBS=$LIBS
   12636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12637 /* end confdefs.h.  */
   12638 
   12639 /* Override any GCC internal prototype to avoid an error.
   12640    Use char because int might match the return type of a GCC
   12641    builtin and then its argument prototype would still apply.  */
   12642 #ifdef __cplusplus
   12643 extern "C"
   12644 #endif
   12645 char dlopen ();
   12646 int
   12647 main ()
   12648 {
   12649 return dlopen ();
   12650   ;
   12651   return 0;
   12652 }
   12653 _ACEOF
   12654 for ac_lib in '' dl; do
   12655   if test -z "$ac_lib"; then
   12656     ac_res="none required"
   12657   else
   12658     ac_res=-l$ac_lib
   12659     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12660   fi
   12661   if ac_fn_c_try_link "$LINENO"; then :
   12662   ac_cv_search_dlopen=$ac_res
   12663 fi
   12664 rm -f core conftest.err conftest.$ac_objext \
   12665     conftest$ac_exeext
   12666   if test "${ac_cv_search_dlopen+set}" = set; then :
   12667   break
   12668 fi
   12669 done
   12670 if test "${ac_cv_search_dlopen+set}" = set; then :
   12671 
   12672 else
   12673   ac_cv_search_dlopen=no
   12674 fi
   12675 rm conftest.$ac_ext
   12676 LIBS=$ac_func_search_save_LIBS
   12677 fi
   12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   12679 $as_echo "$ac_cv_search_dlopen" >&6; }
   12680 ac_res=$ac_cv_search_dlopen
   12681 if test "$ac_res" != no; then :
   12682   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12683 
   12684 fi
   12685 
   12686   fi
   12687   LIBS="-lbfd -liberty $intl $LIBS"
   12688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
   12689 $as_echo_n "checking for ELF support in BFD... " >&6; }
   12690 if test "${gdb_cv_var_elf+set}" = set; then :
   12691   $as_echo_n "(cached) " >&6
   12692 else
   12693   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12694 /* end confdefs.h.  */
   12695 #include <stdlib.h>
   12696   #include "bfd.h"
   12697   #include "elf-bfd.h"
   12698 
   12699 int
   12700 main ()
   12701 {
   12702 return bfd_get_elf_phdr_upper_bound (NULL);
   12703   ;
   12704   return 0;
   12705 }
   12706 _ACEOF
   12707 if ac_fn_c_try_link "$LINENO"; then :
   12708   gdb_cv_var_elf=yes
   12709 else
   12710   gdb_cv_var_elf=no
   12711 fi
   12712 rm -f core conftest.err conftest.$ac_objext \
   12713     conftest$ac_exeext conftest.$ac_ext
   12714 fi
   12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
   12716 $as_echo "$gdb_cv_var_elf" >&6; }
   12717   CFLAGS=$OLD_CFLAGS
   12718   LDFLAGS=$OLD_LDFLAGS
   12719   LIBS=$OLD_LIBS
   12720 if test $gdb_cv_var_elf = yes; then
   12721   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
   12722 
   12723 $as_echo "#define HAVE_ELF 1" >>confdefs.h
   12724 
   12725   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
   12726   if test "$plugins" = "yes"; then
   12727     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   12728 $as_echo_n "checking for library containing dlopen... " >&6; }
   12729 if test "${ac_cv_search_dlopen+set}" = set; then :
   12730   $as_echo_n "(cached) " >&6
   12731 else
   12732   ac_func_search_save_LIBS=$LIBS
   12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12734 /* end confdefs.h.  */
   12735 
   12736 /* Override any GCC internal prototype to avoid an error.
   12737    Use char because int might match the return type of a GCC
   12738    builtin and then its argument prototype would still apply.  */
   12739 #ifdef __cplusplus
   12740 extern "C"
   12741 #endif
   12742 char dlopen ();
   12743 int
   12744 main ()
   12745 {
   12746 return dlopen ();
   12747   ;
   12748   return 0;
   12749 }
   12750 _ACEOF
   12751 for ac_lib in '' dl; do
   12752   if test -z "$ac_lib"; then
   12753     ac_res="none required"
   12754   else
   12755     ac_res=-l$ac_lib
   12756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12757   fi
   12758   if ac_fn_c_try_link "$LINENO"; then :
   12759   ac_cv_search_dlopen=$ac_res
   12760 fi
   12761 rm -f core conftest.err conftest.$ac_objext \
   12762     conftest$ac_exeext
   12763   if test "${ac_cv_search_dlopen+set}" = set; then :
   12764   break
   12765 fi
   12766 done
   12767 if test "${ac_cv_search_dlopen+set}" = set; then :
   12768 
   12769 else
   12770   ac_cv_search_dlopen=no
   12771 fi
   12772 rm conftest.$ac_ext
   12773 LIBS=$ac_func_search_save_LIBS
   12774 fi
   12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   12776 $as_echo "$ac_cv_search_dlopen" >&6; }
   12777 ac_res=$ac_cv_search_dlopen
   12778 if test "$ac_res" != no; then :
   12779   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12780 
   12781 fi
   12782 
   12783   fi
   12784 fi
   12785 
   12786 # Add macho support to GDB, but only if BFD includes it.
   12787 
   12788   OLD_CFLAGS=$CFLAGS
   12789   OLD_LDFLAGS=$LDFLAGS
   12790   OLD_LIBS=$LIBS
   12791   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   12792   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   12793   # always want our bfd.
   12794   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   12795   LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
   12796   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   12797   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
   12798   if test "$plugins" = "yes"; then
   12799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   12800 $as_echo_n "checking for library containing dlopen... " >&6; }
   12801 if test "${ac_cv_search_dlopen+set}" = set; then :
   12802   $as_echo_n "(cached) " >&6
   12803 else
   12804   ac_func_search_save_LIBS=$LIBS
   12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12806 /* end confdefs.h.  */
   12807 
   12808 /* Override any GCC internal prototype to avoid an error.
   12809    Use char because int might match the return type of a GCC
   12810    builtin and then its argument prototype would still apply.  */
   12811 #ifdef __cplusplus
   12812 extern "C"
   12813 #endif
   12814 char dlopen ();
   12815 int
   12816 main ()
   12817 {
   12818 return dlopen ();
   12819   ;
   12820   return 0;
   12821 }
   12822 _ACEOF
   12823 for ac_lib in '' dl; do
   12824   if test -z "$ac_lib"; then
   12825     ac_res="none required"
   12826   else
   12827     ac_res=-l$ac_lib
   12828     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12829   fi
   12830   if ac_fn_c_try_link "$LINENO"; then :
   12831   ac_cv_search_dlopen=$ac_res
   12832 fi
   12833 rm -f core conftest.err conftest.$ac_objext \
   12834     conftest$ac_exeext
   12835   if test "${ac_cv_search_dlopen+set}" = set; then :
   12836   break
   12837 fi
   12838 done
   12839 if test "${ac_cv_search_dlopen+set}" = set; then :
   12840 
   12841 else
   12842   ac_cv_search_dlopen=no
   12843 fi
   12844 rm conftest.$ac_ext
   12845 LIBS=$ac_func_search_save_LIBS
   12846 fi
   12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   12848 $as_echo "$ac_cv_search_dlopen" >&6; }
   12849 ac_res=$ac_cv_search_dlopen
   12850 if test "$ac_res" != no; then :
   12851   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12852 
   12853 fi
   12854 
   12855   fi
   12856   LIBS="-lbfd -liberty $intl $LIBS"
   12857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
   12858 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
   12859 if test "${gdb_cv_var_macho+set}" = set; then :
   12860   $as_echo_n "(cached) " >&6
   12861 else
   12862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12863 /* end confdefs.h.  */
   12864 #include <stdlib.h>
   12865   #include "bfd.h"
   12866   #include "mach-o.h"
   12867 
   12868 int
   12869 main ()
   12870 {
   12871 return bfd_mach_o_lookup_command (NULL, 0, NULL);
   12872   ;
   12873   return 0;
   12874 }
   12875 _ACEOF
   12876 if ac_fn_c_try_link "$LINENO"; then :
   12877   gdb_cv_var_macho=yes
   12878 else
   12879   gdb_cv_var_macho=no
   12880 fi
   12881 rm -f core conftest.err conftest.$ac_objext \
   12882     conftest$ac_exeext conftest.$ac_ext
   12883 fi
   12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
   12885 $as_echo "$gdb_cv_var_macho" >&6; }
   12886   CFLAGS=$OLD_CFLAGS
   12887   LDFLAGS=$OLD_LDFLAGS
   12888   LIBS=$OLD_LIBS
   12889 if test $gdb_cv_var_macho = yes; then
   12890   CONFIG_OBS="$CONFIG_OBS machoread.o"
   12891 fi
   12892 
   12893 # Add SOM support to GDB, but only if BFD includes it.
   12894 
   12895   OLD_CFLAGS=$CFLAGS
   12896   OLD_LDFLAGS=$LDFLAGS
   12897   OLD_LIBS=$LIBS
   12898   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
   12899   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
   12900   # always want our bfd.
   12901   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
   12902   LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
   12903   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
   12904   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
   12905   if test "$plugins" = "yes"; then
   12906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
   12907 $as_echo_n "checking for library containing dlopen... " >&6; }
   12908 if test "${ac_cv_search_dlopen+set}" = set; then :
   12909   $as_echo_n "(cached) " >&6
   12910 else
   12911   ac_func_search_save_LIBS=$LIBS
   12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12913 /* end confdefs.h.  */
   12914 
   12915 /* Override any GCC internal prototype to avoid an error.
   12916    Use char because int might match the return type of a GCC
   12917    builtin and then its argument prototype would still apply.  */
   12918 #ifdef __cplusplus
   12919 extern "C"
   12920 #endif
   12921 char dlopen ();
   12922 int
   12923 main ()
   12924 {
   12925 return dlopen ();
   12926   ;
   12927   return 0;
   12928 }
   12929 _ACEOF
   12930 for ac_lib in '' dl; do
   12931   if test -z "$ac_lib"; then
   12932     ac_res="none required"
   12933   else
   12934     ac_res=-l$ac_lib
   12935     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
   12936   fi
   12937   if ac_fn_c_try_link "$LINENO"; then :
   12938   ac_cv_search_dlopen=$ac_res
   12939 fi
   12940 rm -f core conftest.err conftest.$ac_objext \
   12941     conftest$ac_exeext
   12942   if test "${ac_cv_search_dlopen+set}" = set; then :
   12943   break
   12944 fi
   12945 done
   12946 if test "${ac_cv_search_dlopen+set}" = set; then :
   12947 
   12948 else
   12949   ac_cv_search_dlopen=no
   12950 fi
   12951 rm conftest.$ac_ext
   12952 LIBS=$ac_func_search_save_LIBS
   12953 fi
   12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
   12955 $as_echo "$ac_cv_search_dlopen" >&6; }
   12956 ac_res=$ac_cv_search_dlopen
   12957 if test "$ac_res" != no; then :
   12958   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
   12959 
   12960 fi
   12961 
   12962   fi
   12963   LIBS="-lbfd -liberty $intl $LIBS"
   12964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
   12965 $as_echo_n "checking for SOM support in BFD... " >&6; }
   12966 if test "${gdb_cv_var_som+set}" = set; then :
   12967   $as_echo_n "(cached) " >&6
   12968 else
   12969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   12970 /* end confdefs.h.  */
   12971 #include <stdlib.h>
   12972   #include "bfd.h"
   12973   #include "som.h"
   12974 
   12975 int
   12976 main ()
   12977 {
   12978 return bfd_som_attach_aux_hdr (NULL, 0, NULL);
   12979   ;
   12980   return 0;
   12981 }
   12982 _ACEOF
   12983 if ac_fn_c_try_link "$LINENO"; then :
   12984   gdb_cv_var_som=yes
   12985 else
   12986   gdb_cv_var_som=no
   12987 fi
   12988 rm -f core conftest.err conftest.$ac_objext \
   12989     conftest$ac_exeext conftest.$ac_ext
   12990 fi
   12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
   12992 $as_echo "$gdb_cv_var_som" >&6; }
   12993   CFLAGS=$OLD_CFLAGS
   12994   LDFLAGS=$OLD_LDFLAGS
   12995   LIBS=$OLD_LIBS
   12996 if test $gdb_cv_var_som = yes; then
   12997   CONFIG_OBS="$CONFIG_OBS somread.o"
   12998 fi
   12999 
   13000 # Add any host-specific objects to GDB.
   13001 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
   13002 
   13003 # If building on ELF, look for lzma support for embedded compressed debug info.
   13004 if test $gdb_cv_var_elf = yes; then
   13005 
   13006 # Check whether --with-lzma was given.
   13007 if test "${with_lzma+set}" = set; then :
   13008   withval=$with_lzma;
   13009 else
   13010   with_lzma=auto
   13011 fi
   13012 
   13013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
   13014 $as_echo_n "checking whether to use lzma... " >&6; }
   13015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
   13016 $as_echo "$with_lzma" >&6; }
   13017 
   13018   if test "${with_lzma}" != no; then
   13019 
   13020 
   13021 
   13022 
   13023 
   13024 
   13025 
   13026 
   13027     use_additional=yes
   13028 
   13029   acl_save_prefix="$prefix"
   13030   prefix="$acl_final_prefix"
   13031   acl_save_exec_prefix="$exec_prefix"
   13032   exec_prefix="$acl_final_exec_prefix"
   13033 
   13034     eval additional_includedir=\"$includedir\"
   13035     eval additional_libdir=\"$libdir\"
   13036 
   13037   exec_prefix="$acl_save_exec_prefix"
   13038   prefix="$acl_save_prefix"
   13039 
   13040 
   13041 # Check whether --with-liblzma-prefix was given.
   13042 if test "${with_liblzma_prefix+set}" = set; then :
   13043   withval=$with_liblzma_prefix;
   13044     if test "X$withval" = "Xno"; then
   13045       use_additional=no
   13046     else
   13047       if test "X$withval" = "X"; then
   13048 
   13049   acl_save_prefix="$prefix"
   13050   prefix="$acl_final_prefix"
   13051   acl_save_exec_prefix="$exec_prefix"
   13052   exec_prefix="$acl_final_exec_prefix"
   13053 
   13054           eval additional_includedir=\"$includedir\"
   13055           eval additional_libdir=\"$libdir\"
   13056 
   13057   exec_prefix="$acl_save_exec_prefix"
   13058   prefix="$acl_save_prefix"
   13059 
   13060       else
   13061         additional_includedir="$withval/include"
   13062         additional_libdir="$withval/lib"
   13063       fi
   13064     fi
   13065 
   13066 fi
   13067 
   13068       LIBLZMA=
   13069   LTLIBLZMA=
   13070   INCLZMA=
   13071   rpathdirs=
   13072   ltrpathdirs=
   13073   names_already_handled=
   13074   names_next_round='lzma '
   13075   while test -n "$names_next_round"; do
   13076     names_this_round="$names_next_round"
   13077     names_next_round=
   13078     for name in $names_this_round; do
   13079       already_handled=
   13080       for n in $names_already_handled; do
   13081         if test "$n" = "$name"; then
   13082           already_handled=yes
   13083           break
   13084         fi
   13085       done
   13086       if test -z "$already_handled"; then
   13087         names_already_handled="$names_already_handled $name"
   13088                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   13089         eval value=\"\$HAVE_LIB$uppername\"
   13090         if test -n "$value"; then
   13091           if test "$value" = yes; then
   13092             eval value=\"\$LIB$uppername\"
   13093             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
   13094             eval value=\"\$LTLIB$uppername\"
   13095             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
   13096           else
   13097                                     :
   13098           fi
   13099         else
   13100                               found_dir=
   13101           found_la=
   13102           found_so=
   13103           found_a=
   13104           if test $use_additional = yes; then
   13105             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   13106               found_dir="$additional_libdir"
   13107               found_so="$additional_libdir/lib$name.$shlibext"
   13108               if test -f "$additional_libdir/lib$name.la"; then
   13109                 found_la="$additional_libdir/lib$name.la"
   13110               fi
   13111             else
   13112               if test -f "$additional_libdir/lib$name.$libext"; then
   13113                 found_dir="$additional_libdir"
   13114                 found_a="$additional_libdir/lib$name.$libext"
   13115                 if test -f "$additional_libdir/lib$name.la"; then
   13116                   found_la="$additional_libdir/lib$name.la"
   13117                 fi
   13118               fi
   13119             fi
   13120           fi
   13121           if test "X$found_dir" = "X"; then
   13122             for x in $LDFLAGS $LTLIBLZMA; do
   13123 
   13124   acl_save_prefix="$prefix"
   13125   prefix="$acl_final_prefix"
   13126   acl_save_exec_prefix="$exec_prefix"
   13127   exec_prefix="$acl_final_exec_prefix"
   13128   eval x=\"$x\"
   13129   exec_prefix="$acl_save_exec_prefix"
   13130   prefix="$acl_save_prefix"
   13131 
   13132               case "$x" in
   13133                 -L*)
   13134                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   13135                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   13136                     found_dir="$dir"
   13137                     found_so="$dir/lib$name.$shlibext"
   13138                     if test -f "$dir/lib$name.la"; then
   13139                       found_la="$dir/lib$name.la"
   13140                     fi
   13141                   else
   13142                     if test -f "$dir/lib$name.$libext"; then
   13143                       found_dir="$dir"
   13144                       found_a="$dir/lib$name.$libext"
   13145                       if test -f "$dir/lib$name.la"; then
   13146                         found_la="$dir/lib$name.la"
   13147                       fi
   13148                     fi
   13149                   fi
   13150                   ;;
   13151               esac
   13152               if test "X$found_dir" != "X"; then
   13153                 break
   13154               fi
   13155             done
   13156           fi
   13157           if test "X$found_dir" != "X"; then
   13158                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
   13159             if test "X$found_so" != "X"; then
   13160                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   13161                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   13162               else
   13163                                                                                 haveit=
   13164                 for x in $ltrpathdirs; do
   13165                   if test "X$x" = "X$found_dir"; then
   13166                     haveit=yes
   13167                     break
   13168                   fi
   13169                 done
   13170                 if test -z "$haveit"; then
   13171                   ltrpathdirs="$ltrpathdirs $found_dir"
   13172                 fi
   13173                                 if test "$hardcode_direct" = yes; then
   13174                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   13175                 else
   13176                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   13177                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   13178                                                             haveit=
   13179                     for x in $rpathdirs; do
   13180                       if test "X$x" = "X$found_dir"; then
   13181                         haveit=yes
   13182                         break
   13183                       fi
   13184                     done
   13185                     if test -z "$haveit"; then
   13186                       rpathdirs="$rpathdirs $found_dir"
   13187                     fi
   13188                   else
   13189                                                                                 haveit=
   13190                     for x in $LDFLAGS $LIBLZMA; do
   13191 
   13192   acl_save_prefix="$prefix"
   13193   prefix="$acl_final_prefix"
   13194   acl_save_exec_prefix="$exec_prefix"
   13195   exec_prefix="$acl_final_exec_prefix"
   13196   eval x=\"$x\"
   13197   exec_prefix="$acl_save_exec_prefix"
   13198   prefix="$acl_save_prefix"
   13199 
   13200                       if test "X$x" = "X-L$found_dir"; then
   13201                         haveit=yes
   13202                         break
   13203                       fi
   13204                     done
   13205                     if test -z "$haveit"; then
   13206                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
   13207                     fi
   13208                     if test "$hardcode_minus_L" != no; then
   13209                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
   13210                     else
   13211                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   13212                     fi
   13213                   fi
   13214                 fi
   13215               fi
   13216             else
   13217               if test "X$found_a" != "X"; then
   13218                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
   13219               else
   13220                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
   13221               fi
   13222             fi
   13223                         additional_includedir=
   13224             case "$found_dir" in
   13225               */lib | */lib/)
   13226                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   13227                 additional_includedir="$basedir/include"
   13228                 ;;
   13229             esac
   13230             if test "X$additional_includedir" != "X"; then
   13231                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   13232                 haveit=
   13233                 if test "X$additional_includedir" = "X/usr/local/include"; then
   13234                   if test -n "$GCC"; then
   13235                     case $host_os in
   13236                       linux*) haveit=yes;;
   13237                     esac
   13238                   fi
   13239                 fi
   13240                 if test -z "$haveit"; then
   13241                   for x in $CPPFLAGS $INCLZMA; do
   13242 
   13243   acl_save_prefix="$prefix"
   13244   prefix="$acl_final_prefix"
   13245   acl_save_exec_prefix="$exec_prefix"
   13246   exec_prefix="$acl_final_exec_prefix"
   13247   eval x=\"$x\"
   13248   exec_prefix="$acl_save_exec_prefix"
   13249   prefix="$acl_save_prefix"
   13250 
   13251                     if test "X$x" = "X-I$additional_includedir"; then
   13252                       haveit=yes
   13253                       break
   13254                     fi
   13255                   done
   13256                   if test -z "$haveit"; then
   13257                     if test -d "$additional_includedir"; then
   13258                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
   13259                     fi
   13260                   fi
   13261                 fi
   13262               fi
   13263             fi
   13264                         if test -n "$found_la"; then
   13265                                                         save_libdir="$libdir"
   13266               case "$found_la" in
   13267                 */* | *\\*) . "$found_la" ;;
   13268                 *) . "./$found_la" ;;
   13269               esac
   13270               libdir="$save_libdir"
   13271                             for dep in $dependency_libs; do
   13272                 case "$dep" in
   13273                   -L*)
   13274                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   13275                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   13276                       haveit=
   13277                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   13278                         if test -n "$GCC"; then
   13279                           case $host_os in
   13280                             linux*) haveit=yes;;
   13281                           esac
   13282                         fi
   13283                       fi
   13284                       if test -z "$haveit"; then
   13285                         haveit=
   13286                         for x in $LDFLAGS $LIBLZMA; do
   13287 
   13288   acl_save_prefix="$prefix"
   13289   prefix="$acl_final_prefix"
   13290   acl_save_exec_prefix="$exec_prefix"
   13291   exec_prefix="$acl_final_exec_prefix"
   13292   eval x=\"$x\"
   13293   exec_prefix="$acl_save_exec_prefix"
   13294   prefix="$acl_save_prefix"
   13295 
   13296                           if test "X$x" = "X-L$additional_libdir"; then
   13297                             haveit=yes
   13298                             break
   13299                           fi
   13300                         done
   13301                         if test -z "$haveit"; then
   13302                           if test -d "$additional_libdir"; then
   13303                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
   13304                           fi
   13305                         fi
   13306                         haveit=
   13307                         for x in $LDFLAGS $LTLIBLZMA; do
   13308 
   13309   acl_save_prefix="$prefix"
   13310   prefix="$acl_final_prefix"
   13311   acl_save_exec_prefix="$exec_prefix"
   13312   exec_prefix="$acl_final_exec_prefix"
   13313   eval x=\"$x\"
   13314   exec_prefix="$acl_save_exec_prefix"
   13315   prefix="$acl_save_prefix"
   13316 
   13317                           if test "X$x" = "X-L$additional_libdir"; then
   13318                             haveit=yes
   13319                             break
   13320                           fi
   13321                         done
   13322                         if test -z "$haveit"; then
   13323                           if test -d "$additional_libdir"; then
   13324                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
   13325                           fi
   13326                         fi
   13327                       fi
   13328                     fi
   13329                     ;;
   13330                   -R*)
   13331                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   13332                     if test "$enable_rpath" != no; then
   13333                                                                   haveit=
   13334                       for x in $rpathdirs; do
   13335                         if test "X$x" = "X$dir"; then
   13336                           haveit=yes
   13337                           break
   13338                         fi
   13339                       done
   13340                       if test -z "$haveit"; then
   13341                         rpathdirs="$rpathdirs $dir"
   13342                       fi
   13343                                                                   haveit=
   13344                       for x in $ltrpathdirs; do
   13345                         if test "X$x" = "X$dir"; then
   13346                           haveit=yes
   13347                           break
   13348                         fi
   13349                       done
   13350                       if test -z "$haveit"; then
   13351                         ltrpathdirs="$ltrpathdirs $dir"
   13352                       fi
   13353                     fi
   13354                     ;;
   13355                   -l*)
   13356                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   13357                     ;;
   13358                   *.la)
   13359                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   13360                     ;;
   13361                   *)
   13362                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
   13363                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
   13364                     ;;
   13365                 esac
   13366               done
   13367             fi
   13368           else
   13369                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
   13370             LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
   13371           fi
   13372         fi
   13373       fi
   13374     done
   13375   done
   13376   if test "X$rpathdirs" != "X"; then
   13377     if test -n "$hardcode_libdir_separator"; then
   13378                         alldirs=
   13379       for found_dir in $rpathdirs; do
   13380         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   13381       done
   13382             acl_save_libdir="$libdir"
   13383       libdir="$alldirs"
   13384       eval flag=\"$hardcode_libdir_flag_spec\"
   13385       libdir="$acl_save_libdir"
   13386       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   13387     else
   13388             for found_dir in $rpathdirs; do
   13389         acl_save_libdir="$libdir"
   13390         libdir="$found_dir"
   13391         eval flag=\"$hardcode_libdir_flag_spec\"
   13392         libdir="$acl_save_libdir"
   13393         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
   13394       done
   13395     fi
   13396   fi
   13397   if test "X$ltrpathdirs" != "X"; then
   13398             for found_dir in $ltrpathdirs; do
   13399       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
   13400     done
   13401   fi
   13402 
   13403 
   13404         ac_save_CPPFLAGS="$CPPFLAGS"
   13405 
   13406   for element in $INCLZMA; do
   13407     haveit=
   13408     for x in $CPPFLAGS; do
   13409 
   13410   acl_save_prefix="$prefix"
   13411   prefix="$acl_final_prefix"
   13412   acl_save_exec_prefix="$exec_prefix"
   13413   exec_prefix="$acl_final_exec_prefix"
   13414   eval x=\"$x\"
   13415   exec_prefix="$acl_save_exec_prefix"
   13416   prefix="$acl_save_prefix"
   13417 
   13418       if test "X$x" = "X$element"; then
   13419         haveit=yes
   13420         break
   13421       fi
   13422     done
   13423     if test -z "$haveit"; then
   13424       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   13425     fi
   13426   done
   13427 
   13428 
   13429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
   13430 $as_echo_n "checking for liblzma... " >&6; }
   13431 if test "${ac_cv_liblzma+set}" = set; then :
   13432   $as_echo_n "(cached) " >&6
   13433 else
   13434 
   13435     ac_save_LIBS="$LIBS"
   13436     LIBS="$LIBS $LIBLZMA"
   13437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   13438 /* end confdefs.h.  */
   13439 #include "lzma.h"
   13440 int
   13441 main ()
   13442 {
   13443 lzma_index_iter iter;
   13444 			   lzma_index_iter_init (&iter, 0);
   13445 			   lzma_mf_is_supported (LZMA_MF_HC3);
   13446   ;
   13447   return 0;
   13448 }
   13449 _ACEOF
   13450 if ac_fn_c_try_link "$LINENO"; then :
   13451   ac_cv_liblzma=yes
   13452 else
   13453   ac_cv_liblzma=no
   13454 fi
   13455 rm -f core conftest.err conftest.$ac_objext \
   13456     conftest$ac_exeext conftest.$ac_ext
   13457     LIBS="$ac_save_LIBS"
   13458 
   13459 fi
   13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
   13461 $as_echo "$ac_cv_liblzma" >&6; }
   13462   if test "$ac_cv_liblzma" = yes; then
   13463     HAVE_LIBLZMA=yes
   13464 
   13465 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
   13466 
   13467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
   13468 $as_echo_n "checking how to link with liblzma... " >&6; }
   13469     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
   13470 $as_echo "$LIBLZMA" >&6; }
   13471   else
   13472     HAVE_LIBLZMA=no
   13473             CPPFLAGS="$ac_save_CPPFLAGS"
   13474     LIBLZMA=
   13475     LTLIBLZMA=
   13476   fi
   13477 
   13478 
   13479 
   13480 
   13481 
   13482 
   13483     if test "$HAVE_LIBLZMA" != yes; then
   13484       if test "$with_lzma" = yes; then
   13485         as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
   13486       fi
   13487     fi
   13488   fi
   13489 fi
   13490 
   13491 LIBGUI="../libgui/src/libgui.a"
   13492 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
   13493 
   13494 
   13495 
   13496 WIN32LDAPP=
   13497 
   13498 
   13499 
   13500 case "${host}" in
   13501 *-*-cygwin* | *-*-mingw* )
   13502     configdir="win"
   13503     ;;
   13504 *)
   13505     configdir="unix"
   13506     ;;
   13507 esac
   13508 
   13509 GDBTKLIBS=
   13510 if test "${enable_gdbtk}" = "yes"; then
   13511 
   13512     # Gdbtk must have an absolute path to srcdir in order to run
   13513     # properly when not installed.
   13514     here=`pwd`
   13515     cd ${srcdir}
   13516     GDBTK_SRC_DIR=`pwd`
   13517     cd $here
   13518 
   13519 
   13520     #
   13521     # Ok, lets find the tcl configuration
   13522     # First, look for one uninstalled.
   13523     # the alternative search directory is invoked by --with-tcl
   13524     #
   13525 
   13526     if test x"${no_tcl}" = x ; then
   13527 	# we reset no_tcl in case something fails here
   13528 	no_tcl=true
   13529 
   13530 # Check whether --with-tcl was given.
   13531 if test "${with_tcl+set}" = set; then :
   13532   withval=$with_tcl; with_tclconfig=${withval}
   13533 fi
   13534 
   13535 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
   13536 $as_echo_n "checking for Tcl configuration... " >&6; }
   13537 	if test "${ac_cv_c_tclconfig+set}" = set; then :
   13538   $as_echo_n "(cached) " >&6
   13539 else
   13540 
   13541 
   13542 	    # First check to see if --with-tcl was specified.
   13543 	    case "${host}" in
   13544 		*-*-cygwin*) platDir="win" ;;
   13545 		*) platDir="unix" ;;
   13546 	    esac
   13547 	    if test x"${with_tclconfig}" != x ; then
   13548 		if test -f "${with_tclconfig}/tclConfig.sh" ; then
   13549 		    ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
   13550 		else
   13551 		    as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
   13552 		fi
   13553 	    fi
   13554 
   13555 	    # then check for a private Tcl installation
   13556 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   13557 		for i in \
   13558 			../tcl \
   13559 			`ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   13560 			`ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
   13561 			`ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
   13562 			../../tcl \
   13563 			`ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   13564 			`ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
   13565 			`ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
   13566 			../../../tcl \
   13567 			`ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   13568 			`ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
   13569 			`ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
   13570 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   13571 			ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   13572 			break
   13573 		    fi
   13574 		done
   13575 	    fi
   13576 
   13577 	    # on Darwin, check in Framework installation locations
   13578 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
   13579 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   13580 			`ls -d /Library/Frameworks 2>/dev/null` \
   13581 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   13582 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   13583 			; do
   13584 		    if test -f "$i/Tcl.framework/tclConfig.sh" ; then
   13585 			ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
   13586 			break
   13587 		    fi
   13588 		done
   13589 	    fi
   13590 
   13591 	    # check in a few common install locations
   13592 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   13593 		for i in `ls -d ${libdir} 2>/dev/null` \
   13594 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   13595 			`ls -d ${prefix}/lib 2>/dev/null` \
   13596 			`ls -d /usr/local/lib 2>/dev/null` \
   13597 			`ls -d /usr/contrib/lib 2>/dev/null` \
   13598 			`ls -d /usr/lib 2>/dev/null` \
   13599 			; do
   13600 		    if test -f "$i/tclConfig.sh" ; then
   13601 			ac_cv_c_tclconfig=`(cd $i; pwd)`
   13602 			break
   13603 		    fi
   13604 		done
   13605 	    fi
   13606 
   13607 	    # check in a few other private locations
   13608 	    if test x"${ac_cv_c_tclconfig}" = x ; then
   13609 		for i in \
   13610 			${srcdir}/../tcl \
   13611 			`ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
   13612 			`ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
   13613 			`ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
   13614 		    if test -f "$i/$platDir/tclConfig.sh" ; then
   13615 		    ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
   13616 		    break
   13617 		fi
   13618 		done
   13619 	    fi
   13620 
   13621 fi
   13622 
   13623 
   13624 	if test x"${ac_cv_c_tclconfig}" = x ; then
   13625 	    TCL_BIN_DIR="# no Tcl configs found"
   13626 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
   13627 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
   13628 	else
   13629 	    no_tcl=
   13630 	    TCL_BIN_DIR=${ac_cv_c_tclconfig}
   13631 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
   13632 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   13633 	fi
   13634     fi
   13635 
   13636 
   13637     # If $no_tk is nonempty, then we can't do Tk, and there is no
   13638     # point to doing Tcl.
   13639 
   13640     #
   13641     # Ok, lets find the tk configuration
   13642     # First, look for one uninstalled.
   13643     # the alternative search directory is invoked by --with-tk
   13644     #
   13645 
   13646     if test x"${no_tk}" = x ; then
   13647 	# we reset no_tk in case something fails here
   13648 	no_tk=true
   13649 
   13650 # Check whether --with-tk was given.
   13651 if test "${with_tk+set}" = set; then :
   13652   withval=$with_tk; with_tkconfig=${withval}
   13653 fi
   13654 
   13655 	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
   13656 $as_echo_n "checking for Tk configuration... " >&6; }
   13657 	if test "${ac_cv_c_tkconfig+set}" = set; then :
   13658   $as_echo_n "(cached) " >&6
   13659 else
   13660 
   13661 
   13662 	    # First check to see if --with-tkconfig was specified.
   13663 	    if test x"${with_tkconfig}" != x ; then
   13664 		if test -f "${with_tkconfig}/tkConfig.sh" ; then
   13665 		    ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
   13666 		else
   13667 		    as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
   13668 		fi
   13669 	    fi
   13670 
   13671 	    # then check for a private Tk library
   13672 	    case "${host}" in
   13673 		*-*-cygwin*) platDir="win" ;;
   13674 		*) platDir="unix" ;;
   13675 	    esac
   13676 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   13677 		for i in \
   13678 			../tk \
   13679 			`ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   13680 			`ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
   13681 			`ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
   13682 			../../tk \
   13683 			`ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   13684 			`ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
   13685 			`ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
   13686 			../../../tk \
   13687 			`ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   13688 			`ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
   13689 			`ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
   13690 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   13691 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   13692 			break
   13693 		    fi
   13694 		done
   13695 	    fi
   13696 
   13697 	    # on Darwin, check in Framework installation locations
   13698 	    if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
   13699 		for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
   13700 			`ls -d /Library/Frameworks 2>/dev/null` \
   13701 			`ls -d /Network/Library/Frameworks 2>/dev/null` \
   13702 			`ls -d /System/Library/Frameworks 2>/dev/null` \
   13703 			; do
   13704 		    if test -f "$i/Tk.framework/tkConfig.sh" ; then
   13705 			ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
   13706 			break
   13707 		    fi
   13708 		done
   13709 	    fi
   13710 
   13711 	    # check in a few common install locations
   13712 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   13713 		for i in `ls -d ${libdir} 2>/dev/null` \
   13714 			`ls -d ${exec_prefix}/lib 2>/dev/null` \
   13715 			`ls -d ${prefix}/lib 2>/dev/null` \
   13716 			`ls -d /usr/local/lib 2>/dev/null` \
   13717 			`ls -d /usr/contrib/lib 2>/dev/null` \
   13718 			`ls -d /usr/lib 2>/dev/null` \
   13719 			; do
   13720 		    if test -f "$i/tkConfig.sh" ; then
   13721 			ac_cv_c_tkconfig=`(cd $i; pwd)`
   13722 			break
   13723 		    fi
   13724 		done
   13725 	    fi
   13726 	    # check in a few other private locations
   13727 	    if test x"${ac_cv_c_tkconfig}" = x ; then
   13728 		for i in \
   13729 			${srcdir}/../tk \
   13730 			`ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
   13731 			`ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
   13732 			`ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
   13733 		    if test -f "$i/$platDir/tkConfig.sh" ; then
   13734 			ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
   13735 			break
   13736 		    fi
   13737 		done
   13738 	    fi
   13739 
   13740 fi
   13741 
   13742 
   13743 	if test x"${ac_cv_c_tkconfig}" = x ; then
   13744 	    TK_BIN_DIR="# no Tk configs found"
   13745 	    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
   13746 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
   13747 	else
   13748 	    no_tk=
   13749 	    TK_BIN_DIR=${ac_cv_c_tkconfig}
   13750 	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
   13751 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   13752 	fi
   13753     fi
   13754 
   13755 
   13756     if test -z "${no_tcl}" -a -z "${no_tk}"; then
   13757 
   13758     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
   13759 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
   13760 
   13761     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
   13762         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   13763 $as_echo "loading" >&6; }
   13764 	. ${TCL_BIN_DIR}/tclConfig.sh
   13765     else
   13766         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
   13767 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
   13768     fi
   13769 
   13770     # eval is required to do the TCL_DBGX substitution
   13771     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
   13772     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
   13773 
   13774     # If the TCL_BIN_DIR is the build directory (not the install directory),
   13775     # then set the common variable name to the value of the build variables.
   13776     # For example, the variable TCL_LIB_SPEC will be set to the value
   13777     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
   13778     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
   13779     # installed and uninstalled version of Tcl.
   13780     if test -f "${TCL_BIN_DIR}/Makefile" ; then
   13781         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
   13782         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
   13783         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
   13784     elif test "`uname -s`" = "Darwin"; then
   13785 	# If Tcl was built as a framework, attempt to use the libraries
   13786 	# from the framework at the given location so that linking works
   13787 	# against Tcl.framework installed in an arbitrary location.
   13788 	case ${TCL_DEFS} in
   13789 	    *TCL_FRAMEWORK*)
   13790 		if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
   13791 		    for i in "`cd ${TCL_BIN_DIR}; pwd`" \
   13792 			     "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
   13793 			if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
   13794 			    TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
   13795 			    break
   13796 			fi
   13797 		    done
   13798 		fi
   13799 		if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
   13800 		    TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
   13801 		    TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
   13802 		fi
   13803 		;;
   13804 	esac
   13805     fi
   13806 
   13807     # eval is required to do the TCL_DBGX substitution
   13808     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
   13809     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
   13810     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
   13811     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
   13812 
   13813 
   13814 
   13815 
   13816 
   13817 
   13818 
   13819 
   13820 
   13821 
   13822 
   13823 
   13824 
   13825 
   13826 
   13827         # Check for in-tree tcl
   13828         here=`pwd`
   13829         cd ${srcdir}/..
   13830         topdir=`pwd`
   13831         cd ${here}
   13832 
   13833         intree="no"
   13834         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
   13835           intree="yes"
   13836         fi
   13837 
   13838         # Find Tcl private headers
   13839         if test x"${intree}" = xno; then
   13840 
   13841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
   13842 $as_echo_n "checking for Tcl private headers... " >&6; }
   13843   private_dir=""
   13844   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
   13845   if test -f ${dir}/tclInt.h ; then
   13846     private_dir=${dir}
   13847   fi
   13848 
   13849   if test x"${private_dir}" = x; then
   13850     as_fn_error "could not find private Tcl headers" "$LINENO" 5
   13851   else
   13852     TCL_PRIVATE_INCLUDE="-I${private_dir}"
   13853     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   13854 $as_echo "${private_dir}" >&6; }
   13855   fi
   13856 
   13857 	  TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
   13858           TCL_LIBRARY="${TCL_LIB_SPEC}"
   13859           TCL_DEPS=""
   13860         else
   13861           # If building tcl in the same src tree, private headers
   13862           # are not needed, but we need to be sure to use the right
   13863           # headers library
   13864 	  TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
   13865           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
   13866           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
   13867         fi
   13868 
   13869 
   13870 
   13871 
   13872 
   13873     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
   13874 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
   13875 
   13876     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
   13877         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
   13878 $as_echo "loading" >&6; }
   13879 	. ${TK_BIN_DIR}/tkConfig.sh
   13880     else
   13881         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
   13882 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
   13883     fi
   13884 
   13885     # eval is required to do the TK_DBGX substitution
   13886     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
   13887     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
   13888 
   13889     # If the TK_BIN_DIR is the build directory (not the install directory),
   13890     # then set the common variable name to the value of the build variables.
   13891     # For example, the variable TK_LIB_SPEC will be set to the value
   13892     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
   13893     # instead of TK_BUILD_LIB_SPEC since it will work with both an
   13894     # installed and uninstalled version of Tcl.
   13895     if test -f "${TK_BIN_DIR}/Makefile" ; then
   13896         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
   13897         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
   13898         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
   13899     elif test "`uname -s`" = "Darwin"; then
   13900 	# If Tk was built as a framework, attempt to use the libraries
   13901 	# from the framework at the given location so that linking works
   13902 	# against Tk.framework installed in an arbitrary location.
   13903 	case ${TK_DEFS} in
   13904 	    *TK_FRAMEWORK*)
   13905 		if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
   13906 		    for i in "`cd ${TK_BIN_DIR}; pwd`" \
   13907 			     "`cd ${TK_BIN_DIR}/../..; pwd`"; do
   13908 			if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
   13909 			    TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
   13910 			    break
   13911 			fi
   13912 		    done
   13913 		fi
   13914 		if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
   13915 		    TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
   13916 		    TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
   13917 		fi
   13918 		;;
   13919 	esac
   13920     fi
   13921 
   13922     # eval is required to do the TK_DBGX substitution
   13923     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
   13924     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
   13925     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
   13926     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
   13927 
   13928 
   13929 
   13930 
   13931 
   13932 
   13933 
   13934 
   13935 
   13936 
   13937 
   13938 
   13939 
   13940 
   13941         # Check for in-tree Tk
   13942         intree="no"
   13943         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
   13944           intree="yes"
   13945         fi
   13946 
   13947         # Find Tk private headers
   13948         if test x"${intree}" = xno; then
   13949 
   13950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
   13951 $as_echo_n "checking for Tk private headers... " >&6; }
   13952   private_dir=""
   13953   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
   13954   if test -f ${dir}/tkInt.h; then
   13955     private_dir=${dir}
   13956   fi
   13957 
   13958   if test x"${private_dir}" = x; then
   13959     as_fn_error "could not find Tk private headers" "$LINENO" 5
   13960   else
   13961     TK_PRIVATE_INCLUDE="-I${private_dir}"
   13962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
   13963 $as_echo "${private_dir}" >&6; }
   13964   fi
   13965 
   13966 	  TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
   13967 	  TK_LIBRARY=${TK_LIB_SPEC}
   13968           TK_DEPS=""
   13969         else
   13970           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
   13971           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
   13972           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
   13973         fi
   13974 
   13975 
   13976 
   13977 
   13978 
   13979         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
   13980 
   13981 	# Include some libraries that Tcl and Tk want.
   13982 	TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
   13983 	# Yes, the ordering seems wrong here.  But it isn't.
   13984 	# TK_LIBS is the list of libraries that need to be linked
   13985 	# after Tcl/Tk.  Note that this isn't put into LIBS.  If it
   13986 	# were in LIBS then any link tests after this point would
   13987 	# try to include things like `$(LIBGUI)', which wouldn't work.
   13988 	GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
   13989 
   13990         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
   13991         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
   13992         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
   13993 	CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
   13994 	CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
   13995 	CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
   13996 	CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
   13997 
   13998 	if test x$gdb_cv_os_cygwin = xyes; then
   13999 	  WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
   14000 	  WIN32LDAPP="-Wl,--subsystem,console"
   14001 	  CONFIG_OBS="${CONFIG_OBS} gdbres.o"
   14002 	fi
   14003 
   14004         subdirs="$subdirs gdbtk"
   14005 
   14006     fi
   14007 fi
   14008 
   14009 
   14010 
   14011 
   14012 
   14013 
   14014 
   14015 
   14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
   14017 $as_echo_n "checking for X... " >&6; }
   14018 
   14019 
   14020 # Check whether --with-x was given.
   14021 if test "${with_x+set}" = set; then :
   14022   withval=$with_x;
   14023 fi
   14024 
   14025 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
   14026 if test "x$with_x" = xno; then
   14027   # The user explicitly disabled X.
   14028   have_x=disabled
   14029 else
   14030   case $x_includes,$x_libraries in #(
   14031     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
   14032     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
   14033   $as_echo_n "(cached) " >&6
   14034 else
   14035   # One or both of the vars are not set, and there is no cached value.
   14036 ac_x_includes=no ac_x_libraries=no
   14037 rm -f -r conftest.dir
   14038 if mkdir conftest.dir; then
   14039   cd conftest.dir
   14040   cat >Imakefile <<'_ACEOF'
   14041 incroot:
   14042 	@echo incroot='${INCROOT}'
   14043 usrlibdir:
   14044 	@echo usrlibdir='${USRLIBDIR}'
   14045 libdir:
   14046 	@echo libdir='${LIBDIR}'
   14047 _ACEOF
   14048   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
   14049     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   14050     for ac_var in incroot usrlibdir libdir; do
   14051       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
   14052     done
   14053     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
   14054     for ac_extension in a so sl dylib la dll; do
   14055       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
   14056 	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
   14057 	ac_im_usrlibdir=$ac_im_libdir; break
   14058       fi
   14059     done
   14060     # Screen out bogus values from the imake configuration.  They are
   14061     # bogus both because they are the default anyway, and because
   14062     # using them would break gcc on systems where it needs fixed includes.
   14063     case $ac_im_incroot in
   14064 	/usr/include) ac_x_includes= ;;
   14065 	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
   14066     esac
   14067     case $ac_im_usrlibdir in
   14068 	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
   14069 	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
   14070     esac
   14071   fi
   14072   cd ..
   14073   rm -f -r conftest.dir
   14074 fi
   14075 
   14076 # Standard set of common directories for X headers.
   14077 # Check X11 before X11Rn because it is often a symlink to the current release.
   14078 ac_x_header_dirs='
   14079 /usr/X11/include
   14080 /usr/X11R7/include
   14081 /usr/X11R6/include
   14082 /usr/X11R5/include
   14083 /usr/X11R4/include
   14084 
   14085 /usr/include/X11
   14086 /usr/include/X11R7
   14087 /usr/include/X11R6
   14088 /usr/include/X11R5
   14089 /usr/include/X11R4
   14090 
   14091 /usr/local/X11/include
   14092 /usr/local/X11R7/include
   14093 /usr/local/X11R6/include
   14094 /usr/local/X11R5/include
   14095 /usr/local/X11R4/include
   14096 
   14097 /usr/local/include/X11
   14098 /usr/local/include/X11R7
   14099 /usr/local/include/X11R6
   14100 /usr/local/include/X11R5
   14101 /usr/local/include/X11R4
   14102 
   14103 /usr/X386/include
   14104 /usr/x386/include
   14105 /usr/XFree86/include/X11
   14106 
   14107 /usr/include
   14108 /usr/local/include
   14109 /usr/unsupported/include
   14110 /usr/athena/include
   14111 /usr/local/x11r5/include
   14112 /usr/lpp/Xamples/include
   14113 
   14114 /usr/openwin/include
   14115 /usr/openwin/share/include'
   14116 
   14117 if test "$ac_x_includes" = no; then
   14118   # Guess where to find include files, by looking for Xlib.h.
   14119   # First, try using that file with no special directory specified.
   14120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14121 /* end confdefs.h.  */
   14122 #include <X11/Xlib.h>
   14123 _ACEOF
   14124 if ac_fn_c_try_cpp "$LINENO"; then :
   14125   # We can compile using X headers with no special include directory.
   14126 ac_x_includes=
   14127 else
   14128   for ac_dir in $ac_x_header_dirs; do
   14129   if test -r "$ac_dir/X11/Xlib.h"; then
   14130     ac_x_includes=$ac_dir
   14131     break
   14132   fi
   14133 done
   14134 fi
   14135 rm -f conftest.err conftest.$ac_ext
   14136 fi # $ac_x_includes = no
   14137 
   14138 if test "$ac_x_libraries" = no; then
   14139   # Check for the libraries.
   14140   # See if we find them without any special options.
   14141   # Don't add to $LIBS permanently.
   14142   ac_save_LIBS=$LIBS
   14143   LIBS="-lX11 $LIBS"
   14144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14145 /* end confdefs.h.  */
   14146 #include <X11/Xlib.h>
   14147 int
   14148 main ()
   14149 {
   14150 XrmInitialize ()
   14151   ;
   14152   return 0;
   14153 }
   14154 _ACEOF
   14155 if ac_fn_c_try_link "$LINENO"; then :
   14156   LIBS=$ac_save_LIBS
   14157 # We can link X programs with no special library path.
   14158 ac_x_libraries=
   14159 else
   14160   LIBS=$ac_save_LIBS
   14161 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
   14162 do
   14163   # Don't even attempt the hair of trying to link an X program!
   14164   for ac_extension in a so sl dylib la dll; do
   14165     if test -r "$ac_dir/libX11.$ac_extension"; then
   14166       ac_x_libraries=$ac_dir
   14167       break 2
   14168     fi
   14169   done
   14170 done
   14171 fi
   14172 rm -f core conftest.err conftest.$ac_objext \
   14173     conftest$ac_exeext conftest.$ac_ext
   14174 fi # $ac_x_libraries = no
   14175 
   14176 case $ac_x_includes,$ac_x_libraries in #(
   14177   no,* | *,no | *\'*)
   14178     # Didn't find X, or a directory has "'" in its name.
   14179     ac_cv_have_x="have_x=no";; #(
   14180   *)
   14181     # Record where we found X for the cache.
   14182     ac_cv_have_x="have_x=yes\
   14183 	ac_x_includes='$ac_x_includes'\
   14184 	ac_x_libraries='$ac_x_libraries'"
   14185 esac
   14186 fi
   14187 ;; #(
   14188     *) have_x=yes;;
   14189   esac
   14190   eval "$ac_cv_have_x"
   14191 fi # $with_x != no
   14192 
   14193 if test "$have_x" != yes; then
   14194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
   14195 $as_echo "$have_x" >&6; }
   14196   no_x=yes
   14197 else
   14198   # If each of the values was on the command line, it overrides each guess.
   14199   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
   14200   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
   14201   # Update the cache value to reflect the command line values.
   14202   ac_cv_have_x="have_x=yes\
   14203 	ac_x_includes='$x_includes'\
   14204 	ac_x_libraries='$x_libraries'"
   14205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
   14206 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
   14207 fi
   14208 
   14209 
   14210 # Unlike the sim directory, whether a simulator is linked is controlled by
   14211 # presence of a gdb_sim definition in the target configure.tgt entry.
   14212 # This code just checks for a few cases where we'd like to ignore those
   14213 # definitions, even when they're present in the '.mt' file.  These cases
   14214 # are when --disable-sim is specified, or if the simulator directory is
   14215 # not part of the source tree.
   14216 #
   14217 # Check whether --enable-sim was given.
   14218 if test "${enable_sim+set}" = set; then :
   14219   enableval=$enable_sim; echo "enable_sim = $enable_sim";
   14220  echo "enableval = ${enableval}";
   14221  case "${enableval}" in
   14222   yes) ignore_sim=false ;;
   14223   no)  ignore_sim=true ;;
   14224   *)   ignore_sim=false ;;
   14225  esac
   14226 else
   14227   ignore_sim=false
   14228 fi
   14229 
   14230 
   14231 if test ! -d "${srcdir}/../sim"; then
   14232   ignore_sim=true
   14233 fi
   14234 
   14235 SIM=
   14236 SIM_OBS=
   14237 if test "${ignore_sim}" = "false"; then
   14238   if test x"${gdb_sim}" != x ; then
   14239     SIM="${gdb_sim}"
   14240     SIM_OBS="remote-sim.o"
   14241 
   14242 $as_echo "#define WITH_SIM 1" >>confdefs.h
   14243 
   14244   fi
   14245 fi
   14246 
   14247 
   14248 
   14249 
   14250 
   14251 
   14252 
   14253 
   14254 
   14255 
   14256 
   14257 
   14258 
   14259 
   14260 # List of host floatformats.
   14261 
   14262 cat >>confdefs.h <<_ACEOF
   14263 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
   14264 _ACEOF
   14265 
   14266 
   14267 cat >>confdefs.h <<_ACEOF
   14268 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
   14269 _ACEOF
   14270 
   14271 
   14272 cat >>confdefs.h <<_ACEOF
   14273 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
   14274 _ACEOF
   14275 
   14276 
   14277 # target_subdir is used by the testsuite to find the target libraries.
   14278 target_subdir=
   14279 if test "${host}" != "${target}"; then
   14280     target_subdir="${target_alias}/"
   14281 fi
   14282 
   14283 
   14284 frags=
   14285 if test "${gdb_native}" = "yes"; then
   14286   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
   14287   if test ! -f ${host_makefile_frag}; then
   14288     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
   14289   fi
   14290   frags="$frags $host_makefile_frag"
   14291 else
   14292   host_makefile_frag=/dev/null
   14293 fi
   14294 
   14295 
   14296 
   14297 
   14298 if test "${gdb_native}" = "yes"; then
   14299 # We pick this up from the host configuration file (.mh) because we
   14300 # do not have a native configuration Makefile fragment.
   14301 nativefile=`sed -n '
   14302 s/NAT_FILE[ 	]*=[ 	]*\([^ 	]*\)/\1/p
   14303 ' ${host_makefile_frag}`
   14304 fi
   14305 
   14306 
   14307 if test x"${gdb_osabi}" != x ; then
   14308 
   14309 cat >>confdefs.h <<_ACEOF
   14310 #define GDB_OSABI_DEFAULT $gdb_osabi
   14311 _ACEOF
   14312 
   14313 fi
   14314 
   14315 # Enable multi-ice-gdb-server.
   14316 # Check whether --enable-multi-ice was given.
   14317 if test "${enable_multi_ice+set}" = set; then :
   14318   enableval=$enable_multi_ice; case $enableval in
   14319     yes | no)
   14320       ;;
   14321     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
   14322   esac
   14323 fi
   14324 
   14325 if test "x$enable_multi_ice" = xyes; then
   14326    subdirs="$subdirs multi-ice"
   14327 
   14328 fi
   14329 
   14330 # Check whether --enable-gdbserver was given.
   14331 if test "${enable_gdbserver+set}" = set; then :
   14332   enableval=$enable_gdbserver; case "${enableval}" in
   14333   yes| no|auto) ;;
   14334   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
   14335 esac
   14336 else
   14337   enable_gdbserver=auto
   14338 fi
   14339 
   14340 
   14341 # We only build gdbserver automatically in a native configuration, and
   14342 # only if the user did not explicitly disable its build.
   14343 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
   14344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
   14345 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
   14346   if test "x$build_gdbserver" = xyes; then
   14347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
   14348 $as_echo "yes" >&6; }
   14349     subdirs="$subdirs gdbserver"
   14350 
   14351     gdbserver_build_enabled=yes
   14352   else
   14353     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
   14354 $as_echo "no" >&6; }
   14355   fi
   14356 fi
   14357 
   14358 # If the user explicitly request the gdbserver to be built, verify that
   14359 # we were in fact able to enable it.
   14360 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
   14361   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
   14362 fi
   14363 
   14364 # Check for babeltrace and babeltrace-ctf
   14365 
   14366 # Check whether --with-babeltrace was given.
   14367 if test "${with_babeltrace+set}" = set; then :
   14368   withval=$with_babeltrace;
   14369 else
   14370   with_babeltrace=auto
   14371 fi
   14372 
   14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
   14374 $as_echo_n "checking whether to use babeltrace... " >&6; }
   14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
   14376 $as_echo "$with_babeltrace" >&6; }
   14377 
   14378 if test "x$with_babeltrace" = "xno"; then
   14379   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
   14380 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
   14381 else
   14382   # Append -Werror to CFLAGS so that configure can catch the warning
   14383   # "assignment from incompatible pointer type", which is related to
   14384   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
   14385   # in GDB, while babeltrace 1.0.3 is broken.
   14386   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
   14387   # safe to save and restore CFLAGS here.
   14388   saved_CFLAGS=$CFLAGS
   14389   CFLAGS="$CFLAGS -Werror"
   14390 
   14391 
   14392 
   14393 
   14394 
   14395 
   14396 
   14397 
   14398     use_additional=yes
   14399 
   14400   acl_save_prefix="$prefix"
   14401   prefix="$acl_final_prefix"
   14402   acl_save_exec_prefix="$exec_prefix"
   14403   exec_prefix="$acl_final_exec_prefix"
   14404 
   14405     eval additional_includedir=\"$includedir\"
   14406     eval additional_libdir=\"$libdir\"
   14407 
   14408   exec_prefix="$acl_save_exec_prefix"
   14409   prefix="$acl_save_prefix"
   14410 
   14411 
   14412 # Check whether --with-libbabeltrace-prefix was given.
   14413 if test "${with_libbabeltrace_prefix+set}" = set; then :
   14414   withval=$with_libbabeltrace_prefix;
   14415     if test "X$withval" = "Xno"; then
   14416       use_additional=no
   14417     else
   14418       if test "X$withval" = "X"; then
   14419 
   14420   acl_save_prefix="$prefix"
   14421   prefix="$acl_final_prefix"
   14422   acl_save_exec_prefix="$exec_prefix"
   14423   exec_prefix="$acl_final_exec_prefix"
   14424 
   14425           eval additional_includedir=\"$includedir\"
   14426           eval additional_libdir=\"$libdir\"
   14427 
   14428   exec_prefix="$acl_save_exec_prefix"
   14429   prefix="$acl_save_prefix"
   14430 
   14431       else
   14432         additional_includedir="$withval/include"
   14433         additional_libdir="$withval/lib"
   14434       fi
   14435     fi
   14436 
   14437 fi
   14438 
   14439       LIBBABELTRACE=
   14440   LTLIBBABELTRACE=
   14441   INCBABELTRACE=
   14442   rpathdirs=
   14443   ltrpathdirs=
   14444   names_already_handled=
   14445   names_next_round='babeltrace babeltrace-ctf'
   14446   while test -n "$names_next_round"; do
   14447     names_this_round="$names_next_round"
   14448     names_next_round=
   14449     for name in $names_this_round; do
   14450       already_handled=
   14451       for n in $names_already_handled; do
   14452         if test "$n" = "$name"; then
   14453           already_handled=yes
   14454           break
   14455         fi
   14456       done
   14457       if test -z "$already_handled"; then
   14458         names_already_handled="$names_already_handled $name"
   14459                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
   14460         eval value=\"\$HAVE_LIB$uppername\"
   14461         if test -n "$value"; then
   14462           if test "$value" = yes; then
   14463             eval value=\"\$LIB$uppername\"
   14464             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
   14465             eval value=\"\$LTLIB$uppername\"
   14466             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
   14467           else
   14468                                     :
   14469           fi
   14470         else
   14471                               found_dir=
   14472           found_la=
   14473           found_so=
   14474           found_a=
   14475           if test $use_additional = yes; then
   14476             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
   14477               found_dir="$additional_libdir"
   14478               found_so="$additional_libdir/lib$name.$shlibext"
   14479               if test -f "$additional_libdir/lib$name.la"; then
   14480                 found_la="$additional_libdir/lib$name.la"
   14481               fi
   14482             else
   14483               if test -f "$additional_libdir/lib$name.$libext"; then
   14484                 found_dir="$additional_libdir"
   14485                 found_a="$additional_libdir/lib$name.$libext"
   14486                 if test -f "$additional_libdir/lib$name.la"; then
   14487                   found_la="$additional_libdir/lib$name.la"
   14488                 fi
   14489               fi
   14490             fi
   14491           fi
   14492           if test "X$found_dir" = "X"; then
   14493             for x in $LDFLAGS $LTLIBBABELTRACE; do
   14494 
   14495   acl_save_prefix="$prefix"
   14496   prefix="$acl_final_prefix"
   14497   acl_save_exec_prefix="$exec_prefix"
   14498   exec_prefix="$acl_final_exec_prefix"
   14499   eval x=\"$x\"
   14500   exec_prefix="$acl_save_exec_prefix"
   14501   prefix="$acl_save_prefix"
   14502 
   14503               case "$x" in
   14504                 -L*)
   14505                   dir=`echo "X$x" | sed -e 's/^X-L//'`
   14506                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
   14507                     found_dir="$dir"
   14508                     found_so="$dir/lib$name.$shlibext"
   14509                     if test -f "$dir/lib$name.la"; then
   14510                       found_la="$dir/lib$name.la"
   14511                     fi
   14512                   else
   14513                     if test -f "$dir/lib$name.$libext"; then
   14514                       found_dir="$dir"
   14515                       found_a="$dir/lib$name.$libext"
   14516                       if test -f "$dir/lib$name.la"; then
   14517                         found_la="$dir/lib$name.la"
   14518                       fi
   14519                     fi
   14520                   fi
   14521                   ;;
   14522               esac
   14523               if test "X$found_dir" != "X"; then
   14524                 break
   14525               fi
   14526             done
   14527           fi
   14528           if test "X$found_dir" != "X"; then
   14529                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
   14530             if test "X$found_so" != "X"; then
   14531                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
   14532                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   14533               else
   14534                                                                                 haveit=
   14535                 for x in $ltrpathdirs; do
   14536                   if test "X$x" = "X$found_dir"; then
   14537                     haveit=yes
   14538                     break
   14539                   fi
   14540                 done
   14541                 if test -z "$haveit"; then
   14542                   ltrpathdirs="$ltrpathdirs $found_dir"
   14543                 fi
   14544                                 if test "$hardcode_direct" = yes; then
   14545                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   14546                 else
   14547                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
   14548                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   14549                                                             haveit=
   14550                     for x in $rpathdirs; do
   14551                       if test "X$x" = "X$found_dir"; then
   14552                         haveit=yes
   14553                         break
   14554                       fi
   14555                     done
   14556                     if test -z "$haveit"; then
   14557                       rpathdirs="$rpathdirs $found_dir"
   14558                     fi
   14559                   else
   14560                                                                                 haveit=
   14561                     for x in $LDFLAGS $LIBBABELTRACE; do
   14562 
   14563   acl_save_prefix="$prefix"
   14564   prefix="$acl_final_prefix"
   14565   acl_save_exec_prefix="$exec_prefix"
   14566   exec_prefix="$acl_final_exec_prefix"
   14567   eval x=\"$x\"
   14568   exec_prefix="$acl_save_exec_prefix"
   14569   prefix="$acl_save_prefix"
   14570 
   14571                       if test "X$x" = "X-L$found_dir"; then
   14572                         haveit=yes
   14573                         break
   14574                       fi
   14575                     done
   14576                     if test -z "$haveit"; then
   14577                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
   14578                     fi
   14579                     if test "$hardcode_minus_L" != no; then
   14580                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
   14581                     else
   14582                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   14583                     fi
   14584                   fi
   14585                 fi
   14586               fi
   14587             else
   14588               if test "X$found_a" != "X"; then
   14589                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
   14590               else
   14591                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
   14592               fi
   14593             fi
   14594                         additional_includedir=
   14595             case "$found_dir" in
   14596               */lib | */lib/)
   14597                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
   14598                 additional_includedir="$basedir/include"
   14599                 ;;
   14600             esac
   14601             if test "X$additional_includedir" != "X"; then
   14602                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
   14603                 haveit=
   14604                 if test "X$additional_includedir" = "X/usr/local/include"; then
   14605                   if test -n "$GCC"; then
   14606                     case $host_os in
   14607                       linux*) haveit=yes;;
   14608                     esac
   14609                   fi
   14610                 fi
   14611                 if test -z "$haveit"; then
   14612                   for x in $CPPFLAGS $INCBABELTRACE; do
   14613 
   14614   acl_save_prefix="$prefix"
   14615   prefix="$acl_final_prefix"
   14616   acl_save_exec_prefix="$exec_prefix"
   14617   exec_prefix="$acl_final_exec_prefix"
   14618   eval x=\"$x\"
   14619   exec_prefix="$acl_save_exec_prefix"
   14620   prefix="$acl_save_prefix"
   14621 
   14622                     if test "X$x" = "X-I$additional_includedir"; then
   14623                       haveit=yes
   14624                       break
   14625                     fi
   14626                   done
   14627                   if test -z "$haveit"; then
   14628                     if test -d "$additional_includedir"; then
   14629                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
   14630                     fi
   14631                   fi
   14632                 fi
   14633               fi
   14634             fi
   14635                         if test -n "$found_la"; then
   14636                                                         save_libdir="$libdir"
   14637               case "$found_la" in
   14638                 */* | *\\*) . "$found_la" ;;
   14639                 *) . "./$found_la" ;;
   14640               esac
   14641               libdir="$save_libdir"
   14642                             for dep in $dependency_libs; do
   14643                 case "$dep" in
   14644                   -L*)
   14645                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
   14646                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
   14647                       haveit=
   14648                       if test "X$additional_libdir" = "X/usr/local/lib"; then
   14649                         if test -n "$GCC"; then
   14650                           case $host_os in
   14651                             linux*) haveit=yes;;
   14652                           esac
   14653                         fi
   14654                       fi
   14655                       if test -z "$haveit"; then
   14656                         haveit=
   14657                         for x in $LDFLAGS $LIBBABELTRACE; do
   14658 
   14659   acl_save_prefix="$prefix"
   14660   prefix="$acl_final_prefix"
   14661   acl_save_exec_prefix="$exec_prefix"
   14662   exec_prefix="$acl_final_exec_prefix"
   14663   eval x=\"$x\"
   14664   exec_prefix="$acl_save_exec_prefix"
   14665   prefix="$acl_save_prefix"
   14666 
   14667                           if test "X$x" = "X-L$additional_libdir"; then
   14668                             haveit=yes
   14669                             break
   14670                           fi
   14671                         done
   14672                         if test -z "$haveit"; then
   14673                           if test -d "$additional_libdir"; then
   14674                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
   14675                           fi
   14676                         fi
   14677                         haveit=
   14678                         for x in $LDFLAGS $LTLIBBABELTRACE; do
   14679 
   14680   acl_save_prefix="$prefix"
   14681   prefix="$acl_final_prefix"
   14682   acl_save_exec_prefix="$exec_prefix"
   14683   exec_prefix="$acl_final_exec_prefix"
   14684   eval x=\"$x\"
   14685   exec_prefix="$acl_save_exec_prefix"
   14686   prefix="$acl_save_prefix"
   14687 
   14688                           if test "X$x" = "X-L$additional_libdir"; then
   14689                             haveit=yes
   14690                             break
   14691                           fi
   14692                         done
   14693                         if test -z "$haveit"; then
   14694                           if test -d "$additional_libdir"; then
   14695                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
   14696                           fi
   14697                         fi
   14698                       fi
   14699                     fi
   14700                     ;;
   14701                   -R*)
   14702                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
   14703                     if test "$enable_rpath" != no; then
   14704                                                                   haveit=
   14705                       for x in $rpathdirs; do
   14706                         if test "X$x" = "X$dir"; then
   14707                           haveit=yes
   14708                           break
   14709                         fi
   14710                       done
   14711                       if test -z "$haveit"; then
   14712                         rpathdirs="$rpathdirs $dir"
   14713                       fi
   14714                                                                   haveit=
   14715                       for x in $ltrpathdirs; do
   14716                         if test "X$x" = "X$dir"; then
   14717                           haveit=yes
   14718                           break
   14719                         fi
   14720                       done
   14721                       if test -z "$haveit"; then
   14722                         ltrpathdirs="$ltrpathdirs $dir"
   14723                       fi
   14724                     fi
   14725                     ;;
   14726                   -l*)
   14727                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
   14728                     ;;
   14729                   *.la)
   14730                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
   14731                     ;;
   14732                   *)
   14733                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
   14734                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
   14735                     ;;
   14736                 esac
   14737               done
   14738             fi
   14739           else
   14740                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
   14741             LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
   14742           fi
   14743         fi
   14744       fi
   14745     done
   14746   done
   14747   if test "X$rpathdirs" != "X"; then
   14748     if test -n "$hardcode_libdir_separator"; then
   14749                         alldirs=
   14750       for found_dir in $rpathdirs; do
   14751         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
   14752       done
   14753             acl_save_libdir="$libdir"
   14754       libdir="$alldirs"
   14755       eval flag=\"$hardcode_libdir_flag_spec\"
   14756       libdir="$acl_save_libdir"
   14757       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   14758     else
   14759             for found_dir in $rpathdirs; do
   14760         acl_save_libdir="$libdir"
   14761         libdir="$found_dir"
   14762         eval flag=\"$hardcode_libdir_flag_spec\"
   14763         libdir="$acl_save_libdir"
   14764         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
   14765       done
   14766     fi
   14767   fi
   14768   if test "X$ltrpathdirs" != "X"; then
   14769             for found_dir in $ltrpathdirs; do
   14770       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
   14771     done
   14772   fi
   14773 
   14774 
   14775         ac_save_CPPFLAGS="$CPPFLAGS"
   14776 
   14777   for element in $INCBABELTRACE; do
   14778     haveit=
   14779     for x in $CPPFLAGS; do
   14780 
   14781   acl_save_prefix="$prefix"
   14782   prefix="$acl_final_prefix"
   14783   acl_save_exec_prefix="$exec_prefix"
   14784   exec_prefix="$acl_final_exec_prefix"
   14785   eval x=\"$x\"
   14786   exec_prefix="$acl_save_exec_prefix"
   14787   prefix="$acl_save_prefix"
   14788 
   14789       if test "X$x" = "X$element"; then
   14790         haveit=yes
   14791         break
   14792       fi
   14793     done
   14794     if test -z "$haveit"; then
   14795       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
   14796     fi
   14797   done
   14798 
   14799 
   14800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
   14801 $as_echo_n "checking for libbabeltrace... " >&6; }
   14802 if test "${ac_cv_libbabeltrace+set}" = set; then :
   14803   $as_echo_n "(cached) " >&6
   14804 else
   14805 
   14806     ac_save_LIBS="$LIBS"
   14807     LIBS="$LIBS $LIBBABELTRACE"
   14808     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
   14809 /* end confdefs.h.  */
   14810 #include <babeltrace/babeltrace.h>
   14811 			 #include <babeltrace/ctf/events.h>
   14812 			 #include <babeltrace/ctf/iterator.h>
   14813 int
   14814 main ()
   14815 {
   14816 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
   14817 			struct bt_ctf_event *event = NULL;
   14818 			const struct bt_definition *scope;
   14819 
   14820 			scope = bt_ctf_get_top_level_scope (event,
   14821 			      				   BT_STREAM_EVENT_HEADER);
   14822 		        bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
   14823 
   14824   ;
   14825   return 0;
   14826 }
   14827 _ACEOF
   14828 if ac_fn_c_try_link "$LINENO"; then :
   14829   ac_cv_libbabeltrace=yes
   14830 else
   14831   ac_cv_libbabeltrace=no
   14832 fi
   14833 rm -f core conftest.err conftest.$ac_objext \
   14834     conftest$ac_exeext conftest.$ac_ext
   14835     LIBS="$ac_save_LIBS"
   14836 
   14837 fi
   14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
   14839 $as_echo "$ac_cv_libbabeltrace" >&6; }
   14840   if test "$ac_cv_libbabeltrace" = yes; then
   14841     HAVE_LIBBABELTRACE=yes
   14842 
   14843 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
   14844 
   14845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
   14846 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
   14847     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
   14848 $as_echo "$LIBBABELTRACE" >&6; }
   14849   else
   14850     HAVE_LIBBABELTRACE=no
   14851             CPPFLAGS="$ac_save_CPPFLAGS"
   14852     LIBBABELTRACE=
   14853     LTLIBBABELTRACE=
   14854   fi
   14855 
   14856 
   14857 
   14858 
   14859 
   14860 
   14861   CFLAGS=$saved_CFLAGS
   14862 
   14863   if test "$HAVE_LIBBABELTRACE" != yes; then
   14864      if test "$with_babeltrace" = yes; then
   14865        as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
   14866      else
   14867        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
   14868 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
   14869      fi
   14870   fi
   14871 fi
   14872 
   14873 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
   14874 # to an empty version.
   14875 
   14876 files=
   14877 links=
   14878 
   14879 rm -f nm.h
   14880 if test "${nativefile}" != ""; then
   14881     case "${nativefile}" in
   14882       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
   14883       * ) GDB_NM_FILE="${nativefile}"
   14884     esac
   14885     files="${files} ${GDB_NM_FILE}"
   14886     links="${links} nm.h"
   14887 
   14888 cat >>confdefs.h <<_ACEOF
   14889 #define GDB_NM_FILE "${GDB_NM_FILE}"
   14890 _ACEOF
   14891 
   14892 fi
   14893 
   14894 
   14895 ac_sources="$files"
   14896 ac_dests="$links"
   14897 while test -n "$ac_sources"; do
   14898   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
   14899   set $ac_sources; ac_source=$1; shift; ac_sources=$*
   14900   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
   14901 done
   14902 ac_config_links="$ac_config_links $ac_config_links_1"
   14903 
   14904 
   14905 
   14906 
   14907 
   14908 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
   14909 
   14910 
   14911 # Undo the $ec_script escaping suitable for Makefile.
   14912 transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
   14913 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$transform"`
   14914 if test "x$GDB_TRANSFORM_NAME" = x; then
   14915   GDB_TRANSFORM_NAME=gdb
   14916 fi
   14917 
   14918 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$transform"`
   14919 if test "x$GCORE_TRANSFORM_NAME" = x; then
   14920   GCORE_TRANSFORM_NAME=gcore
   14921 fi
   14922 
   14923 ac_config_files="$ac_config_files gcore"
   14924 
   14925 
   14926 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
   14927 
   14928 ac_config_commands="$ac_config_commands default"
   14929 
   14930 cat >confcache <<\_ACEOF
   14931 # This file is a shell script that caches the results of configure
   14932 # tests run on this system so they can be shared between configure
   14933 # scripts and configure runs, see configure's option --config-cache.
   14934 # It is not useful on other systems.  If it contains results you don't
   14935 # want to keep, you may remove or edit it.
   14936 #
   14937 # config.status only pays attention to the cache file if you give it
   14938 # the --recheck option to rerun configure.
   14939 #
   14940 # `ac_cv_env_foo' variables (set or unset) will be overridden when
   14941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
   14942 # following values.
   14943 
   14944 _ACEOF
   14945 
   14946 # The following way of writing the cache mishandles newlines in values,
   14947 # but we know of no workaround that is simple, portable, and efficient.
   14948 # So, we kill variables containing newlines.
   14949 # Ultrix sh set writes to stderr and can't be redirected directly,
   14950 # and sets the high bit in the cache file unless we assign to the vars.
   14951 (
   14952   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
   14953     eval ac_val=\$$ac_var
   14954     case $ac_val in #(
   14955     *${as_nl}*)
   14956       case $ac_var in #(
   14957       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
   14958 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
   14959       esac
   14960       case $ac_var in #(
   14961       _ | IFS | as_nl) ;; #(
   14962       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
   14963       *) { eval $ac_var=; unset $ac_var;} ;;
   14964       esac ;;
   14965     esac
   14966   done
   14967 
   14968   (set) 2>&1 |
   14969     case $as_nl`(ac_space=' '; set) 2>&1` in #(
   14970     *${as_nl}ac_space=\ *)
   14971       # `set' does not quote correctly, so add quotes: double-quote
   14972       # substitution turns \\\\ into \\, and sed turns \\ into \.
   14973       sed -n \
   14974 	"s/'/'\\\\''/g;
   14975 	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
   14976       ;; #(
   14977     *)
   14978       # `set' quotes correctly as required by POSIX, so do not add quotes.
   14979       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
   14980       ;;
   14981     esac |
   14982     sort
   14983 ) |
   14984   sed '
   14985      /^ac_cv_env_/b end
   14986      t clear
   14987      :clear
   14988      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
   14989      t end
   14990      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
   14991      :end' >>confcache
   14992 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
   14993   if test -w "$cache_file"; then
   14994     test "x$cache_file" != "x/dev/null" &&
   14995       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
   14996 $as_echo "$as_me: updating cache $cache_file" >&6;}
   14997     cat confcache >$cache_file
   14998   else
   14999     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
   15000 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   15001   fi
   15002 fi
   15003 rm -f confcache
   15004 
   15005 test "x$prefix" = xNONE && prefix=$ac_default_prefix
   15006 # Let make expand exec_prefix.
   15007 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
   15008 
   15009 DEFS=-DHAVE_CONFIG_H
   15010 
   15011 ac_libobjs=
   15012 ac_ltlibobjs=
   15013 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
   15014   # 1. Remove the extension, and $U if already installed.
   15015   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
   15016   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
   15017   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
   15018   #    will be set to the directory where LIBOBJS objects are built.
   15019   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
   15020   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
   15021 done
   15022 LIBOBJS=$ac_libobjs
   15023 
   15024 LTLIBOBJS=$ac_ltlibobjs
   15025 
   15026 
   15027 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
   15028   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
   15029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   15030 fi
   15031 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
   15032   as_fn_error "conditional \"GMAKE\" was never defined.
   15033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
   15034 fi
   15035 
   15036 
   15037 : ${CONFIG_STATUS=./config.status}
   15038 ac_write_fail=0
   15039 ac_clean_files_save=$ac_clean_files
   15040 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
   15041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
   15042 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
   15043 as_write_fail=0
   15044 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
   15045 #! $SHELL
   15046 # Generated by $as_me.
   15047 # Run this file to recreate the current configuration.
   15048 # Compiler output produced by configure, useful for debugging
   15049 # configure, is in config.log if it exists.
   15050 
   15051 debug=false
   15052 ac_cs_recheck=false
   15053 ac_cs_silent=false
   15054 
   15055 SHELL=\${CONFIG_SHELL-$SHELL}
   15056 export SHELL
   15057 _ASEOF
   15058 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
   15059 ## -------------------- ##
   15060 ## M4sh Initialization. ##
   15061 ## -------------------- ##
   15062 
   15063 # Be more Bourne compatible
   15064 DUALCASE=1; export DUALCASE # for MKS sh
   15065 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   15066   emulate sh
   15067   NULLCMD=:
   15068   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   15069   # is contrary to our usage.  Disable this feature.
   15070   alias -g '${1+"$@"}'='"$@"'
   15071   setopt NO_GLOB_SUBST
   15072 else
   15073   case `(set -o) 2>/dev/null` in #(
   15074   *posix*) :
   15075     set -o posix ;; #(
   15076   *) :
   15077      ;;
   15078 esac
   15079 fi
   15080 
   15081 
   15082 as_nl='
   15083 '
   15084 export as_nl
   15085 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   15086 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   15087 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   15088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   15089 # Prefer a ksh shell builtin over an external printf program on Solaris,
   15090 # but without wasting forks for bash or zsh.
   15091 if test -z "$BASH_VERSION$ZSH_VERSION" \
   15092     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   15093   as_echo='print -r --'
   15094   as_echo_n='print -rn --'
   15095 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   15096   as_echo='printf %s\n'
   15097   as_echo_n='printf %s'
   15098 else
   15099   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   15100     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   15101     as_echo_n='/usr/ucb/echo -n'
   15102   else
   15103     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   15104     as_echo_n_body='eval
   15105       arg=$1;
   15106       case $arg in #(
   15107       *"$as_nl"*)
   15108 	expr "X$arg" : "X\\(.*\\)$as_nl";
   15109 	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   15110       esac;
   15111       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   15112     '
   15113     export as_echo_n_body
   15114     as_echo_n='sh -c $as_echo_n_body as_echo'
   15115   fi
   15116   export as_echo_body
   15117   as_echo='sh -c $as_echo_body as_echo'
   15118 fi
   15119 
   15120 # The user is always right.
   15121 if test "${PATH_SEPARATOR+set}" != set; then
   15122   PATH_SEPARATOR=:
   15123   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   15124     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   15125       PATH_SEPARATOR=';'
   15126   }
   15127 fi
   15128 
   15129 
   15130 # IFS
   15131 # We need space, tab and new line, in precisely that order.  Quoting is
   15132 # there to prevent editors from complaining about space-tab.
   15133 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   15134 # splitting by setting IFS to empty value.)
   15135 IFS=" ""	$as_nl"
   15136 
   15137 # Find who we are.  Look in the path if we contain no directory separator.
   15138 case $0 in #((
   15139   *[\\/]* ) as_myself=$0 ;;
   15140   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   15141 for as_dir in $PATH
   15142 do
   15143   IFS=$as_save_IFS
   15144   test -z "$as_dir" && as_dir=.
   15145     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
   15146   done
   15147 IFS=$as_save_IFS
   15148 
   15149      ;;
   15150 esac
   15151 # We did not find ourselves, most probably we were run as `sh COMMAND'
   15152 # in which case we are not to be found in the path.
   15153 if test "x$as_myself" = x; then
   15154   as_myself=$0
   15155 fi
   15156 if test ! -f "$as_myself"; then
   15157   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
   15158   exit 1
   15159 fi
   15160 
   15161 # Unset variables that we do not need and which cause bugs (e.g. in
   15162 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
   15163 # suppresses any "Segmentation fault" message there.  '((' could
   15164 # trigger a bug in pdksh 5.2.14.
   15165 for as_var in BASH_ENV ENV MAIL MAILPATH
   15166 do eval test x\${$as_var+set} = xset \
   15167   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
   15168 done
   15169 PS1='$ '
   15170 PS2='> '
   15171 PS4='+ '
   15172 
   15173 # NLS nuisances.
   15174 LC_ALL=C
   15175 export LC_ALL
   15176 LANGUAGE=C
   15177 export LANGUAGE
   15178 
   15179 # CDPATH.
   15180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
   15181 
   15182 
   15183 # as_fn_error ERROR [LINENO LOG_FD]
   15184 # ---------------------------------
   15185 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
   15186 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
   15187 # script with status $?, using 1 if that was 0.
   15188 as_fn_error ()
   15189 {
   15190   as_status=$?; test $as_status -eq 0 && as_status=1
   15191   if test "$3"; then
   15192     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
   15193     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
   15194   fi
   15195   $as_echo "$as_me: error: $1" >&2
   15196   as_fn_exit $as_status
   15197 } # as_fn_error
   15198 
   15199 
   15200 # as_fn_set_status STATUS
   15201 # -----------------------
   15202 # Set $? to STATUS, without forking.
   15203 as_fn_set_status ()
   15204 {
   15205   return $1
   15206 } # as_fn_set_status
   15207 
   15208 # as_fn_exit STATUS
   15209 # -----------------
   15210 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
   15211 as_fn_exit ()
   15212 {
   15213   set +e
   15214   as_fn_set_status $1
   15215   exit $1
   15216 } # as_fn_exit
   15217 
   15218 # as_fn_unset VAR
   15219 # ---------------
   15220 # Portably unset VAR.
   15221 as_fn_unset ()
   15222 {
   15223   { eval $1=; unset $1;}
   15224 }
   15225 as_unset=as_fn_unset
   15226 # as_fn_append VAR VALUE
   15227 # ----------------------
   15228 # Append the text in VALUE to the end of the definition contained in VAR. Take
   15229 # advantage of any shell optimizations that allow amortized linear growth over
   15230 # repeated appends, instead of the typical quadratic growth present in naive
   15231 # implementations.
   15232 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
   15233   eval 'as_fn_append ()
   15234   {
   15235     eval $1+=\$2
   15236   }'
   15237 else
   15238   as_fn_append ()
   15239   {
   15240     eval $1=\$$1\$2
   15241   }
   15242 fi # as_fn_append
   15243 
   15244 # as_fn_arith ARG...
   15245 # ------------------
   15246 # Perform arithmetic evaluation on the ARGs, and store the result in the
   15247 # global $as_val. Take advantage of shells that can avoid forks. The arguments
   15248 # must be portable across $(()) and expr.
   15249 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
   15250   eval 'as_fn_arith ()
   15251   {
   15252     as_val=$(( $* ))
   15253   }'
   15254 else
   15255   as_fn_arith ()
   15256   {
   15257     as_val=`expr "$@" || test $? -eq 1`
   15258   }
   15259 fi # as_fn_arith
   15260 
   15261 
   15262 if expr a : '\(a\)' >/dev/null 2>&1 &&
   15263    test "X`expr 00001 : '.*\(...\)'`" = X001; then
   15264   as_expr=expr
   15265 else
   15266   as_expr=false
   15267 fi
   15268 
   15269 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
   15270   as_basename=basename
   15271 else
   15272   as_basename=false
   15273 fi
   15274 
   15275 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
   15276   as_dirname=dirname
   15277 else
   15278   as_dirname=false
   15279 fi
   15280 
   15281 as_me=`$as_basename -- "$0" ||
   15282 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   15283 	 X"$0" : 'X\(//\)$' \| \
   15284 	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
   15285 $as_echo X/"$0" |
   15286     sed '/^.*\/\([^/][^/]*\)\/*$/{
   15287 	    s//\1/
   15288 	    q
   15289 	  }
   15290 	  /^X\/\(\/\/\)$/{
   15291 	    s//\1/
   15292 	    q
   15293 	  }
   15294 	  /^X\/\(\/\).*/{
   15295 	    s//\1/
   15296 	    q
   15297 	  }
   15298 	  s/.*/./; q'`
   15299 
   15300 # Avoid depending upon Character Ranges.
   15301 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   15302 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   15303 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   15304 as_cr_digits='0123456789'
   15305 as_cr_alnum=$as_cr_Letters$as_cr_digits
   15306 
   15307 ECHO_C= ECHO_N= ECHO_T=
   15308 case `echo -n x` in #(((((
   15309 -n*)
   15310   case `echo 'xy\c'` in
   15311   *c*) ECHO_T='	';;	# ECHO_T is single tab character.
   15312   xy)  ECHO_C='\c';;
   15313   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
   15314        ECHO_T='	';;
   15315   esac;;
   15316 *)
   15317   ECHO_N='-n';;
   15318 esac
   15319 
   15320 rm -f conf$$ conf$$.exe conf$$.file
   15321 if test -d conf$$.dir; then
   15322   rm -f conf$$.dir/conf$$.file
   15323 else
   15324   rm -f conf$$.dir
   15325   mkdir conf$$.dir 2>/dev/null
   15326 fi
   15327 if (echo >conf$$.file) 2>/dev/null; then
   15328   if ln -s conf$$.file conf$$ 2>/dev/null; then
   15329     as_ln_s='ln -s'
   15330     # ... but there are two gotchas:
   15331     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
   15332     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
   15333     # In both cases, we have to default to `cp -p'.
   15334     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
   15335       as_ln_s='cp -p'
   15336   elif ln conf$$.file conf$$ 2>/dev/null; then
   15337     as_ln_s=ln
   15338   else
   15339     as_ln_s='cp -p'
   15340   fi
   15341 else
   15342   as_ln_s='cp -p'
   15343 fi
   15344 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
   15345 rmdir conf$$.dir 2>/dev/null
   15346 
   15347 
   15348 # as_fn_mkdir_p
   15349 # -------------
   15350 # Create "$as_dir" as a directory, including parents if necessary.
   15351 as_fn_mkdir_p ()
   15352 {
   15353 
   15354   case $as_dir in #(
   15355   -*) as_dir=./$as_dir;;
   15356   esac
   15357   test -d "$as_dir" || eval $as_mkdir_p || {
   15358     as_dirs=
   15359     while :; do
   15360       case $as_dir in #(
   15361       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
   15362       *) as_qdir=$as_dir;;
   15363       esac
   15364       as_dirs="'$as_qdir' $as_dirs"
   15365       as_dir=`$as_dirname -- "$as_dir" ||
   15366 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   15367 	 X"$as_dir" : 'X\(//\)[^/]' \| \
   15368 	 X"$as_dir" : 'X\(//\)$' \| \
   15369 	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
   15370 $as_echo X"$as_dir" |
   15371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   15372 	    s//\1/
   15373 	    q
   15374 	  }
   15375 	  /^X\(\/\/\)[^/].*/{
   15376 	    s//\1/
   15377 	    q
   15378 	  }
   15379 	  /^X\(\/\/\)$/{
   15380 	    s//\1/
   15381 	    q
   15382 	  }
   15383 	  /^X\(\/\).*/{
   15384 	    s//\1/
   15385 	    q
   15386 	  }
   15387 	  s/.*/./; q'`
   15388       test -d "$as_dir" && break
   15389     done
   15390     test -z "$as_dirs" || eval "mkdir $as_dirs"
   15391   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
   15392 
   15393 
   15394 } # as_fn_mkdir_p
   15395 if mkdir -p . 2>/dev/null; then
   15396   as_mkdir_p='mkdir -p "$as_dir"'
   15397 else
   15398   test -d ./-p && rmdir ./-p
   15399   as_mkdir_p=false
   15400 fi
   15401 
   15402 if test -x / >/dev/null 2>&1; then
   15403   as_test_x='test -x'
   15404 else
   15405   if ls -dL / >/dev/null 2>&1; then
   15406     as_ls_L_option=L
   15407   else
   15408     as_ls_L_option=
   15409   fi
   15410   as_test_x='
   15411     eval sh -c '\''
   15412       if test -d "$1"; then
   15413 	test -d "$1/.";
   15414       else
   15415 	case $1 in #(
   15416 	-*)set "./$1";;
   15417 	esac;
   15418 	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
   15419 	???[sx]*):;;*)false;;esac;fi
   15420     '\'' sh
   15421   '
   15422 fi
   15423 as_executable_p=$as_test_x
   15424 
   15425 # Sed expression to map a string onto a valid CPP name.
   15426 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
   15427 
   15428 # Sed expression to map a string onto a valid variable name.
   15429 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
   15430 
   15431 
   15432 exec 6>&1
   15433 ## ----------------------------------- ##
   15434 ## Main body of $CONFIG_STATUS script. ##
   15435 ## ----------------------------------- ##
   15436 _ASEOF
   15437 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
   15438 
   15439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15440 # Save the log message, to keep $0 and so on meaningful, and to
   15441 # report actual input values of CONFIG_FILES etc. instead of their
   15442 # values after options handling.
   15443 ac_log="
   15444 This file was extended by $as_me, which was
   15445 generated by GNU Autoconf 2.64.  Invocation command line was
   15446 
   15447   CONFIG_FILES    = $CONFIG_FILES
   15448   CONFIG_HEADERS  = $CONFIG_HEADERS
   15449   CONFIG_LINKS    = $CONFIG_LINKS
   15450   CONFIG_COMMANDS = $CONFIG_COMMANDS
   15451   $ $0 $@
   15452 
   15453 on `(hostname || uname -n) 2>/dev/null | sed 1q`
   15454 "
   15455 
   15456 _ACEOF
   15457 
   15458 case $ac_config_files in *"
   15459 "*) set x $ac_config_files; shift; ac_config_files=$*;;
   15460 esac
   15461 
   15462 case $ac_config_headers in *"
   15463 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
   15464 esac
   15465 
   15466 
   15467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15468 # Files that config.status was made for.
   15469 config_files="$ac_config_files"
   15470 config_headers="$ac_config_headers"
   15471 config_links="$ac_config_links"
   15472 config_commands="$ac_config_commands"
   15473 
   15474 _ACEOF
   15475 
   15476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15477 ac_cs_usage="\
   15478 \`$as_me' instantiates files and other configuration actions
   15479 from templates according to the current configuration.  Unless the files
   15480 and actions are specified as TAGs, all are instantiated by default.
   15481 
   15482 Usage: $0 [OPTION]... [TAG]...
   15483 
   15484   -h, --help       print this help, then exit
   15485   -V, --version    print version number and configuration settings, then exit
   15486   -q, --quiet, --silent
   15487                    do not print progress messages
   15488   -d, --debug      don't remove temporary files
   15489       --recheck    update $as_me by reconfiguring in the same conditions
   15490       --file=FILE[:TEMPLATE]
   15491                    instantiate the configuration file FILE
   15492       --header=FILE[:TEMPLATE]
   15493                    instantiate the configuration header FILE
   15494 
   15495 Configuration files:
   15496 $config_files
   15497 
   15498 Configuration headers:
   15499 $config_headers
   15500 
   15501 Configuration links:
   15502 $config_links
   15503 
   15504 Configuration commands:
   15505 $config_commands
   15506 
   15507 Report bugs to the package provider."
   15508 
   15509 _ACEOF
   15510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15511 ac_cs_version="\\
   15512 config.status
   15513 configured by $0, generated by GNU Autoconf 2.64,
   15514   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
   15515 
   15516 Copyright (C) 2009 Free Software Foundation, Inc.
   15517 This config.status script is free software; the Free Software Foundation
   15518 gives unlimited permission to copy, distribute and modify it."
   15519 
   15520 ac_pwd='$ac_pwd'
   15521 srcdir='$srcdir'
   15522 INSTALL='$INSTALL'
   15523 AWK='$AWK'
   15524 test -n "\$AWK" || AWK=awk
   15525 _ACEOF
   15526 
   15527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15528 # The default lists apply if the user does not specify any file.
   15529 ac_need_defaults=:
   15530 while test $# != 0
   15531 do
   15532   case $1 in
   15533   --*=*)
   15534     ac_option=`expr "X$1" : 'X\([^=]*\)='`
   15535     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
   15536     ac_shift=:
   15537     ;;
   15538   *)
   15539     ac_option=$1
   15540     ac_optarg=$2
   15541     ac_shift=shift
   15542     ;;
   15543   esac
   15544 
   15545   case $ac_option in
   15546   # Handling of the options.
   15547   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
   15548     ac_cs_recheck=: ;;
   15549   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
   15550     $as_echo "$ac_cs_version"; exit ;;
   15551   --debug | --debu | --deb | --de | --d | -d )
   15552     debug=: ;;
   15553   --file | --fil | --fi | --f )
   15554     $ac_shift
   15555     case $ac_optarg in
   15556     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   15557     esac
   15558     as_fn_append CONFIG_FILES " '$ac_optarg'"
   15559     ac_need_defaults=false;;
   15560   --header | --heade | --head | --hea )
   15561     $ac_shift
   15562     case $ac_optarg in
   15563     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
   15564     esac
   15565     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
   15566     ac_need_defaults=false;;
   15567   --he | --h)
   15568     # Conflict between --help and --header
   15569     as_fn_error "ambiguous option: \`$1'
   15570 Try \`$0 --help' for more information.";;
   15571   --help | --hel | -h )
   15572     $as_echo "$ac_cs_usage"; exit ;;
   15573   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   15574   | -silent | --silent | --silen | --sile | --sil | --si | --s)
   15575     ac_cs_silent=: ;;
   15576 
   15577   # This is an error.
   15578   -*) as_fn_error "unrecognized option: \`$1'
   15579 Try \`$0 --help' for more information." ;;
   15580 
   15581   *) as_fn_append ac_config_targets " $1"
   15582      ac_need_defaults=false ;;
   15583 
   15584   esac
   15585   shift
   15586 done
   15587 
   15588 ac_configure_extra_args=
   15589 
   15590 if $ac_cs_silent; then
   15591   exec 6>/dev/null
   15592   ac_configure_extra_args="$ac_configure_extra_args --silent"
   15593 fi
   15594 
   15595 _ACEOF
   15596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15597 if \$ac_cs_recheck; then
   15598   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
   15599   shift
   15600   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
   15601   CONFIG_SHELL='$SHELL'
   15602   export CONFIG_SHELL
   15603   exec "\$@"
   15604 fi
   15605 
   15606 _ACEOF
   15607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15608 exec 5>>config.log
   15609 {
   15610   echo
   15611   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
   15612 ## Running $as_me. ##
   15613 _ASBOX
   15614   $as_echo "$ac_log"
   15615 } >&5
   15616 
   15617 _ACEOF
   15618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15619 #
   15620 # INIT-COMMANDS
   15621 #
   15622 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
   15623 
   15624 _ACEOF
   15625 
   15626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15627 
   15628 # Handling of arguments.
   15629 for ac_config_target in $ac_config_targets
   15630 do
   15631   case $ac_config_target in
   15632     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
   15633     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
   15634     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
   15635     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
   15636     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
   15637     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
   15638     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
   15639     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
   15640     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
   15641     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
   15642 
   15643   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
   15644   esac
   15645 done
   15646 
   15647 
   15648 # If the user did not use the arguments to specify the items to instantiate,
   15649 # then the envvar interface is used.  Set only those that are not.
   15650 # We use the long form for the default assignment because of an extremely
   15651 # bizarre bug on SunOS 4.1.3.
   15652 if $ac_need_defaults; then
   15653   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
   15654   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
   15655   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
   15656   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
   15657 fi
   15658 
   15659 # Have a temporary directory for convenience.  Make it in the build tree
   15660 # simply because there is no reason against having it here, and in addition,
   15661 # creating and moving files from /tmp can sometimes cause problems.
   15662 # Hook for its removal unless debugging.
   15663 # Note that there is a small window in which the directory will not be cleaned:
   15664 # after its creation but before its name has been assigned to `$tmp'.
   15665 $debug ||
   15666 {
   15667   tmp=
   15668   trap 'exit_status=$?
   15669   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
   15670 ' 0
   15671   trap 'as_fn_exit 1' 1 2 13 15
   15672 }
   15673 # Create a (secure) tmp directory for tmp files.
   15674 
   15675 {
   15676   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
   15677   test -n "$tmp" && test -d "$tmp"
   15678 }  ||
   15679 {
   15680   tmp=./conf$$-$RANDOM
   15681   (umask 077 && mkdir "$tmp")
   15682 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
   15683 
   15684 # Set up the scripts for CONFIG_FILES section.
   15685 # No need to generate them if there are no CONFIG_FILES.
   15686 # This happens for instance with `./config.status config.h'.
   15687 if test -n "$CONFIG_FILES"; then
   15688 
   15689 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
   15690   ac_cs_awk_getline=:
   15691   ac_cs_awk_pipe_init=
   15692   ac_cs_awk_read_file='
   15693       while ((getline aline < (F[key])) > 0)
   15694 	print(aline)
   15695       close(F[key])'
   15696   ac_cs_awk_pipe_fini=
   15697 else
   15698   ac_cs_awk_getline=false
   15699   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
   15700   ac_cs_awk_read_file='
   15701       print "|#_!!_#|"
   15702       print "cat " F[key] " &&"
   15703       '$ac_cs_awk_pipe_init
   15704   # The final `:' finishes the AND list.
   15705   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
   15706 fi
   15707 ac_cr=`echo X | tr X '\015'`
   15708 # On cygwin, bash can eat \r inside `` if the user requested igncr.
   15709 # But we know of no other shell where ac_cr would be empty at this
   15710 # point, so we can use a bashism as a fallback.
   15711 if test "x$ac_cr" = x; then
   15712   eval ac_cr=\$\'\\r\'
   15713 fi
   15714 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
   15715 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
   15716   ac_cs_awk_cr='\r'
   15717 else
   15718   ac_cs_awk_cr=$ac_cr
   15719 fi
   15720 
   15721 echo 'BEGIN {' >"$tmp/subs1.awk" &&
   15722 _ACEOF
   15723 
   15724 # Create commands to substitute file output variables.
   15725 {
   15726   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
   15727   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
   15728   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
   15729   echo "_ACAWK" &&
   15730   echo "_ACEOF"
   15731 } >conf$$files.sh &&
   15732 . ./conf$$files.sh ||
   15733   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   15734 rm -f conf$$files.sh
   15735 
   15736 {
   15737   echo "cat >conf$$subs.awk <<_ACEOF" &&
   15738   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
   15739   echo "_ACEOF"
   15740 } >conf$$subs.sh ||
   15741   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   15742 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
   15743 ac_delim='%!_!# '
   15744 for ac_last_try in false false false false false :; do
   15745   . ./conf$$subs.sh ||
   15746     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   15747 
   15748   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
   15749   if test $ac_delim_n = $ac_delim_num; then
   15750     break
   15751   elif $ac_last_try; then
   15752     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
   15753   else
   15754     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   15755   fi
   15756 done
   15757 rm -f conf$$subs.sh
   15758 
   15759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15760 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
   15761 _ACEOF
   15762 sed -n '
   15763 h
   15764 s/^/S["/; s/!.*/"]=/
   15765 p
   15766 g
   15767 s/^[^!]*!//
   15768 :repl
   15769 t repl
   15770 s/'"$ac_delim"'$//
   15771 t delim
   15772 :nl
   15773 h
   15774 s/\(.\{148\}\).*/\1/
   15775 t more1
   15776 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
   15777 p
   15778 n
   15779 b repl
   15780 :more1
   15781 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   15782 p
   15783 g
   15784 s/.\{148\}//
   15785 t nl
   15786 :delim
   15787 h
   15788 s/\(.\{148\}\).*/\1/
   15789 t more2
   15790 s/["\\]/\\&/g; s/^/"/; s/$/"/
   15791 p
   15792 b
   15793 :more2
   15794 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
   15795 p
   15796 g
   15797 s/.\{148\}//
   15798 t delim
   15799 ' <conf$$subs.awk | sed '
   15800 /^[^""]/{
   15801   N
   15802   s/\n//
   15803 }
   15804 ' >>$CONFIG_STATUS || ac_write_fail=1
   15805 rm -f conf$$subs.awk
   15806 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15807 _ACAWK
   15808 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
   15809   for (key in S) S_is_set[key] = 1
   15810   FS = ""
   15811   \$ac_cs_awk_pipe_init
   15812 }
   15813 {
   15814   line = $ 0
   15815   nfields = split(line, field, "@")
   15816   substed = 0
   15817   len = length(field[1])
   15818   for (i = 2; i < nfields; i++) {
   15819     key = field[i]
   15820     keylen = length(key)
   15821     if (S_is_set[key]) {
   15822       value = S[key]
   15823       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
   15824       len += length(value) + length(field[++i])
   15825       substed = 1
   15826     } else
   15827       len += 1 + keylen
   15828   }
   15829   if (nfields == 3 && !substed) {
   15830     key = field[2]
   15831     if (F[key] != "" && line ~ /^[	 ]*@.*@[	 ]*$/) {
   15832       \$ac_cs_awk_read_file
   15833       next
   15834     }
   15835   }
   15836   print line
   15837 }
   15838 \$ac_cs_awk_pipe_fini
   15839 _ACAWK
   15840 _ACEOF
   15841 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15842 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
   15843   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
   15844 else
   15845   cat
   15846 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
   15847   || as_fn_error "could not setup config files machinery" "$LINENO" 5
   15848 _ACEOF
   15849 
   15850 # VPATH may cause trouble with some makes, so we remove $(srcdir),
   15851 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
   15852 # trailing colons and then remove the whole line if VPATH becomes empty
   15853 # (actually we leave an empty line to preserve line numbers).
   15854 if test "x$srcdir" = x.; then
   15855   ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
   15856 s/:*\$(srcdir):*/:/
   15857 s/:*\${srcdir}:*/:/
   15858 s/:*@srcdir@:*/:/
   15859 s/^\([^=]*=[	 ]*\):*/\1/
   15860 s/:*$//
   15861 s/^[^=]*=[	 ]*$//
   15862 }'
   15863 fi
   15864 
   15865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15866 fi # test -n "$CONFIG_FILES"
   15867 
   15868 # Set up the scripts for CONFIG_HEADERS section.
   15869 # No need to generate them if there are no CONFIG_HEADERS.
   15870 # This happens for instance with `./config.status Makefile'.
   15871 if test -n "$CONFIG_HEADERS"; then
   15872 cat >"$tmp/defines.awk" <<\_ACAWK ||
   15873 BEGIN {
   15874 _ACEOF
   15875 
   15876 # Transform confdefs.h into an awk script `defines.awk', embedded as
   15877 # here-document in config.status, that substitutes the proper values into
   15878 # config.h.in to produce config.h.
   15879 
   15880 # Create a delimiter string that does not exist in confdefs.h, to ease
   15881 # handling of long lines.
   15882 ac_delim='%!_!# '
   15883 for ac_last_try in false false :; do
   15884   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
   15885   if test -z "$ac_t"; then
   15886     break
   15887   elif $ac_last_try; then
   15888     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
   15889   else
   15890     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   15891   fi
   15892 done
   15893 
   15894 # For the awk script, D is an array of macro values keyed by name,
   15895 # likewise P contains macro parameters if any.  Preserve backslash
   15896 # newline sequences.
   15897 
   15898 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
   15899 sed -n '
   15900 s/.\{148\}/&'"$ac_delim"'/g
   15901 t rset
   15902 :rset
   15903 s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
   15904 t def
   15905 d
   15906 :def
   15907 s/\\$//
   15908 t bsnl
   15909 s/["\\]/\\&/g
   15910 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   15911 D["\1"]=" \3"/p
   15912 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
   15913 d
   15914 :bsnl
   15915 s/["\\]/\\&/g
   15916 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
   15917 D["\1"]=" \3\\\\\\n"\\/p
   15918 t cont
   15919 s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
   15920 t cont
   15921 d
   15922 :cont
   15923 n
   15924 s/.\{148\}/&'"$ac_delim"'/g
   15925 t clear
   15926 :clear
   15927 s/\\$//
   15928 t bsnlc
   15929 s/["\\]/\\&/g; s/^/"/; s/$/"/p
   15930 d
   15931 :bsnlc
   15932 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
   15933 b cont
   15934 ' <confdefs.h | sed '
   15935 s/'"$ac_delim"'/"\\\
   15936 "/g' >>$CONFIG_STATUS || ac_write_fail=1
   15937 
   15938 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   15939   for (key in D) D_is_set[key] = 1
   15940   FS = ""
   15941 }
   15942 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
   15943   line = \$ 0
   15944   split(line, arg, " ")
   15945   if (arg[1] == "#") {
   15946     defundef = arg[2]
   15947     mac1 = arg[3]
   15948   } else {
   15949     defundef = substr(arg[1], 2)
   15950     mac1 = arg[2]
   15951   }
   15952   split(mac1, mac2, "(") #)
   15953   macro = mac2[1]
   15954   prefix = substr(line, 1, index(line, defundef) - 1)
   15955   if (D_is_set[macro]) {
   15956     # Preserve the white space surrounding the "#".
   15957     print prefix "define", macro P[macro] D[macro]
   15958     next
   15959   } else {
   15960     # Replace #undef with comments.  This is necessary, for example,
   15961     # in the case of _POSIX_SOURCE, which is predefined and required
   15962     # on some systems where configure will not decide to define it.
   15963     if (defundef == "undef") {
   15964       print "/*", prefix defundef, macro, "*/"
   15965       next
   15966     }
   15967   }
   15968 }
   15969 { print }
   15970 _ACAWK
   15971 _ACEOF
   15972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   15973   as_fn_error "could not setup config headers machinery" "$LINENO" 5
   15974 fi # test -n "$CONFIG_HEADERS"
   15975 
   15976 
   15977 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
   15978 shift
   15979 for ac_tag
   15980 do
   15981   case $ac_tag in
   15982   :[FHLC]) ac_mode=$ac_tag; continue;;
   15983   esac
   15984   case $ac_mode$ac_tag in
   15985   :[FHL]*:*);;
   15986   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
   15987   :[FH]-) ac_tag=-:-;;
   15988   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
   15989   esac
   15990   ac_save_IFS=$IFS
   15991   IFS=:
   15992   set x $ac_tag
   15993   IFS=$ac_save_IFS
   15994   shift
   15995   ac_file=$1
   15996   shift
   15997 
   15998   case $ac_mode in
   15999   :L) ac_source=$1;;
   16000   :[FH])
   16001     ac_file_inputs=
   16002     for ac_f
   16003     do
   16004       case $ac_f in
   16005       -) ac_f="$tmp/stdin";;
   16006       *) # Look for the file first in the build tree, then in the source tree
   16007 	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
   16008 	 # because $ac_f cannot contain `:'.
   16009 	 test -f "$ac_f" ||
   16010 	   case $ac_f in
   16011 	   [\\/$]*) false;;
   16012 	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
   16013 	   esac ||
   16014 	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
   16015       esac
   16016       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
   16017       as_fn_append ac_file_inputs " '$ac_f'"
   16018     done
   16019 
   16020     # Let's still pretend it is `configure' which instantiates (i.e., don't
   16021     # use $as_me), people would be surprised to read:
   16022     #    /* config.h.  Generated by config.status.  */
   16023     configure_input='Generated from '`
   16024 	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
   16025 	`' by configure.'
   16026     if test x"$ac_file" != x-; then
   16027       configure_input="$ac_file.  $configure_input"
   16028       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
   16029 $as_echo "$as_me: creating $ac_file" >&6;}
   16030     fi
   16031     # Neutralize special characters interpreted by sed in replacement strings.
   16032     case $configure_input in #(
   16033     *\&* | *\|* | *\\* )
   16034        ac_sed_conf_input=`$as_echo "$configure_input" |
   16035        sed 's/[\\\\&|]/\\\\&/g'`;; #(
   16036     *) ac_sed_conf_input=$configure_input;;
   16037     esac
   16038 
   16039     case $ac_tag in
   16040     *:-:* | *:-) cat >"$tmp/stdin" \
   16041       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
   16042     esac
   16043     ;;
   16044   esac
   16045 
   16046   ac_dir=`$as_dirname -- "$ac_file" ||
   16047 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
   16048 	 X"$ac_file" : 'X\(//\)[^/]' \| \
   16049 	 X"$ac_file" : 'X\(//\)$' \| \
   16050 	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
   16051 $as_echo X"$ac_file" |
   16052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
   16053 	    s//\1/
   16054 	    q
   16055 	  }
   16056 	  /^X\(\/\/\)[^/].*/{
   16057 	    s//\1/
   16058 	    q
   16059 	  }
   16060 	  /^X\(\/\/\)$/{
   16061 	    s//\1/
   16062 	    q
   16063 	  }
   16064 	  /^X\(\/\).*/{
   16065 	    s//\1/
   16066 	    q
   16067 	  }
   16068 	  s/.*/./; q'`
   16069   as_dir="$ac_dir"; as_fn_mkdir_p
   16070   ac_builddir=.
   16071 
   16072 case "$ac_dir" in
   16073 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   16074 *)
   16075   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   16076   # A ".." for each directory in $ac_dir_suffix.
   16077   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   16078   case $ac_top_builddir_sub in
   16079   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   16080   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   16081   esac ;;
   16082 esac
   16083 ac_abs_top_builddir=$ac_pwd
   16084 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   16085 # for backward compatibility:
   16086 ac_top_builddir=$ac_top_build_prefix
   16087 
   16088 case $srcdir in
   16089   .)  # We are building in place.
   16090     ac_srcdir=.
   16091     ac_top_srcdir=$ac_top_builddir_sub
   16092     ac_abs_top_srcdir=$ac_pwd ;;
   16093   [\\/]* | ?:[\\/]* )  # Absolute name.
   16094     ac_srcdir=$srcdir$ac_dir_suffix;
   16095     ac_top_srcdir=$srcdir
   16096     ac_abs_top_srcdir=$srcdir ;;
   16097   *) # Relative name.
   16098     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   16099     ac_top_srcdir=$ac_top_build_prefix$srcdir
   16100     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   16101 esac
   16102 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   16103 
   16104 
   16105   case $ac_mode in
   16106   :F)
   16107   #
   16108   # CONFIG_FILE
   16109   #
   16110 
   16111   case $INSTALL in
   16112   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
   16113   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
   16114   esac
   16115 _ACEOF
   16116 
   16117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16118 # If the template does not know about datarootdir, expand it.
   16119 # FIXME: This hack should be removed a few years after 2.60.
   16120 ac_datarootdir_hack=; ac_datarootdir_seen=
   16121 ac_sed_dataroot='
   16122 /datarootdir/ {
   16123   p
   16124   q
   16125 }
   16126 /@datadir@/p
   16127 /@docdir@/p
   16128 /@infodir@/p
   16129 /@localedir@/p
   16130 /@mandir@/p'
   16131 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
   16132 *datarootdir*) ac_datarootdir_seen=yes;;
   16133 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
   16134   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
   16135 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
   16136 _ACEOF
   16137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16138   ac_datarootdir_hack='
   16139   s&@datadir@&$datadir&g
   16140   s&@docdir@&$docdir&g
   16141   s&@infodir@&$infodir&g
   16142   s&@localedir@&$localedir&g
   16143   s&@mandir@&$mandir&g
   16144   s&\\\${datarootdir}&$datarootdir&g' ;;
   16145 esac
   16146 _ACEOF
   16147 
   16148 # Neutralize VPATH when `$srcdir' = `.'.
   16149 # Shell code in configure.ac might set extrasub.
   16150 # FIXME: do we really want to maintain this feature?
   16151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
   16152 ac_sed_extra="$ac_vpsub
   16153 $extrasub
   16154 _ACEOF
   16155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
   16156 :t
   16157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
   16158 s|@configure_input@|$ac_sed_conf_input|;t t
   16159 s&@top_builddir@&$ac_top_builddir_sub&;t t
   16160 s&@top_build_prefix@&$ac_top_build_prefix&;t t
   16161 s&@srcdir@&$ac_srcdir&;t t
   16162 s&@abs_srcdir@&$ac_abs_srcdir&;t t
   16163 s&@top_srcdir@&$ac_top_srcdir&;t t
   16164 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
   16165 s&@builddir@&$ac_builddir&;t t
   16166 s&@abs_builddir@&$ac_abs_builddir&;t t
   16167 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
   16168 s&@INSTALL@&$ac_INSTALL&;t t
   16169 $ac_datarootdir_hack
   16170 "
   16171 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
   16172 if $ac_cs_awk_getline; then
   16173   $AWK -f "$tmp/subs.awk"
   16174 else
   16175   $AWK -f "$tmp/subs.awk" | $SHELL
   16176 fi >$tmp/out \
   16177   || as_fn_error "could not create $ac_file" "$LINENO" 5
   16178 
   16179 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
   16180   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
   16181   { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
   16182   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   16183 which seems to be undefined.  Please make sure it is defined." >&5
   16184 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
   16185 which seems to be undefined.  Please make sure it is defined." >&2;}
   16186 
   16187   rm -f "$tmp/stdin"
   16188   case $ac_file in
   16189   -) cat "$tmp/out" && rm -f "$tmp/out";;
   16190   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
   16191   esac \
   16192   || as_fn_error "could not create $ac_file" "$LINENO" 5
   16193  ;;
   16194   :H)
   16195   #
   16196   # CONFIG_HEADER
   16197   #
   16198   if test x"$ac_file" != x-; then
   16199     {
   16200       $as_echo "/* $configure_input  */" \
   16201       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
   16202     } >"$tmp/config.h" \
   16203       || as_fn_error "could not create $ac_file" "$LINENO" 5
   16204     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
   16205       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
   16206 $as_echo "$as_me: $ac_file is unchanged" >&6;}
   16207     else
   16208       rm -f "$ac_file"
   16209       mv "$tmp/config.h" "$ac_file" \
   16210 	|| as_fn_error "could not create $ac_file" "$LINENO" 5
   16211     fi
   16212   else
   16213     $as_echo "/* $configure_input  */" \
   16214       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
   16215       || as_fn_error "could not create -" "$LINENO" 5
   16216   fi
   16217  ;;
   16218   :L)
   16219   #
   16220   # CONFIG_LINK
   16221   #
   16222 
   16223   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
   16224     :
   16225   else
   16226     # Prefer the file from the source tree if names are identical.
   16227     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
   16228       ac_source=$srcdir/$ac_source
   16229     fi
   16230 
   16231     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
   16232 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
   16233 
   16234     if test ! -r "$ac_source"; then
   16235       as_fn_error "$ac_source: file not found" "$LINENO" 5
   16236     fi
   16237     rm -f "$ac_file"
   16238 
   16239     # Try a relative symlink, then a hard link, then a copy.
   16240     case $srcdir in
   16241     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
   16242 	*) ac_rel_source=$ac_top_build_prefix$ac_source ;;
   16243     esac
   16244     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
   16245       ln "$ac_source" "$ac_file" 2>/dev/null ||
   16246       cp -p "$ac_source" "$ac_file" ||
   16247       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
   16248   fi
   16249  ;;
   16250   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
   16251 $as_echo "$as_me: executing $ac_file commands" >&6;}
   16252  ;;
   16253   esac
   16254 
   16255 
   16256   case $ac_file$ac_mode in
   16257     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
   16258     "gcore":F) chmod +x gcore ;;
   16259     "default":C)
   16260 case x$CONFIG_HEADERS in
   16261 xconfig.h:config.in)
   16262 echo > stamp-h ;;
   16263 esac
   16264  ;;
   16265 
   16266   esac
   16267 done # for ac_tag
   16268 
   16269 
   16270 as_fn_exit 0
   16271 _ACEOF
   16272 ac_clean_files=$ac_clean_files_save
   16273 
   16274 test $ac_write_fail = 0 ||
   16275   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
   16276 
   16277 
   16278 # configure is writing to config.log, and then calls config.status.
   16279 # config.status does its own redirection, appending to config.log.
   16280 # Unfortunately, on DOS this fails, as config.log is still kept open
   16281 # by configure, so config.status won't be able to write to it; its
   16282 # output is simply discarded.  So we exec the FD to /dev/null,
   16283 # effectively closing config.log, so it can be properly (re)opened and
   16284 # appended to by config.status.  When coming back to configure, we
   16285 # need to make the FD available again.
   16286 if test "$no_create" != yes; then
   16287   ac_cs_success=:
   16288   ac_config_status_args=
   16289   test "$silent" = yes &&
   16290     ac_config_status_args="$ac_config_status_args --quiet"
   16291   exec 5>/dev/null
   16292   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
   16293   exec 5>>config.log
   16294   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
   16295   # would make configure fail if this is the last instruction.
   16296   $ac_cs_success || as_fn_exit $?
   16297 fi
   16298 
   16299 #
   16300 # CONFIG_SUBDIRS section.
   16301 #
   16302 if test "$no_recursion" != yes; then
   16303 
   16304   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
   16305   # so they do not pile up.
   16306   ac_sub_configure_args=
   16307   ac_prev=
   16308   eval "set x $ac_configure_args"
   16309   shift
   16310   for ac_arg
   16311   do
   16312     if test -n "$ac_prev"; then
   16313       ac_prev=
   16314       continue
   16315     fi
   16316     case $ac_arg in
   16317     -cache-file | --cache-file | --cache-fil | --cache-fi \
   16318     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   16319       ac_prev=cache_file ;;
   16320     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   16321     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
   16322     | --c=*)
   16323       ;;
   16324     --config-cache | -C)
   16325       ;;
   16326     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   16327       ac_prev=srcdir ;;
   16328     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   16329       ;;
   16330     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   16331       ac_prev=prefix ;;
   16332     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   16333       ;;
   16334     --disable-option-checking)
   16335       ;;
   16336     *)
   16337       case $ac_arg in
   16338       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   16339       esac
   16340       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
   16341     esac
   16342   done
   16343 
   16344   # Always prepend --prefix to ensure using the same prefix
   16345   # in subdir configurations.
   16346   ac_arg="--prefix=$prefix"
   16347   case $ac_arg in
   16348   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
   16349   esac
   16350   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
   16351 
   16352   # Pass --silent
   16353   if test "$silent" = yes; then
   16354     ac_sub_configure_args="--silent $ac_sub_configure_args"
   16355   fi
   16356 
   16357   # Always prepend --disable-option-checking to silence warnings, since
   16358   # different subdirs can have different --enable and --with options.
   16359   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
   16360 
   16361   ac_popdir=`pwd`
   16362   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
   16363 
   16364     # Do not complain, so a configure script can configure whichever
   16365     # parts of a large source tree are present.
   16366     test -d "$srcdir/$ac_dir" || continue
   16367 
   16368     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
   16369     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
   16370     $as_echo "$ac_msg" >&6
   16371     as_dir="$ac_dir"; as_fn_mkdir_p
   16372     ac_builddir=.
   16373 
   16374 case "$ac_dir" in
   16375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
   16376 *)
   16377   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
   16378   # A ".." for each directory in $ac_dir_suffix.
   16379   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
   16380   case $ac_top_builddir_sub in
   16381   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
   16382   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
   16383   esac ;;
   16384 esac
   16385 ac_abs_top_builddir=$ac_pwd
   16386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
   16387 # for backward compatibility:
   16388 ac_top_builddir=$ac_top_build_prefix
   16389 
   16390 case $srcdir in
   16391   .)  # We are building in place.
   16392     ac_srcdir=.
   16393     ac_top_srcdir=$ac_top_builddir_sub
   16394     ac_abs_top_srcdir=$ac_pwd ;;
   16395   [\\/]* | ?:[\\/]* )  # Absolute name.
   16396     ac_srcdir=$srcdir$ac_dir_suffix;
   16397     ac_top_srcdir=$srcdir
   16398     ac_abs_top_srcdir=$srcdir ;;
   16399   *) # Relative name.
   16400     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
   16401     ac_top_srcdir=$ac_top_build_prefix$srcdir
   16402     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
   16403 esac
   16404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
   16405 
   16406 
   16407     cd "$ac_dir"
   16408 
   16409     # Check for guested configure; otherwise get Cygnus style configure.
   16410     if test -f "$ac_srcdir/configure.gnu"; then
   16411       ac_sub_configure=$ac_srcdir/configure.gnu
   16412     elif test -f "$ac_srcdir/configure"; then
   16413       ac_sub_configure=$ac_srcdir/configure
   16414     elif test -f "$ac_srcdir/configure.in"; then
   16415       # This should be Cygnus configure.
   16416       ac_sub_configure=$ac_aux_dir/configure
   16417     else
   16418       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
   16419 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
   16420       ac_sub_configure=
   16421     fi
   16422 
   16423     # The recursion is here.
   16424     if test -n "$ac_sub_configure"; then
   16425       # Make the cache file name correct relative to the subdirectory.
   16426       case $cache_file in
   16427       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
   16428       *) # Relative name.
   16429 	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
   16430       esac
   16431 
   16432       { $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
   16433 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
   16434       # The eval makes quoting arguments work.
   16435       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
   16436 	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
   16437 	as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
   16438     fi
   16439 
   16440     cd "$ac_popdir"
   16441   done
   16442 fi
   16443 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
   16444   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
   16445 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
   16446 fi
   16447 
   16448 
   16449 exit 0
   16450