gdb/configure - gdb

Functions defined

Source code

  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. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17.   emulate sh
  18.   NULLCMD=:
  19.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20.   # is contrary to our usage.  Disable this feature.
  21.   alias -g '${1+"$@"}'='"$@"'
  22.   setopt NO_GLOB_SUBST
  23. else
  24.   case `(set -o) 2>/dev/null` in #(
  25.   *posix*) :
  26.     set -o posix ;; #(
  27.   *) :
  28.      ;;
  29. esac
  30. fi


  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42.   as_echo='print -r --'
  43.   as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45.   as_echo='printf %s\n'
  46.   as_echo_n='printf %s'
  47. else
  48.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50.     as_echo_n='/usr/ucb/echo -n'
  51.   else
  52.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53.     as_echo_n_body='eval
  54.       arg=$1;
  55.       case $arg in #(
  56.       *"$as_nl"*)
  57.         expr "X$arg" : "X\\(.*\\)$as_nl";
  58.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59.       esac;
  60.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61.     '
  62.     export as_echo_n_body
  63.     as_echo_n='sh -c $as_echo_n_body as_echo'
  64.   fi
  65.   export as_echo_body
  66.   as_echo='sh -c $as_echo_body as_echo'
  67. fi

  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70.   PATH_SEPARATOR=:
  71.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73.       PATH_SEPARATOR=';'
  74.   }
  75. fi


  76. # IFS
  77. # We need space, tab and new line, in precisely that order.  Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" ""        $as_nl"

  82. # Find who we are.  Look in the path if we contain no directory separator.
  83. case $0 in #((
  84.   *[\\/]* ) as_myself=$0 ;;
  85.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88.   IFS=$as_save_IFS
  89.   test -z "$as_dir" && as_dir=.
  90.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91.   done
  92. IFS=$as_save_IFS

  93.      ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98.   as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102.   exit 1
  103. fi

  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there.  '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '

  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE

  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH

  122. if test "x$CONFIG_SHELL" = x; then
  123.   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124.   emulate sh
  125.   NULLCMD=:
  126.   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127.   # is contrary to our usage.  Disable this feature.
  128.   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129.   setopt NO_GLOB_SUBST
  130. else
  131.   case \`(set -o) 2>/dev/null\` in #(
  132.   *posix*) :
  133.     set -o posix ;; #(
  134.   *) :
  135.      ;;
  136. esac
  137. fi
  138. "
  139.   as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }

  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :

  150. else
  151.   exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154.   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155.   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156.   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157.   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159.   if (eval "$as_required") 2>/dev/null; then :
  160.   as_have_required=yes
  161. else
  162.   as_have_required=no
  163. fi
  164.   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :

  165. else
  166.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170.   IFS=$as_save_IFS
  171.   test -z "$as_dir" && as_dir=.
  172.   as_found=:
  173.   case $as_dir in #(
  174.          /*)
  175.            for as_base in sh bash ksh sh5; do
  176.              # Try only shells that exist, to save several forks.
  177.              as_shell=$as_dir/$as_base
  178.              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179.                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180.   CONFIG_SHELL=$as_shell as_have_required=yes
  181.                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182.   break 2
  183. fi
  184. fi
  185.            done;;
  186.        esac
  187.   as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190.               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191.   CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS


  194.       if test "x$CONFIG_SHELL" != x; then :
  195.   # We cannot yet assume a decent shell, so we have to provide a
  196.         # neutralization value for shells without unset; and this also
  197.         # works around shells that cannot unset nonexistent variables.
  198.         BASH_ENV=/dev/null
  199.         ENV=/dev/null
  200.         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201.         export CONFIG_SHELL
  202.         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi

  204.     if test x$as_have_required = xno; then :
  205.   $as_echo "$0: This script requires a shell more modern than all"
  206.   $as_echo "$0: the shells that I found on your system."
  207.   if test x${ZSH_VERSION+set} = xset ; then
  208.     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209.     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210.   else
  211.     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215.   fi
  216.   exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS

  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233.   { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset

  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241.   return $1
  242. } # as_fn_set_status

  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248.   set +e
  249.   as_fn_set_status $1
  250.   exit $1
  251. } # as_fn_exit

  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {

  257.   case $as_dir in #(
  258.   -*) as_dir=./$as_dir;;
  259.   esac
  260.   test -d "$as_dir" || eval $as_mkdir_p || {
  261.     as_dirs=
  262.     while :; do
  263.       case $as_dir in #(
  264.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265.       *) as_qdir=$as_dir;;
  266.       esac
  267.       as_dirs="'$as_qdir' $as_dirs"
  268.       as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270.          X"$as_dir" : 'X\(//\)[^/]' \| \
  271.          X"$as_dir" : 'X\(//\)$' \| \
  272.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275.             s//\1/
  276.             q
  277.           }
  278.           /^X\(\/\/\)[^/].*/{
  279.             s//\1/
  280.             q
  281.           }
  282.           /^X\(\/\/\)$/{
  283.             s//\1/
  284.             q
  285.           }
  286.           /^X\(\/\).*/{
  287.             s//\1/
  288.             q
  289.           }
  290.           s/.*/./; q'`
  291.       test -d "$as_dir" && break
  292.     done
  293.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  294.   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303.   eval 'as_fn_append ()
  304.   {
  305.     eval $1+=\$2
  306.   }'
  307. else
  308.   as_fn_append ()
  309.   {
  310.     eval $1=\$$1\$2
  311.   }
  312. fi # as_fn_append

  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319.   eval 'as_fn_arith ()
  320.   {
  321.     as_val=$(( $* ))
  322.   }'
  323. else
  324.   as_fn_arith ()
  325.   {
  326.     as_val=`expr "$@" || test $? -eq 1`
  327.   }
  328. fi # as_fn_arith


  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336.   as_status=$?; test $as_status -eq 0 && as_status=1
  337.   if test "$3"; then
  338.     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340.   fi
  341.   $as_echo "$as_me: error: $1" >&2
  342.   as_fn_exit $as_status
  343. } # as_fn_error

  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346.   as_expr=expr
  347. else
  348.   as_expr=false
  349. fi

  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351.   as_basename=basename
  352. else
  353.   as_basename=false
  354. fi

  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356.   as_dirname=dirname
  357. else
  358.   as_dirname=false
  359. fi

  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362.          X"$0" : 'X\(//\)$' \| \
  363.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  366.             s//\1/
  367.             q
  368.           }
  369.           /^X\/\(\/\/\)$/{
  370.             s//\1/
  371.             q
  372.           }
  373.           /^X\/\(\/\).*/{
  374.             s//\1/
  375.             q
  376.           }
  377.           s/.*/./; q'`

  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits


  384.   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385.   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386.   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387.   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388.   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  389.   sed -n '
  390.     p
  391.     /[$]LINENO/=
  392.   ' <$as_myself |
  393.     sed '
  394.       s/[$]LINENO.*/&-/
  395.       t lineno
  396.       b
  397.       :lineno
  398.       N
  399.       :loop
  400.       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401.       t loop
  402.       s/-\n.*//
  403.     ' >$as_me.lineno &&
  404.   chmod +x "$as_me.lineno" ||
  405.     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }

  406.   # Don't try to exec as it changes $[0], causing all sort of problems
  407.   # (the dirname of $[0] is not the place where we might find the
  408.   # original and so on.  Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410.   # Exit status is that of the last command.
  411.   exit
  412. }

  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416.   case `echo 'xy\c'` in
  417.   *c*) ECHO_T='        ';;        # ECHO_T is single tab character.
  418.   xy)  ECHO_C='\c';;
  419.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420.        ECHO_T='        ';;
  421.   esac;;
  422. *)
  423.   ECHO_N='-n';;
  424. esac

  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427.   rm -f conf$$.dir/conf$$.file
  428. else
  429.   rm -f conf$$.dir
  430.   mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  434.     as_ln_s='ln -s'
  435.     # ... but there are two gotchas:
  436.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438.     # In both cases, we have to default to `cp -p'.
  439.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440.       as_ln_s='cp -p'
  441.   elif ln conf$$.file conf$$ 2>/dev/null; then
  442.     as_ln_s=ln
  443.   else
  444.     as_ln_s='cp -p'
  445.   fi
  446. else
  447.   as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null

  451. if mkdir -p . 2>/dev/null; then
  452.   as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454.   test -d ./-p && rmdir ./-p
  455.   as_mkdir_p=false
  456. fi

  457. if test -x / >/dev/null 2>&1; then
  458.   as_test_x='test -x'
  459. else
  460.   if ls -dL / >/dev/null 2>&1; then
  461.     as_ls_L_option=L
  462.   else
  463.     as_ls_L_option=
  464.   fi
  465.   as_test_x='
  466.     eval sh -c '\''
  467.       if test -d "$1"; then
  468.         test -d "$1/.";
  469.       else
  470.         case $1 in #(
  471.         -*)set "./$1";;
  472.         esac;
  473.         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474.         ???[sx]*):;;*)false;;esac;fi
  475.     '\'' sh
  476.   '
  477. fi
  478. as_executable_p=$as_test_x

  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


  483. exec 7<&0 </dev/null 6>&1

  484. # Name of the host.
  485. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  486. # so uname gets run too.
  487. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`

  488. #
  489. # Initializations.
  490. #
  491. ac_default_prefix=/usr/local
  492. ac_clean_files=
  493. ac_config_libobj_dir=.
  494. LIBOBJS=
  495. cross_compiling=no
  496. subdirs=
  497. MFLAGS=
  498. MAKEFLAGS=

  499. # Identity of this package.
  500. PACKAGE_NAME=
  501. PACKAGE_TARNAME=
  502. PACKAGE_VERSION=
  503. PACKAGE_STRING=
  504. PACKAGE_BUGREPORT=
  505. PACKAGE_URL=

  506. ac_unique_file="main.c"
  507. # Factoring default headers for most tests.
  508. ac_includes_default="\
  509. #include <stdio.h>
  510. #ifdef HAVE_SYS_TYPES_H
  511. # include <sys/types.h>
  512. #endif
  513. #ifdef HAVE_SYS_STAT_H
  514. # include <sys/stat.h>
  515. #endif
  516. #ifdef STDC_HEADERS
  517. # include <stdlib.h>
  518. # include <stddef.h>
  519. #else
  520. # ifdef HAVE_STDLIB_H
  521. #  include <stdlib.h>
  522. # endif
  523. #endif
  524. #ifdef HAVE_STRING_H
  525. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  526. #  include <memory.h>
  527. # endif
  528. # include <string.h>
  529. #endif
  530. #ifdef HAVE_STRINGS_H
  531. # include <strings.h>
  532. #endif
  533. #ifdef HAVE_INTTYPES_H
  534. # include <inttypes.h>
  535. #endif
  536. #ifdef HAVE_STDINT_H
  537. # include <stdint.h>
  538. #endif
  539. #ifdef HAVE_UNISTD_H
  540. # include <unistd.h>
  541. #endif"

  542. enable_option_checking=no
  543. ac_subst_vars='LTLIBOBJS
  544. LIBOBJS
  545. GCORE_TRANSFORM_NAME
  546. GDB_TRANSFORM_NAME
  547. GDB_NM_FILE
  548. LTLIBBABELTRACE
  549. LIBBABELTRACE
  550. HAVE_LIBBABELTRACE
  551. frags
  552. target_subdir
  553. CONFIG_UNINSTALL
  554. CONFIG_INSTALL
  555. CONFIG_CLEAN
  556. CONFIG_ALL
  557. CONFIG_SRCS
  558. CONFIG_DEPS
  559. CONFIG_OBS
  560. PROFILE_CFLAGS
  561. ENABLE_CFLAGS
  562. SIM_OBS
  563. SIM
  564. XMKMF
  565. GDBTK_SRC_DIR
  566. GDBTK_CFLAGS
  567. GDBTKLIBS
  568. X_LIBS
  569. X_LDFLAGS
  570. X_CFLAGS
  571. TK_XINCLUDES
  572. TK_DEPS
  573. TK_LIBRARY
  574. TK_INCLUDE
  575. TK_STUB_LIB_SPEC
  576. TK_STUB_LIB_FLAG
  577. TK_STUB_LIB_FILE
  578. TK_LIB_SPEC
  579. TK_LIB_FLAG
  580. TK_LIB_FILE
  581. TK_SRC_DIR
  582. TK_BIN_DIR
  583. TK_VERSION
  584. TCL_DEPS
  585. TCL_LIBRARY
  586. TCL_INCLUDE
  587. TCL_STUB_LIB_SPEC
  588. TCL_STUB_LIB_FLAG
  589. TCL_STUB_LIB_FILE
  590. TCL_LIB_SPEC
  591. TCL_LIB_FLAG
  592. TCL_LIB_FILE
  593. TCL_SRC_DIR
  594. TCL_BIN_DIR
  595. TCL_PATCH_LEVEL
  596. TCL_VERSION
  597. WIN32LDAPP
  598. GUI_CFLAGS_X
  599. LIBGUI
  600. LTLIBLZMA
  601. LIBLZMA
  602. HAVE_LIBLZMA
  603. WIN32LIBS
  604. SER_HARDWIRE
  605. WERROR_CFLAGS
  606. WARN_CFLAGS
  607. SYSTEM_GDBINIT
  608. TARGET_SYSTEM_ROOT
  609. CONFIG_LDFLAGS
  610. RDYNAMIC
  611. ALLOCA
  612. HAVE_GUILE_FALSE
  613. HAVE_GUILE_TRUE
  614. GUILE_LIBS
  615. GUILE_CPPFLAGS
  616. GUILD_TARGET_FLAG
  617. GUILD
  618. pkg_config_prog_path
  619. HAVE_PYTHON_FALSE
  620. HAVE_PYTHON_TRUE
  621. PYTHON_LIBS
  622. PYTHON_CPPFLAGS
  623. PYTHON_CFLAGS
  624. python_prog_path
  625. LTLIBEXPAT
  626. LIBEXPAT
  627. HAVE_LIBEXPAT
  628. JIT_READER_DIR
  629. TARGET_PTR
  630. READLINE_TEXI_INCFLAG
  631. READLINE_CFLAGS
  632. READLINE_DEPS
  633. READLINE
  634. MIG
  635. WINDRES
  636. DLLTOOL
  637. AR
  638. YFLAGS
  639. YACC
  640. RANLIB
  641. LN_S
  642. INSTALL_DATA
  643. INSTALL_SCRIPT
  644. INSTALL_PROGRAM
  645. AWK
  646. REPORT_BUGS_TEXI
  647. REPORT_BUGS_TO
  648. PKGVERSION
  649. HAVE_NATIVE_GCORE_TARGET
  650. TARGET_OBS
  651. subdirs
  652. GDB_DATADIR
  653. DEBUGDIR
  654. MAKEINFO_EXTRA_FLAGS
  655. MAKEINFOFLAGS
  656. MAKEINFO
  657. PACKAGE
  658. GNULIB_STDINT_H
  659. CATOBJEXT
  660. GENCAT
  661. INSTOBJEXT
  662. DATADIRNAME
  663. CATALOGS
  664. POSUB
  665. GMSGFMT
  666. XGETTEXT
  667. INCINTL
  668. LIBINTL_DEP
  669. LIBINTL
  670. USE_NLS
  671. SET_MAKE
  672. GMAKE_FALSE
  673. GMAKE_TRUE
  674. MAKE
  675. CCDEPMODE
  676. DEPDIR
  677. am__leading_dot
  678. INSTALL_STRIP_PROGRAM
  679. STRIP
  680. install_sh
  681. target_os
  682. target_vendor
  683. target_cpu
  684. target
  685. host_os
  686. host_vendor
  687. host_cpu
  688. host
  689. build_os
  690. build_vendor
  691. build_cpu
  692. build
  693. EGREP
  694. GREP
  695. CPP
  696. OBJEXT
  697. EXEEXT
  698. ac_ct_CC
  699. CPPFLAGS
  700. LDFLAGS
  701. CFLAGS
  702. CC
  703. MAINT
  704. MAINTAINER_MODE_FALSE
  705. MAINTAINER_MODE_TRUE
  706. target_alias
  707. host_alias
  708. build_alias
  709. LIBS
  710. ECHO_T
  711. ECHO_N
  712. ECHO_C
  713. DEFS
  714. mandir
  715. localedir
  716. libdir
  717. psdir
  718. pdfdir
  719. dvidir
  720. htmldir
  721. infodir
  722. docdir
  723. oldincludedir
  724. includedir
  725. localstatedir
  726. sharedstatedir
  727. sysconfdir
  728. datadir
  729. datarootdir
  730. libexecdir
  731. sbindir
  732. bindir
  733. program_transform_name
  734. prefix
  735. exec_prefix
  736. PACKAGE_URL
  737. PACKAGE_BUGREPORT
  738. PACKAGE_STRING
  739. PACKAGE_VERSION
  740. PACKAGE_TARNAME
  741. PACKAGE_NAME
  742. PATH_SEPARATOR
  743. SHELL'
  744. ac_subst_files='host_makefile_frag'
  745. ac_user_opts='
  746. enable_option_checking
  747. enable_maintainer_mode
  748. enable_plugins
  749. enable_largefile
  750. with_separate_debug_dir
  751. with_gdb_datadir
  752. with_relocated_sources
  753. with_auto_load_dir
  754. with_auto_load_safe_path
  755. enable_targets
  756. enable_64_bit_bfd
  757. enable_gdbcli
  758. enable_gdbmi
  759. enable_tui
  760. enable_gdbtk
  761. with_libunwind_ia64
  762. with_curses
  763. enable_profiling
  764. with_pkgversion
  765. with_bugurl
  766. with_zlib
  767. with_libiconv_prefix
  768. with_iconv_bin
  769. with_system_readline
  770. with_jit_reader_dir
  771. with_expat
  772. with_gnu_ld
  773. enable_rpath
  774. with_libexpat_prefix
  775. with_python
  776. with_guile
  777. enable_libmcheck
  778. with_included_regex
  779. with_sysroot
  780. with_system_gdbinit
  781. enable_werror
  782. enable_build_warnings
  783. enable_gdb_build_warnings
  784. with_lzma
  785. with_liblzma_prefix
  786. with_tcl
  787. with_tk
  788. with_x
  789. enable_sim
  790. enable_multi_ice
  791. enable_gdbserver
  792. with_babeltrace
  793. with_libbabeltrace_prefix
  794. '
  795.       ac_precious_vars='build_alias
  796. host_alias
  797. target_alias
  798. CC
  799. CFLAGS
  800. LDFLAGS
  801. LIBS
  802. CPPFLAGS
  803. CPP
  804. MAKEINFO
  805. MAKEINFOFLAGS
  806. YACC
  807. YFLAGS
  808. XMKMF'
  809. ac_subdirs_all='testsuite
  810. gdbtk
  811. multi-ice
  812. gdbserver'

  813. # Initialize some variables set by options.
  814. ac_init_help=
  815. ac_init_version=false
  816. ac_unrecognized_opts=
  817. ac_unrecognized_sep=
  818. # The variables have the same names as the options, with
  819. # dashes changed to underlines.
  820. cache_file=/dev/null
  821. exec_prefix=NONE
  822. no_create=
  823. no_recursion=
  824. prefix=NONE
  825. program_prefix=NONE
  826. program_suffix=NONE
  827. program_transform_name=s,x,x,
  828. silent=
  829. site=
  830. srcdir=
  831. verbose=
  832. x_includes=NONE
  833. x_libraries=NONE

  834. # Installation directory options.
  835. # These are left unexpanded so users can "make install exec_prefix=/foo"
  836. # and all the variables that are supposed to be based on exec_prefix
  837. # by default will actually change.
  838. # Use braces instead of parens because sh, perl, etc. also accept them.
  839. # (The list follows the same order as the GNU Coding Standards.)
  840. bindir='${exec_prefix}/bin'
  841. sbindir='${exec_prefix}/sbin'
  842. libexecdir='${exec_prefix}/libexec'
  843. datarootdir='${prefix}/share'
  844. datadir='${datarootdir}'
  845. sysconfdir='${prefix}/etc'
  846. sharedstatedir='${prefix}/com'
  847. localstatedir='${prefix}/var'
  848. includedir='${prefix}/include'
  849. oldincludedir='/usr/include'
  850. docdir='${datarootdir}/doc/${PACKAGE}'
  851. infodir='${datarootdir}/info'
  852. htmldir='${docdir}'
  853. dvidir='${docdir}'
  854. pdfdir='${docdir}'
  855. psdir='${docdir}'
  856. libdir='${exec_prefix}/lib'
  857. localedir='${datarootdir}/locale'
  858. mandir='${datarootdir}/man'

  859. ac_prev=
  860. ac_dashdash=
  861. for ac_option
  862. do
  863.   # If the previous option needs an argument, assign it.
  864.   if test -n "$ac_prev"; then
  865.     eval $ac_prev=\$ac_option
  866.     ac_prev=
  867.     continue
  868.   fi

  869.   case $ac_option in
  870.   *=*)        ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  871.   *)        ac_optarg=yes ;;
  872.   esac

  873.   # Accept the important Cygnus configure options, so we can diagnose typos.

  874.   case $ac_dashdash$ac_option in
  875.   --)
  876.     ac_dashdash=yes ;;

  877.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  878.     ac_prev=bindir ;;
  879.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  880.     bindir=$ac_optarg ;;

  881.   -build | --build | --buil | --bui | --bu)
  882.     ac_prev=build_alias ;;
  883.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  884.     build_alias=$ac_optarg ;;

  885.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  886.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  887.     ac_prev=cache_file ;;
  888.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  889.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  890.     cache_file=$ac_optarg ;;

  891.   --config-cache | -C)
  892.     cache_file=config.cache ;;

  893.   -datadir | --datadir | --datadi | --datad)
  894.     ac_prev=datadir ;;
  895.   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  896.     datadir=$ac_optarg ;;

  897.   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  898.   | --dataroo | --dataro | --datar)
  899.     ac_prev=datarootdir ;;
  900.   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  901.   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  902.     datarootdir=$ac_optarg ;;

  903.   -disable-* | --disable-*)
  904.     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  905.     # Reject names that are not valid shell variable names.
  906.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  907.       as_fn_error "invalid feature name: $ac_useropt"
  908.     ac_useropt_orig=$ac_useropt
  909.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  910.     case $ac_user_opts in
  911.       *"
  912. "enable_$ac_useropt"
  913. "*) ;;
  914.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  915.          ac_unrecognized_sep=', ';;
  916.     esac
  917.     eval enable_$ac_useropt=no ;;

  918.   -docdir | --docdir | --docdi | --doc | --do)
  919.     ac_prev=docdir ;;
  920.   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  921.     docdir=$ac_optarg ;;

  922.   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  923.     ac_prev=dvidir ;;
  924.   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  925.     dvidir=$ac_optarg ;;

  926.   -enable-* | --enable-*)
  927.     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  928.     # Reject names that are not valid shell variable names.
  929.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  930.       as_fn_error "invalid feature name: $ac_useropt"
  931.     ac_useropt_orig=$ac_useropt
  932.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  933.     case $ac_user_opts in
  934.       *"
  935. "enable_$ac_useropt"
  936. "*) ;;
  937.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  938.          ac_unrecognized_sep=', ';;
  939.     esac
  940.     eval enable_$ac_useropt=\$ac_optarg ;;

  941.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  942.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  943.   | --exec | --exe | --ex)
  944.     ac_prev=exec_prefix ;;
  945.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  946.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  947.   | --exec=* | --exe=* | --ex=*)
  948.     exec_prefix=$ac_optarg ;;

  949.   -gas | --gas | --ga | --g)
  950.     # Obsolete; use --with-gas.
  951.     with_gas=yes ;;

  952.   -help | --help | --hel | --he | -h)
  953.     ac_init_help=long ;;
  954.   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  955.     ac_init_help=recursive ;;
  956.   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  957.     ac_init_help=short ;;

  958.   -host | --host | --hos | --ho)
  959.     ac_prev=host_alias ;;
  960.   -host=* | --host=* | --hos=* | --ho=*)
  961.     host_alias=$ac_optarg ;;

  962.   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  963.     ac_prev=htmldir ;;
  964.   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  965.   | --ht=*)
  966.     htmldir=$ac_optarg ;;

  967.   -includedir | --includedir | --includedi | --included | --include \
  968.   | --includ | --inclu | --incl | --inc)
  969.     ac_prev=includedir ;;
  970.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  971.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  972.     includedir=$ac_optarg ;;

  973.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  974.     ac_prev=infodir ;;
  975.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  976.     infodir=$ac_optarg ;;

  977.   -libdir | --libdir | --libdi | --libd)
  978.     ac_prev=libdir ;;
  979.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  980.     libdir=$ac_optarg ;;

  981.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  982.   | --libexe | --libex | --libe)
  983.     ac_prev=libexecdir ;;
  984.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  985.   | --libexe=* | --libex=* | --libe=*)
  986.     libexecdir=$ac_optarg ;;

  987.   -localedir | --localedir | --localedi | --localed | --locale)
  988.     ac_prev=localedir ;;
  989.   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  990.     localedir=$ac_optarg ;;

  991.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  992.   | --localstate | --localstat | --localsta | --localst | --locals)
  993.     ac_prev=localstatedir ;;
  994.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  995.   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  996.     localstatedir=$ac_optarg ;;

  997.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  998.     ac_prev=mandir ;;
  999.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1000.     mandir=$ac_optarg ;;

  1001.   -nfp | --nfp | --nf)
  1002.     # Obsolete; use --without-fp.
  1003.     with_fp=no ;;

  1004.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1005.   | --no-cr | --no-c | -n)
  1006.     no_create=yes ;;

  1007.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1008.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1009.     no_recursion=yes ;;

  1010.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1011.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1012.   | --oldin | --oldi | --old | --ol | --o)
  1013.     ac_prev=oldincludedir ;;
  1014.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1015.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1016.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1017.     oldincludedir=$ac_optarg ;;

  1018.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1019.     ac_prev=prefix ;;
  1020.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1021.     prefix=$ac_optarg ;;

  1022.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1023.   | --program-pre | --program-pr | --program-p)
  1024.     ac_prev=program_prefix ;;
  1025.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1026.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1027.     program_prefix=$ac_optarg ;;

  1028.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1029.   | --program-suf | --program-su | --program-s)
  1030.     ac_prev=program_suffix ;;
  1031.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1032.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1033.     program_suffix=$ac_optarg ;;

  1034.   -program-transform-name | --program-transform-name \
  1035.   | --program-transform-nam | --program-transform-na \
  1036.   | --program-transform-n | --program-transform- \
  1037.   | --program-transform | --program-transfor \
  1038.   | --program-transfo | --program-transf \
  1039.   | --program-trans | --program-tran \
  1040.   | --progr-tra | --program-tr | --program-t)
  1041.     ac_prev=program_transform_name ;;
  1042.   -program-transform-name=* | --program-transform-name=* \
  1043.   | --program-transform-nam=* | --program-transform-na=* \
  1044.   | --program-transform-n=* | --program-transform-=* \
  1045.   | --program-transform=* | --program-transfor=* \
  1046.   | --program-transfo=* | --program-transf=* \
  1047.   | --program-trans=* | --program-tran=* \
  1048.   | --progr-tra=* | --program-tr=* | --program-t=*)
  1049.     program_transform_name=$ac_optarg ;;

  1050.   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1051.     ac_prev=pdfdir ;;
  1052.   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1053.     pdfdir=$ac_optarg ;;

  1054.   -psdir | --psdir | --psdi | --psd | --ps)
  1055.     ac_prev=psdir ;;
  1056.   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1057.     psdir=$ac_optarg ;;

  1058.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1059.   | -silent | --silent | --silen | --sile | --sil)
  1060.     silent=yes ;;

  1061.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1062.     ac_prev=sbindir ;;
  1063.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1064.   | --sbi=* | --sb=*)
  1065.     sbindir=$ac_optarg ;;

  1066.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1067.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1068.   | --sharedst | --shareds | --shared | --share | --shar \
  1069.   | --sha | --sh)
  1070.     ac_prev=sharedstatedir ;;
  1071.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1072.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1073.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1074.   | --sha=* | --sh=*)
  1075.     sharedstatedir=$ac_optarg ;;

  1076.   -site | --site | --sit)
  1077.     ac_prev=site ;;
  1078.   -site=* | --site=* | --sit=*)
  1079.     site=$ac_optarg ;;

  1080.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1081.     ac_prev=srcdir ;;
  1082.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1083.     srcdir=$ac_optarg ;;

  1084.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1085.   | --syscon | --sysco | --sysc | --sys | --sy)
  1086.     ac_prev=sysconfdir ;;
  1087.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1088.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1089.     sysconfdir=$ac_optarg ;;

  1090.   -target | --target | --targe | --targ | --tar | --ta | --t)
  1091.     ac_prev=target_alias ;;
  1092.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1093.     target_alias=$ac_optarg ;;

  1094.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1095.     verbose=yes ;;

  1096.   -version | --version | --versio | --versi | --vers | -V)
  1097.     ac_init_version=: ;;

  1098.   -with-* | --with-*)
  1099.     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1100.     # Reject names that are not valid shell variable names.
  1101.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1102.       as_fn_error "invalid package name: $ac_useropt"
  1103.     ac_useropt_orig=$ac_useropt
  1104.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1105.     case $ac_user_opts in
  1106.       *"
  1107. "with_$ac_useropt"
  1108. "*) ;;
  1109.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1110.          ac_unrecognized_sep=', ';;
  1111.     esac
  1112.     eval with_$ac_useropt=\$ac_optarg ;;

  1113.   -without-* | --without-*)
  1114.     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1115.     # Reject names that are not valid shell variable names.
  1116.     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1117.       as_fn_error "invalid package name: $ac_useropt"
  1118.     ac_useropt_orig=$ac_useropt
  1119.     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1120.     case $ac_user_opts in
  1121.       *"
  1122. "with_$ac_useropt"
  1123. "*) ;;
  1124.       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1125.          ac_unrecognized_sep=', ';;
  1126.     esac
  1127.     eval with_$ac_useropt=no ;;

  1128.   --x)
  1129.     # Obsolete; use --with-x.
  1130.     with_x=yes ;;

  1131.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1132.   | --x-incl | --x-inc | --x-in | --x-i)
  1133.     ac_prev=x_includes ;;
  1134.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1135.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1136.     x_includes=$ac_optarg ;;

  1137.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1138.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1139.     ac_prev=x_libraries ;;
  1140.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1141.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1142.     x_libraries=$ac_optarg ;;

  1143.   -*) as_fn_error "unrecognized option: \`$ac_option'
  1144. Try \`$0 --help' for more information."
  1145.     ;;

  1146.   *=*)
  1147.     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1148.     # Reject names that are not valid shell variable names.
  1149.     case $ac_envvar in #(
  1150.       '' | [0-9]* | *[!_$as_cr_alnum]* )
  1151.       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1152.     esac
  1153.     eval $ac_envvar=\$ac_optarg
  1154.     export $ac_envvar ;;

  1155.   *)
  1156.     # FIXME: should be removed in autoconf 3.0.
  1157.     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1158.     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1159.       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1160.     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1161.     ;;

  1162.   esac
  1163. done

  1164. if test -n "$ac_prev"; then
  1165.   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1166.   as_fn_error "missing argument to $ac_option"
  1167. fi

  1168. if test -n "$ac_unrecognized_opts"; then
  1169.   case $enable_option_checking in
  1170.     no) ;;
  1171.     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1172.     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1173.   esac
  1174. fi

  1175. # Check all directory arguments for consistency.
  1176. for ac_var in        exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1177.                 datadir sysconfdir sharedstatedir localstatedir includedir \
  1178.                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1179.                 libdir localedir mandir
  1180. do
  1181.   eval ac_val=\$$ac_var
  1182.   # Remove trailing slashes.
  1183.   case $ac_val in
  1184.     */ )
  1185.       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1186.       eval $ac_var=\$ac_val;;
  1187.   esac
  1188.   # Be sure to have absolute directory names.
  1189.   case $ac_val in
  1190.     [\\/$]* | ?:[\\/]* )  continue;;
  1191.     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1192.   esac
  1193.   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1194. done

  1195. # There might be people who depend on the old broken behavior: `$host'
  1196. # used to hold the argument of --host etc.
  1197. # FIXME: To remove some day.
  1198. build=$build_alias
  1199. host=$host_alias
  1200. target=$target_alias

  1201. # FIXME: To remove some day.
  1202. if test "x$host_alias" != x; then
  1203.   if test "x$build_alias" = x; then
  1204.     cross_compiling=maybe
  1205.     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1206.     If a cross compiler is detected then cross compile mode will be used." >&2
  1207.   elif test "x$build_alias" != "x$host_alias"; then
  1208.     cross_compiling=yes
  1209.   fi
  1210. fi

  1211. ac_tool_prefix=
  1212. test -n "$host_alias" && ac_tool_prefix=$host_alias-

  1213. test "$silent" = yes && exec 6>/dev/null


  1214. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1215. ac_ls_di=`ls -di .` &&
  1216. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1217.   as_fn_error "working directory cannot be determined"
  1218. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1219.   as_fn_error "pwd does not report name of working directory"


  1220. # Find the source files, if location was not specified.
  1221. if test -z "$srcdir"; then
  1222.   ac_srcdir_defaulted=yes
  1223.   # Try the directory containing this script, then the parent directory.
  1224.   ac_confdir=`$as_dirname -- "$as_myself" ||
  1225. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1226.          X"$as_myself" : 'X\(//\)[^/]' \| \
  1227.          X"$as_myself" : 'X\(//\)$' \| \
  1228.          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1229. $as_echo X"$as_myself" |
  1230.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1231.             s//\1/
  1232.             q
  1233.           }
  1234.           /^X\(\/\/\)[^/].*/{
  1235.             s//\1/
  1236.             q
  1237.           }
  1238.           /^X\(\/\/\)$/{
  1239.             s//\1/
  1240.             q
  1241.           }
  1242.           /^X\(\/\).*/{
  1243.             s//\1/
  1244.             q
  1245.           }
  1246.           s/.*/./; q'`
  1247.   srcdir=$ac_confdir
  1248.   if test ! -r "$srcdir/$ac_unique_file"; then
  1249.     srcdir=..
  1250.   fi
  1251. else
  1252.   ac_srcdir_defaulted=no
  1253. fi
  1254. if test ! -r "$srcdir/$ac_unique_file"; then
  1255.   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1256.   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1257. fi
  1258. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1259. ac_abs_confdir=`(
  1260.         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1261.         pwd)`
  1262. # When building in place, set srcdir=.
  1263. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1264.   srcdir=.
  1265. fi
  1266. # Remove unnecessary trailing slashes from srcdir.
  1267. # Double slashes in file names in object file debugging info
  1268. # mess up M-x gdb in Emacs.
  1269. case $srcdir in
  1270. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1271. esac
  1272. for ac_var in $ac_precious_vars; do
  1273.   eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1274.   eval ac_env_${ac_var}_value=\$${ac_var}
  1275.   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1276.   eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1277. done

  1278. #
  1279. # Report the --help message.
  1280. #
  1281. if test "$ac_init_help" = "long"; then
  1282.   # Omit some internal or obsolete options to make the list less imposing.
  1283.   # This message is too long to be a string in the A/UX 3.1 sh.
  1284.   cat <<_ACEOF
  1285. \`configure' configures this package to adapt to many kinds of systems.

  1286. Usage: $0 [OPTION]... [VAR=VALUE]...

  1287. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1288. VAR=VALUE.  See below for descriptions of some of the useful variables.

  1289. Defaults for the options are specified in brackets.

  1290. Configuration:
  1291.   -h, --help              display this help and exit
  1292.       --help=short        display options specific to this package
  1293.       --help=recursive    display the short help of all the included packages
  1294.   -V, --version           display version information and exit
  1295.   -q, --quiet, --silent   do not print \`checking...' messages
  1296.       --cache-file=FILE   cache test results in FILE [disabled]
  1297.   -C, --config-cache      alias for \`--cache-file=config.cache'
  1298.   -n, --no-create         do not create output files
  1299.       --srcdir=DIR        find the sources in DIR [configure dir or \`..']

  1300. Installation directories:
  1301.   --prefix=PREFIX         install architecture-independent files in PREFIX
  1302.                           [$ac_default_prefix]
  1303.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  1304.                           [PREFIX]

  1305. By default, \`make install' will install all the files in
  1306. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  1307. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1308. for instance \`--prefix=\$HOME'.

  1309. For better control, use the options below.

  1310. Fine tuning of the installation directories:
  1311.   --bindir=DIR            user executables [EPREFIX/bin]
  1312.   --sbindir=DIR           system admin executables [EPREFIX/sbin]
  1313.   --libexecdir=DIR        program executables [EPREFIX/libexec]
  1314.   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  1315.   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  1316.   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  1317.   --libdir=DIR            object code libraries [EPREFIX/lib]
  1318.   --includedir=DIR        C header files [PREFIX/include]
  1319.   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  1320.   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  1321.   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  1322.   --infodir=DIR           info documentation [DATAROOTDIR/info]
  1323.   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  1324.   --mandir=DIR            man documentation [DATAROOTDIR/man]
  1325.   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  1326.   --htmldir=DIR           html documentation [DOCDIR]
  1327.   --dvidir=DIR            dvi documentation [DOCDIR]
  1328.   --pdfdir=DIR            pdf documentation [DOCDIR]
  1329.   --psdir=DIR             ps documentation [DOCDIR]
  1330. _ACEOF

  1331.   cat <<\_ACEOF

  1332. Program names:
  1333.   --program-prefix=PREFIX            prepend PREFIX to installed program names
  1334.   --program-suffix=SUFFIX            append SUFFIX to installed program names
  1335.   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

  1336. X features:
  1337.   --x-includes=DIR    X include files are in DIR
  1338.   --x-libraries=DIR   X library files are in DIR

  1339. System types:
  1340.   --build=BUILD     configure for building on BUILD [guessed]
  1341.   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
  1342.   --target=TARGET   configure for building compilers for TARGET [HOST]
  1343. _ACEOF
  1344. fi

  1345. if test -n "$ac_init_help"; then

  1346.   cat <<\_ACEOF

  1347. Optional Features:
  1348.   --disable-option-checking  ignore unrecognized --enable/--with options
  1349.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  1350.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  1351.   --enable-maintainer-mode  enable make rules and dependencies not useful
  1352.                           (and sometimes confusing) to the casual installer
  1353.   --enable-plugins        Enable support for plugins
  1354.   --disable-largefile     omit support for large files
  1355.   --enable-targets=TARGETS
  1356.                           alternative target configurations
  1357.   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
  1358.   --disable-gdbcli        disable command-line interface (CLI)
  1359.   --disable-gdbmi         disable machine-interface (MI)
  1360.   --enable-tui            enable full-screen terminal user interface (TUI)
  1361.   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
  1362.   --enable-profiling      enable profiling of GDB
  1363.   --disable-rpath         do not hardcode runtime library paths
  1364.   --enable-libmcheck      Try linking with -lmcheck if available
  1365.   --enable-werror         treat compile warnings as errors
  1366.   --enable-build-warnings enable build-time compiler warnings if gcc is used
  1367.   --enable-gdb-build-warnings
  1368.                           enable GDB specific build-time compiler warnings if
  1369.                           gcc is used
  1370.   --enable-sim            link gdb with simulator
  1371.   --enable-multi-ice      build the multi-ice-gdb-server
  1372.   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
  1373.                           is auto)

  1374. Optional Packages:
  1375.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  1376.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  1377.   --with-separate-debug-dir=PATH
  1378.                           look for global separate debug info in this path
  1379.                           [LIBDIR/debug]
  1380.   --with-gdb-datadir=PATH look for global separate data files in this path
  1381.                           [DATADIR/gdb]
  1382.   --with-relocated-sources=PATH
  1383.                           automatically relocate this path for source files
  1384.   --with-auto-load-dir=PATH
  1385.                           directories from which to load auto-loaded scripts
  1386.                           [$debugdir:$datadir/auto-load]
  1387.   --with-auto-load-safe-path=PATH
  1388.                           directories safe to hold auto-loaded files
  1389.                           [--with-auto-load-dir]
  1390.   --without-auto-load-safe-path
  1391.                           do not restrict auto-loaded files locations
  1392.   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
  1393.   --with-curses           use the curses library instead of the termcap
  1394.                           library
  1395.   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
  1396.   --with-bugurl=URL       Direct users to URL to report a bug
  1397.   --with-zlib             include zlib support (auto/yes/no) default=auto
  1398.   --with-libiconv-prefix=DIR
  1399.                           search for libiconv in DIR/include and DIR/lib
  1400.   --with-iconv-bin=PATH   specify where to find the iconv program
  1401.   --with-system-readline  use installed readline library
  1402.   --with-jit-reader-dir=PATH
  1403.                           directory to load the JIT readers from
  1404.   --with-expat            include expat support (auto/yes/no)
  1405.   --with-gnu-ld           assume the C compiler uses GNU ld default=no
  1406.   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
  1407.   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
  1408.   --with-python[=PYTHON]  include python support
  1409.                           (auto/yes/no/<python-program>)
  1410.   --with-guile[=GUILE]    include guile support
  1411.                           (auto/yes/no/<guile-version>/<pkg-config-program>)
  1412.   --without-included-regex
  1413.                           don't use included regex; this is the default on
  1414.                           systems with version 2 of the GNU C library (use
  1415.                           with caution on other system)
  1416.   --with-sysroot[=DIR]    search for usr/lib et al within DIR
  1417.   --with-system-gdbinit=PATH
  1418.                           automatically load a system-wide gdbinit file
  1419.   --with-lzma             support lzma compression (auto/yes/no)
  1420.   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
  1421.   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
  1422.   --with-tcl              directory containing tcl configuration (tclConfig.sh)
  1423.   --with-tk               directory containing tk configuration (tkConfig.sh)
  1424.   --with-x                use the X Window System
  1425.   --with-babeltrace       include babeltrace support (auto/yes/no)
  1426.   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
  1427.   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir

  1428. Some influential environment variables:
  1429.   CC          C compiler command
  1430.   CFLAGS      C compiler flags
  1431.   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
  1432.               nonstandard directory <lib dir>
  1433.   LIBS        libraries to pass to the linker, e.g. -l<library>
  1434.   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1435.               you have headers in a nonstandard directory <include dir>
  1436.   CPP         C preprocessor
  1437.   MAKEINFO    Parent configure detects if it is of sufficient version.
  1438.   MAKEINFOFLAGS
  1439.               Parameters for MAKEINFO.
  1440.   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
  1441.               the first program found out of: `bison -y', `byacc', `yacc'.
  1442.   YFLAGS      The list of arguments that will be passed by default to $YACC.
  1443.               This script will default YFLAGS to the empty string to avoid a
  1444.               default value of `-d' given by some make applications.
  1445.   XMKMF       Path to xmkmf, Makefile generator for X Window System

  1446. Use these variables to override the choices made by `configure' or to help
  1447. it to find libraries and programs with nonstandard names/locations.

  1448. Report bugs to the package provider.
  1449. _ACEOF
  1450. ac_status=$?
  1451. fi

  1452. if test "$ac_init_help" = "recursive"; then
  1453.   # If there are subdirs, report their specific --help.
  1454.   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1455.     test -d "$ac_dir" ||
  1456.       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1457.       continue
  1458.     ac_builddir=.

  1459. case "$ac_dir" in
  1460. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1461. *)
  1462.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1463.   # A ".." for each directory in $ac_dir_suffix.
  1464.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1465.   case $ac_top_builddir_sub in
  1466.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1467.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1468.   esac ;;
  1469. esac
  1470. ac_abs_top_builddir=$ac_pwd
  1471. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1472. # for backward compatibility:
  1473. ac_top_builddir=$ac_top_build_prefix

  1474. case $srcdir in
  1475.   .)  # We are building in place.
  1476.     ac_srcdir=.
  1477.     ac_top_srcdir=$ac_top_builddir_sub
  1478.     ac_abs_top_srcdir=$ac_pwd ;;
  1479.   [\\/]* | ?:[\\/]* )  # Absolute name.
  1480.     ac_srcdir=$srcdir$ac_dir_suffix;
  1481.     ac_top_srcdir=$srcdir
  1482.     ac_abs_top_srcdir=$srcdir ;;
  1483.   *) # Relative name.
  1484.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1485.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  1486.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1487. esac
  1488. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix

  1489.     cd "$ac_dir" || { ac_status=$?; continue; }
  1490.     # Check for guested configure.
  1491.     if test -f "$ac_srcdir/configure.gnu"; then
  1492.       echo &&
  1493.       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1494.     elif test -f "$ac_srcdir/configure"; then
  1495.       echo &&
  1496.       $SHELL "$ac_srcdir/configure" --help=recursive
  1497.     else
  1498.       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1499.     fi || ac_status=$?
  1500.     cd "$ac_pwd" || { ac_status=$?; break; }
  1501.   done
  1502. fi

  1503. test -n "$ac_init_help" && exit $ac_status
  1504. if $ac_init_version; then
  1505.   cat <<\_ACEOF
  1506. configure
  1507. generated by GNU Autoconf 2.64

  1508. Copyright (C) 2009 Free Software Foundation, Inc.
  1509. This configure script is free software; the Free Software Foundation
  1510. gives unlimited permission to copy, distribute and modify it.
  1511. _ACEOF
  1512.   exit
  1513. fi

  1514. ## ------------------------ ##
  1515. ## Autoconf initialization. ##
  1516. ## ------------------------ ##

  1517. # ac_fn_c_try_compile LINENO
  1518. # --------------------------
  1519. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1520. ac_fn_c_try_compile ()
  1521. {
  1522.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1523.   rm -f conftest.$ac_objext
  1524.   if { { ac_try="$ac_compile"
  1525. case "(($ac_try" in
  1526.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527.   *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531.   (eval "$ac_compile") 2>conftest.err
  1532.   ac_status=$?
  1533.   if test -s conftest.err; then
  1534.     grep -v '^ *+' conftest.err >conftest.er1
  1535.     cat conftest.er1 >&5
  1536.     mv -f conftest.er1 conftest.err
  1537.   fi
  1538.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1539.   test $ac_status = 0; } && {
  1540.          test -z "$ac_c_werror_flag" ||
  1541.          test ! -s conftest.err
  1542.        } && test -s conftest.$ac_objext; then :
  1543.   ac_retval=0
  1544. else
  1545.   $as_echo "$as_me: failed program was:" >&5
  1546. sed 's/^/| /' conftest.$ac_ext >&5

  1547.         ac_retval=1
  1548. fi
  1549.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1550.   return $ac_retval

  1551. } # ac_fn_c_try_compile

  1552. # ac_fn_c_try_cpp LINENO
  1553. # ----------------------
  1554. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1555. ac_fn_c_try_cpp ()
  1556. {
  1557.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1558.   if { { ac_try="$ac_cpp conftest.$ac_ext"
  1559. case "(($ac_try" in
  1560.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1561.   *) ac_try_echo=$ac_try;;
  1562. esac
  1563. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1564. $as_echo "$ac_try_echo"; } >&5
  1565.   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1566.   ac_status=$?
  1567.   if test -s conftest.err; then
  1568.     grep -v '^ *+' conftest.err >conftest.er1
  1569.     cat conftest.er1 >&5
  1570.     mv -f conftest.er1 conftest.err
  1571.   fi
  1572.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1573.   test $ac_status = 0; } >/dev/null && {
  1574.          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1575.          test ! -s conftest.err
  1576.        }; then :
  1577.   ac_retval=0
  1578. else
  1579.   $as_echo "$as_me: failed program was:" >&5
  1580. sed 's/^/| /' conftest.$ac_ext >&5

  1581.     ac_retval=1
  1582. fi
  1583.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1584.   return $ac_retval

  1585. } # ac_fn_c_try_cpp

  1586. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1587. # -------------------------------------------------------
  1588. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1589. # the include files in INCLUDES and setting the cache variable VAR
  1590. # accordingly.
  1591. ac_fn_c_check_header_mongrel ()
  1592. {
  1593.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1594.   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1595.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1596. $as_echo_n "checking for $2... " >&6; }
  1597. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1598.   $as_echo_n "(cached) " >&6
  1599. fi
  1600. eval ac_res=\$$3
  1601.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1602. $as_echo "$ac_res" >&6; }
  1603. else
  1604.   # Is the header compilable?
  1605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1606. $as_echo_n "checking $2 usability... " >&6; }
  1607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1608. /* end confdefs.h.  */
  1609. $4
  1610. #include <$2>
  1611. _ACEOF
  1612. if ac_fn_c_try_compile "$LINENO"; then :
  1613.   ac_header_compiler=yes
  1614. else
  1615.   ac_header_compiler=no
  1616. fi
  1617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1619. $as_echo "$ac_header_compiler" >&6; }

  1620. # Is the header present?
  1621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1622. $as_echo_n "checking $2 presence... " >&6; }
  1623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1624. /* end confdefs.h.  */
  1625. #include <$2>
  1626. _ACEOF
  1627. if ac_fn_c_try_cpp "$LINENO"; then :
  1628.   ac_header_preproc=yes
  1629. else
  1630.   ac_header_preproc=no
  1631. fi
  1632. rm -f conftest.err conftest.$ac_ext
  1633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1634. $as_echo "$ac_header_preproc" >&6; }

  1635. # So?  What about this header?
  1636. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1637.   yes:no: )
  1638.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1639. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1640.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1641. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1642.     ;;
  1643.   no:yes:* )
  1644.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1645. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1646.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
  1647. $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
  1648.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1649. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1650.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
  1651. $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
  1652.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1653. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1654.     ;;
  1655. esac
  1656.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1657. $as_echo_n "checking for $2... " >&6; }
  1658. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1659.   $as_echo_n "(cached) " >&6
  1660. else
  1661.   eval "$3=\$ac_header_compiler"
  1662. fi
  1663. eval ac_res=\$$3
  1664.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1665. $as_echo "$ac_res" >&6; }
  1666. fi
  1667.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  1668. } # ac_fn_c_check_header_mongrel

  1669. # ac_fn_c_try_run LINENO
  1670. # ----------------------
  1671. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1672. # that executables *can* be run.
  1673. ac_fn_c_try_run ()
  1674. {
  1675.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1676.   if { { ac_try="$ac_link"
  1677. case "(($ac_try" in
  1678.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1679.   *) ac_try_echo=$ac_try;;
  1680. esac
  1681. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1682. $as_echo "$ac_try_echo"; } >&5
  1683.   (eval "$ac_link") 2>&5
  1684.   ac_status=$?
  1685.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1686.   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1687.   { { case "(($ac_try" in
  1688.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1689.   *) ac_try_echo=$ac_try;;
  1690. esac
  1691. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1692. $as_echo "$ac_try_echo"; } >&5
  1693.   (eval "$ac_try") 2>&5
  1694.   ac_status=$?
  1695.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1696.   test $ac_status = 0; }; }; then :
  1697.   ac_retval=0
  1698. else
  1699.   $as_echo "$as_me: program exited with status $ac_status" >&5
  1700.        $as_echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5

  1702.        ac_retval=$ac_status
  1703. fi
  1704.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1705.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1706.   return $ac_retval

  1707. } # ac_fn_c_try_run

  1708. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1709. # -------------------------------------------------------
  1710. # Tests whether HEADER exists and can be compiled using the include files in
  1711. # INCLUDES, setting the cache variable VAR accordingly.
  1712. ac_fn_c_check_header_compile ()
  1713. {
  1714.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1715.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1716. $as_echo_n "checking for $2... " >&6; }
  1717. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1718.   $as_echo_n "(cached) " >&6
  1719. else
  1720.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1721. /* end confdefs.h.  */
  1722. $4
  1723. #include <$2>
  1724. _ACEOF
  1725. if ac_fn_c_try_compile "$LINENO"; then :
  1726.   eval "$3=yes"
  1727. else
  1728.   eval "$3=no"
  1729. fi
  1730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1731. fi
  1732. eval ac_res=\$$3
  1733.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1734. $as_echo "$ac_res" >&6; }
  1735.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  1736. } # ac_fn_c_check_header_compile

  1737. # ac_fn_c_try_link LINENO
  1738. # -----------------------
  1739. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_c_try_link ()
  1741. {
  1742.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743.   rm -f conftest.$ac_objext conftest$ac_exeext
  1744.   if { { ac_try="$ac_link"
  1745. case "(($ac_try" in
  1746.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1747.   *) ac_try_echo=$ac_try;;
  1748. esac
  1749. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1750. $as_echo "$ac_try_echo"; } >&5
  1751.   (eval "$ac_link") 2>conftest.err
  1752.   ac_status=$?
  1753.   if test -s conftest.err; then
  1754.     grep -v '^ *+' conftest.err >conftest.er1
  1755.     cat conftest.er1 >&5
  1756.     mv -f conftest.er1 conftest.err
  1757.   fi
  1758.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1759.   test $ac_status = 0; } && {
  1760.          test -z "$ac_c_werror_flag" ||
  1761.          test ! -s conftest.err
  1762.        } && test -s conftest$ac_exeext && {
  1763.          test "$cross_compiling" = yes ||
  1764.          $as_test_x conftest$ac_exeext
  1765.        }; then :
  1766.   ac_retval=0
  1767. else
  1768.   $as_echo "$as_me: failed program was:" >&5
  1769. sed 's/^/| /' conftest.$ac_ext >&5

  1770.         ac_retval=1
  1771. fi
  1772.   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1773.   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1774.   # interfere with the next link command; also delete a directory that is
  1775.   # left behind by Apple's compiler.  We do this before executing the actions.
  1776.   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1777.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1778.   return $ac_retval

  1779. } # ac_fn_c_try_link

  1780. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1781. # --------------------------------------------
  1782. # Tries to find the compile-time value of EXPR in a program that includes
  1783. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1784. # computed
  1785. ac_fn_c_compute_int ()
  1786. {
  1787.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1788.   if test "$cross_compiling" = yes; then
  1789.     # Depending upon the size, compute the lo and hi bounds.
  1790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1791. /* end confdefs.h.  */
  1792. $4
  1793. int
  1794. main ()
  1795. {
  1796. static int test_array [1 - 2 * !(($2) >= 0)];
  1797. test_array [0] = 0

  1798.   ;
  1799.   return 0;
  1800. }
  1801. _ACEOF
  1802. if ac_fn_c_try_compile "$LINENO"; then :
  1803.   ac_lo=0 ac_mid=0
  1804.   while :; do
  1805.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1806. /* end confdefs.h.  */
  1807. $4
  1808. int
  1809. main ()
  1810. {
  1811. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1812. test_array [0] = 0

  1813.   ;
  1814.   return 0;
  1815. }
  1816. _ACEOF
  1817. if ac_fn_c_try_compile "$LINENO"; then :
  1818.   ac_hi=$ac_mid; break
  1819. else
  1820.   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1821.                         if test $ac_lo -le $ac_mid; then
  1822.                           ac_lo= ac_hi=
  1823.                           break
  1824.                         fi
  1825.                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1826. fi
  1827. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1828.   done
  1829. else
  1830.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1831. /* end confdefs.h.  */
  1832. $4
  1833. int
  1834. main ()
  1835. {
  1836. static int test_array [1 - 2 * !(($2) < 0)];
  1837. test_array [0] = 0

  1838.   ;
  1839.   return 0;
  1840. }
  1841. _ACEOF
  1842. if ac_fn_c_try_compile "$LINENO"; then :
  1843.   ac_hi=-1 ac_mid=-1
  1844.   while :; do
  1845.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1846. /* end confdefs.h.  */
  1847. $4
  1848. int
  1849. main ()
  1850. {
  1851. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1852. test_array [0] = 0

  1853.   ;
  1854.   return 0;
  1855. }
  1856. _ACEOF
  1857. if ac_fn_c_try_compile "$LINENO"; then :
  1858.   ac_lo=$ac_mid; break
  1859. else
  1860.   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1861.                         if test $ac_mid -le $ac_hi; then
  1862.                           ac_lo= ac_hi=
  1863.                           break
  1864.                         fi
  1865.                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1866. fi
  1867. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1868.   done
  1869. else
  1870.   ac_lo= ac_hi=
  1871. fi
  1872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1873. fi
  1874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1875. # Binary search between lo and hi bounds.
  1876. while test "x$ac_lo" != "x$ac_hi"; do
  1877.   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1878.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1879. /* end confdefs.h.  */
  1880. $4
  1881. int
  1882. main ()
  1883. {
  1884. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1885. test_array [0] = 0

  1886.   ;
  1887.   return 0;
  1888. }
  1889. _ACEOF
  1890. if ac_fn_c_try_compile "$LINENO"; then :
  1891.   ac_hi=$ac_mid
  1892. else
  1893.   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1894. fi
  1895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1896. done
  1897. case $ac_lo in #((
  1898. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1899. '') ac_retval=1 ;;
  1900. esac
  1901.   else
  1902.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1903. /* end confdefs.h.  */
  1904. $4
  1905. static long int longval () { return $2; }
  1906. static unsigned long int ulongval () { return $2; }
  1907. #include <stdio.h>
  1908. #include <stdlib.h>
  1909. int
  1910. main ()
  1911. {

  1912.   FILE *f = fopen ("conftest.val", "w");
  1913.   if (! f)
  1914.     return 1;
  1915.   if (($2) < 0)
  1916.     {
  1917.       long int i = longval ();
  1918.       if (i != ($2))
  1919.         return 1;
  1920.       fprintf (f, "%ld", i);
  1921.     }
  1922.   else
  1923.     {
  1924.       unsigned long int i = ulongval ();
  1925.       if (i != ($2))
  1926.         return 1;
  1927.       fprintf (f, "%lu", i);
  1928.     }
  1929.   /* Do not output a trailing newline, as this causes \r\n confusion
  1930.      on some platforms.  */
  1931.   return ferror (f) || fclose (f) != 0;

  1932.   ;
  1933.   return 0;
  1934. }
  1935. _ACEOF
  1936. if ac_fn_c_try_run "$LINENO"; then :
  1937.   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1938. else
  1939.   ac_retval=1
  1940. fi
  1941. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1942.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  1943. rm -f conftest.val

  1944.   fi
  1945.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1946.   return $ac_retval

  1947. } # ac_fn_c_compute_int

  1948. # ac_fn_c_check_func LINENO FUNC VAR
  1949. # ----------------------------------
  1950. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1951. ac_fn_c_check_func ()
  1952. {
  1953.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1954.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1955. $as_echo_n "checking for $2... " >&6; }
  1956. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1957.   $as_echo_n "(cached) " >&6
  1958. else
  1959.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1960. /* end confdefs.h.  */
  1961. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1962.    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
  1963. #define $2 innocuous_$2

  1964. /* System header to define __stub macros and hopefully few prototypes,
  1965.     which can conflict with char $2 (); below.
  1966.     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1967.     <limits.h> exists even on freestanding compilers.  */

  1968. #ifdef __STDC__
  1969. # include <limits.h>
  1970. #else
  1971. # include <assert.h>
  1972. #endif

  1973. #undef $2

  1974. /* Override any GCC internal prototype to avoid an error.
  1975.    Use char because int might match the return type of a GCC
  1976.    builtin and then its argument prototype would still apply.  */
  1977. #ifdef __cplusplus
  1978. extern "C"
  1979. #endif
  1980. char $2 ();
  1981. /* The GNU C library defines this for functions which it implements
  1982.     to always fail with ENOSYS.  Some functions are actually named
  1983.     something starting with __ and the normal name is an alias.  */
  1984. #if defined __stub_$2 || defined __stub___$2
  1985. choke me
  1986. #endif

  1987. int
  1988. main ()
  1989. {
  1990. return $2 ();
  1991.   ;
  1992.   return 0;
  1993. }
  1994. _ACEOF
  1995. if ac_fn_c_try_link "$LINENO"; then :
  1996.   eval "$3=yes"
  1997. else
  1998.   eval "$3=no"
  1999. fi
  2000. rm -f core conftest.err conftest.$ac_objext \
  2001.     conftest$ac_exeext conftest.$ac_ext
  2002. fi
  2003. eval ac_res=\$$3
  2004.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2005. $as_echo "$ac_res" >&6; }
  2006.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  2007. } # ac_fn_c_check_func

  2008. # ac_fn_c_check_decl LINENO SYMBOL VAR
  2009. # ------------------------------------
  2010. # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
  2011. ac_fn_c_check_decl ()
  2012. {
  2013.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2014.   as_decl_name=`echo $2|sed 's/ *(.*//'`
  2015.   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
  2016.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
  2017. $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
  2018. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2019.   $as_echo_n "(cached) " >&6
  2020. else
  2021.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2022. /* end confdefs.h.  */
  2023. $4
  2024. int
  2025. main ()
  2026. {
  2027. #ifndef $as_decl_name
  2028. #ifdef __cplusplus
  2029.   (void) $as_decl_use;
  2030. #else
  2031.   (void) $as_decl_name;
  2032. #endif
  2033. #endif

  2034.   ;
  2035.   return 0;
  2036. }
  2037. _ACEOF
  2038. if ac_fn_c_try_compile "$LINENO"; then :
  2039.   eval "$3=yes"
  2040. else
  2041.   eval "$3=no"
  2042. fi
  2043. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2044. fi
  2045. eval ac_res=\$$3
  2046.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2047. $as_echo "$ac_res" >&6; }
  2048.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  2049. } # ac_fn_c_check_decl

  2050. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2051. # ----------------------------------------------------
  2052. # Tries to find if the field MEMBER exists in type AGGR, after including
  2053. # INCLUDES, setting cache variable VAR accordingly.
  2054. ac_fn_c_check_member ()
  2055. {
  2056.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2057.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2058. $as_echo_n "checking for $2.$3... " >&6; }
  2059. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2060.   $as_echo_n "(cached) " >&6
  2061. else
  2062.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2063. /* end confdefs.h.  */
  2064. $5
  2065. int
  2066. main ()
  2067. {
  2068. static $2 ac_aggr;
  2069. if (ac_aggr.$3)
  2070. return 0;
  2071.   ;
  2072.   return 0;
  2073. }
  2074. _ACEOF
  2075. if ac_fn_c_try_compile "$LINENO"; then :
  2076.   eval "$4=yes"
  2077. else
  2078.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2079. /* end confdefs.h.  */
  2080. $5
  2081. int
  2082. main ()
  2083. {
  2084. static $2 ac_aggr;
  2085. if (sizeof ac_aggr.$3)
  2086. return 0;
  2087.   ;
  2088.   return 0;
  2089. }
  2090. _ACEOF
  2091. if ac_fn_c_try_compile "$LINENO"; then :
  2092.   eval "$4=yes"
  2093. else
  2094.   eval "$4=no"
  2095. fi
  2096. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2097. fi
  2098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2099. fi
  2100. eval ac_res=\$$4
  2101.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2102. $as_echo "$ac_res" >&6; }
  2103.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  2104. } # ac_fn_c_check_member

  2105. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2106. # -------------------------------------------
  2107. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2108. # variable VAR accordingly.
  2109. ac_fn_c_check_type ()
  2110. {
  2111.   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2112.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2113. $as_echo_n "checking for $2... " >&6; }
  2114. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2115.   $as_echo_n "(cached) " >&6
  2116. else
  2117.   eval "$3=no"
  2118.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2119. /* end confdefs.h.  */
  2120. $4
  2121. int
  2122. main ()
  2123. {
  2124. if (sizeof ($2))
  2125.          return 0;
  2126.   ;
  2127.   return 0;
  2128. }
  2129. _ACEOF
  2130. if ac_fn_c_try_compile "$LINENO"; then :
  2131.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2132. /* end confdefs.h.  */
  2133. $4
  2134. int
  2135. main ()
  2136. {
  2137. if (sizeof (($2)))
  2138.             return 0;
  2139.   ;
  2140.   return 0;
  2141. }
  2142. _ACEOF
  2143. if ac_fn_c_try_compile "$LINENO"; then :

  2144. else
  2145.   eval "$3=yes"
  2146. fi
  2147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2148. fi
  2149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2150. fi
  2151. eval ac_res=\$$3
  2152.                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2153. $as_echo "$ac_res" >&6; }
  2154.   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}

  2155. } # ac_fn_c_check_type
  2156. cat >config.log <<_ACEOF
  2157. This file contains any messages produced by compilers while
  2158. running configure, to aid debugging if configure makes a mistake.

  2159. It was created by $as_me, which was
  2160. generated by GNU Autoconf 2.64.  Invocation command line was

  2161.   $ $0 $@

  2162. _ACEOF
  2163. exec 5>>config.log
  2164. {
  2165. cat <<_ASUNAME
  2166. ## --------- ##
  2167. ## Platform. ##
  2168. ## --------- ##

  2169. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2170. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2171. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2172. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2173. uname -v = `(uname -v) 2>/dev/null || echo unknown`

  2174. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2175. /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`

  2176. /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
  2177. /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
  2178. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2179. /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
  2180. /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
  2181. /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
  2182. /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`

  2183. _ASUNAME

  2184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2185. for as_dir in $PATH
  2186. do
  2187.   IFS=$as_save_IFS
  2188.   test -z "$as_dir" && as_dir=.
  2189.     $as_echo "PATH: $as_dir"
  2190.   done
  2191. IFS=$as_save_IFS

  2192. } >&5

  2193. cat >&5 <<_ACEOF


  2194. ## ----------- ##
  2195. ## Core tests. ##
  2196. ## ----------- ##

  2197. _ACEOF


  2198. # Keep a trace of the command line.
  2199. # Strip out --no-create and --no-recursion so they do not pile up.
  2200. # Strip out --silent because we don't want to record it for future runs.
  2201. # Also quote any args containing shell meta-characters.
  2202. # Make two passes to allow for proper duplicate-argument suppression.
  2203. ac_configure_args=
  2204. ac_configure_args0=
  2205. ac_configure_args1=
  2206. ac_must_keep_next=false
  2207. for ac_pass in 1 2
  2208. do
  2209.   for ac_arg
  2210.   do
  2211.     case $ac_arg in
  2212.     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2213.     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2214.     | -silent | --silent | --silen | --sile | --sil)
  2215.       continue ;;
  2216.     *\'*)
  2217.       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2218.     esac
  2219.     case $ac_pass in
  2220.     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2221.     2)
  2222.       as_fn_append ac_configure_args1 " '$ac_arg'"
  2223.       if test $ac_must_keep_next = true; then
  2224.         ac_must_keep_next=false # Got value, back to normal.
  2225.       else
  2226.         case $ac_arg in
  2227.           *=* | --config-cache | -C | -disable-* | --disable-* \
  2228.           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2229.           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2230.           | -with-* | --with-* | -without-* | --without-* | --x)
  2231.             case "$ac_configure_args0 " in
  2232.               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2233.             esac
  2234.             ;;
  2235.           -* ) ac_must_keep_next=true ;;
  2236.         esac
  2237.       fi
  2238.       as_fn_append ac_configure_args " '$ac_arg'"
  2239.       ;;
  2240.     esac
  2241.   done
  2242. done
  2243. { ac_configure_args0=; unset ac_configure_args0;}
  2244. { ac_configure_args1=; unset ac_configure_args1;}

  2245. # When interrupted or exit'd, cleanup temporary files, and complete
  2246. # config.log.  We remove comments because anyway the quotes in there
  2247. # would cause problems or look ugly.
  2248. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2249. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2250. trap 'exit_status=$?
  2251.   # Save into config.log some information that might help in debugging.
  2252.   {
  2253.     echo

  2254.     cat <<\_ASBOX
  2255. ## ---------------- ##
  2256. ## Cache variables. ##
  2257. ## ---------------- ##
  2258. _ASBOX
  2259.     echo
  2260.     # The following way of writing the cache mishandles newlines in values,
  2261. (
  2262.   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2263.     eval ac_val=\$$ac_var
  2264.     case $ac_val in #(
  2265.     *${as_nl}*)
  2266.       case $ac_var in #(
  2267.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2268. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2269.       esac
  2270.       case $ac_var in #(
  2271.       _ | IFS | as_nl) ;; #(
  2272.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2273.       *) { eval $ac_var=; unset $ac_var;} ;;
  2274.       esac ;;
  2275.     esac
  2276.   done
  2277.   (set) 2>&1 |
  2278.     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2279.     *${as_nl}ac_space=\ *)
  2280.       sed -n \
  2281.         "s/'\''/'\''\\\\'\'''\''/g;
  2282.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2283.       ;; #(
  2284.     *)
  2285.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2286.       ;;
  2287.     esac |
  2288.     sort
  2289. )
  2290.     echo

  2291.     cat <<\_ASBOX
  2292. ## ----------------- ##
  2293. ## Output variables. ##
  2294. ## ----------------- ##
  2295. _ASBOX
  2296.     echo
  2297.     for ac_var in $ac_subst_vars
  2298.     do
  2299.       eval ac_val=\$$ac_var
  2300.       case $ac_val in
  2301.       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2302.       esac
  2303.       $as_echo "$ac_var='\''$ac_val'\''"
  2304.     done | sort
  2305.     echo

  2306.     if test -n "$ac_subst_files"; then
  2307.       cat <<\_ASBOX
  2308. ## ------------------- ##
  2309. ## File substitutions. ##
  2310. ## ------------------- ##
  2311. _ASBOX
  2312.       echo
  2313.       for ac_var in $ac_subst_files
  2314.       do
  2315.         eval ac_val=\$$ac_var
  2316.         case $ac_val in
  2317.         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2318.         esac
  2319.         $as_echo "$ac_var='\''$ac_val'\''"
  2320.       done | sort
  2321.       echo
  2322.     fi

  2323.     if test -s confdefs.h; then
  2324.       cat <<\_ASBOX
  2325. ## ----------- ##
  2326. ## confdefs.h. ##
  2327. ## ----------- ##
  2328. _ASBOX
  2329.       echo
  2330.       cat confdefs.h
  2331.       echo
  2332.     fi
  2333.     test "$ac_signal" != 0 &&
  2334.       $as_echo "$as_me: caught signal $ac_signal"
  2335.     $as_echo "$as_me: exit $exit_status"
  2336.   } >&5
  2337.   rm -f core *.core core.conftest.* &&
  2338.     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2339.     exit $exit_status
  2340. ' 0
  2341. for ac_signal in 1 2 13 15; do
  2342.   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2343. done
  2344. ac_signal=0

  2345. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2346. rm -f -r conftest* confdefs.h

  2347. $as_echo "/* confdefs.h */" > confdefs.h

  2348. # Predefined preprocessor variables.

  2349. cat >>confdefs.h <<_ACEOF
  2350. #define PACKAGE_NAME "$PACKAGE_NAME"
  2351. _ACEOF

  2352. cat >>confdefs.h <<_ACEOF
  2353. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2354. _ACEOF

  2355. cat >>confdefs.h <<_ACEOF
  2356. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2357. _ACEOF

  2358. cat >>confdefs.h <<_ACEOF
  2359. #define PACKAGE_STRING "$PACKAGE_STRING"
  2360. _ACEOF

  2361. cat >>confdefs.h <<_ACEOF
  2362. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2363. _ACEOF

  2364. cat >>confdefs.h <<_ACEOF
  2365. #define PACKAGE_URL "$PACKAGE_URL"
  2366. _ACEOF


  2367. # Let the site file select an alternate cache file if it wants to.
  2368. # Prefer an explicitly selected file to automatically selected ones.
  2369. ac_site_file1=NONE
  2370. ac_site_file2=NONE
  2371. if test -n "$CONFIG_SITE"; then
  2372.   ac_site_file1=$CONFIG_SITE
  2373. elif test "x$prefix" != xNONE; then
  2374.   ac_site_file1=$prefix/share/config.site
  2375.   ac_site_file2=$prefix/etc/config.site
  2376. else
  2377.   ac_site_file1=$ac_default_prefix/share/config.site
  2378.   ac_site_file2=$ac_default_prefix/etc/config.site
  2379. fi
  2380. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2381. do
  2382.   test "x$ac_site_file" = xNONE && continue
  2383.   if test -r "$ac_site_file"; then
  2384.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2385. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2386.     sed 's/^/| /' "$ac_site_file" >&5
  2387.    . "$ac_site_file"
  2388.   fi
  2389. done

  2390. if test -r "$cache_file"; then
  2391.   # Some versions of bash will fail to source /dev/null (special
  2392.   # files actually), so we avoid doing that.
  2393.   if test -f "$cache_file"; then
  2394.     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2395. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2396.     case $cache_file in
  2397.       [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2398.       *)                     . "./$cache_file";;
  2399.     esac
  2400.   fi
  2401. else
  2402.   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2403. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2404.   >$cache_file
  2405. fi

  2406. # Check that the precious variables saved in the cache have kept the same
  2407. # value.
  2408. ac_cache_corrupted=false
  2409. for ac_var in $ac_precious_vars; do
  2410.   eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2411.   eval ac_new_set=\$ac_env_${ac_var}_set
  2412.   eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2413.   eval ac_new_val=\$ac_env_${ac_var}_value
  2414.   case $ac_old_set,$ac_new_set in
  2415.     set,)
  2416.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2417. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2418.       ac_cache_corrupted=: ;;
  2419.     ,set)
  2420.       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2421. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2422.       ac_cache_corrupted=: ;;
  2423.     ,);;
  2424.     *)
  2425.       if test "x$ac_old_val" != "x$ac_new_val"; then
  2426.         # differences in whitespace do not lead to failure.
  2427.         ac_old_val_w=`echo x $ac_old_val`
  2428.         ac_new_val_w=`echo x $ac_new_val`
  2429.         if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2430.           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2431. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2432.           ac_cache_corrupted=:
  2433.         else
  2434.           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2435. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2436.           eval $ac_var=\$ac_old_val
  2437.         fi
  2438.         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
  2439. $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
  2440.         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
  2441. $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
  2442.       fi;;
  2443.   esac
  2444.   # Pass precious variables to config.status.
  2445.   if test "$ac_new_set" = set; then
  2446.     case $ac_new_val in
  2447.     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2448.     *) ac_arg=$ac_var=$ac_new_val ;;
  2449.     esac
  2450.     case " $ac_configure_args " in
  2451.       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
  2452.       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2453.     esac
  2454.   fi
  2455. done
  2456. if $ac_cache_corrupted; then
  2457.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2458. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2459.   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2460. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2461.   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2462. fi
  2463. ## -------------------- ##
  2464. ## Main body of script. ##
  2465. ## -------------------- ##

  2466. ac_ext=c
  2467. ac_cpp='$CPP $CPPFLAGS'
  2468. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2469. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2470. ac_compiler_gnu=$ac_cv_c_compiler_gnu





  2471. ac_config_headers="$ac_config_headers config.h:config.in"


  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2473. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2474.     # Check whether --enable-maintainer-mode was given.
  2475. if test "${enable_maintainer_mode+set}" = set; then :
  2476.   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2477. else
  2478.   USE_MAINTAINER_MODE=no
  2479. fi

  2480.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2481. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2482.    if test $USE_MAINTAINER_MODE = yes; then
  2483.   MAINTAINER_MODE_TRUE=
  2484.   MAINTAINER_MODE_FALSE='#'
  2485. else
  2486.   MAINTAINER_MODE_TRUE='#'
  2487.   MAINTAINER_MODE_FALSE=
  2488. fi

  2489.   MAINT=$MAINTAINER_MODE_TRUE



  2490. # Set the 'development' global.
  2491. . $srcdir/../bfd/development.sh

  2492. ac_ext=c
  2493. ac_cpp='$CPP $CPPFLAGS'
  2494. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2495. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2496. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2497. if test -n "$ac_tool_prefix"; then
  2498.   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2499. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2501. $as_echo_n "checking for $ac_word... " >&6; }
  2502. if test "${ac_cv_prog_CC+set}" = set; then :
  2503.   $as_echo_n "(cached) " >&6
  2504. else
  2505.   if test -n "$CC"; then
  2506.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2507. else
  2508. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2509. for as_dir in $PATH
  2510. do
  2511.   IFS=$as_save_IFS
  2512.   test -z "$as_dir" && as_dir=.
  2513.     for ac_exec_ext in '' $ac_executable_extensions; do
  2514.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2515.     ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2516.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2517.     break 2
  2518.   fi
  2519. done
  2520.   done
  2521. IFS=$as_save_IFS

  2522. fi
  2523. fi
  2524. CC=$ac_cv_prog_CC
  2525. if test -n "$CC"; then
  2526.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2527. $as_echo "$CC" >&6; }
  2528. else
  2529.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2530. $as_echo "no" >&6; }
  2531. fi


  2532. fi
  2533. if test -z "$ac_cv_prog_CC"; then
  2534.   ac_ct_CC=$CC
  2535.   # Extract the first word of "gcc", so it can be a program name with args.
  2536. set dummy gcc; ac_word=$2
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2538. $as_echo_n "checking for $ac_word... " >&6; }
  2539. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2540.   $as_echo_n "(cached) " >&6
  2541. else
  2542.   if test -n "$ac_ct_CC"; then
  2543.   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2544. else
  2545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2546. for as_dir in $PATH
  2547. do
  2548.   IFS=$as_save_IFS
  2549.   test -z "$as_dir" && as_dir=.
  2550.     for ac_exec_ext in '' $ac_executable_extensions; do
  2551.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2552.     ac_cv_prog_ac_ct_CC="gcc"
  2553.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2554.     break 2
  2555.   fi
  2556. done
  2557.   done
  2558. IFS=$as_save_IFS

  2559. fi
  2560. fi
  2561. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2562. if test -n "$ac_ct_CC"; then
  2563.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2564. $as_echo "$ac_ct_CC" >&6; }
  2565. else
  2566.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2567. $as_echo "no" >&6; }
  2568. fi

  2569.   if test "x$ac_ct_CC" = x; then
  2570.     CC=""
  2571.   else
  2572.     case $cross_compiling:$ac_tool_warned in
  2573. yes:)
  2574. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2575. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2576. ac_tool_warned=yes ;;
  2577. esac
  2578.     CC=$ac_ct_CC
  2579.   fi
  2580. else
  2581.   CC="$ac_cv_prog_CC"
  2582. fi

  2583. if test -z "$CC"; then
  2584.           if test -n "$ac_tool_prefix"; then
  2585.     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2586. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2588. $as_echo_n "checking for $ac_word... " >&6; }
  2589. if test "${ac_cv_prog_CC+set}" = set; then :
  2590.   $as_echo_n "(cached) " >&6
  2591. else
  2592.   if test -n "$CC"; then
  2593.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2594. else
  2595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2596. for as_dir in $PATH
  2597. do
  2598.   IFS=$as_save_IFS
  2599.   test -z "$as_dir" && as_dir=.
  2600.     for ac_exec_ext in '' $ac_executable_extensions; do
  2601.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2602.     ac_cv_prog_CC="${ac_tool_prefix}cc"
  2603.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2604.     break 2
  2605.   fi
  2606. done
  2607.   done
  2608. IFS=$as_save_IFS

  2609. fi
  2610. fi
  2611. CC=$ac_cv_prog_CC
  2612. if test -n "$CC"; then
  2613.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2614. $as_echo "$CC" >&6; }
  2615. else
  2616.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2617. $as_echo "no" >&6; }
  2618. fi


  2619.   fi
  2620. fi
  2621. if test -z "$CC"; then
  2622.   # Extract the first word of "cc", so it can be a program name with args.
  2623. set dummy cc; ac_word=$2
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2625. $as_echo_n "checking for $ac_word... " >&6; }
  2626. if test "${ac_cv_prog_CC+set}" = set; then :
  2627.   $as_echo_n "(cached) " >&6
  2628. else
  2629.   if test -n "$CC"; then
  2630.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2631. else
  2632.   ac_prog_rejected=no
  2633. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2634. for as_dir in $PATH
  2635. do
  2636.   IFS=$as_save_IFS
  2637.   test -z "$as_dir" && as_dir=.
  2638.     for ac_exec_ext in '' $ac_executable_extensions; do
  2639.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2640.     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2641.        ac_prog_rejected=yes
  2642.        continue
  2643.      fi
  2644.     ac_cv_prog_CC="cc"
  2645.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2646.     break 2
  2647.   fi
  2648. done
  2649.   done
  2650. IFS=$as_save_IFS

  2651. if test $ac_prog_rejected = yes; then
  2652.   # We found a bogon in the path, so make sure we never use it.
  2653.   set dummy $ac_cv_prog_CC
  2654.   shift
  2655.   if test $# != 0; then
  2656.     # We chose a different compiler from the bogus one.
  2657.     # However, it has the same basename, so the bogon will be chosen
  2658.     # first if we set CC to just the basename; use the full file name.
  2659.     shift
  2660.     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2661.   fi
  2662. fi
  2663. fi
  2664. fi
  2665. CC=$ac_cv_prog_CC
  2666. if test -n "$CC"; then
  2667.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2668. $as_echo "$CC" >&6; }
  2669. else
  2670.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2671. $as_echo "no" >&6; }
  2672. fi


  2673. fi
  2674. if test -z "$CC"; then
  2675.   if test -n "$ac_tool_prefix"; then
  2676.   for ac_prog in cl.exe
  2677.   do
  2678.     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2679. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2681. $as_echo_n "checking for $ac_word... " >&6; }
  2682. if test "${ac_cv_prog_CC+set}" = set; then :
  2683.   $as_echo_n "(cached) " >&6
  2684. else
  2685.   if test -n "$CC"; then
  2686.   ac_cv_prog_CC="$CC" # Let the user override the test.
  2687. else
  2688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2689. for as_dir in $PATH
  2690. do
  2691.   IFS=$as_save_IFS
  2692.   test -z "$as_dir" && as_dir=.
  2693.     for ac_exec_ext in '' $ac_executable_extensions; do
  2694.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2695.     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2696.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2697.     break 2
  2698.   fi
  2699. done
  2700.   done
  2701. IFS=$as_save_IFS

  2702. fi
  2703. fi
  2704. CC=$ac_cv_prog_CC
  2705. if test -n "$CC"; then
  2706.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2707. $as_echo "$CC" >&6; }
  2708. else
  2709.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2710. $as_echo "no" >&6; }
  2711. fi


  2712.     test -n "$CC" && break
  2713.   done
  2714. fi
  2715. if test -z "$CC"; then
  2716.   ac_ct_CC=$CC
  2717.   for ac_prog in cl.exe
  2718. do
  2719.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  2720. set dummy $ac_prog; 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_ac_ct_CC+set}" = set; then :
  2724.   $as_echo_n "(cached) " >&6
  2725. else
  2726.   if test -n "$ac_ct_CC"; then
  2727.   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$ac_prog"
  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. fi
  2744. fi
  2745. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2746. if test -n "$ac_ct_CC"; then
  2747.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2748. $as_echo "$ac_ct_CC" >&6; }
  2749. else
  2750.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2751. $as_echo "no" >&6; }
  2752. fi


  2753.   test -n "$ac_ct_CC" && break
  2754. done

  2755.   if test "x$ac_ct_CC" = x; then
  2756.     CC=""
  2757.   else
  2758.     case $cross_compiling:$ac_tool_warned in
  2759. yes:)
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2761. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2762. ac_tool_warned=yes ;;
  2763. esac
  2764.     CC=$ac_ct_CC
  2765.   fi
  2766. fi

  2767. fi


  2768. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2769. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2770. as_fn_error "no acceptable C compiler found in \$PATH
  2771. See \`config.log' for more details." "$LINENO" 5; }

  2772. # Provide some information about the compiler.
  2773. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2774. set X $ac_compile
  2775. ac_compiler=$2
  2776. for ac_option in --version -v -V -qversion; do
  2777.   { { ac_try="$ac_compiler $ac_option >&5"
  2778. case "(($ac_try" in
  2779.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2780.   *) ac_try_echo=$ac_try;;
  2781. esac
  2782. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2783. $as_echo "$ac_try_echo"; } >&5
  2784.   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2785.   ac_status=$?
  2786.   if test -s conftest.err; then
  2787.     sed '10a\
  2788. ... rest of stderr output deleted ...
  2789.          10q' conftest.err >conftest.er1
  2790.     cat conftest.er1 >&5
  2791.     rm -f conftest.er1 conftest.err
  2792.   fi
  2793.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2794.   test $ac_status = 0; }
  2795. done

  2796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2797. /* end confdefs.h.  */

  2798. int
  2799. main ()
  2800. {

  2801.   ;
  2802.   return 0;
  2803. }
  2804. _ACEOF
  2805. ac_clean_files_save=$ac_clean_files
  2806. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2807. # Try to create an executable without -o first, disregard a.out.
  2808. # It will help us diagnose broken compilers, and finding out an intuition
  2809. # of exeext.
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2811. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2812. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

  2813. # The possible output files:
  2814. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

  2815. ac_rmfiles=
  2816. for ac_file in $ac_files
  2817. do
  2818.   case $ac_file in
  2819.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2820.     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2821.   esac
  2822. done
  2823. rm -f $ac_rmfiles

  2824. if { { ac_try="$ac_link_default"
  2825. case "(($ac_try" in
  2826.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2827.   *) ac_try_echo=$ac_try;;
  2828. esac
  2829. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2830. $as_echo "$ac_try_echo"; } >&5
  2831.   (eval "$ac_link_default") 2>&5
  2832.   ac_status=$?
  2833.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2834.   test $ac_status = 0; }; then :
  2835.   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2836. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2837. # in a Makefile.  We should not override ac_cv_exeext if it was cached,
  2838. # so that the user can short-circuit this test for compilers unknown to
  2839. # Autoconf.
  2840. for ac_file in $ac_files ''
  2841. do
  2842.   test -f "$ac_file" || continue
  2843.   case $ac_file in
  2844.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2845.         ;;
  2846.     [ab].out )
  2847.         # We found the default executable, but exeext='' is most
  2848.         # certainly right.
  2849.         break;;
  2850.     *.* )
  2851.         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2852.         then :; else
  2853.            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2854.         fi
  2855.         # We set ac_cv_exeext here because the later test for it is not
  2856.         # safe: cross compilers may not add the suffix if given an `-o'
  2857.         # argument, so we may need to know it at that point already.
  2858.         # Even if this section looks crufty: it has the advantage of
  2859.         # actually working.
  2860.         break;;
  2861.     * )
  2862.         break;;
  2863.   esac
  2864. done
  2865. test "$ac_cv_exeext" = no && ac_cv_exeext=

  2866. else
  2867.   ac_file=''
  2868. fi
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2870. $as_echo "$ac_file" >&6; }
  2871. if test -z "$ac_file"; then :
  2872.   $as_echo "$as_me: failed program was:" >&5
  2873. sed 's/^/| /' conftest.$ac_ext >&5

  2874. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2875. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2876. { as_fn_set_status 77
  2877. as_fn_error "C compiler cannot create executables
  2878. See \`config.log' for more details." "$LINENO" 5; }; }
  2879. fi
  2880. ac_exeext=$ac_cv_exeext

  2881. # Check that the compiler produces executables we can run.  If not, either
  2882. # the compiler is broken, or we cross compile.
  2883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2884. $as_echo_n "checking whether the C compiler works... " >&6; }
  2885. # If not cross compiling, check that we can run a simple program.
  2886. if test "$cross_compiling" != yes; then
  2887.   if { ac_try='./$ac_file'
  2888.   { { case "(($ac_try" in
  2889.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2890.   *) ac_try_echo=$ac_try;;
  2891. esac
  2892. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2893. $as_echo "$ac_try_echo"; } >&5
  2894.   (eval "$ac_try") 2>&5
  2895.   ac_status=$?
  2896.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2897.   test $ac_status = 0; }; }; then
  2898.     cross_compiling=no
  2899.   else
  2900.     if test "$cross_compiling" = maybe; then
  2901.         cross_compiling=yes
  2902.     else
  2903.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2904. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2905. as_fn_error "cannot run C compiled programs.
  2906. If you meant to cross compile, use \`--host'.
  2907. See \`config.log' for more details." "$LINENO" 5; }
  2908.     fi
  2909.   fi
  2910. fi
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2912. $as_echo "yes" >&6; }

  2913. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  2914. ac_clean_files=$ac_clean_files_save
  2915. # Check that the compiler produces executables we can run.  If not, either
  2916. # the compiler is broken, or we cross compile.
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2918. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2919. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2920. $as_echo "$cross_compiling" >&6; }

  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2922. $as_echo_n "checking for suffix of executables... " >&6; }
  2923. if { { ac_try="$ac_link"
  2924. case "(($ac_try" in
  2925.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2926.   *) ac_try_echo=$ac_try;;
  2927. esac
  2928. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2929. $as_echo "$ac_try_echo"; } >&5
  2930.   (eval "$ac_link") 2>&5
  2931.   ac_status=$?
  2932.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2933.   test $ac_status = 0; }; then :
  2934.   # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2935. # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
  2936. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2937. # `rm'.
  2938. for ac_file in conftest.exe conftest conftest.*; do
  2939.   test -f "$ac_file" || continue
  2940.   case $ac_file in
  2941.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2942.     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2943.           break;;
  2944.     * ) break;;
  2945.   esac
  2946. done
  2947. else
  2948.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2949. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2950. as_fn_error "cannot compute suffix of executables: cannot compile and link
  2951. See \`config.log' for more details." "$LINENO" 5; }
  2952. fi
  2953. rm -f conftest$ac_cv_exeext
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2955. $as_echo "$ac_cv_exeext" >&6; }

  2956. rm -f conftest.$ac_ext
  2957. EXEEXT=$ac_cv_exeext
  2958. ac_exeext=$EXEEXT
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2960. $as_echo_n "checking for suffix of object files... " >&6; }
  2961. if test "${ac_cv_objext+set}" = set; then :
  2962.   $as_echo_n "(cached) " >&6
  2963. else
  2964.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2965. /* end confdefs.h.  */

  2966. int
  2967. main ()
  2968. {

  2969.   ;
  2970.   return 0;
  2971. }
  2972. _ACEOF
  2973. rm -f conftest.o conftest.obj
  2974. if { { ac_try="$ac_compile"
  2975. case "(($ac_try" in
  2976.   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2977.   *) ac_try_echo=$ac_try;;
  2978. esac
  2979. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2980. $as_echo "$ac_try_echo"; } >&5
  2981.   (eval "$ac_compile") 2>&5
  2982.   ac_status=$?
  2983.   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2984.   test $ac_status = 0; }; then :
  2985.   for ac_file in conftest.o conftest.obj conftest.*; do
  2986.   test -f "$ac_file" || continue;
  2987.   case $ac_file in
  2988.     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2989.     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2990.        break;;
  2991.   esac
  2992. done
  2993. else
  2994.   $as_echo "$as_me: failed program was:" >&5
  2995. sed 's/^/| /' conftest.$ac_ext >&5

  2996. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. as_fn_error "cannot compute suffix of object files: cannot compile
  2999. See \`config.log' for more details." "$LINENO" 5; }
  3000. fi
  3001. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3002. fi
  3003. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3004. $as_echo "$ac_cv_objext" >&6; }
  3005. OBJEXT=$ac_cv_objext
  3006. ac_objext=$OBJEXT
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3008. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3009. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3010.   $as_echo_n "(cached) " >&6
  3011. else
  3012.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3013. /* end confdefs.h.  */

  3014. int
  3015. main ()
  3016. {
  3017. #ifndef __GNUC__
  3018.        choke me
  3019. #endif

  3020.   ;
  3021.   return 0;
  3022. }
  3023. _ACEOF
  3024. if ac_fn_c_try_compile "$LINENO"; then :
  3025.   ac_compiler_gnu=yes
  3026. else
  3027.   ac_compiler_gnu=no
  3028. fi
  3029. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3030. ac_cv_c_compiler_gnu=$ac_compiler_gnu

  3031. fi
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3033. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3034. if test $ac_compiler_gnu = yes; then
  3035.   GCC=yes
  3036. else
  3037.   GCC=
  3038. fi
  3039. ac_test_CFLAGS=${CFLAGS+set}
  3040. ac_save_CFLAGS=$CFLAGS
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3042. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3043. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3044.   $as_echo_n "(cached) " >&6
  3045. else
  3046.   ac_save_c_werror_flag=$ac_c_werror_flag
  3047.    ac_c_werror_flag=yes
  3048.    ac_cv_prog_cc_g=no
  3049.    CFLAGS="-g"
  3050.    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3051. /* end confdefs.h.  */

  3052. int
  3053. main ()
  3054. {

  3055.   ;
  3056.   return 0;
  3057. }
  3058. _ACEOF
  3059. if ac_fn_c_try_compile "$LINENO"; then :
  3060.   ac_cv_prog_cc_g=yes
  3061. else
  3062.   CFLAGS=""
  3063.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3064. /* end confdefs.h.  */

  3065. int
  3066. main ()
  3067. {

  3068.   ;
  3069.   return 0;
  3070. }
  3071. _ACEOF
  3072. if ac_fn_c_try_compile "$LINENO"; then :

  3073. else
  3074.   ac_c_werror_flag=$ac_save_c_werror_flag
  3075.          CFLAGS="-g"
  3076.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3077. /* end confdefs.h.  */

  3078. int
  3079. main ()
  3080. {

  3081.   ;
  3082.   return 0;
  3083. }
  3084. _ACEOF
  3085. if ac_fn_c_try_compile "$LINENO"; then :
  3086.   ac_cv_prog_cc_g=yes
  3087. fi
  3088. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3089. fi
  3090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3091. fi
  3092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3093.    ac_c_werror_flag=$ac_save_c_werror_flag
  3094. fi
  3095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3096. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3097. if test "$ac_test_CFLAGS" = set; then
  3098.   CFLAGS=$ac_save_CFLAGS
  3099. elif test $ac_cv_prog_cc_g = yes; then
  3100.   if test "$GCC" = yes; then
  3101.     CFLAGS="-g -O2"
  3102.   else
  3103.     CFLAGS="-g"
  3104.   fi
  3105. else
  3106.   if test "$GCC" = yes; then
  3107.     CFLAGS="-O2"
  3108.   else
  3109.     CFLAGS=
  3110.   fi
  3111. fi
  3112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3113. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3114. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3115.   $as_echo_n "(cached) " >&6
  3116. else
  3117.   ac_cv_prog_cc_c89=no
  3118. ac_save_CC=$CC
  3119. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3120. /* end confdefs.h.  */
  3121. #include <stdarg.h>
  3122. #include <stdio.h>
  3123. #include <sys/types.h>
  3124. #include <sys/stat.h>
  3125. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  3126. struct buf { int x; };
  3127. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3128. static char *e (p, i)
  3129.      char **p;
  3130.      int i;
  3131. {
  3132.   return p[i];
  3133. }
  3134. static char *f (char * (*g) (char **, int), char **p, ...)
  3135. {
  3136.   char *s;
  3137.   va_list v;
  3138.   va_start (v,p);
  3139.   s = g (p, va_arg (v,int));
  3140.   va_end (v);
  3141.   return s;
  3142. }

  3143. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
  3144.    function prototypes and stuff, but not '\xHH' hex character constants.
  3145.    These don't provoke an error unfortunately, instead are silently treated
  3146.    as 'x'.  The following induces an error, until -std is added to get
  3147.    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
  3148.    array size at least.  It's necessary to write '\x00'==0 to get something
  3149.    that's true only with -std.  */
  3150. int osf4_cc_array ['\x00' == 0 ? 1 : -1];

  3151. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3152.    inside strings and character constants.  */
  3153. #define FOO(x) 'x'
  3154. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];

  3155. int test (int i, double x);
  3156. struct s1 {int (*f) (int a);};
  3157. struct s2 {int (*f) (double a);};
  3158. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3159. int argc;
  3160. char **argv;
  3161. int
  3162. main ()
  3163. {
  3164. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
  3165.   ;
  3166.   return 0;
  3167. }
  3168. _ACEOF
  3169. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3170.         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3171. do
  3172.   CC="$ac_save_CC $ac_arg"
  3173.   if ac_fn_c_try_compile "$LINENO"; then :
  3174.   ac_cv_prog_cc_c89=$ac_arg
  3175. fi
  3176. rm -f core conftest.err conftest.$ac_objext
  3177.   test "x$ac_cv_prog_cc_c89" != "xno" && break
  3178. done
  3179. rm -f conftest.$ac_ext
  3180. CC=$ac_save_CC

  3181. fi
  3182. # AC_CACHE_VAL
  3183. case "x$ac_cv_prog_cc_c89" in
  3184.   x)
  3185.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3186. $as_echo "none needed" >&6; } ;;
  3187.   xno)
  3188.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3189. $as_echo "unsupported" >&6; } ;;
  3190.   *)
  3191.     CC="$CC $ac_cv_prog_cc_c89"
  3192.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3193. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3194. esac
  3195. if test "x$ac_cv_prog_cc_c89" != xno; then :

  3196. fi

  3197. ac_ext=c
  3198. ac_cpp='$CPP $CPPFLAGS'
  3199. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3200. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3201. ac_compiler_gnu=$ac_cv_c_compiler_gnu


  3202. ac_ext=c
  3203. ac_cpp='$CPP $CPPFLAGS'
  3204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3208. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3209. # On Suns, sometimes $CPP names a directory.
  3210. if test -n "$CPP" && test -d "$CPP"; then
  3211.   CPP=
  3212. fi
  3213. if test -z "$CPP"; then
  3214.   if test "${ac_cv_prog_CPP+set}" = set; then :
  3215.   $as_echo_n "(cached) " >&6
  3216. else
  3217.       # Double quotes because CPP needs to be expanded
  3218.     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3219.     do
  3220.       ac_preproc_ok=false
  3221. for ac_c_preproc_warn_flag in '' yes
  3222. do
  3223.   # Use a header file that comes with gcc, so configuring glibc
  3224.   # with a fresh cross-compiler works.
  3225.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3226.   # <limits.h> exists even on freestanding compilers.
  3227.   # On the NeXT, cc -E runs the code through the compiler's parser,
  3228.   # not just through cpp. "Syntax error" is here to catch this case.
  3229.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3230. /* end confdefs.h.  */
  3231. #ifdef __STDC__
  3232. # include <limits.h>
  3233. #else
  3234. # include <assert.h>
  3235. #endif
  3236.                      Syntax error
  3237. _ACEOF
  3238. if ac_fn_c_try_cpp "$LINENO"; then :

  3239. else
  3240.   # Broken: fails on valid input.
  3241. continue
  3242. fi
  3243. rm -f conftest.err conftest.$ac_ext

  3244.   # OK, works on sane cases.  Now check whether nonexistent headers
  3245.   # can be detected and how.
  3246.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3247. /* end confdefs.h.  */
  3248. #include <ac_nonexistent.h>
  3249. _ACEOF
  3250. if ac_fn_c_try_cpp "$LINENO"; then :
  3251.   # Broken: success on invalid input.
  3252. continue
  3253. else
  3254.   # Passes both tests.
  3255. ac_preproc_ok=:
  3256. break
  3257. fi
  3258. rm -f conftest.err conftest.$ac_ext

  3259. done
  3260. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3261. rm -f conftest.err conftest.$ac_ext
  3262. if $ac_preproc_ok; then :
  3263.   break
  3264. fi

  3265.     done
  3266.     ac_cv_prog_CPP=$CPP

  3267. fi
  3268.   CPP=$ac_cv_prog_CPP
  3269. else
  3270.   ac_cv_prog_CPP=$CPP
  3271. fi
  3272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3273. $as_echo "$CPP" >&6; }
  3274. ac_preproc_ok=false
  3275. for ac_c_preproc_warn_flag in '' yes
  3276. do
  3277.   # Use a header file that comes with gcc, so configuring glibc
  3278.   # with a fresh cross-compiler works.
  3279.   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3280.   # <limits.h> exists even on freestanding compilers.
  3281.   # On the NeXT, cc -E runs the code through the compiler's parser,
  3282.   # not just through cpp. "Syntax error" is here to catch this case.
  3283.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3284. /* end confdefs.h.  */
  3285. #ifdef __STDC__
  3286. # include <limits.h>
  3287. #else
  3288. # include <assert.h>
  3289. #endif
  3290.                      Syntax error
  3291. _ACEOF
  3292. if ac_fn_c_try_cpp "$LINENO"; then :

  3293. else
  3294.   # Broken: fails on valid input.
  3295. continue
  3296. fi
  3297. rm -f conftest.err conftest.$ac_ext

  3298.   # OK, works on sane cases.  Now check whether nonexistent headers
  3299.   # can be detected and how.
  3300.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3301. /* end confdefs.h.  */
  3302. #include <ac_nonexistent.h>
  3303. _ACEOF
  3304. if ac_fn_c_try_cpp "$LINENO"; then :
  3305.   # Broken: success on invalid input.
  3306. continue
  3307. else
  3308.   # Passes both tests.
  3309. ac_preproc_ok=:
  3310. break
  3311. fi
  3312. rm -f conftest.err conftest.$ac_ext

  3313. done
  3314. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3315. rm -f conftest.err conftest.$ac_ext
  3316. if $ac_preproc_ok; then :

  3317. else
  3318.   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3319. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3320. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  3321. See \`config.log' for more details." "$LINENO" 5; }
  3322. fi

  3323. ac_ext=c
  3324. ac_cpp='$CPP $CPPFLAGS'
  3325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3327. ac_compiler_gnu=$ac_cv_c_compiler_gnu


  3328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3329. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3330. if test "${ac_cv_path_GREP+set}" = set; then :
  3331.   $as_echo_n "(cached) " >&6
  3332. else
  3333.   if test -z "$GREP"; then
  3334.   ac_path_GREP_found=false
  3335.   # Loop through the user's path and test for each of PROGNAME-LIST
  3336.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3337. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3338. do
  3339.   IFS=$as_save_IFS
  3340.   test -z "$as_dir" && as_dir=.
  3341.     for ac_prog in grep ggrep; do
  3342.     for ac_exec_ext in '' $ac_executable_extensions; do
  3343.       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3344.       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  3345. # Check for GNU ac_path_GREP and select it if it is found.
  3346.   # Check for GNU $ac_path_GREP
  3347. case `"$ac_path_GREP" --version 2>&1` in
  3348. *GNU*)
  3349.   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3350. *)
  3351.   ac_count=0
  3352.   $as_echo_n 0123456789 >"conftest.in"
  3353.   while :
  3354.   do
  3355.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3356.     mv "conftest.tmp" "conftest.in"
  3357.     cp "conftest.in" "conftest.nl"
  3358.     $as_echo 'GREP' >> "conftest.nl"
  3359.     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3360.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3361.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3362.     if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3363.       # Best one so far, save it but keep looking for a better one
  3364.       ac_cv_path_GREP="$ac_path_GREP"
  3365.       ac_path_GREP_max=$ac_count
  3366.     fi
  3367.     # 10*(2^10) chars as input seems more than enough
  3368.     test $ac_count -gt 10 && break
  3369.   done
  3370.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3371. esac

  3372.       $ac_path_GREP_found && break 3
  3373.     done
  3374.   done
  3375.   done
  3376. IFS=$as_save_IFS
  3377.   if test -z "$ac_cv_path_GREP"; then
  3378.     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3379.   fi
  3380. else
  3381.   ac_cv_path_GREP=$GREP
  3382. fi

  3383. fi
  3384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3385. $as_echo "$ac_cv_path_GREP" >&6; }
  3386. GREP="$ac_cv_path_GREP"


  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3388. $as_echo_n "checking for egrep... " >&6; }
  3389. if test "${ac_cv_path_EGREP+set}" = set; then :
  3390.   $as_echo_n "(cached) " >&6
  3391. else
  3392.   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3393.    then ac_cv_path_EGREP="$GREP -E"
  3394.    else
  3395.      if test -z "$EGREP"; then
  3396.   ac_path_EGREP_found=false
  3397.   # Loop through the user's path and test for each of PROGNAME-LIST
  3398.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3399. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3400. do
  3401.   IFS=$as_save_IFS
  3402.   test -z "$as_dir" && as_dir=.
  3403.     for ac_prog in egrep; do
  3404.     for ac_exec_ext in '' $ac_executable_extensions; do
  3405.       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3406.       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  3407. # Check for GNU ac_path_EGREP and select it if it is found.
  3408.   # Check for GNU $ac_path_EGREP
  3409. case `"$ac_path_EGREP" --version 2>&1` in
  3410. *GNU*)
  3411.   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3412. *)
  3413.   ac_count=0
  3414.   $as_echo_n 0123456789 >"conftest.in"
  3415.   while :
  3416.   do
  3417.     cat "conftest.in" "conftest.in" >"conftest.tmp"
  3418.     mv "conftest.tmp" "conftest.in"
  3419.     cp "conftest.in" "conftest.nl"
  3420.     $as_echo 'EGREP' >> "conftest.nl"
  3421.     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3422.     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3423.     as_fn_arith $ac_count + 1 && ac_count=$as_val
  3424.     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3425.       # Best one so far, save it but keep looking for a better one
  3426.       ac_cv_path_EGREP="$ac_path_EGREP"
  3427.       ac_path_EGREP_max=$ac_count
  3428.     fi
  3429.     # 10*(2^10) chars as input seems more than enough
  3430.     test $ac_count -gt 10 && break
  3431.   done
  3432.   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3433. esac

  3434.       $ac_path_EGREP_found && break 3
  3435.     done
  3436.   done
  3437.   done
  3438. IFS=$as_save_IFS
  3439.   if test -z "$ac_cv_path_EGREP"; then
  3440.     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3441.   fi
  3442. else
  3443.   ac_cv_path_EGREP=$EGREP
  3444. fi

  3445.    fi
  3446. fi
  3447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3448. $as_echo "$ac_cv_path_EGREP" >&6; }
  3449. EGREP="$ac_cv_path_EGREP"


  3450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3451. $as_echo_n "checking for ANSI C header files... " >&6; }
  3452. if test "${ac_cv_header_stdc+set}" = set; then :
  3453.   $as_echo_n "(cached) " >&6
  3454. else
  3455.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3456. /* end confdefs.h.  */
  3457. #include <stdlib.h>
  3458. #include <stdarg.h>
  3459. #include <string.h>
  3460. #include <float.h>

  3461. int
  3462. main ()
  3463. {

  3464.   ;
  3465.   return 0;
  3466. }
  3467. _ACEOF
  3468. if ac_fn_c_try_compile "$LINENO"; then :
  3469.   ac_cv_header_stdc=yes
  3470. else
  3471.   ac_cv_header_stdc=no
  3472. fi
  3473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  3474. if test $ac_cv_header_stdc = yes; then
  3475.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3476.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3477. /* end confdefs.h.  */
  3478. #include <string.h>

  3479. _ACEOF
  3480. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3481.   $EGREP "memchr" >/dev/null 2>&1; then :

  3482. else
  3483.   ac_cv_header_stdc=no
  3484. fi
  3485. rm -f conftest*

  3486. fi

  3487. if test $ac_cv_header_stdc = yes; then
  3488.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3489.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3490. /* end confdefs.h.  */
  3491. #include <stdlib.h>

  3492. _ACEOF
  3493. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3494.   $EGREP "free" >/dev/null 2>&1; then :

  3495. else
  3496.   ac_cv_header_stdc=no
  3497. fi
  3498. rm -f conftest*

  3499. fi

  3500. if test $ac_cv_header_stdc = yes; then
  3501.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3502.   if test "$cross_compiling" = yes; then :
  3503.   :
  3504. else
  3505.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3506. /* end confdefs.h.  */
  3507. #include <ctype.h>
  3508. #include <stdlib.h>
  3509. #if ((' ' & 0x0FF) == 0x020)
  3510. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3511. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3512. #else
  3513. # define ISLOWER(c) \
  3514.                    (('a' <= (c) && (c) <= 'i') \
  3515.                      || ('j' <= (c) && (c) <= 'r') \
  3516.                      || ('s' <= (c) && (c) <= 'z'))
  3517. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3518. #endif

  3519. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3520. int
  3521. main ()
  3522. {
  3523.   int i;
  3524.   for (i = 0; i < 256; i++)
  3525.     if (XOR (islower (i), ISLOWER (i))
  3526.         || toupper (i) != TOUPPER (i))
  3527.       return 2;
  3528.   return 0;
  3529. }
  3530. _ACEOF
  3531. if ac_fn_c_try_run "$LINENO"; then :

  3532. else
  3533.   ac_cv_header_stdc=no
  3534. fi
  3535. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3536.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  3537. fi

  3538. fi
  3539. fi
  3540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3541. $as_echo "$ac_cv_header_stdc" >&6; }
  3542. if test $ac_cv_header_stdc = yes; then

  3543. $as_echo "#define STDC_HEADERS 1" >>confdefs.h

  3544. fi

  3545. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3546. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3547.                   inttypes.h stdint.h unistd.h
  3548. do :
  3549.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3550. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3551. "
  3552. eval as_val=\$$as_ac_Header
  3553.    if test "x$as_val" = x""yes; then :
  3554.   cat >>confdefs.h <<_ACEOF
  3555. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3556. _ACEOF

  3557. fi

  3558. done



  3559.   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3560. if test "x$ac_cv_header_minix_config_h" = x""yes; then :
  3561.   MINIX=yes
  3562. else
  3563.   MINIX=
  3564. fi


  3565.   if test "$MINIX" = yes; then

  3566. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h


  3567. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h


  3568. $as_echo "#define _MINIX 1" >>confdefs.h

  3569.   fi


  3570.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3571. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3572. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
  3573.   $as_echo_n "(cached) " >&6
  3574. else
  3575.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3576. /* end confdefs.h.  */

  3577. #          define __EXTENSIONS__ 1
  3578.           $ac_includes_default
  3579. int
  3580. main ()
  3581. {

  3582.   ;
  3583.   return 0;
  3584. }
  3585. _ACEOF
  3586. if ac_fn_c_try_compile "$LINENO"; then :
  3587.   ac_cv_safe_to_define___extensions__=yes
  3588. else
  3589.   ac_cv_safe_to_define___extensions__=no
  3590. fi
  3591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3592. fi
  3593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3594. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3595.   test $ac_cv_safe_to_define___extensions__ = yes &&
  3596.     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h

  3597.   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h

  3598.   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h

  3599.   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h

  3600.   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h


  3601. ac_aux_dir=
  3602. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  3603.   for ac_t in install-sh install.sh shtool; do
  3604.     if test -f "$ac_dir/$ac_t"; then
  3605.       ac_aux_dir=$ac_dir
  3606.       ac_install_sh="$ac_aux_dir/$ac_t -c"
  3607.       break 2
  3608.     fi
  3609.   done
  3610. done
  3611. if test -z "$ac_aux_dir"; then
  3612.   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  3613. fi

  3614. # These three variables are undocumented and unsupported,
  3615. # and are intended to be withdrawn in a future Autoconf release.
  3616. # They can cause serious problems if a builder's source tree is in a directory
  3617. # whose full name contains unusual characters.
  3618. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  3619. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  3620. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


  3621. # Make sure we can run config.sub.
  3622. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3623.   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5

  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3625. $as_echo_n "checking build system type... " >&6; }
  3626. if test "${ac_cv_build+set}" = set; then :
  3627.   $as_echo_n "(cached) " >&6
  3628. else
  3629.   ac_build_alias=$build_alias
  3630. test "x$ac_build_alias" = x &&
  3631.   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3632. test "x$ac_build_alias" = x &&
  3633.   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3634. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3635.   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5

  3636. fi
  3637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3638. $as_echo "$ac_cv_build" >&6; }
  3639. case $ac_cv_build in
  3640. *-*-*) ;;
  3641. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3642. esac
  3643. build=$ac_cv_build
  3644. ac_save_IFS=$IFS; IFS='-'
  3645. set x $ac_cv_build
  3646. shift
  3647. build_cpu=$1
  3648. build_vendor=$2
  3649. shift; shift
  3650. # Remember, the first character of IFS is used to create $*,
  3651. # except with old shells:
  3652. build_os=$*
  3653. IFS=$ac_save_IFS
  3654. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac


  3655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3656. $as_echo_n "checking host system type... " >&6; }
  3657. if test "${ac_cv_host+set}" = set; then :
  3658.   $as_echo_n "(cached) " >&6
  3659. else
  3660.   if test "x$host_alias" = x; then
  3661.   ac_cv_host=$ac_cv_build
  3662. else
  3663.   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3664.     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3665. fi

  3666. fi
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3668. $as_echo "$ac_cv_host" >&6; }
  3669. case $ac_cv_host in
  3670. *-*-*) ;;
  3671. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3672. esac
  3673. host=$ac_cv_host
  3674. ac_save_IFS=$IFS; IFS='-'
  3675. set x $ac_cv_host
  3676. shift
  3677. host_cpu=$1
  3678. host_vendor=$2
  3679. shift; shift
  3680. # Remember, the first character of IFS is used to create $*,
  3681. # except with old shells:
  3682. host_os=$*
  3683. IFS=$ac_save_IFS
  3684. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac


  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  3686. $as_echo_n "checking target system type... " >&6; }
  3687. if test "${ac_cv_target+set}" = set; then :
  3688.   $as_echo_n "(cached) " >&6
  3689. else
  3690.   if test "x$target_alias" = x; then
  3691.   ac_cv_target=$ac_cv_host
  3692. else
  3693.   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  3694.     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  3695. fi

  3696. fi
  3697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  3698. $as_echo "$ac_cv_target" >&6; }
  3699. case $ac_cv_target in
  3700. *-*-*) ;;
  3701. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  3702. esac
  3703. target=$ac_cv_target
  3704. ac_save_IFS=$IFS; IFS='-'
  3705. set x $ac_cv_target
  3706. shift
  3707. target_cpu=$1
  3708. target_vendor=$2
  3709. shift; shift
  3710. # Remember, the first character of IFS is used to create $*,
  3711. # except with old shells:
  3712. target_os=$*
  3713. IFS=$ac_save_IFS
  3714. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac


  3715. # The aliases save the names the user supplied, while $host etc.
  3716. # will get canonicalized.
  3717. test -n "$target_alias" &&
  3718.   test "$program_prefix$program_suffix$program_transform_name" = \
  3719.     NONENONEs,x,x, &&
  3720.   program_prefix=${target_alias}-

  3721. # The tests for host and target for $enable_largefile require
  3722. # canonical names.



  3723. # As the $enable_largefile decision depends on --enable-plugins we must set it
  3724. # even in directories otherwise not depending on the $plugins option.


  3725.   maybe_plugins=no
  3726.   for ac_header in dlfcn.h
  3727. do :
  3728.   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  3729. "
  3730. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  3731.   cat >>confdefs.h <<_ACEOF
  3732. #define HAVE_DLFCN_H 1
  3733. _ACEOF
  3734. maybe_plugins=yes
  3735. fi

  3736. done

  3737.   for ac_header in windows.h
  3738. do :
  3739.   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
  3740. "
  3741. if test "x$ac_cv_header_windows_h" = x""yes; then :
  3742.   cat >>confdefs.h <<_ACEOF
  3743. #define HAVE_WINDOWS_H 1
  3744. _ACEOF
  3745. maybe_plugins=yes
  3746. fi

  3747. done


  3748.   # Check whether --enable-plugins was given.
  3749. if test "${enable_plugins+set}" = set; then :
  3750.   enableval=$enable_plugins; case "${enableval}" in
  3751.       no) plugins=no ;;
  3752.       *) plugins=yes
  3753.          if test "$maybe_plugins" != "yes" ; then
  3754.            as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
  3755.          fi ;;
  3756.      esac
  3757. else
  3758.   plugins=$maybe_plugins

  3759. fi

  3760.   if test "$plugins" = "yes"; then
  3761.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  3762. $as_echo_n "checking for library containing dlopen... " >&6; }
  3763. if test "${ac_cv_search_dlopen+set}" = set; then :
  3764.   $as_echo_n "(cached) " >&6
  3765. else
  3766.   ac_func_search_save_LIBS=$LIBS
  3767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3768. /* end confdefs.h.  */

  3769. /* Override any GCC internal prototype to avoid an error.
  3770.    Use char because int might match the return type of a GCC
  3771.    builtin and then its argument prototype would still apply.  */
  3772. #ifdef __cplusplus
  3773. extern "C"
  3774. #endif
  3775. char dlopen ();
  3776. int
  3777. main ()
  3778. {
  3779. return dlopen ();
  3780.   ;
  3781.   return 0;
  3782. }
  3783. _ACEOF
  3784. for ac_lib in '' dl; do
  3785.   if test -z "$ac_lib"; then
  3786.     ac_res="none required"
  3787.   else
  3788.     ac_res=-l$ac_lib
  3789.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  3790.   fi
  3791.   if ac_fn_c_try_link "$LINENO"; then :
  3792.   ac_cv_search_dlopen=$ac_res
  3793. fi
  3794. rm -f core conftest.err conftest.$ac_objext \
  3795.     conftest$ac_exeext
  3796.   if test "${ac_cv_search_dlopen+set}" = set; then :
  3797.   break
  3798. fi
  3799. done
  3800. if test "${ac_cv_search_dlopen+set}" = set; then :

  3801. else
  3802.   ac_cv_search_dlopen=no
  3803. fi
  3804. rm conftest.$ac_ext
  3805. LIBS=$ac_func_search_save_LIBS
  3806. fi
  3807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  3808. $as_echo "$ac_cv_search_dlopen" >&6; }
  3809. ac_res=$ac_cv_search_dlopen
  3810. if test "$ac_res" != no; then :
  3811.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

  3812. fi

  3813.   fi


  3814. case "${host}" in
  3815.   sparc-*-solaris*|i[3-7]86-*-solaris*)
  3816.     # On native 32bit sparc and ia32 solaris, large-file and procfs support
  3817.     # are mutually exclusive; and without procfs support, the bfd/ elf module
  3818.     # cannot provide certain routines such as elfcore_write_prpsinfo
  3819.     # or elfcore_write_prstatus.  So unless the user explicitly requested
  3820.     # large-file support through the --enable-largefile switch, disable
  3821.     # large-file support in favor of procfs support.
  3822.     test "${target}" = "${host}" -a "x$plugins" = xno \
  3823.       && : ${enable_largefile="no"}
  3824.     ;;
  3825. esac

  3826. # Check whether --enable-largefile was given.
  3827. if test "${enable_largefile+set}" = set; then :
  3828.   enableval=$enable_largefile;
  3829. fi

  3830. if test "$enable_largefile" != no; then

  3831.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  3832. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  3833. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  3834.   $as_echo_n "(cached) " >&6
  3835. else
  3836.   ac_cv_sys_largefile_CC=no
  3837.      if test "$GCC" != yes; then
  3838.        ac_save_CC=$CC
  3839.        while :; do
  3840.          # IRIX 6.2 and later do not support large files by default,
  3841.          # so use the C compiler's -n32 option if that helps.
  3842.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3843. /* end confdefs.h.  */
  3844. #include <sys/types.h>
  3845. /* Check that off_t can represent 2**63 - 1 correctly.
  3846.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3847.     since some C++ compilers masquerading as C compilers
  3848.     incorrectly reject 9223372036854775807.  */
  3849. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3850.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3851.                        && LARGE_OFF_T % 2147483647 == 1)
  3852.                       ? 1 : -1];
  3853. int
  3854. main ()
  3855. {

  3856.   ;
  3857.   return 0;
  3858. }
  3859. _ACEOF
  3860.          if ac_fn_c_try_compile "$LINENO"; then :
  3861.   break
  3862. fi
  3863. rm -f core conftest.err conftest.$ac_objext
  3864.          CC="$CC -n32"
  3865.          if ac_fn_c_try_compile "$LINENO"; then :
  3866.   ac_cv_sys_largefile_CC=' -n32'; break
  3867. fi
  3868. rm -f core conftest.err conftest.$ac_objext
  3869.          break
  3870.        done
  3871.        CC=$ac_save_CC
  3872.        rm -f conftest.$ac_ext
  3873.     fi
  3874. fi
  3875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  3876. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  3877.   if test "$ac_cv_sys_largefile_CC" != no; then
  3878.     CC=$CC$ac_cv_sys_largefile_CC
  3879.   fi

  3880.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  3881. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  3882. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  3883.   $as_echo_n "(cached) " >&6
  3884. else
  3885.   while :; do
  3886.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3887. /* end confdefs.h.  */
  3888. #include <sys/types.h>
  3889. /* Check that off_t can represent 2**63 - 1 correctly.
  3890.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3891.     since some C++ compilers masquerading as C compilers
  3892.     incorrectly reject 9223372036854775807.  */
  3893. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3894.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3895.                        && LARGE_OFF_T % 2147483647 == 1)
  3896.                       ? 1 : -1];
  3897. int
  3898. main ()
  3899. {

  3900.   ;
  3901.   return 0;
  3902. }
  3903. _ACEOF
  3904. if ac_fn_c_try_compile "$LINENO"; then :
  3905.   ac_cv_sys_file_offset_bits=no; break
  3906. fi
  3907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3908.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3909. /* end confdefs.h.  */
  3910. #define _FILE_OFFSET_BITS 64
  3911. #include <sys/types.h>
  3912. /* Check that off_t can represent 2**63 - 1 correctly.
  3913.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3914.     since some C++ compilers masquerading as C compilers
  3915.     incorrectly reject 9223372036854775807.  */
  3916. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3917.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3918.                        && LARGE_OFF_T % 2147483647 == 1)
  3919.                       ? 1 : -1];
  3920. int
  3921. main ()
  3922. {

  3923.   ;
  3924.   return 0;
  3925. }
  3926. _ACEOF
  3927. if ac_fn_c_try_compile "$LINENO"; then :
  3928.   ac_cv_sys_file_offset_bits=64; break
  3929. fi
  3930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3931.   ac_cv_sys_file_offset_bits=unknown
  3932.   break
  3933. done
  3934. fi
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  3936. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  3937. case $ac_cv_sys_file_offset_bits in #(
  3938.   no | unknown) ;;
  3939.   *)
  3940. cat >>confdefs.h <<_ACEOF
  3941. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  3942. _ACEOF
  3943. ;;
  3944. esac
  3945. rm -rf conftest*
  3946.   if test $ac_cv_sys_file_offset_bits = unknown; then
  3947.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  3948. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  3949. if test "${ac_cv_sys_large_files+set}" = set; then :
  3950.   $as_echo_n "(cached) " >&6
  3951. else
  3952.   while :; do
  3953.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3954. /* end confdefs.h.  */
  3955. #include <sys/types.h>
  3956. /* Check that off_t can represent 2**63 - 1 correctly.
  3957.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3958.     since some C++ compilers masquerading as C compilers
  3959.     incorrectly reject 9223372036854775807.  */
  3960. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3961.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3962.                        && LARGE_OFF_T % 2147483647 == 1)
  3963.                       ? 1 : -1];
  3964. int
  3965. main ()
  3966. {

  3967.   ;
  3968.   return 0;
  3969. }
  3970. _ACEOF
  3971. if ac_fn_c_try_compile "$LINENO"; then :
  3972.   ac_cv_sys_large_files=no; break
  3973. fi
  3974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3975.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3976. /* end confdefs.h.  */
  3977. #define _LARGE_FILES 1
  3978. #include <sys/types.h>
  3979. /* Check that off_t can represent 2**63 - 1 correctly.
  3980.     We can't simply define LARGE_OFF_T to be 9223372036854775807,
  3981.     since some C++ compilers masquerading as C compilers
  3982.     incorrectly reject 9223372036854775807.  */
  3983. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  3984.   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  3985.                        && LARGE_OFF_T % 2147483647 == 1)
  3986.                       ? 1 : -1];
  3987. int
  3988. main ()
  3989. {

  3990.   ;
  3991.   return 0;
  3992. }
  3993. _ACEOF
  3994. if ac_fn_c_try_compile "$LINENO"; then :
  3995.   ac_cv_sys_large_files=1; break
  3996. fi
  3997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3998.   ac_cv_sys_large_files=unknown
  3999.   break
  4000. done
  4001. fi
  4002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  4003. $as_echo "$ac_cv_sys_large_files" >&6; }
  4004. case $ac_cv_sys_large_files in #(
  4005.   no | unknown) ;;
  4006.   *)
  4007. cat >>confdefs.h <<_ACEOF
  4008. #define _LARGE_FILES $ac_cv_sys_large_files
  4009. _ACEOF
  4010. ;;
  4011. esac
  4012. rm -rf conftest*
  4013.   fi
  4014. fi





  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
  4016. $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
  4017. if test "${am_cv_prog_cc_stdc+set}" = set; then :
  4018.   $as_echo_n "(cached) " >&6
  4019. else
  4020.   am_cv_prog_cc_stdc=no
  4021. ac_save_CC="$CC"
  4022. # Don't try gcc -ansi; that turns off useful extensions and
  4023. # breaks some systems' header files.
  4024. # AIX                        -qlanglvl=ansi
  4025. # Ultrix and OSF/1        -std1
  4026. # HP-UX 10.20 and later        -Ae
  4027. # HP-UX older versions        -Aa -D_HPUX_SOURCE
  4028. # SVR4                        -Xc -D__EXTENSIONS__
  4029. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4030. do
  4031.   CC="$ac_save_CC $ac_arg"
  4032.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4033. /* end confdefs.h.  */
  4034. #include <stdarg.h>
  4035. #include <stdio.h>
  4036. #include <sys/types.h>
  4037. #include <sys/stat.h>
  4038. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
  4039. struct buf { int x; };
  4040. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4041. static char *e (p, i)
  4042.      char **p;
  4043.      int i;
  4044. {
  4045.   return p[i];
  4046. }
  4047. static char *f (char * (*g) (char **, int), char **p, ...)
  4048. {
  4049.   char *s;
  4050.   va_list v;
  4051.   va_start (v,p);
  4052.   s = g (p, va_arg (v,int));
  4053.   va_end (v);
  4054.   return s;
  4055. }
  4056. int test (int i, double x);
  4057. struct s1 {int (*f) (int a);};
  4058. struct s2 {int (*f) (double a);};
  4059. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4060. int argc;
  4061. char **argv;

  4062. int
  4063. main ()
  4064. {

  4065. return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];

  4066.   ;
  4067.   return 0;
  4068. }
  4069. _ACEOF
  4070. if ac_fn_c_try_compile "$LINENO"; then :
  4071.   am_cv_prog_cc_stdc="$ac_arg"; break
  4072. fi
  4073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4074. done
  4075. CC="$ac_save_CC"

  4076. fi

  4077. if test -z "$am_cv_prog_cc_stdc"; then
  4078.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4079. $as_echo "none needed" >&6; }
  4080. else
  4081.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
  4082. $as_echo "$am_cv_prog_cc_stdc" >&6; }
  4083. fi
  4084. case "x$am_cv_prog_cc_stdc" in
  4085.   x|xno) ;;
  4086.   *) CC="$CC $am_cv_prog_cc_stdc" ;;
  4087. esac

  4088. # expand $ac_aux_dir to an absolute path
  4089. am_aux_dir=`cd $ac_aux_dir && pwd`

  4090. if test x"${install_sh}" != xset; then
  4091.   case $am_aux_dir in
  4092.   *\ * | *\        *)
  4093.     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  4094.   *)
  4095.     install_sh="\${SHELL} $am_aux_dir/install-sh"
  4096.   esac
  4097. fi

  4098. # Installed binaries are usually stripped using `strip' when the user
  4099. # run `make install-strip'.  However `strip' might not be the right
  4100. # tool to use in cross-compilation environments, therefore Automake
  4101. # will honor the `STRIP' environment variable to overrule this program.
  4102. if test "$cross_compiling" != no; then
  4103.   if test -n "$ac_tool_prefix"; then
  4104.   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4105. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4107. $as_echo_n "checking for $ac_word... " >&6; }
  4108. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4109.   $as_echo_n "(cached) " >&6
  4110. else
  4111.   if test -n "$STRIP"; then
  4112.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4113. else
  4114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4115. for as_dir in $PATH
  4116. do
  4117.   IFS=$as_save_IFS
  4118.   test -z "$as_dir" && as_dir=.
  4119.     for ac_exec_ext in '' $ac_executable_extensions; do
  4120.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4121.     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4122.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4123.     break 2
  4124.   fi
  4125. done
  4126.   done
  4127. IFS=$as_save_IFS

  4128. fi
  4129. fi
  4130. STRIP=$ac_cv_prog_STRIP
  4131. if test -n "$STRIP"; then
  4132.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4133. $as_echo "$STRIP" >&6; }
  4134. else
  4135.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4136. $as_echo "no" >&6; }
  4137. fi


  4138. fi
  4139. if test -z "$ac_cv_prog_STRIP"; then
  4140.   ac_ct_STRIP=$STRIP
  4141.   # Extract the first word of "strip", so it can be a program name with args.
  4142. set dummy strip; ac_word=$2
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4144. $as_echo_n "checking for $ac_word... " >&6; }
  4145. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  4146.   $as_echo_n "(cached) " >&6
  4147. else
  4148.   if test -n "$ac_ct_STRIP"; then
  4149.   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4150. else
  4151. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4152. for as_dir in $PATH
  4153. do
  4154.   IFS=$as_save_IFS
  4155.   test -z "$as_dir" && as_dir=.
  4156.     for ac_exec_ext in '' $ac_executable_extensions; do
  4157.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4158.     ac_cv_prog_ac_ct_STRIP="strip"
  4159.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4160.     break 2
  4161.   fi
  4162. done
  4163.   done
  4164. IFS=$as_save_IFS

  4165. fi
  4166. fi
  4167. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4168. if test -n "$ac_ct_STRIP"; then
  4169.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4170. $as_echo "$ac_ct_STRIP" >&6; }
  4171. else
  4172.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4173. $as_echo "no" >&6; }
  4174. fi

  4175.   if test "x$ac_ct_STRIP" = x; then
  4176.     STRIP=":"
  4177.   else
  4178.     case $cross_compiling:$ac_tool_warned in
  4179. yes:)
  4180. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4181. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4182. ac_tool_warned=yes ;;
  4183. esac
  4184.     STRIP=$ac_ct_STRIP
  4185.   fi
  4186. else
  4187.   STRIP="$ac_cv_prog_STRIP"
  4188. fi

  4189. fi
  4190. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"


  4191. ac_aux_dir=
  4192. for ac_dir in .. "$srcdir"/..; do
  4193.   for ac_t in install-sh install.sh shtool; do
  4194.     if test -f "$ac_dir/$ac_t"; then
  4195.       ac_aux_dir=$ac_dir
  4196.       ac_install_sh="$ac_aux_dir/$ac_t -c"
  4197.       break 2
  4198.     fi
  4199.   done
  4200. done
  4201. if test -z "$ac_aux_dir"; then
  4202.   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
  4203. fi

  4204. # These three variables are undocumented and unsupported,
  4205. # and are intended to be withdrawn in a future Autoconf release.
  4206. # They can cause serious problems if a builder's source tree is in a directory
  4207. # whose full name contains unusual characters.
  4208. ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
  4209. ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
  4210. ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.



  4211. test "$program_prefix" != NONE &&
  4212.   program_transform_name="s&^&$program_prefix&;$program_transform_name"
  4213. # Use a double $ so make ignores it.
  4214. test "$program_suffix" != NONE &&
  4215.   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  4216. # Double any \ or $.
  4217. # By default was `s,x,x', remove it if useless.
  4218. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  4219. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`


  4220. # Dependency checking.
  4221. rm -rf .tst 2>/dev/null
  4222. mkdir .tst 2>/dev/null
  4223. if test -d .tst; then
  4224.   am__leading_dot=.
  4225. else
  4226.   am__leading_dot=_
  4227. fi
  4228. rmdir .tst 2>/dev/null

  4229. DEPDIR="${am__leading_dot}deps"

  4230. ac_config_commands="$ac_config_commands depdir"


  4231. depcc="$CC"   am_compiler_list=

  4232. am_depcomp=$ac_aux_dir/depcomp
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4234. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4235. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4236.   $as_echo_n "(cached) " >&6
  4237. else
  4238.   if test -f "$am_depcomp"; then
  4239.   # We make a subdir and do the tests there.  Otherwise we can end up
  4240.   # making bogus files that we don't know about and never remove.  For
  4241.   # instance it was reported that on HP-UX the gcc test will end up
  4242.   # making a dummy file named `D' -- because `-MD' means `put the output
  4243.   # in D'.
  4244.   mkdir conftest.dir
  4245.   # Copy depcomp to subdir because otherwise we won't find it if we're
  4246.   # using a relative directory.
  4247.   cp "$am_depcomp" conftest.dir
  4248.   cd conftest.dir
  4249.   # We will build objects and dependencies in a subdirectory because
  4250.   # it helps to detect inapplicable dependency modes.  For instance
  4251.   # both Tru64's cc and ICC support -MD to output dependencies as a
  4252.   # side effect of compilation, but ICC will put the dependencies in
  4253.   # the current directory while Tru64 will put them in the object
  4254.   # directory.
  4255.   mkdir sub

  4256.   am_cv_CC_dependencies_compiler_type=none
  4257.   if test "$am_compiler_list" = ""; then
  4258.      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4259.   fi
  4260.   for depmode in $am_compiler_list; do
  4261.     if test $depmode = none; then break; fi

  4262.     $as_echo "$as_me:$LINENO: trying $depmode" >&5
  4263.     # Setup a source with many dependencies, because some compilers
  4264.     # like to wrap large dependency lists on column 80 (with \), and
  4265.     # we should not choose a depcomp mode which is confused by this.
  4266.     #
  4267.     # We need to recreate these files for each test, as the compiler may
  4268.     # overwrite some of them when testing with obscure command lines.
  4269.     # This happens at least with the AIX C compiler.
  4270.     : > sub/conftest.c
  4271.     for i in 1 2 3 4 5 6; do
  4272.       echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4273.       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4274.       # Solaris 8's {/usr,}/bin/sh.
  4275.       touch sub/conftst$i.h
  4276.     done
  4277.     echo "include sub/conftest.Po" > confmf

  4278.     # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4279.     # mode.  It turns out that the SunPro C++ compiler does not properly
  4280.     # handle `-M -o', and we need to detect this.
  4281.     depcmd="depmode=$depmode \
  4282.        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4283.        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4284.        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
  4285.     echo "| $depcmd" | sed -e 's/  */ /g' >&5
  4286.     if env $depcmd > conftest.err 2>&1 &&
  4287.        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
  4288.        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
  4289.        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
  4290.       # icc doesn't choke on unknown options, it will just issue warnings
  4291.       # or remarks (even with -Werror).  So we grep stderr for any message
  4292.       # that says an option was ignored or not supported.
  4293.       # When given -MP, icc 7.0 and 7.1 complain thusly:
  4294.       #   icc: Command line warning: ignoring option '-M'; no argument required
  4295.       # The diagnosis changed in icc 8.0:
  4296.       #   icc: Command line remark: option '-MP' not supported
  4297.       if (grep 'ignoring option' conftest.err ||
  4298.           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4299.         am_cv_CC_dependencies_compiler_type=$depmode
  4300.         $as_echo "$as_me:$LINENO: success" >&5
  4301.         break
  4302.       fi
  4303.     fi
  4304.     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
  4305.     sed -e 's/^/| /' < conftest.err >&5
  4306.   done

  4307.   cd ..
  4308.   rm -rf conftest.dir
  4309. else
  4310.   am_cv_CC_dependencies_compiler_type=none
  4311. fi

  4312. fi
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4314. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4315. if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
  4316. then as_fn_error "no usable dependency style found" "$LINENO" 5
  4317. else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type

  4318. fi


  4319. # Check for the 'make' the user wants to use.
  4320. for ac_prog in make
  4321. do
  4322.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  4323. set dummy $ac_prog; ac_word=$2
  4324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4325. $as_echo_n "checking for $ac_word... " >&6; }
  4326. if test "${ac_cv_prog_MAKE+set}" = set; then :
  4327.   $as_echo_n "(cached) " >&6
  4328. else
  4329.   if test -n "$MAKE"; then
  4330.   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
  4331. else
  4332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4333. for as_dir in $PATH
  4334. do
  4335.   IFS=$as_save_IFS
  4336.   test -z "$as_dir" && as_dir=.
  4337.     for ac_exec_ext in '' $ac_executable_extensions; do
  4338.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4339.     ac_cv_prog_MAKE="$ac_prog"
  4340.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4341.     break 2
  4342.   fi
  4343. done
  4344.   done
  4345. IFS=$as_save_IFS

  4346. fi
  4347. fi
  4348. MAKE=$ac_cv_prog_MAKE
  4349. if test -n "$MAKE"; then
  4350.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
  4351. $as_echo "$MAKE" >&6; }
  4352. else
  4353.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4354. $as_echo "no" >&6; }
  4355. fi


  4356.   test -n "$MAKE" && break
  4357. done

  4358. MAKE_IS_GNU=
  4359. case "`$MAKE --version 2>&1 | sed 1q`" in
  4360.   *GNU*)
  4361.     MAKE_IS_GNU=yes
  4362.     ;;
  4363. esac
  4364. if test "$MAKE_IS_GNU" = yes; then
  4365.   GMAKE_TRUE=
  4366.   GMAKE_FALSE='#'
  4367. else
  4368.   GMAKE_TRUE='#'
  4369.   GMAKE_FALSE=
  4370. fi

  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4372. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  4373. set x ${MAKE-make}
  4374. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  4375. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  4376.   $as_echo_n "(cached) " >&6
  4377. else
  4378.   cat >conftest.make <<\_ACEOF
  4379. SHELL = /bin/sh
  4380. all:
  4381.         @echo '@@@%%%=$(MAKE)=@@@%%%'
  4382. _ACEOF
  4383. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4384. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  4385.   *@@@%%%=?*=@@@%%%*)
  4386.     eval ac_cv_prog_make_${ac_make}_set=yes;;
  4387.   *)
  4388.     eval ac_cv_prog_make_${ac_make}_set=no;;
  4389. esac
  4390. rm -f conftest.make
  4391. fi
  4392. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  4393.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4394. $as_echo "yes" >&6; }
  4395.   SET_MAKE=
  4396. else
  4397.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4398. $as_echo "no" >&6; }
  4399.   SET_MAKE="MAKE=${MAKE-make}"
  4400. fi


  4401. gnulib_extra_configure_args=
  4402. # If large-file support is disabled, make sure gnulib does the same.
  4403. if test "$enable_largefile" = no; then
  4404. gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
  4405. fi

  4406. # Configure gnulib.  We need to build gnulib under some other
  4407. # directory not "gnulib", to avoid the problem of both GDB and
  4408. # GDBserver wanting to build it in the same directory, when building
  4409. # in the source dir.

  4410.   in_src="gnulib"
  4411.   in_build="build-gnulib"
  4412.   in_extra_args="$gnulib_extra_configure_args"

  4413.   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  4414.   # so they do not pile up.
  4415.   ac_sub_configure_args=
  4416.   ac_prev=
  4417.   eval "set x $ac_configure_args"
  4418.   shift
  4419.   for ac_arg
  4420.   do
  4421.     if test -n "$ac_prev"; then
  4422.       ac_prev=
  4423.       continue
  4424.     fi
  4425.     case $ac_arg in
  4426.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  4427.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  4428.       ac_prev=cache_file ;;
  4429.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  4430.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  4431.     | --c=*)
  4432.       ;;
  4433.     --config-cache | -C)
  4434.       ;;
  4435.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  4436.       ac_prev=srcdir ;;
  4437.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  4438.       ;;
  4439.     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  4440.       ac_prev=prefix ;;
  4441.     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  4442.       ;;
  4443.     --disable-option-checking)
  4444.       ;;
  4445.     *)
  4446.       case $ac_arg in
  4447.       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4448.       esac
  4449.       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  4450.     esac
  4451.   done

  4452.   # Always prepend --prefix to ensure using the same prefix
  4453.   # in subdir configurations.
  4454.   ac_arg="--prefix=$prefix"
  4455.   case $ac_arg in
  4456.   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4457.   esac
  4458.   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  4459.   # Pass --silent
  4460.   if test "$silent" = yes; then
  4461.     ac_sub_configure_args="--silent $ac_sub_configure_args"
  4462.   fi

  4463.   # Always prepend --disable-option-checking to silence warnings, since
  4464.   # different subdirs can have different --enable and --with options.
  4465.   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  4466.   ac_popdir=`pwd`
  4467.   ac_dir=$in_build

  4468.   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  4469.   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  4470.   $as_echo "$ac_msg" >&6
  4471.   as_dir="$ac_dir"; as_fn_mkdir_p

  4472.   case $srcdir in
  4473.   [\\/]* | ?:[\\/]* )
  4474.     ac_srcdir=$srcdir/$in_src ;;
  4475.   *) # Relative name.
  4476.     ac_srcdir=../$srcdir/$in_src ;;
  4477.   esac

  4478.   cd "$ac_dir"

  4479.   ac_sub_configure=$ac_srcdir/configure

  4480.   # Make the cache file name correct relative to the subdirectory.
  4481.   case $cache_file in
  4482.   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  4483.   *) # Relative name.
  4484.     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  4485.   esac

  4486.   if test -n "$in_extra_args"; then
  4487.     # Add the extra args at the end.
  4488.     ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
  4489.   fi

  4490.   { $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
  4491. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  4492.   # The eval makes quoting arguments work.
  4493.   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  4494.        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  4495.     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5

  4496.   cd "$ac_popdir"



  4497. CONFIG_OBS=
  4498. CONFIG_DEPS=
  4499. CONFIG_SRCS=
  4500. ENABLE_CFLAGS=

  4501. CONFIG_ALL=
  4502. CONFIG_CLEAN=
  4503. CONFIG_INSTALL=
  4504. CONFIG_UNINSTALL=

  4505. # If we haven't got the data from the intl directory,
  4506. # assume NLS is disabled.
  4507. USE_NLS=no
  4508. LIBINTL=
  4509. LIBINTL_DEP=
  4510. INCINTL=
  4511. XGETTEXT=
  4512. GMSGFMT=
  4513. POSUB=

  4514. if test -f  ../intl/config.intl; then
  4515. . ../intl/config.intl
  4516. fi
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
  4518. $as_echo_n "checking whether NLS is requested... " >&6; }
  4519. if test x"$USE_NLS" != xyes; then
  4520.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4521. $as_echo "no" >&6; }
  4522. else
  4523.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4524. $as_echo "yes" >&6; }

  4525. $as_echo "#define ENABLE_NLS 1" >>confdefs.h


  4526.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
  4527. $as_echo_n "checking for catalogs to be installed... " >&6; }
  4528.   # Look for .po and .gmo files in the source directory.
  4529.   CATALOGS=
  4530.   XLINGUAS=
  4531.   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
  4532.     # If there aren't any .gmo files the shell will give us the
  4533.     # literal string "../path/to/srcdir/po/*.gmo" which has to be
  4534.     # weeded out.
  4535.     case "$cat" in *\**)
  4536.       continue;;
  4537.     esac
  4538.     # The quadruple backslash is collapsed to a double backslash
  4539.     # by the backticks, then collapsed again by the double quotes,
  4540.     # leaving us with one backslash in the sed expression (right
  4541.     # before the dot that mustn't act as a wildcard).
  4542.     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
  4543.     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
  4544.     # The user is allowed to set LINGUAS to a list of languages to
  4545.     # install catalogs for.  If it's empty that means "all of them."
  4546.     if test "x$LINGUAS" = x; then
  4547.       CATALOGS="$CATALOGS $cat"
  4548.       XLINGUAS="$XLINGUAS $lang"
  4549.     else
  4550.       case "$LINGUAS" in *$lang*)
  4551.         CATALOGS="$CATALOGS $cat"
  4552.         XLINGUAS="$XLINGUAS $lang"
  4553.         ;;
  4554.       esac
  4555.     fi
  4556.   done
  4557.   LINGUAS="$XLINGUAS"
  4558.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
  4559. $as_echo "$LINGUAS" >&6; }


  4560.     DATADIRNAME=share

  4561.   INSTOBJEXT=.mo

  4562.   GENCAT=gencat

  4563.   CATOBJEXT=.gmo

  4564. fi

  4565. localedir='${datadir}/locale'


  4566. if test x"$USE_NLS" = xyes; then
  4567.    CONFIG_ALL="$CONFIG_ALL all-po"
  4568.    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
  4569.    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
  4570.    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
  4571. fi

  4572. GNULIB=build-gnulib/import

  4573. # For Makefile dependencies.
  4574. GNULIB_STDINT_H=
  4575. if test x"$STDINT_H" != x; then
  4576.   GNULIB_STDINT_H=$GNULIB/$STDINT_H
  4577. fi


  4578. PACKAGE=gdb

  4579. cat >>confdefs.h <<_ACEOF
  4580. #define PACKAGE "$PACKAGE"
  4581. _ACEOF



  4582. # We never need to detect it in this sub-configure.
  4583. # But preserve it for config.status --recheck.



  4584. MAKEINFO_EXTRA_FLAGS=""
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
  4586. $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
  4587. if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
  4588.   $as_echo_n "(cached) " >&6
  4589. else
  4590.   echo '@clicksequence{a @click{} b}' >conftest.texinfo
  4591.   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
  4592.     gdb_cv_have_makeinfo_click=yes
  4593.   else
  4594.     gdb_cv_have_makeinfo_click=no
  4595.   fi
  4596. fi
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
  4598. $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
  4599. if test x"$gdb_cv_have_makeinfo_click" = xyes; then
  4600.   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
  4601. fi




  4602. # Check whether --with-separate-debug-dir was given.
  4603. if test "${with_separate_debug_dir+set}" = set; then :
  4604.   withval=$with_separate_debug_dir;
  4605.     DEBUGDIR=$withval
  4606. else
  4607.   DEBUGDIR=${libdir}/debug
  4608. fi


  4609.   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  4610.   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4611.   ac_define_dir=`eval echo $DEBUGDIR`
  4612.   ac_define_dir=`eval echo $ac_define_dir`

  4613. cat >>confdefs.h <<_ACEOF
  4614. #define DEBUGDIR "$ac_define_dir"
  4615. _ACEOF




  4616.   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  4617.      if test "x$prefix" = xNONE; then
  4618.              test_prefix=/usr/local
  4619.      else
  4620.         test_prefix=$prefix
  4621.      fi
  4622.   else
  4623.      test_prefix=$exec_prefix
  4624.   fi
  4625.   value=0
  4626.   case ${ac_define_dir} in
  4627.      "${test_prefix}"|"${test_prefix}/"*|\
  4628.         '${exec_prefix}'|'${exec_prefix}/'*)
  4629.      value=1
  4630.      ;;
  4631.   esac

  4632. cat >>confdefs.h <<_ACEOF
  4633. #define DEBUGDIR_RELOCATABLE $value
  4634. _ACEOF




  4635. # We can't pass paths as command line arguments.
  4636. # Mingw32 tries to be clever and will convert the paths for us.
  4637. # For example -DBINDIR="/usr/local/bin" passed on the command line may get
  4638. # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
  4639. # This breaks GDB's relocatable path conversions since paths passed in
  4640. # config.h would not get so translated, the path prefixes no longer match.

  4641.   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  4642.   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4643.   ac_define_dir=`eval echo $bindir`
  4644.   ac_define_dir=`eval echo $ac_define_dir`

  4645. cat >>confdefs.h <<_ACEOF
  4646. #define BINDIR "$ac_define_dir"
  4647. _ACEOF



  4648. # GDB's datadir relocation



  4649. # Check whether --with-gdb-datadir was given.
  4650. if test "${with_gdb_datadir+set}" = set; then :
  4651.   withval=$with_gdb_datadir;
  4652.     GDB_DATADIR=$withval
  4653. else
  4654.   GDB_DATADIR=${datadir}/gdb
  4655. fi


  4656.   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  4657.   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4658.   ac_define_dir=`eval echo $GDB_DATADIR`
  4659.   ac_define_dir=`eval echo $ac_define_dir`

  4660. cat >>confdefs.h <<_ACEOF
  4661. #define GDB_DATADIR "$ac_define_dir"
  4662. _ACEOF




  4663.   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  4664.      if test "x$prefix" = xNONE; then
  4665.              test_prefix=/usr/local
  4666.      else
  4667.         test_prefix=$prefix
  4668.      fi
  4669.   else
  4670.      test_prefix=$exec_prefix
  4671.   fi
  4672.   value=0
  4673.   case ${ac_define_dir} in
  4674.      "${test_prefix}"|"${test_prefix}/"*|\
  4675.         '${exec_prefix}'|'${exec_prefix}/'*)
  4676.      value=1
  4677.      ;;
  4678.   esac

  4679. cat >>confdefs.h <<_ACEOF
  4680. #define GDB_DATADIR_RELOCATABLE $value
  4681. _ACEOF





  4682. # Check whether --with-relocated-sources was given.
  4683. if test "${with_relocated_sources+set}" = set; then :
  4684.   withval=$with_relocated_sources; reloc_srcdir="${withval}"

  4685.   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  4686.   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4687.   ac_define_dir=`eval echo $reloc_srcdir`
  4688.   ac_define_dir=`eval echo $ac_define_dir`

  4689. cat >>confdefs.h <<_ACEOF
  4690. #define RELOC_SRCDIR "$ac_define_dir"
  4691. _ACEOF



  4692. fi


  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
  4694. $as_echo_n "checking for default auto-load directory... " >&6; }

  4695. # Check whether --with-auto-load-dir was given.
  4696. if test "${with_auto_load_dir+set}" = set; then :
  4697.   withval=$with_auto_load_dir;
  4698. else
  4699.   with_auto_load_dir='$debugdir:$datadir/auto-load'
  4700. fi

  4701. escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`

  4702.   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  4703.   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4704.   ac_define_dir=`eval echo $escape_dir`
  4705.   ac_define_dir=`eval echo $ac_define_dir`

  4706. cat >>confdefs.h <<_ACEOF
  4707. #define AUTO_LOAD_DIR "$ac_define_dir"
  4708. _ACEOF


  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
  4710. $as_echo "$with_auto_load_dir" >&6; }

  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
  4712. $as_echo_n "checking for default auto-load safe-path... " >&6; }

  4713. # Check whether --with-auto-load-safe-path was given.
  4714. if test "${with_auto_load_safe_path+set}" = set; then :
  4715.   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
  4716.      with_auto_load_safe_path="/"
  4717.      fi
  4718. else
  4719.   with_auto_load_safe_path="$with_auto_load_dir"
  4720. fi

  4721. escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`

  4722.   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  4723.   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  4724.   ac_define_dir=`eval echo $escape_dir`
  4725.   ac_define_dir=`eval echo $ac_define_dir`

  4726. cat >>confdefs.h <<_ACEOF
  4727. #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
  4728. _ACEOF


  4729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
  4730. $as_echo "$with_auto_load_safe_path" >&6; }



  4731. subdirs="$subdirs testsuite"


  4732. # Check whether to support alternative target configurations
  4733. # Check whether --enable-targets was given.
  4734. if test "${enable_targets+set}" = set; then :
  4735.   enableval=$enable_targets; case "${enableval}" in
  4736.   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
  4737.             ;;
  4738.   no)       enable_targets= ;;
  4739.   *)        enable_targets=$enableval ;;
  4740. esac
  4741. fi


  4742. # Check whether to enable 64-bit support on 32-bit hosts
  4743. # Check whether --enable-64-bit-bfd was given.
  4744. if test "${enable_64_bit_bfd+set}" = set; then :
  4745.   enableval=$enable_64_bit_bfd; case "${enableval}" in
  4746.   yes)  want64=true  ;;
  4747.   no)   want64=false ;;
  4748.   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
  4749. esac
  4750. else
  4751.   want64=false
  4752. fi

  4753. # Provide defaults for some variables set by the per-host and per-target
  4754. # configuration.
  4755. gdb_host_obs=posix-hdep.o

  4756. if test "${target}" = "${host}"; then
  4757.   gdb_native=yes
  4758. else
  4759.   gdb_native=no
  4760. fi

  4761. . $srcdir/configure.host

  4762. # Accumulate some settings from configure.tgt over all enabled targets

  4763. TARGET_OBS=
  4764. all_targets=
  4765. HAVE_NATIVE_GCORE_TARGET=

  4766. for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
  4767. do
  4768.   if test "$targ_alias" = "all"; then
  4769.     all_targets=true
  4770.   else
  4771.     # Canonicalize the secondary target names.
  4772.     result=`$ac_config_sub $targ_alias 2>/dev/null`
  4773.     if test -n "$result"; then
  4774.         targ=$result
  4775.     else
  4776.         targ=$targ_alias
  4777.     fi

  4778.    . ${srcdir}/configure.tgt

  4779.     if test -z "${gdb_target_obs}"; then :
  4780.   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
  4781. fi

  4782.     # Target-specific object files
  4783.     for i in ${gdb_target_obs}; do
  4784.         case " $TARGET_OBS " in
  4785.         *" ${i} "*) ;;
  4786.         *)
  4787.           TARGET_OBS="$TARGET_OBS ${i}"
  4788.           ;;
  4789.         esac
  4790.     done

  4791.     # Check whether this target needs 64-bit CORE_ADDR
  4792.     if test x${want64} = xfalse; then
  4793.      . ${srcdir}/../bfd/config.bfd
  4794.     fi

  4795.     # Check whether this target is native and supports gcore.
  4796.     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
  4797.        && $gdb_have_gcore; then
  4798.       HAVE_NATIVE_GCORE_TARGET=1
  4799.     fi
  4800.   fi
  4801. done

  4802. if test x${all_targets} = xtrue; then

  4803.   # We want all 64-bit targets if we either:
  4804.   #  - run on a 64-bit host  or
  4805.   #  - already require 64-bit support for some other target  or
  4806.   #  - the --enable-64-bit-bfd option was supplied
  4807.   # Otherwise we only support all 32-bit targets.
  4808.   #
  4809.   # NOTE: This test must be in sync with the corresponding
  4810.   #       tests in BFD!

  4811.   if test x${want64} = xfalse; then
  4812.     # The cast to long int works around a bug in the HP C Compiler
  4813. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  4814. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  4815. # This bug is HP SR number 8606223364.
  4816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  4817. $as_echo_n "checking size of long... " >&6; }
  4818. if test "${ac_cv_sizeof_long+set}" = set; then :
  4819.   $as_echo_n "(cached) " >&6
  4820. else
  4821.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :

  4822. else
  4823.   if test "$ac_cv_type_long" = yes; then
  4824.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4825. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4826. { as_fn_set_status 77
  4827. as_fn_error "cannot compute sizeof (long)
  4828. See \`config.log' for more details." "$LINENO" 5; }; }
  4829.    else
  4830.      ac_cv_sizeof_long=0
  4831.    fi
  4832. fi

  4833. fi
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  4835. $as_echo "$ac_cv_sizeof_long" >&6; }



  4836. cat >>confdefs.h <<_ACEOF
  4837. #define SIZEOF_LONG $ac_cv_sizeof_long
  4838. _ACEOF


  4839.     if test "x${ac_cv_sizeof_long}" = "x8"; then
  4840.       want64=true
  4841.     fi
  4842.   fi
  4843.   if test x${want64} = xtrue; then
  4844.     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
  4845.   else
  4846.     TARGET_OBS='$(ALL_TARGET_OBS)'
  4847.   fi
  4848. fi




  4849. # For other settings, only the main target counts.
  4850. gdb_sim=
  4851. gdb_osabi=
  4852. build_gdbserver=
  4853. targ=$target; . ${srcdir}/configure.tgt

  4854. # Fetch the default architecture and default target vector from BFD.
  4855. targ=$target; . $srcdir/../bfd/config.bfd

  4856. # We only want the first architecture, so strip off the others if
  4857. # there is more than one.
  4858. targ_archs=`echo $targ_archs | sed 's/ .*//'`

  4859. if test "x$targ_archs" != x; then

  4860. cat >>confdefs.h <<_ACEOF
  4861. #define DEFAULT_BFD_ARCH $targ_archs
  4862. _ACEOF

  4863. fi
  4864. if test "x$targ_defvec" != x; then

  4865. cat >>confdefs.h <<_ACEOF
  4866. #define DEFAULT_BFD_VEC $targ_defvec
  4867. _ACEOF

  4868. fi

  4869. # The CLI cannot be disabled yet, but may be in the future.

  4870. # Enable CLI.
  4871. # Check whether --enable-gdbcli was given.
  4872. if test "${enable_gdbcli+set}" = set; then :
  4873.   enableval=$enable_gdbcli; case $enableval in
  4874.     yes)
  4875.       ;;
  4876.     no)
  4877.       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
  4878.     *)
  4879.       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
  4880.   esac
  4881. else
  4882.   enable_gdbcli=yes
  4883. fi

  4884. if test x"$enable_gdbcli" = xyes; then
  4885.   if test -d $srcdir/cli; then
  4886.     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
  4887.     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
  4888.     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
  4889.     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
  4890.   fi
  4891. fi

  4892. # Enable MI.
  4893. # Check whether --enable-gdbmi was given.
  4894. if test "${enable_gdbmi+set}" = set; then :
  4895.   enableval=$enable_gdbmi; case $enableval in
  4896.     yes | no)
  4897.       ;;
  4898.     *)
  4899.       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
  4900.   esac
  4901. else
  4902.   enable_gdbmi=yes
  4903. fi

  4904. if test x"$enable_gdbmi" = xyes; then
  4905.   if test -d $srcdir/mi; then
  4906.     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
  4907.     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
  4908.     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
  4909.     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
  4910.   fi
  4911. fi

  4912. # Enable TUI.
  4913. # Check whether --enable-tui was given.
  4914. if test "${enable_tui+set}" = set; then :
  4915.   enableval=$enable_tui; case $enableval in
  4916.     yes | no | auto)
  4917.       ;;
  4918.     *)
  4919.       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
  4920.   esac
  4921. else
  4922.   enable_tui=auto
  4923. fi


  4924. # Enable gdbtk.
  4925. # Check whether --enable-gdbtk was given.
  4926. if test "${enable_gdbtk+set}" = set; then :
  4927.   enableval=$enable_gdbtk; case $enableval in
  4928.     yes | no)
  4929.       ;;
  4930.     *)
  4931.       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
  4932.   esac
  4933. else
  4934.   if test -d $srcdir/gdbtk; then
  4935.     enable_gdbtk=yes
  4936.   else
  4937.     enable_gdbtk=no
  4938.   fi
  4939. fi

  4940. # We unconditionally disable gdbtk tests on selected platforms.
  4941. case $host_os in
  4942.   go32* | windows*)
  4943.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
  4944. $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
  4945.     enable_gdbtk=no ;;
  4946. esac

  4947. # Libunwind support for ia64.


  4948. # Check whether --with-libunwind-ia64 was given.
  4949. if test "${with_libunwind_ia64+set}" = set; then :
  4950.   withval=$with_libunwind_ia64;
  4951. else
  4952.   with_libunwind_ia64=auto
  4953. fi


  4954. # Backward compatibility option.
  4955. if test "${with_libunwind+set}" = set; then
  4956.   if test x"$with_libunwind_ia64" != xauto; then
  4957.     as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
  4958.   fi
  4959.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
  4960. $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
  4961.   with_libunwind_ia64="$with_libunwind"
  4962. fi

  4963. case "$with_libunwind_ia64" in
  4964.   yes | no)
  4965.     ;;
  4966.   auto)
  4967.     for ac_header in libunwind-ia64.h
  4968. do :
  4969.   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
  4970. if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
  4971.   cat >>confdefs.h <<_ACEOF
  4972. #define HAVE_LIBUNWIND_IA64_H 1
  4973. _ACEOF

  4974. fi

  4975. done

  4976.     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
  4977.     ;;
  4978.   *)
  4979.     as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
  4980.     ;;
  4981. esac

  4982. if test x"$with_libunwind_ia64" = xyes; then
  4983.   for ac_header in libunwind-ia64.h
  4984. do :
  4985.   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
  4986. if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
  4987.   cat >>confdefs.h <<_ACEOF
  4988. #define HAVE_LIBUNWIND_IA64_H 1
  4989. _ACEOF

  4990. fi

  4991. done

  4992.   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
  4993.     as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
  4994.   fi
  4995.   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
  4996.   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
  4997.   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
  4998. fi

  4999. opt_curses=no

  5000. # Check whether --with-curses was given.
  5001. if test "${with_curses+set}" = set; then :
  5002.   withval=$with_curses; opt_curses=$withval
  5003. fi


  5004. prefer_curses=no
  5005. if test "$opt_curses" = "yes"; then
  5006.   prefer_curses=yes
  5007. fi

  5008. # Profiling support.
  5009. # Check whether --enable-profiling was given.
  5010. if test "${enable_profiling+set}" = set; then :
  5011.   enableval=$enable_profiling; case $enableval in
  5012.     yes | no)
  5013.       ;;
  5014.     *)
  5015.       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
  5016.   esac
  5017. else
  5018.   enable_profiling=no
  5019. fi


  5020. for ac_func in monstartup _mcleanup
  5021. do :
  5022.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5023. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  5024. eval as_val=\$$as_ac_var
  5025.    if test "x$as_val" = x""yes; then :
  5026.   cat >>confdefs.h <<_ACEOF
  5027. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5028. _ACEOF

  5029. fi
  5030. done

  5031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
  5032. $as_echo_n "checking for _etext... " >&6; }
  5033. if test "${ac_cv_var__etext+set}" = set; then :
  5034.   $as_echo_n "(cached) " >&6
  5035. else
  5036.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5037. /* end confdefs.h.  */
  5038. #include <stdlib.h>
  5039. extern char _etext;

  5040. int
  5041. main ()
  5042. {
  5043. free (&_etext);
  5044.   ;
  5045.   return 0;
  5046. }
  5047. _ACEOF
  5048. if ac_fn_c_try_link "$LINENO"; then :
  5049.   ac_cv_var__etext=yes
  5050. else
  5051.   ac_cv_var__etext=no
  5052. fi
  5053. rm -f core conftest.err conftest.$ac_objext \
  5054.     conftest$ac_exeext conftest.$ac_ext
  5055. fi
  5056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
  5057. $as_echo "$ac_cv_var__etext" >&6; }
  5058. if test $ac_cv_var__etext = yes; then

  5059. $as_echo "#define HAVE__ETEXT 1" >>confdefs.h

  5060. fi
  5061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
  5062. $as_echo_n "checking for etext... " >&6; }
  5063. if test "${ac_cv_var_etext+set}" = set; then :
  5064.   $as_echo_n "(cached) " >&6
  5065. else
  5066.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5067. /* end confdefs.h.  */
  5068. #include <stdlib.h>
  5069. extern char etext;

  5070. int
  5071. main ()
  5072. {
  5073. free (&etext);
  5074.   ;
  5075.   return 0;
  5076. }
  5077. _ACEOF
  5078. if ac_fn_c_try_link "$LINENO"; then :
  5079.   ac_cv_var_etext=yes
  5080. else
  5081.   ac_cv_var_etext=no
  5082. fi
  5083. rm -f core conftest.err conftest.$ac_objext \
  5084.     conftest$ac_exeext conftest.$ac_ext
  5085. fi
  5086. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
  5087. $as_echo "$ac_cv_var_etext" >&6; }
  5088. if test $ac_cv_var_etext = yes; then

  5089. $as_echo "#define HAVE_ETEXT 1" >>confdefs.h

  5090. fi
  5091. if test "$enable_profiling" = yes ; then
  5092.   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
  5093.     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
  5094.   fi
  5095.   PROFILE_CFLAGS=-pg
  5096.   OLD_CFLAGS="$CFLAGS"
  5097.   CFLAGS="$CFLAGS $PROFILE_CFLAGS"

  5098.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
  5099. $as_echo_n "checking whether $CC supports -pg... " >&6; }
  5100. if test "${ac_cv_cc_supports_pg+set}" = set; then :
  5101.   $as_echo_n "(cached) " >&6
  5102. else
  5103.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5104. /* end confdefs.h.  */

  5105. int
  5106. main ()
  5107. {
  5108. int x;
  5109.   ;
  5110.   return 0;
  5111. }
  5112. _ACEOF
  5113. if ac_fn_c_try_compile "$LINENO"; then :
  5114.   ac_cv_cc_supports_pg=yes
  5115. else
  5116.   ac_cv_cc_supports_pg=no
  5117. fi
  5118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5119. fi
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
  5121. $as_echo "$ac_cv_cc_supports_pg" >&6; }

  5122.   if test $ac_cv_cc_supports_pg = no; then
  5123.     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
  5124.   fi

  5125.   CFLAGS="$OLD_CFLAGS"
  5126. fi



  5127. # Check whether --with-pkgversion was given.
  5128. if test "${with_pkgversion+set}" = set; then :
  5129.   withval=$with_pkgversion; case "$withval" in
  5130.       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
  5131.       no)  PKGVERSION= ;;
  5132.       *)   PKGVERSION="($withval) " ;;
  5133.      esac
  5134. else
  5135.   PKGVERSION="(GDB) "

  5136. fi





  5137. # Check whether --with-bugurl was given.
  5138. if test "${with_bugurl+set}" = set; then :
  5139.   withval=$with_bugurl; case "$withval" in
  5140.       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
  5141.       no)  BUGURL=
  5142.            ;;
  5143.       *)   BUGURL="$withval"
  5144.            ;;
  5145.      esac
  5146. else
  5147.   BUGURL="http://www.gnu.org/software/gdb/bugs/"

  5148. fi

  5149.   case ${BUGURL} in
  5150.   "")
  5151.     REPORT_BUGS_TO=
  5152.     REPORT_BUGS_TEXI=
  5153.     ;;
  5154.   *)
  5155.     REPORT_BUGS_TO="<$BUGURL>"
  5156.     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
  5157.     ;;
  5158.   esac;




  5159. cat >>confdefs.h <<_ACEOF
  5160. #define PKGVERSION "$PKGVERSION"
  5161. _ACEOF


  5162. cat >>confdefs.h <<_ACEOF
  5163. #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
  5164. _ACEOF


  5165. # --------------------- #
  5166. # Checks for programs.  #
  5167. # --------------------- #

  5168. for ac_prog in gawk mawk nawk awk
  5169. do
  5170.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5171. set dummy $ac_prog; ac_word=$2
  5172. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5173. $as_echo_n "checking for $ac_word... " >&6; }
  5174. if test "${ac_cv_prog_AWK+set}" = set; then :
  5175.   $as_echo_n "(cached) " >&6
  5176. else
  5177.   if test -n "$AWK"; then
  5178.   ac_cv_prog_AWK="$AWK" # Let the user override the test.
  5179. else
  5180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5181. for as_dir in $PATH
  5182. do
  5183.   IFS=$as_save_IFS
  5184.   test -z "$as_dir" && as_dir=.
  5185.     for ac_exec_ext in '' $ac_executable_extensions; do
  5186.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5187.     ac_cv_prog_AWK="$ac_prog"
  5188.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5189.     break 2
  5190.   fi
  5191. done
  5192.   done
  5193. IFS=$as_save_IFS

  5194. fi
  5195. fi
  5196. AWK=$ac_cv_prog_AWK
  5197. if test -n "$AWK"; then
  5198.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  5199. $as_echo "$AWK" >&6; }
  5200. else
  5201.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5202. $as_echo "no" >&6; }
  5203. fi


  5204.   test -n "$AWK" && break
  5205. done

  5206. # Find a good install program.  We prefer a C program (faster),
  5207. # so one script is as good as another.  But avoid the broken or
  5208. # incompatible versions:
  5209. # SysV /etc/install, /usr/sbin/install
  5210. # SunOS /usr/etc/install
  5211. # IRIX /sbin/install
  5212. # AIX /bin/install
  5213. # AmigaOS /C/install, which installs bootblocks on floppy discs
  5214. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  5215. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  5216. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  5217. # OS/2's system install, which has a completely different semantic
  5218. # ./install, which can be erroneously created by make from ./install.sh.
  5219. # Reject install programs that cannot install multiple files.
  5220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  5221. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  5222. if test -z "$INSTALL"; then
  5223. if test "${ac_cv_path_install+set}" = set; then :
  5224.   $as_echo_n "(cached) " >&6
  5225. else
  5226.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5227. for as_dir in $PATH
  5228. do
  5229.   IFS=$as_save_IFS
  5230.   test -z "$as_dir" && as_dir=.
  5231.     # Account for people who put trailing slashes in PATH elements.
  5232. case $as_dir/ in #((
  5233.   ./ | .// | /[cC]/* | \
  5234.   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  5235.   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  5236.   /usr/ucb/* ) ;;
  5237.   *)
  5238.     # OSF1 and SCO ODT 3.0 have their own names for install.
  5239.     # Don't use installbsd from OSF since it installs stuff as root
  5240.     # by default.
  5241.     for ac_prog in ginstall scoinst install; do
  5242.       for ac_exec_ext in '' $ac_executable_extensions; do
  5243.         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  5244.           if test $ac_prog = install &&
  5245.             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5246.             # AIX install.  It has an incompatible calling convention.
  5247.             :
  5248.           elif test $ac_prog = install &&
  5249.             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  5250.             # program-specific install script used by HP pwplus--don't use.
  5251.             :
  5252.           else
  5253.             rm -rf conftest.one conftest.two conftest.dir
  5254.             echo one > conftest.one
  5255.             echo two > conftest.two
  5256.             mkdir conftest.dir
  5257.             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  5258.               test -s conftest.one && test -s conftest.two &&
  5259.               test -s conftest.dir/conftest.one &&
  5260.               test -s conftest.dir/conftest.two
  5261.             then
  5262.               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  5263.               break 3
  5264.             fi
  5265.           fi
  5266.         fi
  5267.       done
  5268.     done
  5269.     ;;
  5270. esac

  5271.   done
  5272. IFS=$as_save_IFS

  5273. rm -rf conftest.one conftest.two conftest.dir

  5274. fi
  5275.   if test "${ac_cv_path_install+set}" = set; then
  5276.     INSTALL=$ac_cv_path_install
  5277.   else
  5278.     # As a last resort, use the slow shell script.  Don't cache a
  5279.     # value for INSTALL within a source directory, because that will
  5280.     # break other packages using the cache if that directory is
  5281.     # removed, or if the value is a relative name.
  5282.     INSTALL=$ac_install_sh
  5283.   fi
  5284. fi
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  5286. $as_echo "$INSTALL" >&6; }

  5287. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  5288. # It thinks the first close brace ends the variable substitution.
  5289. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

  5290. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

  5291. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

  5292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5293. $as_echo_n "checking whether ln -s works... " >&6; }
  5294. LN_S=$as_ln_s
  5295. if test "$LN_S" = "ln -s"; then
  5296.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5297. $as_echo "yes" >&6; }
  5298. else
  5299.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5300. $as_echo "no, using $LN_S" >&6; }
  5301. fi

  5302. if test -n "$ac_tool_prefix"; then
  5303.   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5304. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5306. $as_echo_n "checking for $ac_word... " >&6; }
  5307. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5308.   $as_echo_n "(cached) " >&6
  5309. else
  5310.   if test -n "$RANLIB"; then
  5311.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5312. else
  5313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5314. for as_dir in $PATH
  5315. do
  5316.   IFS=$as_save_IFS
  5317.   test -z "$as_dir" && as_dir=.
  5318.     for ac_exec_ext in '' $ac_executable_extensions; do
  5319.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5320.     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5321.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5322.     break 2
  5323.   fi
  5324. done
  5325.   done
  5326. IFS=$as_save_IFS

  5327. fi
  5328. fi
  5329. RANLIB=$ac_cv_prog_RANLIB
  5330. if test -n "$RANLIB"; then
  5331.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5332. $as_echo "$RANLIB" >&6; }
  5333. else
  5334.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5335. $as_echo "no" >&6; }
  5336. fi


  5337. fi
  5338. if test -z "$ac_cv_prog_RANLIB"; then
  5339.   ac_ct_RANLIB=$RANLIB
  5340.   # Extract the first word of "ranlib", so it can be a program name with args.
  5341. set dummy ranlib; ac_word=$2
  5342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5343. $as_echo_n "checking for $ac_word... " >&6; }
  5344. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5345.   $as_echo_n "(cached) " >&6
  5346. else
  5347.   if test -n "$ac_ct_RANLIB"; then
  5348.   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5349. else
  5350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5351. for as_dir in $PATH
  5352. do
  5353.   IFS=$as_save_IFS
  5354.   test -z "$as_dir" && as_dir=.
  5355.     for ac_exec_ext in '' $ac_executable_extensions; do
  5356.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5357.     ac_cv_prog_ac_ct_RANLIB="ranlib"
  5358.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5359.     break 2
  5360.   fi
  5361. done
  5362.   done
  5363. IFS=$as_save_IFS

  5364. fi
  5365. fi
  5366. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5367. if test -n "$ac_ct_RANLIB"; then
  5368.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5369. $as_echo "$ac_ct_RANLIB" >&6; }
  5370. else
  5371.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5372. $as_echo "no" >&6; }
  5373. fi

  5374.   if test "x$ac_ct_RANLIB" = x; then
  5375.     RANLIB=":"
  5376.   else
  5377.     case $cross_compiling:$ac_tool_warned in
  5378. yes:)
  5379. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5380. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5381. ac_tool_warned=yes ;;
  5382. esac
  5383.     RANLIB=$ac_ct_RANLIB
  5384.   fi
  5385. else
  5386.   RANLIB="$ac_cv_prog_RANLIB"
  5387. fi

  5388. for ac_prog in 'bison -y' byacc
  5389. do
  5390.   # Extract the first word of "$ac_prog", so it can be a program name with args.
  5391. set dummy $ac_prog; ac_word=$2
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5393. $as_echo_n "checking for $ac_word... " >&6; }
  5394. if test "${ac_cv_prog_YACC+set}" = set; then :
  5395.   $as_echo_n "(cached) " >&6
  5396. else
  5397.   if test -n "$YACC"; then
  5398.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  5399. else
  5400. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5401. for as_dir in $PATH
  5402. do
  5403.   IFS=$as_save_IFS
  5404.   test -z "$as_dir" && as_dir=.
  5405.     for ac_exec_ext in '' $ac_executable_extensions; do
  5406.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5407.     ac_cv_prog_YACC="$ac_prog"
  5408.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5409.     break 2
  5410.   fi
  5411. done
  5412.   done
  5413. IFS=$as_save_IFS

  5414. fi
  5415. fi
  5416. YACC=$ac_cv_prog_YACC
  5417. if test -n "$YACC"; then
  5418.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  5419. $as_echo "$YACC" >&6; }
  5420. else
  5421.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5422. $as_echo "no" >&6; }
  5423. fi


  5424.   test -n "$YACC" && break
  5425. done
  5426. test -n "$YACC" || YACC="yacc"


  5427. if test -n "$ac_tool_prefix"; then
  5428.   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5429. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5431. $as_echo_n "checking for $ac_word... " >&6; }
  5432. if test "${ac_cv_prog_AR+set}" = set; then :
  5433.   $as_echo_n "(cached) " >&6
  5434. else
  5435.   if test -n "$AR"; then
  5436.   ac_cv_prog_AR="$AR" # Let the user override the test.
  5437. else
  5438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5439. for as_dir in $PATH
  5440. do
  5441.   IFS=$as_save_IFS
  5442.   test -z "$as_dir" && as_dir=.
  5443.     for ac_exec_ext in '' $ac_executable_extensions; do
  5444.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5445.     ac_cv_prog_AR="${ac_tool_prefix}ar"
  5446.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5447.     break 2
  5448.   fi
  5449. done
  5450.   done
  5451. IFS=$as_save_IFS

  5452. fi
  5453. fi
  5454. AR=$ac_cv_prog_AR
  5455. if test -n "$AR"; then
  5456.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5457. $as_echo "$AR" >&6; }
  5458. else
  5459.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5460. $as_echo "no" >&6; }
  5461. fi


  5462. fi
  5463. if test -z "$ac_cv_prog_AR"; then
  5464.   ac_ct_AR=$AR
  5465.   # Extract the first word of "ar", so it can be a program name with args.
  5466. set dummy ar; ac_word=$2
  5467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5468. $as_echo_n "checking for $ac_word... " >&6; }
  5469. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5470.   $as_echo_n "(cached) " >&6
  5471. else
  5472.   if test -n "$ac_ct_AR"; then
  5473.   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5474. else
  5475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5476. for as_dir in $PATH
  5477. do
  5478.   IFS=$as_save_IFS
  5479.   test -z "$as_dir" && as_dir=.
  5480.     for ac_exec_ext in '' $ac_executable_extensions; do
  5481.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5482.     ac_cv_prog_ac_ct_AR="ar"
  5483.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5484.     break 2
  5485.   fi
  5486. done
  5487.   done
  5488. IFS=$as_save_IFS

  5489. fi
  5490. fi
  5491. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5492. if test -n "$ac_ct_AR"; then
  5493.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5494. $as_echo "$ac_ct_AR" >&6; }
  5495. else
  5496.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5497. $as_echo "no" >&6; }
  5498. fi

  5499.   if test "x$ac_ct_AR" = x; then
  5500.     AR=""
  5501.   else
  5502.     case $cross_compiling:$ac_tool_warned in
  5503. yes:)
  5504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5505. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5506. ac_tool_warned=yes ;;
  5507. esac
  5508.     AR=$ac_ct_AR
  5509.   fi
  5510. else
  5511.   AR="$ac_cv_prog_AR"
  5512. fi

  5513. if test -n "$ac_tool_prefix"; then
  5514.   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5515. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5517. $as_echo_n "checking for $ac_word... " >&6; }
  5518. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  5519.   $as_echo_n "(cached) " >&6
  5520. else
  5521.   if test -n "$DLLTOOL"; then
  5522.   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5523. else
  5524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5525. for as_dir in $PATH
  5526. do
  5527.   IFS=$as_save_IFS
  5528.   test -z "$as_dir" && as_dir=.
  5529.     for ac_exec_ext in '' $ac_executable_extensions; do
  5530.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5531.     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5532.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5533.     break 2
  5534.   fi
  5535. done
  5536.   done
  5537. IFS=$as_save_IFS

  5538. fi
  5539. fi
  5540. DLLTOOL=$ac_cv_prog_DLLTOOL
  5541. if test -n "$DLLTOOL"; then
  5542.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5543. $as_echo "$DLLTOOL" >&6; }
  5544. else
  5545.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5546. $as_echo "no" >&6; }
  5547. fi


  5548. fi
  5549. if test -z "$ac_cv_prog_DLLTOOL"; then
  5550.   ac_ct_DLLTOOL=$DLLTOOL
  5551.   # Extract the first word of "dlltool", so it can be a program name with args.
  5552. set dummy dlltool; ac_word=$2
  5553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5554. $as_echo_n "checking for $ac_word... " >&6; }
  5555. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  5556.   $as_echo_n "(cached) " >&6
  5557. else
  5558.   if test -n "$ac_ct_DLLTOOL"; then
  5559.   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5560. else
  5561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5562. for as_dir in $PATH
  5563. do
  5564.   IFS=$as_save_IFS
  5565.   test -z "$as_dir" && as_dir=.
  5566.     for ac_exec_ext in '' $ac_executable_extensions; do
  5567.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5568.     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5569.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5570.     break 2
  5571.   fi
  5572. done
  5573.   done
  5574. IFS=$as_save_IFS

  5575. fi
  5576. fi
  5577. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5578. if test -n "$ac_ct_DLLTOOL"; then
  5579.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5580. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5581. else
  5582.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5583. $as_echo "no" >&6; }
  5584. fi

  5585.   if test "x$ac_ct_DLLTOOL" = x; then
  5586.     DLLTOOL=""
  5587.   else
  5588.     case $cross_compiling:$ac_tool_warned in
  5589. yes:)
  5590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5591. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5592. ac_tool_warned=yes ;;
  5593. esac
  5594.     DLLTOOL=$ac_ct_DLLTOOL
  5595.   fi
  5596. else
  5597.   DLLTOOL="$ac_cv_prog_DLLTOOL"
  5598. fi

  5599. if test -n "$ac_tool_prefix"; then
  5600.   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  5601. set dummy ${ac_tool_prefix}windres; ac_word=$2
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5603. $as_echo_n "checking for $ac_word... " >&6; }
  5604. if test "${ac_cv_prog_WINDRES+set}" = set; then :
  5605.   $as_echo_n "(cached) " >&6
  5606. else
  5607.   if test -n "$WINDRES"; then
  5608.   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  5609. else
  5610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5611. for as_dir in $PATH
  5612. do
  5613.   IFS=$as_save_IFS
  5614.   test -z "$as_dir" && as_dir=.
  5615.     for ac_exec_ext in '' $ac_executable_extensions; do
  5616.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5617.     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  5618.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5619.     break 2
  5620.   fi
  5621. done
  5622.   done
  5623. IFS=$as_save_IFS

  5624. fi
  5625. fi
  5626. WINDRES=$ac_cv_prog_WINDRES
  5627. if test -n "$WINDRES"; then
  5628.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
  5629. $as_echo "$WINDRES" >&6; }
  5630. else
  5631.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5632. $as_echo "no" >&6; }
  5633. fi


  5634. fi
  5635. if test -z "$ac_cv_prog_WINDRES"; then
  5636.   ac_ct_WINDRES=$WINDRES
  5637.   # Extract the first word of "windres", so it can be a program name with args.
  5638. set dummy windres; ac_word=$2
  5639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5640. $as_echo_n "checking for $ac_word... " >&6; }
  5641. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
  5642.   $as_echo_n "(cached) " >&6
  5643. else
  5644.   if test -n "$ac_ct_WINDRES"; then
  5645.   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  5646. else
  5647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5648. for as_dir in $PATH
  5649. do
  5650.   IFS=$as_save_IFS
  5651.   test -z "$as_dir" && as_dir=.
  5652.     for ac_exec_ext in '' $ac_executable_extensions; do
  5653.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5654.     ac_cv_prog_ac_ct_WINDRES="windres"
  5655.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5656.     break 2
  5657.   fi
  5658. done
  5659.   done
  5660. IFS=$as_save_IFS

  5661. fi
  5662. fi
  5663. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  5664. if test -n "$ac_ct_WINDRES"; then
  5665.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
  5666. $as_echo "$ac_ct_WINDRES" >&6; }
  5667. else
  5668.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5669. $as_echo "no" >&6; }
  5670. fi

  5671.   if test "x$ac_ct_WINDRES" = x; then
  5672.     WINDRES=""
  5673.   else
  5674.     case $cross_compiling:$ac_tool_warned in
  5675. yes:)
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5677. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5678. ac_tool_warned=yes ;;
  5679. esac
  5680.     WINDRES=$ac_ct_WINDRES
  5681.   fi
  5682. else
  5683.   WINDRES="$ac_cv_prog_WINDRES"
  5684. fi


  5685. case $host_os in
  5686.   gnu*)
  5687.     # Needed for GNU Hurd hosts.
  5688.     if test -n "$ac_tool_prefix"; then
  5689.   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
  5690. set dummy ${ac_tool_prefix}mig; ac_word=$2
  5691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5692. $as_echo_n "checking for $ac_word... " >&6; }
  5693. if test "${ac_cv_prog_MIG+set}" = set; then :
  5694.   $as_echo_n "(cached) " >&6
  5695. else
  5696.   if test -n "$MIG"; then
  5697.   ac_cv_prog_MIG="$MIG" # Let the user override the test.
  5698. else
  5699. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5700. for as_dir in $PATH
  5701. do
  5702.   IFS=$as_save_IFS
  5703.   test -z "$as_dir" && as_dir=.
  5704.     for ac_exec_ext in '' $ac_executable_extensions; do
  5705.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5706.     ac_cv_prog_MIG="${ac_tool_prefix}mig"
  5707.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5708.     break 2
  5709.   fi
  5710. done
  5711.   done
  5712. IFS=$as_save_IFS

  5713. fi
  5714. fi
  5715. MIG=$ac_cv_prog_MIG
  5716. if test -n "$MIG"; then
  5717.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
  5718. $as_echo "$MIG" >&6; }
  5719. else
  5720.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5721. $as_echo "no" >&6; }
  5722. fi


  5723. fi
  5724. if test -z "$ac_cv_prog_MIG"; then
  5725.   ac_ct_MIG=$MIG
  5726.   # Extract the first word of "mig", so it can be a program name with args.
  5727. set dummy mig; ac_word=$2
  5728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5729. $as_echo_n "checking for $ac_word... " >&6; }
  5730. if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
  5731.   $as_echo_n "(cached) " >&6
  5732. else
  5733.   if test -n "$ac_ct_MIG"; then
  5734.   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
  5735. else
  5736. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5737. for as_dir in $PATH
  5738. do
  5739.   IFS=$as_save_IFS
  5740.   test -z "$as_dir" && as_dir=.
  5741.     for ac_exec_ext in '' $ac_executable_extensions; do
  5742.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5743.     ac_cv_prog_ac_ct_MIG="mig"
  5744.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5745.     break 2
  5746.   fi
  5747. done
  5748.   done
  5749. IFS=$as_save_IFS

  5750. fi
  5751. fi
  5752. ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
  5753. if test -n "$ac_ct_MIG"; then
  5754.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
  5755. $as_echo "$ac_ct_MIG" >&6; }
  5756. else
  5757.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5758. $as_echo "no" >&6; }
  5759. fi

  5760.   if test "x$ac_ct_MIG" = x; then
  5761.     MIG=""
  5762.   else
  5763.     case $cross_compiling:$ac_tool_warned in
  5764. yes:)
  5765. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5766. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5767. ac_tool_warned=yes ;;
  5768. esac
  5769.     MIG=$ac_ct_MIG
  5770.   fi
  5771. else
  5772.   MIG="$ac_cv_prog_MIG"
  5773. fi

  5774.     if test x"$MIG" = x; then
  5775.       as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
  5776.     fi
  5777.     ;;
  5778. esac

  5779. # ---------------------- #
  5780. # Checks for libraries.  #
  5781. # ---------------------- #

  5782. # We might need to link with -lm; most simulators need it.
  5783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
  5784. $as_echo_n "checking for main in -lm... " >&6; }
  5785. if test "${ac_cv_lib_m_main+set}" = set; then :
  5786.   $as_echo_n "(cached) " >&6
  5787. else
  5788.   ac_check_lib_save_LIBS=$LIBS
  5789. LIBS="-lm  $LIBS"
  5790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5791. /* end confdefs.h.  */


  5792. int
  5793. main ()
  5794. {
  5795. return main ();
  5796.   ;
  5797.   return 0;
  5798. }
  5799. _ACEOF
  5800. if ac_fn_c_try_link "$LINENO"; then :
  5801.   ac_cv_lib_m_main=yes
  5802. else
  5803.   ac_cv_lib_m_main=no
  5804. fi
  5805. rm -f core conftest.err conftest.$ac_objext \
  5806.     conftest$ac_exeext conftest.$ac_ext
  5807. LIBS=$ac_check_lib_save_LIBS
  5808. fi
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
  5810. $as_echo "$ac_cv_lib_m_main" >&6; }
  5811. if test "x$ac_cv_lib_m_main" = x""yes; then :
  5812.   cat >>confdefs.h <<_ACEOF
  5813. #define HAVE_LIBM 1
  5814. _ACEOF

  5815.   LIBS="-lm $LIBS"

  5816. fi


  5817. # We need to link with -lw to get `wctype' on Solaris before Solaris
  5818. # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
  5819. # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
  5820. # is known to have this problem).  Therefore we avoid libw if we can.
  5821. ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
  5822. if test "x$ac_cv_func_wctype" = x""yes; then :

  5823. else
  5824.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
  5825. $as_echo_n "checking for wctype in -lw... " >&6; }
  5826. if test "${ac_cv_lib_w_wctype+set}" = set; then :
  5827.   $as_echo_n "(cached) " >&6
  5828. else
  5829.   ac_check_lib_save_LIBS=$LIBS
  5830. LIBS="-lw  $LIBS"
  5831. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5832. /* end confdefs.h.  */

  5833. /* Override any GCC internal prototype to avoid an error.
  5834.    Use char because int might match the return type of a GCC
  5835.    builtin and then its argument prototype would still apply.  */
  5836. #ifdef __cplusplus
  5837. extern "C"
  5838. #endif
  5839. char wctype ();
  5840. int
  5841. main ()
  5842. {
  5843. return wctype ();
  5844.   ;
  5845.   return 0;
  5846. }
  5847. _ACEOF
  5848. if ac_fn_c_try_link "$LINENO"; then :
  5849.   ac_cv_lib_w_wctype=yes
  5850. else
  5851.   ac_cv_lib_w_wctype=no
  5852. fi
  5853. rm -f core conftest.err conftest.$ac_objext \
  5854.     conftest$ac_exeext conftest.$ac_ext
  5855. LIBS=$ac_check_lib_save_LIBS
  5856. fi
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
  5858. $as_echo "$ac_cv_lib_w_wctype" >&6; }
  5859. if test "x$ac_cv_lib_w_wctype" = x""yes; then :
  5860.   cat >>confdefs.h <<_ACEOF
  5861. #define HAVE_LIBW 1
  5862. _ACEOF

  5863.   LIBS="-lw $LIBS"

  5864. fi

  5865. fi


  5866. # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  5868. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  5869. if test "${ac_cv_search_gethostbyname+set}" = set; then :
  5870.   $as_echo_n "(cached) " >&6
  5871. else
  5872.   ac_func_search_save_LIBS=$LIBS
  5873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5874. /* end confdefs.h.  */

  5875. /* Override any GCC internal prototype to avoid an error.
  5876.    Use char because int might match the return type of a GCC
  5877.    builtin and then its argument prototype would still apply.  */
  5878. #ifdef __cplusplus
  5879. extern "C"
  5880. #endif
  5881. char gethostbyname ();
  5882. int
  5883. main ()
  5884. {
  5885. return gethostbyname ();
  5886.   ;
  5887.   return 0;
  5888. }
  5889. _ACEOF
  5890. for ac_lib in '' nsl; do
  5891.   if test -z "$ac_lib"; then
  5892.     ac_res="none required"
  5893.   else
  5894.     ac_res=-l$ac_lib
  5895.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5896.   fi
  5897.   if ac_fn_c_try_link "$LINENO"; then :
  5898.   ac_cv_search_gethostbyname=$ac_res
  5899. fi
  5900. rm -f core conftest.err conftest.$ac_objext \
  5901.     conftest$ac_exeext
  5902.   if test "${ac_cv_search_gethostbyname+set}" = set; then :
  5903.   break
  5904. fi
  5905. done
  5906. if test "${ac_cv_search_gethostbyname+set}" = set; then :

  5907. else
  5908.   ac_cv_search_gethostbyname=no
  5909. fi
  5910. rm conftest.$ac_ext
  5911. LIBS=$ac_func_search_save_LIBS
  5912. fi
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  5914. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  5915. ac_res=$ac_cv_search_gethostbyname
  5916. if test "$ac_res" != no; then :
  5917.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

  5918. fi


  5919. # Some systems (e.g. Solaris) have `socketpair' in libsocket.
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
  5921. $as_echo_n "checking for library containing socketpair... " >&6; }
  5922. if test "${ac_cv_search_socketpair+set}" = set; then :
  5923.   $as_echo_n "(cached) " >&6
  5924. else
  5925.   ac_func_search_save_LIBS=$LIBS
  5926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5927. /* end confdefs.h.  */

  5928. /* Override any GCC internal prototype to avoid an error.
  5929.    Use char because int might match the return type of a GCC
  5930.    builtin and then its argument prototype would still apply.  */
  5931. #ifdef __cplusplus
  5932. extern "C"
  5933. #endif
  5934. char socketpair ();
  5935. int
  5936. main ()
  5937. {
  5938. return socketpair ();
  5939.   ;
  5940.   return 0;
  5941. }
  5942. _ACEOF
  5943. for ac_lib in '' socket; do
  5944.   if test -z "$ac_lib"; then
  5945.     ac_res="none required"
  5946.   else
  5947.     ac_res=-l$ac_lib
  5948.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  5949.   fi
  5950.   if ac_fn_c_try_link "$LINENO"; then :
  5951.   ac_cv_search_socketpair=$ac_res
  5952. fi
  5953. rm -f core conftest.err conftest.$ac_objext \
  5954.     conftest$ac_exeext
  5955.   if test "${ac_cv_search_socketpair+set}" = set; then :
  5956.   break
  5957. fi
  5958. done
  5959. if test "${ac_cv_search_socketpair+set}" = set; then :

  5960. else
  5961.   ac_cv_search_socketpair=no
  5962. fi
  5963. rm conftest.$ac_ext
  5964. LIBS=$ac_func_search_save_LIBS
  5965. fi
  5966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
  5967. $as_echo "$ac_cv_search_socketpair" >&6; }
  5968. ac_res=$ac_cv_search_socketpair
  5969. if test "$ac_res" != no; then :
  5970.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

  5971. fi


  5972. # Link in zlib if we can.  This allows us to read compressed debug sections.

  5973.   # See if the user specified whether he wants zlib support or not.

  5974. # Check whether --with-zlib was given.
  5975. if test "${with_zlib+set}" = set; then :
  5976.   withval=$with_zlib;
  5977. else
  5978.   with_zlib=auto
  5979. fi


  5980.   if test "$with_zlib" != "no"; then
  5981.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
  5982. $as_echo_n "checking for library containing zlibVersion... " >&6; }
  5983. if test "${ac_cv_search_zlibVersion+set}" = set; then :
  5984.   $as_echo_n "(cached) " >&6
  5985. else
  5986.   ac_func_search_save_LIBS=$LIBS
  5987. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5988. /* end confdefs.h.  */

  5989. /* Override any GCC internal prototype to avoid an error.
  5990.    Use char because int might match the return type of a GCC
  5991.    builtin and then its argument prototype would still apply.  */
  5992. #ifdef __cplusplus
  5993. extern "C"
  5994. #endif
  5995. char zlibVersion ();
  5996. int
  5997. main ()
  5998. {
  5999. return zlibVersion ();
  6000.   ;
  6001.   return 0;
  6002. }
  6003. _ACEOF
  6004. for ac_lib in '' z; do
  6005.   if test -z "$ac_lib"; then
  6006.     ac_res="none required"
  6007.   else
  6008.     ac_res=-l$ac_lib
  6009.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  6010.   fi
  6011.   if ac_fn_c_try_link "$LINENO"; then :
  6012.   ac_cv_search_zlibVersion=$ac_res
  6013. fi
  6014. rm -f core conftest.err conftest.$ac_objext \
  6015.     conftest$ac_exeext
  6016.   if test "${ac_cv_search_zlibVersion+set}" = set; then :
  6017.   break
  6018. fi
  6019. done
  6020. if test "${ac_cv_search_zlibVersion+set}" = set; then :

  6021. else
  6022.   ac_cv_search_zlibVersion=no
  6023. fi
  6024. rm conftest.$ac_ext
  6025. LIBS=$ac_func_search_save_LIBS
  6026. fi
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
  6028. $as_echo "$ac_cv_search_zlibVersion" >&6; }
  6029. ac_res=$ac_cv_search_zlibVersion
  6030. if test "$ac_res" != no; then :
  6031.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  6032.   for ac_header in zlib.h
  6033. do :
  6034.   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  6035. if test "x$ac_cv_header_zlib_h" = x""yes; then :
  6036.   cat >>confdefs.h <<_ACEOF
  6037. #define HAVE_ZLIB_H 1
  6038. _ACEOF

  6039. fi

  6040. done

  6041. fi

  6042.     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
  6043.       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
  6044.     fi
  6045.   fi


  6046. # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
  6048. $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
  6049. if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
  6050.   $as_echo_n "(cached) " >&6
  6051. else
  6052.   ac_func_search_save_LIBS=$LIBS
  6053. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6054. /* end confdefs.h.  */

  6055. /* Override any GCC internal prototype to avoid an error.
  6056.    Use char because int might match the return type of a GCC
  6057.    builtin and then its argument prototype would still apply.  */
  6058. #ifdef __cplusplus
  6059. extern "C"
  6060. #endif
  6061. char dlgetmodinfo ();
  6062. int
  6063. main ()
  6064. {
  6065. return dlgetmodinfo ();
  6066.   ;
  6067.   return 0;
  6068. }
  6069. _ACEOF
  6070. for ac_lib in '' dl xpdl; do
  6071.   if test -z "$ac_lib"; then
  6072.     ac_res="none required"
  6073.   else
  6074.     ac_res=-l$ac_lib
  6075.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  6076.   fi
  6077.   if ac_fn_c_try_link "$LINENO"; then :
  6078.   ac_cv_search_dlgetmodinfo=$ac_res
  6079. fi
  6080. rm -f core conftest.err conftest.$ac_objext \
  6081.     conftest$ac_exeext
  6082.   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
  6083.   break
  6084. fi
  6085. done
  6086. if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :

  6087. else
  6088.   ac_cv_search_dlgetmodinfo=no
  6089. fi
  6090. rm conftest.$ac_ext
  6091. LIBS=$ac_func_search_save_LIBS
  6092. fi
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
  6094. $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
  6095. ac_res=$ac_cv_search_dlgetmodinfo
  6096. if test "$ac_res" != no; then :
  6097.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

  6098. fi





  6099. # Check whether --with-libiconv-prefix was given.
  6100. if test "${with_libiconv_prefix+set}" = set; then :
  6101.   withval=$with_libiconv_prefix;
  6102.     for dir in `echo "$withval" | tr : ' '`; do
  6103.       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
  6104.       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
  6105.     done

  6106. fi


  6107.   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
  6108.   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"

  6109.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
  6110. $as_echo_n "checking for iconv... " >&6; }
  6111. if test "${am_cv_func_iconv+set}" = set; then :
  6112.   $as_echo_n "(cached) " >&6
  6113. else

  6114.     am_cv_func_iconv="no, consider installing GNU libiconv"
  6115.     am_cv_lib_iconv=no
  6116.     am_cv_use_build_libiconv=no
  6117.     am_cv_build_libiconv_path=

  6118.     # If libiconv is part of the build tree, then try using it over
  6119.     # any system iconv.
  6120.     if test -d ../libiconv; then
  6121.       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
  6122.         am_save_LIBS="$LIBS"
  6123.         am_save_CPPFLAGS="$CPPFLAGS"
  6124.         LIBS="$LIBS $lib_dir/libiconv.a"
  6125.         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
  6126.         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6127. /* end confdefs.h.  */
  6128. #include <stdlib.h>
  6129. #include <iconv.h>
  6130. int
  6131. main ()
  6132. {
  6133. iconv_t cd = iconv_open("","");
  6134.            iconv(cd,NULL,NULL,NULL,NULL);
  6135.            iconv_close(cd);
  6136.   ;
  6137.   return 0;
  6138. }
  6139. _ACEOF
  6140. if ac_fn_c_try_link "$LINENO"; then :
  6141.   am_cv_use_build_libiconv=yes
  6142.           am_cv_build_libiconv_path=$lib_dir/libiconv.a
  6143.           am_cv_lib_iconv=yes
  6144.           am_cv_func_iconv=yes
  6145. fi
  6146. rm -f core conftest.err conftest.$ac_objext \
  6147.     conftest$ac_exeext conftest.$ac_ext
  6148.         LIBS="$am_save_LIBS"
  6149.         CPPFLAGS="$am_save_CPPFLAGS"
  6150.         if test "$am_cv_use_build_libiconv" = "yes"; then
  6151.           break
  6152.         fi
  6153.       done
  6154.     fi

  6155.     # Next, try to find iconv in libc.
  6156.     if test "$am_cv_func_iconv" != yes; then
  6157.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6158. /* end confdefs.h.  */
  6159. #include <stdlib.h>
  6160. #include <iconv.h>
  6161. int
  6162. main ()
  6163. {
  6164. iconv_t cd = iconv_open("","");
  6165.          iconv(cd,NULL,NULL,NULL,NULL);
  6166.          iconv_close(cd);
  6167.   ;
  6168.   return 0;
  6169. }
  6170. _ACEOF
  6171. if ac_fn_c_try_link "$LINENO"; then :
  6172.   am_cv_func_iconv=yes
  6173. fi
  6174. rm -f core conftest.err conftest.$ac_objext \
  6175.     conftest$ac_exeext conftest.$ac_ext
  6176.     fi

  6177.     # If iconv was not in libc, try -liconv.  In this case, arrange to
  6178.     # look in the libiconv prefix, if it was specified by the user.
  6179.     if test "$am_cv_func_iconv" != yes; then
  6180.       am_save_CPPFLAGS="$CPPFLAGS"
  6181.       am_save_LIBS="$LIBS"
  6182.       if test -n "$LIBICONV_INCLUDE"; then
  6183.         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
  6184.         LIBS="$LIBS $LIBICONV_LIBDIR"
  6185.       fi
  6186.       LIBS="$LIBS -liconv"
  6187.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6188. /* end confdefs.h.  */
  6189. #include <stdlib.h>
  6190. #include <iconv.h>
  6191. int
  6192. main ()
  6193. {
  6194. iconv_t cd = iconv_open("","");
  6195.          iconv(cd,NULL,NULL,NULL,NULL);
  6196.          iconv_close(cd);
  6197.   ;
  6198.   return 0;
  6199. }
  6200. _ACEOF
  6201. if ac_fn_c_try_link "$LINENO"; then :
  6202.   am_cv_lib_iconv=yes
  6203.         am_cv_func_iconv=yes
  6204. fi
  6205. rm -f core conftest.err conftest.$ac_objext \
  6206.     conftest$ac_exeext conftest.$ac_ext
  6207.       LIBS="$am_save_LIBS"
  6208.       CPPFLAGS="$am_save_CPPFLAGS"
  6209.     fi

  6210. fi
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
  6212. $as_echo "$am_cv_func_iconv" >&6; }

  6213.   # Set the various flags based on the cache variables.  We can't rely
  6214.   # on the flags to remain set from the above code, due to caching.
  6215.   LIBICONV=
  6216.   if test "$am_cv_lib_iconv" = yes; then
  6217.     LIBICONV="-liconv"
  6218.   else
  6219.     LIBICONV_LIBDIR=
  6220.     LIBICONV_INCLUDE=
  6221.   fi
  6222.   if test "$am_cv_use_build_libiconv" = yes; then
  6223.     LIBICONV="$am_cv_build_libiconv_path"
  6224.     LIBICONV_LIBDIR=""
  6225.     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
  6226.   fi
  6227.   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
  6228.   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"

  6229.   if test "$am_cv_func_iconv" = yes; then

  6230. $as_echo "#define HAVE_ICONV 1" >>confdefs.h

  6231.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
  6232. $as_echo_n "checking for iconv declaration... " >&6; }
  6233.     if test "${am_cv_proto_iconv+set}" = set; then :
  6234.   $as_echo_n "(cached) " >&6
  6235. else

  6236.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6237. /* end confdefs.h.  */

  6238. #include <stdlib.h>
  6239. #include <iconv.h>
  6240. extern
  6241. #ifdef __cplusplus
  6242. "C"
  6243. #endif
  6244. #if defined(__STDC__) || defined(__cplusplus)
  6245. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  6246. #else
  6247. size_t iconv();
  6248. #endif

  6249. int
  6250. main ()
  6251. {

  6252.   ;
  6253.   return 0;
  6254. }
  6255. _ACEOF
  6256. if ac_fn_c_try_compile "$LINENO"; then :
  6257.   am_cv_proto_iconv_arg1=""
  6258. else
  6259.   am_cv_proto_iconv_arg1="const"
  6260. fi
  6261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6262.       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);"
  6263. fi

  6264.     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  6265.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
  6266.          }$am_cv_proto_iconv" >&5
  6267. $as_echo "${ac_t:-
  6268.          }$am_cv_proto_iconv" >&6; }

  6269. cat >>confdefs.h <<_ACEOF
  6270. #define ICONV_CONST $am_cv_proto_iconv_arg1
  6271. _ACEOF

  6272.   fi


  6273. # GDB may fork/exec the iconv program to get the list of supported character
  6274. # sets.  Allow the user to specify where to find it.
  6275. # There are several factors affecting the choice of option name:
  6276. # - There is already --with-libiconv-prefix but we can't use it, it specifies
  6277. #   the build-time location of libiconv files.
  6278. # - The program we need to find is iconv, which comes with glibc.  The user
  6279. #   doesn't necessarily have libiconv installed.  Therefore naming this
  6280. #   --with-libiconv-foo feels wrong.
  6281. # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
  6282. #   defined to work on directories not files (though it really doesn't know
  6283. #   the difference).
  6284. # - Calling this --with-iconv-prefix is perceived to cause too much confusion
  6285. #   with --with-libiconv-prefix.
  6286. # Putting these together is why the option name is --with-iconv-bin.


  6287. # Check whether --with-iconv-bin was given.
  6288. if test "${with_iconv_bin+set}" = set; then :
  6289.   withval=$with_iconv_bin; iconv_bin="${withval}"

  6290. cat >>confdefs.h <<_ACEOF
  6291. #define ICONV_BIN "${iconv_bin}"
  6292. _ACEOF


  6293.   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  6294.      if test "x$prefix" = xNONE; then
  6295.              test_prefix=/usr/local
  6296.      else
  6297.         test_prefix=$prefix
  6298.      fi
  6299.   else
  6300.      test_prefix=$exec_prefix
  6301.   fi
  6302.   value=0
  6303.   case ${iconv_bin} in
  6304.      "${test_prefix}"|"${test_prefix}/"*|\
  6305.         '${exec_prefix}'|'${exec_prefix}/'*)
  6306.      value=1
  6307.      ;;
  6308.   esac

  6309. cat >>confdefs.h <<_ACEOF
  6310. #define ICONV_BIN_RELOCATABLE $value
  6311. _ACEOF



  6312. fi


  6313. # For the TUI, we need enhanced curses functionality.
  6314. if test x"$enable_tui" != xno; then
  6315.   prefer_curses=yes
  6316. fi

  6317. curses_found=no
  6318. if test x"$prefer_curses" = xyes; then
  6319.   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
  6320.   # curses library because the latter might not provide all the
  6321.   # functionality we need.  However, this leads to problems on systems
  6322.   # where the linker searches /usr/local/lib, but the compiler doesn't
  6323.   # search /usr/local/include, if ncurses is installed in /usr/local.  A
  6324.   # default installation of ncurses on alpha*-dec-osf* will lead to such
  6325.   # a situation.
  6326.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
  6327. $as_echo_n "checking for library containing waddstr... " >&6; }
  6328. if test "${ac_cv_search_waddstr+set}" = set; then :
  6329.   $as_echo_n "(cached) " >&6
  6330. else
  6331.   ac_func_search_save_LIBS=$LIBS
  6332. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6333. /* end confdefs.h.  */

  6334. /* Override any GCC internal prototype to avoid an error.
  6335.    Use char because int might match the return type of a GCC
  6336.    builtin and then its argument prototype would still apply.  */
  6337. #ifdef __cplusplus
  6338. extern "C"
  6339. #endif
  6340. char waddstr ();
  6341. int
  6342. main ()
  6343. {
  6344. return waddstr ();
  6345.   ;
  6346.   return 0;
  6347. }
  6348. _ACEOF
  6349. for ac_lib in '' ncurses cursesX curses; do
  6350.   if test -z "$ac_lib"; then
  6351.     ac_res="none required"
  6352.   else
  6353.     ac_res=-l$ac_lib
  6354.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  6355.   fi
  6356.   if ac_fn_c_try_link "$LINENO"; then :
  6357.   ac_cv_search_waddstr=$ac_res
  6358. fi
  6359. rm -f core conftest.err conftest.$ac_objext \
  6360.     conftest$ac_exeext
  6361.   if test "${ac_cv_search_waddstr+set}" = set; then :
  6362.   break
  6363. fi
  6364. done
  6365. if test "${ac_cv_search_waddstr+set}" = set; then :

  6366. else
  6367.   ac_cv_search_waddstr=no
  6368. fi
  6369. rm conftest.$ac_ext
  6370. LIBS=$ac_func_search_save_LIBS
  6371. fi
  6372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
  6373. $as_echo "$ac_cv_search_waddstr" >&6; }
  6374. ac_res=$ac_cv_search_waddstr
  6375. if test "$ac_res" != no; then :
  6376.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

  6377. fi


  6378.   if test "$ac_cv_search_waddstr" != no; then
  6379.     curses_found=yes
  6380.   fi
  6381. fi

  6382. # Check whether we should enable the TUI, but only do so if we really
  6383. # can.
  6384. if test x"$enable_tui" != xno; then
  6385.   if test -d $srcdir/tui; then
  6386.     if test "$curses_found" != no; then
  6387.       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
  6388.       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
  6389.       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
  6390.       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
  6391.     else
  6392.       if test x"$enable_tui" = xyes; then
  6393.         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
  6394.       else
  6395.         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
  6396. $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
  6397.       fi
  6398.     fi
  6399.   fi
  6400. fi

  6401. # Since GDB uses Readline, we need termcap functionality.  In many
  6402. # cases this will be provided by the curses library, but some systems
  6403. # have a seperate termcap library, or no curses library at all.

  6404. case $host_os in
  6405.   cygwin*)
  6406.     if test -d $srcdir/libtermcap; then
  6407.       LIBS="../libtermcap/libtermcap.a $LIBS"
  6408.       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
  6409.     fi ;;
  6410.   go32* | *djgpp*)
  6411.     ac_cv_search_tgetent="none required"
  6412.     ;;
  6413.   *mingw32*)
  6414.     ac_cv_search_tgetent="none required"
  6415.     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
  6416.     ;;
  6417. esac

  6418. # These are the libraries checked by Readline.
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
  6420. $as_echo_n "checking for library containing tgetent... " >&6; }
  6421. if test "${ac_cv_search_tgetent+set}" = set; then :
  6422.   $as_echo_n "(cached) " >&6
  6423. else
  6424.   ac_func_search_save_LIBS=$LIBS
  6425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6426. /* end confdefs.h.  */

  6427. /* Override any GCC internal prototype to avoid an error.
  6428.    Use char because int might match the return type of a GCC
  6429.    builtin and then its argument prototype would still apply.  */
  6430. #ifdef __cplusplus
  6431. extern "C"
  6432. #endif
  6433. char tgetent ();
  6434. int
  6435. main ()
  6436. {
  6437. return tgetent ();
  6438.   ;
  6439.   return 0;
  6440. }
  6441. _ACEOF
  6442. for ac_lib in '' termcap tinfo curses ncurses; do
  6443.   if test -z "$ac_lib"; then
  6444.     ac_res="none required"
  6445.   else
  6446.     ac_res=-l$ac_lib
  6447.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  6448.   fi
  6449.   if ac_fn_c_try_link "$LINENO"; then :
  6450.   ac_cv_search_tgetent=$ac_res
  6451. fi
  6452. rm -f core conftest.err conftest.$ac_objext \
  6453.     conftest$ac_exeext
  6454.   if test "${ac_cv_search_tgetent+set}" = set; then :
  6455.   break
  6456. fi
  6457. done
  6458. if test "${ac_cv_search_tgetent+set}" = set; then :

  6459. else
  6460.   ac_cv_search_tgetent=no
  6461. fi
  6462. rm conftest.$ac_ext
  6463. LIBS=$ac_func_search_save_LIBS
  6464. fi
  6465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
  6466. $as_echo "$ac_cv_search_tgetent" >&6; }
  6467. ac_res=$ac_cv_search_tgetent
  6468. if test "$ac_res" != no; then :
  6469.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

  6470. fi


  6471. if test "$ac_cv_search_tgetent" = no; then
  6472.   as_fn_error "no termcap library found" "$LINENO" 5
  6473. fi


  6474. # Check whether --with-system-readline was given.
  6475. if test "${with_system_readline+set}" = set; then :
  6476.   withval=$with_system_readline;
  6477. fi


  6478. if test "$with_system_readline" = yes; then
  6479.   READLINE=-lreadline
  6480.   READLINE_DEPS=
  6481.   READLINE_CFLAGS=
  6482.   READLINE_TEXI_INCFLAG=
  6483. else
  6484.   READLINE='$(READLINE_DIR)/libreadline.a'
  6485.   READLINE_DEPS='$(READLINE)'
  6486.   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
  6487.   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
  6488. fi





  6489. # Generate jit-reader.h

  6490. # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
  6491. TARGET_PTR=

  6492. # The cast to long int works around a bug in the HP C Compiler
  6493. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6494. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6495. # This bug is HP SR number 8606223364.
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
  6497. $as_echo_n "checking size of unsigned long long... " >&6; }
  6498. if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
  6499.   $as_echo_n "(cached) " >&6
  6500. else
  6501.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :

  6502. else
  6503.   if test "$ac_cv_type_unsigned_long_long" = yes; then
  6504.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6505. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6506. { as_fn_set_status 77
  6507. as_fn_error "cannot compute sizeof (unsigned long long)
  6508. See \`config.log' for more details." "$LINENO" 5; }; }
  6509.    else
  6510.      ac_cv_sizeof_unsigned_long_long=0
  6511.    fi
  6512. fi

  6513. fi
  6514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
  6515. $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }



  6516. cat >>confdefs.h <<_ACEOF
  6517. #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
  6518. _ACEOF


  6519. # The cast to long int works around a bug in the HP C Compiler
  6520. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6521. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6522. # This bug is HP SR number 8606223364.
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
  6524. $as_echo_n "checking size of unsigned long... " >&6; }
  6525. if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
  6526.   $as_echo_n "(cached) " >&6
  6527. else
  6528.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :

  6529. else
  6530.   if test "$ac_cv_type_unsigned_long" = yes; then
  6531.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6532. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6533. { as_fn_set_status 77
  6534. as_fn_error "cannot compute sizeof (unsigned long)
  6535. See \`config.log' for more details." "$LINENO" 5; }; }
  6536.    else
  6537.      ac_cv_sizeof_unsigned_long=0
  6538.    fi
  6539. fi

  6540. fi
  6541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
  6542. $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }



  6543. cat >>confdefs.h <<_ACEOF
  6544. #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
  6545. _ACEOF


  6546. # The cast to long int works around a bug in the HP C Compiler
  6547. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6548. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6549. # This bug is HP SR number 8606223364.
  6550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
  6551. $as_echo_n "checking size of unsigned __int128... " >&6; }
  6552. if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
  6553.   $as_echo_n "(cached) " >&6
  6554. else
  6555.   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :

  6556. else
  6557.   if test "$ac_cv_type_unsigned___int128" = yes; then
  6558.      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6559. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6560. { as_fn_set_status 77
  6561. as_fn_error "cannot compute sizeof (unsigned __int128)
  6562. See \`config.log' for more details." "$LINENO" 5; }; }
  6563.    else
  6564.      ac_cv_sizeof_unsigned___int128=0
  6565.    fi
  6566. fi

  6567. fi
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
  6569. $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }



  6570. cat >>confdefs.h <<_ACEOF
  6571. #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
  6572. _ACEOF



  6573. if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
  6574.   TARGET_PTR="unsigned long"
  6575. elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
  6576.   TARGET_PTR="unsigned long long"
  6577. elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
  6578.   TARGET_PTR="unsigned __int128"
  6579. else
  6580.   TARGET_PTR="unsigned long"
  6581. fi


  6582. ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"


  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  6584. $as_echo_n "checking for library containing dlopen... " >&6; }
  6585. if test "${ac_cv_search_dlopen+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. /* Override any GCC internal prototype to avoid an error.
  6592.    Use char because int might match the return type of a GCC
  6593.    builtin and then its argument prototype would still apply.  */
  6594. #ifdef __cplusplus
  6595. extern "C"
  6596. #endif
  6597. char dlopen ();
  6598. int
  6599. main ()
  6600. {
  6601. return dlopen ();
  6602.   ;
  6603.   return 0;
  6604. }
  6605. _ACEOF
  6606. for ac_lib in '' dl; do
  6607.   if test -z "$ac_lib"; then
  6608.     ac_res="none required"
  6609.   else
  6610.     ac_res=-l$ac_lib
  6611.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  6612.   fi
  6613.   if ac_fn_c_try_link "$LINENO"; then :
  6614.   ac_cv_search_dlopen=$ac_res
  6615. fi
  6616. rm -f core conftest.err conftest.$ac_objext \
  6617.     conftest$ac_exeext
  6618.   if test "${ac_cv_search_dlopen+set}" = set; then :
  6619.   break
  6620. fi
  6621. done
  6622. if test "${ac_cv_search_dlopen+set}" = set; then :

  6623. else
  6624.   ac_cv_search_dlopen=no
  6625. fi
  6626. rm conftest.$ac_ext
  6627. LIBS=$ac_func_search_save_LIBS
  6628. fi
  6629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  6630. $as_echo "$ac_cv_search_dlopen" >&6; }
  6631. ac_res=$ac_cv_search_dlopen
  6632. if test "$ac_res" != no; then :
  6633.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

  6634. fi




  6635. # Check whether --with-jit-reader-dir was given.
  6636. if test "${with_jit_reader_dir+set}" = set; then :
  6637.   withval=$with_jit_reader_dir;
  6638.     JIT_READER_DIR=$withval
  6639. else
  6640.   JIT_READER_DIR=${libdir}/gdb
  6641. fi


  6642.   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  6643.   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6644.   ac_define_dir=`eval echo $JIT_READER_DIR`
  6645.   ac_define_dir=`eval echo $ac_define_dir`

  6646. cat >>confdefs.h <<_ACEOF
  6647. #define JIT_READER_DIR "$ac_define_dir"
  6648. _ACEOF




  6649.   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  6650.      if test "x$prefix" = xNONE; then
  6651.              test_prefix=/usr/local
  6652.      else
  6653.         test_prefix=$prefix
  6654.      fi
  6655.   else
  6656.      test_prefix=$exec_prefix
  6657.   fi
  6658.   value=0
  6659.   case ${ac_define_dir} in
  6660.      "${test_prefix}"|"${test_prefix}/"*|\
  6661.         '${exec_prefix}'|'${exec_prefix}/'*)
  6662.      value=1
  6663.      ;;
  6664.   esac

  6665. cat >>confdefs.h <<_ACEOF
  6666. #define JIT_READER_DIR_RELOCATABLE $value
  6667. _ACEOF





  6668. # Check whether --with-expat was given.
  6669. if test "${with_expat+set}" = set; then :
  6670.   withval=$with_expat;
  6671. else
  6672.   with_expat=auto
  6673. fi

  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
  6675. $as_echo_n "checking whether to use expat... " >&6; }
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
  6677. $as_echo "$with_expat" >&6; }

  6678. if test "${with_expat}" = no; then
  6679.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
  6680. $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
  6681.   HAVE_LIBEXPAT=no
  6682. else

  6683.       if test "X$prefix" = "XNONE"; then
  6684.     acl_final_prefix="$ac_default_prefix"
  6685.   else
  6686.     acl_final_prefix="$prefix"
  6687.   fi
  6688.   if test "X$exec_prefix" = "XNONE"; then
  6689.     acl_final_exec_prefix='${prefix}'
  6690.   else
  6691.     acl_final_exec_prefix="$exec_prefix"
  6692.   fi
  6693.   acl_save_prefix="$prefix"
  6694.   prefix="$acl_final_prefix"
  6695.   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  6696.   prefix="$acl_save_prefix"


  6697. # Check whether --with-gnu-ld was given.
  6698. if test "${with_gnu_ld+set}" = set; then :
  6699.   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  6700. else
  6701.   with_gnu_ld=no
  6702. fi

  6703. # Prepare PATH_SEPARATOR.
  6704. # The user is always right.
  6705. if test "${PATH_SEPARATOR+set}" != set; then
  6706.   echo "#! /bin/sh" >conf$$.sh
  6707.   echo  "exit 0"   >>conf$$.sh
  6708.   chmod +x conf$$.sh
  6709.   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6710.     PATH_SEPARATOR=';'
  6711.   else
  6712.     PATH_SEPARATOR=:
  6713.   fi
  6714.   rm -f conf$$.sh
  6715. fi
  6716. ac_prog=ld
  6717. if test "$GCC" = yes; then
  6718.   # Check if gcc -print-prog-name=ld gives a path.
  6719.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
  6720. $as_echo_n "checking for ld used by GCC... " >&6; }
  6721.   case $host in
  6722.   *-*-mingw*)
  6723.     # gcc leaves a trailing carriage return which upsets mingw
  6724.     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  6725.   *)
  6726.     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  6727.   esac
  6728.   case $ac_prog in
  6729.     # Accept absolute paths.
  6730.     [\\/]* | [A-Za-z]:[\\/]*)
  6731.       re_direlt='/[^/][^/]*/\.\./'
  6732.       # Canonicalize the path of ld
  6733.       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  6734.       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  6735.         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  6736.       done
  6737.       test -z "$LD" && LD="$ac_prog"
  6738.       ;;
  6739.   "")
  6740.     # If it fails, then pretend we aren't using GCC.
  6741.     ac_prog=ld
  6742.     ;;
  6743.   *)
  6744.     # If it is relative, then search for the first ld in PATH.
  6745.     with_gnu_ld=unknown
  6746.     ;;
  6747.   esac
  6748. elif test "$with_gnu_ld" = yes; then
  6749.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  6750. $as_echo_n "checking for GNU ld... " >&6; }
  6751. else
  6752.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  6753. $as_echo_n "checking for non-GNU ld... " >&6; }
  6754. fi
  6755. if test "${acl_cv_path_LD+set}" = set; then :
  6756.   $as_echo_n "(cached) " >&6
  6757. else
  6758.   if test -z "$LD"; then
  6759.   IFS="${IFS=         }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6760.   for ac_dir in $PATH; do
  6761.     test -z "$ac_dir" && ac_dir=.
  6762.     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6763.       acl_cv_path_LD="$ac_dir/$ac_prog"
  6764.       # Check to see if the program is GNU ld.  I'd rather use --version,
  6765.       # but apparently some GNU ld's only accept -v.
  6766.       # Break only if it was the GNU/non-GNU ld that we prefer.
  6767.       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  6768.         test "$with_gnu_ld" != no && break
  6769.       else
  6770.         test "$with_gnu_ld" != yes && break
  6771.       fi
  6772.     fi
  6773.   done
  6774.   IFS="$ac_save_ifs"
  6775. else
  6776.   acl_cv_path_LD="$LD" # Let the user override the test with a path.
  6777. fi
  6778. fi

  6779. LD="$acl_cv_path_LD"
  6780. if test -n "$LD"; then
  6781.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  6782. $as_echo "$LD" >&6; }
  6783. else
  6784.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6785. $as_echo "no" >&6; }
  6786. fi
  6787. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  6788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  6789. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  6790. if test "${acl_cv_prog_gnu_ld+set}" = set; then :
  6791.   $as_echo_n "(cached) " >&6
  6792. else
  6793.   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6794. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  6795.   acl_cv_prog_gnu_ld=yes
  6796. else
  6797.   acl_cv_prog_gnu_ld=no
  6798. fi
  6799. fi
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
  6801. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  6802. with_gnu_ld=$acl_cv_prog_gnu_ld



  6803.                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
  6804. $as_echo_n "checking for shared library run path origin... " >&6; }
  6805. if test "${acl_cv_rpath+set}" = set; then :
  6806.   $as_echo_n "(cached) " >&6
  6807. else

  6808.     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  6809.     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  6810.    . ./conftest.sh
  6811.     rm -f ./conftest.sh
  6812.     acl_cv_rpath=done

  6813. fi
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
  6815. $as_echo "$acl_cv_rpath" >&6; }
  6816.   wl="$acl_cv_wl"
  6817.   libext="$acl_cv_libext"
  6818.   shlibext="$acl_cv_shlibext"
  6819.   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  6820.   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  6821.   hardcode_direct="$acl_cv_hardcode_direct"
  6822.   hardcode_minus_L="$acl_cv_hardcode_minus_L"
  6823.     # Check whether --enable-rpath was given.
  6824. if test "${enable_rpath+set}" = set; then :
  6825.   enableval=$enable_rpath; :
  6826. else
  6827.   enable_rpath=yes
  6828. fi










  6829.     use_additional=yes

  6830.   acl_save_prefix="$prefix"
  6831.   prefix="$acl_final_prefix"
  6832.   acl_save_exec_prefix="$exec_prefix"
  6833.   exec_prefix="$acl_final_exec_prefix"

  6834.     eval additional_includedir=\"$includedir\"
  6835.     eval additional_libdir=\"$libdir\"

  6836.   exec_prefix="$acl_save_exec_prefix"
  6837.   prefix="$acl_save_prefix"


  6838. # Check whether --with-libexpat-prefix was given.
  6839. if test "${with_libexpat_prefix+set}" = set; then :
  6840.   withval=$with_libexpat_prefix;
  6841.     if test "X$withval" = "Xno"; then
  6842.       use_additional=no
  6843.     else
  6844.       if test "X$withval" = "X"; then

  6845.   acl_save_prefix="$prefix"
  6846.   prefix="$acl_final_prefix"
  6847.   acl_save_exec_prefix="$exec_prefix"
  6848.   exec_prefix="$acl_final_exec_prefix"

  6849.           eval additional_includedir=\"$includedir\"
  6850.           eval additional_libdir=\"$libdir\"

  6851.   exec_prefix="$acl_save_exec_prefix"
  6852.   prefix="$acl_save_prefix"

  6853.       else
  6854.         additional_includedir="$withval/include"
  6855.         additional_libdir="$withval/lib"
  6856.       fi
  6857.     fi

  6858. fi

  6859.       LIBEXPAT=
  6860.   LTLIBEXPAT=
  6861.   INCEXPAT=
  6862.   rpathdirs=
  6863.   ltrpathdirs=
  6864.   names_already_handled=
  6865.   names_next_round='expat '
  6866.   while test -n "$names_next_round"; do
  6867.     names_this_round="$names_next_round"
  6868.     names_next_round=
  6869.     for name in $names_this_round; do
  6870.       already_handled=
  6871.       for n in $names_already_handled; do
  6872.         if test "$n" = "$name"; then
  6873.           already_handled=yes
  6874.           break
  6875.         fi
  6876.       done
  6877.       if test -z "$already_handled"; then
  6878.         names_already_handled="$names_already_handled $name"
  6879.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  6880.         eval value=\"\$HAVE_LIB$uppername\"
  6881.         if test -n "$value"; then
  6882.           if test "$value" = yes; then
  6883.             eval value=\"\$LIB$uppername\"
  6884.             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
  6885.             eval value=\"\$LTLIB$uppername\"
  6886.             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
  6887.           else
  6888.                                     :
  6889.           fi
  6890.         else
  6891.                               found_dir=
  6892.           found_la=
  6893.           found_so=
  6894.           found_a=
  6895.           if test $use_additional = yes; then
  6896.             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  6897.               found_dir="$additional_libdir"
  6898.               found_so="$additional_libdir/lib$name.$shlibext"
  6899.               if test -f "$additional_libdir/lib$name.la"; then
  6900.                 found_la="$additional_libdir/lib$name.la"
  6901.               fi
  6902.             else
  6903.               if test -f "$additional_libdir/lib$name.$libext"; then
  6904.                 found_dir="$additional_libdir"
  6905.                 found_a="$additional_libdir/lib$name.$libext"
  6906.                 if test -f "$additional_libdir/lib$name.la"; then
  6907.                   found_la="$additional_libdir/lib$name.la"
  6908.                 fi
  6909.               fi
  6910.             fi
  6911.           fi
  6912.           if test "X$found_dir" = "X"; then
  6913.             for x in $LDFLAGS $LTLIBEXPAT; do

  6914.   acl_save_prefix="$prefix"
  6915.   prefix="$acl_final_prefix"
  6916.   acl_save_exec_prefix="$exec_prefix"
  6917.   exec_prefix="$acl_final_exec_prefix"
  6918.   eval x=\"$x\"
  6919.   exec_prefix="$acl_save_exec_prefix"
  6920.   prefix="$acl_save_prefix"

  6921.               case "$x" in
  6922.                 -L*)
  6923.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  6924.                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  6925.                     found_dir="$dir"
  6926.                     found_so="$dir/lib$name.$shlibext"
  6927.                     if test -f "$dir/lib$name.la"; then
  6928.                       found_la="$dir/lib$name.la"
  6929.                     fi
  6930.                   else
  6931.                     if test -f "$dir/lib$name.$libext"; then
  6932.                       found_dir="$dir"
  6933.                       found_a="$dir/lib$name.$libext"
  6934.                       if test -f "$dir/lib$name.la"; then
  6935.                         found_la="$dir/lib$name.la"
  6936.                       fi
  6937.                     fi
  6938.                   fi
  6939.                   ;;
  6940.               esac
  6941.               if test "X$found_dir" != "X"; then
  6942.                 break
  6943.               fi
  6944.             done
  6945.           fi
  6946.           if test "X$found_dir" != "X"; then
  6947.                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
  6948.             if test "X$found_so" != "X"; then
  6949.                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  6950.                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
  6951.               else
  6952.                                                                                 haveit=
  6953.                 for x in $ltrpathdirs; do
  6954.                   if test "X$x" = "X$found_dir"; then
  6955.                     haveit=yes
  6956.                     break
  6957.                   fi
  6958.                 done
  6959.                 if test -z "$haveit"; then
  6960.                   ltrpathdirs="$ltrpathdirs $found_dir"
  6961.                 fi
  6962.                                 if test "$hardcode_direct" = yes; then
  6963.                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
  6964.                 else
  6965.                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  6966.                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
  6967.                                                             haveit=
  6968.                     for x in $rpathdirs; do
  6969.                       if test "X$x" = "X$found_dir"; then
  6970.                         haveit=yes
  6971.                         break
  6972.                       fi
  6973.                     done
  6974.                     if test -z "$haveit"; then
  6975.                       rpathdirs="$rpathdirs $found_dir"
  6976.                     fi
  6977.                   else
  6978.                                                                                 haveit=
  6979.                     for x in $LDFLAGS $LIBEXPAT; do

  6980.   acl_save_prefix="$prefix"
  6981.   prefix="$acl_final_prefix"
  6982.   acl_save_exec_prefix="$exec_prefix"
  6983.   exec_prefix="$acl_final_exec_prefix"
  6984.   eval x=\"$x\"
  6985.   exec_prefix="$acl_save_exec_prefix"
  6986.   prefix="$acl_save_prefix"

  6987.                       if test "X$x" = "X-L$found_dir"; then
  6988.                         haveit=yes
  6989.                         break
  6990.                       fi
  6991.                     done
  6992.                     if test -z "$haveit"; then
  6993.                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
  6994.                     fi
  6995.                     if test "$hardcode_minus_L" != no; then
  6996.                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
  6997.                     else
  6998.                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
  6999.                     fi
  7000.                   fi
  7001.                 fi
  7002.               fi
  7003.             else
  7004.               if test "X$found_a" != "X"; then
  7005.                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
  7006.               else
  7007.                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
  7008.               fi
  7009.             fi
  7010.                         additional_includedir=
  7011.             case "$found_dir" in
  7012.               */lib | */lib/)
  7013.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  7014.                 additional_includedir="$basedir/include"
  7015.                 ;;
  7016.             esac
  7017.             if test "X$additional_includedir" != "X"; then
  7018.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  7019.                 haveit=
  7020.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  7021.                   if test -n "$GCC"; then
  7022.                     case $host_os in
  7023.                       linux*) haveit=yes;;
  7024.                     esac
  7025.                   fi
  7026.                 fi
  7027.                 if test -z "$haveit"; then
  7028.                   for x in $CPPFLAGS $INCEXPAT; do

  7029.   acl_save_prefix="$prefix"
  7030.   prefix="$acl_final_prefix"
  7031.   acl_save_exec_prefix="$exec_prefix"
  7032.   exec_prefix="$acl_final_exec_prefix"
  7033.   eval x=\"$x\"
  7034.   exec_prefix="$acl_save_exec_prefix"
  7035.   prefix="$acl_save_prefix"

  7036.                     if test "X$x" = "X-I$additional_includedir"; then
  7037.                       haveit=yes
  7038.                       break
  7039.                     fi
  7040.                   done
  7041.                   if test -z "$haveit"; then
  7042.                     if test -d "$additional_includedir"; then
  7043.                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
  7044.                     fi
  7045.                   fi
  7046.                 fi
  7047.               fi
  7048.             fi
  7049.                         if test -n "$found_la"; then
  7050.                                                         save_libdir="$libdir"
  7051.               case "$found_la" in
  7052.                 */* | *\\*) . "$found_la" ;;
  7053.                 *) . "./$found_la" ;;
  7054.               esac
  7055.               libdir="$save_libdir"
  7056.                             for dep in $dependency_libs; do
  7057.                 case "$dep" in
  7058.                   -L*)
  7059.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  7060.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
  7061.                       haveit=
  7062.                       if test "X$additional_libdir" = "X/usr/local/lib"; then
  7063.                         if test -n "$GCC"; then
  7064.                           case $host_os in
  7065.                             linux*) haveit=yes;;
  7066.                           esac
  7067.                         fi
  7068.                       fi
  7069.                       if test -z "$haveit"; then
  7070.                         haveit=
  7071.                         for x in $LDFLAGS $LIBEXPAT; do

  7072.   acl_save_prefix="$prefix"
  7073.   prefix="$acl_final_prefix"
  7074.   acl_save_exec_prefix="$exec_prefix"
  7075.   exec_prefix="$acl_final_exec_prefix"
  7076.   eval x=\"$x\"
  7077.   exec_prefix="$acl_save_exec_prefix"
  7078.   prefix="$acl_save_prefix"

  7079.                           if test "X$x" = "X-L$additional_libdir"; then
  7080.                             haveit=yes
  7081.                             break
  7082.                           fi
  7083.                         done
  7084.                         if test -z "$haveit"; then
  7085.                           if test -d "$additional_libdir"; then
  7086.                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
  7087.                           fi
  7088.                         fi
  7089.                         haveit=
  7090.                         for x in $LDFLAGS $LTLIBEXPAT; do

  7091.   acl_save_prefix="$prefix"
  7092.   prefix="$acl_final_prefix"
  7093.   acl_save_exec_prefix="$exec_prefix"
  7094.   exec_prefix="$acl_final_exec_prefix"
  7095.   eval x=\"$x\"
  7096.   exec_prefix="$acl_save_exec_prefix"
  7097.   prefix="$acl_save_prefix"

  7098.                           if test "X$x" = "X-L$additional_libdir"; then
  7099.                             haveit=yes
  7100.                             break
  7101.                           fi
  7102.                         done
  7103.                         if test -z "$haveit"; then
  7104.                           if test -d "$additional_libdir"; then
  7105.                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
  7106.                           fi
  7107.                         fi
  7108.                       fi
  7109.                     fi
  7110.                     ;;
  7111.                   -R*)
  7112.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  7113.                     if test "$enable_rpath" != no; then
  7114.                                                                   haveit=
  7115.                       for x in $rpathdirs; do
  7116.                         if test "X$x" = "X$dir"; then
  7117.                           haveit=yes
  7118.                           break
  7119.                         fi
  7120.                       done
  7121.                       if test -z "$haveit"; then
  7122.                         rpathdirs="$rpathdirs $dir"
  7123.                       fi
  7124.                                                                   haveit=
  7125.                       for x in $ltrpathdirs; do
  7126.                         if test "X$x" = "X$dir"; then
  7127.                           haveit=yes
  7128.                           break
  7129.                         fi
  7130.                       done
  7131.                       if test -z "$haveit"; then
  7132.                         ltrpathdirs="$ltrpathdirs $dir"
  7133.                       fi
  7134.                     fi
  7135.                     ;;
  7136.                   -l*)
  7137.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  7138.                     ;;
  7139.                   *.la)
  7140.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  7141.                     ;;
  7142.                   *)
  7143.                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
  7144.                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
  7145.                     ;;
  7146.                 esac
  7147.               done
  7148.             fi
  7149.           else
  7150.                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
  7151.             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
  7152.           fi
  7153.         fi
  7154.       fi
  7155.     done
  7156.   done
  7157.   if test "X$rpathdirs" != "X"; then
  7158.     if test -n "$hardcode_libdir_separator"; then
  7159.                         alldirs=
  7160.       for found_dir in $rpathdirs; do
  7161.         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  7162.       done
  7163.             acl_save_libdir="$libdir"
  7164.       libdir="$alldirs"
  7165.       eval flag=\"$hardcode_libdir_flag_spec\"
  7166.       libdir="$acl_save_libdir"
  7167.       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
  7168.     else
  7169.             for found_dir in $rpathdirs; do
  7170.         acl_save_libdir="$libdir"
  7171.         libdir="$found_dir"
  7172.         eval flag=\"$hardcode_libdir_flag_spec\"
  7173.         libdir="$acl_save_libdir"
  7174.         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
  7175.       done
  7176.     fi
  7177.   fi
  7178.   if test "X$ltrpathdirs" != "X"; then
  7179.             for found_dir in $ltrpathdirs; do
  7180.       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
  7181.     done
  7182.   fi


  7183.         ac_save_CPPFLAGS="$CPPFLAGS"

  7184.   for element in $INCEXPAT; do
  7185.     haveit=
  7186.     for x in $CPPFLAGS; do

  7187.   acl_save_prefix="$prefix"
  7188.   prefix="$acl_final_prefix"
  7189.   acl_save_exec_prefix="$exec_prefix"
  7190.   exec_prefix="$acl_final_exec_prefix"
  7191.   eval x=\"$x\"
  7192.   exec_prefix="$acl_save_exec_prefix"
  7193.   prefix="$acl_save_prefix"

  7194.       if test "X$x" = "X$element"; then
  7195.         haveit=yes
  7196.         break
  7197.       fi
  7198.     done
  7199.     if test -z "$haveit"; then
  7200.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  7201.     fi
  7202.   done


  7203.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
  7204. $as_echo_n "checking for libexpat... " >&6; }
  7205. if test "${ac_cv_libexpat+set}" = set; then :
  7206.   $as_echo_n "(cached) " >&6
  7207. else

  7208.     ac_save_LIBS="$LIBS"
  7209.     LIBS="$LIBS $LIBEXPAT"
  7210.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7211. /* end confdefs.h.  */
  7212. #include "expat.h"
  7213. int
  7214. main ()
  7215. {
  7216. XML_Parser p = XML_ParserCreate (0);
  7217.   ;
  7218.   return 0;
  7219. }
  7220. _ACEOF
  7221. if ac_fn_c_try_link "$LINENO"; then :
  7222.   ac_cv_libexpat=yes
  7223. else
  7224.   ac_cv_libexpat=no
  7225. fi
  7226. rm -f core conftest.err conftest.$ac_objext \
  7227.     conftest$ac_exeext conftest.$ac_ext
  7228.     LIBS="$ac_save_LIBS"

  7229. fi
  7230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
  7231. $as_echo "$ac_cv_libexpat" >&6; }
  7232.   if test "$ac_cv_libexpat" = yes; then
  7233.     HAVE_LIBEXPAT=yes

  7234. $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h

  7235.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
  7236. $as_echo_n "checking how to link with libexpat... " >&6; }
  7237.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
  7238. $as_echo "$LIBEXPAT" >&6; }
  7239.   else
  7240.     HAVE_LIBEXPAT=no
  7241.             CPPFLAGS="$ac_save_CPPFLAGS"
  7242.     LIBEXPAT=
  7243.     LTLIBEXPAT=
  7244.   fi






  7245.   if test "$HAVE_LIBEXPAT" != yes; then
  7246.     if test "$with_expat" = yes; then
  7247.       as_fn_error "expat is missing or unusable" "$LINENO" 5
  7248.     else
  7249.       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
  7250. $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
  7251.     fi
  7252.   else
  7253.     save_LIBS=$LIBS
  7254.     LIBS="$LIBS $LIBEXPAT"
  7255.     for ac_func in XML_StopParser
  7256. do :
  7257.   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
  7258. if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
  7259.   cat >>confdefs.h <<_ACEOF
  7260. #define HAVE_XML_STOPPARSER 1
  7261. _ACEOF

  7262. fi
  7263. done

  7264.     LIBS=$save_LIBS
  7265.   fi
  7266. fi

  7267. # --------------------- #
  7268. # Check for libpython.  #
  7269. # --------------------- #






  7270. # Check whether --with-python was given.
  7271. if test "${with_python+set}" = set; then :
  7272.   withval=$with_python;
  7273. else
  7274.   with_python=auto
  7275. fi

  7276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
  7277. $as_echo_n "checking whether to use python... " >&6; }
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
  7279. $as_echo "$with_python" >&6; }

  7280. if test "${with_python}" = no; then
  7281.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
  7282. $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
  7283.   have_libpython=no
  7284. else
  7285.   case "${with_python}" in
  7286.   [\\/]* | ?:[\\/]*)
  7287.     if test -d ${with_python}; then
  7288.       # Assume the python binary is ${with_python}/bin/python.
  7289.       python_prog="${with_python}/bin/python"
  7290.       python_prefix=
  7291.       # If python does not exit ${with_python}/bin, then try in
  7292.       # ${with_python}.  On Windows/MinGW, this is where the Python
  7293.       # executable is.
  7294.       if test ! -x "${python_prog}"; then
  7295.         python_prog="${with_python}/python"
  7296.         python_prefix=
  7297.       fi
  7298.       if test ! -x "${python_prog}"; then
  7299.         # Fall back to gdb 7.0/7.1 behaviour.
  7300.         python_prog=missing
  7301.         python_prefix=${with_python}
  7302.       fi
  7303.     elif test -x "${with_python}"; then
  7304.       # While we can't run python compiled for $host (unless host == build),
  7305.       # the user could write a script that provides the needed information,
  7306.       # so we support that.
  7307.       python_prog=${with_python}
  7308.       python_prefix=
  7309.     else
  7310.       as_fn_error "invalid value for --with-python" "$LINENO" 5
  7311.     fi
  7312.     ;;
  7313.   */*)
  7314.     # Disallow --with-python=foo/bar.
  7315.     as_fn_error "invalid value for --with-python" "$LINENO" 5
  7316.     ;;
  7317.   *)
  7318.     # The user has either specified auto, yes, or the name of the python
  7319.     # program assumed to be in $PATH.
  7320.     python_prefix=
  7321.     case "${with_python}" in
  7322.     yes | auto)
  7323.       if test ${build} = ${host}; then
  7324.         # Extract the first word of "python", so it can be a program name with args.
  7325. set dummy python; ac_word=$2
  7326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7327. $as_echo_n "checking for $ac_word... " >&6; }
  7328. if test "${ac_cv_path_python_prog_path+set}" = set; then :
  7329.   $as_echo_n "(cached) " >&6
  7330. else
  7331.   case $python_prog_path in
  7332.   [\\/]* | ?:[\\/]*)
  7333.   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
  7334.   ;;
  7335.   *)
  7336.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7337. for as_dir in $PATH
  7338. do
  7339.   IFS=$as_save_IFS
  7340.   test -z "$as_dir" && as_dir=.
  7341.     for ac_exec_ext in '' $ac_executable_extensions; do
  7342.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7343.     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
  7344.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7345.     break 2
  7346.   fi
  7347. done
  7348.   done
  7349. IFS=$as_save_IFS

  7350.   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
  7351.   ;;
  7352. esac
  7353. fi
  7354. python_prog_path=$ac_cv_path_python_prog_path
  7355. if test -n "$python_prog_path"; then
  7356.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
  7357. $as_echo "$python_prog_path" >&6; }
  7358. else
  7359.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7360. $as_echo "no" >&6; }
  7361. fi


  7362.         if test "${python_prog_path}" = missing; then
  7363.           python_prog=missing
  7364.         else
  7365.           python_prog=${python_prog_path}
  7366.         fi
  7367.       else
  7368.         # Not much we can do except assume the cross-compiler will find the
  7369.         # right files.
  7370.         python_prog=missing
  7371.       fi
  7372.       ;;
  7373.     *)
  7374.       # While we can't run python compiled for $host (unless host == build),
  7375.       # the user could write a script that provides the needed information,
  7376.       # so we support that.
  7377.       python_prog="${with_python}"
  7378.       # Extract the first word of "${python_prog}", so it can be a program name with args.
  7379. set dummy ${python_prog}; ac_word=$2
  7380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7381. $as_echo_n "checking for $ac_word... " >&6; }
  7382. if test "${ac_cv_path_python_prog_path+set}" = set; then :
  7383.   $as_echo_n "(cached) " >&6
  7384. else
  7385.   case $python_prog_path in
  7386.   [\\/]* | ?:[\\/]*)
  7387.   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
  7388.   ;;
  7389.   *)
  7390.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7391. for as_dir in $PATH
  7392. do
  7393.   IFS=$as_save_IFS
  7394.   test -z "$as_dir" && as_dir=.
  7395.     for ac_exec_ext in '' $ac_executable_extensions; do
  7396.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7397.     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
  7398.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7399.     break 2
  7400.   fi
  7401. done
  7402.   done
  7403. IFS=$as_save_IFS

  7404.   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
  7405.   ;;
  7406. esac
  7407. fi
  7408. python_prog_path=$ac_cv_path_python_prog_path
  7409. if test -n "$python_prog_path"; then
  7410.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
  7411. $as_echo "$python_prog_path" >&6; }
  7412. else
  7413.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7414. $as_echo "no" >&6; }
  7415. fi


  7416.       if test "${python_prog_path}" = missing; then
  7417.         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
  7418.       fi
  7419.       ;;
  7420.     esac
  7421.   esac

  7422.   if test "${python_prog}" != missing; then
  7423.     # We have a python program to use, but it may be too old.
  7424.     # Don't flag an error for --with-python=auto (the default).
  7425.     have_python_config=yes
  7426.     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
  7427.     if test $? != 0; then
  7428.       have_python_config=failed
  7429.       if test "${with_python}" != auto; then
  7430.         as_fn_error "failure running python-config --includes" "$LINENO" 5
  7431.       fi
  7432.     fi
  7433.     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
  7434.     if test $? != 0; then
  7435.       have_python_config=failed
  7436.       if test "${with_python}" != auto; then
  7437.         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
  7438.       fi
  7439.     fi
  7440.     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
  7441.     if test $? != 0; then
  7442.       have_python_config=failed
  7443.       if test "${with_python}" != auto; then
  7444.         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
  7445.       fi
  7446.     fi
  7447.   else
  7448.     # We do not have a python executable we can use to determine where
  7449.     # to find the Python headers and libs.  We cannot guess the include
  7450.     # path from the python_prefix either, because that include path
  7451.     # depends on the Python version.  So, there is nothing much we can
  7452.     # do except assume that the compiler will be able to find those files.
  7453.     python_includes=
  7454.     python_libs=
  7455.     have_python_config=no
  7456.   fi

  7457.   # If we have python-config, only try the configuration it provides.
  7458.   # Otherwise fallback on the old way of trying different versions of
  7459.   # python in turn.

  7460.   have_libpython=no
  7461.   if test "${have_python_config}" = yes; then
  7462.     # Determine the Python version by extracting "-lpython<version>"
  7463.     # part of the python_libs. <version> is usually X.Y with X and Y
  7464.     # being decimal numbers, but can also be XY (seen on Windows).
  7465.     #
  7466.     # The extraction is performed using sed with a regular expression.
  7467.     # Initially, the regexp used was using the '?' quantifier to make
  7468.     # the dot in the version number optional.  Unfortunately, this
  7469.     # does not work with non-GNU versions of sed because, because of
  7470.     # what looks like a limitation (the '?' quantifier does not work
  7471.     # with back-references).  We work around this limitation by using
  7472.     # the '*' quantifier instead.  It means that, in theory, we might
  7473.     # match unexpected version strings such as "-lpython2..7", but
  7474.     # this seems unlikely in practice.  And even if that happens,
  7475.     # an error will be triggered later on, when checking that version
  7476.     # number.
  7477.     python_version=`echo " ${python_libs} " \
  7478.                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
  7479.     case "${python_version}" in
  7480.     python*)

  7481.   version=${python_version}

  7482.   new_CPPFLAGS=${python_includes}
  7483.   new_LIBS=${python_libs}
  7484.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
  7485. $as_echo_n "checking for ${version}... " >&6; }
  7486.   save_CPPFLAGS=$CPPFLAGS
  7487.   save_LIBS=$LIBS
  7488.   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  7489.   LIBS="$LIBS $new_LIBS"
  7490.   found_usable_python=no
  7491.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7492. /* end confdefs.h.  */
  7493. #include "Python.h"
  7494. int
  7495. main ()
  7496. {
  7497. Py_Initialize ();
  7498.   ;
  7499.   return 0;
  7500. }
  7501. _ACEOF
  7502. if ac_fn_c_try_link "$LINENO"; then :
  7503.   have_libpython=${version}
  7504.                   found_usable_python=yes
  7505.                   PYTHON_CPPFLAGS=$new_CPPFLAGS
  7506.                   PYTHON_LIBS=$new_LIBS
  7507. fi
  7508. rm -f core conftest.err conftest.$ac_objext \
  7509.     conftest$ac_exeext conftest.$ac_ext
  7510.   CPPFLAGS=$save_CPPFLAGS
  7511.   LIBS=$save_LIBS
  7512.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
  7513. $as_echo "${found_usable_python}" >&6; }

  7514.       ;;
  7515.     *)
  7516.       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
  7517.       ;;
  7518.     esac
  7519.   elif test "${have_python_config}" != failed; then
  7520.     if test "${have_libpython}" = no; then

  7521.   version=python2.7

  7522.   new_CPPFLAGS=${python_includes}
  7523.   new_LIBS="${python_libs} -lpython2.7"
  7524.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
  7525. $as_echo_n "checking for ${version}... " >&6; }
  7526.   save_CPPFLAGS=$CPPFLAGS
  7527.   save_LIBS=$LIBS
  7528.   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  7529.   LIBS="$LIBS $new_LIBS"
  7530.   found_usable_python=no
  7531.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7532. /* end confdefs.h.  */
  7533. #include "Python.h"
  7534. int
  7535. main ()
  7536. {
  7537. Py_Initialize ();
  7538.   ;
  7539.   return 0;
  7540. }
  7541. _ACEOF
  7542. if ac_fn_c_try_link "$LINENO"; then :
  7543.   have_libpython=${version}
  7544.                   found_usable_python=yes
  7545.                   PYTHON_CPPFLAGS=$new_CPPFLAGS
  7546.                   PYTHON_LIBS=$new_LIBS
  7547. fi
  7548. rm -f core conftest.err conftest.$ac_objext \
  7549.     conftest$ac_exeext conftest.$ac_ext
  7550.   CPPFLAGS=$save_CPPFLAGS
  7551.   LIBS=$save_LIBS
  7552.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
  7553. $as_echo "${found_usable_python}" >&6; }

  7554.     fi
  7555.     if test "${have_libpython}" = no; then

  7556.   version=python2.6

  7557.   new_CPPFLAGS=${python_includes}
  7558.   new_LIBS="${python_libs} -lpython2.6"
  7559.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
  7560. $as_echo_n "checking for ${version}... " >&6; }
  7561.   save_CPPFLAGS=$CPPFLAGS
  7562.   save_LIBS=$LIBS
  7563.   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  7564.   LIBS="$LIBS $new_LIBS"
  7565.   found_usable_python=no
  7566.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7567. /* end confdefs.h.  */
  7568. #include "Python.h"
  7569. int
  7570. main ()
  7571. {
  7572. Py_Initialize ();
  7573.   ;
  7574.   return 0;
  7575. }
  7576. _ACEOF
  7577. if ac_fn_c_try_link "$LINENO"; then :
  7578.   have_libpython=${version}
  7579.                   found_usable_python=yes
  7580.                   PYTHON_CPPFLAGS=$new_CPPFLAGS
  7581.                   PYTHON_LIBS=$new_LIBS
  7582. fi
  7583. rm -f core conftest.err conftest.$ac_objext \
  7584.     conftest$ac_exeext conftest.$ac_ext
  7585.   CPPFLAGS=$save_CPPFLAGS
  7586.   LIBS=$save_LIBS
  7587.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
  7588. $as_echo "${found_usable_python}" >&6; }

  7589.     fi
  7590.     if test ${have_libpython} = no; then

  7591.   version=python2.5

  7592.   new_CPPFLAGS=${python_includes}
  7593.   new_LIBS="${python_libs} -lpython2.5"
  7594.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
  7595. $as_echo_n "checking for ${version}... " >&6; }
  7596.   save_CPPFLAGS=$CPPFLAGS
  7597.   save_LIBS=$LIBS
  7598.   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  7599.   LIBS="$LIBS $new_LIBS"
  7600.   found_usable_python=no
  7601.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7602. /* end confdefs.h.  */
  7603. #include "Python.h"
  7604. int
  7605. main ()
  7606. {
  7607. Py_Initialize ();
  7608.   ;
  7609.   return 0;
  7610. }
  7611. _ACEOF
  7612. if ac_fn_c_try_link "$LINENO"; then :
  7613.   have_libpython=${version}
  7614.                   found_usable_python=yes
  7615.                   PYTHON_CPPFLAGS=$new_CPPFLAGS
  7616.                   PYTHON_LIBS=$new_LIBS
  7617. fi
  7618. rm -f core conftest.err conftest.$ac_objext \
  7619.     conftest$ac_exeext conftest.$ac_ext
  7620.   CPPFLAGS=$save_CPPFLAGS
  7621.   LIBS=$save_LIBS
  7622.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
  7623. $as_echo "${found_usable_python}" >&6; }

  7624.     fi
  7625.     if test ${have_libpython} = no; then

  7626.   version=python2.4

  7627.   new_CPPFLAGS=${python_includes}
  7628.   new_LIBS="${python_libs} -lpython2.4"
  7629.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
  7630. $as_echo_n "checking for ${version}... " >&6; }
  7631.   save_CPPFLAGS=$CPPFLAGS
  7632.   save_LIBS=$LIBS
  7633.   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  7634.   LIBS="$LIBS $new_LIBS"
  7635.   found_usable_python=no
  7636.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7637. /* end confdefs.h.  */
  7638. #include "Python.h"
  7639. int
  7640. main ()
  7641. {
  7642. Py_Initialize ();
  7643.   ;
  7644.   return 0;
  7645. }
  7646. _ACEOF
  7647. if ac_fn_c_try_link "$LINENO"; then :
  7648.   have_libpython=${version}
  7649.                   found_usable_python=yes
  7650.                   PYTHON_CPPFLAGS=$new_CPPFLAGS
  7651.                   PYTHON_LIBS=$new_LIBS
  7652. fi
  7653. rm -f core conftest.err conftest.$ac_objext \
  7654.     conftest$ac_exeext conftest.$ac_ext
  7655.   CPPFLAGS=$save_CPPFLAGS
  7656.   LIBS=$save_LIBS
  7657.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
  7658. $as_echo "${found_usable_python}" >&6; }

  7659.     fi
  7660.   fi
  7661.   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then

  7662. $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h

  7663.   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then

  7664. $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h

  7665.   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then

  7666. $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h

  7667.   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then

  7668. $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h

  7669.   fi

  7670.   if test "${have_libpython}" = no; then
  7671.     case "${with_python}" in
  7672.     yes)
  7673.       as_fn_error "python is missing or unusable" "$LINENO" 5
  7674.       ;;
  7675.     auto)
  7676.       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
  7677. $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
  7678.       ;;
  7679.     *)
  7680.       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
  7681.       ;;
  7682.     esac
  7683.   else
  7684.     if test -n "${python_prefix}"; then

  7685. cat >>confdefs.h <<_ACEOF
  7686. #define WITH_PYTHON_PATH "${python_prefix}"
  7687. _ACEOF


  7688.   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  7689.      if test "x$prefix" = xNONE; then
  7690.              test_prefix=/usr/local
  7691.      else
  7692.         test_prefix=$prefix
  7693.      fi
  7694.   else
  7695.      test_prefix=$exec_prefix
  7696.   fi
  7697.   value=0
  7698.   case ${python_prefix} in
  7699.      "${test_prefix}"|"${test_prefix}/"*|\
  7700.         '${exec_prefix}'|'${exec_prefix}/'*)
  7701.      value=1
  7702.      ;;
  7703.   esac

  7704. cat >>confdefs.h <<_ACEOF
  7705. #define PYTHON_PATH_RELOCATABLE $value
  7706. _ACEOF


  7707.     fi
  7708.   fi
  7709. fi

  7710. if test "${have_libpython}" != no; then

  7711. $as_echo "#define HAVE_PYTHON 1" >>confdefs.h

  7712.   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
  7713.   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
  7714.   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
  7715.   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
  7716.   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"

  7717.   # Flags needed to compile Python code (taken from python-config --cflags).
  7718.   # We cannot call python-config directly because it will output whatever was
  7719.   # used when compiling the Python interpreter itself, including flags which
  7720.   # would make the python-related objects be compiled differently from the
  7721.   # rest of GDB (e.g., -O2 and -fPIC).
  7722.   if test "${GCC}" = yes; then
  7723.     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
  7724.   fi

  7725.   if test "x${tentative_python_cflags}" != x; then
  7726.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
  7727. $as_echo_n "checking compiler flags for python code... " >&6; }
  7728.     for flag in ${tentative_python_cflags}; do
  7729.       # Check that the compiler accepts it
  7730.       saved_CFLAGS="$CFLAGS"
  7731.       CFLAGS="$CFLAGS $flag"
  7732.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7733. /* end confdefs.h.  */

  7734. int
  7735. main ()
  7736. {

  7737.   ;
  7738.   return 0;
  7739. }
  7740. _ACEOF
  7741. if ac_fn_c_try_compile "$LINENO"; then :
  7742.   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
  7743. fi
  7744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7745.       CFLAGS="$saved_CFLAGS"
  7746.     done
  7747.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
  7748. $as_echo "${PYTHON_CFLAGS}" >&6; }
  7749.   fi

  7750.   # On x64 Windows, Python's include headers, and pyconfig.h in
  7751.   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
  7752.   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
  7753.   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
  7754.   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
  7755.   # The issue was reported to the Python community, but still isn't
  7756.   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).

  7757.   case "$gdb_host" in
  7758.     mingw64)
  7759.            if test "${GCC}" = yes; then
  7760.              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
  7761.            fi
  7762.            ;;
  7763.   esac

  7764.   # Note that "python -m threading" cannot be used to check for
  7765.   # threading support due to a bug in Python 2.7.3
  7766.   # (http://bugs.python.org/issue15567).
  7767.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
  7768. $as_echo_n "checking whether python supports threads... " >&6; }
  7769.   saved_CPPFLAGS="${CPPFLAGS}"
  7770.   CPPFLAGS="${PYTHON_CPPFLAGS}"
  7771.   # Note that the test is reversed so that python_has_threads=yes on
  7772.   # unexpected failures.
  7773.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7774. /* end confdefs.h.  */

  7775. #include <Python.h>
  7776. #ifdef WITH_THREAD
  7777. # error
  7778. #endif

  7779. _ACEOF
  7780. if ac_fn_c_try_cpp "$LINENO"; then :
  7781.   python_has_threads=no
  7782. else
  7783.   python_has_threads=yes
  7784. fi
  7785. rm -f conftest.err conftest.$ac_ext
  7786.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
  7787. $as_echo "${python_has_threads}" >&6; }
  7788.   CPPFLAGS="${saved_CPPFLAGS}"
  7789. else
  7790.   # Even if Python support is not compiled in, we need to have this file
  7791.   # included so that the "python" command, et.al., still exists.
  7792.   CONFIG_OBS="$CONFIG_OBS python.o"
  7793.   CONFIG_SRCS="$CONFIG_SRCS python/python.c"
  7794. fi



  7795. if test "${have_libpython}" != no; then
  7796.   HAVE_PYTHON_TRUE=
  7797.   HAVE_PYTHON_FALSE='#'
  7798. else
  7799.   HAVE_PYTHON_TRUE='#'
  7800.   HAVE_PYTHON_FALSE=
  7801. fi


  7802. # -------------------- #
  7803. # Check for libguile.  #
  7804. # -------------------- #






  7805. # Check whether --with-guile was given.
  7806. if test "${with_guile+set}" = set; then :
  7807.   withval=$with_guile;
  7808. else
  7809.   with_guile=auto
  7810. fi

  7811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
  7812. $as_echo_n "checking whether to use guile... " >&6; }
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
  7814. $as_echo "$with_guile" >&6; }

  7815. # Extract the first word of "pkg-config", so it can be a program name with args.
  7816. set dummy pkg-config; ac_word=$2
  7817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7818. $as_echo_n "checking for $ac_word... " >&6; }
  7819. if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
  7820.   $as_echo_n "(cached) " >&6
  7821. else
  7822.   case $pkg_config_prog_path in
  7823.   [\\/]* | ?:[\\/]*)
  7824.   ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
  7825.   ;;
  7826.   *)
  7827.   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7828. for as_dir in $PATH
  7829. do
  7830.   IFS=$as_save_IFS
  7831.   test -z "$as_dir" && as_dir=.
  7832.     for ac_exec_ext in '' $ac_executable_extensions; do
  7833.   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7834.     ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
  7835.     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7836.     break 2
  7837.   fi
  7838. done
  7839.   done
  7840. IFS=$as_save_IFS

  7841.   test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
  7842.   ;;
  7843. esac
  7844. fi
  7845. pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
  7846. if test -n "$pkg_config_prog_path"; then
  7847.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
  7848. $as_echo "$pkg_config_prog_path" >&6; }
  7849. else
  7850.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7851. $as_echo "no" >&6; }
  7852. fi



  7853. try_guile_versions="guile-2.2 guile-2.0"
  7854. have_libguile=no
  7855. case "${with_guile}" in
  7856. no)
  7857.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
  7858. $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
  7859.   ;;
  7860. auto)
  7861.   if test "${pkg_config_prog_path}" = "missing"; then
  7862.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
  7863. $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
  7864.   else

  7865.   pkg_config=${pkg_config_prog_path}
  7866.   guile_version_list=${try_guile_versions}
  7867.   flag_errors=no

  7868.   found_usable_guile=checking
  7869.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
  7870. $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
  7871.   for guile_version in ${guile_version_list}; do
  7872.     ${pkg_config} --exists ${guile_version} 2>/dev/null
  7873.     if test $? != 0; then
  7874.       continue
  7875.     fi
  7876.             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
  7877.     if test $? != 0; then
  7878.       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
  7879.     fi
  7880.     new_LIBS=`${pkg_config} --libs ${guile_version}`
  7881.     if test $? != 0; then
  7882.       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
  7883.     fi
  7884.         found_usable_guile=${guile_version}
  7885.     break
  7886.   done
  7887.   if test "${found_usable_guile}" = "checking"; then
  7888.     if test "${flag_errors}" = "yes"; then
  7889.       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
  7890.     else
  7891.       found_usable_guile=no
  7892.     fi
  7893.   fi
  7894.       if test "${found_usable_guile}" != no; then
  7895.     save_CPPFLAGS=$CPPFLAGS
  7896.     save_LIBS=$LIBS
  7897.     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  7898.     LIBS="$LIBS $new_LIBS"
  7899.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7900. /* end confdefs.h.  */
  7901. #include "libguile.h"
  7902. int
  7903. main ()
  7904. {
  7905. scm_init_guile ();
  7906.   ;
  7907.   return 0;
  7908. }
  7909. _ACEOF
  7910. if ac_fn_c_try_link "$LINENO"; then :
  7911.   have_libguile=yes
  7912.                     GUILE_CPPFLAGS=$new_CPPFLAGS
  7913.                     GUILE_LIBS=$new_LIBS
  7914. else
  7915.   found_usable_guile=no
  7916. fi
  7917. rm -f core conftest.err conftest.$ac_objext \
  7918.     conftest$ac_exeext conftest.$ac_ext
  7919.     CPPFLAGS=$save_CPPFLAGS
  7920.     LIBS=$save_LIBS
  7921.     if test "${found_usable_guile}" = no; then
  7922.       if test "${flag_errors}" = yes; then
  7923.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7924. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7925. as_fn_error "linking guile version ${guile_version} test program failed
  7926. See \`config.log' for more details." "$LINENO" 5; }
  7927.       fi
  7928.     fi
  7929.   fi
  7930.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
  7931. $as_echo "${found_usable_guile}" >&6; }

  7932.   fi
  7933.   ;;
  7934. yes)
  7935.   if test "${pkg_config_prog_path}" = "missing"; then
  7936.     as_fn_error "pkg-config not found" "$LINENO" 5
  7937.   fi

  7938.   pkg_config=${pkg_config_prog_path}
  7939.   guile_version_list=${try_guile_versions}
  7940.   flag_errors=yes

  7941.   found_usable_guile=checking
  7942.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
  7943. $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
  7944.   for guile_version in ${guile_version_list}; do
  7945.     ${pkg_config} --exists ${guile_version} 2>/dev/null
  7946.     if test $? != 0; then
  7947.       continue
  7948.     fi
  7949.             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
  7950.     if test $? != 0; then
  7951.       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
  7952.     fi
  7953.     new_LIBS=`${pkg_config} --libs ${guile_version}`
  7954.     if test $? != 0; then
  7955.       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
  7956.     fi
  7957.         found_usable_guile=${guile_version}
  7958.     break
  7959.   done
  7960.   if test "${found_usable_guile}" = "checking"; then
  7961.     if test "${flag_errors}" = "yes"; then
  7962.       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
  7963.     else
  7964.       found_usable_guile=no
  7965.     fi
  7966.   fi
  7967.       if test "${found_usable_guile}" != no; then
  7968.     save_CPPFLAGS=$CPPFLAGS
  7969.     save_LIBS=$LIBS
  7970.     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  7971.     LIBS="$LIBS $new_LIBS"
  7972.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7973. /* end confdefs.h.  */
  7974. #include "libguile.h"
  7975. int
  7976. main ()
  7977. {
  7978. scm_init_guile ();
  7979.   ;
  7980.   return 0;
  7981. }
  7982. _ACEOF
  7983. if ac_fn_c_try_link "$LINENO"; then :
  7984.   have_libguile=yes
  7985.                     GUILE_CPPFLAGS=$new_CPPFLAGS
  7986.                     GUILE_LIBS=$new_LIBS
  7987. else
  7988.   found_usable_guile=no
  7989. fi
  7990. rm -f core conftest.err conftest.$ac_objext \
  7991.     conftest$ac_exeext conftest.$ac_ext
  7992.     CPPFLAGS=$save_CPPFLAGS
  7993.     LIBS=$save_LIBS
  7994.     if test "${found_usable_guile}" = no; then
  7995.       if test "${flag_errors}" = yes; then
  7996.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7998. as_fn_error "linking guile version ${guile_version} test program failed
  7999. See \`config.log' for more details." "$LINENO" 5; }
  8000.       fi
  8001.     fi
  8002.   fi
  8003.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
  8004. $as_echo "${found_usable_guile}" >&6; }

  8005.   ;;
  8006. [\\/]* | ?:[\\/]*)
  8007.   if test -x "${with_guile}"; then

  8008.   pkg_config=${with_guile}
  8009.   guile_version_list=${try_guile_versions}
  8010.   flag_errors=yes

  8011.   found_usable_guile=checking
  8012.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
  8013. $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
  8014.   for guile_version in ${guile_version_list}; do
  8015.     ${pkg_config} --exists ${guile_version} 2>/dev/null
  8016.     if test $? != 0; then
  8017.       continue
  8018.     fi
  8019.             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
  8020.     if test $? != 0; then
  8021.       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
  8022.     fi
  8023.     new_LIBS=`${pkg_config} --libs ${guile_version}`
  8024.     if test $? != 0; then
  8025.       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
  8026.     fi
  8027.         found_usable_guile=${guile_version}
  8028.     break
  8029.   done
  8030.   if test "${found_usable_guile}" = "checking"; then
  8031.     if test "${flag_errors}" = "yes"; then
  8032.       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
  8033.     else
  8034.       found_usable_guile=no
  8035.     fi
  8036.   fi
  8037.       if test "${found_usable_guile}" != no; then
  8038.     save_CPPFLAGS=$CPPFLAGS
  8039.     save_LIBS=$LIBS
  8040.     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  8041.     LIBS="$LIBS $new_LIBS"
  8042.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8043. /* end confdefs.h.  */
  8044. #include "libguile.h"
  8045. int
  8046. main ()
  8047. {
  8048. scm_init_guile ();
  8049.   ;
  8050.   return 0;
  8051. }
  8052. _ACEOF
  8053. if ac_fn_c_try_link "$LINENO"; then :
  8054.   have_libguile=yes
  8055.                     GUILE_CPPFLAGS=$new_CPPFLAGS
  8056.                     GUILE_LIBS=$new_LIBS
  8057. else
  8058.   found_usable_guile=no
  8059. fi
  8060. rm -f core conftest.err conftest.$ac_objext \
  8061.     conftest$ac_exeext conftest.$ac_ext
  8062.     CPPFLAGS=$save_CPPFLAGS
  8063.     LIBS=$save_LIBS
  8064.     if test "${found_usable_guile}" = no; then
  8065.       if test "${flag_errors}" = yes; then
  8066.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8067. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8068. as_fn_error "linking guile version ${guile_version} test program failed
  8069. See \`config.log' for more details." "$LINENO" 5; }
  8070.       fi
  8071.     fi
  8072.   fi
  8073.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
  8074. $as_echo "${found_usable_guile}" >&6; }

  8075.   else
  8076.     as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
  8077.   fi
  8078.   ;;
  8079. "" | */*)
  8080.   # Disallow --with=guile="" and --with-guile=foo/bar.
  8081.   as_fn_error "invalid value for --with-guile" "$LINENO" 5
  8082.   ;;
  8083. *)
  8084.   # A space separate list of guile versions to try, in order.
  8085.   if test "${pkg_config_prog_path}" = "missing"; then
  8086.     as_fn_error "pkg-config not found" "$LINENO" 5
  8087.   fi

  8088.   pkg_config=${pkg_config_prog_path}
  8089.   guile_version_list=${with_guile}
  8090.   flag_errors=yes

  8091.   found_usable_guile=checking
  8092.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
  8093. $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
  8094.   for guile_version in ${guile_version_list}; do
  8095.     ${pkg_config} --exists ${guile_version} 2>/dev/null
  8096.     if test $? != 0; then
  8097.       continue
  8098.     fi
  8099.             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
  8100.     if test $? != 0; then
  8101.       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
  8102.     fi
  8103.     new_LIBS=`${pkg_config} --libs ${guile_version}`
  8104.     if test $? != 0; then
  8105.       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
  8106.     fi
  8107.         found_usable_guile=${guile_version}
  8108.     break
  8109.   done
  8110.   if test "${found_usable_guile}" = "checking"; then
  8111.     if test "${flag_errors}" = "yes"; then
  8112.       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
  8113.     else
  8114.       found_usable_guile=no
  8115.     fi
  8116.   fi
  8117.       if test "${found_usable_guile}" != no; then
  8118.     save_CPPFLAGS=$CPPFLAGS
  8119.     save_LIBS=$LIBS
  8120.     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
  8121.     LIBS="$LIBS $new_LIBS"
  8122.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8123. /* end confdefs.h.  */
  8124. #include "libguile.h"
  8125. int
  8126. main ()
  8127. {
  8128. scm_init_guile ();
  8129.   ;
  8130.   return 0;
  8131. }
  8132. _ACEOF
  8133. if ac_fn_c_try_link "$LINENO"; then :
  8134.   have_libguile=yes
  8135.                     GUILE_CPPFLAGS=$new_CPPFLAGS
  8136.                     GUILE_LIBS=$new_LIBS
  8137. else
  8138.   found_usable_guile=no
  8139. fi
  8140. rm -f core conftest.err conftest.$ac_objext \
  8141.     conftest$ac_exeext conftest.$ac_ext
  8142.     CPPFLAGS=$save_CPPFLAGS
  8143.     LIBS=$save_LIBS
  8144.     if test "${found_usable_guile}" = no; then
  8145.       if test "${flag_errors}" = yes; then
  8146.         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8147. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8148. as_fn_error "linking guile version ${guile_version} test program failed
  8149. See \`config.log' for more details." "$LINENO" 5; }
  8150.       fi
  8151.     fi
  8152.   fi
  8153.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
  8154. $as_echo "${found_usable_guile}" >&6; }

  8155.   ;;
  8156. esac

  8157. if test "${have_libguile}" != no; then
  8158.     case "${with_guile}" in
  8159.   [\\/]* | ?:[\\/]*)

  8160.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
  8161. $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
  8162. if test "${ac_cv_guild_program_name+set}" = set; then :
  8163.   $as_echo_n "(cached) " >&6
  8164. else
  8165.   ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"

  8166.      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
  8167.      # the 'guild' and 'bindir' variables.  In that case, try to guess
  8168.      # what the program name is, at the risk of getting it wrong if
  8169.      # Guile was configured with '--program-suffix' or similar.
  8170.      if test "x$ac_cv_guild_program_name" = "x"; then
  8171.        guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
  8172.        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
  8173.      fi

  8174. fi
  8175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
  8176. $as_echo "$ac_cv_guild_program_name" >&6; }

  8177.   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
  8178.     as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
  8179.   fi

  8180.   GUILD="$ac_cv_guild_program_name"


  8181.     ;;
  8182.   *)

  8183.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
  8184. $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
  8185. if test "${ac_cv_guild_program_name+set}" = set; then :
  8186.   $as_echo_n "(cached) " >&6
  8187. else
  8188.   ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"

  8189.      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
  8190.      # the 'guild' and 'bindir' variables.  In that case, try to guess
  8191.      # what the program name is, at the risk of getting it wrong if
  8192.      # Guile was configured with '--program-suffix' or similar.
  8193.      if test "x$ac_cv_guild_program_name" = "x"; then
  8194.        guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
  8195.        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
  8196.      fi

  8197. fi
  8198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
  8199. $as_echo "$ac_cv_guild_program_name" >&6; }

  8200.   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
  8201.     as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
  8202.   fi

  8203.   GUILD="$ac_cv_guild_program_name"


  8204.     ;;
  8205.   esac


  8206.   if test "$cross_compiling" = no; then
  8207.     GUILD_TARGET_FLAG=
  8208.   else
  8209.     GUILD_TARGET_FLAG="--target=$host"
  8210.   fi




  8211.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
  8212. $as_echo_n "checking whether guild supports this host... " >&6; }
  8213. if test "${ac_cv_guild_ok+set}" = set; then :
  8214.   $as_echo_n "(cached) " >&6
  8215. else
  8216.   echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
  8217.      if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
  8218.        ac_cv_guild_ok=yes
  8219.      else
  8220.        ac_cv_guild_ok=no
  8221.      fi
  8222. fi
  8223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
  8224. $as_echo "$ac_cv_guild_ok" >&6; }

  8225.     if test "$ac_cv_guild_ok" = no; then
  8226.     have_libguile=no
  8227.     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
  8228. $as_echo "$as_me: WARNING: disabling guile support" >&2;}
  8229.   fi
  8230. fi

  8231. if test "${have_libguile}" != no; then

  8232. $as_echo "#define HAVE_GUILE 1" >>confdefs.h

  8233.   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
  8234.   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
  8235.   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
  8236.   CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
  8237.   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"

  8238.     save_LIBS="$LIBS"
  8239.   save_CPPFLAGS="$CPPFLAGS"
  8240.   LIBS="$GUILE_LIBS"
  8241.   CPPFLAGS="$GUILE_CPPFLAGS"
  8242.   for ac_func in scm_new_smob
  8243. do :
  8244.   ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
  8245. if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
  8246.   cat >>confdefs.h <<_ACEOF
  8247. #define HAVE_SCM_NEW_SMOB 1
  8248. _ACEOF

  8249. fi
  8250. done

  8251.   LIBS="$save_LIBS"
  8252.   CPPFLAGS="$save_CPPFLAGS"
  8253. else
  8254.   # Even if Guile support is not compiled in, we need to have these files
  8255.   # included.
  8256.   CONFIG_OBS="$CONFIG_OBS guile.o"
  8257.   CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
  8258. fi


  8259. if test "${have_libguile}" != no; then
  8260.   HAVE_GUILE_TRUE=
  8261.   HAVE_GUILE_FALSE='#'
  8262. else
  8263.   HAVE_GUILE_TRUE='#'
  8264.   HAVE_GUILE_FALSE=
  8265. fi


  8266. # --------------------- #
  8267. # Check for libmcheck.  #
  8268. # --------------------- #

  8269. # Enable -lmcheck by default (it provides cheap-enough memory mangling),
  8270. # but turn it off if Python is enabled with threads, since -lmcheck is
  8271. # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
  8272. # and for releases.
  8273. if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
  8274.    && $development; then
  8275.   libmcheck_default=yes
  8276. else
  8277.   libmcheck_default=no
  8278. fi

  8279.   # Check whether --enable-libmcheck was given.
  8280. if test "${enable_libmcheck+set}" = set; then :
  8281.   enableval=$enable_libmcheck; case "${enableval}" in
  8282.       yes | y) ENABLE_LIBMCHECK="yes" ;;
  8283.       no | n)  ENABLE_LIBMCHECK="no" ;;
  8284.       *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
  8285.     esac
  8286. fi


  8287.   if test -z "${ENABLE_LIBMCHECK}"; then
  8288.     ENABLE_LIBMCHECK=${libmcheck_default}
  8289.   fi

  8290.   if test "$ENABLE_LIBMCHECK" = "yes" ; then
  8291.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
  8292. $as_echo_n "checking for main in -lmcheck... " >&6; }
  8293. if test "${ac_cv_lib_mcheck_main+set}" = set; then :
  8294.   $as_echo_n "(cached) " >&6
  8295. else
  8296.   ac_check_lib_save_LIBS=$LIBS
  8297. LIBS="-lmcheck  $LIBS"
  8298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8299. /* end confdefs.h.  */


  8300. int
  8301. main ()
  8302. {
  8303. return main ();
  8304.   ;
  8305.   return 0;
  8306. }
  8307. _ACEOF
  8308. if ac_fn_c_try_link "$LINENO"; then :
  8309.   ac_cv_lib_mcheck_main=yes
  8310. else
  8311.   ac_cv_lib_mcheck_main=no
  8312. fi
  8313. rm -f core conftest.err conftest.$ac_objext \
  8314.     conftest$ac_exeext conftest.$ac_ext
  8315. LIBS=$ac_check_lib_save_LIBS
  8316. fi
  8317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
  8318. $as_echo "$ac_cv_lib_mcheck_main" >&6; }
  8319. if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
  8320.   cat >>confdefs.h <<_ACEOF
  8321. #define HAVE_LIBMCHECK 1
  8322. _ACEOF

  8323.   LIBS="-lmcheck $LIBS"

  8324. fi

  8325.   fi


  8326. if test "$ENABLE_LIBMCHECK" = "yes" \
  8327.         -a "${have_libpython}" != "no" \
  8328.         -a "${python_has_threads}" = "yes" ; then
  8329.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
  8330. $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
  8331. fi

  8332. # ------------------------- #
  8333. # Checks for header files.  #
  8334. # ------------------------- #

  8335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  8336. $as_echo_n "checking for ANSI C header files... " >&6; }
  8337. if test "${ac_cv_header_stdc+set}" = set; then :
  8338.   $as_echo_n "(cached) " >&6
  8339. else
  8340.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8341. /* end confdefs.h.  */
  8342. #include <stdlib.h>
  8343. #include <stdarg.h>
  8344. #include <string.h>
  8345. #include <float.h>

  8346. int
  8347. main ()
  8348. {

  8349.   ;
  8350.   return 0;
  8351. }
  8352. _ACEOF
  8353. if ac_fn_c_try_compile "$LINENO"; then :
  8354.   ac_cv_header_stdc=yes
  8355. else
  8356.   ac_cv_header_stdc=no
  8357. fi
  8358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  8359. if test $ac_cv_header_stdc = yes; then
  8360.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  8361.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8362. /* end confdefs.h.  */
  8363. #include <string.h>

  8364. _ACEOF
  8365. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8366.   $EGREP "memchr" >/dev/null 2>&1; then :

  8367. else
  8368.   ac_cv_header_stdc=no
  8369. fi
  8370. rm -f conftest*

  8371. fi

  8372. if test $ac_cv_header_stdc = yes; then
  8373.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  8374.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8375. /* end confdefs.h.  */
  8376. #include <stdlib.h>

  8377. _ACEOF
  8378. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8379.   $EGREP "free" >/dev/null 2>&1; then :

  8380. else
  8381.   ac_cv_header_stdc=no
  8382. fi
  8383. rm -f conftest*

  8384. fi

  8385. if test $ac_cv_header_stdc = yes; then
  8386.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  8387.   if test "$cross_compiling" = yes; then :
  8388.   :
  8389. else
  8390.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8391. /* end confdefs.h.  */
  8392. #include <ctype.h>
  8393. #include <stdlib.h>
  8394. #if ((' ' & 0x0FF) == 0x020)
  8395. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  8396. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  8397. #else
  8398. # define ISLOWER(c) \
  8399.                    (('a' <= (c) && (c) <= 'i') \
  8400.                      || ('j' <= (c) && (c) <= 'r') \
  8401.                      || ('s' <= (c) && (c) <= 'z'))
  8402. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  8403. #endif

  8404. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  8405. int
  8406. main ()
  8407. {
  8408.   int i;
  8409.   for (i = 0; i < 256; i++)
  8410.     if (XOR (islower (i), ISLOWER (i))
  8411.         || toupper (i) != TOUPPER (i))
  8412.       return 2;
  8413.   return 0;
  8414. }
  8415. _ACEOF
  8416. if ac_fn_c_try_run "$LINENO"; then :

  8417. else
  8418.   ac_cv_header_stdc=no
  8419. fi
  8420. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8421.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  8422. fi

  8423. fi
  8424. fi
  8425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  8426. $as_echo "$ac_cv_header_stdc" >&6; }
  8427. if test $ac_cv_header_stdc = yes; then

  8428. $as_echo "#define STDC_HEADERS 1" >>confdefs.h

  8429. fi

  8430. # elf_hp.h is for HP/UX 64-bit shared library support.
  8431. for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
  8432.                   thread_db.h \
  8433.                   sys/fault.h \
  8434.                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
  8435.                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
  8436.                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
  8437.                   termios.h termio.h \
  8438.                   sgtty.h elf_hp.h \
  8439.                   dlfcn.h
  8440. do :
  8441.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8442. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8443. eval as_val=\$$as_ac_Header
  8444.    if test "x$as_val" = x""yes; then :
  8445.   cat >>confdefs.h <<_ACEOF
  8446. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8447. _ACEOF

  8448. fi

  8449. done

  8450. for ac_header in sys/proc.h
  8451. do :
  8452.   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
  8453. # include <sys/param.h>
  8454. #endif

  8455. "
  8456. if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
  8457.   cat >>confdefs.h <<_ACEOF
  8458. #define HAVE_SYS_PROC_H 1
  8459. _ACEOF

  8460. fi

  8461. done

  8462. for ac_header in sys/user.h
  8463. do :
  8464.   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
  8465. # include <sys/param.h>
  8466. #endif

  8467. "
  8468. if test "x$ac_cv_header_sys_user_h" = x""yes; then :
  8469.   cat >>confdefs.h <<_ACEOF
  8470. #define HAVE_SYS_USER_H 1
  8471. _ACEOF

  8472. fi

  8473. done


  8474. # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
  8475. # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
  8476. # think that we don't have <curses.h> if we're using GCC.
  8477. case $host_os in
  8478.   solaris2.[789])
  8479.     if test "$GCC" = yes; then

  8480. $as_echo "#define _MSE_INT_H 1" >>confdefs.h

  8481.     fi ;;
  8482. esac
  8483. for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
  8484. do :
  8485.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8486. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8487. eval as_val=\$$as_ac_Header
  8488.    if test "x$as_val" = x""yes; then :
  8489.   cat >>confdefs.h <<_ACEOF
  8490. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8491. _ACEOF

  8492. fi

  8493. done

  8494. for ac_header in term.h
  8495. do :
  8496.   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
  8497. # include <curses.h>
  8498. #endif

  8499. "
  8500. if test "x$ac_cv_header_term_h" = x""yes; then :
  8501.   cat >>confdefs.h <<_ACEOF
  8502. #define HAVE_TERM_H 1
  8503. _ACEOF

  8504. fi

  8505. done


  8506. # ------------------------- #
  8507. # Checks for declarations.  #
  8508. # ------------------------- #

  8509. ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
  8510. if test "x$ac_cv_have_decl_free" = x""yes; then :
  8511.   ac_have_decl=1
  8512. else
  8513.   ac_have_decl=0
  8514. fi

  8515. cat >>confdefs.h <<_ACEOF
  8516. #define HAVE_DECL_FREE $ac_have_decl
  8517. _ACEOF
  8518. ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
  8519. if test "x$ac_cv_have_decl_malloc" = x""yes; then :
  8520.   ac_have_decl=1
  8521. else
  8522.   ac_have_decl=0
  8523. fi

  8524. cat >>confdefs.h <<_ACEOF
  8525. #define HAVE_DECL_MALLOC $ac_have_decl
  8526. _ACEOF
  8527. ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
  8528. if test "x$ac_cv_have_decl_realloc" = x""yes; then :
  8529.   ac_have_decl=1
  8530. else
  8531.   ac_have_decl=0
  8532. fi

  8533. cat >>confdefs.h <<_ACEOF
  8534. #define HAVE_DECL_REALLOC $ac_have_decl
  8535. _ACEOF
  8536. ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
  8537. if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
  8538.   ac_have_decl=1
  8539. else
  8540.   ac_have_decl=0
  8541. fi

  8542. cat >>confdefs.h <<_ACEOF
  8543. #define HAVE_DECL_SNPRINTF $ac_have_decl
  8544. _ACEOF


  8545.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
  8546. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  8547. if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
  8548.   $as_echo_n "(cached) " >&6
  8549. else
  8550.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8551. /* end confdefs.h.  */
  8552. #include <locale.h>
  8553. int
  8554. main ()
  8555. {
  8556. return LC_MESSAGES
  8557.   ;
  8558.   return 0;
  8559. }
  8560. _ACEOF
  8561. if ac_fn_c_try_link "$LINENO"; then :
  8562.   am_cv_val_LC_MESSAGES=yes
  8563. else
  8564.   am_cv_val_LC_MESSAGES=no
  8565. fi
  8566. rm -f core conftest.err conftest.$ac_objext \
  8567.     conftest$ac_exeext conftest.$ac_ext
  8568. fi
  8569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
  8570. $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
  8571.   if test $am_cv_val_LC_MESSAGES = yes; then

  8572. $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h

  8573.   fi


  8574. # ----------------------- #
  8575. # Checks for structures.  #
  8576. # ----------------------- #

  8577. ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
  8578. if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :

  8579. cat >>confdefs.h <<_ACEOF
  8580. #define HAVE_STRUCT_STAT_ST_BLOCKS 1
  8581. _ACEOF


  8582. fi
  8583. ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
  8584. if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :

  8585. cat >>confdefs.h <<_ACEOF
  8586. #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
  8587. _ACEOF


  8588. fi


  8589. # ------------------ #
  8590. # Checks for types.  #
  8591. # ------------------ #

  8592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
  8593. $as_echo_n "checking return type of signal handlers... " >&6; }
  8594. if test "${ac_cv_type_signal+set}" = set; then :
  8595.   $as_echo_n "(cached) " >&6
  8596. else
  8597.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8598. /* end confdefs.h.  */
  8599. #include <sys/types.h>
  8600. #include <signal.h>

  8601. int
  8602. main ()
  8603. {
  8604. return *(signal (0, 0)) (0) == 1;
  8605.   ;
  8606.   return 0;
  8607. }
  8608. _ACEOF
  8609. if ac_fn_c_try_compile "$LINENO"; then :
  8610.   ac_cv_type_signal=int
  8611. else
  8612.   ac_cv_type_signal=void
  8613. fi
  8614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8615. fi
  8616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
  8617. $as_echo "$ac_cv_type_signal" >&6; }

  8618. cat >>confdefs.h <<_ACEOF
  8619. #define RETSIGTYPE $ac_cv_type_signal
  8620. _ACEOF


  8621. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  8622. #include <sys/socket.h>

  8623. "
  8624. if test "x$ac_cv_type_socklen_t" = x""yes; then :

  8625. cat >>confdefs.h <<_ACEOF
  8626. #define HAVE_SOCKLEN_T 1
  8627. _ACEOF


  8628. fi


  8629. # ------------------------------------- #
  8630. # Checks for compiler characteristics.  #
  8631. # ------------------------------------- #

  8632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  8633. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  8634. if test "${ac_cv_c_const+set}" = set; then :
  8635.   $as_echo_n "(cached) " >&6
  8636. else
  8637.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8638. /* end confdefs.h.  */

  8639. int
  8640. main ()
  8641. {
  8642. /* FIXME: Include the comments suggested by Paul. */
  8643. #ifndef __cplusplus
  8644.   /* Ultrix mips cc rejects this.  */
  8645.   typedef int charset[2];
  8646.   const charset cs;
  8647.   /* SunOS 4.1.1 cc rejects this.  */
  8648.   char const *const *pcpcc;
  8649.   char **ppc;
  8650.   /* NEC SVR4.0.2 mips cc rejects this.  */
  8651.   struct point {int x, y;};
  8652.   static struct point const zero = {0,0};
  8653.   /* AIX XL C 1.02.0.0 rejects this.
  8654.      It does not let you subtract one const X* pointer from another in
  8655.      an arm of an if-expression whose if-part is not a constant
  8656.      expression */
  8657.   const char *g = "string";
  8658.   pcpcc = &g + (g ? g-g : 0);
  8659.   /* HPUX 7.0 cc rejects these. */
  8660.   ++pcpcc;
  8661.   ppc = (char**) pcpcc;
  8662.   pcpcc = (char const *const *) ppc;
  8663.   { /* SCO 3.2v4 cc rejects this.  */
  8664.     char *t;
  8665.     char const *s = 0 ? (char *) 0 : (char const *) 0;

  8666.     *t++ = 0;
  8667.     if (s) return 0;
  8668.   }
  8669.   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  8670.     int x[] = {25, 17};
  8671.     const int *foo = &x[0];
  8672.     ++foo;
  8673.   }
  8674.   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8675.     typedef const int *iptr;
  8676.     iptr p = 0;
  8677.     ++p;
  8678.   }
  8679.   { /* AIX XL C 1.02.0.0 rejects this saying
  8680.        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8681.     struct s { int j; const int *ap[3]; };
  8682.     struct s *b; b->j = 5;
  8683.   }
  8684.   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8685.     const int foo = 10;
  8686.     if (!foo) return 0;
  8687.   }
  8688.   return !cs[0] && !zero.x;
  8689. #endif

  8690.   ;
  8691.   return 0;
  8692. }
  8693. _ACEOF
  8694. if ac_fn_c_try_compile "$LINENO"; then :
  8695.   ac_cv_c_const=yes
  8696. else
  8697.   ac_cv_c_const=no
  8698. fi
  8699. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8700. fi
  8701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  8702. $as_echo "$ac_cv_c_const" >&6; }
  8703. if test $ac_cv_c_const = no; then

  8704. $as_echo "#define const /**/" >>confdefs.h

  8705. fi

  8706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  8707. $as_echo_n "checking for inline... " >&6; }
  8708. if test "${ac_cv_c_inline+set}" = set; then :
  8709.   $as_echo_n "(cached) " >&6
  8710. else
  8711.   ac_cv_c_inline=no
  8712. for ac_kw in inline __inline__ __inline; do
  8713.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8714. /* end confdefs.h.  */
  8715. #ifndef __cplusplus
  8716. typedef int foo_t;
  8717. static $ac_kw foo_t static_foo () {return 0; }
  8718. $ac_kw foo_t foo () {return 0; }
  8719. #endif

  8720. _ACEOF
  8721. if ac_fn_c_try_compile "$LINENO"; then :
  8722.   ac_cv_c_inline=$ac_kw
  8723. fi
  8724. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8725.   test "$ac_cv_c_inline" != no && break
  8726. done

  8727. fi
  8728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  8729. $as_echo "$ac_cv_c_inline" >&6; }

  8730. case $ac_cv_c_inline in
  8731.   inline | yes) ;;
  8732.   *)
  8733.     case $ac_cv_c_inline in
  8734.       no) ac_val=;;
  8735.       *) ac_val=$ac_cv_c_inline;;
  8736.     esac
  8737.     cat >>confdefs.h <<_ACEOF
  8738. #ifndef __cplusplus
  8739. #define inline $ac_val
  8740. #endif
  8741. _ACEOF
  8742.     ;;
  8743. esac

  8744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  8745. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  8746. if test "${ac_cv_c_bigendian+set}" = set; then :
  8747.   $as_echo_n "(cached) " >&6
  8748. else
  8749.   ac_cv_c_bigendian=unknown
  8750.     # See if we're dealing with a universal compiler.
  8751.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8752. /* end confdefs.h.  */
  8753. #ifndef __APPLE_CC__
  8754.                not a universal capable compiler
  8755.              #endif
  8756.              typedef int dummy;

  8757. _ACEOF
  8758. if ac_fn_c_try_compile "$LINENO"; then :

  8759.         # Check for potential -arch flags.  It is not universal unless
  8760.         # there are at least two -arch flags with different values.
  8761.         ac_arch=
  8762.         ac_prev=
  8763.         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  8764.          if test -n "$ac_prev"; then
  8765.            case $ac_word in
  8766.              i?86 | x86_64 | ppc | ppc64)
  8767.                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  8768.                  ac_arch=$ac_word
  8769.                else
  8770.                  ac_cv_c_bigendian=universal
  8771.                  break
  8772.                fi
  8773.                ;;
  8774.            esac
  8775.            ac_prev=
  8776.          elif test "x$ac_word" = "x-arch"; then
  8777.            ac_prev=arch
  8778.          fi
  8779.        done
  8780. fi
  8781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8782.     if test $ac_cv_c_bigendian = unknown; then
  8783.       # See if sys/param.h defines the BYTE_ORDER macro.
  8784.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8785. /* end confdefs.h.  */
  8786. #include <sys/types.h>
  8787.              #include <sys/param.h>

  8788. int
  8789. main ()
  8790. {
  8791. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  8792.                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  8793.                      && LITTLE_ENDIAN)
  8794.               bogus endian macros
  8795.              #endif

  8796.   ;
  8797.   return 0;
  8798. }
  8799. _ACEOF
  8800. if ac_fn_c_try_compile "$LINENO"; then :
  8801.   # It does; now see whether it defined to BIG_ENDIAN or not.
  8802.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8803. /* end confdefs.h.  */
  8804. #include <sys/types.h>
  8805.                 #include <sys/param.h>

  8806. int
  8807. main ()
  8808. {
  8809. #if BYTE_ORDER != BIG_ENDIAN
  8810.                  not big endian
  8811.                 #endif

  8812.   ;
  8813.   return 0;
  8814. }
  8815. _ACEOF
  8816. if ac_fn_c_try_compile "$LINENO"; then :
  8817.   ac_cv_c_bigendian=yes
  8818. else
  8819.   ac_cv_c_bigendian=no
  8820. fi
  8821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8822. fi
  8823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8824.     fi
  8825.     if test $ac_cv_c_bigendian = unknown; then
  8826.       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  8827.       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8828. /* end confdefs.h.  */
  8829. #include <limits.h>

  8830. int
  8831. main ()
  8832. {
  8833. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  8834.               bogus endian macros
  8835.              #endif

  8836.   ;
  8837.   return 0;
  8838. }
  8839. _ACEOF
  8840. if ac_fn_c_try_compile "$LINENO"; then :
  8841.   # It does; now see whether it defined to _BIG_ENDIAN or not.
  8842.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8843. /* end confdefs.h.  */
  8844. #include <limits.h>

  8845. int
  8846. main ()
  8847. {
  8848. #ifndef _BIG_ENDIAN
  8849.                  not big endian
  8850.                 #endif

  8851.   ;
  8852.   return 0;
  8853. }
  8854. _ACEOF
  8855. if ac_fn_c_try_compile "$LINENO"; then :
  8856.   ac_cv_c_bigendian=yes
  8857. else
  8858.   ac_cv_c_bigendian=no
  8859. fi
  8860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8861. fi
  8862. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8863.     fi
  8864.     if test $ac_cv_c_bigendian = unknown; then
  8865.       # Compile a test program.
  8866.       if test "$cross_compiling" = yes; then :
  8867.   # Try to guess by grepping values from an object file.
  8868.          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8869. /* end confdefs.h.  */
  8870. short int ascii_mm[] =
  8871.                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8872.                 short int ascii_ii[] =
  8873.                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8874.                 int use_ascii (int i) {
  8875.                   return ascii_mm[i] + ascii_ii[i];
  8876.                 }
  8877.                 short int ebcdic_ii[] =
  8878.                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8879.                 short int ebcdic_mm[] =
  8880.                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8881.                 int use_ebcdic (int i) {
  8882.                   return ebcdic_mm[i] + ebcdic_ii[i];
  8883.                 }
  8884.                 extern int foo;

  8885. int
  8886. main ()
  8887. {
  8888. return use_ascii (foo) == use_ebcdic (foo);
  8889.   ;
  8890.   return 0;
  8891. }
  8892. _ACEOF
  8893. if ac_fn_c_try_compile "$LINENO"; then :
  8894.   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  8895.               ac_cv_c_bigendian=yes
  8896.             fi
  8897.             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8898.               if test "$ac_cv_c_bigendian" = unknown; then
  8899.                 ac_cv_c_bigendian=no
  8900.               else
  8901.                 # finding both strings is unlikely to happen, but who knows?
  8902.                 ac_cv_c_bigendian=unknown
  8903.               fi
  8904.             fi
  8905. fi
  8906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8907. else
  8908.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8909. /* end confdefs.h.  */
  8910. $ac_includes_default
  8911. int
  8912. main ()
  8913. {

  8914.              /* Are we little or big endian?  From Harbison&Steele.  */
  8915.              union
  8916.              {
  8917.                long int l;
  8918.                char c[sizeof (long int)];
  8919.              } u;
  8920.              u.l = 1;
  8921.              return u.c[sizeof (long int) - 1] == 1;

  8922.   ;
  8923.   return 0;
  8924. }
  8925. _ACEOF
  8926. if ac_fn_c_try_run "$LINENO"; then :
  8927.   ac_cv_c_bigendian=no
  8928. else
  8929.   ac_cv_c_bigendian=yes
  8930. fi
  8931. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8932.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  8933. fi

  8934.     fi
  8935. fi
  8936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  8937. $as_echo "$ac_cv_c_bigendian" >&6; }
  8938. case $ac_cv_c_bigendian in #(
  8939.    yes)
  8940.      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  8941. ;; #(
  8942.    no)
  8943.       ;; #(
  8944.    universal)

  8945. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h

  8946.      ;; #(
  8947.    *)
  8948.      as_fn_error "unknown endianness
  8949. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  8950. esac


  8951. # ------------------------------ #
  8952. # Checks for library functions.  #
  8953. # ------------------------------ #

  8954. for ac_header in stdlib.h unistd.h
  8955. do :
  8956.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8957. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  8958. eval as_val=\$$as_ac_Header
  8959.    if test "x$as_val" = x""yes; then :
  8960.   cat >>confdefs.h <<_ACEOF
  8961. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8962. _ACEOF

  8963. fi

  8964. done

  8965. for ac_func in getpagesize
  8966. do :
  8967.   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  8968. if test "x$ac_cv_func_getpagesize" = x""yes; then :
  8969.   cat >>confdefs.h <<_ACEOF
  8970. #define HAVE_GETPAGESIZE 1
  8971. _ACEOF

  8972. fi
  8973. done

  8974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  8975. $as_echo_n "checking for working mmap... " >&6; }
  8976. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
  8977.   $as_echo_n "(cached) " >&6
  8978. else
  8979.   if test "$cross_compiling" = yes; then :
  8980.   ac_cv_func_mmap_fixed_mapped=no
  8981. else
  8982.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8983. /* end confdefs.h.  */
  8984. $ac_includes_default
  8985. /* malloc might have been renamed as rpl_malloc. */
  8986. #undef malloc

  8987. /* Thanks to Mike Haertel and Jim Avera for this test.
  8988.    Here is a matrix of mmap possibilities:
  8989.         mmap private not fixed
  8990.         mmap private fixed at somewhere currently unmapped
  8991.         mmap private fixed at somewhere already mapped
  8992.         mmap shared not fixed
  8993.         mmap shared fixed at somewhere currently unmapped
  8994.         mmap shared fixed at somewhere already mapped
  8995.    For private mappings, we should verify that changes cannot be read()
  8996.    back from the file, nor mmap's back from the file at a different
  8997.    address.  (There have been systems where private was not correctly
  8998.    implemented like the infamous i386 svr4.0, and systems where the
  8999.    VM page cache was not coherent with the file system buffer cache
  9000.    like early versions of FreeBSD and possibly contemporary NetBSD.)
  9001.    For shared mappings, we should conversely verify that changes get
  9002.    propagated back to all the places they're supposed to be.

  9003.    Grep wants private fixed already mapped.
  9004.    The main things grep needs to know about mmap are:
  9005.    * does it exist and is it safe to write into the mmap'd area
  9006.    * how to use it (BSD variants)  */

  9007. #include <fcntl.h>
  9008. #include <sys/mman.h>

  9009. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9010. char *malloc ();
  9011. #endif

  9012. /* This mess was copied from the GNU getpagesize.h.  */
  9013. #ifndef HAVE_GETPAGESIZE
  9014. /* Assume that all systems that can run configure have sys/param.h.  */
  9015. # ifndef HAVE_SYS_PARAM_H
  9016. #  define HAVE_SYS_PARAM_H 1
  9017. # endif

  9018. # ifdef _SC_PAGESIZE
  9019. #  define getpagesize() sysconf(_SC_PAGESIZE)
  9020. # else /* no _SC_PAGESIZE */
  9021. #  ifdef HAVE_SYS_PARAM_H
  9022. #   include <sys/param.h>
  9023. #   ifdef EXEC_PAGESIZE
  9024. #    define getpagesize() EXEC_PAGESIZE
  9025. #   else /* no EXEC_PAGESIZE */
  9026. #    ifdef NBPG
  9027. #     define getpagesize() NBPG * CLSIZE
  9028. #     ifndef CLSIZE
  9029. #      define CLSIZE 1
  9030. #     endif /* no CLSIZE */
  9031. #    else /* no NBPG */
  9032. #     ifdef NBPC
  9033. #      define getpagesize() NBPC
  9034. #     else /* no NBPC */
  9035. #      ifdef PAGESIZE
  9036. #       define getpagesize() PAGESIZE
  9037. #      endif /* PAGESIZE */
  9038. #     endif /* no NBPC */
  9039. #    endif /* no NBPG */
  9040. #   endif /* no EXEC_PAGESIZE */
  9041. #  else /* no HAVE_SYS_PARAM_H */
  9042. #   define getpagesize() 8192        /* punt totally */
  9043. #  endif /* no HAVE_SYS_PARAM_H */
  9044. # endif /* no _SC_PAGESIZE */

  9045. #endif /* no HAVE_GETPAGESIZE */

  9046. int
  9047. main ()
  9048. {
  9049.   char *data, *data2, *data3;
  9050.   int i, pagesize;
  9051.   int fd;

  9052.   pagesize = getpagesize ();

  9053.   /* First, make a file with some known garbage in it. */
  9054.   data = (char *) malloc (pagesize);
  9055.   if (!data)
  9056.     return 1;
  9057.   for (i = 0; i < pagesize; ++i)
  9058.     *(data + i) = rand ();
  9059.   umask (0);
  9060.   fd = creat ("conftest.mmap", 0600);
  9061.   if (fd < 0)
  9062.     return 1;
  9063.   if (write (fd, data, pagesize) != pagesize)
  9064.     return 1;
  9065.   close (fd);

  9066.   /* Next, try to mmap the file at a fixed address which already has
  9067.      something else allocated at it.  If we can, also make sure that
  9068.      we see the same garbage.  */
  9069.   fd = open ("conftest.mmap", O_RDWR);
  9070.   if (fd < 0)
  9071.     return 1;
  9072.   data2 = (char *) malloc (2 * pagesize);
  9073.   if (!data2)
  9074.     return 1;
  9075.   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9076.   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9077.                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9078.     return 1;
  9079.   for (i = 0; i < pagesize; ++i)
  9080.     if (*(data + i) != *(data2 + i))
  9081.       return 1;

  9082.   /* Finally, make sure that changes to the mapped area do not
  9083.      percolate back to the file as seen by read().  (This is a bug on
  9084.      some variants of i386 svr4.0.)  */
  9085.   for (i = 0; i < pagesize; ++i)
  9086.     *(data2 + i) = *(data2 + i) + 1;
  9087.   data3 = (char *) malloc (pagesize);
  9088.   if (!data3)
  9089.     return 1;
  9090.   if (read (fd, data3, pagesize) != pagesize)
  9091.     return 1;
  9092.   for (i = 0; i < pagesize; ++i)
  9093.     if (*(data + i) != *(data3 + i))
  9094.       return 1;
  9095.   close (fd);
  9096.   return 0;
  9097. }
  9098. _ACEOF
  9099. if ac_fn_c_try_run "$LINENO"; then :
  9100.   ac_cv_func_mmap_fixed_mapped=yes
  9101. else
  9102.   ac_cv_func_mmap_fixed_mapped=no
  9103. fi
  9104. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9105.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  9106. fi

  9107. fi
  9108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9109. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  9110. if test $ac_cv_func_mmap_fixed_mapped = yes; then

  9111. $as_echo "#define HAVE_MMAP 1" >>confdefs.h

  9112. fi
  9113. rm -f conftest.mmap

  9114. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  9115. if test "x$ac_cv_type_pid_t" = x""yes; then :

  9116. else

  9117. cat >>confdefs.h <<_ACEOF
  9118. #define pid_t int
  9119. _ACEOF

  9120. fi

  9121. for ac_header in vfork.h
  9122. do :
  9123.   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  9124. if test "x$ac_cv_header_vfork_h" = x""yes; then :
  9125.   cat >>confdefs.h <<_ACEOF
  9126. #define HAVE_VFORK_H 1
  9127. _ACEOF

  9128. fi

  9129. done

  9130. for ac_func in fork vfork
  9131. do :
  9132.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9133. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9134. eval as_val=\$$as_ac_var
  9135.    if test "x$as_val" = x""yes; then :
  9136.   cat >>confdefs.h <<_ACEOF
  9137. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9138. _ACEOF

  9139. fi
  9140. done

  9141. if test "x$ac_cv_func_fork" = xyes; then
  9142.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  9143. $as_echo_n "checking for working fork... " >&6; }
  9144. if test "${ac_cv_func_fork_works+set}" = set; then :
  9145.   $as_echo_n "(cached) " >&6
  9146. else
  9147.   if test "$cross_compiling" = yes; then :
  9148.   ac_cv_func_fork_works=cross
  9149. else
  9150.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9151. /* end confdefs.h.  */
  9152. $ac_includes_default
  9153. int
  9154. main ()
  9155. {

  9156.           /* By Ruediger Kuhlmann. */
  9157.           return fork () < 0;

  9158.   ;
  9159.   return 0;
  9160. }
  9161. _ACEOF
  9162. if ac_fn_c_try_run "$LINENO"; then :
  9163.   ac_cv_func_fork_works=yes
  9164. else
  9165.   ac_cv_func_fork_works=no
  9166. fi
  9167. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9168.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  9169. fi

  9170. fi
  9171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  9172. $as_echo "$ac_cv_func_fork_works" >&6; }

  9173. else
  9174.   ac_cv_func_fork_works=$ac_cv_func_fork
  9175. fi
  9176. if test "x$ac_cv_func_fork_works" = xcross; then
  9177.   case $host in
  9178.     *-*-amigaos* | *-*-msdosdjgpp*)
  9179.       # Override, as these systems have only a dummy fork() stub
  9180.       ac_cv_func_fork_works=no
  9181.       ;;
  9182.     *)
  9183.       ac_cv_func_fork_works=yes
  9184.       ;;
  9185.   esac
  9186.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  9187. $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  9188. fi
  9189. ac_cv_func_vfork_works=$ac_cv_func_vfork
  9190. if test "x$ac_cv_func_vfork" = xyes; then
  9191.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  9192. $as_echo_n "checking for working vfork... " >&6; }
  9193. if test "${ac_cv_func_vfork_works+set}" = set; then :
  9194.   $as_echo_n "(cached) " >&6
  9195. else
  9196.   if test "$cross_compiling" = yes; then :
  9197.   ac_cv_func_vfork_works=cross
  9198. else
  9199.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9200. /* end confdefs.h.  */
  9201. /* Thanks to Paul Eggert for this test.  */
  9202. $ac_includes_default
  9203. #include <sys/wait.h>
  9204. #ifdef HAVE_VFORK_H
  9205. # include <vfork.h>
  9206. #endif
  9207. /* On some sparc systems, changes by the child to local and incoming
  9208.    argument registers are propagated back to the parent.  The compiler
  9209.    is told about this with #include <vfork.h>, but some compilers
  9210.    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
  9211.    static variable whose address is put into a register that is
  9212.    clobbered by the vfork.  */
  9213. static void
  9214. #ifdef __cplusplus
  9215. sparc_address_test (int arg)
  9216. # else
  9217. sparc_address_test (arg) int arg;
  9218. #endif
  9219. {
  9220.   static pid_t child;
  9221.   if (!child) {
  9222.     child = vfork ();
  9223.     if (child < 0) {
  9224.       perror ("vfork");
  9225.       _exit(2);
  9226.     }
  9227.     if (!child) {
  9228.       arg = getpid();
  9229.       write(-1, "", 0);
  9230.       _exit (arg);
  9231.     }
  9232.   }
  9233. }

  9234. int
  9235. main ()
  9236. {
  9237.   pid_t parent = getpid ();
  9238.   pid_t child;

  9239.   sparc_address_test (0);

  9240.   child = vfork ();

  9241.   if (child == 0) {
  9242.     /* Here is another test for sparc vfork register problems.  This
  9243.        test uses lots of local variables, at least as many local
  9244.        variables as main has allocated so far including compiler
  9245.        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
  9246.        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
  9247.        reuse the register of parent for one of the local variables,
  9248.        since it will think that parent can't possibly be used any more
  9249.        in this routine.  Assigning to the local variable will thus
  9250.        munge parent in the parent process.  */
  9251.     pid_t
  9252.       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  9253.       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  9254.     /* Convince the compiler that p..p7 are live; otherwise, it might
  9255.        use the same hardware register for all 8 local variables.  */
  9256.     if (p != p1 || p != p2 || p != p3 || p != p4
  9257.         || p != p5 || p != p6 || p != p7)
  9258.       _exit(1);

  9259.     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  9260.        from child file descriptors.  If the child closes a descriptor
  9261.        before it execs or exits, this munges the parent's descriptor
  9262.        as well.  Test for this by closing stdout in the child.  */
  9263.     _exit(close(fileno(stdout)) != 0);
  9264.   } else {
  9265.     int status;
  9266.     struct stat st;

  9267.     while (wait(&status) != child)
  9268.       ;
  9269.     return (
  9270.          /* Was there some problem with vforking?  */
  9271.          child < 0

  9272.          /* Did the child fail?  (This shouldn't happen.)  */
  9273.          || status

  9274.          /* Did the vfork/compiler bug occur?  */
  9275.          || parent != getpid()

  9276.          /* Did the file descriptor bug occur?  */
  9277.          || fstat(fileno(stdout), &st) != 0
  9278.          );
  9279.   }
  9280. }
  9281. _ACEOF
  9282. if ac_fn_c_try_run "$LINENO"; then :
  9283.   ac_cv_func_vfork_works=yes
  9284. else
  9285.   ac_cv_func_vfork_works=no
  9286. fi
  9287. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9288.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  9289. fi

  9290. fi
  9291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  9292. $as_echo "$ac_cv_func_vfork_works" >&6; }

  9293. fi;
  9294. if test "x$ac_cv_func_fork_works" = xcross; then
  9295.   ac_cv_func_vfork_works=$ac_cv_func_vfork
  9296.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  9297. $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  9298. fi

  9299. if test "x$ac_cv_func_vfork_works" = xyes; then

  9300. $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h

  9301. else

  9302. $as_echo "#define vfork fork" >>confdefs.h

  9303. fi
  9304. if test "x$ac_cv_func_fork_works" = xyes; then

  9305. $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h

  9306. fi

  9307. for ac_func in getrusage getuid getgid \
  9308.                 pipe poll pread pread64 pwrite resize_term \
  9309.                 sbrk setpgid setpgrp setsid \
  9310.                 sigaction sigprocmask sigsetmask socketpair \
  9311.                 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
  9312.                 setrlimit getrlimit posix_madvise waitpid \
  9313.                 ptrace64 sigaltstack mkdtemp
  9314. do :
  9315.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9316. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9317. eval as_val=\$$as_ac_var
  9318.    if test "x$as_val" = x""yes; then :
  9319.   cat >>confdefs.h <<_ACEOF
  9320. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9321. _ACEOF

  9322. fi
  9323. done


  9324.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  9325. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  9326. if test "${am_cv_langinfo_codeset+set}" = set; then :
  9327.   $as_echo_n "(cached) " >&6
  9328. else
  9329.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9330. /* end confdefs.h.  */
  9331. #include <langinfo.h>
  9332. int
  9333. main ()
  9334. {
  9335. char* cs = nl_langinfo(CODESET);
  9336.   ;
  9337.   return 0;
  9338. }
  9339. _ACEOF
  9340. if ac_fn_c_try_link "$LINENO"; then :
  9341.   am_cv_langinfo_codeset=yes
  9342. else
  9343.   am_cv_langinfo_codeset=no
  9344. fi
  9345. rm -f core conftest.err conftest.$ac_objext \
  9346.     conftest$ac_exeext conftest.$ac_ext

  9347. fi
  9348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  9349. $as_echo "$am_cv_langinfo_codeset" >&6; }
  9350.   if test $am_cv_langinfo_codeset = yes; then

  9351. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h

  9352.   fi


  9353.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  9354. $as_echo_n "checking for ANSI C header files... " >&6; }
  9355. if test "${ac_cv_header_stdc+set}" = set; then :
  9356.   $as_echo_n "(cached) " >&6
  9357. else
  9358.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9359. /* end confdefs.h.  */
  9360. #include <stdlib.h>
  9361. #include <stdarg.h>
  9362. #include <string.h>
  9363. #include <float.h>

  9364. int
  9365. main ()
  9366. {

  9367.   ;
  9368.   return 0;
  9369. }
  9370. _ACEOF
  9371. if ac_fn_c_try_compile "$LINENO"; then :
  9372.   ac_cv_header_stdc=yes
  9373. else
  9374.   ac_cv_header_stdc=no
  9375. fi
  9376. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  9377. if test $ac_cv_header_stdc = yes; then
  9378.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9379.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9380. /* end confdefs.h.  */
  9381. #include <string.h>

  9382. _ACEOF
  9383. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9384.   $EGREP "memchr" >/dev/null 2>&1; then :

  9385. else
  9386.   ac_cv_header_stdc=no
  9387. fi
  9388. rm -f conftest*

  9389. fi

  9390. if test $ac_cv_header_stdc = yes; then
  9391.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9392.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9393. /* end confdefs.h.  */
  9394. #include <stdlib.h>

  9395. _ACEOF
  9396. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9397.   $EGREP "free" >/dev/null 2>&1; then :

  9398. else
  9399.   ac_cv_header_stdc=no
  9400. fi
  9401. rm -f conftest*

  9402. fi

  9403. if test $ac_cv_header_stdc = yes; then
  9404.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  9405.   if test "$cross_compiling" = yes; then :
  9406.   :
  9407. else
  9408.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9409. /* end confdefs.h.  */
  9410. #include <ctype.h>
  9411. #include <stdlib.h>
  9412. #if ((' ' & 0x0FF) == 0x020)
  9413. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  9414. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9415. #else
  9416. # define ISLOWER(c) \
  9417.                    (('a' <= (c) && (c) <= 'i') \
  9418.                      || ('j' <= (c) && (c) <= 'r') \
  9419.                      || ('s' <= (c) && (c) <= 'z'))
  9420. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9421. #endif

  9422. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  9423. int
  9424. main ()
  9425. {
  9426.   int i;
  9427.   for (i = 0; i < 256; i++)
  9428.     if (XOR (islower (i), ISLOWER (i))
  9429.         || toupper (i) != TOUPPER (i))
  9430.       return 2;
  9431.   return 0;
  9432. }
  9433. _ACEOF
  9434. if ac_fn_c_try_run "$LINENO"; then :

  9435. else
  9436.   ac_cv_header_stdc=no
  9437. fi
  9438. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9439.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  9440. fi

  9441. fi
  9442. fi
  9443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  9444. $as_echo "$ac_cv_header_stdc" >&6; }
  9445. if test $ac_cv_header_stdc = yes; then

  9446. $as_echo "#define STDC_HEADERS 1" >>confdefs.h

  9447. fi

  9448.   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  9449. # for constant arguments.  Useless!
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
  9451. $as_echo_n "checking for working alloca.h... " >&6; }
  9452. if test "${ac_cv_working_alloca_h+set}" = set; then :
  9453.   $as_echo_n "(cached) " >&6
  9454. else
  9455.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9456. /* end confdefs.h.  */
  9457. #include <alloca.h>
  9458. int
  9459. main ()
  9460. {
  9461. char *p = (char *) alloca (2 * sizeof (int));
  9462.                           if (p) return 0;
  9463.   ;
  9464.   return 0;
  9465. }
  9466. _ACEOF
  9467. if ac_fn_c_try_link "$LINENO"; then :
  9468.   ac_cv_working_alloca_h=yes
  9469. else
  9470.   ac_cv_working_alloca_h=no
  9471. fi
  9472. rm -f core conftest.err conftest.$ac_objext \
  9473.     conftest$ac_exeext conftest.$ac_ext
  9474. fi
  9475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
  9476. $as_echo "$ac_cv_working_alloca_h" >&6; }
  9477. if test $ac_cv_working_alloca_h = yes; then

  9478. $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h

  9479. fi

  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
  9481. $as_echo_n "checking for alloca... " >&6; }
  9482. if test "${ac_cv_func_alloca_works+set}" = set; then :
  9483.   $as_echo_n "(cached) " >&6
  9484. else
  9485.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9486. /* end confdefs.h.  */
  9487. #ifdef __GNUC__
  9488. # define alloca __builtin_alloca
  9489. #else
  9490. # ifdef _MSC_VER
  9491. #  include <malloc.h>
  9492. #  define alloca _alloca
  9493. # else
  9494. #  ifdef HAVE_ALLOCA_H
  9495. #   include <alloca.h>
  9496. #  else
  9497. #   ifdef _AIX
  9498. #pragma alloca
  9499. #   else
  9500. #    ifndef alloca /* predefined by HP cc +Olibcalls */
  9501. char *alloca ();
  9502. #    endif
  9503. #   endif
  9504. #  endif
  9505. # endif
  9506. #endif

  9507. int
  9508. main ()
  9509. {
  9510. char *p = (char *) alloca (1);
  9511.                                     if (p) return 0;
  9512.   ;
  9513.   return 0;
  9514. }
  9515. _ACEOF
  9516. if ac_fn_c_try_link "$LINENO"; then :
  9517.   ac_cv_func_alloca_works=yes
  9518. else
  9519.   ac_cv_func_alloca_works=no
  9520. fi
  9521. rm -f core conftest.err conftest.$ac_objext \
  9522.     conftest$ac_exeext conftest.$ac_ext
  9523. fi
  9524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
  9525. $as_echo "$ac_cv_func_alloca_works" >&6; }

  9526. if test $ac_cv_func_alloca_works = yes; then

  9527. $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h

  9528. else
  9529.   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  9530. # that cause trouble.  Some versions do not even contain alloca or
  9531. # contain a buggy version.  If you still want to use their alloca,
  9532. # use ar to extract alloca.o from them instead of compiling alloca.c.

  9533. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext

  9534. $as_echo "#define C_ALLOCA 1" >>confdefs.h


  9535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
  9536. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  9537. if test "${ac_cv_os_cray+set}" = set; then :
  9538.   $as_echo_n "(cached) " >&6
  9539. else
  9540.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9541. /* end confdefs.h.  */
  9542. #if defined CRAY && ! defined CRAY2
  9543. webecray
  9544. #else
  9545. wenotbecray
  9546. #endif

  9547. _ACEOF
  9548. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9549.   $EGREP "webecray" >/dev/null 2>&1; then :
  9550.   ac_cv_os_cray=yes
  9551. else
  9552.   ac_cv_os_cray=no
  9553. fi
  9554. rm -f conftest*

  9555. fi
  9556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
  9557. $as_echo "$ac_cv_os_cray" >&6; }
  9558. if test $ac_cv_os_cray = yes; then
  9559.   for ac_func in _getb67 GETB67 getb67; do
  9560.     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9561. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9562. eval as_val=\$$as_ac_var
  9563.    if test "x$as_val" = x""yes; then :

  9564. cat >>confdefs.h <<_ACEOF
  9565. #define CRAY_STACKSEG_END $ac_func
  9566. _ACEOF

  9567.     break
  9568. fi

  9569.   done
  9570. fi

  9571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
  9572. $as_echo_n "checking stack direction for C alloca... " >&6; }
  9573. if test "${ac_cv_c_stack_direction+set}" = set; then :
  9574.   $as_echo_n "(cached) " >&6
  9575. else
  9576.   if test "$cross_compiling" = yes; then :
  9577.   ac_cv_c_stack_direction=0
  9578. else
  9579.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9580. /* end confdefs.h.  */
  9581. $ac_includes_default
  9582. int
  9583. find_stack_direction ()
  9584. {
  9585.   static char *addr = 0;
  9586.   auto char dummy;
  9587.   if (addr == 0)
  9588.     {
  9589.       addr = &dummy;
  9590.       return find_stack_direction ();
  9591.     }
  9592.   else
  9593.     return (&dummy > addr) ? 1 : -1;
  9594. }

  9595. int
  9596. main ()
  9597. {
  9598.   return find_stack_direction () < 0;
  9599. }
  9600. _ACEOF
  9601. if ac_fn_c_try_run "$LINENO"; then :
  9602.   ac_cv_c_stack_direction=1
  9603. else
  9604.   ac_cv_c_stack_direction=-1
  9605. fi
  9606. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9607.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  9608. fi

  9609. fi
  9610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
  9611. $as_echo "$ac_cv_c_stack_direction" >&6; }
  9612. cat >>confdefs.h <<_ACEOF
  9613. #define STACK_DIRECTION $ac_cv_c_stack_direction
  9614. _ACEOF


  9615. fi



  9616.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  9617. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  9618. if test "${am_cv_langinfo_codeset+set}" = set; then :
  9619.   $as_echo_n "(cached) " >&6
  9620. else
  9621.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9622. /* end confdefs.h.  */
  9623. #include <langinfo.h>
  9624. int
  9625. main ()
  9626. {
  9627. char* cs = nl_langinfo(CODESET);
  9628.   ;
  9629.   return 0;
  9630. }
  9631. _ACEOF
  9632. if ac_fn_c_try_link "$LINENO"; then :
  9633.   am_cv_langinfo_codeset=yes
  9634. else
  9635.   am_cv_langinfo_codeset=no
  9636. fi
  9637. rm -f core conftest.err conftest.$ac_objext \
  9638.     conftest$ac_exeext conftest.$ac_ext

  9639. fi
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  9641. $as_echo "$am_cv_langinfo_codeset" >&6; }
  9642.   if test $am_cv_langinfo_codeset = yes; then

  9643. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h

  9644.   fi


  9645.   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
  9646. do :
  9647.   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9648. ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  9649. eval as_val=\$$as_ac_Header
  9650.    if test "x$as_val" = x""yes; then :
  9651.   cat >>confdefs.h <<_ACEOF
  9652. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9653. _ACEOF

  9654. fi

  9655. done


  9656.   for ac_func in fdwalk getrlimit pipe pipe2 socketpair
  9657. do :
  9658.   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9659. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9660. eval as_val=\$$as_ac_var
  9661.    if test "x$as_val" = x""yes; then :
  9662.   cat >>confdefs.h <<_ACEOF
  9663. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9664. _ACEOF

  9665. fi
  9666. done


  9667.   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
  9668. if test "x$ac_cv_have_decl_strerror" = x""yes; then :
  9669.   ac_have_decl=1
  9670. else
  9671.   ac_have_decl=0
  9672. fi

  9673. cat >>confdefs.h <<_ACEOF
  9674. #define HAVE_DECL_STRERROR $ac_have_decl
  9675. _ACEOF
  9676. ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
  9677. if test "x$ac_cv_have_decl_strstr" = x""yes; then :
  9678.   ac_have_decl=1
  9679. else
  9680.   ac_have_decl=0
  9681. fi

  9682. cat >>confdefs.h <<_ACEOF
  9683. #define HAVE_DECL_STRSTR $ac_have_decl
  9684. _ACEOF


  9685.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
  9686. $as_echo_n "checking for sigsetjmp... " >&6; }
  9687. if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
  9688.   $as_echo_n "(cached) " >&6
  9689. else
  9690.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9691. /* end confdefs.h.  */

  9692. #include <setjmp.h>

  9693. int
  9694. main ()
  9695. {
  9696. sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
  9697.   ;
  9698.   return 0;
  9699. }
  9700. _ACEOF
  9701. if ac_fn_c_try_compile "$LINENO"; then :
  9702.   gdb_cv_func_sigsetjmp=yes
  9703. else
  9704.   gdb_cv_func_sigsetjmp=no
  9705. fi
  9706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9707. fi
  9708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
  9709. $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
  9710. if test $gdb_cv_func_sigsetjmp = yes; then

  9711. $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h

  9712. fi


  9713. # Check the return and argument types of ptrace.  No canned test for
  9714. # this, so roll our own.
  9715. gdb_ptrace_headers='
  9716. #include <sys/types.h>
  9717. #if HAVE_SYS_PTRACE_H
  9718. # include <sys/ptrace.h>
  9719. #endif
  9720. #if HAVE_UNISTD_H
  9721. # include <unistd.h>
  9722. #endif
  9723. '
  9724. # There is no point in checking if we don't have a prototype.
  9725. ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
  9726. "
  9727. if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
  9728.   ac_have_decl=1
  9729. else
  9730.   ac_have_decl=0
  9731. fi

  9732. cat >>confdefs.h <<_ACEOF
  9733. #define HAVE_DECL_PTRACE $ac_have_decl
  9734. _ACEOF
  9735. if test $ac_have_decl = 1; then :

  9736. else

  9737.   : ${gdb_cv_func_ptrace_ret='int'}
  9738.   : ${gdb_cv_func_ptrace_args='int,int,long,long'}

  9739. fi

  9740. # Check return type.  Varargs (used on GNU/Linux) conflict with the
  9741. # empty argument list, so check for that explicitly.
  9742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
  9743. $as_echo_n "checking return type of ptrace... " >&6; }
  9744. if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
  9745.   $as_echo_n "(cached) " >&6
  9746. else
  9747.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9748. /* end confdefs.h.  */
  9749. $gdb_ptrace_headers
  9750. int
  9751. main ()
  9752. {
  9753. extern long ptrace (enum __ptrace_request, ...);
  9754.   ;
  9755.   return 0;
  9756. }
  9757. _ACEOF
  9758. if ac_fn_c_try_compile "$LINENO"; then :
  9759.   gdb_cv_func_ptrace_ret='long'
  9760. else
  9761.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9762. /* end confdefs.h.  */
  9763. $gdb_ptrace_headers
  9764. int
  9765. main ()
  9766. {
  9767. extern int ptrace ();
  9768.   ;
  9769.   return 0;
  9770. }
  9771. _ACEOF
  9772. if ac_fn_c_try_compile "$LINENO"; then :
  9773.   gdb_cv_func_ptrace_ret='int'
  9774. else
  9775.   gdb_cv_func_ptrace_ret='long'
  9776. fi
  9777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9778. fi
  9779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9780. fi
  9781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
  9782. $as_echo "$gdb_cv_func_ptrace_ret" >&6; }

  9783. cat >>confdefs.h <<_ACEOF
  9784. #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
  9785. _ACEOF

  9786. # Check argument types.
  9787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
  9788. $as_echo_n "checking types of arguments for ptrace... " >&6; }
  9789. if test "${gdb_cv_func_ptrace_args+set}" = set; then :
  9790.   $as_echo_n "(cached) " >&6
  9791. else

  9792.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9793. /* end confdefs.h.  */
  9794. $gdb_ptrace_headers
  9795. int
  9796. main ()
  9797. {
  9798. extern long ptrace (enum __ptrace_request, ...);
  9799.   ;
  9800.   return 0;
  9801. }
  9802. _ACEOF
  9803. if ac_fn_c_try_compile "$LINENO"; then :
  9804.   gdb_cv_func_ptrace_args='int,int,long,long'
  9805. else

  9806. for gdb_arg1 in 'int' 'long'; do
  9807. for gdb_arg2 in 'pid_t' 'int' 'long'; do
  9808.   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
  9809.    for gdb_arg4 in 'int' 'long' 'void *'; do
  9810.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9811. /* end confdefs.h.  */
  9812. $gdb_ptrace_headers
  9813. int
  9814. main ()
  9815. {

  9816. extern $gdb_cv_func_ptrace_ret
  9817.   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);

  9818.   ;
  9819.   return 0;
  9820. }
  9821. _ACEOF
  9822. if ac_fn_c_try_compile "$LINENO"; then :
  9823.   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
  9824.     break 4;
  9825. fi
  9826. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9827.     for gdb_arg5 in 'int *' 'int' 'long'; do
  9828.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9829. /* end confdefs.h.  */
  9830. $gdb_ptrace_headers
  9831. int
  9832. main ()
  9833. {

  9834. extern $gdb_cv_func_ptrace_ret
  9835.   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);

  9836.   ;
  9837.   return 0;
  9838. }
  9839. _ACEOF
  9840. if ac_fn_c_try_compile "$LINENO"; then :

  9841. gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
  9842.     break 5;
  9843. fi
  9844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9845.     done
  9846.    done
  9847.   done
  9848. done
  9849. done
  9850. # Provide a safe default value.
  9851. : ${gdb_cv_func_ptrace_args='int,int,long,long'}

  9852. fi
  9853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9854. fi
  9855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
  9856. $as_echo "$gdb_cv_func_ptrace_args" >&6; }
  9857. ac_save_IFS=$IFS; IFS=','
  9858. set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
  9859. IFS=$ac_save_IFS
  9860. shift

  9861. cat >>confdefs.h <<_ACEOF
  9862. #define PTRACE_TYPE_ARG3 $3
  9863. _ACEOF


  9864. cat >>confdefs.h <<_ACEOF
  9865. #define PTRACE_TYPE_ARG4 $4
  9866. _ACEOF

  9867. if test -n "$5"; then

  9868. cat >>confdefs.h <<_ACEOF
  9869. #define PTRACE_TYPE_ARG5 $5
  9870. _ACEOF

  9871. fi

  9872. if test "$cross_compiling" = no; then
  9873.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
  9874. $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  9875. if test "${ac_cv_func_setpgrp_void+set}" = set; then :
  9876.   $as_echo_n "(cached) " >&6
  9877. else
  9878.   if test "$cross_compiling" = yes; then :
  9879.   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
  9880. else
  9881.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9882. /* end confdefs.h.  */
  9883. $ac_includes_default
  9884. int
  9885. main ()
  9886. {
  9887. /* If this system has a BSD-style setpgrp which takes arguments,
  9888.   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
  9889.   exit successfully. */
  9890.   return setpgrp (1,1) != -1;
  9891.   ;
  9892.   return 0;
  9893. }
  9894. _ACEOF
  9895. if ac_fn_c_try_run "$LINENO"; then :
  9896.   ac_cv_func_setpgrp_void=no
  9897. else
  9898.   ac_cv_func_setpgrp_void=yes
  9899. fi
  9900. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9901.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  9902. fi

  9903. fi
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
  9905. $as_echo "$ac_cv_func_setpgrp_void" >&6; }
  9906. if test $ac_cv_func_setpgrp_void = yes; then

  9907. $as_echo "#define SETPGRP_VOID 1" >>confdefs.h

  9908. fi

  9909. else
  9910.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
  9911. $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
  9912. if test "${ac_cv_func_setpgrp_void+set}" = set; then :
  9913.   $as_echo_n "(cached) " >&6
  9914. else
  9915.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9916. /* end confdefs.h.  */

  9917. #include <unistd.h>

  9918. int
  9919. main ()
  9920. {

  9921.   if (setpgrp(1,1) == -1)
  9922.     exit (0);
  9923.   else
  9924.     exit (1);

  9925.   ;
  9926.   return 0;
  9927. }
  9928. _ACEOF
  9929. if ac_fn_c_try_compile "$LINENO"; then :
  9930.   ac_cv_func_setpgrp_void=no
  9931. else
  9932.   ac_cv_func_setpgrp_void=yes
  9933. fi
  9934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9935. fi
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
  9937. $as_echo "$ac_cv_func_setpgrp_void" >&6; }
  9938. if test $ac_cv_func_setpgrp_void = yes; then
  9939.   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h

  9940. fi
  9941. fi

  9942. # Assume we'll default to using the included libiberty regex.
  9943. gdb_use_included_regex=yes

  9944. # However, if the system regex is GNU regex, then default to *not*
  9945. # using the included regex.
  9946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
  9947. $as_echo_n "checking for GNU regex... " >&6; }
  9948. if test "${gdb_cv_have_gnu_regex+set}" = set; then :
  9949.   $as_echo_n "(cached) " >&6
  9950. else
  9951.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9952. /* end confdefs.h.  */
  9953. #include <gnu-versions.h>
  9954. int
  9955. main ()
  9956. {
  9957. #define REGEX_INTERFACE_VERSION 1
  9958. #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
  9959. # error "Version mismatch"
  9960. #endif
  9961.   ;
  9962.   return 0;
  9963. }
  9964. _ACEOF
  9965. if ac_fn_c_try_compile "$LINENO"; then :
  9966.   gdb_cv_have_gnu_regex=yes
  9967. else
  9968.   gdb_cv_have_gnu_regex=no
  9969. fi
  9970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9971. fi
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
  9973. $as_echo "$gdb_cv_have_gnu_regex" >&6; }
  9974. if test $gdb_cv_have_gnu_regex = yes; then
  9975.   gdb_use_included_regex=no
  9976. fi


  9977. # Check whether --with-included-regex was given.
  9978. if test "${with_included_regex+set}" = set; then :
  9979.   withval=$with_included_regex; gdb_with_regex=$withval
  9980. else
  9981.   gdb_with_regex=$gdb_use_included_regex
  9982. fi

  9983. if test "$gdb_with_regex" = yes; then

  9984. $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h

  9985. fi

  9986. # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
  9987. ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
  9988. #include <sys/proc.h>

  9989. "
  9990. if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :

  9991. cat >>confdefs.h <<_ACEOF
  9992. #define HAVE_STRUCT_THREAD_TD_PCB 1
  9993. _ACEOF


  9994. fi


  9995. # See if <sys/lwp.h> defines `struct lwp`.
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
  9997. $as_echo_n "checking for struct lwp... " >&6; }
  9998. if test "${gdb_cv_struct_lwp+set}" = set; then :
  9999.   $as_echo_n "(cached) " >&6
  10000. else
  10001.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10002. /* end confdefs.h.  */
  10003. #include <sys/param.h>
  10004. #include <sys/lwp.h>
  10005. int
  10006. main ()
  10007. {
  10008. struct lwp l;
  10009.   ;
  10010.   return 0;
  10011. }
  10012. _ACEOF
  10013. if ac_fn_c_try_compile "$LINENO"; then :
  10014.   gdb_cv_struct_lwp=yes
  10015. else
  10016.   gdb_cv_struct_lwp=no
  10017. fi
  10018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10019. fi
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
  10021. $as_echo "$gdb_cv_struct_lwp" >&6; }
  10022. if test $gdb_cv_struct_lwp = yes; then

  10023. $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h

  10024. fi

  10025. # See if <machine/reg.h> degines `struct reg'.
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
  10027. $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
  10028. if test "${gdb_cv_struct_reg+set}" = set; then :
  10029.   $as_echo_n "(cached) " >&6
  10030. else
  10031.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10032. /* end confdefs.h.  */
  10033. #include <sys/types.h>
  10034. #include <machine/reg.h>
  10035. int
  10036. main ()
  10037. {
  10038. struct reg r;
  10039.   ;
  10040.   return 0;
  10041. }
  10042. _ACEOF
  10043. if ac_fn_c_try_compile "$LINENO"; then :
  10044.   gdb_cv_struct_reg=yes
  10045. else
  10046.   gdb_cv_struct_reg=no
  10047. fi
  10048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10049. fi
  10050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
  10051. $as_echo "$gdb_cv_struct_reg" >&6; }
  10052. if test $gdb_cv_struct_reg = yes; then

  10053. $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h

  10054. fi

  10055. # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
  10056. # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
  10057. ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
  10058. "
  10059. if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :

  10060. cat >>confdefs.h <<_ACEOF
  10061. #define HAVE_STRUCT_REG_R_FS 1
  10062. _ACEOF


  10063. fi
  10064. ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
  10065. "
  10066. if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :

  10067. cat >>confdefs.h <<_ACEOF
  10068. #define HAVE_STRUCT_REG_R_GS 1
  10069. _ACEOF


  10070. fi


  10071. # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
  10072. # Older amd64 Linux's don't have the fs_base and gs_base members of
  10073. # `struct user_regs_struct'.
  10074. 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>
  10075. "
  10076. if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :

  10077. cat >>confdefs.h <<_ACEOF
  10078. #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
  10079. _ACEOF


  10080. fi
  10081. 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>
  10082. "
  10083. if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :

  10084. cat >>confdefs.h <<_ACEOF
  10085. #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
  10086. _ACEOF


  10087. fi


  10088. # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
  10089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
  10090. $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
  10091. if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
  10092.   $as_echo_n "(cached) " >&6
  10093. else
  10094.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10095. /* end confdefs.h.  */
  10096. #include <sys/ptrace.h>
  10097. int
  10098. main ()
  10099. {
  10100. PTRACE_GETREGS;
  10101.   ;
  10102.   return 0;
  10103. }
  10104. _ACEOF
  10105. if ac_fn_c_try_compile "$LINENO"; then :
  10106.   gdb_cv_have_ptrace_getregs=yes
  10107. else
  10108.   gdb_cv_have_ptrace_getregs=no
  10109. fi
  10110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10111. fi

  10112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
  10113. $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
  10114. if test $gdb_cv_have_ptrace_getregs = yes; then

  10115. $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h

  10116. fi

  10117. # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
  10119. $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
  10120. if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
  10121.   $as_echo_n "(cached) " >&6
  10122. else
  10123.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10124. /* end confdefs.h.  */
  10125. #include <sys/ptrace.h>
  10126. int
  10127. main ()
  10128. {
  10129. PTRACE_GETFPXREGS;
  10130.   ;
  10131.   return 0;
  10132. }
  10133. _ACEOF
  10134. if ac_fn_c_try_compile "$LINENO"; then :
  10135.   gdb_cv_have_ptrace_getfpxregs=yes
  10136. else
  10137.   gdb_cv_have_ptrace_getfpxregs=no
  10138. fi
  10139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10140. fi

  10141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
  10142. $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
  10143. if test $gdb_cv_have_ptrace_getfpxregs = yes; then

  10144. $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h

  10145. fi

  10146. # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
  10147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
  10148. $as_echo_n "checking for PT_GETDBREGS... " >&6; }
  10149. if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
  10150.   $as_echo_n "(cached) " >&6
  10151. else
  10152.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10153. /* end confdefs.h.  */
  10154. #include <sys/types.h>
  10155. #include <sys/ptrace.h>
  10156. int
  10157. main ()
  10158. {
  10159. PT_GETDBREGS;
  10160.   ;
  10161.   return 0;
  10162. }
  10163. _ACEOF
  10164. if ac_fn_c_try_compile "$LINENO"; then :
  10165.   gdb_cv_have_pt_getdbregs=yes
  10166. else
  10167.   gdb_cv_have_pt_getdbregs=no
  10168. fi
  10169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10170. fi

  10171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
  10172. $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
  10173. if test $gdb_cv_have_pt_getdbregs = yes; then

  10174. $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h

  10175. fi

  10176. # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
  10177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
  10178. $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
  10179. if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
  10180.   $as_echo_n "(cached) " >&6
  10181. else
  10182.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10183. /* end confdefs.h.  */
  10184. #include <sys/types.h>
  10185. #include <sys/ptrace.h>
  10186. int
  10187. main ()
  10188. {
  10189. PT_GETXMMREGS;
  10190.   ;
  10191.   return 0;
  10192. }
  10193. _ACEOF
  10194. if ac_fn_c_try_compile "$LINENO"; then :
  10195.   gdb_cv_have_pt_getxmmregs=yes
  10196. else
  10197.   gdb_cv_have_pt_getxmmregs=no
  10198. fi
  10199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10200. fi

  10201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
  10202. $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
  10203. if test $gdb_cv_have_pt_getxmmregs = yes; then

  10204. $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h

  10205. fi

  10206. # Detect which type of /proc is in use, such as for Solaris.

  10207. if test "${target}" = "${host}"; then
  10208.   case "${host}" in
  10209.   *-*-sysv4.2* | *-*-sysv5* )

  10210. $as_echo "#define NEW_PROC_API 1" >>confdefs.h

  10211.       ;;
  10212.   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)

  10213. $as_echo "#define NEW_PROC_API 1" >>confdefs.h

  10214.       ;;
  10215.   mips-sgi-irix5*)
  10216.       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.

  10217. $as_echo "#define _KMEMUSER 1" >>confdefs.h

  10218.       ;;
  10219.   esac
  10220. fi

  10221. if test "$ac_cv_header_sys_procfs_h" = yes; then
  10222.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
  10223. $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
  10224. if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
  10225.   $as_echo_n "(cached) " >&6
  10226. else
  10227.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10228. /* end confdefs.h.  */

  10229. #define _SYSCALL32
  10230. /* Needed for new procfs interface on sparc-solaris.  */
  10231. #define _STRUCTURED_PROC 1
  10232. #include <sys/procfs.h>
  10233. int
  10234. main ()
  10235. {
  10236. gregset_t avar
  10237.   ;
  10238.   return 0;
  10239. }
  10240. _ACEOF
  10241. if ac_fn_c_try_compile "$LINENO"; then :
  10242.   bfd_cv_have_sys_procfs_type_gregset_t=yes
  10243. else
  10244.   bfd_cv_have_sys_procfs_type_gregset_t=no

  10245. fi
  10246. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10247. fi

  10248. if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then

  10249. $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h

  10250. fi
  10251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
  10252. $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }

  10253.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
  10254. $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
  10255. if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
  10256.   $as_echo_n "(cached) " >&6
  10257. else
  10258.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10259. /* end confdefs.h.  */

  10260. #define _SYSCALL32
  10261. /* Needed for new procfs interface on sparc-solaris.  */
  10262. #define _STRUCTURED_PROC 1
  10263. #include <sys/procfs.h>
  10264. int
  10265. main ()
  10266. {
  10267. fpregset_t avar
  10268.   ;
  10269.   return 0;
  10270. }
  10271. _ACEOF
  10272. if ac_fn_c_try_compile "$LINENO"; then :
  10273.   bfd_cv_have_sys_procfs_type_fpregset_t=yes
  10274. else
  10275.   bfd_cv_have_sys_procfs_type_fpregset_t=no

  10276. fi
  10277. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10278. fi

  10279. if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then

  10280. $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h

  10281. fi
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
  10283. $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }

  10284.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
  10285. $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
  10286. if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
  10287.   $as_echo_n "(cached) " >&6
  10288. else
  10289.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10290. /* end confdefs.h.  */

  10291. #define _SYSCALL32
  10292. /* Needed for new procfs interface on sparc-solaris.  */
  10293. #define _STRUCTURED_PROC 1
  10294. #include <sys/procfs.h>
  10295. int
  10296. main ()
  10297. {
  10298. prgregset_t avar
  10299.   ;
  10300.   return 0;
  10301. }
  10302. _ACEOF
  10303. if ac_fn_c_try_compile "$LINENO"; then :
  10304.   bfd_cv_have_sys_procfs_type_prgregset_t=yes
  10305. else
  10306.   bfd_cv_have_sys_procfs_type_prgregset_t=no

  10307. fi
  10308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10309. fi

  10310. if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then

  10311. $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h

  10312. fi
  10313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
  10314. $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }

  10315.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
  10316. $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
  10317. if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
  10318.   $as_echo_n "(cached) " >&6
  10319. else
  10320.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10321. /* end confdefs.h.  */

  10322. #define _SYSCALL32
  10323. /* Needed for new procfs interface on sparc-solaris.  */
  10324. #define _STRUCTURED_PROC 1
  10325. #include <sys/procfs.h>
  10326. int
  10327. main ()
  10328. {
  10329. prfpregset_t avar
  10330.   ;
  10331.   return 0;
  10332. }
  10333. _ACEOF
  10334. if ac_fn_c_try_compile "$LINENO"; then :
  10335.   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
  10336. else
  10337.   bfd_cv_have_sys_procfs_type_prfpregset_t=no

  10338. fi
  10339. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10340. fi

  10341. if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then

  10342. $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h

  10343. fi
  10344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
  10345. $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }

  10346.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
  10347. $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
  10348. if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
  10349.   $as_echo_n "(cached) " >&6
  10350. else
  10351.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10352. /* end confdefs.h.  */

  10353. #define _SYSCALL32
  10354. /* Needed for new procfs interface on sparc-solaris.  */
  10355. #define _STRUCTURED_PROC 1
  10356. #include <sys/procfs.h>
  10357. int
  10358. main ()
  10359. {
  10360. prgregset32_t avar
  10361.   ;
  10362.   return 0;
  10363. }
  10364. _ACEOF
  10365. if ac_fn_c_try_compile "$LINENO"; then :
  10366.   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
  10367. else
  10368.   bfd_cv_have_sys_procfs_type_prgregset32_t=no

  10369. fi
  10370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10371. fi

  10372. if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then

  10373. $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h

  10374. fi
  10375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
  10376. $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }

  10377.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
  10378. $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
  10379. if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
  10380.   $as_echo_n "(cached) " >&6
  10381. else
  10382.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10383. /* end confdefs.h.  */

  10384. #define _SYSCALL32
  10385. /* Needed for new procfs interface on sparc-solaris.  */
  10386. #define _STRUCTURED_PROC 1
  10387. #include <sys/procfs.h>
  10388. int
  10389. main ()
  10390. {
  10391. lwpid_t avar
  10392.   ;
  10393.   return 0;
  10394. }
  10395. _ACEOF
  10396. if ac_fn_c_try_compile "$LINENO"; then :
  10397.   bfd_cv_have_sys_procfs_type_lwpid_t=yes
  10398. else
  10399.   bfd_cv_have_sys_procfs_type_lwpid_t=no

  10400. fi
  10401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10402. fi

  10403. if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then

  10404. $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h

  10405. fi
  10406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
  10407. $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }

  10408.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
  10409. $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
  10410. if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
  10411.   $as_echo_n "(cached) " >&6
  10412. else
  10413.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10414. /* end confdefs.h.  */

  10415. #define _SYSCALL32
  10416. /* Needed for new procfs interface on sparc-solaris.  */
  10417. #define _STRUCTURED_PROC 1
  10418. #include <sys/procfs.h>
  10419. int
  10420. main ()
  10421. {
  10422. psaddr_t avar
  10423.   ;
  10424.   return 0;
  10425. }
  10426. _ACEOF
  10427. if ac_fn_c_try_compile "$LINENO"; then :
  10428.   bfd_cv_have_sys_procfs_type_psaddr_t=yes
  10429. else
  10430.   bfd_cv_have_sys_procfs_type_psaddr_t=no

  10431. fi
  10432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10433. fi

  10434. if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then

  10435. $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h

  10436. fi
  10437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
  10438. $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }

  10439.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
  10440. $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
  10441. if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
  10442.   $as_echo_n "(cached) " >&6
  10443. else
  10444.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10445. /* end confdefs.h.  */

  10446. #define _SYSCALL32
  10447. /* Needed for new procfs interface on sparc-solaris.  */
  10448. #define _STRUCTURED_PROC 1
  10449. #include <sys/procfs.h>
  10450. int
  10451. main ()
  10452. {
  10453. prsysent_t avar
  10454.   ;
  10455.   return 0;
  10456. }
  10457. _ACEOF
  10458. if ac_fn_c_try_compile "$LINENO"; then :
  10459.   bfd_cv_have_sys_procfs_type_prsysent_t=yes
  10460. else
  10461.   bfd_cv_have_sys_procfs_type_prsysent_t=no

  10462. fi
  10463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10464. fi

  10465. if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then

  10466. $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h

  10467. fi
  10468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
  10469. $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }

  10470.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
  10471. $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
  10472. if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
  10473.   $as_echo_n "(cached) " >&6
  10474. else
  10475.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10476. /* end confdefs.h.  */

  10477. #define _SYSCALL32
  10478. /* Needed for new procfs interface on sparc-solaris.  */
  10479. #define _STRUCTURED_PROC 1
  10480. #include <sys/procfs.h>
  10481. int
  10482. main ()
  10483. {
  10484. pr_sigset_t avar
  10485.   ;
  10486.   return 0;
  10487. }
  10488. _ACEOF
  10489. if ac_fn_c_try_compile "$LINENO"; then :
  10490.   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
  10491. else
  10492.   bfd_cv_have_sys_procfs_type_pr_sigset_t=no

  10493. fi
  10494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10495. fi

  10496. if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then

  10497. $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h

  10498. fi
  10499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
  10500. $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }

  10501.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
  10502. $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
  10503. if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
  10504.   $as_echo_n "(cached) " >&6
  10505. else
  10506.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10507. /* end confdefs.h.  */

  10508. #define _SYSCALL32
  10509. /* Needed for new procfs interface on sparc-solaris.  */
  10510. #define _STRUCTURED_PROC 1
  10511. #include <sys/procfs.h>
  10512. int
  10513. main ()
  10514. {
  10515. pr_sigaction64_t avar
  10516.   ;
  10517.   return 0;
  10518. }
  10519. _ACEOF
  10520. if ac_fn_c_try_compile "$LINENO"; then :
  10521.   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
  10522. else
  10523.   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no

  10524. fi
  10525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10526. fi

  10527. if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then

  10528. $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h

  10529. fi
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
  10531. $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }

  10532.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
  10533. $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
  10534. if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
  10535.   $as_echo_n "(cached) " >&6
  10536. else
  10537.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10538. /* end confdefs.h.  */

  10539. #define _SYSCALL32
  10540. /* Needed for new procfs interface on sparc-solaris.  */
  10541. #define _STRUCTURED_PROC 1
  10542. #include <sys/procfs.h>
  10543. int
  10544. main ()
  10545. {
  10546. pr_siginfo64_t avar
  10547.   ;
  10548.   return 0;
  10549. }
  10550. _ACEOF
  10551. if ac_fn_c_try_compile "$LINENO"; then :
  10552.   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
  10553. else
  10554.   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no

  10555. fi
  10556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10557. fi

  10558. if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then

  10559. $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h

  10560. fi
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
  10562. $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }





  10563.   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
  10564.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
  10565. $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
  10566.     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
  10567.   $as_echo_n "(cached) " >&6
  10568. else
  10569.   if test "$cross_compiling" = yes; then :
  10570.   gdb_cv_prfpregset_t_broken=yes
  10571. else
  10572.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10573. /* end confdefs.h.  */
  10574. #include <sys/procfs.h>
  10575.        int main ()
  10576.        {
  10577.          if (sizeof (prfpregset_t) == sizeof (void *))
  10578.            return 1;
  10579.          return 0;
  10580.        }
  10581. _ACEOF
  10582. if ac_fn_c_try_run "$LINENO"; then :
  10583.   gdb_cv_prfpregset_t_broken=no
  10584. else
  10585.   gdb_cv_prfpregset_t_broken=yes
  10586. fi
  10587. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10588.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  10589. fi

  10590. fi

  10591.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
  10592. $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
  10593.     if test $gdb_cv_prfpregset_t_broken = yes; then

  10594. $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h

  10595.     fi
  10596.   fi
  10597. fi

  10598. # Check if the compiler supports the `long long' type.

  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
  10600. $as_echo_n "checking for long long support in compiler... " >&6; }
  10601. if test "${gdb_cv_c_long_long+set}" = set; then :
  10602.   $as_echo_n "(cached) " >&6
  10603. else
  10604.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10605. /* end confdefs.h.  */
  10606. extern long long foo;
  10607. int
  10608. main ()
  10609. {
  10610. switch (foo & 2) { case 0: return 1; }
  10611.   ;
  10612.   return 0;
  10613. }
  10614. _ACEOF
  10615. if ac_fn_c_try_compile "$LINENO"; then :
  10616.   gdb_cv_c_long_long=yes
  10617. else
  10618.   gdb_cv_c_long_long=no
  10619. fi
  10620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10621. fi
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
  10623. $as_echo "$gdb_cv_c_long_long" >&6; }
  10624. if test $gdb_cv_c_long_long != yes; then
  10625.   # libdecnumber requires long long.
  10626.   as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
  10627. fi

  10628. # Check if the compiler and runtime support printing long longs.

  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
  10630. $as_echo_n "checking for long long support in printf... " >&6; }
  10631. if test "${gdb_cv_printf_has_long_long+set}" = set; then :
  10632.   $as_echo_n "(cached) " >&6
  10633. else
  10634.   if test "$cross_compiling" = yes; then :
  10635.   gdb_cv_printf_has_long_long=no
  10636. else
  10637.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10638. /* end confdefs.h.  */
  10639. $ac_includes_default
  10640. int
  10641. main ()
  10642. {
  10643. char buf[32];
  10644.   long long l = 0;
  10645.   l = (l << 16) + 0x0123;
  10646.   l = (l << 16) + 0x4567;
  10647.   l = (l << 16) + 0x89ab;
  10648.   l = (l << 16) + 0xcdef;
  10649.   sprintf (buf, "0x%016llx", l);
  10650.   return (strcmp ("0x0123456789abcdef", buf));
  10651.   ;
  10652.   return 0;
  10653. }
  10654. _ACEOF
  10655. if ac_fn_c_try_run "$LINENO"; then :
  10656.   gdb_cv_printf_has_long_long=yes
  10657. else
  10658.   gdb_cv_printf_has_long_long=no
  10659. fi
  10660. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10661.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  10662. fi

  10663. fi
  10664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
  10665. $as_echo "$gdb_cv_printf_has_long_long" >&6; }
  10666. if test $gdb_cv_printf_has_long_long = yes; then

  10667. $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h

  10668. fi

  10669. # Check if the compiler and runtime support printing decfloats.

  10670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
  10671. $as_echo_n "checking for decfloat support in printf... " >&6; }
  10672. if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
  10673.   $as_echo_n "(cached) " >&6
  10674. else
  10675.   if test "$cross_compiling" = yes; then :
  10676.   gdb_cv_printf_has_decfloat=no
  10677. else
  10678.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10679. /* end confdefs.h.  */
  10680. $ac_includes_default
  10681. int
  10682. main ()
  10683. {
  10684. char buf[64];
  10685.   _Decimal32 d32 = 1.2345df;
  10686.   _Decimal64 d64 = 1.2345dd;
  10687.   _Decimal128 d128 = 1.2345dl;
  10688.   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
  10689.   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
  10690.   ;
  10691.   return 0;
  10692. }
  10693. _ACEOF
  10694. if ac_fn_c_try_run "$LINENO"; then :
  10695.   gdb_cv_printf_has_decfloat=yes
  10696. else
  10697.   gdb_cv_printf_has_decfloat=no
  10698. fi
  10699. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10700.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  10701. fi

  10702. fi
  10703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
  10704. $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
  10705. if test $gdb_cv_printf_has_decfloat = yes; then

  10706. $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h

  10707. fi

  10708. # Check if the compiler supports the `long double' type.  We can't use
  10709. # AC_C_LONG_DOUBLE because that one does additional checks on the
  10710. # constants defined in <float.h> that fail on some systems,
  10711. # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.

  10712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
  10713. $as_echo_n "checking for long double support in compiler... " >&6; }
  10714. if test "${gdb_cv_c_long_double+set}" = set; then :
  10715.   $as_echo_n "(cached) " >&6
  10716. else
  10717.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10718. /* end confdefs.h.  */
  10719. long double foo;
  10720. _ACEOF
  10721. if ac_fn_c_try_compile "$LINENO"; then :
  10722.   gdb_cv_c_long_double=yes
  10723. else
  10724.   gdb_cv_c_long_double=no
  10725. fi
  10726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10727. fi
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
  10729. $as_echo "$gdb_cv_c_long_double" >&6; }
  10730. if test $gdb_cv_c_long_double = yes; then

  10731. $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h

  10732. fi

  10733. # Check if the compiler and runtime support printing long doubles.

  10734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
  10735. $as_echo_n "checking for long double support in printf... " >&6; }
  10736. if test "${gdb_cv_printf_has_long_double+set}" = set; then :
  10737.   $as_echo_n "(cached) " >&6
  10738. else
  10739.   if test "$cross_compiling" = yes; then :
  10740.   gdb_cv_printf_has_long_double=no
  10741. else
  10742.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10743. /* end confdefs.h.  */
  10744. $ac_includes_default
  10745. int
  10746. main ()
  10747. {
  10748. char buf[16];
  10749.   long double f = 3.141592653;
  10750.   sprintf (buf, "%Lg", f);
  10751.   return (strncmp ("3.14159", buf, 7));
  10752.   ;
  10753.   return 0;
  10754. }
  10755. _ACEOF
  10756. if ac_fn_c_try_run "$LINENO"; then :
  10757.   gdb_cv_printf_has_long_double=yes
  10758. else
  10759.   gdb_cv_printf_has_long_double=no
  10760. fi
  10761. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10762.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  10763. fi

  10764. fi
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
  10766. $as_echo "$gdb_cv_printf_has_long_double" >&6; }
  10767. if test $gdb_cv_printf_has_long_double = yes; then

  10768. $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h

  10769. fi

  10770. # Check if the compiler and runtime support scanning long doubles.

  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
  10772. $as_echo_n "checking for long double support in scanf... " >&6; }
  10773. if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
  10774.   $as_echo_n "(cached) " >&6
  10775. else
  10776.   if test "$cross_compiling" = yes; then :
  10777.   gdb_cv_scanf_has_long_double=no
  10778. else
  10779.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10780. /* end confdefs.h.  */
  10781. #include <stdio.h>
  10782. int
  10783. main ()
  10784. {
  10785. char *buf = "3.141592653";
  10786.   long double f = 0;
  10787.   sscanf (buf, "%Lg", &f);
  10788.   return !(f > 3.14159 && f < 3.14160);
  10789.   ;
  10790.   return 0;
  10791. }
  10792. _ACEOF
  10793. if ac_fn_c_try_run "$LINENO"; then :
  10794.   gdb_cv_scanf_has_long_double=yes
  10795. else
  10796.   gdb_cv_scanf_has_long_double=no
  10797. fi
  10798. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10799.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  10800. fi

  10801. fi
  10802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
  10803. $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
  10804. if test $gdb_cv_scanf_has_long_double = yes; then

  10805. $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h

  10806. fi

  10807. case ${host_os} in
  10808. aix*)
  10809.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
  10810. $as_echo_n "checking for -bbigtoc option... " >&6; }
  10811. if test "${gdb_cv_bigtoc+set}" = set; then :
  10812.   $as_echo_n "(cached) " >&6
  10813. else

  10814.     SAVE_LDFLAGS=$LDFLAGS

  10815.     case $GCC in
  10816.     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
  10817.     *) gdb_cv_bigtoc=-bbigtoc ;;
  10818.     esac

  10819.     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
  10820.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10821. /* end confdefs.h.  */

  10822. int
  10823. main ()
  10824. {
  10825. int i;
  10826.   ;
  10827.   return 0;
  10828. }
  10829. _ACEOF
  10830. if ac_fn_c_try_link "$LINENO"; then :

  10831. else
  10832.   gdb_cv_bigtoc=
  10833. fi
  10834. rm -f core conftest.err conftest.$ac_objext \
  10835.     conftest$ac_exeext conftest.$ac_ext
  10836.     LDFLAGS="${SAVE_LDFLAGS}"

  10837. fi
  10838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
  10839. $as_echo "$gdb_cv_bigtoc" >&6; }
  10840.   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
  10841.   ;;
  10842. esac

  10843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
  10844. $as_echo_n "checking for the dynamic export flag... " >&6; }
  10845. dynamic_list=false
  10846. if test "${gdb_native}" = yes; then
  10847.    # The dynamically loaded libthread_db needs access to symbols in the gdb
  10848.    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
  10849.    # may not be supported there.
  10850.    old_LDFLAGS="$LDFLAGS"
  10851.    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
  10852.    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
  10853.    LDFLAGS="$LDFLAGS $RDYNAMIC"
  10854.    if test "${have_libpython}" = no; then
  10855.      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10856. /* end confdefs.h.  */

  10857. int
  10858. main ()
  10859. {

  10860.   ;
  10861.   return 0;
  10862. }
  10863. _ACEOF
  10864. if ac_fn_c_try_link "$LINENO"; then :
  10865.   dynamic_list=true
  10866. fi
  10867. rm -f core conftest.err conftest.$ac_objext \
  10868.     conftest$ac_exeext conftest.$ac_ext
  10869.    else
  10870.      # Workaround http://bugs.python.org/issue4434 where static
  10871.      # libpythonX.Y.a would get its symbols required for
  10872.      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
  10873.      # Problem does not happen for the recommended libpythonX.Y.so linkage.
  10874.      old_CFLAGS="$CFLAGS"
  10875.      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
  10876.      old_LIBS="$LIBS"
  10877.      LIBS="$LIBS $PYTHON_LIBS"
  10878.      if test "$cross_compiling" = yes; then :
  10879.   true
  10880. else
  10881.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10882. /* end confdefs.h.  */
  10883. #include "${have_libpython}/Python.h"
  10884. int
  10885. main ()
  10886. {
  10887. int err;
  10888.           Py_Initialize ();
  10889.           err = PyRun_SimpleString ("import itertools\n");
  10890.           Py_Finalize ();
  10891.           return err == 0 ? 0 : 1;
  10892.   ;
  10893.   return 0;
  10894. }
  10895. _ACEOF
  10896. if ac_fn_c_try_run "$LINENO"; then :
  10897.   dynamic_list=true
  10898. fi
  10899. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  10900.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  10901. fi

  10902.      LIBS="$old_LIBS"
  10903.      CFLAGS="$old_CFLAGS"
  10904.    fi
  10905.    LDFLAGS="$old_LDFLAGS"
  10906. fi
  10907. if $dynamic_list; then
  10908.   found="-Wl,--dynamic-list"
  10909.   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
  10910. else
  10911.   found="-rdynamic"
  10912.   RDYNAMIC="-rdynamic"
  10913. fi

  10914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
  10915. $as_echo "$found" >&6; }


  10916. if test ${build} = ${host} -a ${host} = ${target} ; then
  10917.    case ${host_os} in
  10918.    solaris*)
  10919.       # See if thread_db library is around for Solaris thread debugging.
  10920.       # Note that we must explicitly test for version 1 of the library
  10921.       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
  10922.       # the same API.
  10923.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
  10924. $as_echo_n "checking for Solaris thread debugging library... " >&6; }
  10925.       if test -f /usr/lib/libthread_db.so.1 ; then
  10926.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10927. $as_echo "yes" >&6; }

  10928. $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h

  10929.          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
  10930.          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
  10931.          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10932. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10933. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  10934.   $as_echo_n "(cached) " >&6
  10935. else
  10936.   ac_check_lib_save_LIBS=$LIBS
  10937. LIBS="-ldl  $LIBS"
  10938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10939. /* end confdefs.h.  */

  10940. /* Override any GCC internal prototype to avoid an error.
  10941.    Use char because int might match the return type of a GCC
  10942.    builtin and then its argument prototype would still apply.  */
  10943. #ifdef __cplusplus
  10944. extern "C"
  10945. #endif
  10946. char dlopen ();
  10947. int
  10948. main ()
  10949. {
  10950. return dlopen ();
  10951.   ;
  10952.   return 0;
  10953. }
  10954. _ACEOF
  10955. if ac_fn_c_try_link "$LINENO"; then :
  10956.   ac_cv_lib_dl_dlopen=yes
  10957. else
  10958.   ac_cv_lib_dl_dlopen=no
  10959. fi
  10960. rm -f core conftest.err conftest.$ac_objext \
  10961.     conftest$ac_exeext conftest.$ac_ext
  10962. LIBS=$ac_check_lib_save_LIBS
  10963. fi
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10965. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10966. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  10967.   cat >>confdefs.h <<_ACEOF
  10968. #define HAVE_LIBDL 1
  10969. _ACEOF

  10970.   LIBS="-ldl $LIBS"

  10971. fi

  10972.          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
  10973.          # Sun randomly tweaked the prototypes in <proc_service.h>
  10974.          # at one point.
  10975.          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
  10976. $as_echo_n "checking if <proc_service.h> is old... " >&6; }
  10977.          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
  10978.   $as_echo_n "(cached) " >&6
  10979. else

  10980.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10981. /* end confdefs.h.  */

  10982.                 #include <proc_service.h>
  10983.                 ps_err_e ps_pdwrite
  10984.                     (struct ps_prochandle*, psaddr_t, const void*, size_t);

  10985. int
  10986. main ()
  10987. {

  10988.   ;
  10989.   return 0;
  10990. }
  10991. _ACEOF
  10992. if ac_fn_c_try_compile "$LINENO"; then :
  10993.   gdb_cv_proc_service_is_old=no
  10994. else
  10995.   gdb_cv_proc_service_is_old=yes
  10996. fi
  10997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  10998. fi

  10999.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
  11000. $as_echo "$gdb_cv_proc_service_is_old" >&6; }
  11001.          if test $gdb_cv_proc_service_is_old = yes; then

  11002. $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h

  11003.          fi
  11004.       else
  11005.          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11006. $as_echo "no" >&6; }
  11007.       fi
  11008.       ;;
  11009.    aix*)
  11010.       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
  11011. $as_echo_n "checking for AiX thread debugging library... " >&6; }
  11012.       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
  11013.   $as_echo_n "(cached) " >&6
  11014. else
  11015.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11016. /* end confdefs.h.  */
  11017. #include <sys/pthdebug.h>
  11018. int
  11019. main ()
  11020. {
  11021. #ifndef PTHDB_VERSION_3
  11022.                                     #error
  11023.                                     #endif
  11024.   ;
  11025.   return 0;
  11026. }
  11027. _ACEOF
  11028. if ac_fn_c_try_compile "$LINENO"; then :
  11029.   gdb_cv_have_aix_thread_debug=yes
  11030. else
  11031.   gdb_cv_have_aix_thread_debug=no
  11032. fi
  11033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11034. fi

  11035.       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
  11036. $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
  11037.       if test $gdb_cv_have_aix_thread_debug = yes; then
  11038.          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
  11039.          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
  11040.          LIBS="$LIBS -lpthdebug"

  11041.          # Older versions of AIX do not provide the declaration for
  11042.          # the getthrds function (it appears that it was introduced
  11043.          # with AIX 6.x).
  11044.          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
  11045. "
  11046. if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
  11047.   ac_have_decl=1
  11048. else
  11049.   ac_have_decl=0
  11050. fi

  11051. cat >>confdefs.h <<_ACEOF
  11052. #define HAVE_DECL_GETTHRDS $ac_have_decl
  11053. _ACEOF

  11054.       fi
  11055.       ;;
  11056.    esac

  11057. fi

  11058. if test "x$ac_cv_header_thread_db_h" = "xyes"; then
  11059.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
  11060. $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
  11061. if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
  11062.   $as_echo_n "(cached) " >&6
  11063. else
  11064.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11065. /* end confdefs.h.  */
  11066. #include <thread_db.h>
  11067. int
  11068. main ()
  11069. {
  11070. int i = TD_NOTALLOC;
  11071.   ;
  11072.   return 0;
  11073. }
  11074. _ACEOF
  11075. if ac_fn_c_try_compile "$LINENO"; then :
  11076.   gdb_cv_thread_db_h_has_td_notalloc=yes
  11077. else
  11078.   gdb_cv_thread_db_h_has_td_notalloc=no

  11079. fi
  11080. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  11081. fi
  11082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
  11083. $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
  11084.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
  11085. $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
  11086. if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
  11087.   $as_echo_n "(cached) " >&6
  11088. else
  11089.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11090. /* end confdefs.h.  */
  11091. #include <thread_db.h>
  11092. int
  11093. main ()
  11094. {
  11095. int i = TD_VERSION;
  11096.   ;
  11097.   return 0;
  11098. }
  11099. _ACEOF
  11100. if ac_fn_c_try_compile "$LINENO"; then :
  11101.   gdb_cv_thread_db_h_has_td_version=yes
  11102. else
  11103.   gdb_cv_thread_db_h_has_td_version=no

  11104. fi
  11105. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  11106. fi
  11107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
  11108. $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
  11109.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
  11110. $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
  11111. if test "${gdb_cv_thread_db_h_has_td_notls+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 <thread_db.h>
  11117. int
  11118. main ()
  11119. {
  11120. int i = TD_NOTLS;
  11121.   ;
  11122.   return 0;
  11123. }
  11124. _ACEOF
  11125. if ac_fn_c_try_compile "$LINENO"; then :
  11126.   gdb_cv_thread_db_h_has_td_notls=yes
  11127. else
  11128.   gdb_cv_thread_db_h_has_td_notls=no

  11129. fi
  11130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  11131. fi
  11132. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
  11133. $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
  11134. fi
  11135. if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then

  11136. $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h

  11137. fi
  11138. if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then

  11139. $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h

  11140. fi
  11141. if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then

  11142. $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h

  11143. fi

  11144. if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
  11145.    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
  11146. $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
  11147. if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
  11148.   $as_echo_n "(cached) " >&6
  11149. else
  11150.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11151. /* end confdefs.h.  */
  11152. #include <sys/syscall.h>
  11153. int
  11154. main ()
  11155. {
  11156. int i = __NR_tkill;
  11157.   ;
  11158.   return 0;
  11159. }
  11160. _ACEOF
  11161. if ac_fn_c_try_compile "$LINENO"; then :
  11162.   gdb_cv_sys_syscall_h_has_tkill=yes
  11163. else
  11164.   gdb_cv_sys_syscall_h_has_tkill=no

  11165. fi
  11166. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext

  11167. fi
  11168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
  11169. $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
  11170. fi
  11171. if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
  11172.   ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
  11173. if test "x$ac_cv_func_syscall" = x""yes; then :

  11174. $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h


  11175. fi

  11176. fi

  11177. ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
  11178. "
  11179. if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
  11180.   ac_have_decl=1
  11181. else
  11182.   ac_have_decl=0
  11183. fi

  11184. cat >>confdefs.h <<_ACEOF
  11185. #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
  11186. _ACEOF


  11187. if test "$cross_compiling" = yes; then :
  11188.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11189. /* end confdefs.h.  */
  11190. #include <sys/personality.h>
  11191. int
  11192. main ()
  11193. {

  11194. #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
  11195. #       define ADDR_NO_RANDOMIZE 0x0040000
  11196. #      endif
  11197.        /* Test the flag could be set and stays set.  */
  11198.        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
  11199.        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
  11200.            return 1
  11201.   ;
  11202.   return 0;
  11203. }
  11204. _ACEOF
  11205. if ac_fn_c_try_link "$LINENO"; then :
  11206.   have_personality=true
  11207. else
  11208.   have_personality=false
  11209. fi
  11210. rm -f core conftest.err conftest.$ac_objext \
  11211.     conftest$ac_exeext conftest.$ac_ext
  11212. else
  11213.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11214. /* end confdefs.h.  */
  11215. #include <sys/personality.h>
  11216. int
  11217. main ()
  11218. {

  11219. #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
  11220. #       define ADDR_NO_RANDOMIZE 0x0040000
  11221. #      endif
  11222.        /* Test the flag could be set and stays set.  */
  11223.        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
  11224.        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
  11225.            return 1
  11226.   ;
  11227.   return 0;
  11228. }
  11229. _ACEOF
  11230. if ac_fn_c_try_run "$LINENO"; then :
  11231.   have_personality=true
  11232. else
  11233.   have_personality=false
  11234. fi
  11235. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11236.   conftest.$ac_objext conftest.beam conftest.$ac_ext
  11237. fi

  11238. if $have_personality
  11239. then

  11240. $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h

  11241. fi

  11242. case $host_os in
  11243.   go32* | *djgpp*)
  11244.     gdbinit=gdb.ini
  11245.     ;;
  11246.   *)
  11247.     gdbinit=.gdbinit
  11248.     ;;
  11249. esac

  11250. cat >>confdefs.h <<_ACEOF
  11251. #define GDBINIT "$gdbinit"
  11252. _ACEOF



  11253. # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
  11254. # except that the argument to --with-sysroot is optional.
  11255. # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
  11256. if test "x$with_sysroot" = xyes; then
  11257.   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
  11258. fi

  11259. # Check whether --with-sysroot was given.
  11260. if test "${with_sysroot+set}" = set; then :
  11261.   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
  11262. else
  11263.   TARGET_SYSTEM_ROOT=
  11264. fi


  11265.   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  11266.   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11267.   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
  11268.   ac_define_dir=`eval echo $ac_define_dir`

  11269. cat >>confdefs.h <<_ACEOF
  11270. #define TARGET_SYSTEM_ROOT "$ac_define_dir"
  11271. _ACEOF




  11272.   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  11273.      if test "x$prefix" = xNONE; then
  11274.              test_prefix=/usr/local
  11275.      else
  11276.         test_prefix=$prefix
  11277.      fi
  11278.   else
  11279.      test_prefix=$exec_prefix
  11280.   fi
  11281.   value=0
  11282.   case ${ac_define_dir} in
  11283.      "${test_prefix}"|"${test_prefix}/"*|\
  11284.         '${exec_prefix}'|'${exec_prefix}/'*)
  11285.      value=1
  11286.      ;;
  11287.   esac

  11288. cat >>confdefs.h <<_ACEOF
  11289. #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
  11290. _ACEOF





  11291. # Check whether --with-system-gdbinit was given.
  11292. if test "${with_system_gdbinit+set}" = set; then :
  11293.   withval=$with_system_gdbinit;
  11294.     SYSTEM_GDBINIT=$withval
  11295. else
  11296.   SYSTEM_GDBINIT=
  11297. fi


  11298.   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
  11299.   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11300.   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
  11301.   ac_define_dir=`eval echo $ac_define_dir`

  11302. cat >>confdefs.h <<_ACEOF
  11303. #define SYSTEM_GDBINIT "$ac_define_dir"
  11304. _ACEOF




  11305.   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
  11306.      if test "x$prefix" = xNONE; then
  11307.              test_prefix=/usr/local
  11308.      else
  11309.         test_prefix=$prefix
  11310.      fi
  11311.   else
  11312.      test_prefix=$exec_prefix
  11313.   fi
  11314.   value=0
  11315.   case ${ac_define_dir} in
  11316.      "${test_prefix}"|"${test_prefix}/"*|\
  11317.         '${exec_prefix}'|'${exec_prefix}/'*)
  11318.      value=1
  11319.      ;;
  11320.   esac

  11321. cat >>confdefs.h <<_ACEOF
  11322. #define SYSTEM_GDBINIT_RELOCATABLE $value
  11323. _ACEOF




  11324. # Check whether --enable-werror was given.
  11325. if test "${enable_werror+set}" = set; then :
  11326.   enableval=$enable_werror; case "${enableval}" in
  11327.      yes | y) ERROR_ON_WARNING="yes" ;;
  11328.      no | n)  ERROR_ON_WARNING="no" ;;
  11329.      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
  11330.    esac
  11331. fi


  11332. # Enable -Werror by default when using gcc.  Turn it off for releases.
  11333. if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
  11334.     ERROR_ON_WARNING=yes
  11335. fi

  11336. WERROR_CFLAGS=""
  11337. if test "${ERROR_ON_WARNING}" = yes ; then
  11338.     WERROR_CFLAGS="-Werror"
  11339. fi

  11340. build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
  11341. -Wpointer-sign \
  11342. -Wno-unused -Wunused-value -Wunused-function \
  11343. -Wno-switch -Wno-char-subscripts -Wmissing-prototypes \
  11344. -Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
  11345. -Wold-style-declaration -Wold-style-definition"

  11346. # Enable -Wno-format by default when using gcc on mingw since many
  11347. # GCC versions complain about %I64.
  11348. case "${host}" in
  11349.   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
  11350.   *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
  11351. esac

  11352. # Check whether --enable-build-warnings was given.
  11353. if test "${enable_build_warnings+set}" = set; then :
  11354.   enableval=$enable_build_warnings; case "${enableval}" in
  11355.   yes)        ;;
  11356.   no)        build_warnings="-w";;
  11357.   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
  11358.         build_warnings="${build_warnings} ${t}";;
  11359.   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
  11360.         build_warnings="${t} ${build_warnings}";;
  11361.   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  11362. esac
  11363. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  11364.   echo "Setting compiler warning flags = $build_warnings" 6>&1
  11365. fi
  11366. fi
  11367. # Check whether --enable-gdb-build-warnings was given.
  11368. if test "${enable_gdb_build_warnings+set}" = set; then :
  11369.   enableval=$enable_gdb_build_warnings; case "${enableval}" in
  11370.   yes)        ;;
  11371.   no)        build_warnings="-w";;
  11372.   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
  11373.         build_warnings="${build_warnings} ${t}";;
  11374.   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
  11375.         build_warnings="${t} ${build_warnings}";;
  11376.   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
  11377. esac
  11378. if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
  11379.   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
  11380. fi
  11381. fi
  11382. WARN_CFLAGS=""
  11383. if test "x${build_warnings}" != x -a "x$GCC" = xyes
  11384. then
  11385.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
  11386. $as_echo_n "checking compiler warning flags... " >&6; }
  11387.     # Separate out the -Werror flag as some files just cannot be
  11388.     # compiled with it enabled.
  11389.     for w in ${build_warnings}; do
  11390.         case $w in
  11391.         -Werr*) WERROR_CFLAGS=-Werror ;;
  11392.         *) # Check that GCC accepts it
  11393.             saved_CFLAGS="$CFLAGS"
  11394.             CFLAGS="$CFLAGS $w"
  11395.             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11396. /* end confdefs.h.  */

  11397. int
  11398. main ()
  11399. {

  11400.   ;
  11401.   return 0;
  11402. }
  11403. _ACEOF
  11404. if ac_fn_c_try_compile "$LINENO"; then :
  11405.   WARN_CFLAGS="${WARN_CFLAGS} $w"
  11406. fi
  11407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11408.             CFLAGS="$saved_CFLAGS"
  11409.         esac
  11410.     done
  11411.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
  11412. $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
  11413. fi



  11414. # In the Cygwin environment, we need some additional flags.
  11415. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
  11416. $as_echo_n "checking for cygwin... " >&6; }
  11417. if test "${gdb_cv_os_cygwin+set}" = set; then :
  11418.   $as_echo_n "(cached) " >&6
  11419. else
  11420.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11421. /* end confdefs.h.  */

  11422. #if defined (__CYGWIN__) || defined (__CYGWIN32__)
  11423. lose
  11424. #endif
  11425. _ACEOF
  11426. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11427.   $EGREP "^lose$" >/dev/null 2>&1; then :
  11428.   gdb_cv_os_cygwin=yes
  11429. else
  11430.   gdb_cv_os_cygwin=no
  11431. fi
  11432. rm -f conftest*

  11433. fi
  11434. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
  11435. $as_echo "$gdb_cv_os_cygwin" >&6; }


  11436. SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
  11437. case ${host} in
  11438.   *go32* ) SER_HARDWIRE=ser-go32.o ;;
  11439.   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
  11440.   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
  11441. esac


  11442. # libreadline needs libuser32.a in a cygwin environment
  11443. WIN32LIBS=
  11444. if test x$gdb_cv_os_cygwin = xyes; then
  11445.     WIN32LIBS="-luser32"
  11446.     case "${target}" in
  11447.         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
  11448.         ;;
  11449.     esac
  11450. fi

  11451. # The ser-tcp.c module requires sockets.
  11452. case ${host} in
  11453.   *mingw32*)

  11454. $as_echo "#define USE_WIN32API 1" >>confdefs.h

  11455.     WIN32LIBS="$WIN32LIBS -lws2_32"
  11456.     ;;
  11457. esac


  11458. # Add ELF support to GDB, but only if BFD includes ELF support.

  11459.   OLD_CFLAGS=$CFLAGS
  11460.   OLD_LDFLAGS=$LDFLAGS
  11461.   OLD_LIBS=$LIBS
  11462.   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
  11463.   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
  11464.   # always want our bfd.
  11465.   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
  11466.   LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
  11467.   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
  11468.   LIBS="-lbfd -liberty $intl $LIBS"
  11469.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
  11470. $as_echo_n "checking for ELF support in BFD... " >&6; }
  11471. if test "${gdb_cv_var_elf+set}" = set; then :
  11472.   $as_echo_n "(cached) " >&6
  11473. else
  11474.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11475. /* end confdefs.h.  */
  11476. #include <stdlib.h>
  11477.   #include "bfd.h"
  11478.   #include "elf-bfd.h"

  11479. int
  11480. main ()
  11481. {
  11482. return bfd_get_elf_phdr_upper_bound (NULL);
  11483.   ;
  11484.   return 0;
  11485. }
  11486. _ACEOF
  11487. if ac_fn_c_try_link "$LINENO"; then :
  11488.   gdb_cv_var_elf=yes
  11489. else
  11490.   gdb_cv_var_elf=no
  11491. fi
  11492. rm -f core conftest.err conftest.$ac_objext \
  11493.     conftest$ac_exeext conftest.$ac_ext
  11494. fi
  11495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
  11496. $as_echo "$gdb_cv_var_elf" >&6; }
  11497.   CFLAGS=$OLD_CFLAGS
  11498.   LDFLAGS=$OLD_LDFLAGS
  11499.   LIBS=$OLD_LIBS
  11500. if test $gdb_cv_var_elf = yes; then
  11501.   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"

  11502. $as_echo "#define HAVE_ELF 1" >>confdefs.h

  11503.   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
  11504.   if test "$plugins" = "yes"; then
  11505.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
  11506. $as_echo_n "checking for library containing dlopen... " >&6; }
  11507. if test "${ac_cv_search_dlopen+set}" = set; then :
  11508.   $as_echo_n "(cached) " >&6
  11509. else
  11510.   ac_func_search_save_LIBS=$LIBS
  11511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11512. /* end confdefs.h.  */

  11513. /* Override any GCC internal prototype to avoid an error.
  11514.    Use char because int might match the return type of a GCC
  11515.    builtin and then its argument prototype would still apply.  */
  11516. #ifdef __cplusplus
  11517. extern "C"
  11518. #endif
  11519. char dlopen ();
  11520. int
  11521. main ()
  11522. {
  11523. return dlopen ();
  11524.   ;
  11525.   return 0;
  11526. }
  11527. _ACEOF
  11528. for ac_lib in '' dl; do
  11529.   if test -z "$ac_lib"; then
  11530.     ac_res="none required"
  11531.   else
  11532.     ac_res=-l$ac_lib
  11533.     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
  11534.   fi
  11535.   if ac_fn_c_try_link "$LINENO"; then :
  11536.   ac_cv_search_dlopen=$ac_res
  11537. fi
  11538. rm -f core conftest.err conftest.$ac_objext \
  11539.     conftest$ac_exeext
  11540.   if test "${ac_cv_search_dlopen+set}" = set; then :
  11541.   break
  11542. fi
  11543. done
  11544. if test "${ac_cv_search_dlopen+set}" = set; then :

  11545. else
  11546.   ac_cv_search_dlopen=no
  11547. fi
  11548. rm conftest.$ac_ext
  11549. LIBS=$ac_func_search_save_LIBS
  11550. fi
  11551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
  11552. $as_echo "$ac_cv_search_dlopen" >&6; }
  11553. ac_res=$ac_cv_search_dlopen
  11554. if test "$ac_res" != no; then :
  11555.   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"

  11556. fi

  11557.   fi
  11558. fi

  11559. # Add macho support to GDB, but only if BFD includes it.

  11560.   OLD_CFLAGS=$CFLAGS
  11561.   OLD_LDFLAGS=$LDFLAGS
  11562.   OLD_LIBS=$LIBS
  11563.   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
  11564.   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
  11565.   # always want our bfd.
  11566.   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
  11567.   LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
  11568.   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
  11569.   LIBS="-lbfd -liberty $intl $LIBS"
  11570.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
  11571. $as_echo_n "checking for Mach-O support in BFD... " >&6; }
  11572. if test "${gdb_cv_var_macho+set}" = set; then :
  11573.   $as_echo_n "(cached) " >&6
  11574. else
  11575.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11576. /* end confdefs.h.  */
  11577. #include <stdlib.h>
  11578.   #include "bfd.h"
  11579.   #include "mach-o.h"

  11580. int
  11581. main ()
  11582. {
  11583. return bfd_mach_o_lookup_command (NULL, 0, NULL);
  11584.   ;
  11585.   return 0;
  11586. }
  11587. _ACEOF
  11588. if ac_fn_c_try_link "$LINENO"; then :
  11589.   gdb_cv_var_macho=yes
  11590. else
  11591.   gdb_cv_var_macho=no
  11592. fi
  11593. rm -f core conftest.err conftest.$ac_objext \
  11594.     conftest$ac_exeext conftest.$ac_ext
  11595. fi
  11596. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
  11597. $as_echo "$gdb_cv_var_macho" >&6; }
  11598.   CFLAGS=$OLD_CFLAGS
  11599.   LDFLAGS=$OLD_LDFLAGS
  11600.   LIBS=$OLD_LIBS
  11601. if test $gdb_cv_var_macho = yes; then
  11602.   CONFIG_OBS="$CONFIG_OBS machoread.o"
  11603. fi

  11604. # Add SOM support to GDB, but only if BFD includes it.

  11605.   OLD_CFLAGS=$CFLAGS
  11606.   OLD_LDFLAGS=$LDFLAGS
  11607.   OLD_LIBS=$LIBS
  11608.   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
  11609.   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
  11610.   # always want our bfd.
  11611.   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
  11612.   LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
  11613.   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
  11614.   LIBS="-lbfd -liberty $intl $LIBS"
  11615.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SOM support in BFD" >&5
  11616. $as_echo_n "checking for SOM support in BFD... " >&6; }
  11617. if test "${gdb_cv_var_som+set}" = set; then :
  11618.   $as_echo_n "(cached) " >&6
  11619. else
  11620.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11621. /* end confdefs.h.  */
  11622. #include <stdlib.h>
  11623.   #include "bfd.h"
  11624.   #include "som.h"

  11625. int
  11626. main ()
  11627. {
  11628. return bfd_som_attach_aux_hdr (NULL, 0, NULL);
  11629.   ;
  11630.   return 0;
  11631. }
  11632. _ACEOF
  11633. if ac_fn_c_try_link "$LINENO"; then :
  11634.   gdb_cv_var_som=yes
  11635. else
  11636.   gdb_cv_var_som=no
  11637. fi
  11638. rm -f core conftest.err conftest.$ac_objext \
  11639.     conftest$ac_exeext conftest.$ac_ext
  11640. fi
  11641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_som" >&5
  11642. $as_echo "$gdb_cv_var_som" >&6; }
  11643.   CFLAGS=$OLD_CFLAGS
  11644.   LDFLAGS=$OLD_LDFLAGS
  11645.   LIBS=$OLD_LIBS
  11646. if test $gdb_cv_var_som = yes; then
  11647.   CONFIG_OBS="$CONFIG_OBS somread.o"
  11648. fi

  11649. # Add any host-specific objects to GDB.
  11650. CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"

  11651. # If building on ELF, look for lzma support for embedded compressed debug info.
  11652. if test $gdb_cv_var_elf = yes; then

  11653. # Check whether --with-lzma was given.
  11654. if test "${with_lzma+set}" = set; then :
  11655.   withval=$with_lzma;
  11656. else
  11657.   with_lzma=auto
  11658. fi

  11659.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
  11660. $as_echo_n "checking whether to use lzma... " >&6; }
  11661.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
  11662. $as_echo "$with_lzma" >&6; }

  11663.   if test "${with_lzma}" != no; then








  11664.     use_additional=yes

  11665.   acl_save_prefix="$prefix"
  11666.   prefix="$acl_final_prefix"
  11667.   acl_save_exec_prefix="$exec_prefix"
  11668.   exec_prefix="$acl_final_exec_prefix"

  11669.     eval additional_includedir=\"$includedir\"
  11670.     eval additional_libdir=\"$libdir\"

  11671.   exec_prefix="$acl_save_exec_prefix"
  11672.   prefix="$acl_save_prefix"


  11673. # Check whether --with-liblzma-prefix was given.
  11674. if test "${with_liblzma_prefix+set}" = set; then :
  11675.   withval=$with_liblzma_prefix;
  11676.     if test "X$withval" = "Xno"; then
  11677.       use_additional=no
  11678.     else
  11679.       if test "X$withval" = "X"; then

  11680.   acl_save_prefix="$prefix"
  11681.   prefix="$acl_final_prefix"
  11682.   acl_save_exec_prefix="$exec_prefix"
  11683.   exec_prefix="$acl_final_exec_prefix"

  11684.           eval additional_includedir=\"$includedir\"
  11685.           eval additional_libdir=\"$libdir\"

  11686.   exec_prefix="$acl_save_exec_prefix"
  11687.   prefix="$acl_save_prefix"

  11688.       else
  11689.         additional_includedir="$withval/include"
  11690.         additional_libdir="$withval/lib"
  11691.       fi
  11692.     fi

  11693. fi

  11694.       LIBLZMA=
  11695.   LTLIBLZMA=
  11696.   INCLZMA=
  11697.   rpathdirs=
  11698.   ltrpathdirs=
  11699.   names_already_handled=
  11700.   names_next_round='lzma '
  11701.   while test -n "$names_next_round"; do
  11702.     names_this_round="$names_next_round"
  11703.     names_next_round=
  11704.     for name in $names_this_round; do
  11705.       already_handled=
  11706.       for n in $names_already_handled; do
  11707.         if test "$n" = "$name"; then
  11708.           already_handled=yes
  11709.           break
  11710.         fi
  11711.       done
  11712.       if test -z "$already_handled"; then
  11713.         names_already_handled="$names_already_handled $name"
  11714.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11715.         eval value=\"\$HAVE_LIB$uppername\"
  11716.         if test -n "$value"; then
  11717.           if test "$value" = yes; then
  11718.             eval value=\"\$LIB$uppername\"
  11719.             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
  11720.             eval value=\"\$LTLIB$uppername\"
  11721.             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
  11722.           else
  11723.                                     :
  11724.           fi
  11725.         else
  11726.                               found_dir=
  11727.           found_la=
  11728.           found_so=
  11729.           found_a=
  11730.           if test $use_additional = yes; then
  11731.             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  11732.               found_dir="$additional_libdir"
  11733.               found_so="$additional_libdir/lib$name.$shlibext"
  11734.               if test -f "$additional_libdir/lib$name.la"; then
  11735.                 found_la="$additional_libdir/lib$name.la"
  11736.               fi
  11737.             else
  11738.               if test -f "$additional_libdir/lib$name.$libext"; then
  11739.                 found_dir="$additional_libdir"
  11740.                 found_a="$additional_libdir/lib$name.$libext"
  11741.                 if test -f "$additional_libdir/lib$name.la"; then
  11742.                   found_la="$additional_libdir/lib$name.la"
  11743.                 fi
  11744.               fi
  11745.             fi
  11746.           fi
  11747.           if test "X$found_dir" = "X"; then
  11748.             for x in $LDFLAGS $LTLIBLZMA; do

  11749.   acl_save_prefix="$prefix"
  11750.   prefix="$acl_final_prefix"
  11751.   acl_save_exec_prefix="$exec_prefix"
  11752.   exec_prefix="$acl_final_exec_prefix"
  11753.   eval x=\"$x\"
  11754.   exec_prefix="$acl_save_exec_prefix"
  11755.   prefix="$acl_save_prefix"

  11756.               case "$x" in
  11757.                 -L*)
  11758.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  11759.                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  11760.                     found_dir="$dir"
  11761.                     found_so="$dir/lib$name.$shlibext"
  11762.                     if test -f "$dir/lib$name.la"; then
  11763.                       found_la="$dir/lib$name.la"
  11764.                     fi
  11765.                   else
  11766.                     if test -f "$dir/lib$name.$libext"; then
  11767.                       found_dir="$dir"
  11768.                       found_a="$dir/lib$name.$libext"
  11769.                       if test -f "$dir/lib$name.la"; then
  11770.                         found_la="$dir/lib$name.la"
  11771.                       fi
  11772.                     fi
  11773.                   fi
  11774.                   ;;
  11775.               esac
  11776.               if test "X$found_dir" != "X"; then
  11777.                 break
  11778.               fi
  11779.             done
  11780.           fi
  11781.           if test "X$found_dir" != "X"; then
  11782.                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
  11783.             if test "X$found_so" != "X"; then
  11784.                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  11785.                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
  11786.               else
  11787.                                                                                 haveit=
  11788.                 for x in $ltrpathdirs; do
  11789.                   if test "X$x" = "X$found_dir"; then
  11790.                     haveit=yes
  11791.                     break
  11792.                   fi
  11793.                 done
  11794.                 if test -z "$haveit"; then
  11795.                   ltrpathdirs="$ltrpathdirs $found_dir"
  11796.                 fi
  11797.                                 if test "$hardcode_direct" = yes; then
  11798.                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
  11799.                 else
  11800.                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  11801.                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
  11802.                                                             haveit=
  11803.                     for x in $rpathdirs; do
  11804.                       if test "X$x" = "X$found_dir"; then
  11805.                         haveit=yes
  11806.                         break
  11807.                       fi
  11808.                     done
  11809.                     if test -z "$haveit"; then
  11810.                       rpathdirs="$rpathdirs $found_dir"
  11811.                     fi
  11812.                   else
  11813.                                                                                 haveit=
  11814.                     for x in $LDFLAGS $LIBLZMA; do

  11815.   acl_save_prefix="$prefix"
  11816.   prefix="$acl_final_prefix"
  11817.   acl_save_exec_prefix="$exec_prefix"
  11818.   exec_prefix="$acl_final_exec_prefix"
  11819.   eval x=\"$x\"
  11820.   exec_prefix="$acl_save_exec_prefix"
  11821.   prefix="$acl_save_prefix"

  11822.                       if test "X$x" = "X-L$found_dir"; then
  11823.                         haveit=yes
  11824.                         break
  11825.                       fi
  11826.                     done
  11827.                     if test -z "$haveit"; then
  11828.                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
  11829.                     fi
  11830.                     if test "$hardcode_minus_L" != no; then
  11831.                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
  11832.                     else
  11833.                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
  11834.                     fi
  11835.                   fi
  11836.                 fi
  11837.               fi
  11838.             else
  11839.               if test "X$found_a" != "X"; then
  11840.                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
  11841.               else
  11842.                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
  11843.               fi
  11844.             fi
  11845.                         additional_includedir=
  11846.             case "$found_dir" in
  11847.               */lib | */lib/)
  11848.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  11849.                 additional_includedir="$basedir/include"
  11850.                 ;;
  11851.             esac
  11852.             if test "X$additional_includedir" != "X"; then
  11853.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  11854.                 haveit=
  11855.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  11856.                   if test -n "$GCC"; then
  11857.                     case $host_os in
  11858.                       linux*) haveit=yes;;
  11859.                     esac
  11860.                   fi
  11861.                 fi
  11862.                 if test -z "$haveit"; then
  11863.                   for x in $CPPFLAGS $INCLZMA; do

  11864.   acl_save_prefix="$prefix"
  11865.   prefix="$acl_final_prefix"
  11866.   acl_save_exec_prefix="$exec_prefix"
  11867.   exec_prefix="$acl_final_exec_prefix"
  11868.   eval x=\"$x\"
  11869.   exec_prefix="$acl_save_exec_prefix"
  11870.   prefix="$acl_save_prefix"

  11871.                     if test "X$x" = "X-I$additional_includedir"; then
  11872.                       haveit=yes
  11873.                       break
  11874.                     fi
  11875.                   done
  11876.                   if test -z "$haveit"; then
  11877.                     if test -d "$additional_includedir"; then
  11878.                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
  11879.                     fi
  11880.                   fi
  11881.                 fi
  11882.               fi
  11883.             fi
  11884.                         if test -n "$found_la"; then
  11885.                                                         save_libdir="$libdir"
  11886.               case "$found_la" in
  11887.                 */* | *\\*) . "$found_la" ;;
  11888.                 *) . "./$found_la" ;;
  11889.               esac
  11890.               libdir="$save_libdir"
  11891.                             for dep in $dependency_libs; do
  11892.                 case "$dep" in
  11893.                   -L*)
  11894.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11895.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
  11896.                       haveit=
  11897.                       if test "X$additional_libdir" = "X/usr/local/lib"; then
  11898.                         if test -n "$GCC"; then
  11899.                           case $host_os in
  11900.                             linux*) haveit=yes;;
  11901.                           esac
  11902.                         fi
  11903.                       fi
  11904.                       if test -z "$haveit"; then
  11905.                         haveit=
  11906.                         for x in $LDFLAGS $LIBLZMA; do

  11907.   acl_save_prefix="$prefix"
  11908.   prefix="$acl_final_prefix"
  11909.   acl_save_exec_prefix="$exec_prefix"
  11910.   exec_prefix="$acl_final_exec_prefix"
  11911.   eval x=\"$x\"
  11912.   exec_prefix="$acl_save_exec_prefix"
  11913.   prefix="$acl_save_prefix"

  11914.                           if test "X$x" = "X-L$additional_libdir"; then
  11915.                             haveit=yes
  11916.                             break
  11917.                           fi
  11918.                         done
  11919.                         if test -z "$haveit"; then
  11920.                           if test -d "$additional_libdir"; then
  11921.                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
  11922.                           fi
  11923.                         fi
  11924.                         haveit=
  11925.                         for x in $LDFLAGS $LTLIBLZMA; do

  11926.   acl_save_prefix="$prefix"
  11927.   prefix="$acl_final_prefix"
  11928.   acl_save_exec_prefix="$exec_prefix"
  11929.   exec_prefix="$acl_final_exec_prefix"
  11930.   eval x=\"$x\"
  11931.   exec_prefix="$acl_save_exec_prefix"
  11932.   prefix="$acl_save_prefix"

  11933.                           if test "X$x" = "X-L$additional_libdir"; then
  11934.                             haveit=yes
  11935.                             break
  11936.                           fi
  11937.                         done
  11938.                         if test -z "$haveit"; then
  11939.                           if test -d "$additional_libdir"; then
  11940.                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
  11941.                           fi
  11942.                         fi
  11943.                       fi
  11944.                     fi
  11945.                     ;;
  11946.                   -R*)
  11947.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11948.                     if test "$enable_rpath" != no; then
  11949.                                                                   haveit=
  11950.                       for x in $rpathdirs; do
  11951.                         if test "X$x" = "X$dir"; then
  11952.                           haveit=yes
  11953.                           break
  11954.                         fi
  11955.                       done
  11956.                       if test -z "$haveit"; then
  11957.                         rpathdirs="$rpathdirs $dir"
  11958.                       fi
  11959.                                                                   haveit=
  11960.                       for x in $ltrpathdirs; do
  11961.                         if test "X$x" = "X$dir"; then
  11962.                           haveit=yes
  11963.                           break
  11964.                         fi
  11965.                       done
  11966.                       if test -z "$haveit"; then
  11967.                         ltrpathdirs="$ltrpathdirs $dir"
  11968.                       fi
  11969.                     fi
  11970.                     ;;
  11971.                   -l*)
  11972.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11973.                     ;;
  11974.                   *.la)
  11975.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11976.                     ;;
  11977.                   *)
  11978.                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
  11979.                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
  11980.                     ;;
  11981.                 esac
  11982.               done
  11983.             fi
  11984.           else
  11985.                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
  11986.             LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
  11987.           fi
  11988.         fi
  11989.       fi
  11990.     done
  11991.   done
  11992.   if test "X$rpathdirs" != "X"; then
  11993.     if test -n "$hardcode_libdir_separator"; then
  11994.                         alldirs=
  11995.       for found_dir in $rpathdirs; do
  11996.         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  11997.       done
  11998.             acl_save_libdir="$libdir"
  11999.       libdir="$alldirs"
  12000.       eval flag=\"$hardcode_libdir_flag_spec\"
  12001.       libdir="$acl_save_libdir"
  12002.       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
  12003.     else
  12004.             for found_dir in $rpathdirs; do
  12005.         acl_save_libdir="$libdir"
  12006.         libdir="$found_dir"
  12007.         eval flag=\"$hardcode_libdir_flag_spec\"
  12008.         libdir="$acl_save_libdir"
  12009.         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
  12010.       done
  12011.     fi
  12012.   fi
  12013.   if test "X$ltrpathdirs" != "X"; then
  12014.             for found_dir in $ltrpathdirs; do
  12015.       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
  12016.     done
  12017.   fi


  12018.         ac_save_CPPFLAGS="$CPPFLAGS"

  12019.   for element in $INCLZMA; do
  12020.     haveit=
  12021.     for x in $CPPFLAGS; do

  12022.   acl_save_prefix="$prefix"
  12023.   prefix="$acl_final_prefix"
  12024.   acl_save_exec_prefix="$exec_prefix"
  12025.   exec_prefix="$acl_final_exec_prefix"
  12026.   eval x=\"$x\"
  12027.   exec_prefix="$acl_save_exec_prefix"
  12028.   prefix="$acl_save_prefix"

  12029.       if test "X$x" = "X$element"; then
  12030.         haveit=yes
  12031.         break
  12032.       fi
  12033.     done
  12034.     if test -z "$haveit"; then
  12035.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12036.     fi
  12037.   done


  12038.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
  12039. $as_echo_n "checking for liblzma... " >&6; }
  12040. if test "${ac_cv_liblzma+set}" = set; then :
  12041.   $as_echo_n "(cached) " >&6
  12042. else

  12043.     ac_save_LIBS="$LIBS"
  12044.     LIBS="$LIBS $LIBLZMA"
  12045.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12046. /* end confdefs.h.  */
  12047. #include "lzma.h"
  12048. int
  12049. main ()
  12050. {
  12051. lzma_index_iter iter;
  12052.                            lzma_index_iter_init (&iter, 0);
  12053.                            lzma_mf_is_supported (LZMA_MF_HC3);
  12054.   ;
  12055.   return 0;
  12056. }
  12057. _ACEOF
  12058. if ac_fn_c_try_link "$LINENO"; then :
  12059.   ac_cv_liblzma=yes
  12060. else
  12061.   ac_cv_liblzma=no
  12062. fi
  12063. rm -f core conftest.err conftest.$ac_objext \
  12064.     conftest$ac_exeext conftest.$ac_ext
  12065.     LIBS="$ac_save_LIBS"

  12066. fi
  12067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
  12068. $as_echo "$ac_cv_liblzma" >&6; }
  12069.   if test "$ac_cv_liblzma" = yes; then
  12070.     HAVE_LIBLZMA=yes

  12071. $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h

  12072.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
  12073. $as_echo_n "checking how to link with liblzma... " >&6; }
  12074.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
  12075. $as_echo "$LIBLZMA" >&6; }
  12076.   else
  12077.     HAVE_LIBLZMA=no
  12078.             CPPFLAGS="$ac_save_CPPFLAGS"
  12079.     LIBLZMA=
  12080.     LTLIBLZMA=
  12081.   fi






  12082.     if test "$HAVE_LIBLZMA" != yes; then
  12083.       if test "$with_lzma" = yes; then
  12084.         as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
  12085.       fi
  12086.     fi
  12087.   fi
  12088. fi

  12089. LIBGUI="../libgui/src/libgui.a"
  12090. GUI_CFLAGS_X="-I${srcdir}/../libgui/src"



  12091. WIN32LDAPP=



  12092. case "${host}" in
  12093. *-*-cygwin* | *-*-mingw* )
  12094.     configdir="win"
  12095.     ;;
  12096. *)
  12097.     configdir="unix"
  12098.     ;;
  12099. esac

  12100. GDBTKLIBS=
  12101. if test "${enable_gdbtk}" = "yes"; then

  12102.     # Gdbtk must have an absolute path to srcdir in order to run
  12103.     # properly when not installed.
  12104.     here=`pwd`
  12105.     cd ${srcdir}
  12106.     GDBTK_SRC_DIR=`pwd`
  12107.     cd $here


  12108.     #
  12109.     # Ok, lets find the tcl configuration
  12110.     # First, look for one uninstalled.
  12111.     # the alternative search directory is invoked by --with-tcl
  12112.     #

  12113.     if test x"${no_tcl}" = x ; then
  12114.         # we reset no_tcl in case something fails here
  12115.         no_tcl=true

  12116. # Check whether --with-tcl was given.
  12117. if test "${with_tcl+set}" = set; then :
  12118.   withval=$with_tcl; with_tclconfig=${withval}
  12119. fi

  12120.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
  12121. $as_echo_n "checking for Tcl configuration... " >&6; }
  12122.         if test "${ac_cv_c_tclconfig+set}" = set; then :
  12123.   $as_echo_n "(cached) " >&6
  12124. else


  12125.             # First check to see if --with-tcl was specified.
  12126.             case "${host}" in
  12127.                 *-*-cygwin*) platDir="win" ;;
  12128.                 *) platDir="unix" ;;
  12129.             esac
  12130.             if test x"${with_tclconfig}" != x ; then
  12131.                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
  12132.                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
  12133.                 else
  12134.                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
  12135.                 fi
  12136.             fi

  12137.             # then check for a private Tcl installation
  12138.             if test x"${ac_cv_c_tclconfig}" = x ; then
  12139.                 for i in \
  12140.                         ../tcl \
  12141.                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  12142.                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
  12143.                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
  12144.                         ../../tcl \
  12145.                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  12146.                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
  12147.                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
  12148.                         ../../../tcl \
  12149.                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  12150.                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
  12151.                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
  12152.                     if test -f "$i/$platDir/tclConfig.sh" ; then
  12153.                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
  12154.                         break
  12155.                     fi
  12156.                 done
  12157.             fi

  12158.             # on Darwin, check in Framework installation locations
  12159.             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
  12160.                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
  12161.                         `ls -d /Library/Frameworks 2>/dev/null` \
  12162.                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
  12163.                         `ls -d /System/Library/Frameworks 2>/dev/null` \
  12164.                         ; do
  12165.                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
  12166.                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
  12167.                         break
  12168.                     fi
  12169.                 done
  12170.             fi

  12171.             # check in a few common install locations
  12172.             if test x"${ac_cv_c_tclconfig}" = x ; then
  12173.                 for i in `ls -d ${libdir} 2>/dev/null` \
  12174.                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
  12175.                         `ls -d ${prefix}/lib 2>/dev/null` \
  12176.                         `ls -d /usr/local/lib 2>/dev/null` \
  12177.                         `ls -d /usr/contrib/lib 2>/dev/null` \
  12178.                         `ls -d /usr/lib 2>/dev/null` \
  12179.                         ; do
  12180.                     if test -f "$i/tclConfig.sh" ; then
  12181.                         ac_cv_c_tclconfig=`(cd $i; pwd)`
  12182.                         break
  12183.                     fi
  12184.                 done
  12185.             fi

  12186.             # check in a few other private locations
  12187.             if test x"${ac_cv_c_tclconfig}" = x ; then
  12188.                 for i in \
  12189.                         ${srcdir}/../tcl \
  12190.                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
  12191.                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
  12192.                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
  12193.                     if test -f "$i/$platDir/tclConfig.sh" ; then
  12194.                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
  12195.                     break
  12196.                 fi
  12197.                 done
  12198.             fi

  12199. fi


  12200.         if test x"${ac_cv_c_tclconfig}" = x ; then
  12201.             TCL_BIN_DIR="# no Tcl configs found"
  12202.             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
  12203. $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
  12204.         else
  12205.             no_tcl=
  12206.             TCL_BIN_DIR=${ac_cv_c_tclconfig}
  12207.             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
  12208. $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
  12209.         fi
  12210.     fi


  12211.     # If $no_tk is nonempty, then we can't do Tk, and there is no
  12212.     # point to doing Tcl.

  12213.     #
  12214.     # Ok, lets find the tk configuration
  12215.     # First, look for one uninstalled.
  12216.     # the alternative search directory is invoked by --with-tk
  12217.     #

  12218.     if test x"${no_tk}" = x ; then
  12219.         # we reset no_tk in case something fails here
  12220.         no_tk=true

  12221. # Check whether --with-tk was given.
  12222. if test "${with_tk+set}" = set; then :
  12223.   withval=$with_tk; with_tkconfig=${withval}
  12224. fi

  12225.         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
  12226. $as_echo_n "checking for Tk configuration... " >&6; }
  12227.         if test "${ac_cv_c_tkconfig+set}" = set; then :
  12228.   $as_echo_n "(cached) " >&6
  12229. else


  12230.             # First check to see if --with-tkconfig was specified.
  12231.             if test x"${with_tkconfig}" != x ; then
  12232.                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
  12233.                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
  12234.                 else
  12235.                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
  12236.                 fi
  12237.             fi

  12238.             # then check for a private Tk library
  12239.             case "${host}" in
  12240.                 *-*-cygwin*) platDir="win" ;;
  12241.                 *) platDir="unix" ;;
  12242.             esac
  12243.             if test x"${ac_cv_c_tkconfig}" = x ; then
  12244.                 for i in \
  12245.                         ../tk \
  12246.                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
  12247.                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
  12248.                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
  12249.                         ../../tk \
  12250.                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
  12251.                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
  12252.                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
  12253.                         ../../../tk \
  12254.                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
  12255.                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
  12256.                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
  12257.                     if test -f "$i/$platDir/tkConfig.sh" ; then
  12258.                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
  12259.                         break
  12260.                     fi
  12261.                 done
  12262.             fi

  12263.             # on Darwin, check in Framework installation locations
  12264.             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
  12265.                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
  12266.                         `ls -d /Library/Frameworks 2>/dev/null` \
  12267.                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
  12268.                         `ls -d /System/Library/Frameworks 2>/dev/null` \
  12269.                         ; do
  12270.                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
  12271.                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
  12272.                         break
  12273.                     fi
  12274.                 done
  12275.             fi

  12276.             # check in a few common install locations
  12277.             if test x"${ac_cv_c_tkconfig}" = x ; then
  12278.                 for i in `ls -d ${libdir} 2>/dev/null` \
  12279.                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
  12280.                         `ls -d ${prefix}/lib 2>/dev/null` \
  12281.                         `ls -d /usr/local/lib 2>/dev/null` \
  12282.                         `ls -d /usr/contrib/lib 2>/dev/null` \
  12283.                         `ls -d /usr/lib 2>/dev/null` \
  12284.                         ; do
  12285.                     if test -f "$i/tkConfig.sh" ; then
  12286.                         ac_cv_c_tkconfig=`(cd $i; pwd)`
  12287.                         break
  12288.                     fi
  12289.                 done
  12290.             fi
  12291.             # check in a few other private locations
  12292.             if test x"${ac_cv_c_tkconfig}" = x ; then
  12293.                 for i in \
  12294.                         ${srcdir}/../tk \
  12295.                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
  12296.                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
  12297.                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
  12298.                     if test -f "$i/$platDir/tkConfig.sh" ; then
  12299.                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
  12300.                         break
  12301.                     fi
  12302.                 done
  12303.             fi

  12304. fi


  12305.         if test x"${ac_cv_c_tkconfig}" = x ; then
  12306.             TK_BIN_DIR="# no Tk configs found"
  12307.             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
  12308. $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
  12309.         else
  12310.             no_tk=
  12311.             TK_BIN_DIR=${ac_cv_c_tkconfig}
  12312.             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
  12313. $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
  12314.         fi
  12315.     fi


  12316.     if test -z "${no_tcl}" -a -z "${no_tk}"; then

  12317.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
  12318. $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }

  12319.     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
  12320.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
  12321. $as_echo "loading" >&6; }
  12322.         . ${TCL_BIN_DIR}/tclConfig.sh
  12323.     else
  12324.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
  12325. $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
  12326.     fi

  12327.     # eval is required to do the TCL_DBGX substitution
  12328.     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
  12329.     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""

  12330.     # If the TCL_BIN_DIR is the build directory (not the install directory),
  12331.     # then set the common variable name to the value of the build variables.
  12332.     # For example, the variable TCL_LIB_SPEC will be set to the value
  12333.     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
  12334.     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
  12335.     # installed and uninstalled version of Tcl.
  12336.     if test -f "${TCL_BIN_DIR}/Makefile" ; then
  12337.         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
  12338.         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
  12339.         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
  12340.     elif test "`uname -s`" = "Darwin"; then
  12341.         # If Tcl was built as a framework, attempt to use the libraries
  12342.         # from the framework at the given location so that linking works
  12343.         # against Tcl.framework installed in an arbitrary location.
  12344.         case ${TCL_DEFS} in
  12345.             *TCL_FRAMEWORK*)
  12346.                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
  12347.                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
  12348.                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
  12349.                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
  12350.                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
  12351.                             break
  12352.                         fi
  12353.                     done
  12354.                 fi
  12355.                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
  12356.                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
  12357.                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
  12358.                 fi
  12359.                 ;;
  12360.         esac
  12361.     fi

  12362.     # eval is required to do the TCL_DBGX substitution
  12363.     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
  12364.     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
  12365.     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
  12366.     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""















  12367.         # Check for in-tree tcl
  12368.         here=`pwd`
  12369.         cd ${srcdir}/..
  12370.         topdir=`pwd`
  12371.         cd ${here}

  12372.         intree="no"
  12373.         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
  12374.           intree="yes"
  12375.         fi

  12376.         # Find Tcl private headers
  12377.         if test x"${intree}" = xno; then

  12378.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
  12379. $as_echo_n "checking for Tcl private headers... " >&6; }
  12380.   private_dir=""
  12381.   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
  12382.   if test -f ${dir}/tclInt.h ; then
  12383.     private_dir=${dir}
  12384.   fi

  12385.   if test x"${private_dir}" = x; then
  12386.     as_fn_error "could not find private Tcl headers" "$LINENO" 5
  12387.   else
  12388.     TCL_PRIVATE_INCLUDE="-I${private_dir}"
  12389.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
  12390. $as_echo "${private_dir}" >&6; }
  12391.   fi

  12392.           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
  12393.           TCL_LIBRARY="${TCL_LIB_SPEC}"
  12394.           TCL_DEPS=""
  12395.         else
  12396.           # If building tcl in the same src tree, private headers
  12397.           # are not needed, but we need to be sure to use the right
  12398.           # headers library
  12399.           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
  12400.           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
  12401.           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
  12402.         fi





  12403.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
  12404. $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }

  12405.     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
  12406.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
  12407. $as_echo "loading" >&6; }
  12408.         . ${TK_BIN_DIR}/tkConfig.sh
  12409.     else
  12410.         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
  12411. $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
  12412.     fi

  12413.     # eval is required to do the TK_DBGX substitution
  12414.     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
  12415.     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""

  12416.     # If the TK_BIN_DIR is the build directory (not the install directory),
  12417.     # then set the common variable name to the value of the build variables.
  12418.     # For example, the variable TK_LIB_SPEC will be set to the value
  12419.     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
  12420.     # instead of TK_BUILD_LIB_SPEC since it will work with both an
  12421.     # installed and uninstalled version of Tcl.
  12422.     if test -f "${TK_BIN_DIR}/Makefile" ; then
  12423.         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
  12424.         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
  12425.         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
  12426.     elif test "`uname -s`" = "Darwin"; then
  12427.         # If Tk was built as a framework, attempt to use the libraries
  12428.         # from the framework at the given location so that linking works
  12429.         # against Tk.framework installed in an arbitrary location.
  12430.         case ${TK_DEFS} in
  12431.             *TK_FRAMEWORK*)
  12432.                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
  12433.                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
  12434.                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
  12435.                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
  12436.                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
  12437.                             break
  12438.                         fi
  12439.                     done
  12440.                 fi
  12441.                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
  12442.                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
  12443.                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
  12444.                 fi
  12445.                 ;;
  12446.         esac
  12447.     fi

  12448.     # eval is required to do the TK_DBGX substitution
  12449.     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
  12450.     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
  12451.     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
  12452.     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""














  12453.         # Check for in-tree Tk
  12454.         intree="no"
  12455.         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
  12456.           intree="yes"
  12457.         fi

  12458.         # Find Tk private headers
  12459.         if test x"${intree}" = xno; then

  12460.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
  12461. $as_echo_n "checking for Tk private headers... " >&6; }
  12462.   private_dir=""
  12463.   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
  12464.   if test -f ${dir}/tkInt.h; then
  12465.     private_dir=${dir}
  12466.   fi

  12467.   if test x"${private_dir}" = x; then
  12468.     as_fn_error "could not find Tk private headers" "$LINENO" 5
  12469.   else
  12470.     TK_PRIVATE_INCLUDE="-I${private_dir}"
  12471.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
  12472. $as_echo "${private_dir}" >&6; }
  12473.   fi

  12474.           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
  12475.           TK_LIBRARY=${TK_LIB_SPEC}
  12476.           TK_DEPS=""
  12477.         else
  12478.           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
  12479.           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
  12480.           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
  12481.         fi





  12482.         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"

  12483.         # Include some libraries that Tcl and Tk want.
  12484.         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
  12485.         # Yes, the ordering seems wrong here.  But it isn't.
  12486.         # TK_LIBS is the list of libraries that need to be linked
  12487.         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
  12488.         # were in LIBS then any link tests after this point would
  12489.         # try to include things like `$(LIBGUI)', which wouldn't work.
  12490.         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"

  12491.         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
  12492.         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
  12493.         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
  12494.         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
  12495.         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
  12496.         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
  12497.         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"

  12498.         if test x$gdb_cv_os_cygwin = xyes; then
  12499.           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
  12500.           WIN32LDAPP="-Wl,--subsystem,console"
  12501.           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
  12502.         fi

  12503.         subdirs="$subdirs gdbtk"

  12504.     fi
  12505. fi








  12506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
  12507. $as_echo_n "checking for X... " >&6; }


  12508. # Check whether --with-x was given.
  12509. if test "${with_x+set}" = set; then :
  12510.   withval=$with_x;
  12511. fi

  12512. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  12513. if test "x$with_x" = xno; then
  12514.   # The user explicitly disabled X.
  12515.   have_x=disabled
  12516. else
  12517.   case $x_includes,$x_libraries in #(
  12518.     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
  12519.     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
  12520.   $as_echo_n "(cached) " >&6
  12521. else
  12522.   # One or both of the vars are not set, and there is no cached value.
  12523. ac_x_includes=no ac_x_libraries=no
  12524. rm -f -r conftest.dir
  12525. if mkdir conftest.dir; then
  12526.   cd conftest.dir
  12527.   cat >Imakefile <<'_ACEOF'
  12528. incroot:
  12529.         @echo incroot='${INCROOT}'
  12530. usrlibdir:
  12531.         @echo usrlibdir='${USRLIBDIR}'
  12532. libdir:
  12533.         @echo libdir='${LIBDIR}'
  12534. _ACEOF
  12535.   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
  12536.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  12537.     for ac_var in incroot usrlibdir libdir; do
  12538.       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
  12539.     done
  12540.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  12541.     for ac_extension in a so sl dylib la dll; do
  12542.       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
  12543.          test -f "$ac_im_libdir/libX11.$ac_extension"; then
  12544.         ac_im_usrlibdir=$ac_im_libdir; break
  12545.       fi
  12546.     done
  12547.     # Screen out bogus values from the imake configuration.  They are
  12548.     # bogus both because they are the default anyway, and because
  12549.     # using them would break gcc on systems where it needs fixed includes.
  12550.     case $ac_im_incroot in
  12551.         /usr/include) ac_x_includes= ;;
  12552.         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
  12553.     esac
  12554.     case $ac_im_usrlibdir in
  12555.         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
  12556.         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
  12557.     esac
  12558.   fi
  12559.   cd ..
  12560.   rm -f -r conftest.dir
  12561. fi

  12562. # Standard set of common directories for X headers.
  12563. # Check X11 before X11Rn because it is often a symlink to the current release.
  12564. ac_x_header_dirs='
  12565. /usr/X11/include
  12566. /usr/X11R7/include
  12567. /usr/X11R6/include
  12568. /usr/X11R5/include
  12569. /usr/X11R4/include

  12570. /usr/include/X11
  12571. /usr/include/X11R7
  12572. /usr/include/X11R6
  12573. /usr/include/X11R5
  12574. /usr/include/X11R4

  12575. /usr/local/X11/include
  12576. /usr/local/X11R7/include
  12577. /usr/local/X11R6/include
  12578. /usr/local/X11R5/include
  12579. /usr/local/X11R4/include

  12580. /usr/local/include/X11
  12581. /usr/local/include/X11R7
  12582. /usr/local/include/X11R6
  12583. /usr/local/include/X11R5
  12584. /usr/local/include/X11R4

  12585. /usr/X386/include
  12586. /usr/x386/include
  12587. /usr/XFree86/include/X11

  12588. /usr/include
  12589. /usr/local/include
  12590. /usr/unsupported/include
  12591. /usr/athena/include
  12592. /usr/local/x11r5/include
  12593. /usr/lpp/Xamples/include

  12594. /usr/openwin/include
  12595. /usr/openwin/share/include'

  12596. if test "$ac_x_includes" = no; then
  12597.   # Guess where to find include files, by looking for Xlib.h.
  12598.   # First, try using that file with no special directory specified.
  12599.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12600. /* end confdefs.h.  */
  12601. #include <X11/Xlib.h>
  12602. _ACEOF
  12603. if ac_fn_c_try_cpp "$LINENO"; then :
  12604.   # We can compile using X headers with no special include directory.
  12605. ac_x_includes=
  12606. else
  12607.   for ac_dir in $ac_x_header_dirs; do
  12608.   if test -r "$ac_dir/X11/Xlib.h"; then
  12609.     ac_x_includes=$ac_dir
  12610.     break
  12611.   fi
  12612. done
  12613. fi
  12614. rm -f conftest.err conftest.$ac_ext
  12615. fi # $ac_x_includes = no

  12616. if test "$ac_x_libraries" = no; then
  12617.   # Check for the libraries.
  12618.   # See if we find them without any special options.
  12619.   # Don't add to $LIBS permanently.
  12620.   ac_save_LIBS=$LIBS
  12621.   LIBS="-lX11 $LIBS"
  12622.   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12623. /* end confdefs.h.  */
  12624. #include <X11/Xlib.h>
  12625. int
  12626. main ()
  12627. {
  12628. XrmInitialize ()
  12629.   ;
  12630.   return 0;
  12631. }
  12632. _ACEOF
  12633. if ac_fn_c_try_link "$LINENO"; then :
  12634.   LIBS=$ac_save_LIBS
  12635. # We can link X programs with no special library path.
  12636. ac_x_libraries=
  12637. else
  12638.   LIBS=$ac_save_LIBS
  12639. for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
  12640. do
  12641.   # Don't even attempt the hair of trying to link an X program!
  12642.   for ac_extension in a so sl dylib la dll; do
  12643.     if test -r "$ac_dir/libX11.$ac_extension"; then
  12644.       ac_x_libraries=$ac_dir
  12645.       break 2
  12646.     fi
  12647.   done
  12648. done
  12649. fi
  12650. rm -f core conftest.err conftest.$ac_objext \
  12651.     conftest$ac_exeext conftest.$ac_ext
  12652. fi # $ac_x_libraries = no

  12653. case $ac_x_includes,$ac_x_libraries in #(
  12654.   no,* | *,no | *\'*)
  12655.     # Didn't find X, or a directory has "'" in its name.
  12656.     ac_cv_have_x="have_x=no";; #(
  12657.   *)
  12658.     # Record where we found X for the cache.
  12659.     ac_cv_have_x="have_x=yes\
  12660.         ac_x_includes='$ac_x_includes'\
  12661.         ac_x_libraries='$ac_x_libraries'"
  12662. esac
  12663. fi
  12664. ;; #(
  12665.     *) have_x=yes;;
  12666.   esac
  12667.   eval "$ac_cv_have_x"
  12668. fi # $with_x != no

  12669. if test "$have_x" != yes; then
  12670.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
  12671. $as_echo "$have_x" >&6; }
  12672.   no_x=yes
  12673. else
  12674.   # If each of the values was on the command line, it overrides each guess.
  12675.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  12676.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  12677.   # Update the cache value to reflect the command line values.
  12678.   ac_cv_have_x="have_x=yes\
  12679.         ac_x_includes='$x_includes'\
  12680.         ac_x_libraries='$x_libraries'"
  12681.   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
  12682. $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
  12683. fi


  12684. # Unlike the sim directory, whether a simulator is linked is controlled by
  12685. # presence of a gdb_sim definition in the target configure.tgt entry.
  12686. # This code just checks for a few cases where we'd like to ignore those
  12687. # definitions, even when they're present in the '.mt' file.  These cases
  12688. # are when --disable-sim is specified, or if the simulator directory is
  12689. # not part of the source tree.
  12690. #
  12691. # Check whether --enable-sim was given.
  12692. if test "${enable_sim+set}" = set; then :
  12693.   enableval=$enable_sim; echo "enable_sim = $enable_sim";
  12694. echo "enableval = ${enableval}";
  12695. case "${enableval}" in
  12696.   yes) ignore_sim=false ;;
  12697.   no)  ignore_sim=true ;;
  12698.   *)   ignore_sim=false ;;
  12699. esac
  12700. else
  12701.   ignore_sim=false
  12702. fi


  12703. if test ! -d "${srcdir}/../sim"; then
  12704.   ignore_sim=true
  12705. fi

  12706. SIM=
  12707. SIM_OBS=
  12708. if test "${ignore_sim}" = "false"; then
  12709.   if test x"${gdb_sim}" != x ; then
  12710.     SIM="${gdb_sim}"
  12711.     SIM_OBS="remote-sim.o"

  12712. $as_echo "#define WITH_SIM 1" >>confdefs.h

  12713.   fi
  12714. fi














  12715. # List of host floatformats.

  12716. cat >>confdefs.h <<_ACEOF
  12717. #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
  12718. _ACEOF


  12719. cat >>confdefs.h <<_ACEOF
  12720. #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
  12721. _ACEOF


  12722. cat >>confdefs.h <<_ACEOF
  12723. #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
  12724. _ACEOF


  12725. # target_subdir is used by the testsuite to find the target libraries.
  12726. target_subdir=
  12727. if test "${host}" != "${target}"; then
  12728.     target_subdir="${target_alias}/"
  12729. fi


  12730. frags=
  12731. if test "${gdb_native}" = "yes"; then
  12732.   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
  12733.   if test ! -f ${host_makefile_frag}; then
  12734.     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
  12735.   fi
  12736.   frags="$frags $host_makefile_frag"
  12737. else
  12738.   host_makefile_frag=/dev/null
  12739. fi




  12740. if test "${gdb_native}" = "yes"; then
  12741. # We pick this up from the host configuration file (.mh) because we
  12742. # do not have a native configuration Makefile fragment.
  12743. nativefile=`sed -n '
  12744. s/NAT_FILE[         ]*=[         ]*\([^         ]*\)/\1/p
  12745. ' ${host_makefile_frag}`
  12746. fi


  12747. if test x"${gdb_osabi}" != x ; then

  12748. cat >>confdefs.h <<_ACEOF
  12749. #define GDB_OSABI_DEFAULT $gdb_osabi
  12750. _ACEOF

  12751. fi

  12752. # Enable multi-ice-gdb-server.
  12753. # Check whether --enable-multi-ice was given.
  12754. if test "${enable_multi_ice+set}" = set; then :
  12755.   enableval=$enable_multi_ice; case $enableval in
  12756.     yes | no)
  12757.       ;;
  12758.     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
  12759.   esac
  12760. fi

  12761. if test "x$enable_multi_ice" = xyes; then
  12762.    subdirs="$subdirs multi-ice"

  12763. fi

  12764. # Check whether --enable-gdbserver was given.
  12765. if test "${enable_gdbserver+set}" = set; then :
  12766.   enableval=$enable_gdbserver; case "${enableval}" in
  12767.   yes| no|auto) ;;
  12768.   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
  12769. esac
  12770. else
  12771.   enable_gdbserver=auto
  12772. fi


  12773. # We only build gdbserver automatically in a native configuration, and
  12774. # only if the user did not explicitly disable its build.
  12775. if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
  12776.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
  12777. $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
  12778.   if test "x$build_gdbserver" = xyes; then
  12779.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12780. $as_echo "yes" >&6; }
  12781.     subdirs="$subdirs gdbserver"

  12782.     gdbserver_build_enabled=yes
  12783.   else
  12784.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12785. $as_echo "no" >&6; }
  12786.   fi
  12787. fi

  12788. # If the user explicitly request the gdbserver to be built, verify that
  12789. # we were in fact able to enable it.
  12790. if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
  12791.   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
  12792. fi

  12793. # Check for babeltrace and babeltrace-ctf

  12794. # Check whether --with-babeltrace was given.
  12795. if test "${with_babeltrace+set}" = set; then :
  12796.   withval=$with_babeltrace;
  12797. else
  12798.   with_babeltrace=auto
  12799. fi

  12800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
  12801. $as_echo_n "checking whether to use babeltrace... " >&6; }
  12802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
  12803. $as_echo "$with_babeltrace" >&6; }

  12804. if test "x$with_babeltrace" = "xno"; then
  12805.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
  12806. $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
  12807. else
  12808.   # Append -Werror to CFLAGS so that configure can catch the warning
  12809.   # "assignment from incompatible pointer type", which is related to
  12810.   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
  12811.   # in GDB, while babeltrace 1.0.3 is broken.
  12812.   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
  12813.   # safe to save and restore CFLAGS here.
  12814.   saved_CFLAGS=$CFLAGS
  12815.   CFLAGS="$CFLAGS -Werror"








  12816.     use_additional=yes

  12817.   acl_save_prefix="$prefix"
  12818.   prefix="$acl_final_prefix"
  12819.   acl_save_exec_prefix="$exec_prefix"
  12820.   exec_prefix="$acl_final_exec_prefix"

  12821.     eval additional_includedir=\"$includedir\"
  12822.     eval additional_libdir=\"$libdir\"

  12823.   exec_prefix="$acl_save_exec_prefix"
  12824.   prefix="$acl_save_prefix"


  12825. # Check whether --with-libbabeltrace-prefix was given.
  12826. if test "${with_libbabeltrace_prefix+set}" = set; then :
  12827.   withval=$with_libbabeltrace_prefix;
  12828.     if test "X$withval" = "Xno"; then
  12829.       use_additional=no
  12830.     else
  12831.       if test "X$withval" = "X"; then

  12832.   acl_save_prefix="$prefix"
  12833.   prefix="$acl_final_prefix"
  12834.   acl_save_exec_prefix="$exec_prefix"
  12835.   exec_prefix="$acl_final_exec_prefix"

  12836.           eval additional_includedir=\"$includedir\"
  12837.           eval additional_libdir=\"$libdir\"

  12838.   exec_prefix="$acl_save_exec_prefix"
  12839.   prefix="$acl_save_prefix"

  12840.       else
  12841.         additional_includedir="$withval/include"
  12842.         additional_libdir="$withval/lib"
  12843.       fi
  12844.     fi

  12845. fi

  12846.       LIBBABELTRACE=
  12847.   LTLIBBABELTRACE=
  12848.   INCBABELTRACE=
  12849.   rpathdirs=
  12850.   ltrpathdirs=
  12851.   names_already_handled=
  12852.   names_next_round='babeltrace babeltrace-ctf'
  12853.   while test -n "$names_next_round"; do
  12854.     names_this_round="$names_next_round"
  12855.     names_next_round=
  12856.     for name in $names_this_round; do
  12857.       already_handled=
  12858.       for n in $names_already_handled; do
  12859.         if test "$n" = "$name"; then
  12860.           already_handled=yes
  12861.           break
  12862.         fi
  12863.       done
  12864.       if test -z "$already_handled"; then
  12865.         names_already_handled="$names_already_handled $name"
  12866.                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12867.         eval value=\"\$HAVE_LIB$uppername\"
  12868.         if test -n "$value"; then
  12869.           if test "$value" = yes; then
  12870.             eval value=\"\$LIB$uppername\"
  12871.             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
  12872.             eval value=\"\$LTLIB$uppername\"
  12873.             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
  12874.           else
  12875.                                     :
  12876.           fi
  12877.         else
  12878.                               found_dir=
  12879.           found_la=
  12880.           found_so=
  12881.           found_a=
  12882.           if test $use_additional = yes; then
  12883.             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  12884.               found_dir="$additional_libdir"
  12885.               found_so="$additional_libdir/lib$name.$shlibext"
  12886.               if test -f "$additional_libdir/lib$name.la"; then
  12887.                 found_la="$additional_libdir/lib$name.la"
  12888.               fi
  12889.             else
  12890.               if test -f "$additional_libdir/lib$name.$libext"; then
  12891.                 found_dir="$additional_libdir"
  12892.                 found_a="$additional_libdir/lib$name.$libext"
  12893.                 if test -f "$additional_libdir/lib$name.la"; then
  12894.                   found_la="$additional_libdir/lib$name.la"
  12895.                 fi
  12896.               fi
  12897.             fi
  12898.           fi
  12899.           if test "X$found_dir" = "X"; then
  12900.             for x in $LDFLAGS $LTLIBBABELTRACE; do

  12901.   acl_save_prefix="$prefix"
  12902.   prefix="$acl_final_prefix"
  12903.   acl_save_exec_prefix="$exec_prefix"
  12904.   exec_prefix="$acl_final_exec_prefix"
  12905.   eval x=\"$x\"
  12906.   exec_prefix="$acl_save_exec_prefix"
  12907.   prefix="$acl_save_prefix"

  12908.               case "$x" in
  12909.                 -L*)
  12910.                   dir=`echo "X$x" | sed -e 's/^X-L//'`
  12911.                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  12912.                     found_dir="$dir"
  12913.                     found_so="$dir/lib$name.$shlibext"
  12914.                     if test -f "$dir/lib$name.la"; then
  12915.                       found_la="$dir/lib$name.la"
  12916.                     fi
  12917.                   else
  12918.                     if test -f "$dir/lib$name.$libext"; then
  12919.                       found_dir="$dir"
  12920.                       found_a="$dir/lib$name.$libext"
  12921.                       if test -f "$dir/lib$name.la"; then
  12922.                         found_la="$dir/lib$name.la"
  12923.                       fi
  12924.                     fi
  12925.                   fi
  12926.                   ;;
  12927.               esac
  12928.               if test "X$found_dir" != "X"; then
  12929.                 break
  12930.               fi
  12931.             done
  12932.           fi
  12933.           if test "X$found_dir" != "X"; then
  12934.                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
  12935.             if test "X$found_so" != "X"; then
  12936.                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  12937.                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
  12938.               else
  12939.                                                                                 haveit=
  12940.                 for x in $ltrpathdirs; do
  12941.                   if test "X$x" = "X$found_dir"; then
  12942.                     haveit=yes
  12943.                     break
  12944.                   fi
  12945.                 done
  12946.                 if test -z "$haveit"; then
  12947.                   ltrpathdirs="$ltrpathdirs $found_dir"
  12948.                 fi
  12949.                                 if test "$hardcode_direct" = yes; then
  12950.                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
  12951.                 else
  12952.                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  12953.                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
  12954.                                                             haveit=
  12955.                     for x in $rpathdirs; do
  12956.                       if test "X$x" = "X$found_dir"; then
  12957.                         haveit=yes
  12958.                         break
  12959.                       fi
  12960.                     done
  12961.                     if test -z "$haveit"; then
  12962.                       rpathdirs="$rpathdirs $found_dir"
  12963.                     fi
  12964.                   else
  12965.                                                                                 haveit=
  12966.                     for x in $LDFLAGS $LIBBABELTRACE; do

  12967.   acl_save_prefix="$prefix"
  12968.   prefix="$acl_final_prefix"
  12969.   acl_save_exec_prefix="$exec_prefix"
  12970.   exec_prefix="$acl_final_exec_prefix"
  12971.   eval x=\"$x\"
  12972.   exec_prefix="$acl_save_exec_prefix"
  12973.   prefix="$acl_save_prefix"

  12974.                       if test "X$x" = "X-L$found_dir"; then
  12975.                         haveit=yes
  12976.                         break
  12977.                       fi
  12978.                     done
  12979.                     if test -z "$haveit"; then
  12980.                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
  12981.                     fi
  12982.                     if test "$hardcode_minus_L" != no; then
  12983.                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
  12984.                     else
  12985.                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
  12986.                     fi
  12987.                   fi
  12988.                 fi
  12989.               fi
  12990.             else
  12991.               if test "X$found_a" != "X"; then
  12992.                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
  12993.               else
  12994.                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
  12995.               fi
  12996.             fi
  12997.                         additional_includedir=
  12998.             case "$found_dir" in
  12999.               */lib | */lib/)
  13000.                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  13001.                 additional_includedir="$basedir/include"
  13002.                 ;;
  13003.             esac
  13004.             if test "X$additional_includedir" != "X"; then
  13005.                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
  13006.                 haveit=
  13007.                 if test "X$additional_includedir" = "X/usr/local/include"; then
  13008.                   if test -n "$GCC"; then
  13009.                     case $host_os in
  13010.                       linux*) haveit=yes;;
  13011.                     esac
  13012.                   fi
  13013.                 fi
  13014.                 if test -z "$haveit"; then
  13015.                   for x in $CPPFLAGS $INCBABELTRACE; do

  13016.   acl_save_prefix="$prefix"
  13017.   prefix="$acl_final_prefix"
  13018.   acl_save_exec_prefix="$exec_prefix"
  13019.   exec_prefix="$acl_final_exec_prefix"
  13020.   eval x=\"$x\"
  13021.   exec_prefix="$acl_save_exec_prefix"
  13022.   prefix="$acl_save_prefix"

  13023.                     if test "X$x" = "X-I$additional_includedir"; then
  13024.                       haveit=yes
  13025.                       break
  13026.                     fi
  13027.                   done
  13028.                   if test -z "$haveit"; then
  13029.                     if test -d "$additional_includedir"; then
  13030.                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
  13031.                     fi
  13032.                   fi
  13033.                 fi
  13034.               fi
  13035.             fi
  13036.                         if test -n "$found_la"; then
  13037.                                                         save_libdir="$libdir"
  13038.               case "$found_la" in
  13039.                 */* | *\\*) . "$found_la" ;;
  13040.                 *) . "./$found_la" ;;
  13041.               esac
  13042.               libdir="$save_libdir"
  13043.                             for dep in $dependency_libs; do
  13044.                 case "$dep" in
  13045.                   -L*)
  13046.                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13047.                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
  13048.                       haveit=
  13049.                       if test "X$additional_libdir" = "X/usr/local/lib"; then
  13050.                         if test -n "$GCC"; then
  13051.                           case $host_os in
  13052.                             linux*) haveit=yes;;
  13053.                           esac
  13054.                         fi
  13055.                       fi
  13056.                       if test -z "$haveit"; then
  13057.                         haveit=
  13058.                         for x in $LDFLAGS $LIBBABELTRACE; do

  13059.   acl_save_prefix="$prefix"
  13060.   prefix="$acl_final_prefix"
  13061.   acl_save_exec_prefix="$exec_prefix"
  13062.   exec_prefix="$acl_final_exec_prefix"
  13063.   eval x=\"$x\"
  13064.   exec_prefix="$acl_save_exec_prefix"
  13065.   prefix="$acl_save_prefix"

  13066.                           if test "X$x" = "X-L$additional_libdir"; then
  13067.                             haveit=yes
  13068.                             break
  13069.                           fi
  13070.                         done
  13071.                         if test -z "$haveit"; then
  13072.                           if test -d "$additional_libdir"; then
  13073.                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
  13074.                           fi
  13075.                         fi
  13076.                         haveit=
  13077.                         for x in $LDFLAGS $LTLIBBABELTRACE; do

  13078.   acl_save_prefix="$prefix"
  13079.   prefix="$acl_final_prefix"
  13080.   acl_save_exec_prefix="$exec_prefix"
  13081.   exec_prefix="$acl_final_exec_prefix"
  13082.   eval x=\"$x\"
  13083.   exec_prefix="$acl_save_exec_prefix"
  13084.   prefix="$acl_save_prefix"

  13085.                           if test "X$x" = "X-L$additional_libdir"; then
  13086.                             haveit=yes
  13087.                             break
  13088.                           fi
  13089.                         done
  13090.                         if test -z "$haveit"; then
  13091.                           if test -d "$additional_libdir"; then
  13092.                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
  13093.                           fi
  13094.                         fi
  13095.                       fi
  13096.                     fi
  13097.                     ;;
  13098.                   -R*)
  13099.                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13100.                     if test "$enable_rpath" != no; then
  13101.                                                                   haveit=
  13102.                       for x in $rpathdirs; do
  13103.                         if test "X$x" = "X$dir"; then
  13104.                           haveit=yes
  13105.                           break
  13106.                         fi
  13107.                       done
  13108.                       if test -z "$haveit"; then
  13109.                         rpathdirs="$rpathdirs $dir"
  13110.                       fi
  13111.                                                                   haveit=
  13112.                       for x in $ltrpathdirs; do
  13113.                         if test "X$x" = "X$dir"; then
  13114.                           haveit=yes
  13115.                           break
  13116.                         fi
  13117.                       done
  13118.                       if test -z "$haveit"; then
  13119.                         ltrpathdirs="$ltrpathdirs $dir"
  13120.                       fi
  13121.                     fi
  13122.                     ;;
  13123.                   -l*)
  13124.                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13125.                     ;;
  13126.                   *.la)
  13127.                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13128.                     ;;
  13129.                   *)
  13130.                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
  13131.                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
  13132.                     ;;
  13133.                 esac
  13134.               done
  13135.             fi
  13136.           else
  13137.                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
  13138.             LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
  13139.           fi
  13140.         fi
  13141.       fi
  13142.     done
  13143.   done
  13144.   if test "X$rpathdirs" != "X"; then
  13145.     if test -n "$hardcode_libdir_separator"; then
  13146.                         alldirs=
  13147.       for found_dir in $rpathdirs; do
  13148.         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  13149.       done
  13150.             acl_save_libdir="$libdir"
  13151.       libdir="$alldirs"
  13152.       eval flag=\"$hardcode_libdir_flag_spec\"
  13153.       libdir="$acl_save_libdir"
  13154.       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
  13155.     else
  13156.             for found_dir in $rpathdirs; do
  13157.         acl_save_libdir="$libdir"
  13158.         libdir="$found_dir"
  13159.         eval flag=\"$hardcode_libdir_flag_spec\"
  13160.         libdir="$acl_save_libdir"
  13161.         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
  13162.       done
  13163.     fi
  13164.   fi
  13165.   if test "X$ltrpathdirs" != "X"; then
  13166.             for found_dir in $ltrpathdirs; do
  13167.       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
  13168.     done
  13169.   fi


  13170.         ac_save_CPPFLAGS="$CPPFLAGS"

  13171.   for element in $INCBABELTRACE; do
  13172.     haveit=
  13173.     for x in $CPPFLAGS; do

  13174.   acl_save_prefix="$prefix"
  13175.   prefix="$acl_final_prefix"
  13176.   acl_save_exec_prefix="$exec_prefix"
  13177.   exec_prefix="$acl_final_exec_prefix"
  13178.   eval x=\"$x\"
  13179.   exec_prefix="$acl_save_exec_prefix"
  13180.   prefix="$acl_save_prefix"

  13181.       if test "X$x" = "X$element"; then
  13182.         haveit=yes
  13183.         break
  13184.       fi
  13185.     done
  13186.     if test -z "$haveit"; then
  13187.       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13188.     fi
  13189.   done


  13190.   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
  13191. $as_echo_n "checking for libbabeltrace... " >&6; }
  13192. if test "${ac_cv_libbabeltrace+set}" = set; then :
  13193.   $as_echo_n "(cached) " >&6
  13194. else

  13195.     ac_save_LIBS="$LIBS"
  13196.     LIBS="$LIBS $LIBBABELTRACE"
  13197.     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13198. /* end confdefs.h.  */
  13199. #include <babeltrace/babeltrace.h>
  13200.                          #include <babeltrace/ctf/events.h>
  13201.                          #include <babeltrace/ctf/iterator.h>
  13202. int
  13203. main ()
  13204. {
  13205. struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
  13206.                         struct bt_ctf_event *event = NULL;
  13207.                         const struct bt_definition *scope;

  13208.                         bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
  13209.                         scope = bt_ctf_get_top_level_scope (event,
  13210.                                                                  BT_STREAM_EVENT_HEADER);
  13211.                         bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));

  13212.   ;
  13213.   return 0;
  13214. }
  13215. _ACEOF
  13216. if ac_fn_c_try_link "$LINENO"; then :
  13217.   ac_cv_libbabeltrace=yes
  13218. else
  13219.   ac_cv_libbabeltrace=no
  13220. fi
  13221. rm -f core conftest.err conftest.$ac_objext \
  13222.     conftest$ac_exeext conftest.$ac_ext
  13223.     LIBS="$ac_save_LIBS"

  13224. fi
  13225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
  13226. $as_echo "$ac_cv_libbabeltrace" >&6; }
  13227.   if test "$ac_cv_libbabeltrace" = yes; then
  13228.     HAVE_LIBBABELTRACE=yes

  13229. $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h

  13230.     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
  13231. $as_echo_n "checking how to link with libbabeltrace... " >&6; }
  13232.     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
  13233. $as_echo "$LIBBABELTRACE" >&6; }
  13234.   else
  13235.     HAVE_LIBBABELTRACE=no
  13236.             CPPFLAGS="$ac_save_CPPFLAGS"
  13237.     LIBBABELTRACE=
  13238.     LTLIBBABELTRACE=
  13239.   fi






  13240.   CFLAGS=$saved_CFLAGS

  13241.   if test "$HAVE_LIBBABELTRACE" != yes; then
  13242.      if test "$with_babeltrace" = yes; then
  13243.        as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
  13244.      else
  13245.        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
  13246. $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
  13247.      fi
  13248.   fi
  13249. fi

  13250. # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
  13251. # to an empty version.

  13252. files=
  13253. links=

  13254. rm -f nm.h
  13255. if test "${nativefile}" != ""; then
  13256.     case "${nativefile}" in
  13257.       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
  13258.       * ) GDB_NM_FILE="${nativefile}"
  13259.     esac
  13260.     files="${files} ${GDB_NM_FILE}"
  13261.     links="${links} nm.h"

  13262. cat >>confdefs.h <<_ACEOF
  13263. #define GDB_NM_FILE "${GDB_NM_FILE}"
  13264. _ACEOF

  13265. fi


  13266. ac_sources="$files"
  13267. ac_dests="$links"
  13268. while test -n "$ac_sources"; do
  13269.   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
  13270.   set $ac_sources; ac_source=$1; shift; ac_sources=$*
  13271.   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
  13272. done
  13273. ac_config_links="$ac_config_links $ac_config_links_1"





  13274. $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h


  13275. # Undo the $ec_script escaping suitable for Makefile.
  13276. transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
  13277. GDB_TRANSFORM_NAME=`echo gdb | sed -e "$transform"`
  13278. if test "x$GDB_TRANSFORM_NAME" = x; then
  13279.   GDB_TRANSFORM_NAME=gdb
  13280. fi

  13281. GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$transform"`
  13282. if test "x$GCORE_TRANSFORM_NAME" = x; then
  13283.   GCORE_TRANSFORM_NAME=gcore
  13284. fi

  13285. ac_config_files="$ac_config_files gcore"


  13286. ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"

  13287. ac_config_commands="$ac_config_commands default"

  13288. cat >confcache <<\_ACEOF
  13289. # This file is a shell script that caches the results of configure
  13290. # tests run on this system so they can be shared between configure
  13291. # scripts and configure runs, see configure's option --config-cache.
  13292. # It is not useful on other systems.  If it contains results you don't
  13293. # want to keep, you may remove or edit it.
  13294. #
  13295. # config.status only pays attention to the cache file if you give it
  13296. # the --recheck option to rerun configure.
  13297. #
  13298. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13299. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13300. # following values.

  13301. _ACEOF

  13302. # The following way of writing the cache mishandles newlines in values,
  13303. # but we know of no workaround that is simple, portable, and efficient.
  13304. # So, we kill variables containing newlines.
  13305. # Ultrix sh set writes to stderr and can't be redirected directly,
  13306. # and sets the high bit in the cache file unless we assign to the vars.
  13307. (
  13308.   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13309.     eval ac_val=\$$ac_var
  13310.     case $ac_val in #(
  13311.     *${as_nl}*)
  13312.       case $ac_var in #(
  13313.       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13314. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13315.       esac
  13316.       case $ac_var in #(
  13317.       _ | IFS | as_nl) ;; #(
  13318.       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13319.       *) { eval $ac_var=; unset $ac_var;} ;;
  13320.       esac ;;
  13321.     esac
  13322.   done

  13323.   (set) 2>&1 |
  13324.     case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13325.     *${as_nl}ac_space=\ *)
  13326.       # `set' does not quote correctly, so add quotes: double-quote
  13327.       # substitution turns \\\\ into \\, and sed turns \\ into \.
  13328.       sed -n \
  13329.         "s/'/'\\\\''/g;
  13330.           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13331.       ;; #(
  13332.     *)
  13333.       # `set' quotes correctly as required by POSIX, so do not add quotes.
  13334.       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13335.       ;;
  13336.     esac |
  13337.     sort
  13338. ) |
  13339.   sed '
  13340.      /^ac_cv_env_/b end
  13341.      t clear
  13342.      :clear
  13343.      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13344.      t end
  13345.      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13346.      :end' >>confcache
  13347. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13348.   if test -w "$cache_file"; then
  13349.     test "x$cache_file" != "x/dev/null" &&
  13350.       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13351. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13352.     cat confcache >$cache_file
  13353.   else
  13354.     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13355. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13356.   fi
  13357. fi
  13358. rm -f confcache

  13359. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13360. # Let make expand exec_prefix.
  13361. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'

  13362. DEFS=-DHAVE_CONFIG_H

  13363. ac_libobjs=
  13364. ac_ltlibobjs=
  13365. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  13366.   # 1. Remove the extension, and $U if already installed.
  13367.   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  13368.   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  13369.   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
  13370.   #    will be set to the directory where LIBOBJS objects are built.
  13371.   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  13372.   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  13373. done
  13374. LIBOBJS=$ac_libobjs

  13375. LTLIBOBJS=$ac_ltlibobjs


  13376. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  13377.   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  13378. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13379. fi
  13380. if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
  13381.   as_fn_error "conditional \"GMAKE\" was never defined.
  13382. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13383. fi
  13384. if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
  13385.   as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
  13386. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13387. fi
  13388. if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
  13389.   as_fn_error "conditional \"HAVE_GUILE\" was never defined.
  13390. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  13391. fi


  13392. : ${CONFIG_STATUS=./config.status}
  13393. ac_write_fail=0
  13394. ac_clean_files_save=$ac_clean_files
  13395. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  13396. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  13397. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  13398. as_write_fail=0
  13399. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  13400. #! $SHELL
  13401. # Generated by $as_me.
  13402. # Run this file to recreate the current configuration.
  13403. # Compiler output produced by configure, useful for debugging
  13404. # configure, is in config.log if it exists.

  13405. debug=false
  13406. ac_cs_recheck=false
  13407. ac_cs_silent=false

  13408. SHELL=\${CONFIG_SHELL-$SHELL}
  13409. export SHELL
  13410. _ASEOF
  13411. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  13412. ## -------------------- ##
  13413. ## M4sh Initialization. ##
  13414. ## -------------------- ##

  13415. # Be more Bourne compatible
  13416. DUALCASE=1; export DUALCASE # for MKS sh
  13417. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13418.   emulate sh
  13419.   NULLCMD=:
  13420.   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13421.   # is contrary to our usage.  Disable this feature.
  13422.   alias -g '${1+"$@"}'='"$@"'
  13423.   setopt NO_GLOB_SUBST
  13424. else
  13425.   case `(set -o) 2>/dev/null` in #(
  13426.   *posix*) :
  13427.     set -o posix ;; #(
  13428.   *) :
  13429.      ;;
  13430. esac
  13431. fi


  13432. as_nl='
  13433. '
  13434. export as_nl
  13435. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  13436. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  13437. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  13438. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  13439. # Prefer a ksh shell builtin over an external printf program on Solaris,
  13440. # but without wasting forks for bash or zsh.
  13441. if test -z "$BASH_VERSION$ZSH_VERSION" \
  13442.     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  13443.   as_echo='print -r --'
  13444.   as_echo_n='print -rn --'
  13445. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  13446.   as_echo='printf %s\n'
  13447.   as_echo_n='printf %s'
  13448. else
  13449.   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  13450.     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  13451.     as_echo_n='/usr/ucb/echo -n'
  13452.   else
  13453.     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  13454.     as_echo_n_body='eval
  13455.       arg=$1;
  13456.       case $arg in #(
  13457.       *"$as_nl"*)
  13458.         expr "X$arg" : "X\\(.*\\)$as_nl";
  13459.         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  13460.       esac;
  13461.       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  13462.     '
  13463.     export as_echo_n_body
  13464.     as_echo_n='sh -c $as_echo_n_body as_echo'
  13465.   fi
  13466.   export as_echo_body
  13467.   as_echo='sh -c $as_echo_body as_echo'
  13468. fi

  13469. # The user is always right.
  13470. if test "${PATH_SEPARATOR+set}" != set; then
  13471.   PATH_SEPARATOR=:
  13472.   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13473.     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13474.       PATH_SEPARATOR=';'
  13475.   }
  13476. fi


  13477. # IFS
  13478. # We need space, tab and new line, in precisely that order.  Quoting is
  13479. # there to prevent editors from complaining about space-tab.
  13480. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13481. # splitting by setting IFS to empty value.)
  13482. IFS=" ""        $as_nl"

  13483. # Find who we are.  Look in the path if we contain no directory separator.
  13484. case $0 in #((
  13485.   *[\\/]* ) as_myself=$0 ;;
  13486.   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13487. for as_dir in $PATH
  13488. do
  13489.   IFS=$as_save_IFS
  13490.   test -z "$as_dir" && as_dir=.
  13491.     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13492.   done
  13493. IFS=$as_save_IFS

  13494.      ;;
  13495. esac
  13496. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13497. # in which case we are not to be found in the path.
  13498. if test "x$as_myself" = x; then
  13499.   as_myself=$0
  13500. fi
  13501. if test ! -f "$as_myself"; then
  13502.   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13503.   exit 1
  13504. fi

  13505. # Unset variables that we do not need and which cause bugs (e.g. in
  13506. # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  13507. # suppresses any "Segmentation fault" message there.  '((' could
  13508. # trigger a bug in pdksh 5.2.14.
  13509. for as_var in BASH_ENV ENV MAIL MAILPATH
  13510. do eval test x\${$as_var+set} = xset \
  13511.   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13512. done
  13513. PS1='$ '
  13514. PS2='> '
  13515. PS4='+ '

  13516. # NLS nuisances.
  13517. LC_ALL=C
  13518. export LC_ALL
  13519. LANGUAGE=C
  13520. export LANGUAGE

  13521. # CDPATH.
  13522. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH


  13523. # as_fn_error ERROR [LINENO LOG_FD]
  13524. # ---------------------------------
  13525. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13526. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13527. # script with status $?, using 1 if that was 0.
  13528. as_fn_error ()
  13529. {
  13530.   as_status=$?; test $as_status -eq 0 && as_status=1
  13531.   if test "$3"; then
  13532.     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13533.     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13534.   fi
  13535.   $as_echo "$as_me: error: $1" >&2
  13536.   as_fn_exit $as_status
  13537. } # as_fn_error


  13538. # as_fn_set_status STATUS
  13539. # -----------------------
  13540. # Set $? to STATUS, without forking.
  13541. as_fn_set_status ()
  13542. {
  13543.   return $1
  13544. } # as_fn_set_status

  13545. # as_fn_exit STATUS
  13546. # -----------------
  13547. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13548. as_fn_exit ()
  13549. {
  13550.   set +e
  13551.   as_fn_set_status $1
  13552.   exit $1
  13553. } # as_fn_exit

  13554. # as_fn_unset VAR
  13555. # ---------------
  13556. # Portably unset VAR.
  13557. as_fn_unset ()
  13558. {
  13559.   { eval $1=; unset $1;}
  13560. }
  13561. as_unset=as_fn_unset
  13562. # as_fn_append VAR VALUE
  13563. # ----------------------
  13564. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13565. # advantage of any shell optimizations that allow amortized linear growth over
  13566. # repeated appends, instead of the typical quadratic growth present in naive
  13567. # implementations.
  13568. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13569.   eval 'as_fn_append ()
  13570.   {
  13571.     eval $1+=\$2
  13572.   }'
  13573. else
  13574.   as_fn_append ()
  13575.   {
  13576.     eval $1=\$$1\$2
  13577.   }
  13578. fi # as_fn_append

  13579. # as_fn_arith ARG...
  13580. # ------------------
  13581. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13582. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13583. # must be portable across $(()) and expr.
  13584. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13585.   eval 'as_fn_arith ()
  13586.   {
  13587.     as_val=$(( $* ))
  13588.   }'
  13589. else
  13590.   as_fn_arith ()
  13591.   {
  13592.     as_val=`expr "$@" || test $? -eq 1`
  13593.   }
  13594. fi # as_fn_arith


  13595. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13596.    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13597.   as_expr=expr
  13598. else
  13599.   as_expr=false
  13600. fi

  13601. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13602.   as_basename=basename
  13603. else
  13604.   as_basename=false
  13605. fi

  13606. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13607.   as_dirname=dirname
  13608. else
  13609.   as_dirname=false
  13610. fi

  13611. as_me=`$as_basename -- "$0" ||
  13612. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13613.          X"$0" : 'X\(//\)$' \| \
  13614.          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13615. $as_echo X/"$0" |
  13616.     sed '/^.*\/\([^/][^/]*\)\/*$/{
  13617.             s//\1/
  13618.             q
  13619.           }
  13620.           /^X\/\(\/\/\)$/{
  13621.             s//\1/
  13622.             q
  13623.           }
  13624.           /^X\/\(\/\).*/{
  13625.             s//\1/
  13626.             q
  13627.           }
  13628.           s/.*/./; q'`

  13629. # Avoid depending upon Character Ranges.
  13630. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13631. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13632. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13633. as_cr_digits='0123456789'
  13634. as_cr_alnum=$as_cr_Letters$as_cr_digits

  13635. ECHO_C= ECHO_N= ECHO_T=
  13636. case `echo -n x` in #(((((
  13637. -n*)
  13638.   case `echo 'xy\c'` in
  13639.   *c*) ECHO_T='        ';;        # ECHO_T is single tab character.
  13640.   xy)  ECHO_C='\c';;
  13641.   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13642.        ECHO_T='        ';;
  13643.   esac;;
  13644. *)
  13645.   ECHO_N='-n';;
  13646. esac

  13647. rm -f conf$$ conf$$.exe conf$$.file
  13648. if test -d conf$$.dir; then
  13649.   rm -f conf$$.dir/conf$$.file
  13650. else
  13651.   rm -f conf$$.dir
  13652.   mkdir conf$$.dir 2>/dev/null
  13653. fi
  13654. if (echo >conf$$.file) 2>/dev/null; then
  13655.   if ln -s conf$$.file conf$$ 2>/dev/null; then
  13656.     as_ln_s='ln -s'
  13657.     # ... but there are two gotchas:
  13658.     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13659.     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13660.     # In both cases, we have to default to `cp -p'.
  13661.     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13662.       as_ln_s='cp -p'
  13663.   elif ln conf$$.file conf$$ 2>/dev/null; then
  13664.     as_ln_s=ln
  13665.   else
  13666.     as_ln_s='cp -p'
  13667.   fi
  13668. else
  13669.   as_ln_s='cp -p'
  13670. fi
  13671. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13672. rmdir conf$$.dir 2>/dev/null


  13673. # as_fn_mkdir_p
  13674. # -------------
  13675. # Create "$as_dir" as a directory, including parents if necessary.
  13676. as_fn_mkdir_p ()
  13677. {

  13678.   case $as_dir in #(
  13679.   -*) as_dir=./$as_dir;;
  13680.   esac
  13681.   test -d "$as_dir" || eval $as_mkdir_p || {
  13682.     as_dirs=
  13683.     while :; do
  13684.       case $as_dir in #(
  13685.       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13686.       *) as_qdir=$as_dir;;
  13687.       esac
  13688.       as_dirs="'$as_qdir' $as_dirs"
  13689.       as_dir=`$as_dirname -- "$as_dir" ||
  13690. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13691.          X"$as_dir" : 'X\(//\)[^/]' \| \
  13692.          X"$as_dir" : 'X\(//\)$' \| \
  13693.          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13694. $as_echo X"$as_dir" |
  13695.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13696.             s//\1/
  13697.             q
  13698.           }
  13699.           /^X\(\/\/\)[^/].*/{
  13700.             s//\1/
  13701.             q
  13702.           }
  13703.           /^X\(\/\/\)$/{
  13704.             s//\1/
  13705.             q
  13706.           }
  13707.           /^X\(\/\).*/{
  13708.             s//\1/
  13709.             q
  13710.           }
  13711.           s/.*/./; q'`
  13712.       test -d "$as_dir" && break
  13713.     done
  13714.     test -z "$as_dirs" || eval "mkdir $as_dirs"
  13715.   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"


  13716. } # as_fn_mkdir_p
  13717. if mkdir -p . 2>/dev/null; then
  13718.   as_mkdir_p='mkdir -p "$as_dir"'
  13719. else
  13720.   test -d ./-p && rmdir ./-p
  13721.   as_mkdir_p=false
  13722. fi

  13723. if test -x / >/dev/null 2>&1; then
  13724.   as_test_x='test -x'
  13725. else
  13726.   if ls -dL / >/dev/null 2>&1; then
  13727.     as_ls_L_option=L
  13728.   else
  13729.     as_ls_L_option=
  13730.   fi
  13731.   as_test_x='
  13732.     eval sh -c '\''
  13733.       if test -d "$1"; then
  13734.         test -d "$1/.";
  13735.       else
  13736.         case $1 in #(
  13737.         -*)set "./$1";;
  13738.         esac;
  13739.         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13740.         ???[sx]*):;;*)false;;esac;fi
  13741.     '\'' sh
  13742.   '
  13743. fi
  13744. as_executable_p=$as_test_x

  13745. # Sed expression to map a string onto a valid CPP name.
  13746. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"

  13747. # Sed expression to map a string onto a valid variable name.
  13748. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"


  13749. exec 6>&1
  13750. ## ----------------------------------- ##
  13751. ## Main body of $CONFIG_STATUS script. ##
  13752. ## ----------------------------------- ##
  13753. _ASEOF
  13754. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1

  13755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13756. # Save the log message, to keep $0 and so on meaningful, and to
  13757. # report actual input values of CONFIG_FILES etc. instead of their
  13758. # values after options handling.
  13759. ac_log="
  13760. This file was extended by $as_me, which was
  13761. generated by GNU Autoconf 2.64.  Invocation command line was

  13762.   CONFIG_FILES    = $CONFIG_FILES
  13763.   CONFIG_HEADERS  = $CONFIG_HEADERS
  13764.   CONFIG_LINKS    = $CONFIG_LINKS
  13765.   CONFIG_COMMANDS = $CONFIG_COMMANDS
  13766.   $ $0 $@

  13767. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13768. "

  13769. _ACEOF

  13770. case $ac_config_files in *"
  13771. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13772. esac

  13773. case $ac_config_headers in *"
  13774. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13775. esac


  13776. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13777. # Files that config.status was made for.
  13778. config_files="$ac_config_files"
  13779. config_headers="$ac_config_headers"
  13780. config_links="$ac_config_links"
  13781. config_commands="$ac_config_commands"

  13782. _ACEOF

  13783. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13784. ac_cs_usage="\
  13785. \`$as_me' instantiates files and other configuration actions
  13786. from templates according to the current configuration.  Unless the files
  13787. and actions are specified as TAGs, all are instantiated by default.

  13788. Usage: $0 [OPTION]... [TAG]...

  13789.   -h, --help       print this help, then exit
  13790.   -V, --version    print version number and configuration settings, then exit
  13791.   -q, --quiet, --silent
  13792.                    do not print progress messages
  13793.   -d, --debug      don't remove temporary files
  13794.       --recheck    update $as_me by reconfiguring in the same conditions
  13795.       --file=FILE[:TEMPLATE]
  13796.                    instantiate the configuration file FILE
  13797.       --header=FILE[:TEMPLATE]
  13798.                    instantiate the configuration header FILE

  13799. Configuration files:
  13800. $config_files

  13801. Configuration headers:
  13802. $config_headers

  13803. Configuration links:
  13804. $config_links

  13805. Configuration commands:
  13806. $config_commands

  13807. Report bugs to the package provider."

  13808. _ACEOF
  13809. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13810. ac_cs_version="\\
  13811. config.status
  13812. configured by $0, generated by GNU Autoconf 2.64,
  13813.   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"

  13814. Copyright (C) 2009 Free Software Foundation, Inc.
  13815. This config.status script is free software; the Free Software Foundation
  13816. gives unlimited permission to copy, distribute and modify it."

  13817. ac_pwd='$ac_pwd'
  13818. srcdir='$srcdir'
  13819. INSTALL='$INSTALL'
  13820. AWK='$AWK'
  13821. test -n "\$AWK" || AWK=awk
  13822. _ACEOF

  13823. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13824. # The default lists apply if the user does not specify any file.
  13825. ac_need_defaults=:
  13826. while test $# != 0
  13827. do
  13828.   case $1 in
  13829.   --*=*)
  13830.     ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13831.     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13832.     ac_shift=:
  13833.     ;;
  13834.   *)
  13835.     ac_option=$1
  13836.     ac_optarg=$2
  13837.     ac_shift=shift
  13838.     ;;
  13839.   esac

  13840.   case $ac_option in
  13841.   # Handling of the options.
  13842.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13843.     ac_cs_recheck=: ;;
  13844.   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13845.     $as_echo "$ac_cs_version"; exit ;;
  13846.   --debug | --debu | --deb | --de | --d | -d )
  13847.     debug=: ;;
  13848.   --file | --fil | --fi | --f )
  13849.     $ac_shift
  13850.     case $ac_optarg in
  13851.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13852.     esac
  13853.     as_fn_append CONFIG_FILES " '$ac_optarg'"
  13854.     ac_need_defaults=false;;
  13855.   --header | --heade | --head | --hea )
  13856.     $ac_shift
  13857.     case $ac_optarg in
  13858.     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13859.     esac
  13860.     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13861.     ac_need_defaults=false;;
  13862.   --he | --h)
  13863.     # Conflict between --help and --header
  13864.     as_fn_error "ambiguous option: \`$1'
  13865. Try \`$0 --help' for more information.";;
  13866.   --help | --hel | -h )
  13867.     $as_echo "$ac_cs_usage"; exit ;;
  13868.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13869.   | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13870.     ac_cs_silent=: ;;

  13871.   # This is an error.
  13872.   -*) as_fn_error "unrecognized option: \`$1'
  13873. Try \`$0 --help' for more information." ;;

  13874.   *) as_fn_append ac_config_targets " $1"
  13875.      ac_need_defaults=false ;;

  13876.   esac
  13877.   shift
  13878. done

  13879. ac_configure_extra_args=

  13880. if $ac_cs_silent; then
  13881.   exec 6>/dev/null
  13882.   ac_configure_extra_args="$ac_configure_extra_args --silent"
  13883. fi

  13884. _ACEOF
  13885. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13886. if \$ac_cs_recheck; then
  13887.   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13888.   shift
  13889.   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13890.   CONFIG_SHELL='$SHELL'
  13891.   export CONFIG_SHELL
  13892.   exec "\$@"
  13893. fi

  13894. _ACEOF
  13895. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13896. exec 5>>config.log
  13897. {
  13898.   echo
  13899.   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13900. ## Running $as_me. ##
  13901. _ASBOX
  13902.   $as_echo "$ac_log"
  13903. } >&5

  13904. _ACEOF
  13905. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13906. #
  13907. # INIT-COMMANDS
  13908. #
  13909. ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR

  13910. _ACEOF

  13911. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1

  13912. # Handling of arguments.
  13913. for ac_config_target in $ac_config_targets
  13914. do
  13915.   case $ac_config_target in
  13916.     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
  13917.     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
  13918.     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
  13919.     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
  13920.     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
  13921.     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13922.     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
  13923.     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  13924.     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
  13925.     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;

  13926.   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13927.   esac
  13928. done


  13929. # If the user did not use the arguments to specify the items to instantiate,
  13930. # then the envvar interface is used.  Set only those that are not.
  13931. # We use the long form for the default assignment because of an extremely
  13932. # bizarre bug on SunOS 4.1.3.
  13933. if $ac_need_defaults; then
  13934.   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13935.   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13936.   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
  13937.   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13938. fi

  13939. # Have a temporary directory for convenience.  Make it in the build tree
  13940. # simply because there is no reason against having it here, and in addition,
  13941. # creating and moving files from /tmp can sometimes cause problems.
  13942. # Hook for its removal unless debugging.
  13943. # Note that there is a small window in which the directory will not be cleaned:
  13944. # after its creation but before its name has been assigned to `$tmp'.
  13945. $debug ||
  13946. {
  13947.   tmp=
  13948.   trap 'exit_status=$?
  13949.   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13950. ' 0
  13951.   trap 'as_fn_exit 1' 1 2 13 15
  13952. }
  13953. # Create a (secure) tmp directory for tmp files.

  13954. {
  13955.   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13956.   test -n "$tmp" && test -d "$tmp"
  13957. }  ||
  13958. {
  13959.   tmp=./conf$$-$RANDOM
  13960.   (umask 077 && mkdir "$tmp")
  13961. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5

  13962. # Set up the scripts for CONFIG_FILES section.
  13963. # No need to generate them if there are no CONFIG_FILES.
  13964. # This happens for instance with `./config.status config.h'.
  13965. if test -n "$CONFIG_FILES"; then

  13966. if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
  13967.   ac_cs_awk_getline=:
  13968.   ac_cs_awk_pipe_init=
  13969.   ac_cs_awk_read_file='
  13970.       while ((getline aline < (F[key])) > 0)
  13971.         print(aline)
  13972.       close(F[key])'
  13973.   ac_cs_awk_pipe_fini=
  13974. else
  13975.   ac_cs_awk_getline=false
  13976.   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
  13977.   ac_cs_awk_read_file='
  13978.       print "|#_!!_#|"
  13979.       print "cat " F[key] " &&"
  13980.       '$ac_cs_awk_pipe_init
  13981.   # The final `:' finishes the AND list.
  13982.   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
  13983. fi
  13984. ac_cr=`echo X | tr X '\015'`
  13985. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13986. # But we know of no other shell where ac_cr would be empty at this
  13987. # point, so we can use a bashism as a fallback.
  13988. if test "x$ac_cr" = x; then
  13989.   eval ac_cr=\$\'\\r\'
  13990. fi
  13991. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13992. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13993.   ac_cs_awk_cr='\r'
  13994. else
  13995.   ac_cs_awk_cr=$ac_cr
  13996. fi

  13997. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13998. _ACEOF

  13999. # Create commands to substitute file output variables.
  14000. {
  14001.   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
  14002.   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
  14003.   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
  14004.   echo "_ACAWK" &&
  14005.   echo "_ACEOF"
  14006. } >conf$$files.sh &&
  14007. . ./conf$$files.sh ||
  14008.   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14009. rm -f conf$$files.sh

  14010. {
  14011.   echo "cat >conf$$subs.awk <<_ACEOF" &&
  14012.   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14013.   echo "_ACEOF"
  14014. } >conf$$subs.sh ||
  14015.   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14016. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14017. ac_delim='%!_!# '
  14018. for ac_last_try in false false false false false :; do
  14019. . ./conf$$subs.sh ||
  14020.     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5

  14021.   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14022.   if test $ac_delim_n = $ac_delim_num; then
  14023.     break
  14024.   elif $ac_last_try; then
  14025.     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14026.   else
  14027.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14028.   fi
  14029. done
  14030. rm -f conf$$subs.sh

  14031. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14032. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14033. _ACEOF
  14034. sed -n '
  14035. h
  14036. s/^/S["/; s/!.*/"]=/
  14037. p
  14038. g
  14039. s/^[^!]*!//
  14040. :repl
  14041. t repl
  14042. s/'"$ac_delim"'$//
  14043. t delim
  14044. :nl
  14045. h
  14046. s/\(.\{148\}\).*/\1/
  14047. t more1
  14048. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  14049. p
  14050. n
  14051. b repl
  14052. :more1
  14053. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14054. p
  14055. g
  14056. s/.\{148\}//
  14057. t nl
  14058. :delim
  14059. h
  14060. s/\(.\{148\}\).*/\1/
  14061. t more2
  14062. s/["\\]/\\&/g; s/^/"/; s/$/"/
  14063. p
  14064. b
  14065. :more2
  14066. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  14067. p
  14068. g
  14069. s/.\{148\}//
  14070. t delim
  14071. ' <conf$$subs.awk | sed '
  14072. /^[^""]/{
  14073.   N
  14074.   s/\n//
  14075. }
  14076. ' >>$CONFIG_STATUS || ac_write_fail=1
  14077. rm -f conf$$subs.awk
  14078. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14079. _ACAWK
  14080. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  14081.   for (key in S) S_is_set[key] = 1
  14082.   FS = ""
  14083.   \$ac_cs_awk_pipe_init
  14084. }
  14085. {
  14086.   line = $ 0
  14087.   nfields = split(line, field, "@")
  14088.   substed = 0
  14089.   len = length(field[1])
  14090.   for (i = 2; i < nfields; i++) {
  14091.     key = field[i]
  14092.     keylen = length(key)
  14093.     if (S_is_set[key]) {
  14094.       value = S[key]
  14095.       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  14096.       len += length(value) + length(field[++i])
  14097.       substed = 1
  14098.     } else
  14099.       len += 1 + keylen
  14100.   }
  14101.   if (nfields == 3 && !substed) {
  14102.     key = field[2]
  14103.     if (F[key] != "" && line ~ /^[         ]*@.*@[         ]*$/) {
  14104.       \$ac_cs_awk_read_file
  14105.       next
  14106.     }
  14107.   }
  14108.   print line
  14109. }
  14110. \$ac_cs_awk_pipe_fini
  14111. _ACAWK
  14112. _ACEOF
  14113. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14114. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  14115.   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  14116. else
  14117.   cat
  14118. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  14119.   || as_fn_error "could not setup config files machinery" "$LINENO" 5
  14120. _ACEOF

  14121. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  14122. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  14123. # trailing colons and then remove the whole line if VPATH becomes empty
  14124. # (actually we leave an empty line to preserve line numbers).
  14125. if test "x$srcdir" = x.; then
  14126.   ac_vpsub='/^[         ]*VPATH[         ]*=/{
  14127. s/:*\$(srcdir):*/:/
  14128. s/:*\${srcdir}:*/:/
  14129. s/:*@srcdir@:*/:/
  14130. s/^\([^=]*=[         ]*\):*/\1/
  14131. s/:*$//
  14132. s/^[^=]*=[         ]*$//
  14133. }'
  14134. fi

  14135. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14136. fi # test -n "$CONFIG_FILES"

  14137. # Set up the scripts for CONFIG_HEADERS section.
  14138. # No need to generate them if there are no CONFIG_HEADERS.
  14139. # This happens for instance with `./config.status Makefile'.
  14140. if test -n "$CONFIG_HEADERS"; then
  14141. cat >"$tmp/defines.awk" <<\_ACAWK ||
  14142. BEGIN {
  14143. _ACEOF

  14144. # Transform confdefs.h into an awk script `defines.awk', embedded as
  14145. # here-document in config.status, that substitutes the proper values into
  14146. # config.h.in to produce config.h.

  14147. # Create a delimiter string that does not exist in confdefs.h, to ease
  14148. # handling of long lines.
  14149. ac_delim='%!_!# '
  14150. for ac_last_try in false false :; do
  14151.   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  14152.   if test -z "$ac_t"; then
  14153.     break
  14154.   elif $ac_last_try; then
  14155.     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  14156.   else
  14157.     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14158.   fi
  14159. done

  14160. # For the awk script, D is an array of macro values keyed by name,
  14161. # likewise P contains macro parameters if any.  Preserve backslash
  14162. # newline sequences.

  14163. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  14164. sed -n '
  14165. s/.\{148\}/&'"$ac_delim"'/g
  14166. t rset
  14167. :rset
  14168. s/^[         ]*#[         ]*define[         ][         ]*/ /
  14169. t def
  14170. d
  14171. :def
  14172. s/\\$//
  14173. t bsnl
  14174. s/["\\]/\\&/g
  14175. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[         ]*\(.*\)/P["\1"]="\2"\
  14176. D["\1"]=" \3"/p
  14177. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
  14178. d
  14179. :bsnl
  14180. s/["\\]/\\&/g
  14181. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[         ]*\(.*\)/P["\1"]="\2"\
  14182. D["\1"]=" \3\\\\\\n"\\/p
  14183. t cont
  14184. s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14185. t cont
  14186. d
  14187. :cont
  14188. n
  14189. s/.\{148\}/&'"$ac_delim"'/g
  14190. t clear
  14191. :clear
  14192. s/\\$//
  14193. t bsnlc
  14194. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14195. d
  14196. :bsnlc
  14197. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14198. b cont
  14199. ' <confdefs.h | sed '
  14200. s/'"$ac_delim"'/"\\\
  14201. "/g' >>$CONFIG_STATUS || ac_write_fail=1

  14202. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14203.   for (key in D) D_is_set[key] = 1
  14204.   FS = ""
  14205. }
  14206. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14207.   line = \$ 0
  14208.   split(line, arg, " ")
  14209.   if (arg[1] == "#") {
  14210.     defundef = arg[2]
  14211.     mac1 = arg[3]
  14212.   } else {
  14213.     defundef = substr(arg[1], 2)
  14214.     mac1 = arg[2]
  14215.   }
  14216.   split(mac1, mac2, "(") #)
  14217.   macro = mac2[1]
  14218.   prefix = substr(line, 1, index(line, defundef) - 1)
  14219.   if (D_is_set[macro]) {
  14220.     # Preserve the white space surrounding the "#".
  14221.     print prefix "define", macro P[macro] D[macro]
  14222.     next
  14223.   } else {
  14224.     # Replace #undef with comments.  This is necessary, for example,
  14225.     # in the case of _POSIX_SOURCE, which is predefined and required
  14226.     # on some systems where configure will not decide to define it.
  14227.     if (defundef == "undef") {
  14228.       print "/*", prefix defundef, macro, "*/"
  14229.       next
  14230.     }
  14231.   }
  14232. }
  14233. { print }
  14234. _ACAWK
  14235. _ACEOF
  14236. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14237.   as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14238. fi # test -n "$CONFIG_HEADERS"


  14239. eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
  14240. shift
  14241. for ac_tag
  14242. do
  14243.   case $ac_tag in
  14244.   :[FHLC]) ac_mode=$ac_tag; continue;;
  14245.   esac
  14246.   case $ac_mode$ac_tag in
  14247.   :[FHL]*:*);;
  14248.   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14249.   :[FH]-) ac_tag=-:-;;
  14250.   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14251.   esac
  14252.   ac_save_IFS=$IFS
  14253.   IFS=:
  14254.   set x $ac_tag
  14255.   IFS=$ac_save_IFS
  14256.   shift
  14257.   ac_file=$1
  14258.   shift

  14259.   case $ac_mode in
  14260.   :L) ac_source=$1;;
  14261.   :[FH])
  14262.     ac_file_inputs=
  14263.     for ac_f
  14264.     do
  14265.       case $ac_f in
  14266.       -) ac_f="$tmp/stdin";;
  14267.       *) # Look for the file first in the build tree, then in the source tree
  14268.          # (if the path is not absolute).  The absolute path cannot be DOS-style,
  14269.          # because $ac_f cannot contain `:'.
  14270.          test -f "$ac_f" ||
  14271.            case $ac_f in
  14272.            [\\/$]*) false;;
  14273.            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14274.            esac ||
  14275.            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14276.       esac
  14277.       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14278.       as_fn_append ac_file_inputs " '$ac_f'"
  14279.     done

  14280.     # Let's still pretend it is `configure' which instantiates (i.e., don't
  14281.     # use $as_me), people would be surprised to read:
  14282.     #    /* config.h.  Generated by config.status.  */
  14283.     configure_input='Generated from '`
  14284.           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14285.         `' by configure.'
  14286.     if test x"$ac_file" != x-; then
  14287.       configure_input="$ac_file.  $configure_input"
  14288.       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14289. $as_echo "$as_me: creating $ac_file" >&6;}
  14290.     fi
  14291.     # Neutralize special characters interpreted by sed in replacement strings.
  14292.     case $configure_input in #(
  14293.     *\&* | *\|* | *\\* )
  14294.        ac_sed_conf_input=`$as_echo "$configure_input" |
  14295.        sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14296.     *) ac_sed_conf_input=$configure_input;;
  14297.     esac

  14298.     case $ac_tag in
  14299.     *:-:* | *:-) cat >"$tmp/stdin" \
  14300.       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14301.     esac
  14302.     ;;
  14303.   esac

  14304.   ac_dir=`$as_dirname -- "$ac_file" ||
  14305. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14306.          X"$ac_file" : 'X\(//\)[^/]' \| \
  14307.          X"$ac_file" : 'X\(//\)$' \| \
  14308.          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14309. $as_echo X"$ac_file" |
  14310.     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14311.             s//\1/
  14312.             q
  14313.           }
  14314.           /^X\(\/\/\)[^/].*/{
  14315.             s//\1/
  14316.             q
  14317.           }
  14318.           /^X\(\/\/\)$/{
  14319.             s//\1/
  14320.             q
  14321.           }
  14322.           /^X\(\/\).*/{
  14323.             s//\1/
  14324.             q
  14325.           }
  14326.           s/.*/./; q'`
  14327.   as_dir="$ac_dir"; as_fn_mkdir_p
  14328.   ac_builddir=.

  14329. case "$ac_dir" in
  14330. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14331. *)
  14332.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14333.   # A ".." for each directory in $ac_dir_suffix.
  14334.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14335.   case $ac_top_builddir_sub in
  14336.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14337.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14338.   esac ;;
  14339. esac
  14340. ac_abs_top_builddir=$ac_pwd
  14341. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14342. # for backward compatibility:
  14343. ac_top_builddir=$ac_top_build_prefix

  14344. case $srcdir in
  14345.   .)  # We are building in place.
  14346.     ac_srcdir=.
  14347.     ac_top_srcdir=$ac_top_builddir_sub
  14348.     ac_abs_top_srcdir=$ac_pwd ;;
  14349.   [\\/]* | ?:[\\/]* )  # Absolute name.
  14350.     ac_srcdir=$srcdir$ac_dir_suffix;
  14351.     ac_top_srcdir=$srcdir
  14352.     ac_abs_top_srcdir=$srcdir ;;
  14353.   *) # Relative name.
  14354.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14355.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  14356.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14357. esac
  14358. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  14359.   case $ac_mode in
  14360.   :F)
  14361.   #
  14362.   # CONFIG_FILE
  14363.   #

  14364.   case $INSTALL in
  14365.   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14366.   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14367.   esac
  14368. _ACEOF

  14369. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14370. # If the template does not know about datarootdir, expand it.
  14371. # FIXME: This hack should be removed a few years after 2.60.
  14372. ac_datarootdir_hack=; ac_datarootdir_seen=
  14373. ac_sed_dataroot='
  14374. /datarootdir/ {
  14375.   p
  14376.   q
  14377. }
  14378. /@datadir@/p
  14379. /@docdir@/p
  14380. /@infodir@/p
  14381. /@localedir@/p
  14382. /@mandir@/p'
  14383. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14384. *datarootdir*) ac_datarootdir_seen=yes;;
  14385. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14386.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14387. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14388. _ACEOF
  14389. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14390.   ac_datarootdir_hack='
  14391.   s&@datadir@&$datadir&g
  14392.   s&@docdir@&$docdir&g
  14393.   s&@infodir@&$infodir&g
  14394.   s&@localedir@&$localedir&g
  14395.   s&@mandir@&$mandir&g
  14396.   s&\\\${datarootdir}&$datarootdir&g' ;;
  14397. esac
  14398. _ACEOF

  14399. # Neutralize VPATH when `$srcdir' = `.'.
  14400. # Shell code in configure.ac might set extrasub.
  14401. # FIXME: do we really want to maintain this feature?
  14402. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14403. ac_sed_extra="$ac_vpsub
  14404. $extrasub
  14405. _ACEOF
  14406. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14407. :t
  14408. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14409. s|@configure_input@|$ac_sed_conf_input|;t t
  14410. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14411. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14412. s&@srcdir@&$ac_srcdir&;t t
  14413. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14414. s&@top_srcdir@&$ac_top_srcdir&;t t
  14415. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14416. s&@builddir@&$ac_builddir&;t t
  14417. s&@abs_builddir@&$ac_abs_builddir&;t t
  14418. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14419. s&@INSTALL@&$ac_INSTALL&;t t
  14420. $ac_datarootdir_hack
  14421. "
  14422. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
  14423. if $ac_cs_awk_getline; then
  14424.   $AWK -f "$tmp/subs.awk"
  14425. else
  14426.   $AWK -f "$tmp/subs.awk" | $SHELL
  14427. fi >$tmp/out \
  14428.   || as_fn_error "could not create $ac_file" "$LINENO" 5

  14429. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14430.   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14431.   { ac_out=`sed -n '/^[         ]*datarootdir[         ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14432.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14433. which seems to be undefined.  Please make sure it is defined." >&5
  14434. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14435. which seems to be undefined.  Please make sure it is defined." >&2;}

  14436.   rm -f "$tmp/stdin"
  14437.   case $ac_file in
  14438.   -) cat "$tmp/out" && rm -f "$tmp/out";;
  14439.   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14440.   esac \
  14441.   || as_fn_error "could not create $ac_file" "$LINENO" 5
  14442. ;;
  14443.   :H)
  14444.   #
  14445.   # CONFIG_HEADER
  14446.   #
  14447.   if test x"$ac_file" != x-; then
  14448.     {
  14449.       $as_echo "/* $configure_input  */" \
  14450.       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14451.     } >"$tmp/config.h" \
  14452.       || as_fn_error "could not create $ac_file" "$LINENO" 5
  14453.     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14454.       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14455. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14456.     else
  14457.       rm -f "$ac_file"
  14458.       mv "$tmp/config.h" "$ac_file" \
  14459.         || as_fn_error "could not create $ac_file" "$LINENO" 5
  14460.     fi
  14461.   else
  14462.     $as_echo "/* $configure_input  */" \
  14463.       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14464.       || as_fn_error "could not create -" "$LINENO" 5
  14465.   fi
  14466. ;;
  14467.   :L)
  14468.   #
  14469.   # CONFIG_LINK
  14470.   #

  14471.   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
  14472.     :
  14473.   else
  14474.     # Prefer the file from the source tree if names are identical.
  14475.     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
  14476.       ac_source=$srcdir/$ac_source
  14477.     fi

  14478.     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
  14479. $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}

  14480.     if test ! -r "$ac_source"; then
  14481.       as_fn_error "$ac_source: file not found" "$LINENO" 5
  14482.     fi
  14483.     rm -f "$ac_file"

  14484.     # Try a relative symlink, then a hard link, then a copy.
  14485.     case $srcdir in
  14486.     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
  14487.         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
  14488.     esac
  14489.     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
  14490.       ln "$ac_source" "$ac_file" 2>/dev/null ||
  14491.       cp -p "$ac_source" "$ac_file" ||
  14492.       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
  14493.   fi
  14494. ;;
  14495.   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14496. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14497. ;;
  14498.   esac


  14499.   case $ac_file$ac_mode in
  14500.     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
  14501.     "gcore":F) chmod +x gcore ;;
  14502.     "default":C)
  14503. case x$CONFIG_HEADERS in
  14504. xconfig.h:config.in)
  14505. echo > stamp-h ;;
  14506. esac
  14507. ;;

  14508.   esac
  14509. done # for ac_tag


  14510. as_fn_exit 0
  14511. _ACEOF
  14512. ac_clean_files=$ac_clean_files_save

  14513. test $ac_write_fail = 0 ||
  14514.   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5


  14515. # configure is writing to config.log, and then calls config.status.
  14516. # config.status does its own redirection, appending to config.log.
  14517. # Unfortunately, on DOS this fails, as config.log is still kept open
  14518. # by configure, so config.status won't be able to write to it; its
  14519. # output is simply discarded.  So we exec the FD to /dev/null,
  14520. # effectively closing config.log, so it can be properly (re)opened and
  14521. # appended to by config.status.  When coming back to configure, we
  14522. # need to make the FD available again.
  14523. if test "$no_create" != yes; then
  14524.   ac_cs_success=:
  14525.   ac_config_status_args=
  14526.   test "$silent" = yes &&
  14527.     ac_config_status_args="$ac_config_status_args --quiet"
  14528.   exec 5>/dev/null
  14529.   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  14530.   exec 5>>config.log
  14531.   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  14532.   # would make configure fail if this is the last instruction.
  14533.   $ac_cs_success || as_fn_exit $?
  14534. fi

  14535. #
  14536. # CONFIG_SUBDIRS section.
  14537. #
  14538. if test "$no_recursion" != yes; then

  14539.   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  14540.   # so they do not pile up.
  14541.   ac_sub_configure_args=
  14542.   ac_prev=
  14543.   eval "set x $ac_configure_args"
  14544.   shift
  14545.   for ac_arg
  14546.   do
  14547.     if test -n "$ac_prev"; then
  14548.       ac_prev=
  14549.       continue
  14550.     fi
  14551.     case $ac_arg in
  14552.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  14553.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  14554.       ac_prev=cache_file ;;
  14555.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  14556.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  14557.     | --c=*)
  14558.       ;;
  14559.     --config-cache | -C)
  14560.       ;;
  14561.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  14562.       ac_prev=srcdir ;;
  14563.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  14564.       ;;
  14565.     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  14566.       ac_prev=prefix ;;
  14567.     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  14568.       ;;
  14569.     --disable-option-checking)
  14570.       ;;
  14571.     *)
  14572.       case $ac_arg in
  14573.       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14574.       esac
  14575.       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  14576.     esac
  14577.   done

  14578.   # Always prepend --prefix to ensure using the same prefix
  14579.   # in subdir configurations.
  14580.   ac_arg="--prefix=$prefix"
  14581.   case $ac_arg in
  14582.   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14583.   esac
  14584.   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"

  14585.   # Pass --silent
  14586.   if test "$silent" = yes; then
  14587.     ac_sub_configure_args="--silent $ac_sub_configure_args"
  14588.   fi

  14589.   # Always prepend --disable-option-checking to silence warnings, since
  14590.   # different subdirs can have different --enable and --with options.
  14591.   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"

  14592.   ac_popdir=`pwd`
  14593.   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue

  14594.     # Do not complain, so a configure script can configure whichever
  14595.     # parts of a large source tree are present.
  14596.     test -d "$srcdir/$ac_dir" || continue

  14597.     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  14598.     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  14599.     $as_echo "$ac_msg" >&6
  14600.     as_dir="$ac_dir"; as_fn_mkdir_p
  14601.     ac_builddir=.

  14602. case "$ac_dir" in
  14603. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14604. *)
  14605.   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14606.   # A ".." for each directory in $ac_dir_suffix.
  14607.   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14608.   case $ac_top_builddir_sub in
  14609.   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14610.   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14611.   esac ;;
  14612. esac
  14613. ac_abs_top_builddir=$ac_pwd
  14614. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14615. # for backward compatibility:
  14616. ac_top_builddir=$ac_top_build_prefix

  14617. case $srcdir in
  14618.   .)  # We are building in place.
  14619.     ac_srcdir=.
  14620.     ac_top_srcdir=$ac_top_builddir_sub
  14621.     ac_abs_top_srcdir=$ac_pwd ;;
  14622.   [\\/]* | ?:[\\/]* )  # Absolute name.
  14623.     ac_srcdir=$srcdir$ac_dir_suffix;
  14624.     ac_top_srcdir=$srcdir
  14625.     ac_abs_top_srcdir=$srcdir ;;
  14626.   *) # Relative name.
  14627.     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14628.     ac_top_srcdir=$ac_top_build_prefix$srcdir
  14629.     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14630. esac
  14631. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix


  14632.     cd "$ac_dir"

  14633.     # Check for guested configure; otherwise get Cygnus style configure.
  14634.     if test -f "$ac_srcdir/configure.gnu"; then
  14635.       ac_sub_configure=$ac_srcdir/configure.gnu
  14636.     elif test -f "$ac_srcdir/configure"; then
  14637.       ac_sub_configure=$ac_srcdir/configure
  14638.     elif test -f "$ac_srcdir/configure.in"; then
  14639.       # This should be Cygnus configure.
  14640.       ac_sub_configure=$ac_aux_dir/configure
  14641.     else
  14642.       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  14643. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  14644.       ac_sub_configure=
  14645.     fi

  14646.     # The recursion is here.
  14647.     if test -n "$ac_sub_configure"; then
  14648.       # Make the cache file name correct relative to the subdirectory.
  14649.       case $cache_file in
  14650.       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  14651.       *) # Relative name.
  14652.         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  14653.       esac

  14654.       { $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
  14655. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  14656.       # The eval makes quoting arguments work.
  14657.       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  14658.            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  14659.         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  14660.     fi

  14661.     cd "$ac_popdir"
  14662.   done
  14663. fi
  14664. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  14665.   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  14666. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  14667. fi


  14668. exit 0