Introduce exec_file_locate_attach
[external/binutils.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 enable_option_checking=no
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 GCORE_TRANSFORM_NAME
595 GDB_TRANSFORM_NAME
596 GDB_NM_FILE
597 LTLIBBABELTRACE
598 LIBBABELTRACE
599 HAVE_LIBBABELTRACE
600 frags
601 target_subdir
602 CONFIG_UNINSTALL
603 CONFIG_INSTALL
604 CONFIG_CLEAN
605 CONFIG_ALL
606 CONFIG_SRCS
607 CONFIG_DEPS
608 CONFIG_OBS
609 PROFILE_CFLAGS
610 ENABLE_CFLAGS
611 SIM_OBS
612 SIM
613 XMKMF
614 GDBTK_SRC_DIR
615 GDBTK_CFLAGS
616 GDBTKLIBS
617 X_LIBS
618 X_LDFLAGS
619 X_CFLAGS
620 TK_XINCLUDES
621 TK_DEPS
622 TK_LIBRARY
623 TK_INCLUDE
624 TK_STUB_LIB_SPEC
625 TK_STUB_LIB_FLAG
626 TK_STUB_LIB_FILE
627 TK_LIB_SPEC
628 TK_LIB_FLAG
629 TK_LIB_FILE
630 TK_SRC_DIR
631 TK_BIN_DIR
632 TK_VERSION
633 TCL_DEPS
634 TCL_LIBRARY
635 TCL_INCLUDE
636 TCL_STUB_LIB_SPEC
637 TCL_STUB_LIB_FLAG
638 TCL_STUB_LIB_FILE
639 TCL_LIB_SPEC
640 TCL_LIB_FLAG
641 TCL_LIB_FILE
642 TCL_SRC_DIR
643 TCL_BIN_DIR
644 TCL_PATCH_LEVEL
645 TCL_VERSION
646 WIN32LDAPP
647 GUI_CFLAGS_X
648 LIBGUI
649 LTLIBLZMA
650 LIBLZMA
651 HAVE_LIBLZMA
652 WIN32LIBS
653 SER_HARDWIRE
654 WERROR_CFLAGS
655 WARN_CFLAGS
656 SYSTEM_GDBINIT
657 TARGET_SYSTEM_ROOT
658 CONFIG_LDFLAGS
659 RDYNAMIC
660 ALLOCA
661 HAVE_GUILE_FALSE
662 HAVE_GUILE_TRUE
663 GUILE_LIBS
664 GUILE_CPPFLAGS
665 GUILD_TARGET_FLAG
666 GUILD
667 pkg_config_prog_path
668 HAVE_PYTHON_FALSE
669 HAVE_PYTHON_TRUE
670 PYTHON_LIBS
671 PYTHON_CPPFLAGS
672 PYTHON_CFLAGS
673 python_prog_path
674 LTLIBEXPAT
675 LIBEXPAT
676 HAVE_LIBEXPAT
677 JIT_READER_DIR
678 TARGET_PTR
679 READLINE_TEXI_INCFLAG
680 READLINE_CFLAGS
681 READLINE_DEPS
682 READLINE
683 zlibinc
684 zlibdir
685 MIG
686 WINDRES
687 DLLTOOL
688 AR
689 YFLAGS
690 YACC
691 RANLIB
692 LN_S
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 AWK
697 REPORT_BUGS_TEXI
698 REPORT_BUGS_TO
699 PKGVERSION
700 HAVE_NATIVE_GCORE_TARGET
701 TARGET_OBS
702 subdirs
703 GDB_DATADIR
704 DEBUGDIR
705 MAKEINFO_EXTRA_FLAGS
706 MAKEINFOFLAGS
707 MAKEINFO
708 PACKAGE
709 GNULIB_STDINT_H
710 CATOBJEXT
711 GENCAT
712 INSTOBJEXT
713 DATADIRNAME
714 CATALOGS
715 POSUB
716 GMSGFMT
717 XGETTEXT
718 INCINTL
719 LIBINTL_DEP
720 LIBINTL
721 USE_NLS
722 SET_MAKE
723 GMAKE_FALSE
724 GMAKE_TRUE
725 MAKE
726 CCDEPMODE
727 DEPDIR
728 am__leading_dot
729 COMPILER
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 target_os
734 target_vendor
735 target_cpu
736 target
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 EGREP
746 GREP
747 CPP
748 ac_ct_CXX
749 CXXFLAGS
750 CXX
751 OBJEXT
752 EXEEXT
753 ac_ct_CC
754 CPPFLAGS
755 LDFLAGS
756 CFLAGS
757 CC
758 MAINT
759 MAINTAINER_MODE_FALSE
760 MAINTAINER_MODE_TRUE
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files='host_makefile_frag'
800 ac_user_opts='
801 enable_option_checking
802 enable_maintainer_mode
803 enable_plugins
804 enable_largefile
805 enable_build_with_cxx
806 with_separate_debug_dir
807 with_gdb_datadir
808 with_relocated_sources
809 with_auto_load_dir
810 with_auto_load_safe_path
811 enable_targets
812 enable_64_bit_bfd
813 enable_gdbcli
814 enable_gdbmi
815 enable_tui
816 enable_gdbtk
817 with_libunwind_ia64
818 with_curses
819 enable_profiling
820 with_pkgversion
821 with_bugurl
822 with_system_zlib
823 with_libiconv_prefix
824 with_iconv_bin
825 with_system_readline
826 with_jit_reader_dir
827 with_expat
828 with_gnu_ld
829 enable_rpath
830 with_libexpat_prefix
831 with_python
832 with_guile
833 enable_libmcheck
834 with_included_regex
835 with_sysroot
836 with_system_gdbinit
837 enable_werror
838 enable_build_warnings
839 enable_gdb_build_warnings
840 with_lzma
841 with_liblzma_prefix
842 with_tcl
843 with_tk
844 with_x
845 enable_sim
846 enable_multi_ice
847 enable_gdbserver
848 with_babeltrace
849 with_libbabeltrace_prefix
850 '
851       ac_precious_vars='build_alias
852 host_alias
853 target_alias
854 CC
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
859 CXX
860 CXXFLAGS
861 CCC
862 CPP
863 MAKEINFO
864 MAKEINFOFLAGS
865 YACC
866 YFLAGS
867 XMKMF'
868 ac_subdirs_all='testsuite
869 gdbtk
870 multi-ice
871 gdbserver'
872
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
894
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE}'
912 infodir='${datarootdir}/info'
913 htmldir='${docdir}'
914 dvidir='${docdir}'
915 pdfdir='${docdir}'
916 psdir='${docdir}'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
920
921 ac_prev=
922 ac_dashdash=
923 for ac_option
924 do
925   # If the previous option needs an argument, assign it.
926   if test -n "$ac_prev"; then
927     eval $ac_prev=\$ac_option
928     ac_prev=
929     continue
930   fi
931
932   case $ac_option in
933   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934   *)    ac_optarg=yes ;;
935   esac
936
937   # Accept the important Cygnus configure options, so we can diagnose typos.
938
939   case $ac_dashdash$ac_option in
940   --)
941     ac_dashdash=yes ;;
942
943   -bindir | --bindir | --bindi | --bind | --bin | --bi)
944     ac_prev=bindir ;;
945   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946     bindir=$ac_optarg ;;
947
948   -build | --build | --buil | --bui | --bu)
949     ac_prev=build_alias ;;
950   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951     build_alias=$ac_optarg ;;
952
953   -cache-file | --cache-file | --cache-fil | --cache-fi \
954   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955     ac_prev=cache_file ;;
956   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958     cache_file=$ac_optarg ;;
959
960   --config-cache | -C)
961     cache_file=config.cache ;;
962
963   -datadir | --datadir | --datadi | --datad)
964     ac_prev=datadir ;;
965   -datadir=* | --datadir=* | --datadi=* | --datad=*)
966     datadir=$ac_optarg ;;
967
968   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969   | --dataroo | --dataro | --datar)
970     ac_prev=datarootdir ;;
971   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973     datarootdir=$ac_optarg ;;
974
975   -disable-* | --disable-*)
976     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977     # Reject names that are not valid shell variable names.
978     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979       as_fn_error "invalid feature name: $ac_useropt"
980     ac_useropt_orig=$ac_useropt
981     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982     case $ac_user_opts in
983       *"
984 "enable_$ac_useropt"
985 "*) ;;
986       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987          ac_unrecognized_sep=', ';;
988     esac
989     eval enable_$ac_useropt=no ;;
990
991   -docdir | --docdir | --docdi | --doc | --do)
992     ac_prev=docdir ;;
993   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994     docdir=$ac_optarg ;;
995
996   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997     ac_prev=dvidir ;;
998   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999     dvidir=$ac_optarg ;;
1000
1001   -enable-* | --enable-*)
1002     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005       as_fn_error "invalid feature name: $ac_useropt"
1006     ac_useropt_orig=$ac_useropt
1007     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008     case $ac_user_opts in
1009       *"
1010 "enable_$ac_useropt"
1011 "*) ;;
1012       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013          ac_unrecognized_sep=', ';;
1014     esac
1015     eval enable_$ac_useropt=\$ac_optarg ;;
1016
1017   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019   | --exec | --exe | --ex)
1020     ac_prev=exec_prefix ;;
1021   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023   | --exec=* | --exe=* | --ex=*)
1024     exec_prefix=$ac_optarg ;;
1025
1026   -gas | --gas | --ga | --g)
1027     # Obsolete; use --with-gas.
1028     with_gas=yes ;;
1029
1030   -help | --help | --hel | --he | -h)
1031     ac_init_help=long ;;
1032   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033     ac_init_help=recursive ;;
1034   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035     ac_init_help=short ;;
1036
1037   -host | --host | --hos | --ho)
1038     ac_prev=host_alias ;;
1039   -host=* | --host=* | --hos=* | --ho=*)
1040     host_alias=$ac_optarg ;;
1041
1042   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043     ac_prev=htmldir ;;
1044   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045   | --ht=*)
1046     htmldir=$ac_optarg ;;
1047
1048   -includedir | --includedir | --includedi | --included | --include \
1049   | --includ | --inclu | --incl | --inc)
1050     ac_prev=includedir ;;
1051   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052   | --includ=* | --inclu=* | --incl=* | --inc=*)
1053     includedir=$ac_optarg ;;
1054
1055   -infodir | --infodir | --infodi | --infod | --info | --inf)
1056     ac_prev=infodir ;;
1057   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058     infodir=$ac_optarg ;;
1059
1060   -libdir | --libdir | --libdi | --libd)
1061     ac_prev=libdir ;;
1062   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063     libdir=$ac_optarg ;;
1064
1065   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066   | --libexe | --libex | --libe)
1067     ac_prev=libexecdir ;;
1068   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069   | --libexe=* | --libex=* | --libe=*)
1070     libexecdir=$ac_optarg ;;
1071
1072   -localedir | --localedir | --localedi | --localed | --locale)
1073     ac_prev=localedir ;;
1074   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075     localedir=$ac_optarg ;;
1076
1077   -localstatedir | --localstatedir | --localstatedi | --localstated \
1078   | --localstate | --localstat | --localsta | --localst | --locals)
1079     ac_prev=localstatedir ;;
1080   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082     localstatedir=$ac_optarg ;;
1083
1084   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085     ac_prev=mandir ;;
1086   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087     mandir=$ac_optarg ;;
1088
1089   -nfp | --nfp | --nf)
1090     # Obsolete; use --without-fp.
1091     with_fp=no ;;
1092
1093   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094   | --no-cr | --no-c | -n)
1095     no_create=yes ;;
1096
1097   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099     no_recursion=yes ;;
1100
1101   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103   | --oldin | --oldi | --old | --ol | --o)
1104     ac_prev=oldincludedir ;;
1105   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108     oldincludedir=$ac_optarg ;;
1109
1110   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111     ac_prev=prefix ;;
1112   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113     prefix=$ac_optarg ;;
1114
1115   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116   | --program-pre | --program-pr | --program-p)
1117     ac_prev=program_prefix ;;
1118   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120     program_prefix=$ac_optarg ;;
1121
1122   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123   | --program-suf | --program-su | --program-s)
1124     ac_prev=program_suffix ;;
1125   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127     program_suffix=$ac_optarg ;;
1128
1129   -program-transform-name | --program-transform-name \
1130   | --program-transform-nam | --program-transform-na \
1131   | --program-transform-n | --program-transform- \
1132   | --program-transform | --program-transfor \
1133   | --program-transfo | --program-transf \
1134   | --program-trans | --program-tran \
1135   | --progr-tra | --program-tr | --program-t)
1136     ac_prev=program_transform_name ;;
1137   -program-transform-name=* | --program-transform-name=* \
1138   | --program-transform-nam=* | --program-transform-na=* \
1139   | --program-transform-n=* | --program-transform-=* \
1140   | --program-transform=* | --program-transfor=* \
1141   | --program-transfo=* | --program-transf=* \
1142   | --program-trans=* | --program-tran=* \
1143   | --progr-tra=* | --program-tr=* | --program-t=*)
1144     program_transform_name=$ac_optarg ;;
1145
1146   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147     ac_prev=pdfdir ;;
1148   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149     pdfdir=$ac_optarg ;;
1150
1151   -psdir | --psdir | --psdi | --psd | --ps)
1152     ac_prev=psdir ;;
1153   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154     psdir=$ac_optarg ;;
1155
1156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157   | -silent | --silent | --silen | --sile | --sil)
1158     silent=yes ;;
1159
1160   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161     ac_prev=sbindir ;;
1162   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163   | --sbi=* | --sb=*)
1164     sbindir=$ac_optarg ;;
1165
1166   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168   | --sharedst | --shareds | --shared | --share | --shar \
1169   | --sha | --sh)
1170     ac_prev=sharedstatedir ;;
1171   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174   | --sha=* | --sh=*)
1175     sharedstatedir=$ac_optarg ;;
1176
1177   -site | --site | --sit)
1178     ac_prev=site ;;
1179   -site=* | --site=* | --sit=*)
1180     site=$ac_optarg ;;
1181
1182   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183     ac_prev=srcdir ;;
1184   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185     srcdir=$ac_optarg ;;
1186
1187   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188   | --syscon | --sysco | --sysc | --sys | --sy)
1189     ac_prev=sysconfdir ;;
1190   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192     sysconfdir=$ac_optarg ;;
1193
1194   -target | --target | --targe | --targ | --tar | --ta | --t)
1195     ac_prev=target_alias ;;
1196   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197     target_alias=$ac_optarg ;;
1198
1199   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200     verbose=yes ;;
1201
1202   -version | --version | --versio | --versi | --vers | -V)
1203     ac_init_version=: ;;
1204
1205   -with-* | --with-*)
1206     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209       as_fn_error "invalid package name: $ac_useropt"
1210     ac_useropt_orig=$ac_useropt
1211     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212     case $ac_user_opts in
1213       *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217          ac_unrecognized_sep=', ';;
1218     esac
1219     eval with_$ac_useropt=\$ac_optarg ;;
1220
1221   -without-* | --without-*)
1222     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225       as_fn_error "invalid package name: $ac_useropt"
1226     ac_useropt_orig=$ac_useropt
1227     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228     case $ac_user_opts in
1229       *"
1230 "with_$ac_useropt"
1231 "*) ;;
1232       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233          ac_unrecognized_sep=', ';;
1234     esac
1235     eval with_$ac_useropt=no ;;
1236
1237   --x)
1238     # Obsolete; use --with-x.
1239     with_x=yes ;;
1240
1241   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242   | --x-incl | --x-inc | --x-in | --x-i)
1243     ac_prev=x_includes ;;
1244   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246     x_includes=$ac_optarg ;;
1247
1248   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250     ac_prev=x_libraries ;;
1251   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253     x_libraries=$ac_optarg ;;
1254
1255   -*) as_fn_error "unrecognized option: \`$ac_option'
1256 Try \`$0 --help' for more information."
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     case $ac_envvar in #(
1263       '' | [0-9]* | *[!_$as_cr_alnum]* )
1264       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1265     esac
1266     eval $ac_envvar=\$ac_optarg
1267     export $ac_envvar ;;
1268
1269   *)
1270     # FIXME: should be removed in autoconf 3.0.
1271     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275     ;;
1276
1277   esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282   as_fn_error "missing argument to $ac_option"
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286   case $enable_option_checking in
1287     no) ;;
1288     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1289     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290   esac
1291 fi
1292
1293 # Check all directory arguments for consistency.
1294 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295                 datadir sysconfdir sharedstatedir localstatedir includedir \
1296                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297                 libdir localedir mandir
1298 do
1299   eval ac_val=\$$ac_var
1300   # Remove trailing slashes.
1301   case $ac_val in
1302     */ )
1303       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304       eval $ac_var=\$ac_val;;
1305   esac
1306   # Be sure to have absolute directory names.
1307   case $ac_val in
1308     [\\/$]* | ?:[\\/]* )  continue;;
1309     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310   esac
1311   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323   if test "x$build_alias" = x; then
1324     cross_compiling=maybe
1325     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326     If a cross compiler is detected then cross compile mode will be used." >&2
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   as_fn_error "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   as_fn_error "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1387         pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390   srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_env_${ac_var}_value=\$${ac_var}
1401   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409   # Omit some internal or obsolete options to make the list less imposing.
1410   # This message is too long to be a string in the A/UX 3.1 sh.
1411   cat <<_ACEOF
1412 \`configure' configures this package to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE.  See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422   -h, --help              display this help and exit
1423       --help=short        display options specific to this package
1424       --help=recursive    display the short help of all the included packages
1425   -V, --version           display version information and exit
1426   -q, --quiet, --silent   do not print \`checking...' messages
1427       --cache-file=FILE   cache test results in FILE [disabled]
1428   -C, --config-cache      alias for \`--cache-file=config.cache'
1429   -n, --no-create         do not create output files
1430       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433   --prefix=PREFIX         install architecture-independent files in PREFIX
1434                           [$ac_default_prefix]
1435   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1436                           [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446   --bindir=DIR            user executables [EPREFIX/bin]
1447   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1448   --libexecdir=DIR        program executables [EPREFIX/libexec]
1449   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1450   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1451   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1452   --libdir=DIR            object code libraries [EPREFIX/lib]
1453   --includedir=DIR        C header files [PREFIX/include]
1454   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1455   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1456   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1457   --infodir=DIR           info documentation [DATAROOTDIR/info]
1458   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1459   --mandir=DIR            man documentation [DATAROOTDIR/man]
1460   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1461   --htmldir=DIR           html documentation [DOCDIR]
1462   --dvidir=DIR            dvi documentation [DOCDIR]
1463   --pdfdir=DIR            pdf documentation [DOCDIR]
1464   --psdir=DIR             ps documentation [DOCDIR]
1465 _ACEOF
1466
1467   cat <<\_ACEOF
1468
1469 Program names:
1470   --program-prefix=PREFIX            prepend PREFIX to installed program names
1471   --program-suffix=SUFFIX            append SUFFIX to installed program names
1472   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1473
1474 X features:
1475   --x-includes=DIR    X include files are in DIR
1476   --x-libraries=DIR   X library files are in DIR
1477
1478 System types:
1479   --build=BUILD     configure for building on BUILD [guessed]
1480   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481   --target=TARGET   configure for building compilers for TARGET [HOST]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486
1487   cat <<\_ACEOF
1488
1489 Optional Features:
1490   --disable-option-checking  ignore unrecognized --enable/--with options
1491   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493   --enable-maintainer-mode  enable make rules and dependencies not useful
1494                           (and sometimes confusing) to the casual installer
1495   --enable-plugins        Enable support for plugins
1496   --disable-largefile     omit support for large files
1497   --enable-build-with-cxx build with C++ compiler instead of C compiler
1498   --enable-targets=TARGETS
1499                           alternative target configurations
1500   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1501   --disable-gdbcli        disable command-line interface (CLI)
1502   --disable-gdbmi         disable machine-interface (MI)
1503   --enable-tui            enable full-screen terminal user interface (TUI)
1504   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1505   --enable-profiling      enable profiling of GDB
1506   --disable-rpath         do not hardcode runtime library paths
1507   --enable-libmcheck      Try linking with -lmcheck if available
1508   --enable-werror         treat compile warnings as errors
1509   --enable-build-warnings enable build-time compiler warnings if gcc is used
1510   --enable-gdb-build-warnings
1511                           enable GDB specific build-time compiler warnings if
1512                           gcc is used
1513   --enable-sim            link gdb with simulator
1514   --enable-multi-ice      build the multi-ice-gdb-server
1515   --enable-gdbserver      automatically build gdbserver (yes/no/auto, default
1516                           is auto)
1517
1518 Optional Packages:
1519   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1520   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1521   --with-separate-debug-dir=PATH
1522                           look for global separate debug info in this path
1523                           [LIBDIR/debug]
1524   --with-gdb-datadir=PATH look for global separate data files in this path
1525                           [DATADIR/gdb]
1526   --with-relocated-sources=PATH
1527                           automatically relocate this path for source files
1528   --with-auto-load-dir=PATH
1529                           directories from which to load auto-loaded scripts
1530                           [$debugdir:$datadir/auto-load]
1531   --with-auto-load-safe-path=PATH
1532                           directories safe to hold auto-loaded files
1533                           [--with-auto-load-dir]
1534   --without-auto-load-safe-path
1535                           do not restrict auto-loaded files locations
1536   --with-libunwind-ia64   use libunwind frame unwinding for ia64 targets
1537   --with-curses           use the curses library instead of the termcap
1538                           library
1539   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1540   --with-bugurl=URL       Direct users to URL to report a bug
1541   --with-system-zlib      use installed libz
1542   --with-libiconv-prefix=DIR
1543                           search for libiconv in DIR/include and DIR/lib
1544   --with-iconv-bin=PATH   specify where to find the iconv program
1545   --with-system-readline  use installed readline library
1546   --with-jit-reader-dir=PATH
1547                           directory to load the JIT readers from
1548   --with-expat            include expat support (auto/yes/no)
1549   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1550   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1551   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1552   --with-python[=PYTHON]  include python support
1553                           (auto/yes/no/<python-program>)
1554   --with-guile[=GUILE]    include guile support
1555                           (auto/yes/no/<guile-version>/<pkg-config-program>)
1556   --without-included-regex
1557                           don't use included regex; this is the default on
1558                           systems with version 2 of the GNU C library (use
1559                           with caution on other system)
1560   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1561   --with-system-gdbinit=PATH
1562                           automatically load a system-wide gdbinit file
1563   --with-lzma             support lzma compression (auto/yes/no)
1564   --with-liblzma-prefix[=DIR]  search for liblzma in DIR/include and DIR/lib
1565   --without-liblzma-prefix     don't search for liblzma in includedir and libdir
1566   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1567   --with-tk               directory containing tk configuration (tkConfig.sh)
1568   --with-x                use the X Window System
1569   --with-babeltrace       include babeltrace support (auto/yes/no)
1570   --with-libbabeltrace-prefix[=DIR]  search for libbabeltrace in DIR/include and DIR/lib
1571   --without-libbabeltrace-prefix     don't search for libbabeltrace in includedir and libdir
1572
1573 Some influential environment variables:
1574   CC          C compiler command
1575   CFLAGS      C compiler flags
1576   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1577               nonstandard directory <lib dir>
1578   LIBS        libraries to pass to the linker, e.g. -l<library>
1579   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1580               you have headers in a nonstandard directory <include dir>
1581   CXX         C++ compiler command
1582   CXXFLAGS    C++ compiler flags
1583   CPP         C preprocessor
1584   MAKEINFO    Parent configure detects if it is of sufficient version.
1585   MAKEINFOFLAGS
1586               Parameters for MAKEINFO.
1587   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1588               the first program found out of: `bison -y', `byacc', `yacc'.
1589   YFLAGS      The list of arguments that will be passed by default to $YACC.
1590               This script will default YFLAGS to the empty string to avoid a
1591               default value of `-d' given by some make applications.
1592   XMKMF       Path to xmkmf, Makefile generator for X Window System
1593
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1596
1597 Report bugs to the package provider.
1598 _ACEOF
1599 ac_status=$?
1600 fi
1601
1602 if test "$ac_init_help" = "recursive"; then
1603   # If there are subdirs, report their specific --help.
1604   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605     test -d "$ac_dir" ||
1606       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1607       continue
1608     ac_builddir=.
1609
1610 case "$ac_dir" in
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *)
1613   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614   # A ".." for each directory in $ac_dir_suffix.
1615   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616   case $ac_top_builddir_sub in
1617   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619   esac ;;
1620 esac
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1625
1626 case $srcdir in
1627   .)  # We are building in place.
1628     ac_srcdir=.
1629     ac_top_srcdir=$ac_top_builddir_sub
1630     ac_abs_top_srcdir=$ac_pwd ;;
1631   [\\/]* | ?:[\\/]* )  # Absolute name.
1632     ac_srcdir=$srcdir$ac_dir_suffix;
1633     ac_top_srcdir=$srcdir
1634     ac_abs_top_srcdir=$srcdir ;;
1635   *) # Relative name.
1636     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637     ac_top_srcdir=$ac_top_build_prefix$srcdir
1638     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1639 esac
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1641
1642     cd "$ac_dir" || { ac_status=$?; continue; }
1643     # Check for guested configure.
1644     if test -f "$ac_srcdir/configure.gnu"; then
1645       echo &&
1646       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647     elif test -f "$ac_srcdir/configure"; then
1648       echo &&
1649       $SHELL "$ac_srcdir/configure" --help=recursive
1650     else
1651       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652     fi || ac_status=$?
1653     cd "$ac_pwd" || { ac_status=$?; break; }
1654   done
1655 fi
1656
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1659   cat <<\_ACEOF
1660 configure
1661 generated by GNU Autoconf 2.64
1662
1663 Copyright (C) 2009 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1666 _ACEOF
1667   exit
1668 fi
1669
1670 ## ------------------------ ##
1671 ## Autoconf initialization. ##
1672 ## ------------------------ ##
1673
1674 # ac_fn_c_try_compile LINENO
1675 # --------------------------
1676 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_compile ()
1678 {
1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680   rm -f conftest.$ac_objext
1681   if { { ac_try="$ac_compile"
1682 case "(($ac_try" in
1683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684   *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688   (eval "$ac_compile") 2>conftest.err
1689   ac_status=$?
1690   if test -s conftest.err; then
1691     grep -v '^ *+' conftest.err >conftest.er1
1692     cat conftest.er1 >&5
1693     mv -f conftest.er1 conftest.err
1694   fi
1695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696   test $ac_status = 0; } && {
1697          test -z "$ac_c_werror_flag" ||
1698          test ! -s conftest.err
1699        } && test -s conftest.$ac_objext; then :
1700   ac_retval=0
1701 else
1702   $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705         ac_retval=1
1706 fi
1707   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1708   return $ac_retval
1709
1710 } # ac_fn_c_try_compile
1711
1712 # ac_fn_cxx_try_compile LINENO
1713 # ----------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_cxx_try_compile ()
1716 {
1717   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718   rm -f conftest.$ac_objext
1719   if { { ac_try="$ac_compile"
1720 case "(($ac_try" in
1721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722   *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726   (eval "$ac_compile") 2>conftest.err
1727   ac_status=$?
1728   if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732   fi
1733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734   test $ac_status = 0; } && {
1735          test -z "$ac_cxx_werror_flag" ||
1736          test ! -s conftest.err
1737        } && test -s conftest.$ac_objext; then :
1738   ac_retval=0
1739 else
1740   $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743         ac_retval=1
1744 fi
1745   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746   return $ac_retval
1747
1748 } # ac_fn_cxx_try_compile
1749
1750 # ac_fn_c_try_cpp LINENO
1751 # ----------------------
1752 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1753 ac_fn_c_try_cpp ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   if { { ac_try="$ac_cpp conftest.$ac_ext"
1757 case "(($ac_try" in
1758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1759   *) ac_try_echo=$ac_try;;
1760 esac
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764   ac_status=$?
1765   if test -s conftest.err; then
1766     grep -v '^ *+' conftest.err >conftest.er1
1767     cat conftest.er1 >&5
1768     mv -f conftest.er1 conftest.err
1769   fi
1770   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771   test $ac_status = 0; } >/dev/null && {
1772          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773          test ! -s conftest.err
1774        }; then :
1775   ac_retval=0
1776 else
1777   $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780     ac_retval=1
1781 fi
1782   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783   return $ac_retval
1784
1785 } # ac_fn_c_try_cpp
1786
1787 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1788 # -------------------------------------------------------
1789 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1790 # the include files in INCLUDES and setting the cache variable VAR
1791 # accordingly.
1792 ac_fn_c_check_header_mongrel ()
1793 {
1794   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1799   $as_echo_n "(cached) " >&6
1800 fi
1801 eval ac_res=\$$3
1802                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 $as_echo "$ac_res" >&6; }
1804 else
1805   # Is the header compilable?
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1807 $as_echo_n "checking $2 usability... " >&6; }
1808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 $4
1811 #include <$2>
1812 _ACEOF
1813 if ac_fn_c_try_compile "$LINENO"; then :
1814   ac_header_compiler=yes
1815 else
1816   ac_header_compiler=no
1817 fi
1818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1820 $as_echo "$ac_header_compiler" >&6; }
1821
1822 # Is the header present?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1824 $as_echo_n "checking $2 presence... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h.  */
1827 #include <$2>
1828 _ACEOF
1829 if ac_fn_c_try_cpp "$LINENO"; then :
1830   ac_header_preproc=yes
1831 else
1832   ac_header_preproc=no
1833 fi
1834 rm -f conftest.err conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1836 $as_echo "$ac_header_preproc" >&6; }
1837
1838 # So?  What about this header?
1839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1840   yes:no: )
1841     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1842 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1843     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1844 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1845     ;;
1846   no:yes:* )
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1848 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1849     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1850 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1852 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1854 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857     ;;
1858 esac
1859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862   $as_echo_n "(cached) " >&6
1863 else
1864   eval "$3=\$ac_header_compiler"
1865 fi
1866 eval ac_res=\$$3
1867                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 fi
1870   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872 } # ac_fn_c_check_header_mongrel
1873
1874 # ac_fn_c_try_run LINENO
1875 # ----------------------
1876 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1877 # that executables *can* be run.
1878 ac_fn_c_try_run ()
1879 {
1880   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881   if { { ac_try="$ac_link"
1882 case "(($ac_try" in
1883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884   *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888   (eval "$ac_link") 2>&5
1889   ac_status=$?
1890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1892   { { case "(($ac_try" in
1893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894   *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898   (eval "$ac_try") 2>&5
1899   ac_status=$?
1900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901   test $ac_status = 0; }; }; then :
1902   ac_retval=0
1903 else
1904   $as_echo "$as_me: program exited with status $ac_status" >&5
1905        $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908        ac_retval=$ac_status
1909 fi
1910   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1912   return $ac_retval
1913
1914 } # ac_fn_c_try_run
1915
1916 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1917 # -------------------------------------------------------
1918 # Tests whether HEADER exists and can be compiled using the include files in
1919 # INCLUDES, setting the cache variable VAR accordingly.
1920 ac_fn_c_check_header_compile ()
1921 {
1922   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1926   $as_echo_n "(cached) " >&6
1927 else
1928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 $4
1931 #include <$2>
1932 _ACEOF
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934   eval "$3=yes"
1935 else
1936   eval "$3=no"
1937 fi
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 fi
1940 eval ac_res=\$$3
1941                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1943   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944
1945 } # ac_fn_c_check_header_compile
1946
1947 # ac_fn_c_try_link LINENO
1948 # -----------------------
1949 # Try to link conftest.$ac_ext, and return whether this succeeded.
1950 ac_fn_c_try_link ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   rm -f conftest.$ac_objext conftest$ac_exeext
1954   if { { ac_try="$ac_link"
1955 case "(($ac_try" in
1956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1957   *) ac_try_echo=$ac_try;;
1958 esac
1959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1960 $as_echo "$ac_try_echo"; } >&5
1961   (eval "$ac_link") 2>conftest.err
1962   ac_status=$?
1963   if test -s conftest.err; then
1964     grep -v '^ *+' conftest.err >conftest.er1
1965     cat conftest.er1 >&5
1966     mv -f conftest.er1 conftest.err
1967   fi
1968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969   test $ac_status = 0; } && {
1970          test -z "$ac_c_werror_flag" ||
1971          test ! -s conftest.err
1972        } && test -s conftest$ac_exeext && {
1973          test "$cross_compiling" = yes ||
1974          $as_test_x conftest$ac_exeext
1975        }; then :
1976   ac_retval=0
1977 else
1978   $as_echo "$as_me: failed program was:" >&5
1979 sed 's/^/| /' conftest.$ac_ext >&5
1980
1981         ac_retval=1
1982 fi
1983   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1984   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1985   # interfere with the next link command; also delete a directory that is
1986   # left behind by Apple's compiler.  We do this before executing the actions.
1987   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1988   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989   return $ac_retval
1990
1991 } # ac_fn_c_try_link
1992
1993 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1994 # --------------------------------------------
1995 # Tries to find the compile-time value of EXPR in a program that includes
1996 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1997 # computed
1998 ac_fn_c_compute_int ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   if test "$cross_compiling" = yes; then
2002     # Depending upon the size, compute the lo and hi bounds.
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h.  */
2005 $4
2006 int
2007 main ()
2008 {
2009 static int test_array [1 - 2 * !(($2) >= 0)];
2010 test_array [0] = 0
2011
2012   ;
2013   return 0;
2014 }
2015 _ACEOF
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017   ac_lo=0 ac_mid=0
2018   while :; do
2019     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 $4
2022 int
2023 main ()
2024 {
2025 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2026 test_array [0] = 0
2027
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   ac_hi=$ac_mid; break
2034 else
2035   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2036                         if test $ac_lo -le $ac_mid; then
2037                           ac_lo= ac_hi=
2038                           break
2039                         fi
2040                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2041 fi
2042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043   done
2044 else
2045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h.  */
2047 $4
2048 int
2049 main ()
2050 {
2051 static int test_array [1 - 2 * !(($2) < 0)];
2052 test_array [0] = 0
2053
2054   ;
2055   return 0;
2056 }
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059   ac_hi=-1 ac_mid=-1
2060   while :; do
2061     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062 /* end confdefs.h.  */
2063 $4
2064 int
2065 main ()
2066 {
2067 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2068 test_array [0] = 0
2069
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2075   ac_lo=$ac_mid; break
2076 else
2077   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2078                         if test $ac_mid -le $ac_hi; then
2079                           ac_lo= ac_hi=
2080                           break
2081                         fi
2082                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2083 fi
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085   done
2086 else
2087   ac_lo= ac_hi=
2088 fi
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 # Binary search between lo and hi bounds.
2093 while test "x$ac_lo" != "x$ac_hi"; do
2094   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h.  */
2097 $4
2098 int
2099 main ()
2100 {
2101 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2102 test_array [0] = 0
2103
2104   ;
2105   return 0;
2106 }
2107 _ACEOF
2108 if ac_fn_c_try_compile "$LINENO"; then :
2109   ac_hi=$ac_mid
2110 else
2111   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2112 fi
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114 done
2115 case $ac_lo in #((
2116 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2117 '') ac_retval=1 ;;
2118 esac
2119   else
2120     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h.  */
2122 $4
2123 static long int longval () { return $2; }
2124 static unsigned long int ulongval () { return $2; }
2125 #include <stdio.h>
2126 #include <stdlib.h>
2127 int
2128 main ()
2129 {
2130
2131   FILE *f = fopen ("conftest.val", "w");
2132   if (! f)
2133     return 1;
2134   if (($2) < 0)
2135     {
2136       long int i = longval ();
2137       if (i != ($2))
2138         return 1;
2139       fprintf (f, "%ld", i);
2140     }
2141   else
2142     {
2143       unsigned long int i = ulongval ();
2144       if (i != ($2))
2145         return 1;
2146       fprintf (f, "%lu", i);
2147     }
2148   /* Do not output a trailing newline, as this causes \r\n confusion
2149      on some platforms.  */
2150   return ferror (f) || fclose (f) != 0;
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_run "$LINENO"; then :
2157   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2158 else
2159   ac_retval=1
2160 fi
2161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2162   conftest.$ac_objext conftest.beam conftest.$ac_ext
2163 rm -f conftest.val
2164
2165   fi
2166   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2167   return $ac_retval
2168
2169 } # ac_fn_c_compute_int
2170
2171 # ac_fn_c_check_func LINENO FUNC VAR
2172 # ----------------------------------
2173 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2174 ac_fn_c_check_func ()
2175 {
2176   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178 $as_echo_n "checking for $2... " >&6; }
2179 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2180   $as_echo_n "(cached) " >&6
2181 else
2182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h.  */
2184 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2186 #define $2 innocuous_$2
2187
2188 /* System header to define __stub macros and hopefully few prototypes,
2189     which can conflict with char $2 (); below.
2190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2191     <limits.h> exists even on freestanding compilers.  */
2192
2193 #ifdef __STDC__
2194 # include <limits.h>
2195 #else
2196 # include <assert.h>
2197 #endif
2198
2199 #undef $2
2200
2201 /* Override any GCC internal prototype to avoid an error.
2202    Use char because int might match the return type of a GCC
2203    builtin and then its argument prototype would still apply.  */
2204 #ifdef __cplusplus
2205 extern "C"
2206 #endif
2207 char $2 ();
2208 /* The GNU C library defines this for functions which it implements
2209     to always fail with ENOSYS.  Some functions are actually named
2210     something starting with __ and the normal name is an alias.  */
2211 #if defined __stub_$2 || defined __stub___$2
2212 choke me
2213 #endif
2214
2215 int
2216 main ()
2217 {
2218 return $2 ();
2219   ;
2220   return 0;
2221 }
2222 _ACEOF
2223 if ac_fn_c_try_link "$LINENO"; then :
2224   eval "$3=yes"
2225 else
2226   eval "$3=no"
2227 fi
2228 rm -f core conftest.err conftest.$ac_objext \
2229     conftest$ac_exeext conftest.$ac_ext
2230 fi
2231 eval ac_res=\$$3
2232                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2233 $as_echo "$ac_res" >&6; }
2234   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235
2236 } # ac_fn_c_check_func
2237
2238 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2239 # -------------------------------------------
2240 # Tests whether TYPE exists after having included INCLUDES, setting cache
2241 # variable VAR accordingly.
2242 ac_fn_c_check_type ()
2243 {
2244   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248   $as_echo_n "(cached) " >&6
2249 else
2250   eval "$3=no"
2251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h.  */
2253 $4
2254 int
2255 main ()
2256 {
2257 if (sizeof ($2))
2258          return 0;
2259   ;
2260   return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h.  */
2266 $4
2267 int
2268 main ()
2269 {
2270 if (sizeof (($2)))
2271             return 0;
2272   ;
2273   return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277
2278 else
2279   eval "$3=yes"
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 fi
2283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284 fi
2285 eval ac_res=\$$3
2286                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2287 $as_echo "$ac_res" >&6; }
2288   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2289
2290 } # ac_fn_c_check_type
2291
2292 # ac_fn_c_check_decl LINENO SYMBOL VAR
2293 # ------------------------------------
2294 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2295 ac_fn_c_check_decl ()
2296 {
2297   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298   as_decl_name=`echo $2|sed 's/ *(.*//'`
2299   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2301 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2302 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2303   $as_echo_n "(cached) " >&6
2304 else
2305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h.  */
2307 $4
2308 int
2309 main ()
2310 {
2311 #ifndef $as_decl_name
2312 #ifdef __cplusplus
2313   (void) $as_decl_use;
2314 #else
2315   (void) $as_decl_name;
2316 #endif
2317 #endif
2318
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324   eval "$3=yes"
2325 else
2326   eval "$3=no"
2327 fi
2328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2329 fi
2330 eval ac_res=\$$3
2331                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2332 $as_echo "$ac_res" >&6; }
2333   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334
2335 } # ac_fn_c_check_decl
2336
2337 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2338 # ----------------------------------------------------
2339 # Tries to find if the field MEMBER exists in type AGGR, after including
2340 # INCLUDES, setting cache variable VAR accordingly.
2341 ac_fn_c_check_member ()
2342 {
2343   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2345 $as_echo_n "checking for $2.$3... " >&6; }
2346 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2347   $as_echo_n "(cached) " >&6
2348 else
2349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h.  */
2351 $5
2352 int
2353 main ()
2354 {
2355 static $2 ac_aggr;
2356 if (ac_aggr.$3)
2357 return 0;
2358   ;
2359   return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_c_try_compile "$LINENO"; then :
2363   eval "$4=yes"
2364 else
2365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h.  */
2367 $5
2368 int
2369 main ()
2370 {
2371 static $2 ac_aggr;
2372 if (sizeof ac_aggr.$3)
2373 return 0;
2374   ;
2375   return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379   eval "$4=yes"
2380 else
2381   eval "$4=no"
2382 fi
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 fi
2385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386 fi
2387 eval ac_res=\$$4
2388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2391
2392 } # ac_fn_c_check_member
2393 cat >config.log <<_ACEOF
2394 This file contains any messages produced by compilers while
2395 running configure, to aid debugging if configure makes a mistake.
2396
2397 It was created by $as_me, which was
2398 generated by GNU Autoconf 2.64.  Invocation command line was
2399
2400   $ $0 $@
2401
2402 _ACEOF
2403 exec 5>>config.log
2404 {
2405 cat <<_ASUNAME
2406 ## --------- ##
2407 ## Platform. ##
2408 ## --------- ##
2409
2410 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2411 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2412 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2413 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2414 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2415
2416 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2417 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2418
2419 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2420 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2421 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2422 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2423 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2424 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2425 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2426
2427 _ASUNAME
2428
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432   IFS=$as_save_IFS
2433   test -z "$as_dir" && as_dir=.
2434     $as_echo "PATH: $as_dir"
2435   done
2436 IFS=$as_save_IFS
2437
2438 } >&5
2439
2440 cat >&5 <<_ACEOF
2441
2442
2443 ## ----------- ##
2444 ## Core tests. ##
2445 ## ----------- ##
2446
2447 _ACEOF
2448
2449
2450 # Keep a trace of the command line.
2451 # Strip out --no-create and --no-recursion so they do not pile up.
2452 # Strip out --silent because we don't want to record it for future runs.
2453 # Also quote any args containing shell meta-characters.
2454 # Make two passes to allow for proper duplicate-argument suppression.
2455 ac_configure_args=
2456 ac_configure_args0=
2457 ac_configure_args1=
2458 ac_must_keep_next=false
2459 for ac_pass in 1 2
2460 do
2461   for ac_arg
2462   do
2463     case $ac_arg in
2464     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2465     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2466     | -silent | --silent | --silen | --sile | --sil)
2467       continue ;;
2468     *\'*)
2469       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2470     esac
2471     case $ac_pass in
2472     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2473     2)
2474       as_fn_append ac_configure_args1 " '$ac_arg'"
2475       if test $ac_must_keep_next = true; then
2476         ac_must_keep_next=false # Got value, back to normal.
2477       else
2478         case $ac_arg in
2479           *=* | --config-cache | -C | -disable-* | --disable-* \
2480           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2481           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2482           | -with-* | --with-* | -without-* | --without-* | --x)
2483             case "$ac_configure_args0 " in
2484               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2485             esac
2486             ;;
2487           -* ) ac_must_keep_next=true ;;
2488         esac
2489       fi
2490       as_fn_append ac_configure_args " '$ac_arg'"
2491       ;;
2492     esac
2493   done
2494 done
2495 { ac_configure_args0=; unset ac_configure_args0;}
2496 { ac_configure_args1=; unset ac_configure_args1;}
2497
2498 # When interrupted or exit'd, cleanup temporary files, and complete
2499 # config.log.  We remove comments because anyway the quotes in there
2500 # would cause problems or look ugly.
2501 # WARNING: Use '\'' to represent an apostrophe within the trap.
2502 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2503 trap 'exit_status=$?
2504   # Save into config.log some information that might help in debugging.
2505   {
2506     echo
2507
2508     cat <<\_ASBOX
2509 ## ---------------- ##
2510 ## Cache variables. ##
2511 ## ---------------- ##
2512 _ASBOX
2513     echo
2514     # The following way of writing the cache mishandles newlines in values,
2515 (
2516   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2517     eval ac_val=\$$ac_var
2518     case $ac_val in #(
2519     *${as_nl}*)
2520       case $ac_var in #(
2521       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2522 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2523       esac
2524       case $ac_var in #(
2525       _ | IFS | as_nl) ;; #(
2526       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2527       *) { eval $ac_var=; unset $ac_var;} ;;
2528       esac ;;
2529     esac
2530   done
2531   (set) 2>&1 |
2532     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2533     *${as_nl}ac_space=\ *)
2534       sed -n \
2535         "s/'\''/'\''\\\\'\'''\''/g;
2536           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2537       ;; #(
2538     *)
2539       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2540       ;;
2541     esac |
2542     sort
2543 )
2544     echo
2545
2546     cat <<\_ASBOX
2547 ## ----------------- ##
2548 ## Output variables. ##
2549 ## ----------------- ##
2550 _ASBOX
2551     echo
2552     for ac_var in $ac_subst_vars
2553     do
2554       eval ac_val=\$$ac_var
2555       case $ac_val in
2556       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2557       esac
2558       $as_echo "$ac_var='\''$ac_val'\''"
2559     done | sort
2560     echo
2561
2562     if test -n "$ac_subst_files"; then
2563       cat <<\_ASBOX
2564 ## ------------------- ##
2565 ## File substitutions. ##
2566 ## ------------------- ##
2567 _ASBOX
2568       echo
2569       for ac_var in $ac_subst_files
2570       do
2571         eval ac_val=\$$ac_var
2572         case $ac_val in
2573         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574         esac
2575         $as_echo "$ac_var='\''$ac_val'\''"
2576       done | sort
2577       echo
2578     fi
2579
2580     if test -s confdefs.h; then
2581       cat <<\_ASBOX
2582 ## ----------- ##
2583 ## confdefs.h. ##
2584 ## ----------- ##
2585 _ASBOX
2586       echo
2587       cat confdefs.h
2588       echo
2589     fi
2590     test "$ac_signal" != 0 &&
2591       $as_echo "$as_me: caught signal $ac_signal"
2592     $as_echo "$as_me: exit $exit_status"
2593   } >&5
2594   rm -f core *.core core.conftest.* &&
2595     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2596     exit $exit_status
2597 ' 0
2598 for ac_signal in 1 2 13 15; do
2599   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2600 done
2601 ac_signal=0
2602
2603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2604 rm -f -r conftest* confdefs.h
2605
2606 $as_echo "/* confdefs.h */" > confdefs.h
2607
2608 # Predefined preprocessor variables.
2609
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_NAME "$PACKAGE_NAME"
2612 _ACEOF
2613
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2616 _ACEOF
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2620 _ACEOF
2621
2622 cat >>confdefs.h <<_ACEOF
2623 #define PACKAGE_STRING "$PACKAGE_STRING"
2624 _ACEOF
2625
2626 cat >>confdefs.h <<_ACEOF
2627 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2628 _ACEOF
2629
2630 cat >>confdefs.h <<_ACEOF
2631 #define PACKAGE_URL "$PACKAGE_URL"
2632 _ACEOF
2633
2634
2635 # Let the site file select an alternate cache file if it wants to.
2636 # Prefer an explicitly selected file to automatically selected ones.
2637 ac_site_file1=NONE
2638 ac_site_file2=NONE
2639 if test -n "$CONFIG_SITE"; then
2640   ac_site_file1=$CONFIG_SITE
2641 elif test "x$prefix" != xNONE; then
2642   ac_site_file1=$prefix/share/config.site
2643   ac_site_file2=$prefix/etc/config.site
2644 else
2645   ac_site_file1=$ac_default_prefix/share/config.site
2646   ac_site_file2=$ac_default_prefix/etc/config.site
2647 fi
2648 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2649 do
2650   test "x$ac_site_file" = xNONE && continue
2651   if test -r "$ac_site_file"; then
2652     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2653 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2654     sed 's/^/| /' "$ac_site_file" >&5
2655     . "$ac_site_file"
2656   fi
2657 done
2658
2659 if test -r "$cache_file"; then
2660   # Some versions of bash will fail to source /dev/null (special
2661   # files actually), so we avoid doing that.
2662   if test -f "$cache_file"; then
2663     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2664 $as_echo "$as_me: loading cache $cache_file" >&6;}
2665     case $cache_file in
2666       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2667       *)                      . "./$cache_file";;
2668     esac
2669   fi
2670 else
2671   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2672 $as_echo "$as_me: creating cache $cache_file" >&6;}
2673   >$cache_file
2674 fi
2675
2676 # Check that the precious variables saved in the cache have kept the same
2677 # value.
2678 ac_cache_corrupted=false
2679 for ac_var in $ac_precious_vars; do
2680   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2681   eval ac_new_set=\$ac_env_${ac_var}_set
2682   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2683   eval ac_new_val=\$ac_env_${ac_var}_value
2684   case $ac_old_set,$ac_new_set in
2685     set,)
2686       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2687 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2688       ac_cache_corrupted=: ;;
2689     ,set)
2690       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2691 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2692       ac_cache_corrupted=: ;;
2693     ,);;
2694     *)
2695       if test "x$ac_old_val" != "x$ac_new_val"; then
2696         # differences in whitespace do not lead to failure.
2697         ac_old_val_w=`echo x $ac_old_val`
2698         ac_new_val_w=`echo x $ac_new_val`
2699         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2700           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2701 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2702           ac_cache_corrupted=:
2703         else
2704           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2705 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2706           eval $ac_var=\$ac_old_val
2707         fi
2708         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2709 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2710         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2711 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2712       fi;;
2713   esac
2714   # Pass precious variables to config.status.
2715   if test "$ac_new_set" = set; then
2716     case $ac_new_val in
2717     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2718     *) ac_arg=$ac_var=$ac_new_val ;;
2719     esac
2720     case " $ac_configure_args " in
2721       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2722       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2723     esac
2724   fi
2725 done
2726 if $ac_cache_corrupted; then
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2730 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2731   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2732 fi
2733 ## -------------------- ##
2734 ## Main body of script. ##
2735 ## -------------------- ##
2736
2737 ac_ext=c
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742
2743
2744
2745
2746
2747 ac_config_headers="$ac_config_headers config.h:config.in"
2748
2749
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2751 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2752     # Check whether --enable-maintainer-mode was given.
2753 if test "${enable_maintainer_mode+set}" = set; then :
2754   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2755 else
2756   USE_MAINTAINER_MODE=no
2757 fi
2758
2759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2760 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2761    if test $USE_MAINTAINER_MODE = yes; then
2762   MAINTAINER_MODE_TRUE=
2763   MAINTAINER_MODE_FALSE='#'
2764 else
2765   MAINTAINER_MODE_TRUE='#'
2766   MAINTAINER_MODE_FALSE=
2767 fi
2768
2769   MAINT=$MAINTAINER_MODE_TRUE
2770
2771
2772
2773 # Set the 'development' global.
2774 . $srcdir/../bfd/development.sh
2775
2776 ac_ext=c
2777 ac_cpp='$CPP $CPPFLAGS'
2778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781 if test -n "$ac_tool_prefix"; then
2782   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2785 $as_echo_n "checking for $ac_word... " >&6; }
2786 if test "${ac_cv_prog_CC+set}" = set; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   if test -n "$CC"; then
2790   ac_cv_prog_CC="$CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795   IFS=$as_save_IFS
2796   test -z "$as_dir" && as_dir=.
2797     for ac_exec_ext in '' $ac_executable_extensions; do
2798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801     break 2
2802   fi
2803 done
2804   done
2805 IFS=$as_save_IFS
2806
2807 fi
2808 fi
2809 CC=$ac_cv_prog_CC
2810 if test -n "$CC"; then
2811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2812 $as_echo "$CC" >&6; }
2813 else
2814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 fi
2817
2818
2819 fi
2820 if test -z "$ac_cv_prog_CC"; then
2821   ac_ct_CC=$CC
2822   # Extract the first word of "gcc", so it can be a program name with args.
2823 set dummy gcc; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2827   $as_echo_n "(cached) " >&6
2828 else
2829   if test -n "$ac_ct_CC"; then
2830   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2834 do
2835   IFS=$as_save_IFS
2836   test -z "$as_dir" && as_dir=.
2837     for ac_exec_ext in '' $ac_executable_extensions; do
2838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839     ac_cv_prog_ac_ct_CC="gcc"
2840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844   done
2845 IFS=$as_save_IFS
2846
2847 fi
2848 fi
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2852 $as_echo "$ac_ct_CC" >&6; }
2853 else
2854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2856 fi
2857
2858   if test "x$ac_ct_CC" = x; then
2859     CC=""
2860   else
2861     case $cross_compiling:$ac_tool_warned in
2862 yes:)
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2865 ac_tool_warned=yes ;;
2866 esac
2867     CC=$ac_ct_CC
2868   fi
2869 else
2870   CC="$ac_cv_prog_CC"
2871 fi
2872
2873 if test -z "$CC"; then
2874           if test -n "$ac_tool_prefix"; then
2875     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}cc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880   $as_echo_n "(cached) " >&6
2881 else
2882   if test -n "$CC"; then
2883   ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888   IFS=$as_save_IFS
2889   test -z "$as_dir" && as_dir=.
2890     for ac_exec_ext in '' $ac_executable_extensions; do
2891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892     ac_cv_prog_CC="${ac_tool_prefix}cc"
2893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894     break 2
2895   fi
2896 done
2897   done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912   fi
2913 fi
2914 if test -z "$CC"; then
2915   # Extract the first word of "cc", so it can be a program name with args.
2916 set dummy cc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_CC+set}" = set; then :
2920   $as_echo_n "(cached) " >&6
2921 else
2922   if test -n "$CC"; then
2923   ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925   ac_prog_rejected=no
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929   IFS=$as_save_IFS
2930   test -z "$as_dir" && as_dir=.
2931     for ac_exec_ext in '' $ac_executable_extensions; do
2932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934        ac_prog_rejected=yes
2935        continue
2936      fi
2937     ac_cv_prog_CC="cc"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 if test $ac_prog_rejected = yes; then
2946   # We found a bogon in the path, so make sure we never use it.
2947   set dummy $ac_cv_prog_CC
2948   shift
2949   if test $# != 0; then
2950     # We chose a different compiler from the bogus one.
2951     # However, it has the same basename, so the bogon will be chosen
2952     # first if we set CC to just the basename; use the full file name.
2953     shift
2954     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2955   fi
2956 fi
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969 fi
2970 if test -z "$CC"; then
2971   if test -n "$ac_tool_prefix"; then
2972   for ac_prog in cl.exe
2973   do
2974     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977 $as_echo_n "checking for $ac_word... " >&6; }
2978 if test "${ac_cv_prog_CC+set}" = set; then :
2979   $as_echo_n "(cached) " >&6
2980 else
2981   if test -n "$CC"; then
2982   ac_cv_prog_CC="$CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987   IFS=$as_save_IFS
2988   test -z "$as_dir" && as_dir=.
2989     for ac_exec_ext in '' $ac_executable_extensions; do
2990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996   done
2997 IFS=$as_save_IFS
2998
2999 fi
3000 fi
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010
3011     test -n "$CC" && break
3012   done
3013 fi
3014 if test -z "$CC"; then
3015   ac_ct_CC=$CC
3016   for ac_prog in cl.exe
3017 do
3018   # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3023   $as_echo_n "(cached) " >&6
3024 else
3025   if test -n "$ac_ct_CC"; then
3026   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031   IFS=$as_save_IFS
3032   test -z "$as_dir" && as_dir=.
3033     for ac_exec_ext in '' $ac_executable_extensions; do
3034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035     ac_cv_prog_ac_ct_CC="$ac_prog"
3036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037     break 2
3038   fi
3039 done
3040   done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046 if test -n "$ac_ct_CC"; then
3047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3048 $as_echo "$ac_ct_CC" >&6; }
3049 else
3050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055   test -n "$ac_ct_CC" && break
3056 done
3057
3058   if test "x$ac_ct_CC" = x; then
3059     CC=""
3060   else
3061     case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067     CC=$ac_ct_CC
3068   fi
3069 fi
3070
3071 fi
3072
3073
3074 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error "no acceptable C compiler found in \$PATH
3077 See \`config.log' for more details." "$LINENO" 5; }
3078
3079 # Provide some information about the compiler.
3080 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3081 set X $ac_compile
3082 ac_compiler=$2
3083 for ac_option in --version -v -V -qversion; do
3084   { { ac_try="$ac_compiler $ac_option >&5"
3085 case "(($ac_try" in
3086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087   *) ac_try_echo=$ac_try;;
3088 esac
3089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090 $as_echo "$ac_try_echo"; } >&5
3091   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3092   ac_status=$?
3093   if test -s conftest.err; then
3094     sed '10a\
3095 ... rest of stderr output deleted ...
3096          10q' conftest.err >conftest.er1
3097     cat conftest.er1 >&5
3098     rm -f conftest.er1 conftest.err
3099   fi
3100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101   test $ac_status = 0; }
3102 done
3103
3104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3105 /* end confdefs.h.  */
3106
3107 int
3108 main ()
3109 {
3110
3111   ;
3112   return 0;
3113 }
3114 _ACEOF
3115 ac_clean_files_save=$ac_clean_files
3116 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3117 # Try to create an executable without -o first, disregard a.out.
3118 # It will help us diagnose broken compilers, and finding out an intuition
3119 # of exeext.
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3121 $as_echo_n "checking for C compiler default output file name... " >&6; }
3122 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123
3124 # The possible output files:
3125 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126
3127 ac_rmfiles=
3128 for ac_file in $ac_files
3129 do
3130   case $ac_file in
3131     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3132     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133   esac
3134 done
3135 rm -f $ac_rmfiles
3136
3137 if { { ac_try="$ac_link_default"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144   (eval "$ac_link_default") 2>&5
3145   ac_status=$?
3146   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147   test $ac_status = 0; }; then :
3148   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3151 # so that the user can short-circuit this test for compilers unknown to
3152 # Autoconf.
3153 for ac_file in $ac_files ''
3154 do
3155   test -f "$ac_file" || continue
3156   case $ac_file in
3157     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3158         ;;
3159     [ab].out )
3160         # We found the default executable, but exeext='' is most
3161         # certainly right.
3162         break;;
3163     *.* )
3164         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3165         then :; else
3166            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167         fi
3168         # We set ac_cv_exeext here because the later test for it is not
3169         # safe: cross compilers may not add the suffix if given an `-o'
3170         # argument, so we may need to know it at that point already.
3171         # Even if this section looks crufty: it has the advantage of
3172         # actually working.
3173         break;;
3174     * )
3175         break;;
3176   esac
3177 done
3178 test "$ac_cv_exeext" = no && ac_cv_exeext=
3179
3180 else
3181   ac_file=''
3182 fi
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184 $as_echo "$ac_file" >&6; }
3185 if test -z "$ac_file"; then :
3186   $as_echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3191 { as_fn_set_status 77
3192 as_fn_error "C compiler cannot create executables
3193 See \`config.log' for more details." "$LINENO" 5; }; }
3194 fi
3195 ac_exeext=$ac_cv_exeext
3196
3197 # Check that the compiler produces executables we can run.  If not, either
3198 # the compiler is broken, or we cross compile.
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3200 $as_echo_n "checking whether the C compiler works... " >&6; }
3201 # If not cross compiling, check that we can run a simple program.
3202 if test "$cross_compiling" != yes; then
3203   if { ac_try='./$ac_file'
3204   { { case "(($ac_try" in
3205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206   *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210   (eval "$ac_try") 2>&5
3211   ac_status=$?
3212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213   test $ac_status = 0; }; }; then
3214     cross_compiling=no
3215   else
3216     if test "$cross_compiling" = maybe; then
3217         cross_compiling=yes
3218     else
3219         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error "cannot run C compiled programs.
3222 If you meant to cross compile, use \`--host'.
3223 See \`config.log' for more details." "$LINENO" 5; }
3224     fi
3225   fi
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3229
3230 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3231 ac_clean_files=$ac_clean_files_save
3232 # Check that the compiler produces executables we can run.  If not, either
3233 # the compiler is broken, or we cross compile.
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3235 $as_echo_n "checking whether we are cross compiling... " >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3237 $as_echo "$cross_compiling" >&6; }
3238
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3240 $as_echo_n "checking for suffix of executables... " >&6; }
3241 if { { ac_try="$ac_link"
3242 case "(($ac_try" in
3243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244   *) ac_try_echo=$ac_try;;
3245 esac
3246 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3247 $as_echo "$ac_try_echo"; } >&5
3248   (eval "$ac_link") 2>&5
3249   ac_status=$?
3250   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3251   test $ac_status = 0; }; then :
3252   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3253 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3254 # work properly (i.e., refer to `conftest.exe'), while it won't with
3255 # `rm'.
3256 for ac_file in conftest.exe conftest conftest.*; do
3257   test -f "$ac_file" || continue
3258   case $ac_file in
3259     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3260     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3261           break;;
3262     * ) break;;
3263   esac
3264 done
3265 else
3266   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error "cannot compute suffix of executables: cannot compile and link
3269 See \`config.log' for more details." "$LINENO" 5; }
3270 fi
3271 rm -f conftest$ac_cv_exeext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3273 $as_echo "$ac_cv_exeext" >&6; }
3274
3275 rm -f conftest.$ac_ext
3276 EXEEXT=$ac_cv_exeext
3277 ac_exeext=$EXEEXT
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3279 $as_echo_n "checking for suffix of object files... " >&6; }
3280 if test "${ac_cv_objext+set}" = set; then :
3281   $as_echo_n "(cached) " >&6
3282 else
3283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3284 /* end confdefs.h.  */
3285
3286 int
3287 main ()
3288 {
3289
3290   ;
3291   return 0;
3292 }
3293 _ACEOF
3294 rm -f conftest.o conftest.obj
3295 if { { ac_try="$ac_compile"
3296 case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302   (eval "$ac_compile") 2>&5
3303   ac_status=$?
3304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305   test $ac_status = 0; }; then :
3306   for ac_file in conftest.o conftest.obj conftest.*; do
3307   test -f "$ac_file" || continue;
3308   case $ac_file in
3309     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3310     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3311        break;;
3312   esac
3313 done
3314 else
3315   $as_echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
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 "cannot compute suffix of object files: cannot compile
3321 See \`config.log' for more details." "$LINENO" 5; }
3322 fi
3323 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3324 fi
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3326 $as_echo "$ac_cv_objext" >&6; }
3327 OBJEXT=$ac_cv_objext
3328 ac_objext=$OBJEXT
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3330 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3331 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h.  */
3336
3337 int
3338 main ()
3339 {
3340 #ifndef __GNUC__
3341        choke me
3342 #endif
3343
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 if ac_fn_c_try_compile "$LINENO"; then :
3349   ac_compiler_gnu=yes
3350 else
3351   ac_compiler_gnu=no
3352 fi
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3355
3356 fi
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3358 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3359 if test $ac_compiler_gnu = yes; then
3360   GCC=yes
3361 else
3362   GCC=
3363 fi
3364 ac_test_CFLAGS=${CFLAGS+set}
3365 ac_save_CFLAGS=$CFLAGS
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3367 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3368 if test "${ac_cv_prog_cc_g+set}" = set; then :
3369   $as_echo_n "(cached) " >&6
3370 else
3371   ac_save_c_werror_flag=$ac_c_werror_flag
3372    ac_c_werror_flag=yes
3373    ac_cv_prog_cc_g=no
3374    CFLAGS="-g"
3375    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h.  */
3377
3378 int
3379 main ()
3380 {
3381
3382   ;
3383   return 0;
3384 }
3385 _ACEOF
3386 if ac_fn_c_try_compile "$LINENO"; then :
3387   ac_cv_prog_cc_g=yes
3388 else
3389   CFLAGS=""
3390       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3391 /* end confdefs.h.  */
3392
3393 int
3394 main ()
3395 {
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 if ac_fn_c_try_compile "$LINENO"; then :
3402
3403 else
3404   ac_c_werror_flag=$ac_save_c_werror_flag
3405          CFLAGS="-g"
3406          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h.  */
3408
3409 int
3410 main ()
3411 {
3412
3413   ;
3414   return 0;
3415 }
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3418   ac_cv_prog_cc_g=yes
3419 fi
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 fi
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 fi
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425    ac_c_werror_flag=$ac_save_c_werror_flag
3426 fi
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3428 $as_echo "$ac_cv_prog_cc_g" >&6; }
3429 if test "$ac_test_CFLAGS" = set; then
3430   CFLAGS=$ac_save_CFLAGS
3431 elif test $ac_cv_prog_cc_g = yes; then
3432   if test "$GCC" = yes; then
3433     CFLAGS="-g -O2"
3434   else
3435     CFLAGS="-g"
3436   fi
3437 else
3438   if test "$GCC" = yes; then
3439     CFLAGS="-O2"
3440   else
3441     CFLAGS=
3442   fi
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3445 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3446 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   ac_cv_prog_cc_c89=no
3450 ac_save_CC=$CC
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h.  */
3453 #include <stdarg.h>
3454 #include <stdio.h>
3455 #include <sys/types.h>
3456 #include <sys/stat.h>
3457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3458 struct buf { int x; };
3459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3460 static char *e (p, i)
3461      char **p;
3462      int i;
3463 {
3464   return p[i];
3465 }
3466 static char *f (char * (*g) (char **, int), char **p, ...)
3467 {
3468   char *s;
3469   va_list v;
3470   va_start (v,p);
3471   s = g (p, va_arg (v,int));
3472   va_end (v);
3473   return s;
3474 }
3475
3476 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3477    function prototypes and stuff, but not '\xHH' hex character constants.
3478    These don't provoke an error unfortunately, instead are silently treated
3479    as 'x'.  The following induces an error, until -std is added to get
3480    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3481    array size at least.  It's necessary to write '\x00'==0 to get something
3482    that's true only with -std.  */
3483 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3484
3485 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3486    inside strings and character constants.  */
3487 #define FOO(x) 'x'
3488 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3489
3490 int test (int i, double x);
3491 struct s1 {int (*f) (int a);};
3492 struct s2 {int (*f) (double a);};
3493 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3494 int argc;
3495 char **argv;
3496 int
3497 main ()
3498 {
3499 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3500   ;
3501   return 0;
3502 }
3503 _ACEOF
3504 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3505         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3506 do
3507   CC="$ac_save_CC $ac_arg"
3508   if ac_fn_c_try_compile "$LINENO"; then :
3509   ac_cv_prog_cc_c89=$ac_arg
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext
3512   test "x$ac_cv_prog_cc_c89" != "xno" && break
3513 done
3514 rm -f conftest.$ac_ext
3515 CC=$ac_save_CC
3516
3517 fi
3518 # AC_CACHE_VAL
3519 case "x$ac_cv_prog_cc_c89" in
3520   x)
3521     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3522 $as_echo "none needed" >&6; } ;;
3523   xno)
3524     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3525 $as_echo "unsupported" >&6; } ;;
3526   *)
3527     CC="$CC $ac_cv_prog_cc_c89"
3528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3529 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3530 esac
3531 if test "x$ac_cv_prog_cc_c89" != xno; then :
3532
3533 fi
3534
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540
3541 ac_ext=cpp
3542 ac_cpp='$CXXCPP $CPPFLAGS'
3543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3546 if test -z "$CXX"; then
3547   if test -n "$CCC"; then
3548     CXX=$CCC
3549   else
3550     if test -n "$ac_tool_prefix"; then
3551   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3552   do
3553     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3556 $as_echo_n "checking for $ac_word... " >&6; }
3557 if test "${ac_cv_prog_CXX+set}" = set; then :
3558   $as_echo_n "(cached) " >&6
3559 else
3560   if test -n "$CXX"; then
3561   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3562 else
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH
3565 do
3566   IFS=$as_save_IFS
3567   test -z "$as_dir" && as_dir=.
3568     for ac_exec_ext in '' $ac_executable_extensions; do
3569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3570     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572     break 2
3573   fi
3574 done
3575   done
3576 IFS=$as_save_IFS
3577
3578 fi
3579 fi
3580 CXX=$ac_cv_prog_CXX
3581 if test -n "$CXX"; then
3582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3583 $as_echo "$CXX" >&6; }
3584 else
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586 $as_echo "no" >&6; }
3587 fi
3588
3589
3590     test -n "$CXX" && break
3591   done
3592 fi
3593 if test -z "$CXX"; then
3594   ac_ct_CXX=$CXX
3595   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3596 do
3597   # Extract the first word of "$ac_prog", so it can be a program name with args.
3598 set dummy $ac_prog; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3602   $as_echo_n "(cached) " >&6
3603 else
3604   if test -n "$ac_ct_CXX"; then
3605   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3606 else
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612     for ac_exec_ext in '' $ac_executable_extensions; do
3613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614     ac_cv_prog_ac_ct_CXX="$ac_prog"
3615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616     break 2
3617   fi
3618 done
3619   done
3620 IFS=$as_save_IFS
3621
3622 fi
3623 fi
3624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3625 if test -n "$ac_ct_CXX"; then
3626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3627 $as_echo "$ac_ct_CXX" >&6; }
3628 else
3629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3631 fi
3632
3633
3634   test -n "$ac_ct_CXX" && break
3635 done
3636
3637   if test "x$ac_ct_CXX" = x; then
3638     CXX="g++"
3639   else
3640     case $cross_compiling:$ac_tool_warned in
3641 yes:)
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3644 ac_tool_warned=yes ;;
3645 esac
3646     CXX=$ac_ct_CXX
3647   fi
3648 fi
3649
3650   fi
3651 fi
3652 # Provide some information about the compiler.
3653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3654 set X $ac_compile
3655 ac_compiler=$2
3656 for ac_option in --version -v -V -qversion; do
3657   { { ac_try="$ac_compiler $ac_option >&5"
3658 case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663 $as_echo "$ac_try_echo"; } >&5
3664   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3665   ac_status=$?
3666   if test -s conftest.err; then
3667     sed '10a\
3668 ... rest of stderr output deleted ...
3669          10q' conftest.err >conftest.er1
3670     cat conftest.er1 >&5
3671     rm -f conftest.er1 conftest.err
3672   fi
3673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674   test $ac_status = 0; }
3675 done
3676
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3678 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h.  */
3684
3685 int
3686 main ()
3687 {
3688 #ifndef __GNUC__
3689        choke me
3690 #endif
3691
3692   ;
3693   return 0;
3694 }
3695 _ACEOF
3696 if ac_fn_cxx_try_compile "$LINENO"; then :
3697   ac_compiler_gnu=yes
3698 else
3699   ac_compiler_gnu=no
3700 fi
3701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3703
3704 fi
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3706 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3707 if test $ac_compiler_gnu = yes; then
3708   GXX=yes
3709 else
3710   GXX=
3711 fi
3712 ac_test_CXXFLAGS=${CXXFLAGS+set}
3713 ac_save_CXXFLAGS=$CXXFLAGS
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3715 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3716 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3717   $as_echo_n "(cached) " >&6
3718 else
3719   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3720    ac_cxx_werror_flag=yes
3721    ac_cv_prog_cxx_g=no
3722    CXXFLAGS="-g"
3723    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h.  */
3725
3726 int
3727 main ()
3728 {
3729
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_cxx_try_compile "$LINENO"; then :
3735   ac_cv_prog_cxx_g=yes
3736 else
3737   CXXFLAGS=""
3738       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h.  */
3740
3741 int
3742 main ()
3743 {
3744
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_cxx_try_compile "$LINENO"; then :
3750
3751 else
3752   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3753          CXXFLAGS="-g"
3754          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h.  */
3756
3757 int
3758 main ()
3759 {
3760
3761   ;
3762   return 0;
3763 }
3764 _ACEOF
3765 if ac_fn_cxx_try_compile "$LINENO"; then :
3766   ac_cv_prog_cxx_g=yes
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 fi
3770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771 fi
3772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3777 if test "$ac_test_CXXFLAGS" = set; then
3778   CXXFLAGS=$ac_save_CXXFLAGS
3779 elif test $ac_cv_prog_cxx_g = yes; then
3780   if test "$GXX" = yes; then
3781     CXXFLAGS="-g -O2"
3782   else
3783     CXXFLAGS="-g"
3784   fi
3785 else
3786   if test "$GXX" = yes; then
3787     CXXFLAGS="-O2"
3788   else
3789     CXXFLAGS=
3790   fi
3791 fi
3792 ac_ext=c
3793 ac_cpp='$CPP $CPPFLAGS'
3794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797
3798
3799
3800 ac_ext=c
3801 ac_cpp='$CPP $CPPFLAGS'
3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3806 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3807 # On Suns, sometimes $CPP names a directory.
3808 if test -n "$CPP" && test -d "$CPP"; then
3809   CPP=
3810 fi
3811 if test -z "$CPP"; then
3812   if test "${ac_cv_prog_CPP+set}" = set; then :
3813   $as_echo_n "(cached) " >&6
3814 else
3815       # Double quotes because CPP needs to be expanded
3816     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3817     do
3818       ac_preproc_ok=false
3819 for ac_c_preproc_warn_flag in '' yes
3820 do
3821   # Use a header file that comes with gcc, so configuring glibc
3822   # with a fresh cross-compiler works.
3823   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3824   # <limits.h> exists even on freestanding compilers.
3825   # On the NeXT, cc -E runs the code through the compiler's parser,
3826   # not just through cpp. "Syntax error" is here to catch this case.
3827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h.  */
3829 #ifdef __STDC__
3830 # include <limits.h>
3831 #else
3832 # include <assert.h>
3833 #endif
3834                      Syntax error
3835 _ACEOF
3836 if ac_fn_c_try_cpp "$LINENO"; then :
3837
3838 else
3839   # Broken: fails on valid input.
3840 continue
3841 fi
3842 rm -f conftest.err conftest.$ac_ext
3843
3844   # OK, works on sane cases.  Now check whether nonexistent headers
3845   # can be detected and how.
3846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h.  */
3848 #include <ac_nonexistent.h>
3849 _ACEOF
3850 if ac_fn_c_try_cpp "$LINENO"; then :
3851   # Broken: success on invalid input.
3852 continue
3853 else
3854   # Passes both tests.
3855 ac_preproc_ok=:
3856 break
3857 fi
3858 rm -f conftest.err conftest.$ac_ext
3859
3860 done
3861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3862 rm -f conftest.err conftest.$ac_ext
3863 if $ac_preproc_ok; then :
3864   break
3865 fi
3866
3867     done
3868     ac_cv_prog_CPP=$CPP
3869
3870 fi
3871   CPP=$ac_cv_prog_CPP
3872 else
3873   ac_cv_prog_CPP=$CPP
3874 fi
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3876 $as_echo "$CPP" >&6; }
3877 ac_preproc_ok=false
3878 for ac_c_preproc_warn_flag in '' yes
3879 do
3880   # Use a header file that comes with gcc, so configuring glibc
3881   # with a fresh cross-compiler works.
3882   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3883   # <limits.h> exists even on freestanding compilers.
3884   # On the NeXT, cc -E runs the code through the compiler's parser,
3885   # not just through cpp. "Syntax error" is here to catch this case.
3886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3888 #ifdef __STDC__
3889 # include <limits.h>
3890 #else
3891 # include <assert.h>
3892 #endif
3893                      Syntax error
3894 _ACEOF
3895 if ac_fn_c_try_cpp "$LINENO"; then :
3896
3897 else
3898   # Broken: fails on valid input.
3899 continue
3900 fi
3901 rm -f conftest.err conftest.$ac_ext
3902
3903   # OK, works on sane cases.  Now check whether nonexistent headers
3904   # can be detected and how.
3905   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h.  */
3907 #include <ac_nonexistent.h>
3908 _ACEOF
3909 if ac_fn_c_try_cpp "$LINENO"; then :
3910   # Broken: success on invalid input.
3911 continue
3912 else
3913   # Passes both tests.
3914 ac_preproc_ok=:
3915 break
3916 fi
3917 rm -f conftest.err conftest.$ac_ext
3918
3919 done
3920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3921 rm -f conftest.err conftest.$ac_ext
3922 if $ac_preproc_ok; then :
3923
3924 else
3925   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3928 See \`config.log' for more details." "$LINENO" 5; }
3929 fi
3930
3931 ac_ext=c
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3939 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3940 if test "${ac_cv_path_GREP+set}" = set; then :
3941   $as_echo_n "(cached) " >&6
3942 else
3943   if test -z "$GREP"; then
3944   ac_path_GREP_found=false
3945   # Loop through the user's path and test for each of PROGNAME-LIST
3946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948 do
3949   IFS=$as_save_IFS
3950   test -z "$as_dir" && as_dir=.
3951     for ac_prog in grep ggrep; do
3952     for ac_exec_ext in '' $ac_executable_extensions; do
3953       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3954       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3955 # Check for GNU ac_path_GREP and select it if it is found.
3956   # Check for GNU $ac_path_GREP
3957 case `"$ac_path_GREP" --version 2>&1` in
3958 *GNU*)
3959   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3960 *)
3961   ac_count=0
3962   $as_echo_n 0123456789 >"conftest.in"
3963   while :
3964   do
3965     cat "conftest.in" "conftest.in" >"conftest.tmp"
3966     mv "conftest.tmp" "conftest.in"
3967     cp "conftest.in" "conftest.nl"
3968     $as_echo 'GREP' >> "conftest.nl"
3969     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3970     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3971     as_fn_arith $ac_count + 1 && ac_count=$as_val
3972     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3973       # Best one so far, save it but keep looking for a better one
3974       ac_cv_path_GREP="$ac_path_GREP"
3975       ac_path_GREP_max=$ac_count
3976     fi
3977     # 10*(2^10) chars as input seems more than enough
3978     test $ac_count -gt 10 && break
3979   done
3980   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981 esac
3982
3983       $ac_path_GREP_found && break 3
3984     done
3985   done
3986   done
3987 IFS=$as_save_IFS
3988   if test -z "$ac_cv_path_GREP"; then
3989     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3990   fi
3991 else
3992   ac_cv_path_GREP=$GREP
3993 fi
3994
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3997 $as_echo "$ac_cv_path_GREP" >&6; }
3998  GREP="$ac_cv_path_GREP"
3999
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4002 $as_echo_n "checking for egrep... " >&6; }
4003 if test "${ac_cv_path_EGREP+set}" = set; then :
4004   $as_echo_n "(cached) " >&6
4005 else
4006   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4007    then ac_cv_path_EGREP="$GREP -E"
4008    else
4009      if test -z "$EGREP"; then
4010   ac_path_EGREP_found=false
4011   # Loop through the user's path and test for each of PROGNAME-LIST
4012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017     for ac_prog in egrep; do
4018     for ac_exec_ext in '' $ac_executable_extensions; do
4019       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4020       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4021 # Check for GNU ac_path_EGREP and select it if it is found.
4022   # Check for GNU $ac_path_EGREP
4023 case `"$ac_path_EGREP" --version 2>&1` in
4024 *GNU*)
4025   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4026 *)
4027   ac_count=0
4028   $as_echo_n 0123456789 >"conftest.in"
4029   while :
4030   do
4031     cat "conftest.in" "conftest.in" >"conftest.tmp"
4032     mv "conftest.tmp" "conftest.in"
4033     cp "conftest.in" "conftest.nl"
4034     $as_echo 'EGREP' >> "conftest.nl"
4035     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4036     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4037     as_fn_arith $ac_count + 1 && ac_count=$as_val
4038     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4039       # Best one so far, save it but keep looking for a better one
4040       ac_cv_path_EGREP="$ac_path_EGREP"
4041       ac_path_EGREP_max=$ac_count
4042     fi
4043     # 10*(2^10) chars as input seems more than enough
4044     test $ac_count -gt 10 && break
4045   done
4046   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4047 esac
4048
4049       $ac_path_EGREP_found && break 3
4050     done
4051   done
4052   done
4053 IFS=$as_save_IFS
4054   if test -z "$ac_cv_path_EGREP"; then
4055     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4056   fi
4057 else
4058   ac_cv_path_EGREP=$EGREP
4059 fi
4060
4061    fi
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4064 $as_echo "$ac_cv_path_EGREP" >&6; }
4065  EGREP="$ac_cv_path_EGREP"
4066
4067
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4069 $as_echo_n "checking for ANSI C header files... " >&6; }
4070 if test "${ac_cv_header_stdc+set}" = set; then :
4071   $as_echo_n "(cached) " >&6
4072 else
4073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h.  */
4075 #include <stdlib.h>
4076 #include <stdarg.h>
4077 #include <string.h>
4078 #include <float.h>
4079
4080 int
4081 main ()
4082 {
4083
4084   ;
4085   return 0;
4086 }
4087 _ACEOF
4088 if ac_fn_c_try_compile "$LINENO"; then :
4089   ac_cv_header_stdc=yes
4090 else
4091   ac_cv_header_stdc=no
4092 fi
4093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4094
4095 if test $ac_cv_header_stdc = yes; then
4096   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h.  */
4099 #include <string.h>
4100
4101 _ACEOF
4102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4103   $EGREP "memchr" >/dev/null 2>&1; then :
4104
4105 else
4106   ac_cv_header_stdc=no
4107 fi
4108 rm -f conftest*
4109
4110 fi
4111
4112 if test $ac_cv_header_stdc = yes; then
4113   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h.  */
4116 #include <stdlib.h>
4117
4118 _ACEOF
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120   $EGREP "free" >/dev/null 2>&1; then :
4121
4122 else
4123   ac_cv_header_stdc=no
4124 fi
4125 rm -f conftest*
4126
4127 fi
4128
4129 if test $ac_cv_header_stdc = yes; then
4130   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4131   if test "$cross_compiling" = yes; then :
4132   :
4133 else
4134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h.  */
4136 #include <ctype.h>
4137 #include <stdlib.h>
4138 #if ((' ' & 0x0FF) == 0x020)
4139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4141 #else
4142 # define ISLOWER(c) \
4143                    (('a' <= (c) && (c) <= 'i') \
4144                      || ('j' <= (c) && (c) <= 'r') \
4145                      || ('s' <= (c) && (c) <= 'z'))
4146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4147 #endif
4148
4149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4150 int
4151 main ()
4152 {
4153   int i;
4154   for (i = 0; i < 256; i++)
4155     if (XOR (islower (i), ISLOWER (i))
4156         || toupper (i) != TOUPPER (i))
4157       return 2;
4158   return 0;
4159 }
4160 _ACEOF
4161 if ac_fn_c_try_run "$LINENO"; then :
4162
4163 else
4164   ac_cv_header_stdc=no
4165 fi
4166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4167   conftest.$ac_objext conftest.beam conftest.$ac_ext
4168 fi
4169
4170 fi
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4173 $as_echo "$ac_cv_header_stdc" >&6; }
4174 if test $ac_cv_header_stdc = yes; then
4175
4176 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4177
4178 fi
4179
4180 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4181 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4182                   inttypes.h stdint.h unistd.h
4183 do :
4184   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4185 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4186 "
4187 eval as_val=\$$as_ac_Header
4188    if test "x$as_val" = x""yes; then :
4189   cat >>confdefs.h <<_ACEOF
4190 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4191 _ACEOF
4192
4193 fi
4194
4195 done
4196
4197
4198
4199   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4200 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4201   MINIX=yes
4202 else
4203   MINIX=
4204 fi
4205
4206
4207   if test "$MINIX" = yes; then
4208
4209 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4210
4211
4212 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4213
4214
4215 $as_echo "#define _MINIX 1" >>confdefs.h
4216
4217   fi
4218
4219
4220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4221 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4222 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h.  */
4227
4228 #         define __EXTENSIONS__ 1
4229           $ac_includes_default
4230 int
4231 main ()
4232 {
4233
4234   ;
4235   return 0;
4236 }
4237 _ACEOF
4238 if ac_fn_c_try_compile "$LINENO"; then :
4239   ac_cv_safe_to_define___extensions__=yes
4240 else
4241   ac_cv_safe_to_define___extensions__=no
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4246 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4247   test $ac_cv_safe_to_define___extensions__ = yes &&
4248     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4249
4250   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4251
4252   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4253
4254   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4255
4256   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4257
4258
4259 ac_aux_dir=
4260 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4261   for ac_t in install-sh install.sh shtool; do
4262     if test -f "$ac_dir/$ac_t"; then
4263       ac_aux_dir=$ac_dir
4264       ac_install_sh="$ac_aux_dir/$ac_t -c"
4265       break 2
4266     fi
4267   done
4268 done
4269 if test -z "$ac_aux_dir"; then
4270   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4271 fi
4272
4273 # These three variables are undocumented and unsupported,
4274 # and are intended to be withdrawn in a future Autoconf release.
4275 # They can cause serious problems if a builder's source tree is in a directory
4276 # whose full name contains unusual characters.
4277 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4278 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4279 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4280
4281
4282 # Make sure we can run config.sub.
4283 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4284   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4287 $as_echo_n "checking build system type... " >&6; }
4288 if test "${ac_cv_build+set}" = set; then :
4289   $as_echo_n "(cached) " >&6
4290 else
4291   ac_build_alias=$build_alias
4292 test "x$ac_build_alias" = x &&
4293   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4294 test "x$ac_build_alias" = x &&
4295   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4296 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4297   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4298
4299 fi
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4301 $as_echo "$ac_cv_build" >&6; }
4302 case $ac_cv_build in
4303 *-*-*) ;;
4304 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4305 esac
4306 build=$ac_cv_build
4307 ac_save_IFS=$IFS; IFS='-'
4308 set x $ac_cv_build
4309 shift
4310 build_cpu=$1
4311 build_vendor=$2
4312 shift; shift
4313 # Remember, the first character of IFS is used to create $*,
4314 # except with old shells:
4315 build_os=$*
4316 IFS=$ac_save_IFS
4317 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4318
4319
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4321 $as_echo_n "checking host system type... " >&6; }
4322 if test "${ac_cv_host+set}" = set; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   if test "x$host_alias" = x; then
4326   ac_cv_host=$ac_cv_build
4327 else
4328   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4329     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4330 fi
4331
4332 fi
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4334 $as_echo "$ac_cv_host" >&6; }
4335 case $ac_cv_host in
4336 *-*-*) ;;
4337 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4338 esac
4339 host=$ac_cv_host
4340 ac_save_IFS=$IFS; IFS='-'
4341 set x $ac_cv_host
4342 shift
4343 host_cpu=$1
4344 host_vendor=$2
4345 shift; shift
4346 # Remember, the first character of IFS is used to create $*,
4347 # except with old shells:
4348 host_os=$*
4349 IFS=$ac_save_IFS
4350 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4351
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4354 $as_echo_n "checking target system type... " >&6; }
4355 if test "${ac_cv_target+set}" = set; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   if test "x$target_alias" = x; then
4359   ac_cv_target=$ac_cv_host
4360 else
4361   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4362     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4363 fi
4364
4365 fi
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4367 $as_echo "$ac_cv_target" >&6; }
4368 case $ac_cv_target in
4369 *-*-*) ;;
4370 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4371 esac
4372 target=$ac_cv_target
4373 ac_save_IFS=$IFS; IFS='-'
4374 set x $ac_cv_target
4375 shift
4376 target_cpu=$1
4377 target_vendor=$2
4378 shift; shift
4379 # Remember, the first character of IFS is used to create $*,
4380 # except with old shells:
4381 target_os=$*
4382 IFS=$ac_save_IFS
4383 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4384
4385
4386 # The aliases save the names the user supplied, while $host etc.
4387 # will get canonicalized.
4388 test -n "$target_alias" &&
4389   test "$program_prefix$program_suffix$program_transform_name" = \
4390     NONENONEs,x,x, &&
4391   program_prefix=${target_alias}-
4392
4393 # The tests for host and target for $enable_largefile require
4394 # canonical names.
4395
4396
4397
4398 # As the $enable_largefile decision depends on --enable-plugins we must set it
4399 # even in directories otherwise not depending on the $plugins option.
4400
4401
4402   maybe_plugins=no
4403   for ac_header in dlfcn.h
4404 do :
4405   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4406 "
4407 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
4408   cat >>confdefs.h <<_ACEOF
4409 #define HAVE_DLFCN_H 1
4410 _ACEOF
4411  maybe_plugins=yes
4412 fi
4413
4414 done
4415
4416   for ac_header in windows.h
4417 do :
4418   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4419 "
4420 if test "x$ac_cv_header_windows_h" = x""yes; then :
4421   cat >>confdefs.h <<_ACEOF
4422 #define HAVE_WINDOWS_H 1
4423 _ACEOF
4424  maybe_plugins=yes
4425 fi
4426
4427 done
4428
4429
4430   # Check whether --enable-plugins was given.
4431 if test "${enable_plugins+set}" = set; then :
4432   enableval=$enable_plugins; case "${enableval}" in
4433       no) plugins=no ;;
4434       *) plugins=yes
4435          if test "$maybe_plugins" != "yes" ; then
4436            as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4437          fi ;;
4438      esac
4439 else
4440   plugins=$maybe_plugins
4441
4442 fi
4443
4444   if test "$plugins" = "yes"; then
4445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
4446 $as_echo_n "checking for library containing dlopen... " >&6; }
4447 if test "${ac_cv_search_dlopen+set}" = set; then :
4448   $as_echo_n "(cached) " >&6
4449 else
4450   ac_func_search_save_LIBS=$LIBS
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h.  */
4453
4454 /* Override any GCC internal prototype to avoid an error.
4455    Use char because int might match the return type of a GCC
4456    builtin and then its argument prototype would still apply.  */
4457 #ifdef __cplusplus
4458 extern "C"
4459 #endif
4460 char dlopen ();
4461 int
4462 main ()
4463 {
4464 return dlopen ();
4465   ;
4466   return 0;
4467 }
4468 _ACEOF
4469 for ac_lib in '' dl; do
4470   if test -z "$ac_lib"; then
4471     ac_res="none required"
4472   else
4473     ac_res=-l$ac_lib
4474     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4475   fi
4476   if ac_fn_c_try_link "$LINENO"; then :
4477   ac_cv_search_dlopen=$ac_res
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext \
4480     conftest$ac_exeext
4481   if test "${ac_cv_search_dlopen+set}" = set; then :
4482   break
4483 fi
4484 done
4485 if test "${ac_cv_search_dlopen+set}" = set; then :
4486
4487 else
4488   ac_cv_search_dlopen=no
4489 fi
4490 rm conftest.$ac_ext
4491 LIBS=$ac_func_search_save_LIBS
4492 fi
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
4494 $as_echo "$ac_cv_search_dlopen" >&6; }
4495 ac_res=$ac_cv_search_dlopen
4496 if test "$ac_res" != no; then :
4497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4498
4499 fi
4500
4501   fi
4502
4503
4504 case "${host}" in
4505   sparc-*-solaris*|i[3-7]86-*-solaris*)
4506     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4507     # are mutually exclusive; and without procfs support, the bfd/ elf module
4508     # cannot provide certain routines such as elfcore_write_prpsinfo
4509     # or elfcore_write_prstatus.  So unless the user explicitly requested
4510     # large-file support through the --enable-largefile switch, disable
4511     # large-file support in favor of procfs support.
4512     test "${target}" = "${host}" -a "x$plugins" = xno \
4513       && : ${enable_largefile="no"}
4514     ;;
4515 esac
4516
4517 # Check whether --enable-largefile was given.
4518 if test "${enable_largefile+set}" = set; then :
4519   enableval=$enable_largefile;
4520 fi
4521
4522 if test "$enable_largefile" != no; then
4523
4524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4525 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4526 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4527   $as_echo_n "(cached) " >&6
4528 else
4529   ac_cv_sys_largefile_CC=no
4530      if test "$GCC" != yes; then
4531        ac_save_CC=$CC
4532        while :; do
4533          # IRIX 6.2 and later do not support large files by default,
4534          # so use the C compiler's -n32 option if that helps.
4535          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h.  */
4537 #include <sys/types.h>
4538  /* Check that off_t can represent 2**63 - 1 correctly.
4539     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4540     since some C++ compilers masquerading as C compilers
4541     incorrectly reject 9223372036854775807.  */
4542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4543   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4544                        && LARGE_OFF_T % 2147483647 == 1)
4545                       ? 1 : -1];
4546 int
4547 main ()
4548 {
4549
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554          if ac_fn_c_try_compile "$LINENO"; then :
4555   break
4556 fi
4557 rm -f core conftest.err conftest.$ac_objext
4558          CC="$CC -n32"
4559          if ac_fn_c_try_compile "$LINENO"; then :
4560   ac_cv_sys_largefile_CC=' -n32'; break
4561 fi
4562 rm -f core conftest.err conftest.$ac_objext
4563          break
4564        done
4565        CC=$ac_save_CC
4566        rm -f conftest.$ac_ext
4567     fi
4568 fi
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4570 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4571   if test "$ac_cv_sys_largefile_CC" != no; then
4572     CC=$CC$ac_cv_sys_largefile_CC
4573   fi
4574
4575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4576 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4577 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4578   $as_echo_n "(cached) " >&6
4579 else
4580   while :; do
4581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583 #include <sys/types.h>
4584  /* Check that off_t can represent 2**63 - 1 correctly.
4585     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4586     since some C++ compilers masquerading as C compilers
4587     incorrectly reject 9223372036854775807.  */
4588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4589   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4590                        && LARGE_OFF_T % 2147483647 == 1)
4591                       ? 1 : -1];
4592 int
4593 main ()
4594 {
4595
4596   ;
4597   return 0;
4598 }
4599 _ACEOF
4600 if ac_fn_c_try_compile "$LINENO"; then :
4601   ac_cv_sys_file_offset_bits=no; break
4602 fi
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606 #define _FILE_OFFSET_BITS 64
4607 #include <sys/types.h>
4608  /* Check that off_t can represent 2**63 - 1 correctly.
4609     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4610     since some C++ compilers masquerading as C compilers
4611     incorrectly reject 9223372036854775807.  */
4612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4613   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4614                        && LARGE_OFF_T % 2147483647 == 1)
4615                       ? 1 : -1];
4616 int
4617 main ()
4618 {
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 if ac_fn_c_try_compile "$LINENO"; then :
4625   ac_cv_sys_file_offset_bits=64; break
4626 fi
4627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4628   ac_cv_sys_file_offset_bits=unknown
4629   break
4630 done
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4633 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4634 case $ac_cv_sys_file_offset_bits in #(
4635   no | unknown) ;;
4636   *)
4637 cat >>confdefs.h <<_ACEOF
4638 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4639 _ACEOF
4640 ;;
4641 esac
4642 rm -rf conftest*
4643   if test $ac_cv_sys_file_offset_bits = unknown; then
4644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4645 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4646 if test "${ac_cv_sys_large_files+set}" = set; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   while :; do
4650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h.  */
4652 #include <sys/types.h>
4653  /* Check that off_t can represent 2**63 - 1 correctly.
4654     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4655     since some C++ compilers masquerading as C compilers
4656     incorrectly reject 9223372036854775807.  */
4657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4658   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4659                        && LARGE_OFF_T % 2147483647 == 1)
4660                       ? 1 : -1];
4661 int
4662 main ()
4663 {
4664
4665   ;
4666   return 0;
4667 }
4668 _ACEOF
4669 if ac_fn_c_try_compile "$LINENO"; then :
4670   ac_cv_sys_large_files=no; break
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h.  */
4675 #define _LARGE_FILES 1
4676 #include <sys/types.h>
4677  /* Check that off_t can represent 2**63 - 1 correctly.
4678     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4679     since some C++ compilers masquerading as C compilers
4680     incorrectly reject 9223372036854775807.  */
4681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4682   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4683                        && LARGE_OFF_T % 2147483647 == 1)
4684                       ? 1 : -1];
4685 int
4686 main ()
4687 {
4688
4689   ;
4690   return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_compile "$LINENO"; then :
4694   ac_cv_sys_large_files=1; break
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4697   ac_cv_sys_large_files=unknown
4698   break
4699 done
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4702 $as_echo "$ac_cv_sys_large_files" >&6; }
4703 case $ac_cv_sys_large_files in #(
4704   no | unknown) ;;
4705   *)
4706 cat >>confdefs.h <<_ACEOF
4707 #define _LARGE_FILES $ac_cv_sys_large_files
4708 _ACEOF
4709 ;;
4710 esac
4711 rm -rf conftest*
4712   fi
4713 fi
4714
4715
4716
4717
4718
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4720 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4721 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4722   $as_echo_n "(cached) " >&6
4723 else
4724   am_cv_prog_cc_stdc=no
4725 ac_save_CC="$CC"
4726 # Don't try gcc -ansi; that turns off useful extensions and
4727 # breaks some systems' header files.
4728 # AIX                   -qlanglvl=ansi
4729 # Ultrix and OSF/1      -std1
4730 # HP-UX 10.20 and later -Ae
4731 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4732 # SVR4                  -Xc -D__EXTENSIONS__
4733 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4734 do
4735   CC="$ac_save_CC $ac_arg"
4736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h.  */
4738 #include <stdarg.h>
4739 #include <stdio.h>
4740 #include <sys/types.h>
4741 #include <sys/stat.h>
4742 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4743 struct buf { int x; };
4744 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4745 static char *e (p, i)
4746      char **p;
4747      int i;
4748 {
4749   return p[i];
4750 }
4751 static char *f (char * (*g) (char **, int), char **p, ...)
4752 {
4753   char *s;
4754   va_list v;
4755   va_start (v,p);
4756   s = g (p, va_arg (v,int));
4757   va_end (v);
4758   return s;
4759 }
4760 int test (int i, double x);
4761 struct s1 {int (*f) (int a);};
4762 struct s2 {int (*f) (double a);};
4763 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4764 int argc;
4765 char **argv;
4766
4767 int
4768 main ()
4769 {
4770
4771 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4772
4773   ;
4774   return 0;
4775 }
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778   am_cv_prog_cc_stdc="$ac_arg"; break
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 done
4782 CC="$ac_save_CC"
4783
4784 fi
4785
4786 if test -z "$am_cv_prog_cc_stdc"; then
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4788 $as_echo "none needed" >&6; }
4789 else
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4791 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4792 fi
4793 case "x$am_cv_prog_cc_stdc" in
4794   x|xno) ;;
4795   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4796 esac
4797
4798 # expand $ac_aux_dir to an absolute path
4799 am_aux_dir=`cd $ac_aux_dir && pwd`
4800
4801 if test x"${install_sh}" != xset; then
4802   case $am_aux_dir in
4803   *\ * | *\     *)
4804     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4805   *)
4806     install_sh="\${SHELL} $am_aux_dir/install-sh"
4807   esac
4808 fi
4809
4810 # Installed binaries are usually stripped using `strip' when the user
4811 # run `make install-strip'.  However `strip' might not be the right
4812 # tool to use in cross-compilation environments, therefore Automake
4813 # will honor the `STRIP' environment variable to overrule this program.
4814 if test "$cross_compiling" != no; then
4815   if test -n "$ac_tool_prefix"; then
4816   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}strip; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_STRIP+set}" = set; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   if test -n "$STRIP"; then
4824   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831     for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838   done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 STRIP=$ac_cv_prog_STRIP
4844 if test -n "$STRIP"; then
4845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4846 $as_echo "$STRIP" >&6; }
4847 else
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852
4853 fi
4854 if test -z "$ac_cv_prog_STRIP"; then
4855   ac_ct_STRIP=$STRIP
4856   # Extract the first word of "strip", so it can be a program name with args.
4857 set dummy strip; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   if test -n "$ac_ct_STRIP"; then
4864   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871     for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_prog_ac_ct_STRIP="strip"
4874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878   done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4884 if test -n "$ac_ct_STRIP"; then
4885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4886 $as_echo "$ac_ct_STRIP" >&6; }
4887 else
4888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4890 fi
4891
4892   if test "x$ac_ct_STRIP" = x; then
4893     STRIP=":"
4894   else
4895     case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4899 ac_tool_warned=yes ;;
4900 esac
4901     STRIP=$ac_ct_STRIP
4902   fi
4903 else
4904   STRIP="$ac_cv_prog_STRIP"
4905 fi
4906
4907 fi
4908 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4909
4910
4911 ac_aux_dir=
4912 for ac_dir in .. "$srcdir"/..; do
4913   for ac_t in install-sh install.sh shtool; do
4914     if test -f "$ac_dir/$ac_t"; then
4915       ac_aux_dir=$ac_dir
4916       ac_install_sh="$ac_aux_dir/$ac_t -c"
4917       break 2
4918     fi
4919   done
4920 done
4921 if test -z "$ac_aux_dir"; then
4922   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4923 fi
4924
4925 # These three variables are undocumented and unsupported,
4926 # and are intended to be withdrawn in a future Autoconf release.
4927 # They can cause serious problems if a builder's source tree is in a directory
4928 # whose full name contains unusual characters.
4929 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4930 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4931 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4932
4933
4934
4935 test "$program_prefix" != NONE &&
4936   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4937 # Use a double $ so make ignores it.
4938 test "$program_suffix" != NONE &&
4939   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4940 # Double any \ or $.
4941 # By default was `s,x,x', remove it if useless.
4942 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4943 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4944
4945
4946 # See if we are building with C++, and substitute COMPILER.
4947
4948   # Check whether --enable-build-with-cxx was given.
4949 if test "${enable_build_with_cxx+set}" = set; then :
4950   enableval=$enable_build_with_cxx; case $enableval in
4951       yes | no)
4952           ;;
4953       *)
4954           as_fn_error "bad value $enableval for --enable-build-with-cxx" "$LINENO" 5 ;;
4955     esac
4956 else
4957   enable_build_with_cxx=no
4958 fi
4959
4960
4961   if test "$enable_build_with_cxx" = "yes"; then
4962     # We're using -fpermissive as shortcut for now.
4963     COMPILER='$(CXX) -fpermissive'
4964    else
4965     COMPILER='$(CC)'
4966   fi
4967
4968
4969
4970 # Dependency checking.
4971 rm -rf .tst 2>/dev/null
4972 mkdir .tst 2>/dev/null
4973 if test -d .tst; then
4974   am__leading_dot=.
4975 else
4976   am__leading_dot=_
4977 fi
4978 rmdir .tst 2>/dev/null
4979
4980 DEPDIR="${am__leading_dot}deps"
4981
4982 ac_config_commands="$ac_config_commands depdir"
4983
4984
4985 depcc="$CC"   am_compiler_list=
4986
4987 am_depcomp=$ac_aux_dir/depcomp
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4989 $as_echo_n "checking dependency style of $depcc... " >&6; }
4990 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4991   $as_echo_n "(cached) " >&6
4992 else
4993   if test -f "$am_depcomp"; then
4994   # We make a subdir and do the tests there.  Otherwise we can end up
4995   # making bogus files that we don't know about and never remove.  For
4996   # instance it was reported that on HP-UX the gcc test will end up
4997   # making a dummy file named `D' -- because `-MD' means `put the output
4998   # in D'.
4999   mkdir conftest.dir
5000   # Copy depcomp to subdir because otherwise we won't find it if we're
5001   # using a relative directory.
5002   cp "$am_depcomp" conftest.dir
5003   cd conftest.dir
5004   # We will build objects and dependencies in a subdirectory because
5005   # it helps to detect inapplicable dependency modes.  For instance
5006   # both Tru64's cc and ICC support -MD to output dependencies as a
5007   # side effect of compilation, but ICC will put the dependencies in
5008   # the current directory while Tru64 will put them in the object
5009   # directory.
5010   mkdir sub
5011
5012   am_cv_CC_dependencies_compiler_type=none
5013   if test "$am_compiler_list" = ""; then
5014      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5015   fi
5016   for depmode in $am_compiler_list; do
5017     if test $depmode = none; then break; fi
5018
5019     $as_echo "$as_me:$LINENO: trying $depmode" >&5
5020     # Setup a source with many dependencies, because some compilers
5021     # like to wrap large dependency lists on column 80 (with \), and
5022     # we should not choose a depcomp mode which is confused by this.
5023     #
5024     # We need to recreate these files for each test, as the compiler may
5025     # overwrite some of them when testing with obscure command lines.
5026     # This happens at least with the AIX C compiler.
5027     : > sub/conftest.c
5028     for i in 1 2 3 4 5 6; do
5029       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5030       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5031       # Solaris 8's {/usr,}/bin/sh.
5032       touch sub/conftst$i.h
5033     done
5034     echo "include sub/conftest.Po" > confmf
5035
5036     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5037     # mode.  It turns out that the SunPro C++ compiler does not properly
5038     # handle `-M -o', and we need to detect this.
5039     depcmd="depmode=$depmode \
5040        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5041        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
5043     echo "| $depcmd" | sed -e 's/  */ /g' >&5
5044     if env $depcmd > conftest.err 2>&1 &&
5045        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
5046        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
5047        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
5048       # icc doesn't choke on unknown options, it will just issue warnings
5049       # or remarks (even with -Werror).  So we grep stderr for any message
5050       # that says an option was ignored or not supported.
5051       # When given -MP, icc 7.0 and 7.1 complain thusly:
5052       #   icc: Command line warning: ignoring option '-M'; no argument required
5053       # The diagnosis changed in icc 8.0:
5054       #   icc: Command line remark: option '-MP' not supported
5055       if (grep 'ignoring option' conftest.err ||
5056           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5057         am_cv_CC_dependencies_compiler_type=$depmode
5058         $as_echo "$as_me:$LINENO: success" >&5
5059         break
5060       fi
5061     fi
5062     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
5063     sed -e 's/^/| /' < conftest.err >&5
5064   done
5065
5066   cd ..
5067   rm -rf conftest.dir
5068 else
5069   am_cv_CC_dependencies_compiler_type=none
5070 fi
5071
5072 fi
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5074 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5075 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
5076 then as_fn_error "no usable dependency style found" "$LINENO" 5
5077 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5078
5079 fi
5080
5081
5082 # Check for the 'make' the user wants to use.
5083 for ac_prog in make
5084 do
5085   # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_MAKE+set}" = set; then :
5090   $as_echo_n "(cached) " >&6
5091 else
5092   if test -n "$MAKE"; then
5093   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098   IFS=$as_save_IFS
5099   test -z "$as_dir" && as_dir=.
5100     for ac_exec_ext in '' $ac_executable_extensions; do
5101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102     ac_cv_prog_MAKE="$ac_prog"
5103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104     break 2
5105   fi
5106 done
5107   done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 MAKE=$ac_cv_prog_MAKE
5113 if test -n "$MAKE"; then
5114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
5115 $as_echo "$MAKE" >&6; }
5116 else
5117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122   test -n "$MAKE" && break
5123 done
5124
5125 MAKE_IS_GNU=
5126 case "`$MAKE --version 2>&1 | sed 1q`" in
5127   *GNU*)
5128     MAKE_IS_GNU=yes
5129     ;;
5130 esac
5131  if test "$MAKE_IS_GNU" = yes; then
5132   GMAKE_TRUE=
5133   GMAKE_FALSE='#'
5134 else
5135   GMAKE_TRUE='#'
5136   GMAKE_FALSE=
5137 fi
5138
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5140 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5141 set x ${MAKE-make}
5142 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5143 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   cat >conftest.make <<\_ACEOF
5147 SHELL = /bin/sh
5148 all:
5149         @echo '@@@%%%=$(MAKE)=@@@%%%'
5150 _ACEOF
5151 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5152 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5153   *@@@%%%=?*=@@@%%%*)
5154     eval ac_cv_prog_make_${ac_make}_set=yes;;
5155   *)
5156     eval ac_cv_prog_make_${ac_make}_set=no;;
5157 esac
5158 rm -f conftest.make
5159 fi
5160 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5162 $as_echo "yes" >&6; }
5163   SET_MAKE=
5164 else
5165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5166 $as_echo "no" >&6; }
5167   SET_MAKE="MAKE=${MAKE-make}"
5168 fi
5169
5170
5171 gnulib_extra_configure_args=
5172 # If large-file support is disabled, make sure gnulib does the same.
5173 if test "$enable_largefile" = no; then
5174 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
5175 fi
5176
5177 # Configure gnulib.  We need to build gnulib under some other
5178 # directory not "gnulib", to avoid the problem of both GDB and
5179 # GDBserver wanting to build it in the same directory, when building
5180 # in the source dir.
5181
5182   in_src="gnulib"
5183   in_build="build-gnulib"
5184   in_extra_args="$gnulib_extra_configure_args"
5185
5186   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
5187   # so they do not pile up.
5188   ac_sub_configure_args=
5189   ac_prev=
5190   eval "set x $ac_configure_args"
5191   shift
5192   for ac_arg
5193   do
5194     if test -n "$ac_prev"; then
5195       ac_prev=
5196       continue
5197     fi
5198     case $ac_arg in
5199     -cache-file | --cache-file | --cache-fil | --cache-fi \
5200     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5201       ac_prev=cache_file ;;
5202     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5203     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
5204     | --c=*)
5205       ;;
5206     --config-cache | -C)
5207       ;;
5208     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5209       ac_prev=srcdir ;;
5210     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5211       ;;
5212     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
5213       ac_prev=prefix ;;
5214     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
5215       ;;
5216     --disable-option-checking)
5217       ;;
5218     *)
5219       case $ac_arg in
5220       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5221       esac
5222       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
5223     esac
5224   done
5225
5226   # Always prepend --prefix to ensure using the same prefix
5227   # in subdir configurations.
5228   ac_arg="--prefix=$prefix"
5229   case $ac_arg in
5230   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
5231   esac
5232   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
5233
5234   # Pass --silent
5235   if test "$silent" = yes; then
5236     ac_sub_configure_args="--silent $ac_sub_configure_args"
5237   fi
5238
5239   # Always prepend --disable-option-checking to silence warnings, since
5240   # different subdirs can have different --enable and --with options.
5241   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
5242
5243   ac_popdir=`pwd`
5244   ac_dir=$in_build
5245
5246   ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
5247   $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
5248   $as_echo "$ac_msg" >&6
5249   as_dir="$ac_dir"; as_fn_mkdir_p
5250
5251   case $srcdir in
5252   [\\/]* | ?:[\\/]* )
5253     ac_srcdir=$srcdir/$in_src ;;
5254   *) # Relative name.
5255     ac_srcdir=../$srcdir/$in_src ;;
5256   esac
5257
5258   cd "$ac_dir"
5259
5260   ac_sub_configure=$ac_srcdir/configure
5261
5262   # Make the cache file name correct relative to the subdirectory.
5263   case $cache_file in
5264   [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
5265   *) # Relative name.
5266     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
5267   esac
5268
5269   if test -n "$in_extra_args"; then
5270     # Add the extra args at the end.
5271     ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
5272   fi
5273
5274   { $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
5275 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
5276   # The eval makes quoting arguments work.
5277   eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
5278        --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
5279     as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
5280
5281   cd "$ac_popdir"
5282
5283
5284
5285 CONFIG_OBS=
5286 CONFIG_DEPS=
5287 CONFIG_SRCS=
5288 ENABLE_CFLAGS=
5289
5290 CONFIG_ALL=
5291 CONFIG_CLEAN=
5292 CONFIG_INSTALL=
5293 CONFIG_UNINSTALL=
5294
5295 # If we haven't got the data from the intl directory,
5296 # assume NLS is disabled.
5297 USE_NLS=no
5298 LIBINTL=
5299 LIBINTL_DEP=
5300 INCINTL=
5301 XGETTEXT=
5302 GMSGFMT=
5303 POSUB=
5304
5305 if test -f  ../intl/config.intl; then
5306   .  ../intl/config.intl
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5309 $as_echo_n "checking whether NLS is requested... " >&6; }
5310 if test x"$USE_NLS" != xyes; then
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 else
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5315 $as_echo "yes" >&6; }
5316
5317 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
5318
5319
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5321 $as_echo_n "checking for catalogs to be installed... " >&6; }
5322   # Look for .po and .gmo files in the source directory.
5323   CATALOGS=
5324   XLINGUAS=
5325   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
5326     # If there aren't any .gmo files the shell will give us the
5327     # literal string "../path/to/srcdir/po/*.gmo" which has to be
5328     # weeded out.
5329     case "$cat" in *\**)
5330       continue;;
5331     esac
5332     # The quadruple backslash is collapsed to a double backslash
5333     # by the backticks, then collapsed again by the double quotes,
5334     # leaving us with one backslash in the sed expression (right
5335     # before the dot that mustn't act as a wildcard).
5336     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
5337     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
5338     # The user is allowed to set LINGUAS to a list of languages to
5339     # install catalogs for.  If it's empty that means "all of them."
5340     if test "x$LINGUAS" = x; then
5341       CATALOGS="$CATALOGS $cat"
5342       XLINGUAS="$XLINGUAS $lang"
5343     else
5344       case "$LINGUAS" in *$lang*)
5345         CATALOGS="$CATALOGS $cat"
5346         XLINGUAS="$XLINGUAS $lang"
5347         ;;
5348       esac
5349     fi
5350   done
5351   LINGUAS="$XLINGUAS"
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5353 $as_echo "$LINGUAS" >&6; }
5354
5355
5356     DATADIRNAME=share
5357
5358   INSTOBJEXT=.mo
5359
5360   GENCAT=gencat
5361
5362   CATOBJEXT=.gmo
5363
5364 fi
5365
5366 localedir='${datadir}/locale'
5367
5368
5369 if test x"$USE_NLS" = xyes; then
5370    CONFIG_ALL="$CONFIG_ALL all-po"
5371    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
5372    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
5373    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
5374 fi
5375
5376 GNULIB=build-gnulib/import
5377
5378 # For Makefile dependencies.
5379 GNULIB_STDINT_H=
5380 if test x"$STDINT_H" != x; then
5381   GNULIB_STDINT_H=$GNULIB/$STDINT_H
5382 fi
5383
5384
5385 PACKAGE=gdb
5386
5387 cat >>confdefs.h <<_ACEOF
5388 #define PACKAGE "$PACKAGE"
5389 _ACEOF
5390
5391
5392
5393 # We never need to detect it in this sub-configure.
5394 # But preserve it for config.status --recheck.
5395
5396
5397
5398 MAKEINFO_EXTRA_FLAGS=""
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
5400 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
5401 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   echo '@clicksequence{a @click{} b}' >conftest.texinfo
5405   if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
5406     gdb_cv_have_makeinfo_click=yes
5407   else
5408     gdb_cv_have_makeinfo_click=no
5409   fi
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
5412 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
5413 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
5414   MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
5415 fi
5416
5417
5418
5419
5420 # Check whether --with-separate-debug-dir was given.
5421 if test "${with_separate_debug_dir+set}" = set; then :
5422   withval=$with_separate_debug_dir;
5423     DEBUGDIR=$withval
5424 else
5425   DEBUGDIR=${libdir}/debug
5426 fi
5427
5428
5429   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5430   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5431   ac_define_dir=`eval echo $DEBUGDIR`
5432   ac_define_dir=`eval echo $ac_define_dir`
5433
5434 cat >>confdefs.h <<_ACEOF
5435 #define DEBUGDIR "$ac_define_dir"
5436 _ACEOF
5437
5438
5439
5440
5441   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5442      if test "x$prefix" = xNONE; then
5443         test_prefix=/usr/local
5444      else
5445         test_prefix=$prefix
5446      fi
5447   else
5448      test_prefix=$exec_prefix
5449   fi
5450   value=0
5451   case ${ac_define_dir} in
5452      "${test_prefix}"|"${test_prefix}/"*|\
5453         '${exec_prefix}'|'${exec_prefix}/'*)
5454      value=1
5455      ;;
5456   esac
5457
5458 cat >>confdefs.h <<_ACEOF
5459 #define DEBUGDIR_RELOCATABLE $value
5460 _ACEOF
5461
5462
5463
5464
5465 # We can't pass paths as command line arguments.
5466 # Mingw32 tries to be clever and will convert the paths for us.
5467 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
5468 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
5469 # This breaks GDB's relocatable path conversions since paths passed in
5470 # config.h would not get so translated, the path prefixes no longer match.
5471
5472   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5473   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5474   ac_define_dir=`eval echo $bindir`
5475   ac_define_dir=`eval echo $ac_define_dir`
5476
5477 cat >>confdefs.h <<_ACEOF
5478 #define BINDIR "$ac_define_dir"
5479 _ACEOF
5480
5481
5482
5483 # GDB's datadir relocation
5484
5485
5486
5487 # Check whether --with-gdb-datadir was given.
5488 if test "${with_gdb_datadir+set}" = set; then :
5489   withval=$with_gdb_datadir;
5490     GDB_DATADIR=$withval
5491 else
5492   GDB_DATADIR=${datadir}/gdb
5493 fi
5494
5495
5496   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5497   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5498   ac_define_dir=`eval echo $GDB_DATADIR`
5499   ac_define_dir=`eval echo $ac_define_dir`
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define GDB_DATADIR "$ac_define_dir"
5503 _ACEOF
5504
5505
5506
5507
5508   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
5509      if test "x$prefix" = xNONE; then
5510         test_prefix=/usr/local
5511      else
5512         test_prefix=$prefix
5513      fi
5514   else
5515      test_prefix=$exec_prefix
5516   fi
5517   value=0
5518   case ${ac_define_dir} in
5519      "${test_prefix}"|"${test_prefix}/"*|\
5520         '${exec_prefix}'|'${exec_prefix}/'*)
5521      value=1
5522      ;;
5523   esac
5524
5525 cat >>confdefs.h <<_ACEOF
5526 #define GDB_DATADIR_RELOCATABLE $value
5527 _ACEOF
5528
5529
5530
5531
5532
5533 # Check whether --with-relocated-sources was given.
5534 if test "${with_relocated_sources+set}" = set; then :
5535   withval=$with_relocated_sources; reloc_srcdir="${withval}"
5536
5537   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5538   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5539   ac_define_dir=`eval echo $reloc_srcdir`
5540   ac_define_dir=`eval echo $ac_define_dir`
5541
5542 cat >>confdefs.h <<_ACEOF
5543 #define RELOC_SRCDIR "$ac_define_dir"
5544 _ACEOF
5545
5546
5547
5548 fi
5549
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
5552 $as_echo_n "checking for default auto-load directory... " >&6; }
5553
5554 # Check whether --with-auto-load-dir was given.
5555 if test "${with_auto_load_dir+set}" = set; then :
5556   withval=$with_auto_load_dir;
5557 else
5558   with_auto_load_dir='$debugdir:$datadir/auto-load'
5559 fi
5560
5561 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5562
5563   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5564   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5565   ac_define_dir=`eval echo $escape_dir`
5566   ac_define_dir=`eval echo $ac_define_dir`
5567
5568 cat >>confdefs.h <<_ACEOF
5569 #define AUTO_LOAD_DIR "$ac_define_dir"
5570 _ACEOF
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
5574 $as_echo "$with_auto_load_dir" >&6; }
5575
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
5577 $as_echo_n "checking for default auto-load safe-path... " >&6; }
5578
5579 # Check whether --with-auto-load-safe-path was given.
5580 if test "${with_auto_load_safe_path+set}" = set; then :
5581   withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
5582      with_auto_load_safe_path="/"
5583      fi
5584 else
5585   with_auto_load_safe_path="$with_auto_load_dir"
5586 fi
5587
5588 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5589
5590   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5591   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5592   ac_define_dir=`eval echo $escape_dir`
5593   ac_define_dir=`eval echo $ac_define_dir`
5594
5595 cat >>confdefs.h <<_ACEOF
5596 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5597 _ACEOF
5598
5599
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5601 $as_echo "$with_auto_load_safe_path" >&6; }
5602
5603
5604
5605 subdirs="$subdirs testsuite"
5606
5607
5608 # Check whether to support alternative target configurations
5609 # Check whether --enable-targets was given.
5610 if test "${enable_targets+set}" = set; then :
5611   enableval=$enable_targets; case "${enableval}" in
5612   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5613             ;;
5614   no)       enable_targets= ;;
5615   *)        enable_targets=$enableval ;;
5616 esac
5617 fi
5618
5619
5620 # Check whether to enable 64-bit support on 32-bit hosts
5621 # Check whether --enable-64-bit-bfd was given.
5622 if test "${enable_64_bit_bfd+set}" = set; then :
5623   enableval=$enable_64_bit_bfd; case "${enableval}" in
5624   yes)  want64=true  ;;
5625   no)   want64=false ;;
5626   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5627 esac
5628 else
5629   want64=false
5630 fi
5631
5632 # Provide defaults for some variables set by the per-host and per-target
5633 # configuration.
5634 gdb_host_obs=posix-hdep.o
5635
5636 if test "${target}" = "${host}"; then
5637   gdb_native=yes
5638 else
5639   gdb_native=no
5640 fi
5641
5642 . $srcdir/configure.host
5643
5644 # Add in the common host objects.
5645 . $srcdir/common/common.host
5646 gdb_host_obs="$gdb_host_obs $common_host_obs"
5647
5648 # Accumulate some settings from configure.tgt over all enabled targets
5649
5650 TARGET_OBS=
5651 all_targets=
5652 HAVE_NATIVE_GCORE_TARGET=
5653
5654 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5655 do
5656   if test "$targ_alias" = "all"; then
5657     all_targets=true
5658   else
5659     # Canonicalize the secondary target names.
5660     result=`$ac_config_sub $targ_alias 2>/dev/null`
5661     if test -n "$result"; then
5662         targ=$result
5663     else
5664         targ=$targ_alias
5665     fi
5666
5667     . ${srcdir}/configure.tgt
5668
5669     if test -z "${gdb_target_obs}"; then :
5670   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5671 fi
5672
5673     # Target-specific object files
5674     for i in ${gdb_target_obs}; do
5675         case " $TARGET_OBS " in
5676         *" ${i} "*) ;;
5677         *)
5678           TARGET_OBS="$TARGET_OBS ${i}"
5679           ;;
5680         esac
5681     done
5682
5683     # Check whether this target needs 64-bit CORE_ADDR
5684     if test x${want64} = xfalse; then
5685       . ${srcdir}/../bfd/config.bfd
5686     fi
5687
5688     # Check whether this target is native and supports gcore.
5689     if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
5690        && $gdb_have_gcore; then
5691       HAVE_NATIVE_GCORE_TARGET=1
5692     fi
5693   fi
5694 done
5695
5696 if test x${all_targets} = xtrue; then
5697
5698   # We want all 64-bit targets if we either:
5699   #  - run on a 64-bit host  or
5700   #  - already require 64-bit support for some other target  or
5701   #  - the --enable-64-bit-bfd option was supplied
5702   # Otherwise we only support all 32-bit targets.
5703   #
5704   # NOTE: This test must be in sync with the corresponding
5705   #       tests in BFD!
5706
5707   if test x${want64} = xfalse; then
5708     # The cast to long int works around a bug in the HP C Compiler
5709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5711 # This bug is HP SR number 8606223364.
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5713 $as_echo_n "checking size of long... " >&6; }
5714 if test "${ac_cv_sizeof_long+set}" = set; then :
5715   $as_echo_n "(cached) " >&6
5716 else
5717   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
5718
5719 else
5720   if test "$ac_cv_type_long" = yes; then
5721      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5723 { as_fn_set_status 77
5724 as_fn_error "cannot compute sizeof (long)
5725 See \`config.log' for more details." "$LINENO" 5; }; }
5726    else
5727      ac_cv_sizeof_long=0
5728    fi
5729 fi
5730
5731 fi
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5733 $as_echo "$ac_cv_sizeof_long" >&6; }
5734
5735
5736
5737 cat >>confdefs.h <<_ACEOF
5738 #define SIZEOF_LONG $ac_cv_sizeof_long
5739 _ACEOF
5740
5741
5742     if test "x${ac_cv_sizeof_long}" = "x8"; then
5743       want64=true
5744     fi
5745   fi
5746   if test x${want64} = xtrue; then
5747     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5748   else
5749     TARGET_OBS='$(ALL_TARGET_OBS)'
5750   fi
5751 fi
5752
5753
5754
5755
5756 # For other settings, only the main target counts.
5757 gdb_sim=
5758 gdb_osabi=
5759 build_gdbserver=
5760 targ=$target; . ${srcdir}/configure.tgt
5761
5762 # Fetch the default architecture and default target vector from BFD.
5763 targ=$target; . $srcdir/../bfd/config.bfd
5764
5765 # We only want the first architecture, so strip off the others if
5766 # there is more than one.
5767 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5768
5769 if test "x$targ_archs" != x; then
5770
5771 cat >>confdefs.h <<_ACEOF
5772 #define DEFAULT_BFD_ARCH $targ_archs
5773 _ACEOF
5774
5775 fi
5776 if test "x$targ_defvec" != x; then
5777
5778 cat >>confdefs.h <<_ACEOF
5779 #define DEFAULT_BFD_VEC $targ_defvec
5780 _ACEOF
5781
5782 fi
5783
5784 # The CLI cannot be disabled yet, but may be in the future.
5785
5786 # Enable CLI.
5787 # Check whether --enable-gdbcli was given.
5788 if test "${enable_gdbcli+set}" = set; then :
5789   enableval=$enable_gdbcli; case $enableval in
5790     yes)
5791       ;;
5792     no)
5793       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5794     *)
5795       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5796   esac
5797 else
5798   enable_gdbcli=yes
5799 fi
5800
5801 if test x"$enable_gdbcli" = xyes; then
5802   if test -d $srcdir/cli; then
5803     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5804     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5805     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5806     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5807   fi
5808 fi
5809
5810 # Enable MI.
5811 # Check whether --enable-gdbmi was given.
5812 if test "${enable_gdbmi+set}" = set; then :
5813   enableval=$enable_gdbmi; case $enableval in
5814     yes | no)
5815       ;;
5816     *)
5817       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5818   esac
5819 else
5820   enable_gdbmi=yes
5821 fi
5822
5823 if test x"$enable_gdbmi" = xyes; then
5824   if test -d $srcdir/mi; then
5825     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5826     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5827     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5828     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5829   fi
5830 fi
5831
5832 # Enable TUI.
5833 # Check whether --enable-tui was given.
5834 if test "${enable_tui+set}" = set; then :
5835   enableval=$enable_tui; case $enableval in
5836     yes | no | auto)
5837       ;;
5838     *)
5839       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5840   esac
5841 else
5842   enable_tui=auto
5843 fi
5844
5845
5846 # Enable gdbtk.
5847 # Check whether --enable-gdbtk was given.
5848 if test "${enable_gdbtk+set}" = set; then :
5849   enableval=$enable_gdbtk; case $enableval in
5850     yes | no)
5851       ;;
5852     *)
5853       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5854   esac
5855 else
5856   if test -d $srcdir/gdbtk; then
5857     enable_gdbtk=yes
5858   else
5859     enable_gdbtk=no
5860   fi
5861 fi
5862
5863 # We unconditionally disable gdbtk tests on selected platforms.
5864 case $host_os in
5865   go32* | windows*)
5866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5867 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5868     enable_gdbtk=no ;;
5869 esac
5870
5871 # Libunwind support for ia64.
5872
5873
5874 # Check whether --with-libunwind-ia64 was given.
5875 if test "${with_libunwind_ia64+set}" = set; then :
5876   withval=$with_libunwind_ia64;
5877 else
5878   with_libunwind_ia64=auto
5879 fi
5880
5881
5882 # Backward compatibility option.
5883 if test "${with_libunwind+set}" = set; then
5884   if test x"$with_libunwind_ia64" != xauto; then
5885     as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5886   fi
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5888 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5889   with_libunwind_ia64="$with_libunwind"
5890 fi
5891
5892 case "$with_libunwind_ia64" in
5893   yes | no)
5894     ;;
5895   auto)
5896     for ac_header in libunwind-ia64.h
5897 do :
5898   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5899 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5900   cat >>confdefs.h <<_ACEOF
5901 #define HAVE_LIBUNWIND_IA64_H 1
5902 _ACEOF
5903
5904 fi
5905
5906 done
5907
5908     with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5909     ;;
5910   *)
5911     as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5912     ;;
5913 esac
5914
5915 if test x"$with_libunwind_ia64" = xyes; then
5916   for ac_header in libunwind-ia64.h
5917 do :
5918   ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5919 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5920   cat >>confdefs.h <<_ACEOF
5921 #define HAVE_LIBUNWIND_IA64_H 1
5922 _ACEOF
5923
5924 fi
5925
5926 done
5927
5928   if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5929     as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5930   fi
5931   CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5932   CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5933   CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5934 fi
5935
5936 opt_curses=no
5937
5938 # Check whether --with-curses was given.
5939 if test "${with_curses+set}" = set; then :
5940   withval=$with_curses; opt_curses=$withval
5941 fi
5942
5943
5944 prefer_curses=no
5945 if test "$opt_curses" = "yes"; then
5946   prefer_curses=yes
5947 fi
5948
5949 # Profiling support.
5950 # Check whether --enable-profiling was given.
5951 if test "${enable_profiling+set}" = set; then :
5952   enableval=$enable_profiling; case $enableval in
5953     yes | no)
5954       ;;
5955     *)
5956       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5957   esac
5958 else
5959   enable_profiling=no
5960 fi
5961
5962
5963 for ac_func in monstartup _mcleanup
5964 do :
5965   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5967 eval as_val=\$$as_ac_var
5968    if test "x$as_val" = x""yes; then :
5969   cat >>confdefs.h <<_ACEOF
5970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5971 _ACEOF
5972
5973 fi
5974 done
5975
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5977 $as_echo_n "checking for _etext... " >&6; }
5978 if test "${ac_cv_var__etext+set}" = set; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h.  */
5983 #include <stdlib.h>
5984 extern char _etext;
5985
5986 int
5987 main ()
5988 {
5989 free (&_etext);
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 if ac_fn_c_try_link "$LINENO"; then :
5995   ac_cv_var__etext=yes
5996 else
5997   ac_cv_var__etext=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext \
6000     conftest$ac_exeext conftest.$ac_ext
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6003 $as_echo "$ac_cv_var__etext" >&6; }
6004 if test $ac_cv_var__etext = yes; then
6005
6006 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6007
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6010 $as_echo_n "checking for etext... " >&6; }
6011 if test "${ac_cv_var_etext+set}" = set; then :
6012   $as_echo_n "(cached) " >&6
6013 else
6014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h.  */
6016 #include <stdlib.h>
6017 extern char etext;
6018
6019 int
6020 main ()
6021 {
6022 free (&etext);
6023   ;
6024   return 0;
6025 }
6026 _ACEOF
6027 if ac_fn_c_try_link "$LINENO"; then :
6028   ac_cv_var_etext=yes
6029 else
6030   ac_cv_var_etext=no
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext \
6033     conftest$ac_exeext conftest.$ac_ext
6034 fi
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6036 $as_echo "$ac_cv_var_etext" >&6; }
6037 if test $ac_cv_var_etext = yes; then
6038
6039 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6040
6041 fi
6042 if test "$enable_profiling" = yes ; then
6043   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
6044     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6045   fi
6046   PROFILE_CFLAGS=-pg
6047   OLD_CFLAGS="$CFLAGS"
6048   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
6049
6050   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6051 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6052 if test "${ac_cv_cc_supports_pg+set}" = set; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h.  */
6057
6058 int
6059 main ()
6060 {
6061 int x;
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 if ac_fn_c_try_compile "$LINENO"; then :
6067   ac_cv_cc_supports_pg=yes
6068 else
6069   ac_cv_cc_supports_pg=no
6070 fi
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 fi
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6074 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6075
6076   if test $ac_cv_cc_supports_pg = no; then
6077     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6078   fi
6079
6080   CFLAGS="$OLD_CFLAGS"
6081 fi
6082
6083
6084
6085 # Check whether --with-pkgversion was given.
6086 if test "${with_pkgversion+set}" = set; then :
6087   withval=$with_pkgversion; case "$withval" in
6088       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
6089       no)  PKGVERSION= ;;
6090       *)   PKGVERSION="($withval) " ;;
6091      esac
6092 else
6093   PKGVERSION="(GDB) "
6094
6095 fi
6096
6097
6098
6099
6100
6101 # Check whether --with-bugurl was given.
6102 if test "${with_bugurl+set}" = set; then :
6103   withval=$with_bugurl; case "$withval" in
6104       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
6105       no)  BUGURL=
6106            ;;
6107       *)   BUGURL="$withval"
6108            ;;
6109      esac
6110 else
6111   BUGURL="http://www.gnu.org/software/gdb/bugs/"
6112
6113 fi
6114
6115   case ${BUGURL} in
6116   "")
6117     REPORT_BUGS_TO=
6118     REPORT_BUGS_TEXI=
6119     ;;
6120   *)
6121     REPORT_BUGS_TO="<$BUGURL>"
6122     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
6123     ;;
6124   esac;
6125
6126
6127
6128
6129 cat >>confdefs.h <<_ACEOF
6130 #define PKGVERSION "$PKGVERSION"
6131 _ACEOF
6132
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
6136 _ACEOF
6137
6138
6139 # --------------------- #
6140 # Checks for programs.  #
6141 # --------------------- #
6142
6143 for ac_prog in gawk mawk nawk awk
6144 do
6145   # Extract the first word of "$ac_prog", so it can be a program name with args.
6146 set dummy $ac_prog; ac_word=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_AWK+set}" = set; then :
6150   $as_echo_n "(cached) " >&6
6151 else
6152   if test -n "$AWK"; then
6153   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   test -z "$as_dir" && as_dir=.
6160     for ac_exec_ext in '' $ac_executable_extensions; do
6161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162     ac_cv_prog_AWK="$ac_prog"
6163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164     break 2
6165   fi
6166 done
6167   done
6168 IFS=$as_save_IFS
6169
6170 fi
6171 fi
6172 AWK=$ac_cv_prog_AWK
6173 if test -n "$AWK"; then
6174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6175 $as_echo "$AWK" >&6; }
6176 else
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6179 fi
6180
6181
6182   test -n "$AWK" && break
6183 done
6184
6185 # Find a good install program.  We prefer a C program (faster),
6186 # so one script is as good as another.  But avoid the broken or
6187 # incompatible versions:
6188 # SysV /etc/install, /usr/sbin/install
6189 # SunOS /usr/etc/install
6190 # IRIX /sbin/install
6191 # AIX /bin/install
6192 # AmigaOS /C/install, which installs bootblocks on floppy discs
6193 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6194 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6195 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6196 # OS/2's system install, which has a completely different semantic
6197 # ./install, which can be erroneously created by make from ./install.sh.
6198 # Reject install programs that cannot install multiple files.
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6200 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6201 if test -z "$INSTALL"; then
6202 if test "${ac_cv_path_install+set}" = set; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208   IFS=$as_save_IFS
6209   test -z "$as_dir" && as_dir=.
6210     # Account for people who put trailing slashes in PATH elements.
6211 case $as_dir/ in #((
6212   ./ | .// | /[cC]/* | \
6213   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6214   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6215   /usr/ucb/* ) ;;
6216   *)
6217     # OSF1 and SCO ODT 3.0 have their own names for install.
6218     # Don't use installbsd from OSF since it installs stuff as root
6219     # by default.
6220     for ac_prog in ginstall scoinst install; do
6221       for ac_exec_ext in '' $ac_executable_extensions; do
6222         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
6223           if test $ac_prog = install &&
6224             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6225             # AIX install.  It has an incompatible calling convention.
6226             :
6227           elif test $ac_prog = install &&
6228             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6229             # program-specific install script used by HP pwplus--don't use.
6230             :
6231           else
6232             rm -rf conftest.one conftest.two conftest.dir
6233             echo one > conftest.one
6234             echo two > conftest.two
6235             mkdir conftest.dir
6236             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6237               test -s conftest.one && test -s conftest.two &&
6238               test -s conftest.dir/conftest.one &&
6239               test -s conftest.dir/conftest.two
6240             then
6241               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6242               break 3
6243             fi
6244           fi
6245         fi
6246       done
6247     done
6248     ;;
6249 esac
6250
6251   done
6252 IFS=$as_save_IFS
6253
6254 rm -rf conftest.one conftest.two conftest.dir
6255
6256 fi
6257   if test "${ac_cv_path_install+set}" = set; then
6258     INSTALL=$ac_cv_path_install
6259   else
6260     # As a last resort, use the slow shell script.  Don't cache a
6261     # value for INSTALL within a source directory, because that will
6262     # break other packages using the cache if that directory is
6263     # removed, or if the value is a relative name.
6264     INSTALL=$ac_install_sh
6265   fi
6266 fi
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6268 $as_echo "$INSTALL" >&6; }
6269
6270 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6271 # It thinks the first close brace ends the variable substitution.
6272 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6273
6274 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6275
6276 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6277
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6279 $as_echo_n "checking whether ln -s works... " >&6; }
6280 LN_S=$as_ln_s
6281 if test "$LN_S" = "ln -s"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6283 $as_echo "yes" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6286 $as_echo "no, using $LN_S" >&6; }
6287 fi
6288
6289 if test -n "$ac_tool_prefix"; then
6290   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293 $as_echo_n "checking for $ac_word... " >&6; }
6294 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6295   $as_echo_n "(cached) " >&6
6296 else
6297   if test -n "$RANLIB"; then
6298   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6299 else
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301 for as_dir in $PATH
6302 do
6303   IFS=$as_save_IFS
6304   test -z "$as_dir" && as_dir=.
6305     for ac_exec_ext in '' $ac_executable_extensions; do
6306   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309     break 2
6310   fi
6311 done
6312   done
6313 IFS=$as_save_IFS
6314
6315 fi
6316 fi
6317 RANLIB=$ac_cv_prog_RANLIB
6318 if test -n "$RANLIB"; then
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6320 $as_echo "$RANLIB" >&6; }
6321 else
6322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323 $as_echo "no" >&6; }
6324 fi
6325
6326
6327 fi
6328 if test -z "$ac_cv_prog_RANLIB"; then
6329   ac_ct_RANLIB=$RANLIB
6330   # Extract the first word of "ranlib", so it can be a program name with args.
6331 set dummy ranlib; ac_word=$2
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333 $as_echo_n "checking for $ac_word... " >&6; }
6334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6335   $as_echo_n "(cached) " >&6
6336 else
6337   if test -n "$ac_ct_RANLIB"; then
6338   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343   IFS=$as_save_IFS
6344   test -z "$as_dir" && as_dir=.
6345     for ac_exec_ext in '' $ac_executable_extensions; do
6346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347     ac_cv_prog_ac_ct_RANLIB="ranlib"
6348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349     break 2
6350   fi
6351 done
6352   done
6353 IFS=$as_save_IFS
6354
6355 fi
6356 fi
6357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6358 if test -n "$ac_ct_RANLIB"; then
6359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6360 $as_echo "$ac_ct_RANLIB" >&6; }
6361 else
6362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363 $as_echo "no" >&6; }
6364 fi
6365
6366   if test "x$ac_ct_RANLIB" = x; then
6367     RANLIB=":"
6368   else
6369     case $cross_compiling:$ac_tool_warned in
6370 yes:)
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6374 esac
6375     RANLIB=$ac_ct_RANLIB
6376   fi
6377 else
6378   RANLIB="$ac_cv_prog_RANLIB"
6379 fi
6380
6381 for ac_prog in 'bison -y' byacc
6382 do
6383   # Extract the first word of "$ac_prog", so it can be a program name with args.
6384 set dummy $ac_prog; ac_word=$2
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386 $as_echo_n "checking for $ac_word... " >&6; }
6387 if test "${ac_cv_prog_YACC+set}" = set; then :
6388   $as_echo_n "(cached) " >&6
6389 else
6390   if test -n "$YACC"; then
6391   ac_cv_prog_YACC="$YACC" # Let the user override the test.
6392 else
6393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394 for as_dir in $PATH
6395 do
6396   IFS=$as_save_IFS
6397   test -z "$as_dir" && as_dir=.
6398     for ac_exec_ext in '' $ac_executable_extensions; do
6399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6400     ac_cv_prog_YACC="$ac_prog"
6401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402     break 2
6403   fi
6404 done
6405   done
6406 IFS=$as_save_IFS
6407
6408 fi
6409 fi
6410 YACC=$ac_cv_prog_YACC
6411 if test -n "$YACC"; then
6412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6413 $as_echo "$YACC" >&6; }
6414 else
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416 $as_echo "no" >&6; }
6417 fi
6418
6419
6420   test -n "$YACC" && break
6421 done
6422 test -n "$YACC" || YACC="yacc"
6423
6424
6425 if test -n "$ac_tool_prefix"; then
6426   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6427 set dummy ${ac_tool_prefix}ar; ac_word=$2
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6429 $as_echo_n "checking for $ac_word... " >&6; }
6430 if test "${ac_cv_prog_AR+set}" = set; then :
6431   $as_echo_n "(cached) " >&6
6432 else
6433   if test -n "$AR"; then
6434   ac_cv_prog_AR="$AR" # Let the user override the test.
6435 else
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439   IFS=$as_save_IFS
6440   test -z "$as_dir" && as_dir=.
6441     for ac_exec_ext in '' $ac_executable_extensions; do
6442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6443     ac_cv_prog_AR="${ac_tool_prefix}ar"
6444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445     break 2
6446   fi
6447 done
6448   done
6449 IFS=$as_save_IFS
6450
6451 fi
6452 fi
6453 AR=$ac_cv_prog_AR
6454 if test -n "$AR"; then
6455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6456 $as_echo "$AR" >&6; }
6457 else
6458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 $as_echo "no" >&6; }
6460 fi
6461
6462
6463 fi
6464 if test -z "$ac_cv_prog_AR"; then
6465   ac_ct_AR=$AR
6466   # Extract the first word of "ar", so it can be a program name with args.
6467 set dummy ar; ac_word=$2
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469 $as_echo_n "checking for $ac_word... " >&6; }
6470 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6471   $as_echo_n "(cached) " >&6
6472 else
6473   if test -n "$ac_ct_AR"; then
6474   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6475 else
6476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 for as_dir in $PATH
6478 do
6479   IFS=$as_save_IFS
6480   test -z "$as_dir" && as_dir=.
6481     for ac_exec_ext in '' $ac_executable_extensions; do
6482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6483     ac_cv_prog_ac_ct_AR="ar"
6484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485     break 2
6486   fi
6487 done
6488   done
6489 IFS=$as_save_IFS
6490
6491 fi
6492 fi
6493 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6494 if test -n "$ac_ct_AR"; then
6495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6496 $as_echo "$ac_ct_AR" >&6; }
6497 else
6498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6499 $as_echo "no" >&6; }
6500 fi
6501
6502   if test "x$ac_ct_AR" = x; then
6503     AR=""
6504   else
6505     case $cross_compiling:$ac_tool_warned in
6506 yes:)
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6509 ac_tool_warned=yes ;;
6510 esac
6511     AR=$ac_ct_AR
6512   fi
6513 else
6514   AR="$ac_cv_prog_AR"
6515 fi
6516
6517 if test -n "$ac_tool_prefix"; then
6518   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
6523   $as_echo_n "(cached) " >&6
6524 else
6525   if test -n "$DLLTOOL"; then
6526   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533     for ac_exec_ext in '' $ac_executable_extensions; do
6534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6535     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540   done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 DLLTOOL=$ac_cv_prog_DLLTOOL
6546 if test -n "$DLLTOOL"; then
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6548 $as_echo "$DLLTOOL" >&6; }
6549 else
6550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553
6554
6555 fi
6556 if test -z "$ac_cv_prog_DLLTOOL"; then
6557   ac_ct_DLLTOOL=$DLLTOOL
6558   # Extract the first word of "dlltool", so it can be a program name with args.
6559 set dummy dlltool; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
6563   $as_echo_n "(cached) " >&6
6564 else
6565   if test -n "$ac_ct_DLLTOOL"; then
6566   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571   IFS=$as_save_IFS
6572   test -z "$as_dir" && as_dir=.
6573     for ac_exec_ext in '' $ac_executable_extensions; do
6574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6575     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577     break 2
6578   fi
6579 done
6580   done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6586 if test -n "$ac_ct_DLLTOOL"; then
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6588 $as_echo "$ac_ct_DLLTOOL" >&6; }
6589 else
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594   if test "x$ac_ct_DLLTOOL" = x; then
6595     DLLTOOL=""
6596   else
6597     case $cross_compiling:$ac_tool_warned in
6598 yes:)
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned=yes ;;
6602 esac
6603     DLLTOOL=$ac_ct_DLLTOOL
6604   fi
6605 else
6606   DLLTOOL="$ac_cv_prog_DLLTOOL"
6607 fi
6608
6609 if test -n "$ac_tool_prefix"; then
6610   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}windres; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   if test -n "$WINDRES"; then
6618   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625     for ac_exec_ext in '' $ac_executable_extensions; do
6626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632   done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 WINDRES=$ac_cv_prog_WINDRES
6638 if test -n "$WINDRES"; then
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6640 $as_echo "$WINDRES" >&6; }
6641 else
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646
6647 fi
6648 if test -z "$ac_cv_prog_WINDRES"; then
6649   ac_ct_WINDRES=$WINDRES
6650   # Extract the first word of "windres", so it can be a program name with args.
6651 set dummy windres; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   if test -n "$ac_ct_WINDRES"; then
6658   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665     for ac_exec_ext in '' $ac_executable_extensions; do
6666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667     ac_cv_prog_ac_ct_WINDRES="windres"
6668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672   done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6678 if test -n "$ac_ct_WINDRES"; then
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6680 $as_echo "$ac_ct_WINDRES" >&6; }
6681 else
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686   if test "x$ac_ct_WINDRES" = x; then
6687     WINDRES=""
6688   else
6689     case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6694 esac
6695     WINDRES=$ac_ct_WINDRES
6696   fi
6697 else
6698   WINDRES="$ac_cv_prog_WINDRES"
6699 fi
6700
6701
6702 case $host_os in
6703   gnu*)
6704     # Needed for GNU Hurd hosts.
6705     if test -n "$ac_tool_prefix"; then
6706   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}mig; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if test "${ac_cv_prog_MIG+set}" = set; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   if test -n "$MIG"; then
6714   ac_cv_prog_MIG="$MIG" # Let the user override the test.
6715 else
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6717 for as_dir in $PATH
6718 do
6719   IFS=$as_save_IFS
6720   test -z "$as_dir" && as_dir=.
6721     for ac_exec_ext in '' $ac_executable_extensions; do
6722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6723     ac_cv_prog_MIG="${ac_tool_prefix}mig"
6724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6725     break 2
6726   fi
6727 done
6728   done
6729 IFS=$as_save_IFS
6730
6731 fi
6732 fi
6733 MIG=$ac_cv_prog_MIG
6734 if test -n "$MIG"; then
6735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6736 $as_echo "$MIG" >&6; }
6737 else
6738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6740 fi
6741
6742
6743 fi
6744 if test -z "$ac_cv_prog_MIG"; then
6745   ac_ct_MIG=$MIG
6746   # Extract the first word of "mig", so it can be a program name with args.
6747 set dummy mig; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   if test -n "$ac_ct_MIG"; then
6754   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6755 else
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 for as_dir in $PATH
6758 do
6759   IFS=$as_save_IFS
6760   test -z "$as_dir" && as_dir=.
6761     for ac_exec_ext in '' $ac_executable_extensions; do
6762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763     ac_cv_prog_ac_ct_MIG="mig"
6764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765     break 2
6766   fi
6767 done
6768   done
6769 IFS=$as_save_IFS
6770
6771 fi
6772 fi
6773 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6774 if test -n "$ac_ct_MIG"; then
6775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6776 $as_echo "$ac_ct_MIG" >&6; }
6777 else
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6780 fi
6781
6782   if test "x$ac_ct_MIG" = x; then
6783     MIG=""
6784   else
6785     case $cross_compiling:$ac_tool_warned in
6786 yes:)
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned=yes ;;
6790 esac
6791     MIG=$ac_ct_MIG
6792   fi
6793 else
6794   MIG="$ac_cv_prog_MIG"
6795 fi
6796
6797     if test x"$MIG" = x; then
6798       as_fn_error "MIG not found but required for $host hosts" "$LINENO" 5
6799     fi
6800     ;;
6801 esac
6802
6803 # ---------------------- #
6804 # Checks for libraries.  #
6805 # ---------------------- #
6806
6807 # We might need to link with -lm; most simulators need it.
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6809 $as_echo_n "checking for main in -lm... " >&6; }
6810 if test "${ac_cv_lib_m_main+set}" = set; then :
6811   $as_echo_n "(cached) " >&6
6812 else
6813   ac_check_lib_save_LIBS=$LIBS
6814 LIBS="-lm  $LIBS"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h.  */
6817
6818
6819 int
6820 main ()
6821 {
6822 return main ();
6823   ;
6824   return 0;
6825 }
6826 _ACEOF
6827 if ac_fn_c_try_link "$LINENO"; then :
6828   ac_cv_lib_m_main=yes
6829 else
6830   ac_cv_lib_m_main=no
6831 fi
6832 rm -f core conftest.err conftest.$ac_objext \
6833     conftest$ac_exeext conftest.$ac_ext
6834 LIBS=$ac_check_lib_save_LIBS
6835 fi
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6837 $as_echo "$ac_cv_lib_m_main" >&6; }
6838 if test "x$ac_cv_lib_m_main" = x""yes; then :
6839   cat >>confdefs.h <<_ACEOF
6840 #define HAVE_LIBM 1
6841 _ACEOF
6842
6843   LIBS="-lm $LIBS"
6844
6845 fi
6846
6847
6848 # We need to link with -lw to get `wctype' on Solaris before Solaris
6849 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
6850 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6851 # is known to have this problem).  Therefore we avoid libw if we can.
6852 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6853 if test "x$ac_cv_func_wctype" = x""yes; then :
6854
6855 else
6856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6857 $as_echo_n "checking for wctype in -lw... " >&6; }
6858 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6859   $as_echo_n "(cached) " >&6
6860 else
6861   ac_check_lib_save_LIBS=$LIBS
6862 LIBS="-lw  $LIBS"
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h.  */
6865
6866 /* Override any GCC internal prototype to avoid an error.
6867    Use char because int might match the return type of a GCC
6868    builtin and then its argument prototype would still apply.  */
6869 #ifdef __cplusplus
6870 extern "C"
6871 #endif
6872 char wctype ();
6873 int
6874 main ()
6875 {
6876 return wctype ();
6877   ;
6878   return 0;
6879 }
6880 _ACEOF
6881 if ac_fn_c_try_link "$LINENO"; then :
6882   ac_cv_lib_w_wctype=yes
6883 else
6884   ac_cv_lib_w_wctype=no
6885 fi
6886 rm -f core conftest.err conftest.$ac_objext \
6887     conftest$ac_exeext conftest.$ac_ext
6888 LIBS=$ac_check_lib_save_LIBS
6889 fi
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6891 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6892 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6893   cat >>confdefs.h <<_ACEOF
6894 #define HAVE_LIBW 1
6895 _ACEOF
6896
6897   LIBS="-lw $LIBS"
6898
6899 fi
6900
6901 fi
6902
6903
6904 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6906 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6907 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6908   $as_echo_n "(cached) " >&6
6909 else
6910   ac_func_search_save_LIBS=$LIBS
6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h.  */
6913
6914 /* Override any GCC internal prototype to avoid an error.
6915    Use char because int might match the return type of a GCC
6916    builtin and then its argument prototype would still apply.  */
6917 #ifdef __cplusplus
6918 extern "C"
6919 #endif
6920 char gethostbyname ();
6921 int
6922 main ()
6923 {
6924 return gethostbyname ();
6925   ;
6926   return 0;
6927 }
6928 _ACEOF
6929 for ac_lib in '' nsl; do
6930   if test -z "$ac_lib"; then
6931     ac_res="none required"
6932   else
6933     ac_res=-l$ac_lib
6934     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6935   fi
6936   if ac_fn_c_try_link "$LINENO"; then :
6937   ac_cv_search_gethostbyname=$ac_res
6938 fi
6939 rm -f core conftest.err conftest.$ac_objext \
6940     conftest$ac_exeext
6941   if test "${ac_cv_search_gethostbyname+set}" = set; then :
6942   break
6943 fi
6944 done
6945 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6946
6947 else
6948   ac_cv_search_gethostbyname=no
6949 fi
6950 rm conftest.$ac_ext
6951 LIBS=$ac_func_search_save_LIBS
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6954 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6955 ac_res=$ac_cv_search_gethostbyname
6956 if test "$ac_res" != no; then :
6957   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6958
6959 fi
6960
6961
6962 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6964 $as_echo_n "checking for library containing socketpair... " >&6; }
6965 if test "${ac_cv_search_socketpair+set}" = set; then :
6966   $as_echo_n "(cached) " >&6
6967 else
6968   ac_func_search_save_LIBS=$LIBS
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971
6972 /* Override any GCC internal prototype to avoid an error.
6973    Use char because int might match the return type of a GCC
6974    builtin and then its argument prototype would still apply.  */
6975 #ifdef __cplusplus
6976 extern "C"
6977 #endif
6978 char socketpair ();
6979 int
6980 main ()
6981 {
6982 return socketpair ();
6983   ;
6984   return 0;
6985 }
6986 _ACEOF
6987 for ac_lib in '' socket; do
6988   if test -z "$ac_lib"; then
6989     ac_res="none required"
6990   else
6991     ac_res=-l$ac_lib
6992     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6993   fi
6994   if ac_fn_c_try_link "$LINENO"; then :
6995   ac_cv_search_socketpair=$ac_res
6996 fi
6997 rm -f core conftest.err conftest.$ac_objext \
6998     conftest$ac_exeext
6999   if test "${ac_cv_search_socketpair+set}" = set; then :
7000   break
7001 fi
7002 done
7003 if test "${ac_cv_search_socketpair+set}" = set; then :
7004
7005 else
7006   ac_cv_search_socketpair=no
7007 fi
7008 rm conftest.$ac_ext
7009 LIBS=$ac_func_search_save_LIBS
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7012 $as_echo "$ac_cv_search_socketpair" >&6; }
7013 ac_res=$ac_cv_search_socketpair
7014 if test "$ac_res" != no; then :
7015   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7016
7017 fi
7018
7019
7020 # Link in zlib if we can.  This allows us to read compressed debug sections.
7021
7022   # Use the system's zlib library.
7023   zlibdir="-L\$(top_builddir)/../zlib"
7024   zlibinc="-I\$(top_srcdir)/../zlib"
7025
7026 # Check whether --with-system-zlib was given.
7027 if test "${with_system_zlib+set}" = set; then :
7028   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7029     zlibdir=
7030     zlibinc=
7031   fi
7032
7033 fi
7034
7035
7036
7037
7038
7039 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7041 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7042 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045   ac_func_search_save_LIBS=$LIBS
7046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h.  */
7048
7049 /* Override any GCC internal prototype to avoid an error.
7050    Use char because int might match the return type of a GCC
7051    builtin and then its argument prototype would still apply.  */
7052 #ifdef __cplusplus
7053 extern "C"
7054 #endif
7055 char kinfo_getvmmap ();
7056 int
7057 main ()
7058 {
7059 return kinfo_getvmmap ();
7060   ;
7061   return 0;
7062 }
7063 _ACEOF
7064 for ac_lib in '' util; do
7065   if test -z "$ac_lib"; then
7066     ac_res="none required"
7067   else
7068     ac_res=-l$ac_lib
7069     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7070   fi
7071   if ac_fn_c_try_link "$LINENO"; then :
7072   ac_cv_search_kinfo_getvmmap=$ac_res
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext \
7075     conftest$ac_exeext
7076   if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7077   break
7078 fi
7079 done
7080 if test "${ac_cv_search_kinfo_getvmmap+set}" = set; then :
7081
7082 else
7083   ac_cv_search_kinfo_getvmmap=no
7084 fi
7085 rm conftest.$ac_ext
7086 LIBS=$ac_func_search_save_LIBS
7087 fi
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7089 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7090 ac_res=$ac_cv_search_kinfo_getvmmap
7091 if test "$ac_res" != no; then :
7092   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7093
7094 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7095
7096 fi
7097
7098
7099
7100
7101
7102 # Check whether --with-libiconv-prefix was given.
7103 if test "${with_libiconv_prefix+set}" = set; then :
7104   withval=$with_libiconv_prefix;
7105     for dir in `echo "$withval" | tr : ' '`; do
7106       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
7107       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
7108     done
7109
7110 fi
7111
7112
7113   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
7114   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
7115
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7117 $as_echo_n "checking for iconv... " >&6; }
7118 if test "${am_cv_func_iconv+set}" = set; then :
7119   $as_echo_n "(cached) " >&6
7120 else
7121
7122     am_cv_func_iconv="no, consider installing GNU libiconv"
7123     am_cv_lib_iconv=no
7124     am_cv_use_build_libiconv=no
7125     am_cv_build_libiconv_path=
7126
7127     # If libiconv is part of the build tree, then try using it over
7128     # any system iconv.
7129     if test -d ../libiconv; then
7130       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
7131         am_save_LIBS="$LIBS"
7132         am_save_CPPFLAGS="$CPPFLAGS"
7133         LIBS="$LIBS $lib_dir/libiconv.a"
7134         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
7135         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h.  */
7137 #include <stdlib.h>
7138 #include <iconv.h>
7139 int
7140 main ()
7141 {
7142 iconv_t cd = iconv_open("","");
7143            iconv(cd,NULL,NULL,NULL,NULL);
7144            iconv_close(cd);
7145   ;
7146   return 0;
7147 }
7148 _ACEOF
7149 if ac_fn_c_try_link "$LINENO"; then :
7150   am_cv_use_build_libiconv=yes
7151           am_cv_build_libiconv_path=$lib_dir/libiconv.a
7152           am_cv_lib_iconv=yes
7153           am_cv_func_iconv=yes
7154 fi
7155 rm -f core conftest.err conftest.$ac_objext \
7156     conftest$ac_exeext conftest.$ac_ext
7157         LIBS="$am_save_LIBS"
7158         CPPFLAGS="$am_save_CPPFLAGS"
7159         if test "$am_cv_use_build_libiconv" = "yes"; then
7160           break
7161         fi
7162       done
7163     fi
7164
7165     # Next, try to find iconv in libc.
7166     if test "$am_cv_func_iconv" != yes; then
7167       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h.  */
7169 #include <stdlib.h>
7170 #include <iconv.h>
7171 int
7172 main ()
7173 {
7174 iconv_t cd = iconv_open("","");
7175          iconv(cd,NULL,NULL,NULL,NULL);
7176          iconv_close(cd);
7177   ;
7178   return 0;
7179 }
7180 _ACEOF
7181 if ac_fn_c_try_link "$LINENO"; then :
7182   am_cv_func_iconv=yes
7183 fi
7184 rm -f core conftest.err conftest.$ac_objext \
7185     conftest$ac_exeext conftest.$ac_ext
7186     fi
7187
7188     # If iconv was not in libc, try -liconv.  In this case, arrange to
7189     # look in the libiconv prefix, if it was specified by the user.
7190     if test "$am_cv_func_iconv" != yes; then
7191       am_save_CPPFLAGS="$CPPFLAGS"
7192       am_save_LIBS="$LIBS"
7193       if test -n "$LIBICONV_INCLUDE"; then
7194         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
7195         LIBS="$LIBS $LIBICONV_LIBDIR"
7196       fi
7197       LIBS="$LIBS -liconv"
7198       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h.  */
7200 #include <stdlib.h>
7201 #include <iconv.h>
7202 int
7203 main ()
7204 {
7205 iconv_t cd = iconv_open("","");
7206          iconv(cd,NULL,NULL,NULL,NULL);
7207          iconv_close(cd);
7208   ;
7209   return 0;
7210 }
7211 _ACEOF
7212 if ac_fn_c_try_link "$LINENO"; then :
7213   am_cv_lib_iconv=yes
7214         am_cv_func_iconv=yes
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext \
7217     conftest$ac_exeext conftest.$ac_ext
7218       LIBS="$am_save_LIBS"
7219       CPPFLAGS="$am_save_CPPFLAGS"
7220     fi
7221
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7224 $as_echo "$am_cv_func_iconv" >&6; }
7225
7226   # Set the various flags based on the cache variables.  We can't rely
7227   # on the flags to remain set from the above code, due to caching.
7228   LIBICONV=
7229   if test "$am_cv_lib_iconv" = yes; then
7230     LIBICONV="-liconv"
7231   else
7232     LIBICONV_LIBDIR=
7233     LIBICONV_INCLUDE=
7234   fi
7235   if test "$am_cv_use_build_libiconv" = yes; then
7236     LIBICONV="$am_cv_build_libiconv_path"
7237     LIBICONV_LIBDIR=""
7238     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
7239   fi
7240   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
7241   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
7242
7243   if test "$am_cv_func_iconv" = yes; then
7244
7245 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7246
7247     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7248 $as_echo_n "checking for iconv declaration... " >&6; }
7249     if test "${am_cv_proto_iconv+set}" = set; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252
7253       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h.  */
7255
7256 #include <stdlib.h>
7257 #include <iconv.h>
7258 extern
7259 #ifdef __cplusplus
7260 "C"
7261 #endif
7262 #if defined(__STDC__) || defined(__cplusplus)
7263 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7264 #else
7265 size_t iconv();
7266 #endif
7267
7268 int
7269 main ()
7270 {
7271
7272   ;
7273   return 0;
7274 }
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"; then :
7277   am_cv_proto_iconv_arg1=""
7278 else
7279   am_cv_proto_iconv_arg1="const"
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282       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);"
7283 fi
7284
7285     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
7287          }$am_cv_proto_iconv" >&5
7288 $as_echo "${ac_t:-
7289          }$am_cv_proto_iconv" >&6; }
7290
7291 cat >>confdefs.h <<_ACEOF
7292 #define ICONV_CONST $am_cv_proto_iconv_arg1
7293 _ACEOF
7294
7295   fi
7296
7297
7298 # GDB may fork/exec the iconv program to get the list of supported character
7299 # sets.  Allow the user to specify where to find it.
7300 # There are several factors affecting the choice of option name:
7301 # - There is already --with-libiconv-prefix but we can't use it, it specifies
7302 #   the build-time location of libiconv files.
7303 # - The program we need to find is iconv, which comes with glibc.  The user
7304 #   doesn't necessarily have libiconv installed.  Therefore naming this
7305 #   --with-libiconv-foo feels wrong.
7306 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
7307 #   defined to work on directories not files (though it really doesn't know
7308 #   the difference).
7309 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
7310 #   with --with-libiconv-prefix.
7311 # Putting these together is why the option name is --with-iconv-bin.
7312
7313
7314 # Check whether --with-iconv-bin was given.
7315 if test "${with_iconv_bin+set}" = set; then :
7316   withval=$with_iconv_bin; iconv_bin="${withval}"
7317
7318 cat >>confdefs.h <<_ACEOF
7319 #define ICONV_BIN "${iconv_bin}"
7320 _ACEOF
7321
7322
7323   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7324      if test "x$prefix" = xNONE; then
7325         test_prefix=/usr/local
7326      else
7327         test_prefix=$prefix
7328      fi
7329   else
7330      test_prefix=$exec_prefix
7331   fi
7332   value=0
7333   case ${iconv_bin} in
7334      "${test_prefix}"|"${test_prefix}/"*|\
7335         '${exec_prefix}'|'${exec_prefix}/'*)
7336      value=1
7337      ;;
7338   esac
7339
7340 cat >>confdefs.h <<_ACEOF
7341 #define ICONV_BIN_RELOCATABLE $value
7342 _ACEOF
7343
7344
7345
7346 fi
7347
7348
7349 # For the TUI, we need enhanced curses functionality.
7350 if test x"$enable_tui" != xno; then
7351   prefer_curses=yes
7352 fi
7353
7354 curses_found=no
7355 if test x"$prefer_curses" = xyes; then
7356   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
7357   # curses library because the latter might not provide all the
7358   # functionality we need.  However, this leads to problems on systems
7359   # where the linker searches /usr/local/lib, but the compiler doesn't
7360   # search /usr/local/include, if ncurses is installed in /usr/local.  A
7361   # default installation of ncurses on alpha*-dec-osf* will lead to such
7362   # a situation.
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
7364 $as_echo_n "checking for library containing waddstr... " >&6; }
7365 if test "${ac_cv_search_waddstr+set}" = set; then :
7366   $as_echo_n "(cached) " >&6
7367 else
7368   ac_func_search_save_LIBS=$LIBS
7369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h.  */
7371
7372 /* Override any GCC internal prototype to avoid an error.
7373    Use char because int might match the return type of a GCC
7374    builtin and then its argument prototype would still apply.  */
7375 #ifdef __cplusplus
7376 extern "C"
7377 #endif
7378 char waddstr ();
7379 int
7380 main ()
7381 {
7382 return waddstr ();
7383   ;
7384   return 0;
7385 }
7386 _ACEOF
7387 for ac_lib in '' ncurses cursesX curses; do
7388   if test -z "$ac_lib"; then
7389     ac_res="none required"
7390   else
7391     ac_res=-l$ac_lib
7392     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7393   fi
7394   if ac_fn_c_try_link "$LINENO"; then :
7395   ac_cv_search_waddstr=$ac_res
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext \
7398     conftest$ac_exeext
7399   if test "${ac_cv_search_waddstr+set}" = set; then :
7400   break
7401 fi
7402 done
7403 if test "${ac_cv_search_waddstr+set}" = set; then :
7404
7405 else
7406   ac_cv_search_waddstr=no
7407 fi
7408 rm conftest.$ac_ext
7409 LIBS=$ac_func_search_save_LIBS
7410 fi
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
7412 $as_echo "$ac_cv_search_waddstr" >&6; }
7413 ac_res=$ac_cv_search_waddstr
7414 if test "$ac_res" != no; then :
7415   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7416
7417 fi
7418
7419
7420   if test "$ac_cv_search_waddstr" != no; then
7421     curses_found=yes
7422   fi
7423 fi
7424
7425 # Check whether we should enable the TUI, but only do so if we really
7426 # can.
7427 if test x"$enable_tui" != xno; then
7428   if test -d $srcdir/tui; then
7429     if test "$curses_found" != no; then
7430       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
7431       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
7432       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
7433       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
7434     else
7435       if test x"$enable_tui" = xyes; then
7436         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
7437       else
7438         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
7439 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
7440       fi
7441     fi
7442   fi
7443 fi
7444
7445 # Since GDB uses Readline, we need termcap functionality.  In many
7446 # cases this will be provided by the curses library, but some systems
7447 # have a seperate termcap library, or no curses library at all.
7448
7449 case $host_os in
7450   cygwin*)
7451     if test -d $srcdir/libtermcap; then
7452       LIBS="../libtermcap/libtermcap.a $LIBS"
7453       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
7454     fi ;;
7455   go32* | *djgpp*)
7456     ac_cv_search_tgetent="none required"
7457     ;;
7458 esac
7459
7460 # These are the libraries checked by Readline.
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
7462 $as_echo_n "checking for library containing tgetent... " >&6; }
7463 if test "${ac_cv_search_tgetent+set}" = set; then :
7464   $as_echo_n "(cached) " >&6
7465 else
7466   ac_func_search_save_LIBS=$LIBS
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h.  */
7469
7470 /* Override any GCC internal prototype to avoid an error.
7471    Use char because int might match the return type of a GCC
7472    builtin and then its argument prototype would still apply.  */
7473 #ifdef __cplusplus
7474 extern "C"
7475 #endif
7476 char tgetent ();
7477 int
7478 main ()
7479 {
7480 return tgetent ();
7481   ;
7482   return 0;
7483 }
7484 _ACEOF
7485 for ac_lib in '' termcap tinfo curses ncurses; do
7486   if test -z "$ac_lib"; then
7487     ac_res="none required"
7488   else
7489     ac_res=-l$ac_lib
7490     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7491   fi
7492   if ac_fn_c_try_link "$LINENO"; then :
7493   ac_cv_search_tgetent=$ac_res
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext \
7496     conftest$ac_exeext
7497   if test "${ac_cv_search_tgetent+set}" = set; then :
7498   break
7499 fi
7500 done
7501 if test "${ac_cv_search_tgetent+set}" = set; then :
7502
7503 else
7504   ac_cv_search_tgetent=no
7505 fi
7506 rm conftest.$ac_ext
7507 LIBS=$ac_func_search_save_LIBS
7508 fi
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7510 $as_echo "$ac_cv_search_tgetent" >&6; }
7511 ac_res=$ac_cv_search_tgetent
7512 if test "$ac_res" != no; then :
7513   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7514
7515 fi
7516
7517
7518 if test "$ac_cv_search_tgetent" = no; then
7519   CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
7520 fi
7521
7522
7523 # Check whether --with-system-readline was given.
7524 if test "${with_system_readline+set}" = set; then :
7525   withval=$with_system_readline;
7526 fi
7527
7528
7529 if test "$with_system_readline" = yes; then
7530   READLINE=-lreadline
7531   READLINE_DEPS=
7532   READLINE_CFLAGS=
7533   READLINE_TEXI_INCFLAG=
7534 else
7535   READLINE='$(READLINE_DIR)/libreadline.a'
7536   READLINE_DEPS='$(READLINE)'
7537   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7538   READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7539 fi
7540
7541
7542
7543
7544
7545 # Generate jit-reader.h
7546
7547 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7548 TARGET_PTR=
7549
7550 # The cast to long int works around a bug in the HP C Compiler
7551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7553 # This bug is HP SR number 8606223364.
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7555 $as_echo_n "checking size of unsigned long long... " >&6; }
7556 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7557   $as_echo_n "(cached) " >&6
7558 else
7559   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
7560
7561 else
7562   if test "$ac_cv_type_unsigned_long_long" = yes; then
7563      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7565 { as_fn_set_status 77
7566 as_fn_error "cannot compute sizeof (unsigned long long)
7567 See \`config.log' for more details." "$LINENO" 5; }; }
7568    else
7569      ac_cv_sizeof_unsigned_long_long=0
7570    fi
7571 fi
7572
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7575 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7576
7577
7578
7579 cat >>confdefs.h <<_ACEOF
7580 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7581 _ACEOF
7582
7583
7584 # The cast to long int works around a bug in the HP C Compiler
7585 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7586 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7587 # This bug is HP SR number 8606223364.
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7589 $as_echo_n "checking size of unsigned long... " >&6; }
7590 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
7594
7595 else
7596   if test "$ac_cv_type_unsigned_long" = yes; then
7597      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7599 { as_fn_set_status 77
7600 as_fn_error "cannot compute sizeof (unsigned long)
7601 See \`config.log' for more details." "$LINENO" 5; }; }
7602    else
7603      ac_cv_sizeof_unsigned_long=0
7604    fi
7605 fi
7606
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7609 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7610
7611
7612
7613 cat >>confdefs.h <<_ACEOF
7614 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7615 _ACEOF
7616
7617
7618 # The cast to long int works around a bug in the HP C Compiler
7619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7621 # This bug is HP SR number 8606223364.
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7623 $as_echo_n "checking size of unsigned __int128... " >&6; }
7624 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128"        "$ac_includes_default"; then :
7628
7629 else
7630   if test "$ac_cv_type_unsigned___int128" = yes; then
7631      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7633 { as_fn_set_status 77
7634 as_fn_error "cannot compute sizeof (unsigned __int128)
7635 See \`config.log' for more details." "$LINENO" 5; }; }
7636    else
7637      ac_cv_sizeof_unsigned___int128=0
7638    fi
7639 fi
7640
7641 fi
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7643 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7644
7645
7646
7647 cat >>confdefs.h <<_ACEOF
7648 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7649 _ACEOF
7650
7651
7652
7653 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7654   TARGET_PTR="unsigned long"
7655 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7656   TARGET_PTR="unsigned long long"
7657 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7658   TARGET_PTR="unsigned __int128"
7659 else
7660   TARGET_PTR="unsigned long"
7661 fi
7662
7663
7664 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7665
7666
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7668 $as_echo_n "checking for library containing dlopen... " >&6; }
7669 if test "${ac_cv_search_dlopen+set}" = set; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   ac_func_search_save_LIBS=$LIBS
7673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h.  */
7675
7676 /* Override any GCC internal prototype to avoid an error.
7677    Use char because int might match the return type of a GCC
7678    builtin and then its argument prototype would still apply.  */
7679 #ifdef __cplusplus
7680 extern "C"
7681 #endif
7682 char dlopen ();
7683 int
7684 main ()
7685 {
7686 return dlopen ();
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 for ac_lib in '' dl; do
7692   if test -z "$ac_lib"; then
7693     ac_res="none required"
7694   else
7695     ac_res=-l$ac_lib
7696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7697   fi
7698   if ac_fn_c_try_link "$LINENO"; then :
7699   ac_cv_search_dlopen=$ac_res
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext \
7702     conftest$ac_exeext
7703   if test "${ac_cv_search_dlopen+set}" = set; then :
7704   break
7705 fi
7706 done
7707 if test "${ac_cv_search_dlopen+set}" = set; then :
7708
7709 else
7710   ac_cv_search_dlopen=no
7711 fi
7712 rm conftest.$ac_ext
7713 LIBS=$ac_func_search_save_LIBS
7714 fi
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7716 $as_echo "$ac_cv_search_dlopen" >&6; }
7717 ac_res=$ac_cv_search_dlopen
7718 if test "$ac_res" != no; then :
7719   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7720
7721 fi
7722
7723
7724
7725
7726 # Check whether --with-jit-reader-dir was given.
7727 if test "${with_jit_reader_dir+set}" = set; then :
7728   withval=$with_jit_reader_dir;
7729     JIT_READER_DIR=$withval
7730 else
7731   JIT_READER_DIR=${libdir}/gdb
7732 fi
7733
7734
7735   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7736   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7737   ac_define_dir=`eval echo $JIT_READER_DIR`
7738   ac_define_dir=`eval echo $ac_define_dir`
7739
7740 cat >>confdefs.h <<_ACEOF
7741 #define JIT_READER_DIR "$ac_define_dir"
7742 _ACEOF
7743
7744
7745
7746
7747   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7748      if test "x$prefix" = xNONE; then
7749         test_prefix=/usr/local
7750      else
7751         test_prefix=$prefix
7752      fi
7753   else
7754      test_prefix=$exec_prefix
7755   fi
7756   value=0
7757   case ${ac_define_dir} in
7758      "${test_prefix}"|"${test_prefix}/"*|\
7759         '${exec_prefix}'|'${exec_prefix}/'*)
7760      value=1
7761      ;;
7762   esac
7763
7764 cat >>confdefs.h <<_ACEOF
7765 #define JIT_READER_DIR_RELOCATABLE $value
7766 _ACEOF
7767
7768
7769
7770
7771
7772 # Check whether --with-expat was given.
7773 if test "${with_expat+set}" = set; then :
7774   withval=$with_expat;
7775 else
7776   with_expat=auto
7777 fi
7778
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7780 $as_echo_n "checking whether to use expat... " >&6; }
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7782 $as_echo "$with_expat" >&6; }
7783
7784 if test "${with_expat}" = no; then
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7786 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7787   HAVE_LIBEXPAT=no
7788 else
7789
7790       if test "X$prefix" = "XNONE"; then
7791     acl_final_prefix="$ac_default_prefix"
7792   else
7793     acl_final_prefix="$prefix"
7794   fi
7795   if test "X$exec_prefix" = "XNONE"; then
7796     acl_final_exec_prefix='${prefix}'
7797   else
7798     acl_final_exec_prefix="$exec_prefix"
7799   fi
7800   acl_save_prefix="$prefix"
7801   prefix="$acl_final_prefix"
7802   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7803   prefix="$acl_save_prefix"
7804
7805
7806 # Check whether --with-gnu-ld was given.
7807 if test "${with_gnu_ld+set}" = set; then :
7808   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7809 else
7810   with_gnu_ld=no
7811 fi
7812
7813 # Prepare PATH_SEPARATOR.
7814 # The user is always right.
7815 if test "${PATH_SEPARATOR+set}" != set; then
7816   echo "#! /bin/sh" >conf$$.sh
7817   echo  "exit 0"   >>conf$$.sh
7818   chmod +x conf$$.sh
7819   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7820     PATH_SEPARATOR=';'
7821   else
7822     PATH_SEPARATOR=:
7823   fi
7824   rm -f conf$$.sh
7825 fi
7826 ac_prog=ld
7827 if test "$GCC" = yes; then
7828   # Check if gcc -print-prog-name=ld gives a path.
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7830 $as_echo_n "checking for ld used by GCC... " >&6; }
7831   case $host in
7832   *-*-mingw*)
7833     # gcc leaves a trailing carriage return which upsets mingw
7834     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7835   *)
7836     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7837   esac
7838   case $ac_prog in
7839     # Accept absolute paths.
7840     [\\/]* | [A-Za-z]:[\\/]*)
7841       re_direlt='/[^/][^/]*/\.\./'
7842       # Canonicalize the path of ld
7843       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7844       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7845         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7846       done
7847       test -z "$LD" && LD="$ac_prog"
7848       ;;
7849   "")
7850     # If it fails, then pretend we aren't using GCC.
7851     ac_prog=ld
7852     ;;
7853   *)
7854     # If it is relative, then search for the first ld in PATH.
7855     with_gnu_ld=unknown
7856     ;;
7857   esac
7858 elif test "$with_gnu_ld" = yes; then
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7860 $as_echo_n "checking for GNU ld... " >&6; }
7861 else
7862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7863 $as_echo_n "checking for non-GNU ld... " >&6; }
7864 fi
7865 if test "${acl_cv_path_LD+set}" = set; then :
7866   $as_echo_n "(cached) " >&6
7867 else
7868   if test -z "$LD"; then
7869   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7870   for ac_dir in $PATH; do
7871     test -z "$ac_dir" && ac_dir=.
7872     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7873       acl_cv_path_LD="$ac_dir/$ac_prog"
7874       # Check to see if the program is GNU ld.  I'd rather use --version,
7875       # but apparently some GNU ld's only accept -v.
7876       # Break only if it was the GNU/non-GNU ld that we prefer.
7877       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7878         test "$with_gnu_ld" != no && break
7879       else
7880         test "$with_gnu_ld" != yes && break
7881       fi
7882     fi
7883   done
7884   IFS="$ac_save_ifs"
7885 else
7886   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7887 fi
7888 fi
7889
7890 LD="$acl_cv_path_LD"
7891 if test -n "$LD"; then
7892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7893 $as_echo "$LD" >&6; }
7894 else
7895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7901 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7902   $as_echo_n "(cached) " >&6
7903 else
7904   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7905 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7906   acl_cv_prog_gnu_ld=yes
7907 else
7908   acl_cv_prog_gnu_ld=no
7909 fi
7910 fi
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7912 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7913 with_gnu_ld=$acl_cv_prog_gnu_ld
7914
7915
7916
7917                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7918 $as_echo_n "checking for shared library run path origin... " >&6; }
7919 if test "${acl_cv_rpath+set}" = set; then :
7920   $as_echo_n "(cached) " >&6
7921 else
7922
7923     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7924     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7925     . ./conftest.sh
7926     rm -f ./conftest.sh
7927     acl_cv_rpath=done
7928
7929 fi
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7931 $as_echo "$acl_cv_rpath" >&6; }
7932   wl="$acl_cv_wl"
7933   libext="$acl_cv_libext"
7934   shlibext="$acl_cv_shlibext"
7935   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7936   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7937   hardcode_direct="$acl_cv_hardcode_direct"
7938   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7939     # Check whether --enable-rpath was given.
7940 if test "${enable_rpath+set}" = set; then :
7941   enableval=$enable_rpath; :
7942 else
7943   enable_rpath=yes
7944 fi
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955     use_additional=yes
7956
7957   acl_save_prefix="$prefix"
7958   prefix="$acl_final_prefix"
7959   acl_save_exec_prefix="$exec_prefix"
7960   exec_prefix="$acl_final_exec_prefix"
7961
7962     eval additional_includedir=\"$includedir\"
7963     eval additional_libdir=\"$libdir\"
7964
7965   exec_prefix="$acl_save_exec_prefix"
7966   prefix="$acl_save_prefix"
7967
7968
7969 # Check whether --with-libexpat-prefix was given.
7970 if test "${with_libexpat_prefix+set}" = set; then :
7971   withval=$with_libexpat_prefix;
7972     if test "X$withval" = "Xno"; then
7973       use_additional=no
7974     else
7975       if test "X$withval" = "X"; then
7976
7977   acl_save_prefix="$prefix"
7978   prefix="$acl_final_prefix"
7979   acl_save_exec_prefix="$exec_prefix"
7980   exec_prefix="$acl_final_exec_prefix"
7981
7982           eval additional_includedir=\"$includedir\"
7983           eval additional_libdir=\"$libdir\"
7984
7985   exec_prefix="$acl_save_exec_prefix"
7986   prefix="$acl_save_prefix"
7987
7988       else
7989         additional_includedir="$withval/include"
7990         additional_libdir="$withval/lib"
7991       fi
7992     fi
7993
7994 fi
7995
7996       LIBEXPAT=
7997   LTLIBEXPAT=
7998   INCEXPAT=
7999   rpathdirs=
8000   ltrpathdirs=
8001   names_already_handled=
8002   names_next_round='expat '
8003   while test -n "$names_next_round"; do
8004     names_this_round="$names_next_round"
8005     names_next_round=
8006     for name in $names_this_round; do
8007       already_handled=
8008       for n in $names_already_handled; do
8009         if test "$n" = "$name"; then
8010           already_handled=yes
8011           break
8012         fi
8013       done
8014       if test -z "$already_handled"; then
8015         names_already_handled="$names_already_handled $name"
8016                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8017         eval value=\"\$HAVE_LIB$uppername\"
8018         if test -n "$value"; then
8019           if test "$value" = yes; then
8020             eval value=\"\$LIB$uppername\"
8021             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
8022             eval value=\"\$LTLIB$uppername\"
8023             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8024           else
8025                                     :
8026           fi
8027         else
8028                               found_dir=
8029           found_la=
8030           found_so=
8031           found_a=
8032           if test $use_additional = yes; then
8033             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8034               found_dir="$additional_libdir"
8035               found_so="$additional_libdir/lib$name.$shlibext"
8036               if test -f "$additional_libdir/lib$name.la"; then
8037                 found_la="$additional_libdir/lib$name.la"
8038               fi
8039             else
8040               if test -f "$additional_libdir/lib$name.$libext"; then
8041                 found_dir="$additional_libdir"
8042                 found_a="$additional_libdir/lib$name.$libext"
8043                 if test -f "$additional_libdir/lib$name.la"; then
8044                   found_la="$additional_libdir/lib$name.la"
8045                 fi
8046               fi
8047             fi
8048           fi
8049           if test "X$found_dir" = "X"; then
8050             for x in $LDFLAGS $LTLIBEXPAT; do
8051
8052   acl_save_prefix="$prefix"
8053   prefix="$acl_final_prefix"
8054   acl_save_exec_prefix="$exec_prefix"
8055   exec_prefix="$acl_final_exec_prefix"
8056   eval x=\"$x\"
8057   exec_prefix="$acl_save_exec_prefix"
8058   prefix="$acl_save_prefix"
8059
8060               case "$x" in
8061                 -L*)
8062                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8063                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8064                     found_dir="$dir"
8065                     found_so="$dir/lib$name.$shlibext"
8066                     if test -f "$dir/lib$name.la"; then
8067                       found_la="$dir/lib$name.la"
8068                     fi
8069                   else
8070                     if test -f "$dir/lib$name.$libext"; then
8071                       found_dir="$dir"
8072                       found_a="$dir/lib$name.$libext"
8073                       if test -f "$dir/lib$name.la"; then
8074                         found_la="$dir/lib$name.la"
8075                       fi
8076                     fi
8077                   fi
8078                   ;;
8079               esac
8080               if test "X$found_dir" != "X"; then
8081                 break
8082               fi
8083             done
8084           fi
8085           if test "X$found_dir" != "X"; then
8086                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8087             if test "X$found_so" != "X"; then
8088                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8089                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8090               else
8091                                                                                 haveit=
8092                 for x in $ltrpathdirs; do
8093                   if test "X$x" = "X$found_dir"; then
8094                     haveit=yes
8095                     break
8096                   fi
8097                 done
8098                 if test -z "$haveit"; then
8099                   ltrpathdirs="$ltrpathdirs $found_dir"
8100                 fi
8101                                 if test "$hardcode_direct" = yes; then
8102                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8103                 else
8104                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8105                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8106                                                             haveit=
8107                     for x in $rpathdirs; do
8108                       if test "X$x" = "X$found_dir"; then
8109                         haveit=yes
8110                         break
8111                       fi
8112                     done
8113                     if test -z "$haveit"; then
8114                       rpathdirs="$rpathdirs $found_dir"
8115                     fi
8116                   else
8117                                                                                 haveit=
8118                     for x in $LDFLAGS $LIBEXPAT; do
8119
8120   acl_save_prefix="$prefix"
8121   prefix="$acl_final_prefix"
8122   acl_save_exec_prefix="$exec_prefix"
8123   exec_prefix="$acl_final_exec_prefix"
8124   eval x=\"$x\"
8125   exec_prefix="$acl_save_exec_prefix"
8126   prefix="$acl_save_prefix"
8127
8128                       if test "X$x" = "X-L$found_dir"; then
8129                         haveit=yes
8130                         break
8131                       fi
8132                     done
8133                     if test -z "$haveit"; then
8134                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8135                     fi
8136                     if test "$hardcode_minus_L" != no; then
8137                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8138                     else
8139                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8140                     fi
8141                   fi
8142                 fi
8143               fi
8144             else
8145               if test "X$found_a" != "X"; then
8146                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8147               else
8148                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8149               fi
8150             fi
8151                         additional_includedir=
8152             case "$found_dir" in
8153               */lib | */lib/)
8154                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8155                 additional_includedir="$basedir/include"
8156                 ;;
8157             esac
8158             if test "X$additional_includedir" != "X"; then
8159                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8160                 haveit=
8161                 if test "X$additional_includedir" = "X/usr/local/include"; then
8162                   if test -n "$GCC"; then
8163                     case $host_os in
8164                       linux*) haveit=yes;;
8165                     esac
8166                   fi
8167                 fi
8168                 if test -z "$haveit"; then
8169                   for x in $CPPFLAGS $INCEXPAT; do
8170
8171   acl_save_prefix="$prefix"
8172   prefix="$acl_final_prefix"
8173   acl_save_exec_prefix="$exec_prefix"
8174   exec_prefix="$acl_final_exec_prefix"
8175   eval x=\"$x\"
8176   exec_prefix="$acl_save_exec_prefix"
8177   prefix="$acl_save_prefix"
8178
8179                     if test "X$x" = "X-I$additional_includedir"; then
8180                       haveit=yes
8181                       break
8182                     fi
8183                   done
8184                   if test -z "$haveit"; then
8185                     if test -d "$additional_includedir"; then
8186                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8187                     fi
8188                   fi
8189                 fi
8190               fi
8191             fi
8192                         if test -n "$found_la"; then
8193                                                         save_libdir="$libdir"
8194               case "$found_la" in
8195                 */* | *\\*) . "$found_la" ;;
8196                 *) . "./$found_la" ;;
8197               esac
8198               libdir="$save_libdir"
8199                             for dep in $dependency_libs; do
8200                 case "$dep" in
8201                   -L*)
8202                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8203                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8204                       haveit=
8205                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8206                         if test -n "$GCC"; then
8207                           case $host_os in
8208                             linux*) haveit=yes;;
8209                           esac
8210                         fi
8211                       fi
8212                       if test -z "$haveit"; then
8213                         haveit=
8214                         for x in $LDFLAGS $LIBEXPAT; do
8215
8216   acl_save_prefix="$prefix"
8217   prefix="$acl_final_prefix"
8218   acl_save_exec_prefix="$exec_prefix"
8219   exec_prefix="$acl_final_exec_prefix"
8220   eval x=\"$x\"
8221   exec_prefix="$acl_save_exec_prefix"
8222   prefix="$acl_save_prefix"
8223
8224                           if test "X$x" = "X-L$additional_libdir"; then
8225                             haveit=yes
8226                             break
8227                           fi
8228                         done
8229                         if test -z "$haveit"; then
8230                           if test -d "$additional_libdir"; then
8231                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8232                           fi
8233                         fi
8234                         haveit=
8235                         for x in $LDFLAGS $LTLIBEXPAT; do
8236
8237   acl_save_prefix="$prefix"
8238   prefix="$acl_final_prefix"
8239   acl_save_exec_prefix="$exec_prefix"
8240   exec_prefix="$acl_final_exec_prefix"
8241   eval x=\"$x\"
8242   exec_prefix="$acl_save_exec_prefix"
8243   prefix="$acl_save_prefix"
8244
8245                           if test "X$x" = "X-L$additional_libdir"; then
8246                             haveit=yes
8247                             break
8248                           fi
8249                         done
8250                         if test -z "$haveit"; then
8251                           if test -d "$additional_libdir"; then
8252                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8253                           fi
8254                         fi
8255                       fi
8256                     fi
8257                     ;;
8258                   -R*)
8259                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8260                     if test "$enable_rpath" != no; then
8261                                                                   haveit=
8262                       for x in $rpathdirs; do
8263                         if test "X$x" = "X$dir"; then
8264                           haveit=yes
8265                           break
8266                         fi
8267                       done
8268                       if test -z "$haveit"; then
8269                         rpathdirs="$rpathdirs $dir"
8270                       fi
8271                                                                   haveit=
8272                       for x in $ltrpathdirs; do
8273                         if test "X$x" = "X$dir"; then
8274                           haveit=yes
8275                           break
8276                         fi
8277                       done
8278                       if test -z "$haveit"; then
8279                         ltrpathdirs="$ltrpathdirs $dir"
8280                       fi
8281                     fi
8282                     ;;
8283                   -l*)
8284                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8285                     ;;
8286                   *.la)
8287                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8288                     ;;
8289                   *)
8290                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8291                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8292                     ;;
8293                 esac
8294               done
8295             fi
8296           else
8297                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8298             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8299           fi
8300         fi
8301       fi
8302     done
8303   done
8304   if test "X$rpathdirs" != "X"; then
8305     if test -n "$hardcode_libdir_separator"; then
8306                         alldirs=
8307       for found_dir in $rpathdirs; do
8308         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8309       done
8310             acl_save_libdir="$libdir"
8311       libdir="$alldirs"
8312       eval flag=\"$hardcode_libdir_flag_spec\"
8313       libdir="$acl_save_libdir"
8314       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8315     else
8316             for found_dir in $rpathdirs; do
8317         acl_save_libdir="$libdir"
8318         libdir="$found_dir"
8319         eval flag=\"$hardcode_libdir_flag_spec\"
8320         libdir="$acl_save_libdir"
8321         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8322       done
8323     fi
8324   fi
8325   if test "X$ltrpathdirs" != "X"; then
8326             for found_dir in $ltrpathdirs; do
8327       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
8328     done
8329   fi
8330
8331
8332         ac_save_CPPFLAGS="$CPPFLAGS"
8333
8334   for element in $INCEXPAT; do
8335     haveit=
8336     for x in $CPPFLAGS; do
8337
8338   acl_save_prefix="$prefix"
8339   prefix="$acl_final_prefix"
8340   acl_save_exec_prefix="$exec_prefix"
8341   exec_prefix="$acl_final_exec_prefix"
8342   eval x=\"$x\"
8343   exec_prefix="$acl_save_exec_prefix"
8344   prefix="$acl_save_prefix"
8345
8346       if test "X$x" = "X$element"; then
8347         haveit=yes
8348         break
8349       fi
8350     done
8351     if test -z "$haveit"; then
8352       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8353     fi
8354   done
8355
8356
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
8358 $as_echo_n "checking for libexpat... " >&6; }
8359 if test "${ac_cv_libexpat+set}" = set; then :
8360   $as_echo_n "(cached) " >&6
8361 else
8362
8363     ac_save_LIBS="$LIBS"
8364     LIBS="$LIBS $LIBEXPAT"
8365     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h.  */
8367 #include "expat.h"
8368 int
8369 main ()
8370 {
8371 XML_Parser p = XML_ParserCreate (0);
8372   ;
8373   return 0;
8374 }
8375 _ACEOF
8376 if ac_fn_c_try_link "$LINENO"; then :
8377   ac_cv_libexpat=yes
8378 else
8379   ac_cv_libexpat=no
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext \
8382     conftest$ac_exeext conftest.$ac_ext
8383     LIBS="$ac_save_LIBS"
8384
8385 fi
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
8387 $as_echo "$ac_cv_libexpat" >&6; }
8388   if test "$ac_cv_libexpat" = yes; then
8389     HAVE_LIBEXPAT=yes
8390
8391 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
8392
8393     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
8394 $as_echo_n "checking how to link with libexpat... " >&6; }
8395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
8396 $as_echo "$LIBEXPAT" >&6; }
8397   else
8398     HAVE_LIBEXPAT=no
8399             CPPFLAGS="$ac_save_CPPFLAGS"
8400     LIBEXPAT=
8401     LTLIBEXPAT=
8402   fi
8403
8404
8405
8406
8407
8408
8409   if test "$HAVE_LIBEXPAT" != yes; then
8410     if test "$with_expat" = yes; then
8411       as_fn_error "expat is missing or unusable" "$LINENO" 5
8412     else
8413       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
8414 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
8415     fi
8416   else
8417     save_LIBS=$LIBS
8418     LIBS="$LIBS $LIBEXPAT"
8419     for ac_func in XML_StopParser
8420 do :
8421   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
8422 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
8423   cat >>confdefs.h <<_ACEOF
8424 #define HAVE_XML_STOPPARSER 1
8425 _ACEOF
8426
8427 fi
8428 done
8429
8430     LIBS=$save_LIBS
8431   fi
8432 fi
8433
8434 # --------------------- #
8435 # Check for libpython.  #
8436 # --------------------- #
8437
8438
8439
8440
8441
8442
8443 # Check whether --with-python was given.
8444 if test "${with_python+set}" = set; then :
8445   withval=$with_python;
8446 else
8447   with_python=auto
8448 fi
8449
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
8451 $as_echo_n "checking whether to use python... " >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
8453 $as_echo "$with_python" >&6; }
8454
8455 if test "${with_python}" = no; then
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
8457 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
8458   have_libpython=no
8459 else
8460   case "${with_python}" in
8461   [\\/]* | ?:[\\/]*)
8462     if test -d ${with_python}; then
8463       # Assume the python binary is ${with_python}/bin/python.
8464       python_prog="${with_python}/bin/python"
8465       python_prefix=
8466       # If python does not exit ${with_python}/bin, then try in
8467       # ${with_python}.  On Windows/MinGW, this is where the Python
8468       # executable is.
8469       if test ! -x "${python_prog}"; then
8470         python_prog="${with_python}/python"
8471         python_prefix=
8472       fi
8473       if test ! -x "${python_prog}"; then
8474         # Fall back to gdb 7.0/7.1 behaviour.
8475         python_prog=missing
8476         python_prefix=${with_python}
8477       fi
8478     elif test -x "${with_python}"; then
8479       # While we can't run python compiled for $host (unless host == build),
8480       # the user could write a script that provides the needed information,
8481       # so we support that.
8482       python_prog=${with_python}
8483       python_prefix=
8484     else
8485       as_fn_error "invalid value for --with-python" "$LINENO" 5
8486     fi
8487     ;;
8488   */*)
8489     # Disallow --with-python=foo/bar.
8490     as_fn_error "invalid value for --with-python" "$LINENO" 5
8491     ;;
8492   *)
8493     # The user has either specified auto, yes, or the name of the python
8494     # program assumed to be in $PATH.
8495     python_prefix=
8496     case "${with_python}" in
8497     yes | auto)
8498       if test ${build} = ${host}; then
8499         # Extract the first word of "python", so it can be a program name with args.
8500 set dummy python; ac_word=$2
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8502 $as_echo_n "checking for $ac_word... " >&6; }
8503 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8504   $as_echo_n "(cached) " >&6
8505 else
8506   case $python_prog_path in
8507   [\\/]* | ?:[\\/]*)
8508   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8509   ;;
8510   *)
8511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 for as_dir in $PATH
8513 do
8514   IFS=$as_save_IFS
8515   test -z "$as_dir" && as_dir=.
8516     for ac_exec_ext in '' $ac_executable_extensions; do
8517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8518     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8520     break 2
8521   fi
8522 done
8523   done
8524 IFS=$as_save_IFS
8525
8526   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8527   ;;
8528 esac
8529 fi
8530 python_prog_path=$ac_cv_path_python_prog_path
8531 if test -n "$python_prog_path"; then
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8533 $as_echo "$python_prog_path" >&6; }
8534 else
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8537 fi
8538
8539
8540         if test "${python_prog_path}" = missing; then
8541           python_prog=missing
8542         else
8543           python_prog=${python_prog_path}
8544         fi
8545       else
8546         # Not much we can do except assume the cross-compiler will find the
8547         # right files.
8548         python_prog=missing
8549       fi
8550       ;;
8551     *)
8552       # While we can't run python compiled for $host (unless host == build),
8553       # the user could write a script that provides the needed information,
8554       # so we support that.
8555       python_prog="${with_python}"
8556       # Extract the first word of "${python_prog}", so it can be a program name with args.
8557 set dummy ${python_prog}; ac_word=$2
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 $as_echo_n "checking for $ac_word... " >&6; }
8560 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8561   $as_echo_n "(cached) " >&6
8562 else
8563   case $python_prog_path in
8564   [\\/]* | ?:[\\/]*)
8565   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8566   ;;
8567   *)
8568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8570 do
8571   IFS=$as_save_IFS
8572   test -z "$as_dir" && as_dir=.
8573     for ac_exec_ext in '' $ac_executable_extensions; do
8574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8575     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577     break 2
8578   fi
8579 done
8580   done
8581 IFS=$as_save_IFS
8582
8583   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8584   ;;
8585 esac
8586 fi
8587 python_prog_path=$ac_cv_path_python_prog_path
8588 if test -n "$python_prog_path"; then
8589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8590 $as_echo "$python_prog_path" >&6; }
8591 else
8592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8594 fi
8595
8596
8597       if test "${python_prog_path}" = missing; then
8598         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8599       fi
8600       ;;
8601     esac
8602   esac
8603
8604   if test "${python_prog}" != missing; then
8605     # We have a python program to use, but it may be too old.
8606     # Don't flag an error for --with-python=auto (the default).
8607     have_python_config=yes
8608     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8609     if test $? != 0; then
8610       have_python_config=failed
8611       if test "${with_python}" != auto; then
8612         as_fn_error "failure running python-config --includes" "$LINENO" 5
8613       fi
8614     fi
8615     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8616     if test $? != 0; then
8617       have_python_config=failed
8618       if test "${with_python}" != auto; then
8619         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8620       fi
8621     fi
8622     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8623     if test $? != 0; then
8624       have_python_config=failed
8625       if test "${with_python}" != auto; then
8626         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8627       fi
8628     fi
8629   else
8630     # We do not have a python executable we can use to determine where
8631     # to find the Python headers and libs.  We cannot guess the include
8632     # path from the python_prefix either, because that include path
8633     # depends on the Python version.  So, there is nothing much we can
8634     # do except assume that the compiler will be able to find those files.
8635     python_includes=
8636     python_libs=
8637     have_python_config=no
8638   fi
8639
8640   # If we have python-config, only try the configuration it provides.
8641   # Otherwise fallback on the old way of trying different versions of
8642   # python in turn.
8643
8644   have_libpython=no
8645   if test "${have_python_config}" = yes; then
8646     # Determine the Python version by extracting "-lpython<version>"
8647     # part of the python_libs. <version> is usually X.Y with X and Y
8648     # being decimal numbers, but can also be XY (seen on Windows).
8649     #
8650     # The extraction is performed using sed with a regular expression.
8651     # Initially, the regexp used was using the '?' quantifier to make
8652     # the dot in the version number optional.  Unfortunately, this
8653     # does not work with non-GNU versions of sed because, because of
8654     # what looks like a limitation (the '?' quantifier does not work
8655     # with back-references).  We work around this limitation by using
8656     # the '*' quantifier instead.  It means that, in theory, we might
8657     # match unexpected version strings such as "-lpython2..7", but
8658     # this seems unlikely in practice.  And even if that happens,
8659     # an error will be triggered later on, when checking that version
8660     # number.
8661     python_version=`echo " ${python_libs} " \
8662                          | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8663     case "${python_version}" in
8664     python*)
8665
8666   version=${python_version}
8667
8668   new_CPPFLAGS=${python_includes}
8669   new_LIBS=${python_libs}
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8671 $as_echo_n "checking for ${version}... " >&6; }
8672   save_CPPFLAGS=$CPPFLAGS
8673   save_LIBS=$LIBS
8674   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8675   LIBS="$LIBS $new_LIBS"
8676   found_usable_python=no
8677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h.  */
8679 #include "Python.h"
8680 int
8681 main ()
8682 {
8683 Py_Initialize ();
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 if ac_fn_c_try_link "$LINENO"; then :
8689   have_libpython=${version}
8690                   found_usable_python=yes
8691                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8692                   PYTHON_LIBS=$new_LIBS
8693 fi
8694 rm -f core conftest.err conftest.$ac_objext \
8695     conftest$ac_exeext conftest.$ac_ext
8696   CPPFLAGS=$save_CPPFLAGS
8697   LIBS=$save_LIBS
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8699 $as_echo "${found_usable_python}" >&6; }
8700
8701       ;;
8702     *)
8703       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8704       ;;
8705     esac
8706   elif test "${have_python_config}" != failed; then
8707     if test "${have_libpython}" = no; then
8708
8709   version=python2.7
8710
8711   new_CPPFLAGS=${python_includes}
8712   new_LIBS="${python_libs} -lpython2.7"
8713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8714 $as_echo_n "checking for ${version}... " >&6; }
8715   save_CPPFLAGS=$CPPFLAGS
8716   save_LIBS=$LIBS
8717   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8718   LIBS="$LIBS $new_LIBS"
8719   found_usable_python=no
8720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h.  */
8722 #include "Python.h"
8723 int
8724 main ()
8725 {
8726 Py_Initialize ();
8727   ;
8728   return 0;
8729 }
8730 _ACEOF
8731 if ac_fn_c_try_link "$LINENO"; then :
8732   have_libpython=${version}
8733                   found_usable_python=yes
8734                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8735                   PYTHON_LIBS=$new_LIBS
8736 fi
8737 rm -f core conftest.err conftest.$ac_objext \
8738     conftest$ac_exeext conftest.$ac_ext
8739   CPPFLAGS=$save_CPPFLAGS
8740   LIBS=$save_LIBS
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8742 $as_echo "${found_usable_python}" >&6; }
8743
8744     fi
8745     if test "${have_libpython}" = no; then
8746
8747   version=python2.6
8748
8749   new_CPPFLAGS=${python_includes}
8750   new_LIBS="${python_libs} -lpython2.6"
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8752 $as_echo_n "checking for ${version}... " >&6; }
8753   save_CPPFLAGS=$CPPFLAGS
8754   save_LIBS=$LIBS
8755   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8756   LIBS="$LIBS $new_LIBS"
8757   found_usable_python=no
8758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h.  */
8760 #include "Python.h"
8761 int
8762 main ()
8763 {
8764 Py_Initialize ();
8765   ;
8766   return 0;
8767 }
8768 _ACEOF
8769 if ac_fn_c_try_link "$LINENO"; then :
8770   have_libpython=${version}
8771                   found_usable_python=yes
8772                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8773                   PYTHON_LIBS=$new_LIBS
8774 fi
8775 rm -f core conftest.err conftest.$ac_objext \
8776     conftest$ac_exeext conftest.$ac_ext
8777   CPPFLAGS=$save_CPPFLAGS
8778   LIBS=$save_LIBS
8779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8780 $as_echo "${found_usable_python}" >&6; }
8781
8782     fi
8783     if test ${have_libpython} = no; then
8784
8785   version=python2.5
8786
8787   new_CPPFLAGS=${python_includes}
8788   new_LIBS="${python_libs} -lpython2.5"
8789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8790 $as_echo_n "checking for ${version}... " >&6; }
8791   save_CPPFLAGS=$CPPFLAGS
8792   save_LIBS=$LIBS
8793   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8794   LIBS="$LIBS $new_LIBS"
8795   found_usable_python=no
8796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h.  */
8798 #include "Python.h"
8799 int
8800 main ()
8801 {
8802 Py_Initialize ();
8803   ;
8804   return 0;
8805 }
8806 _ACEOF
8807 if ac_fn_c_try_link "$LINENO"; then :
8808   have_libpython=${version}
8809                   found_usable_python=yes
8810                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8811                   PYTHON_LIBS=$new_LIBS
8812 fi
8813 rm -f core conftest.err conftest.$ac_objext \
8814     conftest$ac_exeext conftest.$ac_ext
8815   CPPFLAGS=$save_CPPFLAGS
8816   LIBS=$save_LIBS
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8818 $as_echo "${found_usable_python}" >&6; }
8819
8820     fi
8821     if test ${have_libpython} = no; then
8822
8823   version=python2.4
8824
8825   new_CPPFLAGS=${python_includes}
8826   new_LIBS="${python_libs} -lpython2.4"
8827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8828 $as_echo_n "checking for ${version}... " >&6; }
8829   save_CPPFLAGS=$CPPFLAGS
8830   save_LIBS=$LIBS
8831   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8832   LIBS="$LIBS $new_LIBS"
8833   found_usable_python=no
8834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8835 /* end confdefs.h.  */
8836 #include "Python.h"
8837 int
8838 main ()
8839 {
8840 Py_Initialize ();
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 if ac_fn_c_try_link "$LINENO"; then :
8846   have_libpython=${version}
8847                   found_usable_python=yes
8848                   PYTHON_CPPFLAGS=$new_CPPFLAGS
8849                   PYTHON_LIBS=$new_LIBS
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext \
8852     conftest$ac_exeext conftest.$ac_ext
8853   CPPFLAGS=$save_CPPFLAGS
8854   LIBS=$save_LIBS
8855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8856 $as_echo "${found_usable_python}" >&6; }
8857
8858     fi
8859   fi
8860   if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8861
8862 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8863
8864   elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8865
8866 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8867
8868   elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8869
8870 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8871
8872   elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8873
8874 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8875
8876   fi
8877
8878   if test "${have_libpython}" = no; then
8879     case "${with_python}" in
8880     yes)
8881       as_fn_error "python is missing or unusable" "$LINENO" 5
8882       ;;
8883     auto)
8884       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8885 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8886       ;;
8887     *)
8888       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8889       ;;
8890     esac
8891   else
8892     if test -n "${python_prefix}"; then
8893
8894 cat >>confdefs.h <<_ACEOF
8895 #define WITH_PYTHON_PATH "${python_prefix}"
8896 _ACEOF
8897
8898
8899   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8900      if test "x$prefix" = xNONE; then
8901         test_prefix=/usr/local
8902      else
8903         test_prefix=$prefix
8904      fi
8905   else
8906      test_prefix=$exec_prefix
8907   fi
8908   value=0
8909   case ${python_prefix} in
8910      "${test_prefix}"|"${test_prefix}/"*|\
8911         '${exec_prefix}'|'${exec_prefix}/'*)
8912      value=1
8913      ;;
8914   esac
8915
8916 cat >>confdefs.h <<_ACEOF
8917 #define PYTHON_PATH_RELOCATABLE $value
8918 _ACEOF
8919
8920
8921     fi
8922   fi
8923 fi
8924
8925 if test "${have_libpython}" != no; then
8926
8927 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8928
8929   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8930   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8931   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8932   CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8933   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8934
8935   # Flags needed to compile Python code (taken from python-config --cflags).
8936   # We cannot call python-config directly because it will output whatever was
8937   # used when compiling the Python interpreter itself, including flags which
8938   # would make the python-related objects be compiled differently from the
8939   # rest of GDB (e.g., -O2 and -fPIC).
8940   if test "${GCC}" = yes; then
8941     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8942   fi
8943
8944   if test "x${tentative_python_cflags}" != x; then
8945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8946 $as_echo_n "checking compiler flags for python code... " >&6; }
8947     for flag in ${tentative_python_cflags}; do
8948       # Check that the compiler accepts it
8949       saved_CFLAGS="$CFLAGS"
8950       CFLAGS="$CFLAGS $flag"
8951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h.  */
8953
8954 int
8955 main ()
8956 {
8957
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 if ac_fn_c_try_compile "$LINENO"; then :
8963   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8966       CFLAGS="$saved_CFLAGS"
8967     done
8968     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8969 $as_echo "${PYTHON_CFLAGS}" >&6; }
8970   fi
8971
8972   # On x64 Windows, Python's include headers, and pyconfig.h in
8973   # particular, rely on MS_WIN64 macro to detect that it's a 64bit
8974   # version of Windows.  Unfortunately, MS_WIN64 is only defined if
8975   # _MSC_VER, a Microsoft-specific macro, is defined.  So, when
8976   # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
8977   # The issue was reported to the Python community, but still isn't
8978   # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
8979
8980   case "$gdb_host" in
8981     mingw64)
8982            if test "${GCC}" = yes; then
8983              CPPFLAGS="$CPPFLAGS -DMS_WIN64"
8984            fi
8985            ;;
8986   esac
8987
8988   # Note that "python -m threading" cannot be used to check for
8989   # threading support due to a bug in Python 2.7.3
8990   # (http://bugs.python.org/issue15567).
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
8992 $as_echo_n "checking whether python supports threads... " >&6; }
8993   saved_CPPFLAGS="${CPPFLAGS}"
8994   CPPFLAGS="${PYTHON_CPPFLAGS}"
8995   # Note that the test is reversed so that python_has_threads=yes on
8996   # unexpected failures.
8997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h.  */
8999
9000 #include <Python.h>
9001 #ifdef WITH_THREAD
9002 # error
9003 #endif
9004
9005 _ACEOF
9006 if ac_fn_c_try_cpp "$LINENO"; then :
9007   python_has_threads=no
9008 else
9009   python_has_threads=yes
9010 fi
9011 rm -f conftest.err conftest.$ac_ext
9012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
9013 $as_echo "${python_has_threads}" >&6; }
9014   CPPFLAGS="${saved_CPPFLAGS}"
9015 else
9016   # Even if Python support is not compiled in, we need to have this file
9017   # included so that the "python" command, et.al., still exists.
9018   CONFIG_OBS="$CONFIG_OBS python.o"
9019   CONFIG_SRCS="$CONFIG_SRCS python/python.c"
9020 fi
9021
9022
9023
9024  if test "${have_libpython}" != no; then
9025   HAVE_PYTHON_TRUE=
9026   HAVE_PYTHON_FALSE='#'
9027 else
9028   HAVE_PYTHON_TRUE='#'
9029   HAVE_PYTHON_FALSE=
9030 fi
9031
9032
9033 # -------------------- #
9034 # Check for libguile.  #
9035 # -------------------- #
9036
9037
9038
9039
9040
9041
9042 # Check whether --with-guile was given.
9043 if test "${with_guile+set}" = set; then :
9044   withval=$with_guile;
9045 else
9046   with_guile=auto
9047 fi
9048
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
9050 $as_echo_n "checking whether to use guile... " >&6; }
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
9052 $as_echo "$with_guile" >&6; }
9053
9054 # Extract the first word of "pkg-config", so it can be a program name with args.
9055 set dummy pkg-config; ac_word=$2
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9057 $as_echo_n "checking for $ac_word... " >&6; }
9058 if test "${ac_cv_path_pkg_config_prog_path+set}" = set; then :
9059   $as_echo_n "(cached) " >&6
9060 else
9061   case $pkg_config_prog_path in
9062   [\\/]* | ?:[\\/]*)
9063   ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
9064   ;;
9065   *)
9066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 for as_dir in $PATH
9068 do
9069   IFS=$as_save_IFS
9070   test -z "$as_dir" && as_dir=.
9071     for ac_exec_ext in '' $ac_executable_extensions; do
9072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9073     ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
9074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9075     break 2
9076   fi
9077 done
9078   done
9079 IFS=$as_save_IFS
9080
9081   test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
9082   ;;
9083 esac
9084 fi
9085 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
9086 if test -n "$pkg_config_prog_path"; then
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
9088 $as_echo "$pkg_config_prog_path" >&6; }
9089 else
9090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091 $as_echo "no" >&6; }
9092 fi
9093
9094
9095
9096 try_guile_versions="guile-2.2 guile-2.0"
9097 have_libguile=no
9098 case "${with_guile}" in
9099 no)
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
9101 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
9102   ;;
9103 auto)
9104   if test "${pkg_config_prog_path}" = "missing"; then
9105     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
9106 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
9107   else
9108
9109   pkg_config=${pkg_config_prog_path}
9110   guile_version_list=${try_guile_versions}
9111   flag_errors=no
9112
9113   found_usable_guile=checking
9114   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9115 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9116   for guile_version in ${guile_version_list}; do
9117     ${pkg_config} --exists ${guile_version} 2>/dev/null
9118     if test $? != 0; then
9119       continue
9120     fi
9121             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9122     if test $? != 0; then
9123       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9124     fi
9125     new_LIBS=`${pkg_config} --libs ${guile_version}`
9126     if test $? != 0; then
9127       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9128     fi
9129         found_usable_guile=${guile_version}
9130     break
9131   done
9132   if test "${found_usable_guile}" = "checking"; then
9133     if test "${flag_errors}" = "yes"; then
9134       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9135     else
9136       found_usable_guile=no
9137     fi
9138   fi
9139       if test "${found_usable_guile}" != no; then
9140     save_CPPFLAGS=$CPPFLAGS
9141     save_LIBS=$LIBS
9142     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9143     LIBS="$LIBS $new_LIBS"
9144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h.  */
9146 #include "libguile.h"
9147 int
9148 main ()
9149 {
9150 scm_init_guile ();
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"; then :
9156   have_libguile=yes
9157                     GUILE_CPPFLAGS=$new_CPPFLAGS
9158                     GUILE_LIBS=$new_LIBS
9159 else
9160   found_usable_guile=no
9161 fi
9162 rm -f core conftest.err conftest.$ac_objext \
9163     conftest$ac_exeext conftest.$ac_ext
9164         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9165 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9166
9167 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9168
9169
9170 fi
9171
9172     CPPFLAGS=$save_CPPFLAGS
9173     LIBS=$save_LIBS
9174     if test "${found_usable_guile}" = no; then
9175       if test "${flag_errors}" = yes; then
9176         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9178 as_fn_error "linking guile version ${guile_version} test program failed
9179 See \`config.log' for more details." "$LINENO" 5; }
9180       fi
9181     fi
9182   fi
9183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9184 $as_echo "${found_usable_guile}" >&6; }
9185
9186   fi
9187   ;;
9188 yes)
9189   if test "${pkg_config_prog_path}" = "missing"; then
9190     as_fn_error "pkg-config not found" "$LINENO" 5
9191   fi
9192
9193   pkg_config=${pkg_config_prog_path}
9194   guile_version_list=${try_guile_versions}
9195   flag_errors=yes
9196
9197   found_usable_guile=checking
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9199 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9200   for guile_version in ${guile_version_list}; do
9201     ${pkg_config} --exists ${guile_version} 2>/dev/null
9202     if test $? != 0; then
9203       continue
9204     fi
9205             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9206     if test $? != 0; then
9207       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9208     fi
9209     new_LIBS=`${pkg_config} --libs ${guile_version}`
9210     if test $? != 0; then
9211       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9212     fi
9213         found_usable_guile=${guile_version}
9214     break
9215   done
9216   if test "${found_usable_guile}" = "checking"; then
9217     if test "${flag_errors}" = "yes"; then
9218       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9219     else
9220       found_usable_guile=no
9221     fi
9222   fi
9223       if test "${found_usable_guile}" != no; then
9224     save_CPPFLAGS=$CPPFLAGS
9225     save_LIBS=$LIBS
9226     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9227     LIBS="$LIBS $new_LIBS"
9228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h.  */
9230 #include "libguile.h"
9231 int
9232 main ()
9233 {
9234 scm_init_guile ();
9235   ;
9236   return 0;
9237 }
9238 _ACEOF
9239 if ac_fn_c_try_link "$LINENO"; then :
9240   have_libguile=yes
9241                     GUILE_CPPFLAGS=$new_CPPFLAGS
9242                     GUILE_LIBS=$new_LIBS
9243 else
9244   found_usable_guile=no
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext \
9247     conftest$ac_exeext conftest.$ac_ext
9248         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9249 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9250
9251 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9252
9253
9254 fi
9255
9256     CPPFLAGS=$save_CPPFLAGS
9257     LIBS=$save_LIBS
9258     if test "${found_usable_guile}" = no; then
9259       if test "${flag_errors}" = yes; then
9260         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9262 as_fn_error "linking guile version ${guile_version} test program failed
9263 See \`config.log' for more details." "$LINENO" 5; }
9264       fi
9265     fi
9266   fi
9267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9268 $as_echo "${found_usable_guile}" >&6; }
9269
9270   ;;
9271 [\\/]* | ?:[\\/]*)
9272   if test -x "${with_guile}"; then
9273
9274   pkg_config=${with_guile}
9275   guile_version_list=${try_guile_versions}
9276   flag_errors=yes
9277
9278   found_usable_guile=checking
9279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9280 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9281   for guile_version in ${guile_version_list}; do
9282     ${pkg_config} --exists ${guile_version} 2>/dev/null
9283     if test $? != 0; then
9284       continue
9285     fi
9286             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9287     if test $? != 0; then
9288       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9289     fi
9290     new_LIBS=`${pkg_config} --libs ${guile_version}`
9291     if test $? != 0; then
9292       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9293     fi
9294         found_usable_guile=${guile_version}
9295     break
9296   done
9297   if test "${found_usable_guile}" = "checking"; then
9298     if test "${flag_errors}" = "yes"; then
9299       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9300     else
9301       found_usable_guile=no
9302     fi
9303   fi
9304       if test "${found_usable_guile}" != no; then
9305     save_CPPFLAGS=$CPPFLAGS
9306     save_LIBS=$LIBS
9307     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9308     LIBS="$LIBS $new_LIBS"
9309     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h.  */
9311 #include "libguile.h"
9312 int
9313 main ()
9314 {
9315 scm_init_guile ();
9316   ;
9317   return 0;
9318 }
9319 _ACEOF
9320 if ac_fn_c_try_link "$LINENO"; then :
9321   have_libguile=yes
9322                     GUILE_CPPFLAGS=$new_CPPFLAGS
9323                     GUILE_LIBS=$new_LIBS
9324 else
9325   found_usable_guile=no
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext \
9328     conftest$ac_exeext conftest.$ac_ext
9329         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9330 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9331
9332 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9333
9334
9335 fi
9336
9337     CPPFLAGS=$save_CPPFLAGS
9338     LIBS=$save_LIBS
9339     if test "${found_usable_guile}" = no; then
9340       if test "${flag_errors}" = yes; then
9341         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9343 as_fn_error "linking guile version ${guile_version} test program failed
9344 See \`config.log' for more details." "$LINENO" 5; }
9345       fi
9346     fi
9347   fi
9348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9349 $as_echo "${found_usable_guile}" >&6; }
9350
9351   else
9352     as_fn_error "Guile config program not executable: ${with_guile}" "$LINENO" 5
9353   fi
9354   ;;
9355 "" | */*)
9356   # Disallow --with=guile="" and --with-guile=foo/bar.
9357   as_fn_error "invalid value for --with-guile" "$LINENO" 5
9358   ;;
9359 *)
9360   # A space separate list of guile versions to try, in order.
9361   if test "${pkg_config_prog_path}" = "missing"; then
9362     as_fn_error "pkg-config not found" "$LINENO" 5
9363   fi
9364
9365   pkg_config=${pkg_config_prog_path}
9366   guile_version_list=${with_guile}
9367   flag_errors=yes
9368
9369   found_usable_guile=checking
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
9371 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
9372   for guile_version in ${guile_version_list}; do
9373     ${pkg_config} --exists ${guile_version} 2>/dev/null
9374     if test $? != 0; then
9375       continue
9376     fi
9377             new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
9378     if test $? != 0; then
9379       as_fn_error "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
9380     fi
9381     new_LIBS=`${pkg_config} --libs ${guile_version}`
9382     if test $? != 0; then
9383       as_fn_error "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
9384     fi
9385         found_usable_guile=${guile_version}
9386     break
9387   done
9388   if test "${found_usable_guile}" = "checking"; then
9389     if test "${flag_errors}" = "yes"; then
9390       as_fn_error "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
9391     else
9392       found_usable_guile=no
9393     fi
9394   fi
9395       if test "${found_usable_guile}" != no; then
9396     save_CPPFLAGS=$CPPFLAGS
9397     save_LIBS=$LIBS
9398     CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
9399     LIBS="$LIBS $new_LIBS"
9400     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h.  */
9402 #include "libguile.h"
9403 int
9404 main ()
9405 {
9406 scm_init_guile ();
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 if ac_fn_c_try_link "$LINENO"; then :
9412   have_libguile=yes
9413                     GUILE_CPPFLAGS=$new_CPPFLAGS
9414                     GUILE_LIBS=$new_LIBS
9415 else
9416   found_usable_guile=no
9417 fi
9418 rm -f core conftest.err conftest.$ac_objext \
9419     conftest$ac_exeext conftest.$ac_ext
9420         ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
9421 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = x""yes; then :
9422
9423 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
9424
9425
9426 fi
9427
9428     CPPFLAGS=$save_CPPFLAGS
9429     LIBS=$save_LIBS
9430     if test "${found_usable_guile}" = no; then
9431       if test "${flag_errors}" = yes; then
9432         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9434 as_fn_error "linking guile version ${guile_version} test program failed
9435 See \`config.log' for more details." "$LINENO" 5; }
9436       fi
9437     fi
9438   fi
9439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
9440 $as_echo "${found_usable_guile}" >&6; }
9441
9442   ;;
9443 esac
9444
9445 if test "${have_libguile}" != no; then
9446     case "${with_guile}" in
9447   [\\/]* | ?:[\\/]*)
9448
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9450 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9451 if test "${ac_cv_guild_program_name+set}" = set; then :
9452   $as_echo_n "(cached) " >&6
9453 else
9454   ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
9455
9456      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9457      # the 'guild' and 'bindir' variables.  In that case, try to guess
9458      # what the program name is, at the risk of getting it wrong if
9459      # Guile was configured with '--program-suffix' or similar.
9460      if test "x$ac_cv_guild_program_name" = "x"; then
9461        guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
9462        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9463      fi
9464
9465 fi
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9467 $as_echo "$ac_cv_guild_program_name" >&6; }
9468
9469   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9470     as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9471   fi
9472
9473   GUILD="$ac_cv_guild_program_name"
9474
9475
9476     ;;
9477   *)
9478
9479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
9480 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
9481 if test "${ac_cv_guild_program_name+set}" = set; then :
9482   $as_echo_n "(cached) " >&6
9483 else
9484   ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
9485
9486      # In Guile up to 2.0.11 included, guile-2.0.pc would not define
9487      # the 'guild' and 'bindir' variables.  In that case, try to guess
9488      # what the program name is, at the risk of getting it wrong if
9489      # Guile was configured with '--program-suffix' or similar.
9490      if test "x$ac_cv_guild_program_name" = "x"; then
9491        guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
9492        ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
9493      fi
9494
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
9497 $as_echo "$ac_cv_guild_program_name" >&6; }
9498
9499   if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
9500     as_fn_error "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
9501   fi
9502
9503   GUILD="$ac_cv_guild_program_name"
9504
9505
9506     ;;
9507   esac
9508
9509
9510   if test "$cross_compiling" = no; then
9511     GUILD_TARGET_FLAG=
9512   else
9513     GUILD_TARGET_FLAG="--target=$host"
9514   fi
9515
9516
9517
9518
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
9520 $as_echo_n "checking whether guild supports this host... " >&6; }
9521 if test "${ac_cv_guild_ok+set}" = set; then :
9522   $as_echo_n "(cached) " >&6
9523 else
9524   echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
9525      if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
9526        ac_cv_guild_ok=yes
9527      else
9528        ac_cv_guild_ok=no
9529      fi
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
9532 $as_echo "$ac_cv_guild_ok" >&6; }
9533
9534     if test "$ac_cv_guild_ok" = no; then
9535     have_libguile=no
9536     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
9537 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
9538   fi
9539 fi
9540
9541 if test "${have_libguile}" != no; then
9542
9543 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
9544
9545   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
9546   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
9547   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
9548   CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
9549   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
9550
9551     save_LIBS="$LIBS"
9552   save_CPPFLAGS="$CPPFLAGS"
9553   LIBS="$GUILE_LIBS"
9554   CPPFLAGS="$GUILE_CPPFLAGS"
9555   for ac_func in scm_new_smob
9556 do :
9557   ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
9558 if test "x$ac_cv_func_scm_new_smob" = x""yes; then :
9559   cat >>confdefs.h <<_ACEOF
9560 #define HAVE_SCM_NEW_SMOB 1
9561 _ACEOF
9562
9563 fi
9564 done
9565
9566   LIBS="$save_LIBS"
9567   CPPFLAGS="$save_CPPFLAGS"
9568 else
9569   # Even if Guile support is not compiled in, we need to have these files
9570   # included.
9571   CONFIG_OBS="$CONFIG_OBS guile.o"
9572   CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
9573 fi
9574
9575
9576  if test "${have_libguile}" != no; then
9577   HAVE_GUILE_TRUE=
9578   HAVE_GUILE_FALSE='#'
9579 else
9580   HAVE_GUILE_TRUE='#'
9581   HAVE_GUILE_FALSE=
9582 fi
9583
9584
9585 # --------------------- #
9586 # Check for libmcheck.  #
9587 # --------------------- #
9588
9589 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
9590 # but turn it off if Python is enabled with threads, since -lmcheck is
9591 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
9592 # and for releases.
9593 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
9594    && $development; then
9595   libmcheck_default=yes
9596 else
9597   libmcheck_default=no
9598 fi
9599
9600   # Check whether --enable-libmcheck was given.
9601 if test "${enable_libmcheck+set}" = set; then :
9602   enableval=$enable_libmcheck; case "${enableval}" in
9603       yes | y) ENABLE_LIBMCHECK="yes" ;;
9604       no | n)  ENABLE_LIBMCHECK="no" ;;
9605       *) as_fn_error "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
9606     esac
9607 fi
9608
9609
9610   if test -z "${ENABLE_LIBMCHECK}"; then
9611     ENABLE_LIBMCHECK=${libmcheck_default}
9612   fi
9613
9614   if test "$ENABLE_LIBMCHECK" = "yes" ; then
9615     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
9616 $as_echo_n "checking for main in -lmcheck... " >&6; }
9617 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
9618   $as_echo_n "(cached) " >&6
9619 else
9620   ac_check_lib_save_LIBS=$LIBS
9621 LIBS="-lmcheck  $LIBS"
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h.  */
9624
9625
9626 int
9627 main ()
9628 {
9629 return main ();
9630   ;
9631   return 0;
9632 }
9633 _ACEOF
9634 if ac_fn_c_try_link "$LINENO"; then :
9635   ac_cv_lib_mcheck_main=yes
9636 else
9637   ac_cv_lib_mcheck_main=no
9638 fi
9639 rm -f core conftest.err conftest.$ac_objext \
9640     conftest$ac_exeext conftest.$ac_ext
9641 LIBS=$ac_check_lib_save_LIBS
9642 fi
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
9644 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
9645 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
9646   cat >>confdefs.h <<_ACEOF
9647 #define HAVE_LIBMCHECK 1
9648 _ACEOF
9649
9650   LIBS="-lmcheck $LIBS"
9651
9652 fi
9653
9654   fi
9655
9656
9657 if test "$ENABLE_LIBMCHECK" = "yes" \
9658         -a "${have_libpython}" != "no" \
9659         -a "${python_has_threads}" = "yes" ; then
9660   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
9661 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
9662 fi
9663
9664 # ------------------------- #
9665 # Checks for header files.  #
9666 # ------------------------- #
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9669 $as_echo_n "checking for ANSI C header files... " >&6; }
9670 if test "${ac_cv_header_stdc+set}" = set; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h.  */
9675 #include <stdlib.h>
9676 #include <stdarg.h>
9677 #include <string.h>
9678 #include <float.h>
9679
9680 int
9681 main ()
9682 {
9683
9684   ;
9685   return 0;
9686 }
9687 _ACEOF
9688 if ac_fn_c_try_compile "$LINENO"; then :
9689   ac_cv_header_stdc=yes
9690 else
9691   ac_cv_header_stdc=no
9692 fi
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694
9695 if test $ac_cv_header_stdc = yes; then
9696   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698 /* end confdefs.h.  */
9699 #include <string.h>
9700
9701 _ACEOF
9702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9703   $EGREP "memchr" >/dev/null 2>&1; then :
9704
9705 else
9706   ac_cv_header_stdc=no
9707 fi
9708 rm -f conftest*
9709
9710 fi
9711
9712 if test $ac_cv_header_stdc = yes; then
9713   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h.  */
9716 #include <stdlib.h>
9717
9718 _ACEOF
9719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9720   $EGREP "free" >/dev/null 2>&1; then :
9721
9722 else
9723   ac_cv_header_stdc=no
9724 fi
9725 rm -f conftest*
9726
9727 fi
9728
9729 if test $ac_cv_header_stdc = yes; then
9730   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9731   if test "$cross_compiling" = yes; then :
9732   :
9733 else
9734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h.  */
9736 #include <ctype.h>
9737 #include <stdlib.h>
9738 #if ((' ' & 0x0FF) == 0x020)
9739 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9740 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9741 #else
9742 # define ISLOWER(c) \
9743                    (('a' <= (c) && (c) <= 'i') \
9744                      || ('j' <= (c) && (c) <= 'r') \
9745                      || ('s' <= (c) && (c) <= 'z'))
9746 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9747 #endif
9748
9749 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9750 int
9751 main ()
9752 {
9753   int i;
9754   for (i = 0; i < 256; i++)
9755     if (XOR (islower (i), ISLOWER (i))
9756         || toupper (i) != TOUPPER (i))
9757       return 2;
9758   return 0;
9759 }
9760 _ACEOF
9761 if ac_fn_c_try_run "$LINENO"; then :
9762
9763 else
9764   ac_cv_header_stdc=no
9765 fi
9766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9767   conftest.$ac_objext conftest.beam conftest.$ac_ext
9768 fi
9769
9770 fi
9771 fi
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9773 $as_echo "$ac_cv_header_stdc" >&6; }
9774 if test $ac_cv_header_stdc = yes; then
9775
9776 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9777
9778 fi
9779
9780 # elf_hp.h is for HP/UX 64-bit shared library support.
9781 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
9782                   thread_db.h \
9783                   sys/fault.h \
9784                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
9785                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
9786                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
9787                   termios.h termio.h \
9788                   sgtty.h elf_hp.h \
9789                   dlfcn.h
9790 do :
9791   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9793 eval as_val=\$$as_ac_Header
9794    if test "x$as_val" = x""yes; then :
9795   cat >>confdefs.h <<_ACEOF
9796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9797 _ACEOF
9798
9799 fi
9800
9801 done
9802
9803 for ac_header in sys/proc.h
9804 do :
9805   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9806 # include <sys/param.h>
9807 #endif
9808
9809 "
9810 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
9811   cat >>confdefs.h <<_ACEOF
9812 #define HAVE_SYS_PROC_H 1
9813 _ACEOF
9814
9815 fi
9816
9817 done
9818
9819 for ac_header in sys/user.h
9820 do :
9821   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9822 # include <sys/param.h>
9823 #endif
9824
9825 "
9826 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
9827   cat >>confdefs.h <<_ACEOF
9828 #define HAVE_SYS_USER_H 1
9829 _ACEOF
9830
9831 fi
9832
9833 done
9834
9835
9836 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9837 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9838 # think that we don't have <curses.h> if we're using GCC.
9839 case $host_os in
9840   solaris2.[789])
9841     if test "$GCC" = yes; then
9842
9843 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9844
9845     fi ;;
9846 esac
9847 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
9848 do :
9849   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9850 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9851 eval as_val=\$$as_ac_Header
9852    if test "x$as_val" = x""yes; then :
9853   cat >>confdefs.h <<_ACEOF
9854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9855 _ACEOF
9856
9857 fi
9858
9859 done
9860
9861 for ac_header in term.h
9862 do :
9863   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9864 # include <curses.h>
9865 #endif
9866
9867 "
9868 if test "x$ac_cv_header_term_h" = x""yes; then :
9869   cat >>confdefs.h <<_ACEOF
9870 #define HAVE_TERM_H 1
9871 _ACEOF
9872
9873 fi
9874
9875 done
9876
9877
9878 # ------------------------- #
9879 # Checks for declarations.  #
9880 # ------------------------- #
9881
9882
9883   # Check for presence and size of long long.
9884   ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
9885 if test "x$ac_cv_type_long_long" = x""yes; then :
9886
9887 cat >>confdefs.h <<_ACEOF
9888 #define HAVE_LONG_LONG 1
9889 _ACEOF
9890
9891 # The cast to long int works around a bug in the HP C Compiler
9892 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9893 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9894 # This bug is HP SR number 8606223364.
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
9896 $as_echo_n "checking size of long long... " >&6; }
9897 if test "${ac_cv_sizeof_long_long+set}" = set; then :
9898   $as_echo_n "(cached) " >&6
9899 else
9900   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
9901
9902 else
9903   if test "$ac_cv_type_long_long" = yes; then
9904      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9906 { as_fn_set_status 77
9907 as_fn_error "cannot compute sizeof (long long)
9908 See \`config.log' for more details." "$LINENO" 5; }; }
9909    else
9910      ac_cv_sizeof_long_long=0
9911    fi
9912 fi
9913
9914 fi
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
9916 $as_echo "$ac_cv_sizeof_long_long" >&6; }
9917
9918
9919
9920 cat >>confdefs.h <<_ACEOF
9921 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9922 _ACEOF
9923
9924
9925 fi
9926
9927
9928   ac_fn_c_check_decl "$LINENO" "basename(char *)" "ac_cv_have_decl_basename_char_p_" "$ac_includes_default"
9929 if test "x$ac_cv_have_decl_basename_char_p_" = x""yes; then :
9930   ac_have_decl=1
9931 else
9932   ac_have_decl=0
9933 fi
9934
9935 cat >>confdefs.h <<_ACEOF
9936 #define HAVE_DECL_BASENAME $ac_have_decl
9937 _ACEOF
9938 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
9939 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
9940   ac_have_decl=1
9941 else
9942   ac_have_decl=0
9943 fi
9944
9945 cat >>confdefs.h <<_ACEOF
9946 #define HAVE_DECL_FFS $ac_have_decl
9947 _ACEOF
9948 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
9949 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
9950   ac_have_decl=1
9951 else
9952   ac_have_decl=0
9953 fi
9954
9955 cat >>confdefs.h <<_ACEOF
9956 #define HAVE_DECL_ASPRINTF $ac_have_decl
9957 _ACEOF
9958 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
9959 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
9960   ac_have_decl=1
9961 else
9962   ac_have_decl=0
9963 fi
9964
9965 cat >>confdefs.h <<_ACEOF
9966 #define HAVE_DECL_VASPRINTF $ac_have_decl
9967 _ACEOF
9968 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9969 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9970   ac_have_decl=1
9971 else
9972   ac_have_decl=0
9973 fi
9974
9975 cat >>confdefs.h <<_ACEOF
9976 #define HAVE_DECL_SNPRINTF $ac_have_decl
9977 _ACEOF
9978 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9979 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
9980   ac_have_decl=1
9981 else
9982   ac_have_decl=0
9983 fi
9984
9985 cat >>confdefs.h <<_ACEOF
9986 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9987 _ACEOF
9988
9989   ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
9990 if test "x$ac_cv_have_decl_strtol" = x""yes; then :
9991   ac_have_decl=1
9992 else
9993   ac_have_decl=0
9994 fi
9995
9996 cat >>confdefs.h <<_ACEOF
9997 #define HAVE_DECL_STRTOL $ac_have_decl
9998 _ACEOF
9999 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
10000 if test "x$ac_cv_have_decl_strtoul" = x""yes; then :
10001   ac_have_decl=1
10002 else
10003   ac_have_decl=0
10004 fi
10005
10006 cat >>confdefs.h <<_ACEOF
10007 #define HAVE_DECL_STRTOUL $ac_have_decl
10008 _ACEOF
10009 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
10010 if test "x$ac_cv_have_decl_strtoll" = x""yes; then :
10011   ac_have_decl=1
10012 else
10013   ac_have_decl=0
10014 fi
10015
10016 cat >>confdefs.h <<_ACEOF
10017 #define HAVE_DECL_STRTOLL $ac_have_decl
10018 _ACEOF
10019 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
10020 if test "x$ac_cv_have_decl_strtoull" = x""yes; then :
10021   ac_have_decl=1
10022 else
10023   ac_have_decl=0
10024 fi
10025
10026 cat >>confdefs.h <<_ACEOF
10027 #define HAVE_DECL_STRTOULL $ac_have_decl
10028 _ACEOF
10029
10030   ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
10031 if test "x$ac_cv_have_decl_strverscmp" = x""yes; then :
10032   ac_have_decl=1
10033 else
10034   ac_have_decl=0
10035 fi
10036
10037 cat >>confdefs.h <<_ACEOF
10038 #define HAVE_DECL_STRVERSCMP $ac_have_decl
10039 _ACEOF
10040
10041
10042
10043 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
10044 if test "x$ac_cv_have_decl_free" = x""yes; then :
10045   ac_have_decl=1
10046 else
10047   ac_have_decl=0
10048 fi
10049
10050 cat >>confdefs.h <<_ACEOF
10051 #define HAVE_DECL_FREE $ac_have_decl
10052 _ACEOF
10053 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
10054 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
10055   ac_have_decl=1
10056 else
10057   ac_have_decl=0
10058 fi
10059
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_DECL_MALLOC $ac_have_decl
10062 _ACEOF
10063 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
10064 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
10065   ac_have_decl=1
10066 else
10067   ac_have_decl=0
10068 fi
10069
10070 cat >>confdefs.h <<_ACEOF
10071 #define HAVE_DECL_REALLOC $ac_have_decl
10072 _ACEOF
10073 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
10074 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
10075   ac_have_decl=1
10076 else
10077   ac_have_decl=0
10078 fi
10079
10080 cat >>confdefs.h <<_ACEOF
10081 #define HAVE_DECL_SNPRINTF $ac_have_decl
10082 _ACEOF
10083
10084
10085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10086 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10087 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
10088   $as_echo_n "(cached) " >&6
10089 else
10090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h.  */
10092 #include <locale.h>
10093 int
10094 main ()
10095 {
10096 return LC_MESSAGES
10097   ;
10098   return 0;
10099 }
10100 _ACEOF
10101 if ac_fn_c_try_link "$LINENO"; then :
10102   am_cv_val_LC_MESSAGES=yes
10103 else
10104   am_cv_val_LC_MESSAGES=no
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext \
10107     conftest$ac_exeext conftest.$ac_ext
10108 fi
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
10110 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10111   if test $am_cv_val_LC_MESSAGES = yes; then
10112
10113 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10114
10115   fi
10116
10117
10118 # ----------------------- #
10119 # Checks for structures.  #
10120 # ----------------------- #
10121
10122 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
10123 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
10124
10125 cat >>confdefs.h <<_ACEOF
10126 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10127 _ACEOF
10128
10129
10130 fi
10131 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
10132 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
10133
10134 cat >>confdefs.h <<_ACEOF
10135 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10136 _ACEOF
10137
10138
10139 fi
10140
10141
10142 # ------------------ #
10143 # Checks for types.  #
10144 # ------------------ #
10145
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10147 $as_echo_n "checking return type of signal handlers... " >&6; }
10148 if test "${ac_cv_type_signal+set}" = set; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10152 /* end confdefs.h.  */
10153 #include <sys/types.h>
10154 #include <signal.h>
10155
10156 int
10157 main ()
10158 {
10159 return *(signal (0, 0)) (0) == 1;
10160   ;
10161   return 0;
10162 }
10163 _ACEOF
10164 if ac_fn_c_try_compile "$LINENO"; then :
10165   ac_cv_type_signal=int
10166 else
10167   ac_cv_type_signal=void
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: $ac_cv_type_signal" >&5
10172 $as_echo "$ac_cv_type_signal" >&6; }
10173
10174 cat >>confdefs.h <<_ACEOF
10175 #define RETSIGTYPE $ac_cv_type_signal
10176 _ACEOF
10177
10178
10179 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
10180 #include <sys/socket.h>
10181
10182 "
10183 if test "x$ac_cv_type_socklen_t" = x""yes; then :
10184
10185 cat >>confdefs.h <<_ACEOF
10186 #define HAVE_SOCKLEN_T 1
10187 _ACEOF
10188
10189
10190 fi
10191
10192
10193 # ------------------------------------- #
10194 # Checks for compiler characteristics.  #
10195 # ------------------------------------- #
10196
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10198 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10199 if test "${ac_cv_c_const+set}" = set; then :
10200   $as_echo_n "(cached) " >&6
10201 else
10202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h.  */
10204
10205 int
10206 main ()
10207 {
10208 /* FIXME: Include the comments suggested by Paul. */
10209 #ifndef __cplusplus
10210   /* Ultrix mips cc rejects this.  */
10211   typedef int charset[2];
10212   const charset cs;
10213   /* SunOS 4.1.1 cc rejects this.  */
10214   char const *const *pcpcc;
10215   char **ppc;
10216   /* NEC SVR4.0.2 mips cc rejects this.  */
10217   struct point {int x, y;};
10218   static struct point const zero = {0,0};
10219   /* AIX XL C 1.02.0.0 rejects this.
10220      It does not let you subtract one const X* pointer from another in
10221      an arm of an if-expression whose if-part is not a constant
10222      expression */
10223   const char *g = "string";
10224   pcpcc = &g + (g ? g-g : 0);
10225   /* HPUX 7.0 cc rejects these. */
10226   ++pcpcc;
10227   ppc = (char**) pcpcc;
10228   pcpcc = (char const *const *) ppc;
10229   { /* SCO 3.2v4 cc rejects this.  */
10230     char *t;
10231     char const *s = 0 ? (char *) 0 : (char const *) 0;
10232
10233     *t++ = 0;
10234     if (s) return 0;
10235   }
10236   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10237     int x[] = {25, 17};
10238     const int *foo = &x[0];
10239     ++foo;
10240   }
10241   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10242     typedef const int *iptr;
10243     iptr p = 0;
10244     ++p;
10245   }
10246   { /* AIX XL C 1.02.0.0 rejects this saying
10247        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10248     struct s { int j; const int *ap[3]; };
10249     struct s *b; b->j = 5;
10250   }
10251   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10252     const int foo = 10;
10253     if (!foo) return 0;
10254   }
10255   return !cs[0] && !zero.x;
10256 #endif
10257
10258   ;
10259   return 0;
10260 }
10261 _ACEOF
10262 if ac_fn_c_try_compile "$LINENO"; then :
10263   ac_cv_c_const=yes
10264 else
10265   ac_cv_c_const=no
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 fi
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10270 $as_echo "$ac_cv_c_const" >&6; }
10271 if test $ac_cv_c_const = no; then
10272
10273 $as_echo "#define const /**/" >>confdefs.h
10274
10275 fi
10276
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10278 $as_echo_n "checking for inline... " >&6; }
10279 if test "${ac_cv_c_inline+set}" = set; then :
10280   $as_echo_n "(cached) " >&6
10281 else
10282   ac_cv_c_inline=no
10283 for ac_kw in inline __inline__ __inline; do
10284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10285 /* end confdefs.h.  */
10286 #ifndef __cplusplus
10287 typedef int foo_t;
10288 static $ac_kw foo_t static_foo () {return 0; }
10289 $ac_kw foo_t foo () {return 0; }
10290 #endif
10291
10292 _ACEOF
10293 if ac_fn_c_try_compile "$LINENO"; then :
10294   ac_cv_c_inline=$ac_kw
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297   test "$ac_cv_c_inline" != no && break
10298 done
10299
10300 fi
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10302 $as_echo "$ac_cv_c_inline" >&6; }
10303
10304 case $ac_cv_c_inline in
10305   inline | yes) ;;
10306   *)
10307     case $ac_cv_c_inline in
10308       no) ac_val=;;
10309       *) ac_val=$ac_cv_c_inline;;
10310     esac
10311     cat >>confdefs.h <<_ACEOF
10312 #ifndef __cplusplus
10313 #define inline $ac_val
10314 #endif
10315 _ACEOF
10316     ;;
10317 esac
10318
10319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10320 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10321 if test "${ac_cv_c_bigendian+set}" = set; then :
10322   $as_echo_n "(cached) " >&6
10323 else
10324   ac_cv_c_bigendian=unknown
10325     # See if we're dealing with a universal compiler.
10326     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327 /* end confdefs.h.  */
10328 #ifndef __APPLE_CC__
10329                not a universal capable compiler
10330              #endif
10331              typedef int dummy;
10332
10333 _ACEOF
10334 if ac_fn_c_try_compile "$LINENO"; then :
10335
10336         # Check for potential -arch flags.  It is not universal unless
10337         # there are at least two -arch flags with different values.
10338         ac_arch=
10339         ac_prev=
10340         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10341          if test -n "$ac_prev"; then
10342            case $ac_word in
10343              i?86 | x86_64 | ppc | ppc64)
10344                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10345                  ac_arch=$ac_word
10346                else
10347                  ac_cv_c_bigendian=universal
10348                  break
10349                fi
10350                ;;
10351            esac
10352            ac_prev=
10353          elif test "x$ac_word" = "x-arch"; then
10354            ac_prev=arch
10355          fi
10356        done
10357 fi
10358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10359     if test $ac_cv_c_bigendian = unknown; then
10360       # See if sys/param.h defines the BYTE_ORDER macro.
10361       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h.  */
10363 #include <sys/types.h>
10364              #include <sys/param.h>
10365
10366 int
10367 main ()
10368 {
10369 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10370                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10371                      && LITTLE_ENDIAN)
10372               bogus endian macros
10373              #endif
10374
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 if ac_fn_c_try_compile "$LINENO"; then :
10380   # It does; now see whether it defined to BIG_ENDIAN or not.
10381          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h.  */
10383 #include <sys/types.h>
10384                 #include <sys/param.h>
10385
10386 int
10387 main ()
10388 {
10389 #if BYTE_ORDER != BIG_ENDIAN
10390                  not big endian
10391                 #endif
10392
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 if ac_fn_c_try_compile "$LINENO"; then :
10398   ac_cv_c_bigendian=yes
10399 else
10400   ac_cv_c_bigendian=no
10401 fi
10402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10405     fi
10406     if test $ac_cv_c_bigendian = unknown; then
10407       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10408       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h.  */
10410 #include <limits.h>
10411
10412 int
10413 main ()
10414 {
10415 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10416               bogus endian macros
10417              #endif
10418
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 if ac_fn_c_try_compile "$LINENO"; then :
10424   # It does; now see whether it defined to _BIG_ENDIAN or not.
10425          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h.  */
10427 #include <limits.h>
10428
10429 int
10430 main ()
10431 {
10432 #ifndef _BIG_ENDIAN
10433                  not big endian
10434                 #endif
10435
10436   ;
10437   return 0;
10438 }
10439 _ACEOF
10440 if ac_fn_c_try_compile "$LINENO"; then :
10441   ac_cv_c_bigendian=yes
10442 else
10443   ac_cv_c_bigendian=no
10444 fi
10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446 fi
10447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10448     fi
10449     if test $ac_cv_c_bigendian = unknown; then
10450       # Compile a test program.
10451       if test "$cross_compiling" = yes; then :
10452   # Try to guess by grepping values from an object file.
10453          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h.  */
10455 short int ascii_mm[] =
10456                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10457                 short int ascii_ii[] =
10458                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10459                 int use_ascii (int i) {
10460                   return ascii_mm[i] + ascii_ii[i];
10461                 }
10462                 short int ebcdic_ii[] =
10463                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10464                 short int ebcdic_mm[] =
10465                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10466                 int use_ebcdic (int i) {
10467                   return ebcdic_mm[i] + ebcdic_ii[i];
10468                 }
10469                 extern int foo;
10470
10471 int
10472 main ()
10473 {
10474 return use_ascii (foo) == use_ebcdic (foo);
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_compile "$LINENO"; then :
10480   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10481               ac_cv_c_bigendian=yes
10482             fi
10483             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10484               if test "$ac_cv_c_bigendian" = unknown; then
10485                 ac_cv_c_bigendian=no
10486               else
10487                 # finding both strings is unlikely to happen, but who knows?
10488                 ac_cv_c_bigendian=unknown
10489               fi
10490             fi
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 else
10494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10495 /* end confdefs.h.  */
10496 $ac_includes_default
10497 int
10498 main ()
10499 {
10500
10501              /* Are we little or big endian?  From Harbison&Steele.  */
10502              union
10503              {
10504                long int l;
10505                char c[sizeof (long int)];
10506              } u;
10507              u.l = 1;
10508              return u.c[sizeof (long int) - 1] == 1;
10509
10510   ;
10511   return 0;
10512 }
10513 _ACEOF
10514 if ac_fn_c_try_run "$LINENO"; then :
10515   ac_cv_c_bigendian=no
10516 else
10517   ac_cv_c_bigendian=yes
10518 fi
10519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10520   conftest.$ac_objext conftest.beam conftest.$ac_ext
10521 fi
10522
10523     fi
10524 fi
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10526 $as_echo "$ac_cv_c_bigendian" >&6; }
10527  case $ac_cv_c_bigendian in #(
10528    yes)
10529      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10530 ;; #(
10531    no)
10532       ;; #(
10533    universal)
10534
10535 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10536
10537      ;; #(
10538    *)
10539      as_fn_error "unknown endianness
10540  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10541  esac
10542
10543
10544 # ------------------------------ #
10545 # Checks for library functions.  #
10546 # ------------------------------ #
10547
10548 for ac_header in stdlib.h unistd.h
10549 do :
10550   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10551 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10552 eval as_val=\$$as_ac_Header
10553    if test "x$as_val" = x""yes; then :
10554   cat >>confdefs.h <<_ACEOF
10555 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10556 _ACEOF
10557
10558 fi
10559
10560 done
10561
10562 for ac_func in getpagesize
10563 do :
10564   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10565 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10566   cat >>confdefs.h <<_ACEOF
10567 #define HAVE_GETPAGESIZE 1
10568 _ACEOF
10569
10570 fi
10571 done
10572
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10574 $as_echo_n "checking for working mmap... " >&6; }
10575 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10576   $as_echo_n "(cached) " >&6
10577 else
10578   if test "$cross_compiling" = yes; then :
10579   ac_cv_func_mmap_fixed_mapped=no
10580 else
10581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10582 /* end confdefs.h.  */
10583 $ac_includes_default
10584 /* malloc might have been renamed as rpl_malloc. */
10585 #undef malloc
10586
10587 /* Thanks to Mike Haertel and Jim Avera for this test.
10588    Here is a matrix of mmap possibilities:
10589         mmap private not fixed
10590         mmap private fixed at somewhere currently unmapped
10591         mmap private fixed at somewhere already mapped
10592         mmap shared not fixed
10593         mmap shared fixed at somewhere currently unmapped
10594         mmap shared fixed at somewhere already mapped
10595    For private mappings, we should verify that changes cannot be read()
10596    back from the file, nor mmap's back from the file at a different
10597    address.  (There have been systems where private was not correctly
10598    implemented like the infamous i386 svr4.0, and systems where the
10599    VM page cache was not coherent with the file system buffer cache
10600    like early versions of FreeBSD and possibly contemporary NetBSD.)
10601    For shared mappings, we should conversely verify that changes get
10602    propagated back to all the places they're supposed to be.
10603
10604    Grep wants private fixed already mapped.
10605    The main things grep needs to know about mmap are:
10606    * does it exist and is it safe to write into the mmap'd area
10607    * how to use it (BSD variants)  */
10608
10609 #include <fcntl.h>
10610 #include <sys/mman.h>
10611
10612 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10613 char *malloc ();
10614 #endif
10615
10616 /* This mess was copied from the GNU getpagesize.h.  */
10617 #ifndef HAVE_GETPAGESIZE
10618 /* Assume that all systems that can run configure have sys/param.h.  */
10619 # ifndef HAVE_SYS_PARAM_H
10620 #  define HAVE_SYS_PARAM_H 1
10621 # endif
10622
10623 # ifdef _SC_PAGESIZE
10624 #  define getpagesize() sysconf(_SC_PAGESIZE)
10625 # else /* no _SC_PAGESIZE */
10626 #  ifdef HAVE_SYS_PARAM_H
10627 #   include <sys/param.h>
10628 #   ifdef EXEC_PAGESIZE
10629 #    define getpagesize() EXEC_PAGESIZE
10630 #   else /* no EXEC_PAGESIZE */
10631 #    ifdef NBPG
10632 #     define getpagesize() NBPG * CLSIZE
10633 #     ifndef CLSIZE
10634 #      define CLSIZE 1
10635 #     endif /* no CLSIZE */
10636 #    else /* no NBPG */
10637 #     ifdef NBPC
10638 #      define getpagesize() NBPC
10639 #     else /* no NBPC */
10640 #      ifdef PAGESIZE
10641 #       define getpagesize() PAGESIZE
10642 #      endif /* PAGESIZE */
10643 #     endif /* no NBPC */
10644 #    endif /* no NBPG */
10645 #   endif /* no EXEC_PAGESIZE */
10646 #  else /* no HAVE_SYS_PARAM_H */
10647 #   define getpagesize() 8192   /* punt totally */
10648 #  endif /* no HAVE_SYS_PARAM_H */
10649 # endif /* no _SC_PAGESIZE */
10650
10651 #endif /* no HAVE_GETPAGESIZE */
10652
10653 int
10654 main ()
10655 {
10656   char *data, *data2, *data3;
10657   int i, pagesize;
10658   int fd;
10659
10660   pagesize = getpagesize ();
10661
10662   /* First, make a file with some known garbage in it. */
10663   data = (char *) malloc (pagesize);
10664   if (!data)
10665     return 1;
10666   for (i = 0; i < pagesize; ++i)
10667     *(data + i) = rand ();
10668   umask (0);
10669   fd = creat ("conftest.mmap", 0600);
10670   if (fd < 0)
10671     return 1;
10672   if (write (fd, data, pagesize) != pagesize)
10673     return 1;
10674   close (fd);
10675
10676   /* Next, try to mmap the file at a fixed address which already has
10677      something else allocated at it.  If we can, also make sure that
10678      we see the same garbage.  */
10679   fd = open ("conftest.mmap", O_RDWR);
10680   if (fd < 0)
10681     return 1;
10682   data2 = (char *) malloc (2 * pagesize);
10683   if (!data2)
10684     return 1;
10685   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10686   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10687                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10688     return 1;
10689   for (i = 0; i < pagesize; ++i)
10690     if (*(data + i) != *(data2 + i))
10691       return 1;
10692
10693   /* Finally, make sure that changes to the mapped area do not
10694      percolate back to the file as seen by read().  (This is a bug on
10695      some variants of i386 svr4.0.)  */
10696   for (i = 0; i < pagesize; ++i)
10697     *(data2 + i) = *(data2 + i) + 1;
10698   data3 = (char *) malloc (pagesize);
10699   if (!data3)
10700     return 1;
10701   if (read (fd, data3, pagesize) != pagesize)
10702     return 1;
10703   for (i = 0; i < pagesize; ++i)
10704     if (*(data + i) != *(data3 + i))
10705       return 1;
10706   close (fd);
10707   return 0;
10708 }
10709 _ACEOF
10710 if ac_fn_c_try_run "$LINENO"; then :
10711   ac_cv_func_mmap_fixed_mapped=yes
10712 else
10713   ac_cv_func_mmap_fixed_mapped=no
10714 fi
10715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10716   conftest.$ac_objext conftest.beam conftest.$ac_ext
10717 fi
10718
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10721 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10722 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10723
10724 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10725
10726 fi
10727 rm -f conftest.mmap
10728
10729 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10730 if test "x$ac_cv_type_pid_t" = x""yes; then :
10731
10732 else
10733
10734 cat >>confdefs.h <<_ACEOF
10735 #define pid_t int
10736 _ACEOF
10737
10738 fi
10739
10740 for ac_header in vfork.h
10741 do :
10742   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10743 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10744   cat >>confdefs.h <<_ACEOF
10745 #define HAVE_VFORK_H 1
10746 _ACEOF
10747
10748 fi
10749
10750 done
10751
10752 for ac_func in fork vfork
10753 do :
10754   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10755 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10756 eval as_val=\$$as_ac_var
10757    if test "x$as_val" = x""yes; then :
10758   cat >>confdefs.h <<_ACEOF
10759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10760 _ACEOF
10761
10762 fi
10763 done
10764
10765 if test "x$ac_cv_func_fork" = xyes; then
10766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10767 $as_echo_n "checking for working fork... " >&6; }
10768 if test "${ac_cv_func_fork_works+set}" = set; then :
10769   $as_echo_n "(cached) " >&6
10770 else
10771   if test "$cross_compiling" = yes; then :
10772   ac_cv_func_fork_works=cross
10773 else
10774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h.  */
10776 $ac_includes_default
10777 int
10778 main ()
10779 {
10780
10781           /* By Ruediger Kuhlmann. */
10782           return fork () < 0;
10783
10784   ;
10785   return 0;
10786 }
10787 _ACEOF
10788 if ac_fn_c_try_run "$LINENO"; then :
10789   ac_cv_func_fork_works=yes
10790 else
10791   ac_cv_func_fork_works=no
10792 fi
10793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10794   conftest.$ac_objext conftest.beam conftest.$ac_ext
10795 fi
10796
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10799 $as_echo "$ac_cv_func_fork_works" >&6; }
10800
10801 else
10802   ac_cv_func_fork_works=$ac_cv_func_fork
10803 fi
10804 if test "x$ac_cv_func_fork_works" = xcross; then
10805   case $host in
10806     *-*-amigaos* | *-*-msdosdjgpp*)
10807       # Override, as these systems have only a dummy fork() stub
10808       ac_cv_func_fork_works=no
10809       ;;
10810     *)
10811       ac_cv_func_fork_works=yes
10812       ;;
10813   esac
10814   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10815 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10816 fi
10817 ac_cv_func_vfork_works=$ac_cv_func_vfork
10818 if test "x$ac_cv_func_vfork" = xyes; then
10819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10820 $as_echo_n "checking for working vfork... " >&6; }
10821 if test "${ac_cv_func_vfork_works+set}" = set; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   if test "$cross_compiling" = yes; then :
10825   ac_cv_func_vfork_works=cross
10826 else
10827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h.  */
10829 /* Thanks to Paul Eggert for this test.  */
10830 $ac_includes_default
10831 #include <sys/wait.h>
10832 #ifdef HAVE_VFORK_H
10833 # include <vfork.h>
10834 #endif
10835 /* On some sparc systems, changes by the child to local and incoming
10836    argument registers are propagated back to the parent.  The compiler
10837    is told about this with #include <vfork.h>, but some compilers
10838    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10839    static variable whose address is put into a register that is
10840    clobbered by the vfork.  */
10841 static void
10842 #ifdef __cplusplus
10843 sparc_address_test (int arg)
10844 # else
10845 sparc_address_test (arg) int arg;
10846 #endif
10847 {
10848   static pid_t child;
10849   if (!child) {
10850     child = vfork ();
10851     if (child < 0) {
10852       perror ("vfork");
10853       _exit(2);
10854     }
10855     if (!child) {
10856       arg = getpid();
10857       write(-1, "", 0);
10858       _exit (arg);
10859     }
10860   }
10861 }
10862
10863 int
10864 main ()
10865 {
10866   pid_t parent = getpid ();
10867   pid_t child;
10868
10869   sparc_address_test (0);
10870
10871   child = vfork ();
10872
10873   if (child == 0) {
10874     /* Here is another test for sparc vfork register problems.  This
10875        test uses lots of local variables, at least as many local
10876        variables as main has allocated so far including compiler
10877        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10878        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10879        reuse the register of parent for one of the local variables,
10880        since it will think that parent can't possibly be used any more
10881        in this routine.  Assigning to the local variable will thus
10882        munge parent in the parent process.  */
10883     pid_t
10884       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10885       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10886     /* Convince the compiler that p..p7 are live; otherwise, it might
10887        use the same hardware register for all 8 local variables.  */
10888     if (p != p1 || p != p2 || p != p3 || p != p4
10889         || p != p5 || p != p6 || p != p7)
10890       _exit(1);
10891
10892     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10893        from child file descriptors.  If the child closes a descriptor
10894        before it execs or exits, this munges the parent's descriptor
10895        as well.  Test for this by closing stdout in the child.  */
10896     _exit(close(fileno(stdout)) != 0);
10897   } else {
10898     int status;
10899     struct stat st;
10900
10901     while (wait(&status) != child)
10902       ;
10903     return (
10904          /* Was there some problem with vforking?  */
10905          child < 0
10906
10907          /* Did the child fail?  (This shouldn't happen.)  */
10908          || status
10909
10910          /* Did the vfork/compiler bug occur?  */
10911          || parent != getpid()
10912
10913          /* Did the file descriptor bug occur?  */
10914          || fstat(fileno(stdout), &st) != 0
10915          );
10916   }
10917 }
10918 _ACEOF
10919 if ac_fn_c_try_run "$LINENO"; then :
10920   ac_cv_func_vfork_works=yes
10921 else
10922   ac_cv_func_vfork_works=no
10923 fi
10924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10925   conftest.$ac_objext conftest.beam conftest.$ac_ext
10926 fi
10927
10928 fi
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10930 $as_echo "$ac_cv_func_vfork_works" >&6; }
10931
10932 fi;
10933 if test "x$ac_cv_func_fork_works" = xcross; then
10934   ac_cv_func_vfork_works=$ac_cv_func_vfork
10935   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10936 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10937 fi
10938
10939 if test "x$ac_cv_func_vfork_works" = xyes; then
10940
10941 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10942
10943 else
10944
10945 $as_echo "#define vfork fork" >>confdefs.h
10946
10947 fi
10948 if test "x$ac_cv_func_fork_works" = xyes; then
10949
10950 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10951
10952 fi
10953
10954 for ac_func in getauxval getrusage getuid getgid \
10955                 pipe poll pread pread64 pwrite resize_term \
10956                 sbrk setpgid setpgrp setsid \
10957                 sigaction sigprocmask sigsetmask socketpair \
10958                 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10959                 setrlimit getrlimit posix_madvise waitpid \
10960                 ptrace64 sigaltstack mkdtemp
10961 do :
10962   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10963 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10964 eval as_val=\$$as_ac_var
10965    if test "x$as_val" = x""yes; then :
10966   cat >>confdefs.h <<_ACEOF
10967 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10968 _ACEOF
10969
10970 fi
10971 done
10972
10973
10974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10975 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10976 if test "${am_cv_langinfo_codeset+set}" = set; then :
10977   $as_echo_n "(cached) " >&6
10978 else
10979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10980 /* end confdefs.h.  */
10981 #include <langinfo.h>
10982 int
10983 main ()
10984 {
10985 char* cs = nl_langinfo(CODESET);
10986   ;
10987   return 0;
10988 }
10989 _ACEOF
10990 if ac_fn_c_try_link "$LINENO"; then :
10991   am_cv_langinfo_codeset=yes
10992 else
10993   am_cv_langinfo_codeset=no
10994 fi
10995 rm -f core conftest.err conftest.$ac_objext \
10996     conftest$ac_exeext conftest.$ac_ext
10997
10998 fi
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11000 $as_echo "$am_cv_langinfo_codeset" >&6; }
11001   if test $am_cv_langinfo_codeset = yes; then
11002
11003 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11004
11005   fi
11006
11007
11008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11009 $as_echo_n "checking for ANSI C header files... " >&6; }
11010 if test "${ac_cv_header_stdc+set}" = set; then :
11011   $as_echo_n "(cached) " >&6
11012 else
11013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h.  */
11015 #include <stdlib.h>
11016 #include <stdarg.h>
11017 #include <string.h>
11018 #include <float.h>
11019
11020 int
11021 main ()
11022 {
11023
11024   ;
11025   return 0;
11026 }
11027 _ACEOF
11028 if ac_fn_c_try_compile "$LINENO"; then :
11029   ac_cv_header_stdc=yes
11030 else
11031   ac_cv_header_stdc=no
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034
11035 if test $ac_cv_header_stdc = yes; then
11036   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h.  */
11039 #include <string.h>
11040
11041 _ACEOF
11042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11043   $EGREP "memchr" >/dev/null 2>&1; then :
11044
11045 else
11046   ac_cv_header_stdc=no
11047 fi
11048 rm -f conftest*
11049
11050 fi
11051
11052 if test $ac_cv_header_stdc = yes; then
11053   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h.  */
11056 #include <stdlib.h>
11057
11058 _ACEOF
11059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11060   $EGREP "free" >/dev/null 2>&1; then :
11061
11062 else
11063   ac_cv_header_stdc=no
11064 fi
11065 rm -f conftest*
11066
11067 fi
11068
11069 if test $ac_cv_header_stdc = yes; then
11070   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11071   if test "$cross_compiling" = yes; then :
11072   :
11073 else
11074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11075 /* end confdefs.h.  */
11076 #include <ctype.h>
11077 #include <stdlib.h>
11078 #if ((' ' & 0x0FF) == 0x020)
11079 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11080 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11081 #else
11082 # define ISLOWER(c) \
11083                    (('a' <= (c) && (c) <= 'i') \
11084                      || ('j' <= (c) && (c) <= 'r') \
11085                      || ('s' <= (c) && (c) <= 'z'))
11086 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11087 #endif
11088
11089 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11090 int
11091 main ()
11092 {
11093   int i;
11094   for (i = 0; i < 256; i++)
11095     if (XOR (islower (i), ISLOWER (i))
11096         || toupper (i) != TOUPPER (i))
11097       return 2;
11098   return 0;
11099 }
11100 _ACEOF
11101 if ac_fn_c_try_run "$LINENO"; then :
11102
11103 else
11104   ac_cv_header_stdc=no
11105 fi
11106 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11107   conftest.$ac_objext conftest.beam conftest.$ac_ext
11108 fi
11109
11110 fi
11111 fi
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11113 $as_echo "$ac_cv_header_stdc" >&6; }
11114 if test $ac_cv_header_stdc = yes; then
11115
11116 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11117
11118 fi
11119
11120   # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11121 # for constant arguments.  Useless!
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11123 $as_echo_n "checking for working alloca.h... " >&6; }
11124 if test "${ac_cv_working_alloca_h+set}" = set; then :
11125   $as_echo_n "(cached) " >&6
11126 else
11127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h.  */
11129 #include <alloca.h>
11130 int
11131 main ()
11132 {
11133 char *p = (char *) alloca (2 * sizeof (int));
11134                           if (p) return 0;
11135   ;
11136   return 0;
11137 }
11138 _ACEOF
11139 if ac_fn_c_try_link "$LINENO"; then :
11140   ac_cv_working_alloca_h=yes
11141 else
11142   ac_cv_working_alloca_h=no
11143 fi
11144 rm -f core conftest.err conftest.$ac_objext \
11145     conftest$ac_exeext conftest.$ac_ext
11146 fi
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11148 $as_echo "$ac_cv_working_alloca_h" >&6; }
11149 if test $ac_cv_working_alloca_h = yes; then
11150
11151 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11152
11153 fi
11154
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11156 $as_echo_n "checking for alloca... " >&6; }
11157 if test "${ac_cv_func_alloca_works+set}" = set; then :
11158   $as_echo_n "(cached) " >&6
11159 else
11160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h.  */
11162 #ifdef __GNUC__
11163 # define alloca __builtin_alloca
11164 #else
11165 # ifdef _MSC_VER
11166 #  include <malloc.h>
11167 #  define alloca _alloca
11168 # else
11169 #  ifdef HAVE_ALLOCA_H
11170 #   include <alloca.h>
11171 #  else
11172 #   ifdef _AIX
11173  #pragma alloca
11174 #   else
11175 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11176 char *alloca ();
11177 #    endif
11178 #   endif
11179 #  endif
11180 # endif
11181 #endif
11182
11183 int
11184 main ()
11185 {
11186 char *p = (char *) alloca (1);
11187                                     if (p) return 0;
11188   ;
11189   return 0;
11190 }
11191 _ACEOF
11192 if ac_fn_c_try_link "$LINENO"; then :
11193   ac_cv_func_alloca_works=yes
11194 else
11195   ac_cv_func_alloca_works=no
11196 fi
11197 rm -f core conftest.err conftest.$ac_objext \
11198     conftest$ac_exeext conftest.$ac_ext
11199 fi
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11201 $as_echo "$ac_cv_func_alloca_works" >&6; }
11202
11203 if test $ac_cv_func_alloca_works = yes; then
11204
11205 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11206
11207 else
11208   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11209 # that cause trouble.  Some versions do not even contain alloca or
11210 # contain a buggy version.  If you still want to use their alloca,
11211 # use ar to extract alloca.o from them instead of compiling alloca.c.
11212
11213 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11214
11215 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11216
11217
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11219 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11220 if test "${ac_cv_os_cray+set}" = set; then :
11221   $as_echo_n "(cached) " >&6
11222 else
11223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h.  */
11225 #if defined CRAY && ! defined CRAY2
11226 webecray
11227 #else
11228 wenotbecray
11229 #endif
11230
11231 _ACEOF
11232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11233   $EGREP "webecray" >/dev/null 2>&1; then :
11234   ac_cv_os_cray=yes
11235 else
11236   ac_cv_os_cray=no
11237 fi
11238 rm -f conftest*
11239
11240 fi
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11242 $as_echo "$ac_cv_os_cray" >&6; }
11243 if test $ac_cv_os_cray = yes; then
11244   for ac_func in _getb67 GETB67 getb67; do
11245     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11247 eval as_val=\$$as_ac_var
11248    if test "x$as_val" = x""yes; then :
11249
11250 cat >>confdefs.h <<_ACEOF
11251 #define CRAY_STACKSEG_END $ac_func
11252 _ACEOF
11253
11254     break
11255 fi
11256
11257   done
11258 fi
11259
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11261 $as_echo_n "checking stack direction for C alloca... " >&6; }
11262 if test "${ac_cv_c_stack_direction+set}" = set; then :
11263   $as_echo_n "(cached) " >&6
11264 else
11265   if test "$cross_compiling" = yes; then :
11266   ac_cv_c_stack_direction=0
11267 else
11268   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11269 /* end confdefs.h.  */
11270 $ac_includes_default
11271 int
11272 find_stack_direction ()
11273 {
11274   static char *addr = 0;
11275   auto char dummy;
11276   if (addr == 0)
11277     {
11278       addr = &dummy;
11279       return find_stack_direction ();
11280     }
11281   else
11282     return (&dummy > addr) ? 1 : -1;
11283 }
11284
11285 int
11286 main ()
11287 {
11288   return find_stack_direction () < 0;
11289 }
11290 _ACEOF
11291 if ac_fn_c_try_run "$LINENO"; then :
11292   ac_cv_c_stack_direction=1
11293 else
11294   ac_cv_c_stack_direction=-1
11295 fi
11296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11297   conftest.$ac_objext conftest.beam conftest.$ac_ext
11298 fi
11299
11300 fi
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11302 $as_echo "$ac_cv_c_stack_direction" >&6; }
11303 cat >>confdefs.h <<_ACEOF
11304 #define STACK_DIRECTION $ac_cv_c_stack_direction
11305 _ACEOF
11306
11307
11308 fi
11309
11310
11311
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11313 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11314 if test "${am_cv_langinfo_codeset+set}" = set; then :
11315   $as_echo_n "(cached) " >&6
11316 else
11317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h.  */
11319 #include <langinfo.h>
11320 int
11321 main ()
11322 {
11323 char* cs = nl_langinfo(CODESET);
11324   ;
11325   return 0;
11326 }
11327 _ACEOF
11328 if ac_fn_c_try_link "$LINENO"; then :
11329   am_cv_langinfo_codeset=yes
11330 else
11331   am_cv_langinfo_codeset=no
11332 fi
11333 rm -f core conftest.err conftest.$ac_objext \
11334     conftest$ac_exeext conftest.$ac_ext
11335
11336 fi
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11338 $as_echo "$am_cv_langinfo_codeset" >&6; }
11339   if test $am_cv_langinfo_codeset = yes; then
11340
11341 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11342
11343   fi
11344
11345
11346   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
11347 do :
11348   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11349 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11350 eval as_val=\$$as_ac_Header
11351    if test "x$as_val" = x""yes; then :
11352   cat >>confdefs.h <<_ACEOF
11353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11354 _ACEOF
11355
11356 fi
11357
11358 done
11359
11360
11361   for ac_func in fdwalk getrlimit pipe pipe2 socketpair
11362 do :
11363   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11364 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11365 eval as_val=\$$as_ac_var
11366    if test "x$as_val" = x""yes; then :
11367   cat >>confdefs.h <<_ACEOF
11368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11369 _ACEOF
11370
11371 fi
11372 done
11373
11374
11375   ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11376 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11377   ac_have_decl=1
11378 else
11379   ac_have_decl=0
11380 fi
11381
11382 cat >>confdefs.h <<_ACEOF
11383 #define HAVE_DECL_STRERROR $ac_have_decl
11384 _ACEOF
11385 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11386 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11387   ac_have_decl=1
11388 else
11389   ac_have_decl=0
11390 fi
11391
11392 cat >>confdefs.h <<_ACEOF
11393 #define HAVE_DECL_STRSTR $ac_have_decl
11394 _ACEOF
11395
11396
11397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11398 $as_echo_n "checking for sigsetjmp... " >&6; }
11399 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11400   $as_echo_n "(cached) " >&6
11401 else
11402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11403 /* end confdefs.h.  */
11404
11405 #include <setjmp.h>
11406
11407 int
11408 main ()
11409 {
11410 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11411   ;
11412   return 0;
11413 }
11414 _ACEOF
11415 if ac_fn_c_try_compile "$LINENO"; then :
11416   gdb_cv_func_sigsetjmp=yes
11417 else
11418   gdb_cv_func_sigsetjmp=no
11419 fi
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 fi
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11423 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11424 if test $gdb_cv_func_sigsetjmp = yes; then
11425
11426 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11427
11428 fi
11429
11430
11431 # Check the return and argument types of ptrace.  No canned test for
11432 # this, so roll our own.
11433 gdb_ptrace_headers='
11434 #include <sys/types.h>
11435 #if HAVE_SYS_PTRACE_H
11436 # include <sys/ptrace.h>
11437 #endif
11438 #if HAVE_UNISTD_H
11439 # include <unistd.h>
11440 #endif
11441 '
11442 # There is no point in checking if we don't have a prototype.
11443 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
11444 "
11445 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
11446   ac_have_decl=1
11447 else
11448   ac_have_decl=0
11449 fi
11450
11451 cat >>confdefs.h <<_ACEOF
11452 #define HAVE_DECL_PTRACE $ac_have_decl
11453 _ACEOF
11454 if test $ac_have_decl = 1; then :
11455
11456 else
11457
11458   : ${gdb_cv_func_ptrace_ret='int'}
11459   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11460
11461 fi
11462
11463 # Check return type.  Varargs (used on GNU/Linux) conflict with the
11464 # empty argument list, so check for that explicitly.
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11466 $as_echo_n "checking return type of ptrace... " >&6; }
11467 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11471 /* end confdefs.h.  */
11472 $gdb_ptrace_headers
11473 int
11474 main ()
11475 {
11476 extern long ptrace (enum __ptrace_request, ...);
11477   ;
11478   return 0;
11479 }
11480 _ACEOF
11481 if ac_fn_c_try_compile "$LINENO"; then :
11482   gdb_cv_func_ptrace_ret='long'
11483 else
11484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h.  */
11486 $gdb_ptrace_headers
11487 int
11488 main ()
11489 {
11490 extern int ptrace ();
11491   ;
11492   return 0;
11493 }
11494 _ACEOF
11495 if ac_fn_c_try_compile "$LINENO"; then :
11496   gdb_cv_func_ptrace_ret='int'
11497 else
11498   gdb_cv_func_ptrace_ret='long'
11499 fi
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 fi
11502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11503 fi
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11505 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11506
11507 cat >>confdefs.h <<_ACEOF
11508 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11509 _ACEOF
11510
11511 # Check argument types.
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11513 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11514 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11515   $as_echo_n "(cached) " >&6
11516 else
11517
11518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h.  */
11520 $gdb_ptrace_headers
11521 int
11522 main ()
11523 {
11524 extern long ptrace (enum __ptrace_request, ...);
11525   ;
11526   return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_compile "$LINENO"; then :
11530   gdb_cv_func_ptrace_args='int,int,long,long'
11531 else
11532
11533 for gdb_arg1 in 'int' 'long'; do
11534  for gdb_arg2 in 'pid_t' 'int' 'long'; do
11535   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11536    for gdb_arg4 in 'int' 'long' 'void *'; do
11537      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11538 /* end confdefs.h.  */
11539 $gdb_ptrace_headers
11540 int
11541 main ()
11542 {
11543
11544 extern $gdb_cv_func_ptrace_ret
11545   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11546
11547   ;
11548   return 0;
11549 }
11550 _ACEOF
11551 if ac_fn_c_try_compile "$LINENO"; then :
11552   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11553     break 4;
11554 fi
11555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11556     for gdb_arg5 in 'int *' 'int' 'long'; do
11557      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h.  */
11559 $gdb_ptrace_headers
11560 int
11561 main ()
11562 {
11563
11564 extern $gdb_cv_func_ptrace_ret
11565   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11566
11567   ;
11568   return 0;
11569 }
11570 _ACEOF
11571 if ac_fn_c_try_compile "$LINENO"; then :
11572
11573 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11574     break 5;
11575 fi
11576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11577     done
11578    done
11579   done
11580  done
11581 done
11582 # Provide a safe default value.
11583 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11584
11585 fi
11586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11587 fi
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11589 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11590 ac_save_IFS=$IFS; IFS=','
11591 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11592 IFS=$ac_save_IFS
11593 shift
11594
11595 cat >>confdefs.h <<_ACEOF
11596 #define PTRACE_TYPE_ARG3 $3
11597 _ACEOF
11598
11599
11600 cat >>confdefs.h <<_ACEOF
11601 #define PTRACE_TYPE_ARG4 $4
11602 _ACEOF
11603
11604 if test -n "$5"; then
11605
11606 cat >>confdefs.h <<_ACEOF
11607 #define PTRACE_TYPE_ARG5 $5
11608 _ACEOF
11609
11610 fi
11611
11612 if test "$cross_compiling" = no; then
11613   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11614 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11615 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11616   $as_echo_n "(cached) " >&6
11617 else
11618   if test "$cross_compiling" = yes; then :
11619   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
11620 else
11621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h.  */
11623 $ac_includes_default
11624 int
11625 main ()
11626 {
11627 /* If this system has a BSD-style setpgrp which takes arguments,
11628   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11629   exit successfully. */
11630   return setpgrp (1,1) != -1;
11631   ;
11632   return 0;
11633 }
11634 _ACEOF
11635 if ac_fn_c_try_run "$LINENO"; then :
11636   ac_cv_func_setpgrp_void=no
11637 else
11638   ac_cv_func_setpgrp_void=yes
11639 fi
11640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11641   conftest.$ac_objext conftest.beam conftest.$ac_ext
11642 fi
11643
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11646 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11647 if test $ac_cv_func_setpgrp_void = yes; then
11648
11649 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11650
11651 fi
11652
11653 else
11654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11655 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11656 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11657   $as_echo_n "(cached) " >&6
11658 else
11659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11660 /* end confdefs.h.  */
11661
11662 #include <unistd.h>
11663
11664 int
11665 main ()
11666 {
11667
11668   if (setpgrp(1,1) == -1)
11669     exit (0);
11670   else
11671     exit (1);
11672
11673   ;
11674   return 0;
11675 }
11676 _ACEOF
11677 if ac_fn_c_try_compile "$LINENO"; then :
11678   ac_cv_func_setpgrp_void=no
11679 else
11680   ac_cv_func_setpgrp_void=yes
11681 fi
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 fi
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11685 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11686 if test $ac_cv_func_setpgrp_void = yes; then
11687   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11688
11689 fi
11690 fi
11691
11692 # Assume we'll default to using the included libiberty regex.
11693 gdb_use_included_regex=yes
11694
11695 # However, if the system regex is GNU regex, then default to *not*
11696 # using the included regex.
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11698 $as_echo_n "checking for GNU regex... " >&6; }
11699 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11700   $as_echo_n "(cached) " >&6
11701 else
11702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h.  */
11704 #include <gnu-versions.h>
11705 int
11706 main ()
11707 {
11708 #define REGEX_INTERFACE_VERSION 1
11709 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11710 # error "Version mismatch"
11711 #endif
11712   ;
11713   return 0;
11714 }
11715 _ACEOF
11716 if ac_fn_c_try_compile "$LINENO"; then :
11717   gdb_cv_have_gnu_regex=yes
11718 else
11719   gdb_cv_have_gnu_regex=no
11720 fi
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 fi
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11724 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11725 if test $gdb_cv_have_gnu_regex = yes; then
11726   gdb_use_included_regex=no
11727 fi
11728
11729
11730 # Check whether --with-included-regex was given.
11731 if test "${with_included_regex+set}" = set; then :
11732   withval=$with_included_regex; gdb_with_regex=$withval
11733 else
11734   gdb_with_regex=$gdb_use_included_regex
11735 fi
11736
11737 if test "$gdb_with_regex" = yes; then
11738
11739 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11740
11741 fi
11742
11743 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11744 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11745 #include <sys/proc.h>
11746
11747 "
11748 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
11749
11750 cat >>confdefs.h <<_ACEOF
11751 #define HAVE_STRUCT_THREAD_TD_PCB 1
11752 _ACEOF
11753
11754
11755 fi
11756
11757
11758 # See if <sys/lwp.h> defines `struct lwp`.
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11760 $as_echo_n "checking for struct lwp... " >&6; }
11761 if test "${gdb_cv_struct_lwp+set}" = set; then :
11762   $as_echo_n "(cached) " >&6
11763 else
11764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h.  */
11766 #include <sys/param.h>
11767 #include <sys/lwp.h>
11768 int
11769 main ()
11770 {
11771 struct lwp l;
11772   ;
11773   return 0;
11774 }
11775 _ACEOF
11776 if ac_fn_c_try_compile "$LINENO"; then :
11777   gdb_cv_struct_lwp=yes
11778 else
11779   gdb_cv_struct_lwp=no
11780 fi
11781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11782 fi
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11784 $as_echo "$gdb_cv_struct_lwp" >&6; }
11785 if test $gdb_cv_struct_lwp = yes; then
11786
11787 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11788
11789 fi
11790
11791 # See if <machine/reg.h> degines `struct reg'.
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11793 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11794 if test "${gdb_cv_struct_reg+set}" = set; then :
11795   $as_echo_n "(cached) " >&6
11796 else
11797   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11798 /* end confdefs.h.  */
11799 #include <sys/types.h>
11800 #include <machine/reg.h>
11801 int
11802 main ()
11803 {
11804 struct reg r;
11805   ;
11806   return 0;
11807 }
11808 _ACEOF
11809 if ac_fn_c_try_compile "$LINENO"; then :
11810   gdb_cv_struct_reg=yes
11811 else
11812   gdb_cv_struct_reg=no
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11817 $as_echo "$gdb_cv_struct_reg" >&6; }
11818 if test $gdb_cv_struct_reg = yes; then
11819
11820 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11821
11822 fi
11823
11824 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11825 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11826 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11827 "
11828 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
11829
11830 cat >>confdefs.h <<_ACEOF
11831 #define HAVE_STRUCT_REG_R_FS 1
11832 _ACEOF
11833
11834
11835 fi
11836 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11837 "
11838 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
11839
11840 cat >>confdefs.h <<_ACEOF
11841 #define HAVE_STRUCT_REG_R_GS 1
11842 _ACEOF
11843
11844
11845 fi
11846
11847
11848 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
11849 # Older amd64 Linux's don't have the fs_base and gs_base members of
11850 # `struct user_regs_struct'.
11851 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>
11852 "
11853 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = x""yes; then :
11854
11855 cat >>confdefs.h <<_ACEOF
11856 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
11857 _ACEOF
11858
11859
11860 fi
11861 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>
11862 "
11863 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = x""yes; then :
11864
11865 cat >>confdefs.h <<_ACEOF
11866 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
11867 _ACEOF
11868
11869
11870 fi
11871
11872
11873 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11875 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11876 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h.  */
11881 #include <sys/ptrace.h>
11882 int
11883 main ()
11884 {
11885 PTRACE_GETREGS;
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891   gdb_cv_have_ptrace_getregs=yes
11892 else
11893   gdb_cv_have_ptrace_getregs=no
11894 fi
11895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11896 fi
11897
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11899 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11900 if test $gdb_cv_have_ptrace_getregs = yes; then
11901
11902 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11903
11904 fi
11905
11906 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11908 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11909 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11910   $as_echo_n "(cached) " >&6
11911 else
11912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11913 /* end confdefs.h.  */
11914 #include <sys/ptrace.h>
11915 int
11916 main ()
11917 {
11918 PTRACE_GETFPXREGS;
11919   ;
11920   return 0;
11921 }
11922 _ACEOF
11923 if ac_fn_c_try_compile "$LINENO"; then :
11924   gdb_cv_have_ptrace_getfpxregs=yes
11925 else
11926   gdb_cv_have_ptrace_getfpxregs=no
11927 fi
11928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11929 fi
11930
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11932 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11933 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11934
11935 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11936
11937 fi
11938
11939 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11941 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11942 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11943   $as_echo_n "(cached) " >&6
11944 else
11945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h.  */
11947 #include <sys/types.h>
11948 #include <sys/ptrace.h>
11949 int
11950 main ()
11951 {
11952 PT_GETDBREGS;
11953   ;
11954   return 0;
11955 }
11956 _ACEOF
11957 if ac_fn_c_try_compile "$LINENO"; then :
11958   gdb_cv_have_pt_getdbregs=yes
11959 else
11960   gdb_cv_have_pt_getdbregs=no
11961 fi
11962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11963 fi
11964
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11966 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11967 if test $gdb_cv_have_pt_getdbregs = yes; then
11968
11969 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11970
11971 fi
11972
11973 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11975 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11976 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11977   $as_echo_n "(cached) " >&6
11978 else
11979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11980 /* end confdefs.h.  */
11981 #include <sys/types.h>
11982 #include <sys/ptrace.h>
11983 int
11984 main ()
11985 {
11986 PT_GETXMMREGS;
11987   ;
11988   return 0;
11989 }
11990 _ACEOF
11991 if ac_fn_c_try_compile "$LINENO"; then :
11992   gdb_cv_have_pt_getxmmregs=yes
11993 else
11994   gdb_cv_have_pt_getxmmregs=no
11995 fi
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 fi
11998
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12000 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12001 if test $gdb_cv_have_pt_getxmmregs = yes; then
12002
12003 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12004
12005 fi
12006
12007 # Detect which type of /proc is in use, such as for Solaris.
12008
12009 if test "${target}" = "${host}"; then
12010   case "${host}" in
12011   *-*-sysv4.2* | *-*-sysv5* )
12012
12013 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12014
12015       ;;
12016   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
12017
12018 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12019
12020       ;;
12021   mips-sgi-irix5*)
12022       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12023
12024 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12025
12026       ;;
12027   esac
12028 fi
12029
12030 if test "$ac_cv_header_sys_procfs_h" = yes; then
12031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12032 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12033  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12034   $as_echo_n "(cached) " >&6
12035 else
12036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h.  */
12038
12039 #define _SYSCALL32
12040 /* Needed for new procfs interface on sparc-solaris.  */
12041 #define _STRUCTURED_PROC 1
12042 #include <sys/procfs.h>
12043 int
12044 main ()
12045 {
12046 gregset_t avar
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 if ac_fn_c_try_compile "$LINENO"; then :
12052   bfd_cv_have_sys_procfs_type_gregset_t=yes
12053 else
12054   bfd_cv_have_sys_procfs_type_gregset_t=no
12055
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 fi
12059
12060  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
12061
12062 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
12063
12064  fi
12065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
12066 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
12067
12068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
12069 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
12070  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
12071   $as_echo_n "(cached) " >&6
12072 else
12073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h.  */
12075
12076 #define _SYSCALL32
12077 /* Needed for new procfs interface on sparc-solaris.  */
12078 #define _STRUCTURED_PROC 1
12079 #include <sys/procfs.h>
12080 int
12081 main ()
12082 {
12083 fpregset_t avar
12084   ;
12085   return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_c_try_compile "$LINENO"; then :
12089   bfd_cv_have_sys_procfs_type_fpregset_t=yes
12090 else
12091   bfd_cv_have_sys_procfs_type_fpregset_t=no
12092
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095 fi
12096
12097  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
12098
12099 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
12100
12101  fi
12102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
12103 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
12104
12105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
12106 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
12107  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
12108   $as_echo_n "(cached) " >&6
12109 else
12110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h.  */
12112
12113 #define _SYSCALL32
12114 /* Needed for new procfs interface on sparc-solaris.  */
12115 #define _STRUCTURED_PROC 1
12116 #include <sys/procfs.h>
12117 int
12118 main ()
12119 {
12120 prgregset_t avar
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 if ac_fn_c_try_compile "$LINENO"; then :
12126   bfd_cv_have_sys_procfs_type_prgregset_t=yes
12127 else
12128   bfd_cv_have_sys_procfs_type_prgregset_t=no
12129
12130 fi
12131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12132 fi
12133
12134  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
12135
12136 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
12137
12138  fi
12139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
12140 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
12141
12142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
12143 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
12144  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h.  */
12149
12150 #define _SYSCALL32
12151 /* Needed for new procfs interface on sparc-solaris.  */
12152 #define _STRUCTURED_PROC 1
12153 #include <sys/procfs.h>
12154 int
12155 main ()
12156 {
12157 prfpregset_t avar
12158   ;
12159   return 0;
12160 }
12161 _ACEOF
12162 if ac_fn_c_try_compile "$LINENO"; then :
12163   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
12164 else
12165   bfd_cv_have_sys_procfs_type_prfpregset_t=no
12166
12167 fi
12168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12169 fi
12170
12171  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12172
12173 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
12174
12175  fi
12176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
12177 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
12178
12179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
12180 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
12181  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
12182   $as_echo_n "(cached) " >&6
12183 else
12184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h.  */
12186
12187 #define _SYSCALL32
12188 /* Needed for new procfs interface on sparc-solaris.  */
12189 #define _STRUCTURED_PROC 1
12190 #include <sys/procfs.h>
12191 int
12192 main ()
12193 {
12194 prgregset32_t avar
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
12201 else
12202   bfd_cv_have_sys_procfs_type_prgregset32_t=no
12203
12204 fi
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 fi
12207
12208  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
12209
12210 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
12211
12212  fi
12213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
12214 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
12215
12216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
12217 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
12218  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h.  */
12223
12224 #define _SYSCALL32
12225 /* Needed for new procfs interface on sparc-solaris.  */
12226 #define _STRUCTURED_PROC 1
12227 #include <sys/procfs.h>
12228 int
12229 main ()
12230 {
12231 lwpid_t avar
12232   ;
12233   return 0;
12234 }
12235 _ACEOF
12236 if ac_fn_c_try_compile "$LINENO"; then :
12237   bfd_cv_have_sys_procfs_type_lwpid_t=yes
12238 else
12239   bfd_cv_have_sys_procfs_type_lwpid_t=no
12240
12241 fi
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 fi
12244
12245  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
12246
12247 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
12248
12249  fi
12250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
12251 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
12252
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
12254 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
12255  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
12256   $as_echo_n "(cached) " >&6
12257 else
12258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h.  */
12260
12261 #define _SYSCALL32
12262 /* Needed for new procfs interface on sparc-solaris.  */
12263 #define _STRUCTURED_PROC 1
12264 #include <sys/procfs.h>
12265 int
12266 main ()
12267 {
12268 psaddr_t avar
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_compile "$LINENO"; then :
12274   bfd_cv_have_sys_procfs_type_psaddr_t=yes
12275 else
12276   bfd_cv_have_sys_procfs_type_psaddr_t=no
12277
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 fi
12281
12282  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
12283
12284 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
12285
12286  fi
12287  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
12288 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
12289
12290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
12291 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
12292  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
12293   $as_echo_n "(cached) " >&6
12294 else
12295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h.  */
12297
12298 #define _SYSCALL32
12299 /* Needed for new procfs interface on sparc-solaris.  */
12300 #define _STRUCTURED_PROC 1
12301 #include <sys/procfs.h>
12302 int
12303 main ()
12304 {
12305 prsysent_t avar
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 if ac_fn_c_try_compile "$LINENO"; then :
12311   bfd_cv_have_sys_procfs_type_prsysent_t=yes
12312 else
12313   bfd_cv_have_sys_procfs_type_prsysent_t=no
12314
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 fi
12318
12319  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
12320
12321 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
12322
12323  fi
12324  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
12325 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
12326
12327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
12328 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
12329  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12333 /* end confdefs.h.  */
12334
12335 #define _SYSCALL32
12336 /* Needed for new procfs interface on sparc-solaris.  */
12337 #define _STRUCTURED_PROC 1
12338 #include <sys/procfs.h>
12339 int
12340 main ()
12341 {
12342 pr_sigset_t avar
12343   ;
12344   return 0;
12345 }
12346 _ACEOF
12347 if ac_fn_c_try_compile "$LINENO"; then :
12348   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
12349 else
12350   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
12351
12352 fi
12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 fi
12355
12356  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
12357
12358 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
12359
12360  fi
12361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
12362 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
12363
12364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
12365 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
12366  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12367   $as_echo_n "(cached) " >&6
12368 else
12369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12370 /* end confdefs.h.  */
12371
12372 #define _SYSCALL32
12373 /* Needed for new procfs interface on sparc-solaris.  */
12374 #define _STRUCTURED_PROC 1
12375 #include <sys/procfs.h>
12376 int
12377 main ()
12378 {
12379 pr_sigaction64_t avar
12380   ;
12381   return 0;
12382 }
12383 _ACEOF
12384 if ac_fn_c_try_compile "$LINENO"; then :
12385   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
12386 else
12387   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
12388
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12391 fi
12392
12393  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12394
12395 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12396
12397  fi
12398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12399 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12400
12401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12402 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12403  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h.  */
12408
12409 #define _SYSCALL32
12410 /* Needed for new procfs interface on sparc-solaris.  */
12411 #define _STRUCTURED_PROC 1
12412 #include <sys/procfs.h>
12413 int
12414 main ()
12415 {
12416 pr_siginfo64_t avar
12417   ;
12418   return 0;
12419 }
12420 _ACEOF
12421 if ac_fn_c_try_compile "$LINENO"; then :
12422   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
12423 else
12424   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
12425
12426 fi
12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12428 fi
12429
12430  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12431
12432 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12433
12434  fi
12435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12436 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12437
12438
12439
12440
12441
12442   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12444 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12445     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12446   $as_echo_n "(cached) " >&6
12447 else
12448   if test "$cross_compiling" = yes; then :
12449   gdb_cv_prfpregset_t_broken=yes
12450 else
12451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h.  */
12453 #include <sys/procfs.h>
12454        int main ()
12455        {
12456          if (sizeof (prfpregset_t) == sizeof (void *))
12457            return 1;
12458          return 0;
12459        }
12460 _ACEOF
12461 if ac_fn_c_try_run "$LINENO"; then :
12462   gdb_cv_prfpregset_t_broken=no
12463 else
12464   gdb_cv_prfpregset_t_broken=yes
12465 fi
12466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12467   conftest.$ac_objext conftest.beam conftest.$ac_ext
12468 fi
12469
12470 fi
12471
12472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12473 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12474     if test $gdb_cv_prfpregset_t_broken = yes; then
12475
12476 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12477
12478     fi
12479   fi
12480 fi
12481
12482 # Check if the compiler supports the `long long' type.
12483
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12485 $as_echo_n "checking for long long support in compiler... " >&6; }
12486 if test "${gdb_cv_c_long_long+set}" = set; then :
12487   $as_echo_n "(cached) " >&6
12488 else
12489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12490 /* end confdefs.h.  */
12491 extern long long foo;
12492 int
12493 main ()
12494 {
12495 switch (foo & 2) { case 0: return 1; }
12496   ;
12497   return 0;
12498 }
12499 _ACEOF
12500 if ac_fn_c_try_compile "$LINENO"; then :
12501   gdb_cv_c_long_long=yes
12502 else
12503   gdb_cv_c_long_long=no
12504 fi
12505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 fi
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12508 $as_echo "$gdb_cv_c_long_long" >&6; }
12509 if test $gdb_cv_c_long_long != yes; then
12510   # libdecnumber requires long long.
12511   as_fn_error "Compiler must support long long for GDB." "$LINENO" 5
12512 fi
12513
12514 # Check if the compiler and runtime support printing long longs.
12515
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12517 $as_echo_n "checking for long long support in printf... " >&6; }
12518 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12519   $as_echo_n "(cached) " >&6
12520 else
12521   if test "$cross_compiling" = yes; then :
12522   gdb_cv_printf_has_long_long=no
12523 else
12524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525 /* end confdefs.h.  */
12526 $ac_includes_default
12527 int
12528 main ()
12529 {
12530 char buf[32];
12531   long long l = 0;
12532   l = (l << 16) + 0x0123;
12533   l = (l << 16) + 0x4567;
12534   l = (l << 16) + 0x89ab;
12535   l = (l << 16) + 0xcdef;
12536   sprintf (buf, "0x%016llx", l);
12537   return (strcmp ("0x0123456789abcdef", buf));
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 if ac_fn_c_try_run "$LINENO"; then :
12543   gdb_cv_printf_has_long_long=yes
12544 else
12545   gdb_cv_printf_has_long_long=no
12546 fi
12547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12548   conftest.$ac_objext conftest.beam conftest.$ac_ext
12549 fi
12550
12551 fi
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12553 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12554 if test $gdb_cv_printf_has_long_long = yes; then
12555
12556 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12557
12558 fi
12559
12560 # Check if the compiler and runtime support printing decfloats.
12561
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12563 $as_echo_n "checking for decfloat support in printf... " >&6; }
12564 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12565   $as_echo_n "(cached) " >&6
12566 else
12567   if test "$cross_compiling" = yes; then :
12568   gdb_cv_printf_has_decfloat=no
12569 else
12570   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571 /* end confdefs.h.  */
12572 $ac_includes_default
12573 int
12574 main ()
12575 {
12576 char buf[64];
12577   _Decimal32 d32 = 1.2345df;
12578   _Decimal64 d64 = 1.2345dd;
12579   _Decimal128 d128 = 1.2345dl;
12580   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12581   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12582   ;
12583   return 0;
12584 }
12585 _ACEOF
12586 if ac_fn_c_try_run "$LINENO"; then :
12587   gdb_cv_printf_has_decfloat=yes
12588 else
12589   gdb_cv_printf_has_decfloat=no
12590 fi
12591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12592   conftest.$ac_objext conftest.beam conftest.$ac_ext
12593 fi
12594
12595 fi
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12597 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12598 if test $gdb_cv_printf_has_decfloat = yes; then
12599
12600 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12601
12602 fi
12603
12604 # Check if the compiler supports the `long double' type.  We can't use
12605 # AC_C_LONG_DOUBLE because that one does additional checks on the
12606 # constants defined in <float.h> that fail on some systems,
12607 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12608
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12610 $as_echo_n "checking for long double support in compiler... " >&6; }
12611 if test "${gdb_cv_c_long_double+set}" = set; then :
12612   $as_echo_n "(cached) " >&6
12613 else
12614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h.  */
12616 long double foo;
12617 _ACEOF
12618 if ac_fn_c_try_compile "$LINENO"; then :
12619   gdb_cv_c_long_double=yes
12620 else
12621   gdb_cv_c_long_double=no
12622 fi
12623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624 fi
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12626 $as_echo "$gdb_cv_c_long_double" >&6; }
12627 if test $gdb_cv_c_long_double = yes; then
12628
12629 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12630
12631 fi
12632
12633 # Check if the compiler and runtime support printing long doubles.
12634
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12636 $as_echo_n "checking for long double support in printf... " >&6; }
12637 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12638   $as_echo_n "(cached) " >&6
12639 else
12640   if test "$cross_compiling" = yes; then :
12641   gdb_cv_printf_has_long_double=no
12642 else
12643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h.  */
12645 $ac_includes_default
12646 int
12647 main ()
12648 {
12649 char buf[16];
12650   long double f = 3.141592653;
12651   sprintf (buf, "%Lg", f);
12652   return (strncmp ("3.14159", buf, 7));
12653   ;
12654   return 0;
12655 }
12656 _ACEOF
12657 if ac_fn_c_try_run "$LINENO"; then :
12658   gdb_cv_printf_has_long_double=yes
12659 else
12660   gdb_cv_printf_has_long_double=no
12661 fi
12662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12663   conftest.$ac_objext conftest.beam conftest.$ac_ext
12664 fi
12665
12666 fi
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12668 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12669 if test $gdb_cv_printf_has_long_double = yes; then
12670
12671 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12672
12673 fi
12674
12675 # Check if the compiler and runtime support scanning long doubles.
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12678 $as_echo_n "checking for long double support in scanf... " >&6; }
12679 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12680   $as_echo_n "(cached) " >&6
12681 else
12682   if test "$cross_compiling" = yes; then :
12683   gdb_cv_scanf_has_long_double=no
12684 else
12685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h.  */
12687 #include <stdio.h>
12688 int
12689 main ()
12690 {
12691 char *buf = "3.141592653";
12692   long double f = 0;
12693   sscanf (buf, "%Lg", &f);
12694   return !(f > 3.14159 && f < 3.14160);
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 if ac_fn_c_try_run "$LINENO"; then :
12700   gdb_cv_scanf_has_long_double=yes
12701 else
12702   gdb_cv_scanf_has_long_double=no
12703 fi
12704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12705   conftest.$ac_objext conftest.beam conftest.$ac_ext
12706 fi
12707
12708 fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12710 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12711 if test $gdb_cv_scanf_has_long_double = yes; then
12712
12713 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12714
12715 fi
12716
12717 case ${host_os} in
12718 aix*)
12719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12720 $as_echo_n "checking for -bbigtoc option... " >&6; }
12721 if test "${gdb_cv_bigtoc+set}" = set; then :
12722   $as_echo_n "(cached) " >&6
12723 else
12724
12725     SAVE_LDFLAGS=$LDFLAGS
12726
12727     case $GCC in
12728     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12729     *) gdb_cv_bigtoc=-bbigtoc ;;
12730     esac
12731
12732     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12733     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h.  */
12735
12736 int
12737 main ()
12738 {
12739 int i;
12740   ;
12741   return 0;
12742 }
12743 _ACEOF
12744 if ac_fn_c_try_link "$LINENO"; then :
12745
12746 else
12747   gdb_cv_bigtoc=
12748 fi
12749 rm -f core conftest.err conftest.$ac_objext \
12750     conftest$ac_exeext conftest.$ac_ext
12751     LDFLAGS="${SAVE_LDFLAGS}"
12752
12753 fi
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12755 $as_echo "$gdb_cv_bigtoc" >&6; }
12756   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12757   ;;
12758 esac
12759
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
12761 $as_echo_n "checking for the dynamic export flag... " >&6; }
12762 dynamic_list=false
12763 if test "${gdb_native}" = yes; then
12764    # The dynamically loaded libthread_db needs access to symbols in the gdb
12765    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
12766    # may not be supported there.
12767    old_LDFLAGS="$LDFLAGS"
12768    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
12769    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
12770    LDFLAGS="$LDFLAGS $RDYNAMIC"
12771    if test "${have_libpython}" = no; then
12772      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h.  */
12774
12775 int
12776 main ()
12777 {
12778
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 if ac_fn_c_try_link "$LINENO"; then :
12784   dynamic_list=true
12785 fi
12786 rm -f core conftest.err conftest.$ac_objext \
12787     conftest$ac_exeext conftest.$ac_ext
12788    else
12789      # Workaround http://bugs.python.org/issue4434 where static
12790      # libpythonX.Y.a would get its symbols required for
12791      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
12792      # Problem does not happen for the recommended libpythonX.Y.so linkage.
12793      old_CFLAGS="$CFLAGS"
12794      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
12795      old_LIBS="$LIBS"
12796      LIBS="$LIBS $PYTHON_LIBS"
12797      if test "$cross_compiling" = yes; then :
12798   true
12799 else
12800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12801 /* end confdefs.h.  */
12802 #include "${have_libpython}/Python.h"
12803 int
12804 main ()
12805 {
12806 int err;
12807           Py_Initialize ();
12808           err = PyRun_SimpleString ("import itertools\n");
12809           Py_Finalize ();
12810           return err == 0 ? 0 : 1;
12811   ;
12812   return 0;
12813 }
12814 _ACEOF
12815 if ac_fn_c_try_run "$LINENO"; then :
12816   dynamic_list=true
12817 fi
12818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12819   conftest.$ac_objext conftest.beam conftest.$ac_ext
12820 fi
12821
12822      LIBS="$old_LIBS"
12823      CFLAGS="$old_CFLAGS"
12824    fi
12825    LDFLAGS="$old_LDFLAGS"
12826 fi
12827 if $dynamic_list; then
12828   found="-Wl,--dynamic-list"
12829   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
12830 else
12831   found="-rdynamic"
12832   RDYNAMIC="-rdynamic"
12833 fi
12834
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12836 $as_echo "$found" >&6; }
12837
12838
12839 if test ${build} = ${host} -a ${host} = ${target} ; then
12840    case ${host_os} in
12841    solaris*)
12842       # See if thread_db library is around for Solaris thread debugging.
12843       # Note that we must explicitly test for version 1 of the library
12844       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12845       # the same API.
12846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12847 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12848       if test -f /usr/lib/libthread_db.so.1 ; then
12849          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12850 $as_echo "yes" >&6; }
12851
12852 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12853
12854          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
12855          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
12856          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12857 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12858 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12859   $as_echo_n "(cached) " >&6
12860 else
12861   ac_check_lib_save_LIBS=$LIBS
12862 LIBS="-ldl  $LIBS"
12863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h.  */
12865
12866 /* Override any GCC internal prototype to avoid an error.
12867    Use char because int might match the return type of a GCC
12868    builtin and then its argument prototype would still apply.  */
12869 #ifdef __cplusplus
12870 extern "C"
12871 #endif
12872 char dlopen ();
12873 int
12874 main ()
12875 {
12876 return dlopen ();
12877   ;
12878   return 0;
12879 }
12880 _ACEOF
12881 if ac_fn_c_try_link "$LINENO"; then :
12882   ac_cv_lib_dl_dlopen=yes
12883 else
12884   ac_cv_lib_dl_dlopen=no
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext \
12887     conftest$ac_exeext conftest.$ac_ext
12888 LIBS=$ac_check_lib_save_LIBS
12889 fi
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12891 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12892 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12893   cat >>confdefs.h <<_ACEOF
12894 #define HAVE_LIBDL 1
12895 _ACEOF
12896
12897   LIBS="-ldl $LIBS"
12898
12899 fi
12900
12901          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
12902          # Sun randomly tweaked the prototypes in <proc_service.h>
12903          # at one point.
12904          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12905 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12906          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12907   $as_echo_n "(cached) " >&6
12908 else
12909
12910             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h.  */
12912
12913                 #include <proc_service.h>
12914                 ps_err_e ps_pdwrite
12915                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
12916
12917 int
12918 main ()
12919 {
12920
12921   ;
12922   return 0;
12923 }
12924 _ACEOF
12925 if ac_fn_c_try_compile "$LINENO"; then :
12926   gdb_cv_proc_service_is_old=no
12927 else
12928   gdb_cv_proc_service_is_old=yes
12929 fi
12930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12931
12932 fi
12933
12934          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12935 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12936          if test $gdb_cv_proc_service_is_old = yes; then
12937
12938 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12939
12940          fi
12941       else
12942          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12944       fi
12945       ;;
12946    aix*)
12947       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12948 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12949       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12950   $as_echo_n "(cached) " >&6
12951 else
12952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* end confdefs.h.  */
12954 #include <sys/pthdebug.h>
12955 int
12956 main ()
12957 {
12958 #ifndef PTHDB_VERSION_3
12959                                     #error
12960                                     #endif
12961   ;
12962   return 0;
12963 }
12964 _ACEOF
12965 if ac_fn_c_try_compile "$LINENO"; then :
12966   gdb_cv_have_aix_thread_debug=yes
12967 else
12968   gdb_cv_have_aix_thread_debug=no
12969 fi
12970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12971 fi
12972
12973       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12974 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12975       if test $gdb_cv_have_aix_thread_debug = yes; then
12976          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12977          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12978          LIBS="$LIBS -lpthdebug"
12979
12980          # Older versions of AIX do not provide the declaration for
12981          # the getthrds function (it appears that it was introduced
12982          # with AIX 6.x).
12983          ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12984 "
12985 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12986   ac_have_decl=1
12987 else
12988   ac_have_decl=0
12989 fi
12990
12991 cat >>confdefs.h <<_ACEOF
12992 #define HAVE_DECL_GETTHRDS $ac_have_decl
12993 _ACEOF
12994
12995       fi
12996       ;;
12997    esac
12998
12999 fi
13000
13001 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
13002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
13003 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
13004 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
13005   $as_echo_n "(cached) " >&6
13006 else
13007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h.  */
13009 #include <thread_db.h>
13010 int
13011 main ()
13012 {
13013 int i = TD_NOTALLOC;
13014   ;
13015   return 0;
13016 }
13017 _ACEOF
13018 if ac_fn_c_try_compile "$LINENO"; then :
13019   gdb_cv_thread_db_h_has_td_notalloc=yes
13020 else
13021   gdb_cv_thread_db_h_has_td_notalloc=no
13022
13023 fi
13024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13025
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
13028 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
13029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
13030 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
13031 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
13032   $as_echo_n "(cached) " >&6
13033 else
13034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h.  */
13036 #include <thread_db.h>
13037 int
13038 main ()
13039 {
13040 int i = TD_VERSION;
13041   ;
13042   return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_compile "$LINENO"; then :
13046   gdb_cv_thread_db_h_has_td_version=yes
13047 else
13048   gdb_cv_thread_db_h_has_td_version=no
13049
13050 fi
13051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13052
13053 fi
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
13055 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
13056    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
13057 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
13058 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
13059   $as_echo_n "(cached) " >&6
13060 else
13061   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13062 /* end confdefs.h.  */
13063 #include <thread_db.h>
13064 int
13065 main ()
13066 {
13067 int i = TD_NOTLS;
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 if ac_fn_c_try_compile "$LINENO"; then :
13073   gdb_cv_thread_db_h_has_td_notls=yes
13074 else
13075   gdb_cv_thread_db_h_has_td_notls=no
13076
13077 fi
13078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
13082 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
13083 fi
13084 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
13085
13086 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
13087
13088 fi
13089 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
13090
13091 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
13092
13093 fi
13094 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
13095
13096 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
13097
13098 fi
13099
13100 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
13101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
13102 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
13103 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
13104   $as_echo_n "(cached) " >&6
13105 else
13106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h.  */
13108 #include <sys/syscall.h>
13109 int
13110 main ()
13111 {
13112 int i = __NR_tkill;
13113   ;
13114   return 0;
13115 }
13116 _ACEOF
13117 if ac_fn_c_try_compile "$LINENO"; then :
13118   gdb_cv_sys_syscall_h_has_tkill=yes
13119 else
13120   gdb_cv_sys_syscall_h_has_tkill=no
13121
13122 fi
13123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13124
13125 fi
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
13127 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
13128 fi
13129 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes"; then
13130   ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall"
13131 if test "x$ac_cv_func_syscall" = x""yes; then :
13132
13133 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
13134
13135
13136 fi
13137
13138 fi
13139
13140 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
13141 "
13142 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
13143   ac_have_decl=1
13144 else
13145   ac_have_decl=0
13146 fi
13147
13148 cat >>confdefs.h <<_ACEOF
13149 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
13150 _ACEOF
13151
13152
13153 if test "$cross_compiling" = yes; then :
13154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h.  */
13156 #include <sys/personality.h>
13157 int
13158 main ()
13159 {
13160
13161 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
13162 #       define ADDR_NO_RANDOMIZE 0x0040000
13163 #      endif
13164        /* Test the flag could be set and stays set.  */
13165        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13166        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13167            return 1
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 if ac_fn_c_try_link "$LINENO"; then :
13173   have_personality=true
13174 else
13175   have_personality=false
13176 fi
13177 rm -f core conftest.err conftest.$ac_objext \
13178     conftest$ac_exeext conftest.$ac_ext
13179 else
13180   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h.  */
13182 #include <sys/personality.h>
13183 int
13184 main ()
13185 {
13186
13187 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
13188 #       define ADDR_NO_RANDOMIZE 0x0040000
13189 #      endif
13190        /* Test the flag could be set and stays set.  */
13191        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
13192        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
13193            return 1
13194   ;
13195   return 0;
13196 }
13197 _ACEOF
13198 if ac_fn_c_try_run "$LINENO"; then :
13199   have_personality=true
13200 else
13201   have_personality=false
13202 fi
13203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13204   conftest.$ac_objext conftest.beam conftest.$ac_ext
13205 fi
13206
13207 if $have_personality
13208 then
13209
13210 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
13211
13212 fi
13213
13214 case $host_os in
13215   go32* | *djgpp*)
13216     gdbinit=gdb.ini
13217     ;;
13218   *)
13219     gdbinit=.gdbinit
13220     ;;
13221 esac
13222
13223 cat >>confdefs.h <<_ACEOF
13224 #define GDBINIT "$gdbinit"
13225 _ACEOF
13226
13227
13228
13229 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
13230 # except that the argument to --with-sysroot is optional.
13231 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
13232 if test "x$with_sysroot" = xyes; then
13233   with_sysroot="${exec_prefix}/${target_alias}/sys-root"
13234 fi
13235
13236 # Check whether --with-sysroot was given.
13237 if test "${with_sysroot+set}" = set; then :
13238   withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
13239 else
13240   TARGET_SYSTEM_ROOT=
13241 fi
13242
13243
13244   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13245   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13246   ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
13247   ac_define_dir=`eval echo $ac_define_dir`
13248
13249 cat >>confdefs.h <<_ACEOF
13250 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
13251 _ACEOF
13252
13253
13254
13255
13256   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13257      if test "x$prefix" = xNONE; then
13258         test_prefix=/usr/local
13259      else
13260         test_prefix=$prefix
13261      fi
13262   else
13263      test_prefix=$exec_prefix
13264   fi
13265   value=0
13266   case ${ac_define_dir} in
13267      "${test_prefix}"|"${test_prefix}/"*|\
13268         '${exec_prefix}'|'${exec_prefix}/'*)
13269      value=1
13270      ;;
13271   esac
13272
13273 cat >>confdefs.h <<_ACEOF
13274 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
13275 _ACEOF
13276
13277
13278
13279
13280
13281 # Check whether --with-system-gdbinit was given.
13282 if test "${with_system_gdbinit+set}" = set; then :
13283   withval=$with_system_gdbinit;
13284     SYSTEM_GDBINIT=$withval
13285 else
13286   SYSTEM_GDBINIT=
13287 fi
13288
13289
13290   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13291   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13292   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
13293   ac_define_dir=`eval echo $ac_define_dir`
13294
13295 cat >>confdefs.h <<_ACEOF
13296 #define SYSTEM_GDBINIT "$ac_define_dir"
13297 _ACEOF
13298
13299
13300
13301
13302   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13303      if test "x$prefix" = xNONE; then
13304         test_prefix=/usr/local
13305      else
13306         test_prefix=$prefix
13307      fi
13308   else
13309      test_prefix=$exec_prefix
13310   fi
13311   value=0
13312   case ${ac_define_dir} in
13313      "${test_prefix}"|"${test_prefix}/"*|\
13314         '${exec_prefix}'|'${exec_prefix}/'*)
13315      value=1
13316      ;;
13317   esac
13318
13319 cat >>confdefs.h <<_ACEOF
13320 #define SYSTEM_GDBINIT_RELOCATABLE $value
13321 _ACEOF
13322
13323
13324
13325
13326 # Check whether --enable-werror was given.
13327 if test "${enable_werror+set}" = set; then :
13328   enableval=$enable_werror; case "${enableval}" in
13329      yes | y) ERROR_ON_WARNING="yes" ;;
13330      no | n)  ERROR_ON_WARNING="no" ;;
13331      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13332    esac
13333 fi
13334
13335
13336 # Enable -Werror by default when using gcc in C mode.  Leave it off
13337 # for C++ until we're warning clean.  Turn it off for releases.
13338 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" \
13339    && test x"$enable_build_with_cxx" != x"yes" \
13340    && $development; then
13341     ERROR_ON_WARNING=yes
13342 fi
13343
13344 WERROR_CFLAGS=""
13345 if test "${ERROR_ON_WARNING}" = yes ; then
13346     WERROR_CFLAGS="-Werror"
13347 fi
13348
13349 # These options work in either C or C++ modes.
13350 build_warnings="-Wall -Wpointer-arith \
13351 -Wno-unused -Wunused-value -Wunused-function \
13352 -Wno-switch -Wno-char-subscripts \
13353 -Wempty-body"
13354
13355 # Now add in C and C++ specific options, depending on mode.
13356 if test "$enable_build_with_cxx" = "yes"; then
13357    build_warnings="$build_warnings -Wno-sign-compare -Wno-write-strings \
13358 -Wno-narrowing"
13359 else
13360    build_warnings="$build_warnings -Wpointer-sign -Wmissing-prototypes \
13361 -Wdeclaration-after-statement -Wmissing-parameter-type \
13362 -Wold-style-declaration -Wold-style-definition"
13363 fi
13364
13365 # Enable -Wno-format by default when using gcc on mingw since many
13366 # GCC versions complain about %I64.
13367 case "${host}" in
13368   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13369   *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
13370 esac
13371
13372 # Check whether --enable-build-warnings was given.
13373 if test "${enable_build_warnings+set}" = set; then :
13374   enableval=$enable_build_warnings; case "${enableval}" in
13375   yes)  ;;
13376   no)   build_warnings="-w";;
13377   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13378         build_warnings="${build_warnings} ${t}";;
13379   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13380         build_warnings="${t} ${build_warnings}";;
13381   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13382 esac
13383 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13384   echo "Setting compiler warning flags = $build_warnings" 6>&1
13385 fi
13386 fi
13387 # Check whether --enable-gdb-build-warnings was given.
13388 if test "${enable_gdb_build_warnings+set}" = set; then :
13389   enableval=$enable_gdb_build_warnings; case "${enableval}" in
13390   yes)  ;;
13391   no)   build_warnings="-w";;
13392   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13393         build_warnings="${build_warnings} ${t}";;
13394   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13395         build_warnings="${t} ${build_warnings}";;
13396   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13397 esac
13398 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13399   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13400 fi
13401 fi
13402
13403 # The set of warnings supported by a C++ compiler is not the same as
13404 # of the C compiler.
13405 if test "$enable_build_with_cxx" = "yes"; then
13406     ac_ext=cpp
13407 ac_cpp='$CXXCPP $CPPFLAGS'
13408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13411
13412 fi
13413
13414 WARN_CFLAGS=""
13415 if test "x${build_warnings}" != x -a "x$GCC" = xyes
13416 then
13417     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13418 $as_echo_n "checking compiler warning flags... " >&6; }
13419     # Separate out the -Werror flag as some files just cannot be
13420     # compiled with it enabled.
13421     for w in ${build_warnings}; do
13422         case $w in
13423         -Werr*) WERROR_CFLAGS=-Werror ;;
13424         *)
13425             # Check whether GCC accepts it.
13426             saved_CFLAGS="$CFLAGS"
13427             CFLAGS="$CFLAGS $w"
13428             saved_CXXFLAGS="$CXXFLAGS"
13429             CXXFLAGS="$CXXFLAGS $w"
13430
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h.  */
13433
13434 int
13435 main ()
13436 {
13437
13438   ;
13439   return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_cxx_try_compile "$LINENO"; then :
13443   WARN_CFLAGS="${WARN_CFLAGS} $w"
13444 fi
13445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446             CFLAGS="$saved_CFLAGS"
13447             CXXFLAGS="$saved_CXXFLAGS"
13448         esac
13449     done
13450     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13451 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13452 fi
13453
13454
13455
13456 if test "$enable_build_with_cxx" = "yes"; then
13457    ac_ext=c
13458 ac_cpp='$CPP $CPPFLAGS'
13459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13462
13463 fi
13464
13465 # In the Cygwin environment, we need some additional flags.
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13467 $as_echo_n "checking for cygwin... " >&6; }
13468 if test "${gdb_cv_os_cygwin+set}" = set; then :
13469   $as_echo_n "(cached) " >&6
13470 else
13471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h.  */
13473
13474 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13475 lose
13476 #endif
13477 _ACEOF
13478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13479   $EGREP "^lose$" >/dev/null 2>&1; then :
13480   gdb_cv_os_cygwin=yes
13481 else
13482   gdb_cv_os_cygwin=no
13483 fi
13484 rm -f conftest*
13485
13486 fi
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
13488 $as_echo "$gdb_cv_os_cygwin" >&6; }
13489
13490
13491 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
13492 case ${host} in
13493   *go32* ) SER_HARDWIRE=ser-go32.o ;;
13494   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13495   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
13496 esac
13497
13498
13499 # libreadline needs libuser32.a in a cygwin environment
13500 WIN32LIBS=
13501 if test x$gdb_cv_os_cygwin = xyes; then
13502     WIN32LIBS="-luser32"
13503     case "${target}" in
13504         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13505         ;;
13506     esac
13507 fi
13508
13509 # The ser-tcp.c module requires sockets.
13510 case ${host} in
13511   *mingw32*)
13512
13513 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13514
13515     WIN32LIBS="$WIN32LIBS -lws2_32"
13516     ;;
13517 esac
13518
13519
13520 # Add ELF support to GDB, but only if BFD includes ELF support.
13521
13522   OLD_CFLAGS=$CFLAGS
13523   OLD_LDFLAGS=$LDFLAGS
13524   OLD_LIBS=$LIBS
13525   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13526   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
13527   # always want our bfd.
13528   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13529   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
13530   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
13531   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13532   LIBS="-lbfd -liberty -lz $intl $LIBS"
13533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13534 $as_echo_n "checking for ELF support in BFD... " >&6; }
13535 if test "${gdb_cv_var_elf+set}" = set; then :
13536   $as_echo_n "(cached) " >&6
13537 else
13538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h.  */
13540 #include <stdlib.h>
13541   #include "bfd.h"
13542   #include "elf-bfd.h"
13543
13544 int
13545 main ()
13546 {
13547 return bfd_get_elf_phdr_upper_bound (NULL);
13548   ;
13549   return 0;
13550 }
13551 _ACEOF
13552 if ac_fn_c_try_link "$LINENO"; then :
13553   gdb_cv_var_elf=yes
13554 else
13555   gdb_cv_var_elf=no
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext \
13558     conftest$ac_exeext conftest.$ac_ext
13559 fi
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13561 $as_echo "$gdb_cv_var_elf" >&6; }
13562   CFLAGS=$OLD_CFLAGS
13563   LDFLAGS=$OLD_LDFLAGS
13564   LIBS=$OLD_LIBS
13565 if test $gdb_cv_var_elf = yes; then
13566   CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
13567
13568 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13569
13570   # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
13571   if test "$plugins" = "yes"; then
13572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13573 $as_echo_n "checking for library containing dlopen... " >&6; }
13574 if test "${ac_cv_search_dlopen+set}" = set; then :
13575   $as_echo_n "(cached) " >&6
13576 else
13577   ac_func_search_save_LIBS=$LIBS
13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h.  */
13580
13581 /* Override any GCC internal prototype to avoid an error.
13582    Use char because int might match the return type of a GCC
13583    builtin and then its argument prototype would still apply.  */
13584 #ifdef __cplusplus
13585 extern "C"
13586 #endif
13587 char dlopen ();
13588 int
13589 main ()
13590 {
13591 return dlopen ();
13592   ;
13593   return 0;
13594 }
13595 _ACEOF
13596 for ac_lib in '' dl; do
13597   if test -z "$ac_lib"; then
13598     ac_res="none required"
13599   else
13600     ac_res=-l$ac_lib
13601     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13602   fi
13603   if ac_fn_c_try_link "$LINENO"; then :
13604   ac_cv_search_dlopen=$ac_res
13605 fi
13606 rm -f core conftest.err conftest.$ac_objext \
13607     conftest$ac_exeext
13608   if test "${ac_cv_search_dlopen+set}" = set; then :
13609   break
13610 fi
13611 done
13612 if test "${ac_cv_search_dlopen+set}" = set; then :
13613
13614 else
13615   ac_cv_search_dlopen=no
13616 fi
13617 rm conftest.$ac_ext
13618 LIBS=$ac_func_search_save_LIBS
13619 fi
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13621 $as_echo "$ac_cv_search_dlopen" >&6; }
13622 ac_res=$ac_cv_search_dlopen
13623 if test "$ac_res" != no; then :
13624   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13625
13626 fi
13627
13628   fi
13629 fi
13630
13631 # Add macho support to GDB, but only if BFD includes it.
13632
13633   OLD_CFLAGS=$CFLAGS
13634   OLD_LDFLAGS=$LDFLAGS
13635   OLD_LIBS=$LIBS
13636   # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
13637   # points somewhere with bfd, with -I/foo/lib and -L/foo/lib.  We
13638   # always want our bfd.
13639   CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
13640   ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
13641   LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
13642   intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13643   LIBS="-lbfd -liberty -lz $intl $LIBS"
13644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
13645 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
13646 if test "${gdb_cv_var_macho+set}" = set; then :
13647   $as_echo_n "(cached) " >&6
13648 else
13649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h.  */
13651 #include <stdlib.h>
13652   #include "bfd.h"
13653   #include "mach-o.h"
13654
13655 int
13656 main ()
13657 {
13658 return bfd_mach_o_lookup_command (NULL, 0, NULL);
13659   ;
13660   return 0;
13661 }
13662 _ACEOF
13663 if ac_fn_c_try_link "$LINENO"; then :
13664   gdb_cv_var_macho=yes
13665 else
13666   gdb_cv_var_macho=no
13667 fi
13668 rm -f core conftest.err conftest.$ac_objext \
13669     conftest$ac_exeext conftest.$ac_ext
13670 fi
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
13672 $as_echo "$gdb_cv_var_macho" >&6; }
13673   CFLAGS=$OLD_CFLAGS
13674   LDFLAGS=$OLD_LDFLAGS
13675   LIBS=$OLD_LIBS
13676 if test $gdb_cv_var_macho = yes; then
13677   CONFIG_OBS="$CONFIG_OBS machoread.o"
13678 fi
13679
13680 # Add any host-specific objects to GDB.
13681 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
13682
13683 # If building on ELF, look for lzma support for embedded compressed debug info.
13684 if test $gdb_cv_var_elf = yes; then
13685
13686 # Check whether --with-lzma was given.
13687 if test "${with_lzma+set}" = set; then :
13688   withval=$with_lzma;
13689 else
13690   with_lzma=auto
13691 fi
13692
13693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
13694 $as_echo_n "checking whether to use lzma... " >&6; }
13695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
13696 $as_echo "$with_lzma" >&6; }
13697
13698   if test "${with_lzma}" != no; then
13699
13700
13701
13702
13703
13704
13705
13706
13707     use_additional=yes
13708
13709   acl_save_prefix="$prefix"
13710   prefix="$acl_final_prefix"
13711   acl_save_exec_prefix="$exec_prefix"
13712   exec_prefix="$acl_final_exec_prefix"
13713
13714     eval additional_includedir=\"$includedir\"
13715     eval additional_libdir=\"$libdir\"
13716
13717   exec_prefix="$acl_save_exec_prefix"
13718   prefix="$acl_save_prefix"
13719
13720
13721 # Check whether --with-liblzma-prefix was given.
13722 if test "${with_liblzma_prefix+set}" = set; then :
13723   withval=$with_liblzma_prefix;
13724     if test "X$withval" = "Xno"; then
13725       use_additional=no
13726     else
13727       if test "X$withval" = "X"; then
13728
13729   acl_save_prefix="$prefix"
13730   prefix="$acl_final_prefix"
13731   acl_save_exec_prefix="$exec_prefix"
13732   exec_prefix="$acl_final_exec_prefix"
13733
13734           eval additional_includedir=\"$includedir\"
13735           eval additional_libdir=\"$libdir\"
13736
13737   exec_prefix="$acl_save_exec_prefix"
13738   prefix="$acl_save_prefix"
13739
13740       else
13741         additional_includedir="$withval/include"
13742         additional_libdir="$withval/lib"
13743       fi
13744     fi
13745
13746 fi
13747
13748       LIBLZMA=
13749   LTLIBLZMA=
13750   INCLZMA=
13751   rpathdirs=
13752   ltrpathdirs=
13753   names_already_handled=
13754   names_next_round='lzma '
13755   while test -n "$names_next_round"; do
13756     names_this_round="$names_next_round"
13757     names_next_round=
13758     for name in $names_this_round; do
13759       already_handled=
13760       for n in $names_already_handled; do
13761         if test "$n" = "$name"; then
13762           already_handled=yes
13763           break
13764         fi
13765       done
13766       if test -z "$already_handled"; then
13767         names_already_handled="$names_already_handled $name"
13768                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13769         eval value=\"\$HAVE_LIB$uppername\"
13770         if test -n "$value"; then
13771           if test "$value" = yes; then
13772             eval value=\"\$LIB$uppername\"
13773             test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
13774             eval value=\"\$LTLIB$uppername\"
13775             test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
13776           else
13777                                     :
13778           fi
13779         else
13780                               found_dir=
13781           found_la=
13782           found_so=
13783           found_a=
13784           if test $use_additional = yes; then
13785             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13786               found_dir="$additional_libdir"
13787               found_so="$additional_libdir/lib$name.$shlibext"
13788               if test -f "$additional_libdir/lib$name.la"; then
13789                 found_la="$additional_libdir/lib$name.la"
13790               fi
13791             else
13792               if test -f "$additional_libdir/lib$name.$libext"; then
13793                 found_dir="$additional_libdir"
13794                 found_a="$additional_libdir/lib$name.$libext"
13795                 if test -f "$additional_libdir/lib$name.la"; then
13796                   found_la="$additional_libdir/lib$name.la"
13797                 fi
13798               fi
13799             fi
13800           fi
13801           if test "X$found_dir" = "X"; then
13802             for x in $LDFLAGS $LTLIBLZMA; do
13803
13804   acl_save_prefix="$prefix"
13805   prefix="$acl_final_prefix"
13806   acl_save_exec_prefix="$exec_prefix"
13807   exec_prefix="$acl_final_exec_prefix"
13808   eval x=\"$x\"
13809   exec_prefix="$acl_save_exec_prefix"
13810   prefix="$acl_save_prefix"
13811
13812               case "$x" in
13813                 -L*)
13814                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13815                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
13816                     found_dir="$dir"
13817                     found_so="$dir/lib$name.$shlibext"
13818                     if test -f "$dir/lib$name.la"; then
13819                       found_la="$dir/lib$name.la"
13820                     fi
13821                   else
13822                     if test -f "$dir/lib$name.$libext"; then
13823                       found_dir="$dir"
13824                       found_a="$dir/lib$name.$libext"
13825                       if test -f "$dir/lib$name.la"; then
13826                         found_la="$dir/lib$name.la"
13827                       fi
13828                     fi
13829                   fi
13830                   ;;
13831               esac
13832               if test "X$found_dir" != "X"; then
13833                 break
13834               fi
13835             done
13836           fi
13837           if test "X$found_dir" != "X"; then
13838                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
13839             if test "X$found_so" != "X"; then
13840                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
13841                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13842               else
13843                                                                                 haveit=
13844                 for x in $ltrpathdirs; do
13845                   if test "X$x" = "X$found_dir"; then
13846                     haveit=yes
13847                     break
13848                   fi
13849                 done
13850                 if test -z "$haveit"; then
13851                   ltrpathdirs="$ltrpathdirs $found_dir"
13852                 fi
13853                                 if test "$hardcode_direct" = yes; then
13854                                                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13855                 else
13856                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
13857                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13858                                                             haveit=
13859                     for x in $rpathdirs; do
13860                       if test "X$x" = "X$found_dir"; then
13861                         haveit=yes
13862                         break
13863                       fi
13864                     done
13865                     if test -z "$haveit"; then
13866                       rpathdirs="$rpathdirs $found_dir"
13867                     fi
13868                   else
13869                                                                                 haveit=
13870                     for x in $LDFLAGS $LIBLZMA; do
13871
13872   acl_save_prefix="$prefix"
13873   prefix="$acl_final_prefix"
13874   acl_save_exec_prefix="$exec_prefix"
13875   exec_prefix="$acl_final_exec_prefix"
13876   eval x=\"$x\"
13877   exec_prefix="$acl_save_exec_prefix"
13878   prefix="$acl_save_prefix"
13879
13880                       if test "X$x" = "X-L$found_dir"; then
13881                         haveit=yes
13882                         break
13883                       fi
13884                     done
13885                     if test -z "$haveit"; then
13886                       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
13887                     fi
13888                     if test "$hardcode_minus_L" != no; then
13889                                                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
13890                     else
13891                                                                                                                                                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
13892                     fi
13893                   fi
13894                 fi
13895               fi
13896             else
13897               if test "X$found_a" != "X"; then
13898                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
13899               else
13900                                                 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
13901               fi
13902             fi
13903                         additional_includedir=
13904             case "$found_dir" in
13905               */lib | */lib/)
13906                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
13907                 additional_includedir="$basedir/include"
13908                 ;;
13909             esac
13910             if test "X$additional_includedir" != "X"; then
13911                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13912                 haveit=
13913                 if test "X$additional_includedir" = "X/usr/local/include"; then
13914                   if test -n "$GCC"; then
13915                     case $host_os in
13916                       linux*) haveit=yes;;
13917                     esac
13918                   fi
13919                 fi
13920                 if test -z "$haveit"; then
13921                   for x in $CPPFLAGS $INCLZMA; do
13922
13923   acl_save_prefix="$prefix"
13924   prefix="$acl_final_prefix"
13925   acl_save_exec_prefix="$exec_prefix"
13926   exec_prefix="$acl_final_exec_prefix"
13927   eval x=\"$x\"
13928   exec_prefix="$acl_save_exec_prefix"
13929   prefix="$acl_save_prefix"
13930
13931                     if test "X$x" = "X-I$additional_includedir"; then
13932                       haveit=yes
13933                       break
13934                     fi
13935                   done
13936                   if test -z "$haveit"; then
13937                     if test -d "$additional_includedir"; then
13938                                             INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
13939                     fi
13940                   fi
13941                 fi
13942               fi
13943             fi
13944                         if test -n "$found_la"; then
13945                                                         save_libdir="$libdir"
13946               case "$found_la" in
13947                 */* | *\\*) . "$found_la" ;;
13948                 *) . "./$found_la" ;;
13949               esac
13950               libdir="$save_libdir"
13951                             for dep in $dependency_libs; do
13952                 case "$dep" in
13953                   -L*)
13954                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13955                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13956                       haveit=
13957                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13958                         if test -n "$GCC"; then
13959                           case $host_os in
13960                             linux*) haveit=yes;;
13961                           esac
13962                         fi
13963                       fi
13964                       if test -z "$haveit"; then
13965                         haveit=
13966                         for x in $LDFLAGS $LIBLZMA; do
13967
13968   acl_save_prefix="$prefix"
13969   prefix="$acl_final_prefix"
13970   acl_save_exec_prefix="$exec_prefix"
13971   exec_prefix="$acl_final_exec_prefix"
13972   eval x=\"$x\"
13973   exec_prefix="$acl_save_exec_prefix"
13974   prefix="$acl_save_prefix"
13975
13976                           if test "X$x" = "X-L$additional_libdir"; then
13977                             haveit=yes
13978                             break
13979                           fi
13980                         done
13981                         if test -z "$haveit"; then
13982                           if test -d "$additional_libdir"; then
13983                                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
13984                           fi
13985                         fi
13986                         haveit=
13987                         for x in $LDFLAGS $LTLIBLZMA; do
13988
13989   acl_save_prefix="$prefix"
13990   prefix="$acl_final_prefix"
13991   acl_save_exec_prefix="$exec_prefix"
13992   exec_prefix="$acl_final_exec_prefix"
13993   eval x=\"$x\"
13994   exec_prefix="$acl_save_exec_prefix"
13995   prefix="$acl_save_prefix"
13996
13997                           if test "X$x" = "X-L$additional_libdir"; then
13998                             haveit=yes
13999                             break
14000                           fi
14001                         done
14002                         if test -z "$haveit"; then
14003                           if test -d "$additional_libdir"; then
14004                                                         LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
14005                           fi
14006                         fi
14007                       fi
14008                     fi
14009                     ;;
14010                   -R*)
14011                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14012                     if test "$enable_rpath" != no; then
14013                                                                   haveit=
14014                       for x in $rpathdirs; do
14015                         if test "X$x" = "X$dir"; then
14016                           haveit=yes
14017                           break
14018                         fi
14019                       done
14020                       if test -z "$haveit"; then
14021                         rpathdirs="$rpathdirs $dir"
14022                       fi
14023                                                                   haveit=
14024                       for x in $ltrpathdirs; do
14025                         if test "X$x" = "X$dir"; then
14026                           haveit=yes
14027                           break
14028                         fi
14029                       done
14030                       if test -z "$haveit"; then
14031                         ltrpathdirs="$ltrpathdirs $dir"
14032                       fi
14033                     fi
14034                     ;;
14035                   -l*)
14036                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14037                     ;;
14038                   *.la)
14039                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14040                     ;;
14041                   *)
14042                                         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
14043                     LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
14044                     ;;
14045                 esac
14046               done
14047             fi
14048           else
14049                                                             LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
14050             LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
14051           fi
14052         fi
14053       fi
14054     done
14055   done
14056   if test "X$rpathdirs" != "X"; then
14057     if test -n "$hardcode_libdir_separator"; then
14058                         alldirs=
14059       for found_dir in $rpathdirs; do
14060         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14061       done
14062             acl_save_libdir="$libdir"
14063       libdir="$alldirs"
14064       eval flag=\"$hardcode_libdir_flag_spec\"
14065       libdir="$acl_save_libdir"
14066       LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14067     else
14068             for found_dir in $rpathdirs; do
14069         acl_save_libdir="$libdir"
14070         libdir="$found_dir"
14071         eval flag=\"$hardcode_libdir_flag_spec\"
14072         libdir="$acl_save_libdir"
14073         LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
14074       done
14075     fi
14076   fi
14077   if test "X$ltrpathdirs" != "X"; then
14078             for found_dir in $ltrpathdirs; do
14079       LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
14080     done
14081   fi
14082
14083
14084         ac_save_CPPFLAGS="$CPPFLAGS"
14085
14086   for element in $INCLZMA; do
14087     haveit=
14088     for x in $CPPFLAGS; do
14089
14090   acl_save_prefix="$prefix"
14091   prefix="$acl_final_prefix"
14092   acl_save_exec_prefix="$exec_prefix"
14093   exec_prefix="$acl_final_exec_prefix"
14094   eval x=\"$x\"
14095   exec_prefix="$acl_save_exec_prefix"
14096   prefix="$acl_save_prefix"
14097
14098       if test "X$x" = "X$element"; then
14099         haveit=yes
14100         break
14101       fi
14102     done
14103     if test -z "$haveit"; then
14104       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14105     fi
14106   done
14107
14108
14109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
14110 $as_echo_n "checking for liblzma... " >&6; }
14111 if test "${ac_cv_liblzma+set}" = set; then :
14112   $as_echo_n "(cached) " >&6
14113 else
14114
14115     ac_save_LIBS="$LIBS"
14116     LIBS="$LIBS $LIBLZMA"
14117     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 /* end confdefs.h.  */
14119 #include "lzma.h"
14120 int
14121 main ()
14122 {
14123 lzma_index_iter iter;
14124                            lzma_index_iter_init (&iter, 0);
14125                            lzma_mf_is_supported (LZMA_MF_HC3);
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"; then :
14131   ac_cv_liblzma=yes
14132 else
14133   ac_cv_liblzma=no
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext \
14136     conftest$ac_exeext conftest.$ac_ext
14137     LIBS="$ac_save_LIBS"
14138
14139 fi
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
14141 $as_echo "$ac_cv_liblzma" >&6; }
14142   if test "$ac_cv_liblzma" = yes; then
14143     HAVE_LIBLZMA=yes
14144
14145 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
14146
14147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
14148 $as_echo_n "checking how to link with liblzma... " >&6; }
14149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
14150 $as_echo "$LIBLZMA" >&6; }
14151   else
14152     HAVE_LIBLZMA=no
14153             CPPFLAGS="$ac_save_CPPFLAGS"
14154     LIBLZMA=
14155     LTLIBLZMA=
14156   fi
14157
14158
14159
14160
14161
14162
14163     if test "$HAVE_LIBLZMA" != yes; then
14164       if test "$with_lzma" = yes; then
14165         as_fn_error "missing liblzma for --with-lzma" "$LINENO" 5
14166       fi
14167     fi
14168   fi
14169 fi
14170
14171 LIBGUI="../libgui/src/libgui.a"
14172 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14173
14174
14175
14176 WIN32LDAPP=
14177
14178
14179
14180 case "${host}" in
14181 *-*-cygwin* | *-*-mingw* )
14182     configdir="win"
14183     ;;
14184 *)
14185     configdir="unix"
14186     ;;
14187 esac
14188
14189 GDBTKLIBS=
14190 if test "${enable_gdbtk}" = "yes"; then
14191
14192     # Gdbtk must have an absolute path to srcdir in order to run
14193     # properly when not installed.
14194     here=`pwd`
14195     cd ${srcdir}
14196     GDBTK_SRC_DIR=`pwd`
14197     cd $here
14198
14199
14200     #
14201     # Ok, lets find the tcl configuration
14202     # First, look for one uninstalled.
14203     # the alternative search directory is invoked by --with-tcl
14204     #
14205
14206     if test x"${no_tcl}" = x ; then
14207         # we reset no_tcl in case something fails here
14208         no_tcl=true
14209
14210 # Check whether --with-tcl was given.
14211 if test "${with_tcl+set}" = set; then :
14212   withval=$with_tcl; with_tclconfig=${withval}
14213 fi
14214
14215         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14216 $as_echo_n "checking for Tcl configuration... " >&6; }
14217         if test "${ac_cv_c_tclconfig+set}" = set; then :
14218   $as_echo_n "(cached) " >&6
14219 else
14220
14221
14222             # First check to see if --with-tcl was specified.
14223             case "${host}" in
14224                 *-*-cygwin*) platDir="win" ;;
14225                 *) platDir="unix" ;;
14226             esac
14227             if test x"${with_tclconfig}" != x ; then
14228                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14229                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
14230                 else
14231                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14232                 fi
14233             fi
14234
14235             # then check for a private Tcl installation
14236             if test x"${ac_cv_c_tclconfig}" = x ; then
14237                 for i in \
14238                         ../tcl \
14239                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14240                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14241                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14242                         ../../tcl \
14243                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14244                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14245                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14246                         ../../../tcl \
14247                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14248                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14249                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14250                     if test -f "$i/$platDir/tclConfig.sh" ; then
14251                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14252                         break
14253                     fi
14254                 done
14255             fi
14256
14257             # on Darwin, check in Framework installation locations
14258             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
14259                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14260                         `ls -d /Library/Frameworks 2>/dev/null` \
14261                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
14262                         `ls -d /System/Library/Frameworks 2>/dev/null` \
14263                         ; do
14264                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14265                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
14266                         break
14267                     fi
14268                 done
14269             fi
14270
14271             # check in a few common install locations
14272             if test x"${ac_cv_c_tclconfig}" = x ; then
14273                 for i in `ls -d ${libdir} 2>/dev/null` \
14274                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
14275                         `ls -d ${prefix}/lib 2>/dev/null` \
14276                         `ls -d /usr/local/lib 2>/dev/null` \
14277                         `ls -d /usr/contrib/lib 2>/dev/null` \
14278                         `ls -d /usr/lib 2>/dev/null` \
14279                         ; do
14280                     if test -f "$i/tclConfig.sh" ; then
14281                         ac_cv_c_tclconfig=`(cd $i; pwd)`
14282                         break
14283                     fi
14284                 done
14285             fi
14286
14287             # check in a few other private locations
14288             if test x"${ac_cv_c_tclconfig}" = x ; then
14289                 for i in \
14290                         ${srcdir}/../tcl \
14291                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14292                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14293                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14294                     if test -f "$i/$platDir/tclConfig.sh" ; then
14295                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14296                     break
14297                 fi
14298                 done
14299             fi
14300
14301 fi
14302
14303
14304         if test x"${ac_cv_c_tclconfig}" = x ; then
14305             TCL_BIN_DIR="# no Tcl configs found"
14306             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14307 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14308         else
14309             no_tcl=
14310             TCL_BIN_DIR=${ac_cv_c_tclconfig}
14311             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14312 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14313         fi
14314     fi
14315
14316
14317     # If $no_tk is nonempty, then we can't do Tk, and there is no
14318     # point to doing Tcl.
14319
14320     #
14321     # Ok, lets find the tk configuration
14322     # First, look for one uninstalled.
14323     # the alternative search directory is invoked by --with-tk
14324     #
14325
14326     if test x"${no_tk}" = x ; then
14327         # we reset no_tk in case something fails here
14328         no_tk=true
14329
14330 # Check whether --with-tk was given.
14331 if test "${with_tk+set}" = set; then :
14332   withval=$with_tk; with_tkconfig=${withval}
14333 fi
14334
14335         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14336 $as_echo_n "checking for Tk configuration... " >&6; }
14337         if test "${ac_cv_c_tkconfig+set}" = set; then :
14338   $as_echo_n "(cached) " >&6
14339 else
14340
14341
14342             # First check to see if --with-tkconfig was specified.
14343             if test x"${with_tkconfig}" != x ; then
14344                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14345                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
14346                 else
14347                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14348                 fi
14349             fi
14350
14351             # then check for a private Tk library
14352             case "${host}" in
14353                 *-*-cygwin*) platDir="win" ;;
14354                 *) platDir="unix" ;;
14355             esac
14356             if test x"${ac_cv_c_tkconfig}" = x ; then
14357                 for i in \
14358                         ../tk \
14359                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14360                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14361                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14362                         ../../tk \
14363                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14364                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14365                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14366                         ../../../tk \
14367                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14368                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14369                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14370                     if test -f "$i/$platDir/tkConfig.sh" ; then
14371                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14372                         break
14373                     fi
14374                 done
14375             fi
14376
14377             # on Darwin, check in Framework installation locations
14378             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
14379                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14380                         `ls -d /Library/Frameworks 2>/dev/null` \
14381                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
14382                         `ls -d /System/Library/Frameworks 2>/dev/null` \
14383                         ; do
14384                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
14385                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
14386                         break
14387                     fi
14388                 done
14389             fi
14390
14391             # check in a few common install locations
14392             if test x"${ac_cv_c_tkconfig}" = x ; then
14393                 for i in `ls -d ${libdir} 2>/dev/null` \
14394                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
14395                         `ls -d ${prefix}/lib 2>/dev/null` \
14396                         `ls -d /usr/local/lib 2>/dev/null` \
14397                         `ls -d /usr/contrib/lib 2>/dev/null` \
14398                         `ls -d /usr/lib 2>/dev/null` \
14399                         ; do
14400                     if test -f "$i/tkConfig.sh" ; then
14401                         ac_cv_c_tkconfig=`(cd $i; pwd)`
14402                         break
14403                     fi
14404                 done
14405             fi
14406             # check in a few other private locations
14407             if test x"${ac_cv_c_tkconfig}" = x ; then
14408                 for i in \
14409                         ${srcdir}/../tk \
14410                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14411                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14412                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14413                     if test -f "$i/$platDir/tkConfig.sh" ; then
14414                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14415                         break
14416                     fi
14417                 done
14418             fi
14419
14420 fi
14421
14422
14423         if test x"${ac_cv_c_tkconfig}" = x ; then
14424             TK_BIN_DIR="# no Tk configs found"
14425             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14426 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14427         else
14428             no_tk=
14429             TK_BIN_DIR=${ac_cv_c_tkconfig}
14430             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14431 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14432         fi
14433     fi
14434
14435
14436     if test -z "${no_tcl}" -a -z "${no_tk}"; then
14437
14438     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14439 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14440
14441     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14443 $as_echo "loading" >&6; }
14444         . ${TCL_BIN_DIR}/tclConfig.sh
14445     else
14446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14447 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14448     fi
14449
14450     # eval is required to do the TCL_DBGX substitution
14451     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14452     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14453
14454     # If the TCL_BIN_DIR is the build directory (not the install directory),
14455     # then set the common variable name to the value of the build variables.
14456     # For example, the variable TCL_LIB_SPEC will be set to the value
14457     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14458     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14459     # installed and uninstalled version of Tcl.
14460     if test -f "${TCL_BIN_DIR}/Makefile" ; then
14461         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
14462         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
14463         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
14464     elif test "`uname -s`" = "Darwin"; then
14465         # If Tcl was built as a framework, attempt to use the libraries
14466         # from the framework at the given location so that linking works
14467         # against Tcl.framework installed in an arbitrary location.
14468         case ${TCL_DEFS} in
14469             *TCL_FRAMEWORK*)
14470                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14471                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
14472                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14473                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14474                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14475                             break
14476                         fi
14477                     done
14478                 fi
14479                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14480                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14481                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14482                 fi
14483                 ;;
14484         esac
14485     fi
14486
14487     # eval is required to do the TCL_DBGX substitution
14488     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14489     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14490     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14491     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507         # Check for in-tree tcl
14508         here=`pwd`
14509         cd ${srcdir}/..
14510         topdir=`pwd`
14511         cd ${here}
14512
14513         intree="no"
14514         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14515           intree="yes"
14516         fi
14517
14518         # Find Tcl private headers
14519         if test x"${intree}" = xno; then
14520
14521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14522 $as_echo_n "checking for Tcl private headers... " >&6; }
14523   private_dir=""
14524   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14525   if test -f ${dir}/tclInt.h ; then
14526     private_dir=${dir}
14527   fi
14528
14529   if test x"${private_dir}" = x; then
14530     as_fn_error "could not find private Tcl headers" "$LINENO" 5
14531   else
14532     TCL_PRIVATE_INCLUDE="-I${private_dir}"
14533     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14534 $as_echo "${private_dir}" >&6; }
14535   fi
14536
14537           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14538           TCL_LIBRARY="${TCL_LIB_SPEC}"
14539           TCL_DEPS=""
14540         else
14541           # If building tcl in the same src tree, private headers
14542           # are not needed, but we need to be sure to use the right
14543           # headers library
14544           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
14545           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
14546           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
14547         fi
14548
14549
14550
14551
14552
14553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
14554 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
14555
14556     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
14557         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14558 $as_echo "loading" >&6; }
14559         . ${TK_BIN_DIR}/tkConfig.sh
14560     else
14561         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
14562 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14563     fi
14564
14565     # eval is required to do the TK_DBGX substitution
14566     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
14567     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
14568
14569     # If the TK_BIN_DIR is the build directory (not the install directory),
14570     # then set the common variable name to the value of the build variables.
14571     # For example, the variable TK_LIB_SPEC will be set to the value
14572     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
14573     # instead of TK_BUILD_LIB_SPEC since it will work with both an
14574     # installed and uninstalled version of Tcl.
14575     if test -f "${TK_BIN_DIR}/Makefile" ; then
14576         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
14577         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
14578         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
14579     elif test "`uname -s`" = "Darwin"; then
14580         # If Tk was built as a framework, attempt to use the libraries
14581         # from the framework at the given location so that linking works
14582         # against Tk.framework installed in an arbitrary location.
14583         case ${TK_DEFS} in
14584             *TK_FRAMEWORK*)
14585                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
14586                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
14587                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
14588                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
14589                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
14590                             break
14591                         fi
14592                     done
14593                 fi
14594                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
14595                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
14596                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
14597                 fi
14598                 ;;
14599         esac
14600     fi
14601
14602     # eval is required to do the TK_DBGX substitution
14603     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
14604     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
14605     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
14606     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621         # Check for in-tree Tk
14622         intree="no"
14623         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
14624           intree="yes"
14625         fi
14626
14627         # Find Tk private headers
14628         if test x"${intree}" = xno; then
14629
14630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
14631 $as_echo_n "checking for Tk private headers... " >&6; }
14632   private_dir=""
14633   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
14634   if test -f ${dir}/tkInt.h; then
14635     private_dir=${dir}
14636   fi
14637
14638   if test x"${private_dir}" = x; then
14639     as_fn_error "could not find Tk private headers" "$LINENO" 5
14640   else
14641     TK_PRIVATE_INCLUDE="-I${private_dir}"
14642     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14643 $as_echo "${private_dir}" >&6; }
14644   fi
14645
14646           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
14647           TK_LIBRARY=${TK_LIB_SPEC}
14648           TK_DEPS=""
14649         else
14650           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
14651           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
14652           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
14653         fi
14654
14655
14656
14657
14658
14659         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
14660
14661         # Include some libraries that Tcl and Tk want.
14662         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
14663         # Yes, the ordering seems wrong here.  But it isn't.
14664         # TK_LIBS is the list of libraries that need to be linked
14665         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
14666         # were in LIBS then any link tests after this point would
14667         # try to include things like `$(LIBGUI)', which wouldn't work.
14668         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
14669
14670         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
14671         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
14672         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
14673         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
14674         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
14675         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
14676         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
14677
14678         if test x$gdb_cv_os_cygwin = xyes; then
14679           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
14680           WIN32LDAPP="-Wl,--subsystem,console"
14681           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
14682         fi
14683
14684         subdirs="$subdirs gdbtk"
14685
14686     fi
14687 fi
14688
14689
14690
14691
14692
14693
14694
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
14697 $as_echo_n "checking for X... " >&6; }
14698
14699
14700 # Check whether --with-x was given.
14701 if test "${with_x+set}" = set; then :
14702   withval=$with_x;
14703 fi
14704
14705 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14706 if test "x$with_x" = xno; then
14707   # The user explicitly disabled X.
14708   have_x=disabled
14709 else
14710   case $x_includes,$x_libraries in #(
14711     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
14712     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
14713   $as_echo_n "(cached) " >&6
14714 else
14715   # One or both of the vars are not set, and there is no cached value.
14716 ac_x_includes=no ac_x_libraries=no
14717 rm -f -r conftest.dir
14718 if mkdir conftest.dir; then
14719   cd conftest.dir
14720   cat >Imakefile <<'_ACEOF'
14721 incroot:
14722         @echo incroot='${INCROOT}'
14723 usrlibdir:
14724         @echo usrlibdir='${USRLIBDIR}'
14725 libdir:
14726         @echo libdir='${LIBDIR}'
14727 _ACEOF
14728   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
14729     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14730     for ac_var in incroot usrlibdir libdir; do
14731       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
14732     done
14733     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14734     for ac_extension in a so sl dylib la dll; do
14735       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
14736          test -f "$ac_im_libdir/libX11.$ac_extension"; then
14737         ac_im_usrlibdir=$ac_im_libdir; break
14738       fi
14739     done
14740     # Screen out bogus values from the imake configuration.  They are
14741     # bogus both because they are the default anyway, and because
14742     # using them would break gcc on systems where it needs fixed includes.
14743     case $ac_im_incroot in
14744         /usr/include) ac_x_includes= ;;
14745         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14746     esac
14747     case $ac_im_usrlibdir in
14748         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
14749         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14750     esac
14751   fi
14752   cd ..
14753   rm -f -r conftest.dir
14754 fi
14755
14756 # Standard set of common directories for X headers.
14757 # Check X11 before X11Rn because it is often a symlink to the current release.
14758 ac_x_header_dirs='
14759 /usr/X11/include
14760 /usr/X11R7/include
14761 /usr/X11R6/include
14762 /usr/X11R5/include
14763 /usr/X11R4/include
14764
14765 /usr/include/X11
14766 /usr/include/X11R7
14767 /usr/include/X11R6
14768 /usr/include/X11R5
14769 /usr/include/X11R4
14770
14771 /usr/local/X11/include
14772 /usr/local/X11R7/include
14773 /usr/local/X11R6/include
14774 /usr/local/X11R5/include
14775 /usr/local/X11R4/include
14776
14777 /usr/local/include/X11
14778 /usr/local/include/X11R7
14779 /usr/local/include/X11R6
14780 /usr/local/include/X11R5
14781 /usr/local/include/X11R4
14782
14783 /usr/X386/include
14784 /usr/x386/include
14785 /usr/XFree86/include/X11
14786
14787 /usr/include
14788 /usr/local/include
14789 /usr/unsupported/include
14790 /usr/athena/include
14791 /usr/local/x11r5/include
14792 /usr/lpp/Xamples/include
14793
14794 /usr/openwin/include
14795 /usr/openwin/share/include'
14796
14797 if test "$ac_x_includes" = no; then
14798   # Guess where to find include files, by looking for Xlib.h.
14799   # First, try using that file with no special directory specified.
14800   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h.  */
14802 #include <X11/Xlib.h>
14803 _ACEOF
14804 if ac_fn_c_try_cpp "$LINENO"; then :
14805   # We can compile using X headers with no special include directory.
14806 ac_x_includes=
14807 else
14808   for ac_dir in $ac_x_header_dirs; do
14809   if test -r "$ac_dir/X11/Xlib.h"; then
14810     ac_x_includes=$ac_dir
14811     break
14812   fi
14813 done
14814 fi
14815 rm -f conftest.err conftest.$ac_ext
14816 fi # $ac_x_includes = no
14817
14818 if test "$ac_x_libraries" = no; then
14819   # Check for the libraries.
14820   # See if we find them without any special options.
14821   # Don't add to $LIBS permanently.
14822   ac_save_LIBS=$LIBS
14823   LIBS="-lX11 $LIBS"
14824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14825 /* end confdefs.h.  */
14826 #include <X11/Xlib.h>
14827 int
14828 main ()
14829 {
14830 XrmInitialize ()
14831   ;
14832   return 0;
14833 }
14834 _ACEOF
14835 if ac_fn_c_try_link "$LINENO"; then :
14836   LIBS=$ac_save_LIBS
14837 # We can link X programs with no special library path.
14838 ac_x_libraries=
14839 else
14840   LIBS=$ac_save_LIBS
14841 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14842 do
14843   # Don't even attempt the hair of trying to link an X program!
14844   for ac_extension in a so sl dylib la dll; do
14845     if test -r "$ac_dir/libX11.$ac_extension"; then
14846       ac_x_libraries=$ac_dir
14847       break 2
14848     fi
14849   done
14850 done
14851 fi
14852 rm -f core conftest.err conftest.$ac_objext \
14853     conftest$ac_exeext conftest.$ac_ext
14854 fi # $ac_x_libraries = no
14855
14856 case $ac_x_includes,$ac_x_libraries in #(
14857   no,* | *,no | *\'*)
14858     # Didn't find X, or a directory has "'" in its name.
14859     ac_cv_have_x="have_x=no";; #(
14860   *)
14861     # Record where we found X for the cache.
14862     ac_cv_have_x="have_x=yes\
14863         ac_x_includes='$ac_x_includes'\
14864         ac_x_libraries='$ac_x_libraries'"
14865 esac
14866 fi
14867 ;; #(
14868     *) have_x=yes;;
14869   esac
14870   eval "$ac_cv_have_x"
14871 fi # $with_x != no
14872
14873 if test "$have_x" != yes; then
14874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
14875 $as_echo "$have_x" >&6; }
14876   no_x=yes
14877 else
14878   # If each of the values was on the command line, it overrides each guess.
14879   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14880   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14881   # Update the cache value to reflect the command line values.
14882   ac_cv_have_x="have_x=yes\
14883         ac_x_includes='$x_includes'\
14884         ac_x_libraries='$x_libraries'"
14885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
14886 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
14887 fi
14888
14889
14890 # Unlike the sim directory, whether a simulator is linked is controlled by
14891 # presence of a gdb_sim definition in the target configure.tgt entry.
14892 # This code just checks for a few cases where we'd like to ignore those
14893 # definitions, even when they're present in the '.mt' file.  These cases
14894 # are when --disable-sim is specified, or if the simulator directory is
14895 # not part of the source tree.
14896 #
14897 # Check whether --enable-sim was given.
14898 if test "${enable_sim+set}" = set; then :
14899   enableval=$enable_sim; echo "enable_sim = $enable_sim";
14900  echo "enableval = ${enableval}";
14901  case "${enableval}" in
14902   yes) ignore_sim=false ;;
14903   no)  ignore_sim=true ;;
14904   *)   ignore_sim=false ;;
14905  esac
14906 else
14907   ignore_sim=false
14908 fi
14909
14910
14911 if test ! -d "${srcdir}/../sim"; then
14912   ignore_sim=true
14913 fi
14914
14915 SIM=
14916 SIM_OBS=
14917 if test "${ignore_sim}" = "false"; then
14918   if test x"${gdb_sim}" != x ; then
14919     SIM="${gdb_sim}"
14920     SIM_OBS="remote-sim.o"
14921
14922 $as_echo "#define WITH_SIM 1" >>confdefs.h
14923
14924   fi
14925 fi
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940 # List of host floatformats.
14941
14942 cat >>confdefs.h <<_ACEOF
14943 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14944 _ACEOF
14945
14946
14947 cat >>confdefs.h <<_ACEOF
14948 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14949 _ACEOF
14950
14951
14952 cat >>confdefs.h <<_ACEOF
14953 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14954 _ACEOF
14955
14956
14957 # target_subdir is used by the testsuite to find the target libraries.
14958 target_subdir=
14959 if test "${host}" != "${target}"; then
14960     target_subdir="${target_alias}/"
14961 fi
14962
14963
14964 frags=
14965 if test "${gdb_native}" = "yes"; then
14966   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14967   if test ! -f ${host_makefile_frag}; then
14968     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14969   fi
14970   frags="$frags $host_makefile_frag"
14971 else
14972   host_makefile_frag=/dev/null
14973 fi
14974
14975
14976
14977
14978 if test "${gdb_native}" = "yes"; then
14979 # We pick this up from the host configuration file (.mh) because we
14980 # do not have a native configuration Makefile fragment.
14981 nativefile=`sed -n '
14982 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
14983 ' ${host_makefile_frag}`
14984 fi
14985
14986
14987 if test x"${gdb_osabi}" != x ; then
14988
14989 cat >>confdefs.h <<_ACEOF
14990 #define GDB_OSABI_DEFAULT $gdb_osabi
14991 _ACEOF
14992
14993 fi
14994
14995 # Enable multi-ice-gdb-server.
14996 # Check whether --enable-multi-ice was given.
14997 if test "${enable_multi_ice+set}" = set; then :
14998   enableval=$enable_multi_ice; case $enableval in
14999     yes | no)
15000       ;;
15001     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15002   esac
15003 fi
15004
15005 if test "x$enable_multi_ice" = xyes; then
15006    subdirs="$subdirs multi-ice"
15007
15008 fi
15009
15010 # Check whether --enable-gdbserver was given.
15011 if test "${enable_gdbserver+set}" = set; then :
15012   enableval=$enable_gdbserver; case "${enableval}" in
15013   yes| no|auto) ;;
15014   *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
15015 esac
15016 else
15017   enable_gdbserver=auto
15018 fi
15019
15020
15021 # We only build gdbserver automatically in a native configuration, and
15022 # only if the user did not explicitly disable its build.
15023 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
15024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15025 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15026   if test "x$build_gdbserver" = xyes; then
15027     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15028 $as_echo "yes" >&6; }
15029     subdirs="$subdirs gdbserver"
15030
15031     gdbserver_build_enabled=yes
15032   else
15033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15034 $as_echo "no" >&6; }
15035   fi
15036 fi
15037
15038 # If the user explicitly request the gdbserver to be built, verify that
15039 # we were in fact able to enable it.
15040 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
15041   as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
15042 fi
15043
15044 # Check for babeltrace and babeltrace-ctf
15045
15046 # Check whether --with-babeltrace was given.
15047 if test "${with_babeltrace+set}" = set; then :
15048   withval=$with_babeltrace;
15049 else
15050   with_babeltrace=auto
15051 fi
15052
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
15054 $as_echo_n "checking whether to use babeltrace... " >&6; }
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
15056 $as_echo "$with_babeltrace" >&6; }
15057
15058 if test "x$with_babeltrace" = "xno"; then
15059   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
15060 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
15061 else
15062   # Append -Werror to CFLAGS so that configure can catch the warning
15063   # "assignment from incompatible pointer type", which is related to
15064   # the babeltrace change from 1.0.3 to 1.1.0.  Babeltrace 1.1.0 works
15065   # in GDB, while babeltrace 1.0.3 is broken.
15066   # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
15067   # safe to save and restore CFLAGS here.
15068   saved_CFLAGS=$CFLAGS
15069   CFLAGS="$CFLAGS -Werror"
15070
15071
15072
15073
15074
15075
15076
15077
15078     use_additional=yes
15079
15080   acl_save_prefix="$prefix"
15081   prefix="$acl_final_prefix"
15082   acl_save_exec_prefix="$exec_prefix"
15083   exec_prefix="$acl_final_exec_prefix"
15084
15085     eval additional_includedir=\"$includedir\"
15086     eval additional_libdir=\"$libdir\"
15087
15088   exec_prefix="$acl_save_exec_prefix"
15089   prefix="$acl_save_prefix"
15090
15091
15092 # Check whether --with-libbabeltrace-prefix was given.
15093 if test "${with_libbabeltrace_prefix+set}" = set; then :
15094   withval=$with_libbabeltrace_prefix;
15095     if test "X$withval" = "Xno"; then
15096       use_additional=no
15097     else
15098       if test "X$withval" = "X"; then
15099
15100   acl_save_prefix="$prefix"
15101   prefix="$acl_final_prefix"
15102   acl_save_exec_prefix="$exec_prefix"
15103   exec_prefix="$acl_final_exec_prefix"
15104
15105           eval additional_includedir=\"$includedir\"
15106           eval additional_libdir=\"$libdir\"
15107
15108   exec_prefix="$acl_save_exec_prefix"
15109   prefix="$acl_save_prefix"
15110
15111       else
15112         additional_includedir="$withval/include"
15113         additional_libdir="$withval/lib"
15114       fi
15115     fi
15116
15117 fi
15118
15119       LIBBABELTRACE=
15120   LTLIBBABELTRACE=
15121   INCBABELTRACE=
15122   rpathdirs=
15123   ltrpathdirs=
15124   names_already_handled=
15125   names_next_round='babeltrace babeltrace-ctf'
15126   while test -n "$names_next_round"; do
15127     names_this_round="$names_next_round"
15128     names_next_round=
15129     for name in $names_this_round; do
15130       already_handled=
15131       for n in $names_already_handled; do
15132         if test "$n" = "$name"; then
15133           already_handled=yes
15134           break
15135         fi
15136       done
15137       if test -z "$already_handled"; then
15138         names_already_handled="$names_already_handled $name"
15139                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15140         eval value=\"\$HAVE_LIB$uppername\"
15141         if test -n "$value"; then
15142           if test "$value" = yes; then
15143             eval value=\"\$LIB$uppername\"
15144             test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
15145             eval value=\"\$LTLIB$uppername\"
15146             test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
15147           else
15148                                     :
15149           fi
15150         else
15151                               found_dir=
15152           found_la=
15153           found_so=
15154           found_a=
15155           if test $use_additional = yes; then
15156             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15157               found_dir="$additional_libdir"
15158               found_so="$additional_libdir/lib$name.$shlibext"
15159               if test -f "$additional_libdir/lib$name.la"; then
15160                 found_la="$additional_libdir/lib$name.la"
15161               fi
15162             else
15163               if test -f "$additional_libdir/lib$name.$libext"; then
15164                 found_dir="$additional_libdir"
15165                 found_a="$additional_libdir/lib$name.$libext"
15166                 if test -f "$additional_libdir/lib$name.la"; then
15167                   found_la="$additional_libdir/lib$name.la"
15168                 fi
15169               fi
15170             fi
15171           fi
15172           if test "X$found_dir" = "X"; then
15173             for x in $LDFLAGS $LTLIBBABELTRACE; do
15174
15175   acl_save_prefix="$prefix"
15176   prefix="$acl_final_prefix"
15177   acl_save_exec_prefix="$exec_prefix"
15178   exec_prefix="$acl_final_exec_prefix"
15179   eval x=\"$x\"
15180   exec_prefix="$acl_save_exec_prefix"
15181   prefix="$acl_save_prefix"
15182
15183               case "$x" in
15184                 -L*)
15185                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15186                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15187                     found_dir="$dir"
15188                     found_so="$dir/lib$name.$shlibext"
15189                     if test -f "$dir/lib$name.la"; then
15190                       found_la="$dir/lib$name.la"
15191                     fi
15192                   else
15193                     if test -f "$dir/lib$name.$libext"; then
15194                       found_dir="$dir"
15195                       found_a="$dir/lib$name.$libext"
15196                       if test -f "$dir/lib$name.la"; then
15197                         found_la="$dir/lib$name.la"
15198                       fi
15199                     fi
15200                   fi
15201                   ;;
15202               esac
15203               if test "X$found_dir" != "X"; then
15204                 break
15205               fi
15206             done
15207           fi
15208           if test "X$found_dir" != "X"; then
15209                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
15210             if test "X$found_so" != "X"; then
15211                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
15212                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15213               else
15214                                                                                 haveit=
15215                 for x in $ltrpathdirs; do
15216                   if test "X$x" = "X$found_dir"; then
15217                     haveit=yes
15218                     break
15219                   fi
15220                 done
15221                 if test -z "$haveit"; then
15222                   ltrpathdirs="$ltrpathdirs $found_dir"
15223                 fi
15224                                 if test "$hardcode_direct" = yes; then
15225                                                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15226                 else
15227                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15228                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15229                                                             haveit=
15230                     for x in $rpathdirs; do
15231                       if test "X$x" = "X$found_dir"; then
15232                         haveit=yes
15233                         break
15234                       fi
15235                     done
15236                     if test -z "$haveit"; then
15237                       rpathdirs="$rpathdirs $found_dir"
15238                     fi
15239                   else
15240                                                                                 haveit=
15241                     for x in $LDFLAGS $LIBBABELTRACE; do
15242
15243   acl_save_prefix="$prefix"
15244   prefix="$acl_final_prefix"
15245   acl_save_exec_prefix="$exec_prefix"
15246   exec_prefix="$acl_final_exec_prefix"
15247   eval x=\"$x\"
15248   exec_prefix="$acl_save_exec_prefix"
15249   prefix="$acl_save_prefix"
15250
15251                       if test "X$x" = "X-L$found_dir"; then
15252                         haveit=yes
15253                         break
15254                       fi
15255                     done
15256                     if test -z "$haveit"; then
15257                       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
15258                     fi
15259                     if test "$hardcode_minus_L" != no; then
15260                                                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
15261                     else
15262                                                                                                                                                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15263                     fi
15264                   fi
15265                 fi
15266               fi
15267             else
15268               if test "X$found_a" != "X"; then
15269                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
15270               else
15271                                                 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
15272               fi
15273             fi
15274                         additional_includedir=
15275             case "$found_dir" in
15276               */lib | */lib/)
15277                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15278                 additional_includedir="$basedir/include"
15279                 ;;
15280             esac
15281             if test "X$additional_includedir" != "X"; then
15282                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15283                 haveit=
15284                 if test "X$additional_includedir" = "X/usr/local/include"; then
15285                   if test -n "$GCC"; then
15286                     case $host_os in
15287                       linux*) haveit=yes;;
15288                     esac
15289                   fi
15290                 fi
15291                 if test -z "$haveit"; then
15292                   for x in $CPPFLAGS $INCBABELTRACE; do
15293
15294   acl_save_prefix="$prefix"
15295   prefix="$acl_final_prefix"
15296   acl_save_exec_prefix="$exec_prefix"
15297   exec_prefix="$acl_final_exec_prefix"
15298   eval x=\"$x\"
15299   exec_prefix="$acl_save_exec_prefix"
15300   prefix="$acl_save_prefix"
15301
15302                     if test "X$x" = "X-I$additional_includedir"; then
15303                       haveit=yes
15304                       break
15305                     fi
15306                   done
15307                   if test -z "$haveit"; then
15308                     if test -d "$additional_includedir"; then
15309                                             INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
15310                     fi
15311                   fi
15312                 fi
15313               fi
15314             fi
15315                         if test -n "$found_la"; then
15316                                                         save_libdir="$libdir"
15317               case "$found_la" in
15318                 */* | *\\*) . "$found_la" ;;
15319                 *) . "./$found_la" ;;
15320               esac
15321               libdir="$save_libdir"
15322                             for dep in $dependency_libs; do
15323                 case "$dep" in
15324                   -L*)
15325                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15326                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
15327                       haveit=
15328                       if test "X$additional_libdir" = "X/usr/local/lib"; then
15329                         if test -n "$GCC"; then
15330                           case $host_os in
15331                             linux*) haveit=yes;;
15332                           esac
15333                         fi
15334                       fi
15335                       if test -z "$haveit"; then
15336                         haveit=
15337                         for x in $LDFLAGS $LIBBABELTRACE; do
15338
15339   acl_save_prefix="$prefix"
15340   prefix="$acl_final_prefix"
15341   acl_save_exec_prefix="$exec_prefix"
15342   exec_prefix="$acl_final_exec_prefix"
15343   eval x=\"$x\"
15344   exec_prefix="$acl_save_exec_prefix"
15345   prefix="$acl_save_prefix"
15346
15347                           if test "X$x" = "X-L$additional_libdir"; then
15348                             haveit=yes
15349                             break
15350                           fi
15351                         done
15352                         if test -z "$haveit"; then
15353                           if test -d "$additional_libdir"; then
15354                                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
15355                           fi
15356                         fi
15357                         haveit=
15358                         for x in $LDFLAGS $LTLIBBABELTRACE; do
15359
15360   acl_save_prefix="$prefix"
15361   prefix="$acl_final_prefix"
15362   acl_save_exec_prefix="$exec_prefix"
15363   exec_prefix="$acl_final_exec_prefix"
15364   eval x=\"$x\"
15365   exec_prefix="$acl_save_exec_prefix"
15366   prefix="$acl_save_prefix"
15367
15368                           if test "X$x" = "X-L$additional_libdir"; then
15369                             haveit=yes
15370                             break
15371                           fi
15372                         done
15373                         if test -z "$haveit"; then
15374                           if test -d "$additional_libdir"; then
15375                                                         LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
15376                           fi
15377                         fi
15378                       fi
15379                     fi
15380                     ;;
15381                   -R*)
15382                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15383                     if test "$enable_rpath" != no; then
15384                                                                   haveit=
15385                       for x in $rpathdirs; do
15386                         if test "X$x" = "X$dir"; then
15387                           haveit=yes
15388                           break
15389                         fi
15390                       done
15391                       if test -z "$haveit"; then
15392                         rpathdirs="$rpathdirs $dir"
15393                       fi
15394                                                                   haveit=
15395                       for x in $ltrpathdirs; do
15396                         if test "X$x" = "X$dir"; then
15397                           haveit=yes
15398                           break
15399                         fi
15400                       done
15401                       if test -z "$haveit"; then
15402                         ltrpathdirs="$ltrpathdirs $dir"
15403                       fi
15404                     fi
15405                     ;;
15406                   -l*)
15407                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15408                     ;;
15409                   *.la)
15410                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15411                     ;;
15412                   *)
15413                                         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
15414                     LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
15415                     ;;
15416                 esac
15417               done
15418             fi
15419           else
15420                                                             LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
15421             LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
15422           fi
15423         fi
15424       fi
15425     done
15426   done
15427   if test "X$rpathdirs" != "X"; then
15428     if test -n "$hardcode_libdir_separator"; then
15429                         alldirs=
15430       for found_dir in $rpathdirs; do
15431         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15432       done
15433             acl_save_libdir="$libdir"
15434       libdir="$alldirs"
15435       eval flag=\"$hardcode_libdir_flag_spec\"
15436       libdir="$acl_save_libdir"
15437       LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15438     else
15439             for found_dir in $rpathdirs; do
15440         acl_save_libdir="$libdir"
15441         libdir="$found_dir"
15442         eval flag=\"$hardcode_libdir_flag_spec\"
15443         libdir="$acl_save_libdir"
15444         LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
15445       done
15446     fi
15447   fi
15448   if test "X$ltrpathdirs" != "X"; then
15449             for found_dir in $ltrpathdirs; do
15450       LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
15451     done
15452   fi
15453
15454
15455         ac_save_CPPFLAGS="$CPPFLAGS"
15456
15457   for element in $INCBABELTRACE; do
15458     haveit=
15459     for x in $CPPFLAGS; do
15460
15461   acl_save_prefix="$prefix"
15462   prefix="$acl_final_prefix"
15463   acl_save_exec_prefix="$exec_prefix"
15464   exec_prefix="$acl_final_exec_prefix"
15465   eval x=\"$x\"
15466   exec_prefix="$acl_save_exec_prefix"
15467   prefix="$acl_save_prefix"
15468
15469       if test "X$x" = "X$element"; then
15470         haveit=yes
15471         break
15472       fi
15473     done
15474     if test -z "$haveit"; then
15475       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15476     fi
15477   done
15478
15479
15480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
15481 $as_echo_n "checking for libbabeltrace... " >&6; }
15482 if test "${ac_cv_libbabeltrace+set}" = set; then :
15483   $as_echo_n "(cached) " >&6
15484 else
15485
15486     ac_save_LIBS="$LIBS"
15487     LIBS="$LIBS $LIBBABELTRACE"
15488     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h.  */
15490 #include <babeltrace/babeltrace.h>
15491                          #include <babeltrace/ctf/events.h>
15492                          #include <babeltrace/ctf/iterator.h>
15493 int
15494 main ()
15495 {
15496 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
15497                         struct bt_ctf_event *event = NULL;
15498                         const struct bt_definition *scope;
15499
15500                         bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
15501                         scope = bt_ctf_get_top_level_scope (event,
15502                                                            BT_STREAM_EVENT_HEADER);
15503                         bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
15504
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_link "$LINENO"; then :
15510   ac_cv_libbabeltrace=yes
15511 else
15512   ac_cv_libbabeltrace=no
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext \
15515     conftest$ac_exeext conftest.$ac_ext
15516     LIBS="$ac_save_LIBS"
15517
15518 fi
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
15520 $as_echo "$ac_cv_libbabeltrace" >&6; }
15521   if test "$ac_cv_libbabeltrace" = yes; then
15522     HAVE_LIBBABELTRACE=yes
15523
15524 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
15525
15526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
15527 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
15528     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
15529 $as_echo "$LIBBABELTRACE" >&6; }
15530   else
15531     HAVE_LIBBABELTRACE=no
15532             CPPFLAGS="$ac_save_CPPFLAGS"
15533     LIBBABELTRACE=
15534     LTLIBBABELTRACE=
15535   fi
15536
15537
15538
15539
15540
15541
15542   CFLAGS=$saved_CFLAGS
15543
15544   if test "$HAVE_LIBBABELTRACE" != yes; then
15545      if test "$with_babeltrace" = yes; then
15546        as_fn_error "babeltrace is missing or unusable" "$LINENO" 5
15547      else
15548        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
15549 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
15550      fi
15551   fi
15552 fi
15553
15554 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15555 # to an empty version.
15556
15557 files=
15558 links=
15559
15560 rm -f nm.h
15561 if test "${nativefile}" != ""; then
15562     case "${nativefile}" in
15563       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15564       * ) GDB_NM_FILE="${nativefile}"
15565     esac
15566     files="${files} ${GDB_NM_FILE}"
15567     links="${links} nm.h"
15568
15569 cat >>confdefs.h <<_ACEOF
15570 #define GDB_NM_FILE "${GDB_NM_FILE}"
15571 _ACEOF
15572
15573 fi
15574
15575
15576 ac_sources="$files"
15577 ac_dests="$links"
15578 while test -n "$ac_sources"; do
15579   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15580   set $ac_sources; ac_source=$1; shift; ac_sources=$*
15581   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15582 done
15583 ac_config_links="$ac_config_links $ac_config_links_1"
15584
15585
15586
15587
15588
15589 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15590
15591
15592
15593   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15594   GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
15595   if test "x$GDB_TRANSFORM_NAME" = x; then
15596      GDB_TRANSFORM_NAME=gdb
15597   fi
15598
15599
15600
15601   gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
15602   GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
15603   if test "x$GCORE_TRANSFORM_NAME" = x; then
15604      GCORE_TRANSFORM_NAME=gcore
15605   fi
15606
15607
15608 ac_config_files="$ac_config_files gcore"
15609
15610
15611 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
15612
15613 ac_config_commands="$ac_config_commands default"
15614
15615 cat >confcache <<\_ACEOF
15616 # This file is a shell script that caches the results of configure
15617 # tests run on this system so they can be shared between configure
15618 # scripts and configure runs, see configure's option --config-cache.
15619 # It is not useful on other systems.  If it contains results you don't
15620 # want to keep, you may remove or edit it.
15621 #
15622 # config.status only pays attention to the cache file if you give it
15623 # the --recheck option to rerun configure.
15624 #
15625 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15626 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15627 # following values.
15628
15629 _ACEOF
15630
15631 # The following way of writing the cache mishandles newlines in values,
15632 # but we know of no workaround that is simple, portable, and efficient.
15633 # So, we kill variables containing newlines.
15634 # Ultrix sh set writes to stderr and can't be redirected directly,
15635 # and sets the high bit in the cache file unless we assign to the vars.
15636 (
15637   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15638     eval ac_val=\$$ac_var
15639     case $ac_val in #(
15640     *${as_nl}*)
15641       case $ac_var in #(
15642       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15643 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15644       esac
15645       case $ac_var in #(
15646       _ | IFS | as_nl) ;; #(
15647       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15648       *) { eval $ac_var=; unset $ac_var;} ;;
15649       esac ;;
15650     esac
15651   done
15652
15653   (set) 2>&1 |
15654     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15655     *${as_nl}ac_space=\ *)
15656       # `set' does not quote correctly, so add quotes: double-quote
15657       # substitution turns \\\\ into \\, and sed turns \\ into \.
15658       sed -n \
15659         "s/'/'\\\\''/g;
15660           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15661       ;; #(
15662     *)
15663       # `set' quotes correctly as required by POSIX, so do not add quotes.
15664       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15665       ;;
15666     esac |
15667     sort
15668 ) |
15669   sed '
15670      /^ac_cv_env_/b end
15671      t clear
15672      :clear
15673      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15674      t end
15675      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15676      :end' >>confcache
15677 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15678   if test -w "$cache_file"; then
15679     test "x$cache_file" != "x/dev/null" &&
15680       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15681 $as_echo "$as_me: updating cache $cache_file" >&6;}
15682     cat confcache >$cache_file
15683   else
15684     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15685 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15686   fi
15687 fi
15688 rm -f confcache
15689
15690 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15691 # Let make expand exec_prefix.
15692 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15693
15694 DEFS=-DHAVE_CONFIG_H
15695
15696 ac_libobjs=
15697 ac_ltlibobjs=
15698 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15699   # 1. Remove the extension, and $U if already installed.
15700   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15701   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15702   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15703   #    will be set to the directory where LIBOBJS objects are built.
15704   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15705   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15706 done
15707 LIBOBJS=$ac_libobjs
15708
15709 LTLIBOBJS=$ac_ltlibobjs
15710
15711
15712 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15713   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15715 fi
15716 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15717   as_fn_error "conditional \"GMAKE\" was never defined.
15718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15719 fi
15720 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
15721   as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
15722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15723 fi
15724 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
15725   as_fn_error "conditional \"HAVE_GUILE\" was never defined.
15726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15727 fi
15728
15729
15730 : ${CONFIG_STATUS=./config.status}
15731 ac_write_fail=0
15732 ac_clean_files_save=$ac_clean_files
15733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15735 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15736 as_write_fail=0
15737 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15738 #! $SHELL
15739 # Generated by $as_me.
15740 # Run this file to recreate the current configuration.
15741 # Compiler output produced by configure, useful for debugging
15742 # configure, is in config.log if it exists.
15743
15744 debug=false
15745 ac_cs_recheck=false
15746 ac_cs_silent=false
15747
15748 SHELL=\${CONFIG_SHELL-$SHELL}
15749 export SHELL
15750 _ASEOF
15751 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15752 ## -------------------- ##
15753 ## M4sh Initialization. ##
15754 ## -------------------- ##
15755
15756 # Be more Bourne compatible
15757 DUALCASE=1; export DUALCASE # for MKS sh
15758 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15759   emulate sh
15760   NULLCMD=:
15761   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15762   # is contrary to our usage.  Disable this feature.
15763   alias -g '${1+"$@"}'='"$@"'
15764   setopt NO_GLOB_SUBST
15765 else
15766   case `(set -o) 2>/dev/null` in #(
15767   *posix*) :
15768     set -o posix ;; #(
15769   *) :
15770      ;;
15771 esac
15772 fi
15773
15774
15775 as_nl='
15776 '
15777 export as_nl
15778 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15779 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15780 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15781 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15782 # Prefer a ksh shell builtin over an external printf program on Solaris,
15783 # but without wasting forks for bash or zsh.
15784 if test -z "$BASH_VERSION$ZSH_VERSION" \
15785     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15786   as_echo='print -r --'
15787   as_echo_n='print -rn --'
15788 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15789   as_echo='printf %s\n'
15790   as_echo_n='printf %s'
15791 else
15792   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15793     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15794     as_echo_n='/usr/ucb/echo -n'
15795   else
15796     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15797     as_echo_n_body='eval
15798       arg=$1;
15799       case $arg in #(
15800       *"$as_nl"*)
15801         expr "X$arg" : "X\\(.*\\)$as_nl";
15802         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15803       esac;
15804       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15805     '
15806     export as_echo_n_body
15807     as_echo_n='sh -c $as_echo_n_body as_echo'
15808   fi
15809   export as_echo_body
15810   as_echo='sh -c $as_echo_body as_echo'
15811 fi
15812
15813 # The user is always right.
15814 if test "${PATH_SEPARATOR+set}" != set; then
15815   PATH_SEPARATOR=:
15816   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15817     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15818       PATH_SEPARATOR=';'
15819   }
15820 fi
15821
15822
15823 # IFS
15824 # We need space, tab and new line, in precisely that order.  Quoting is
15825 # there to prevent editors from complaining about space-tab.
15826 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15827 # splitting by setting IFS to empty value.)
15828 IFS=" ""        $as_nl"
15829
15830 # Find who we are.  Look in the path if we contain no directory separator.
15831 case $0 in #((
15832   *[\\/]* ) as_myself=$0 ;;
15833   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15834 for as_dir in $PATH
15835 do
15836   IFS=$as_save_IFS
15837   test -z "$as_dir" && as_dir=.
15838     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15839   done
15840 IFS=$as_save_IFS
15841
15842      ;;
15843 esac
15844 # We did not find ourselves, most probably we were run as `sh COMMAND'
15845 # in which case we are not to be found in the path.
15846 if test "x$as_myself" = x; then
15847   as_myself=$0
15848 fi
15849 if test ! -f "$as_myself"; then
15850   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15851   exit 1
15852 fi
15853
15854 # Unset variables that we do not need and which cause bugs (e.g. in
15855 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15856 # suppresses any "Segmentation fault" message there.  '((' could
15857 # trigger a bug in pdksh 5.2.14.
15858 for as_var in BASH_ENV ENV MAIL MAILPATH
15859 do eval test x\${$as_var+set} = xset \
15860   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15861 done
15862 PS1='$ '
15863 PS2='> '
15864 PS4='+ '
15865
15866 # NLS nuisances.
15867 LC_ALL=C
15868 export LC_ALL
15869 LANGUAGE=C
15870 export LANGUAGE
15871
15872 # CDPATH.
15873 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15874
15875
15876 # as_fn_error ERROR [LINENO LOG_FD]
15877 # ---------------------------------
15878 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15879 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15880 # script with status $?, using 1 if that was 0.
15881 as_fn_error ()
15882 {
15883   as_status=$?; test $as_status -eq 0 && as_status=1
15884   if test "$3"; then
15885     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15886     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15887   fi
15888   $as_echo "$as_me: error: $1" >&2
15889   as_fn_exit $as_status
15890 } # as_fn_error
15891
15892
15893 # as_fn_set_status STATUS
15894 # -----------------------
15895 # Set $? to STATUS, without forking.
15896 as_fn_set_status ()
15897 {
15898   return $1
15899 } # as_fn_set_status
15900
15901 # as_fn_exit STATUS
15902 # -----------------
15903 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15904 as_fn_exit ()
15905 {
15906   set +e
15907   as_fn_set_status $1
15908   exit $1
15909 } # as_fn_exit
15910
15911 # as_fn_unset VAR
15912 # ---------------
15913 # Portably unset VAR.
15914 as_fn_unset ()
15915 {
15916   { eval $1=; unset $1;}
15917 }
15918 as_unset=as_fn_unset
15919 # as_fn_append VAR VALUE
15920 # ----------------------
15921 # Append the text in VALUE to the end of the definition contained in VAR. Take
15922 # advantage of any shell optimizations that allow amortized linear growth over
15923 # repeated appends, instead of the typical quadratic growth present in naive
15924 # implementations.
15925 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15926   eval 'as_fn_append ()
15927   {
15928     eval $1+=\$2
15929   }'
15930 else
15931   as_fn_append ()
15932   {
15933     eval $1=\$$1\$2
15934   }
15935 fi # as_fn_append
15936
15937 # as_fn_arith ARG...
15938 # ------------------
15939 # Perform arithmetic evaluation on the ARGs, and store the result in the
15940 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15941 # must be portable across $(()) and expr.
15942 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15943   eval 'as_fn_arith ()
15944   {
15945     as_val=$(( $* ))
15946   }'
15947 else
15948   as_fn_arith ()
15949   {
15950     as_val=`expr "$@" || test $? -eq 1`
15951   }
15952 fi # as_fn_arith
15953
15954
15955 if expr a : '\(a\)' >/dev/null 2>&1 &&
15956    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15957   as_expr=expr
15958 else
15959   as_expr=false
15960 fi
15961
15962 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15963   as_basename=basename
15964 else
15965   as_basename=false
15966 fi
15967
15968 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15969   as_dirname=dirname
15970 else
15971   as_dirname=false
15972 fi
15973
15974 as_me=`$as_basename -- "$0" ||
15975 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15976          X"$0" : 'X\(//\)$' \| \
15977          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15978 $as_echo X/"$0" |
15979     sed '/^.*\/\([^/][^/]*\)\/*$/{
15980             s//\1/
15981             q
15982           }
15983           /^X\/\(\/\/\)$/{
15984             s//\1/
15985             q
15986           }
15987           /^X\/\(\/\).*/{
15988             s//\1/
15989             q
15990           }
15991           s/.*/./; q'`
15992
15993 # Avoid depending upon Character Ranges.
15994 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15995 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15996 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15997 as_cr_digits='0123456789'
15998 as_cr_alnum=$as_cr_Letters$as_cr_digits
15999
16000 ECHO_C= ECHO_N= ECHO_T=
16001 case `echo -n x` in #(((((
16002 -n*)
16003   case `echo 'xy\c'` in
16004   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16005   xy)  ECHO_C='\c';;
16006   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16007        ECHO_T=' ';;
16008   esac;;
16009 *)
16010   ECHO_N='-n';;
16011 esac
16012
16013 rm -f conf$$ conf$$.exe conf$$.file
16014 if test -d conf$$.dir; then
16015   rm -f conf$$.dir/conf$$.file
16016 else
16017   rm -f conf$$.dir
16018   mkdir conf$$.dir 2>/dev/null
16019 fi
16020 if (echo >conf$$.file) 2>/dev/null; then
16021   if ln -s conf$$.file conf$$ 2>/dev/null; then
16022     as_ln_s='ln -s'
16023     # ... but there are two gotchas:
16024     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16025     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16026     # In both cases, we have to default to `cp -p'.
16027     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16028       as_ln_s='cp -p'
16029   elif ln conf$$.file conf$$ 2>/dev/null; then
16030     as_ln_s=ln
16031   else
16032     as_ln_s='cp -p'
16033   fi
16034 else
16035   as_ln_s='cp -p'
16036 fi
16037 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16038 rmdir conf$$.dir 2>/dev/null
16039
16040
16041 # as_fn_mkdir_p
16042 # -------------
16043 # Create "$as_dir" as a directory, including parents if necessary.
16044 as_fn_mkdir_p ()
16045 {
16046
16047   case $as_dir in #(
16048   -*) as_dir=./$as_dir;;
16049   esac
16050   test -d "$as_dir" || eval $as_mkdir_p || {
16051     as_dirs=
16052     while :; do
16053       case $as_dir in #(
16054       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16055       *) as_qdir=$as_dir;;
16056       esac
16057       as_dirs="'$as_qdir' $as_dirs"
16058       as_dir=`$as_dirname -- "$as_dir" ||
16059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16060          X"$as_dir" : 'X\(//\)[^/]' \| \
16061          X"$as_dir" : 'X\(//\)$' \| \
16062          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16063 $as_echo X"$as_dir" |
16064     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16065             s//\1/
16066             q
16067           }
16068           /^X\(\/\/\)[^/].*/{
16069             s//\1/
16070             q
16071           }
16072           /^X\(\/\/\)$/{
16073             s//\1/
16074             q
16075           }
16076           /^X\(\/\).*/{
16077             s//\1/
16078             q
16079           }
16080           s/.*/./; q'`
16081       test -d "$as_dir" && break
16082     done
16083     test -z "$as_dirs" || eval "mkdir $as_dirs"
16084   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16085
16086
16087 } # as_fn_mkdir_p
16088 if mkdir -p . 2>/dev/null; then
16089   as_mkdir_p='mkdir -p "$as_dir"'
16090 else
16091   test -d ./-p && rmdir ./-p
16092   as_mkdir_p=false
16093 fi
16094
16095 if test -x / >/dev/null 2>&1; then
16096   as_test_x='test -x'
16097 else
16098   if ls -dL / >/dev/null 2>&1; then
16099     as_ls_L_option=L
16100   else
16101     as_ls_L_option=
16102   fi
16103   as_test_x='
16104     eval sh -c '\''
16105       if test -d "$1"; then
16106         test -d "$1/.";
16107       else
16108         case $1 in #(
16109         -*)set "./$1";;
16110         esac;
16111         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16112         ???[sx]*):;;*)false;;esac;fi
16113     '\'' sh
16114   '
16115 fi
16116 as_executable_p=$as_test_x
16117
16118 # Sed expression to map a string onto a valid CPP name.
16119 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16120
16121 # Sed expression to map a string onto a valid variable name.
16122 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16123
16124
16125 exec 6>&1
16126 ## ----------------------------------- ##
16127 ## Main body of $CONFIG_STATUS script. ##
16128 ## ----------------------------------- ##
16129 _ASEOF
16130 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16131
16132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16133 # Save the log message, to keep $0 and so on meaningful, and to
16134 # report actual input values of CONFIG_FILES etc. instead of their
16135 # values after options handling.
16136 ac_log="
16137 This file was extended by $as_me, which was
16138 generated by GNU Autoconf 2.64.  Invocation command line was
16139
16140   CONFIG_FILES    = $CONFIG_FILES
16141   CONFIG_HEADERS  = $CONFIG_HEADERS
16142   CONFIG_LINKS    = $CONFIG_LINKS
16143   CONFIG_COMMANDS = $CONFIG_COMMANDS
16144   $ $0 $@
16145
16146 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16147 "
16148
16149 _ACEOF
16150
16151 case $ac_config_files in *"
16152 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16153 esac
16154
16155 case $ac_config_headers in *"
16156 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16157 esac
16158
16159
16160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16161 # Files that config.status was made for.
16162 config_files="$ac_config_files"
16163 config_headers="$ac_config_headers"
16164 config_links="$ac_config_links"
16165 config_commands="$ac_config_commands"
16166
16167 _ACEOF
16168
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16170 ac_cs_usage="\
16171 \`$as_me' instantiates files and other configuration actions
16172 from templates according to the current configuration.  Unless the files
16173 and actions are specified as TAGs, all are instantiated by default.
16174
16175 Usage: $0 [OPTION]... [TAG]...
16176
16177   -h, --help       print this help, then exit
16178   -V, --version    print version number and configuration settings, then exit
16179   -q, --quiet, --silent
16180                    do not print progress messages
16181   -d, --debug      don't remove temporary files
16182       --recheck    update $as_me by reconfiguring in the same conditions
16183       --file=FILE[:TEMPLATE]
16184                    instantiate the configuration file FILE
16185       --header=FILE[:TEMPLATE]
16186                    instantiate the configuration header FILE
16187
16188 Configuration files:
16189 $config_files
16190
16191 Configuration headers:
16192 $config_headers
16193
16194 Configuration links:
16195 $config_links
16196
16197 Configuration commands:
16198 $config_commands
16199
16200 Report bugs to the package provider."
16201
16202 _ACEOF
16203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16204 ac_cs_version="\\
16205 config.status
16206 configured by $0, generated by GNU Autoconf 2.64,
16207   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16208
16209 Copyright (C) 2009 Free Software Foundation, Inc.
16210 This config.status script is free software; the Free Software Foundation
16211 gives unlimited permission to copy, distribute and modify it."
16212
16213 ac_pwd='$ac_pwd'
16214 srcdir='$srcdir'
16215 INSTALL='$INSTALL'
16216 AWK='$AWK'
16217 test -n "\$AWK" || AWK=awk
16218 _ACEOF
16219
16220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16221 # The default lists apply if the user does not specify any file.
16222 ac_need_defaults=:
16223 while test $# != 0
16224 do
16225   case $1 in
16226   --*=*)
16227     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16228     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16229     ac_shift=:
16230     ;;
16231   *)
16232     ac_option=$1
16233     ac_optarg=$2
16234     ac_shift=shift
16235     ;;
16236   esac
16237
16238   case $ac_option in
16239   # Handling of the options.
16240   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16241     ac_cs_recheck=: ;;
16242   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16243     $as_echo "$ac_cs_version"; exit ;;
16244   --debug | --debu | --deb | --de | --d | -d )
16245     debug=: ;;
16246   --file | --fil | --fi | --f )
16247     $ac_shift
16248     case $ac_optarg in
16249     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16250     esac
16251     as_fn_append CONFIG_FILES " '$ac_optarg'"
16252     ac_need_defaults=false;;
16253   --header | --heade | --head | --hea )
16254     $ac_shift
16255     case $ac_optarg in
16256     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16257     esac
16258     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16259     ac_need_defaults=false;;
16260   --he | --h)
16261     # Conflict between --help and --header
16262     as_fn_error "ambiguous option: \`$1'
16263 Try \`$0 --help' for more information.";;
16264   --help | --hel | -h )
16265     $as_echo "$ac_cs_usage"; exit ;;
16266   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16267   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16268     ac_cs_silent=: ;;
16269
16270   # This is an error.
16271   -*) as_fn_error "unrecognized option: \`$1'
16272 Try \`$0 --help' for more information." ;;
16273
16274   *) as_fn_append ac_config_targets " $1"
16275      ac_need_defaults=false ;;
16276
16277   esac
16278   shift
16279 done
16280
16281 ac_configure_extra_args=
16282
16283 if $ac_cs_silent; then
16284   exec 6>/dev/null
16285   ac_configure_extra_args="$ac_configure_extra_args --silent"
16286 fi
16287
16288 _ACEOF
16289 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16290 if \$ac_cs_recheck; then
16291   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16292   shift
16293   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16294   CONFIG_SHELL='$SHELL'
16295   export CONFIG_SHELL
16296   exec "\$@"
16297 fi
16298
16299 _ACEOF
16300 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16301 exec 5>>config.log
16302 {
16303   echo
16304   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16305 ## Running $as_me. ##
16306 _ASBOX
16307   $as_echo "$ac_log"
16308 } >&5
16309
16310 _ACEOF
16311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16312 #
16313 # INIT-COMMANDS
16314 #
16315 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16316
16317 _ACEOF
16318
16319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16320
16321 # Handling of arguments.
16322 for ac_config_target in $ac_config_targets
16323 do
16324   case $ac_config_target in
16325     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16326     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16327     "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16328     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16329     "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
16330     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16331     "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
16332     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16333     "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16334     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16335
16336   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16337   esac
16338 done
16339
16340
16341 # If the user did not use the arguments to specify the items to instantiate,
16342 # then the envvar interface is used.  Set only those that are not.
16343 # We use the long form for the default assignment because of an extremely
16344 # bizarre bug on SunOS 4.1.3.
16345 if $ac_need_defaults; then
16346   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16347   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16348   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16349   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16350 fi
16351
16352 # Have a temporary directory for convenience.  Make it in the build tree
16353 # simply because there is no reason against having it here, and in addition,
16354 # creating and moving files from /tmp can sometimes cause problems.
16355 # Hook for its removal unless debugging.
16356 # Note that there is a small window in which the directory will not be cleaned:
16357 # after its creation but before its name has been assigned to `$tmp'.
16358 $debug ||
16359 {
16360   tmp=
16361   trap 'exit_status=$?
16362   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16363 ' 0
16364   trap 'as_fn_exit 1' 1 2 13 15
16365 }
16366 # Create a (secure) tmp directory for tmp files.
16367
16368 {
16369   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16370   test -n "$tmp" && test -d "$tmp"
16371 }  ||
16372 {
16373   tmp=./conf$$-$RANDOM
16374   (umask 077 && mkdir "$tmp")
16375 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16376
16377 # Set up the scripts for CONFIG_FILES section.
16378 # No need to generate them if there are no CONFIG_FILES.
16379 # This happens for instance with `./config.status config.h'.
16380 if test -n "$CONFIG_FILES"; then
16381
16382 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16383   ac_cs_awk_getline=:
16384   ac_cs_awk_pipe_init=
16385   ac_cs_awk_read_file='
16386       while ((getline aline < (F[key])) > 0)
16387         print(aline)
16388       close(F[key])'
16389   ac_cs_awk_pipe_fini=
16390 else
16391   ac_cs_awk_getline=false
16392   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16393   ac_cs_awk_read_file='
16394       print "|#_!!_#|"
16395       print "cat " F[key] " &&"
16396       '$ac_cs_awk_pipe_init
16397   # The final `:' finishes the AND list.
16398   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16399 fi
16400 ac_cr=`echo X | tr X '\015'`
16401 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16402 # But we know of no other shell where ac_cr would be empty at this
16403 # point, so we can use a bashism as a fallback.
16404 if test "x$ac_cr" = x; then
16405   eval ac_cr=\$\'\\r\'
16406 fi
16407 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16408 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16409   ac_cs_awk_cr='\r'
16410 else
16411   ac_cs_awk_cr=$ac_cr
16412 fi
16413
16414 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16415 _ACEOF
16416
16417 # Create commands to substitute file output variables.
16418 {
16419   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16420   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16421   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16422   echo "_ACAWK" &&
16423   echo "_ACEOF"
16424 } >conf$$files.sh &&
16425 . ./conf$$files.sh ||
16426   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16427 rm -f conf$$files.sh
16428
16429 {
16430   echo "cat >conf$$subs.awk <<_ACEOF" &&
16431   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16432   echo "_ACEOF"
16433 } >conf$$subs.sh ||
16434   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16435 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16436 ac_delim='%!_!# '
16437 for ac_last_try in false false false false false :; do
16438   . ./conf$$subs.sh ||
16439     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16440
16441   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16442   if test $ac_delim_n = $ac_delim_num; then
16443     break
16444   elif $ac_last_try; then
16445     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16446   else
16447     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16448   fi
16449 done
16450 rm -f conf$$subs.sh
16451
16452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16453 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16454 _ACEOF
16455 sed -n '
16456 h
16457 s/^/S["/; s/!.*/"]=/
16458 p
16459 g
16460 s/^[^!]*!//
16461 :repl
16462 t repl
16463 s/'"$ac_delim"'$//
16464 t delim
16465 :nl
16466 h
16467 s/\(.\{148\}\).*/\1/
16468 t more1
16469 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16470 p
16471 n
16472 b repl
16473 :more1
16474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16475 p
16476 g
16477 s/.\{148\}//
16478 t nl
16479 :delim
16480 h
16481 s/\(.\{148\}\).*/\1/
16482 t more2
16483 s/["\\]/\\&/g; s/^/"/; s/$/"/
16484 p
16485 b
16486 :more2
16487 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16488 p
16489 g
16490 s/.\{148\}//
16491 t delim
16492 ' <conf$$subs.awk | sed '
16493 /^[^""]/{
16494   N
16495   s/\n//
16496 }
16497 ' >>$CONFIG_STATUS || ac_write_fail=1
16498 rm -f conf$$subs.awk
16499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16500 _ACAWK
16501 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16502   for (key in S) S_is_set[key] = 1
16503   FS = "\a"
16504   \$ac_cs_awk_pipe_init
16505 }
16506 {
16507   line = $ 0
16508   nfields = split(line, field, "@")
16509   substed = 0
16510   len = length(field[1])
16511   for (i = 2; i < nfields; i++) {
16512     key = field[i]
16513     keylen = length(key)
16514     if (S_is_set[key]) {
16515       value = S[key]
16516       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16517       len += length(value) + length(field[++i])
16518       substed = 1
16519     } else
16520       len += 1 + keylen
16521   }
16522   if (nfields == 3 && !substed) {
16523     key = field[2]
16524     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16525       \$ac_cs_awk_read_file
16526       next
16527     }
16528   }
16529   print line
16530 }
16531 \$ac_cs_awk_pipe_fini
16532 _ACAWK
16533 _ACEOF
16534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16535 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16536   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16537 else
16538   cat
16539 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16540   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16541 _ACEOF
16542
16543 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16544 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16545 # trailing colons and then remove the whole line if VPATH becomes empty
16546 # (actually we leave an empty line to preserve line numbers).
16547 if test "x$srcdir" = x.; then
16548   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16549 s/:*\$(srcdir):*/:/
16550 s/:*\${srcdir}:*/:/
16551 s/:*@srcdir@:*/:/
16552 s/^\([^=]*=[     ]*\):*/\1/
16553 s/:*$//
16554 s/^[^=]*=[       ]*$//
16555 }'
16556 fi
16557
16558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16559 fi # test -n "$CONFIG_FILES"
16560
16561 # Set up the scripts for CONFIG_HEADERS section.
16562 # No need to generate them if there are no CONFIG_HEADERS.
16563 # This happens for instance with `./config.status Makefile'.
16564 if test -n "$CONFIG_HEADERS"; then
16565 cat >"$tmp/defines.awk" <<\_ACAWK ||
16566 BEGIN {
16567 _ACEOF
16568
16569 # Transform confdefs.h into an awk script `defines.awk', embedded as
16570 # here-document in config.status, that substitutes the proper values into
16571 # config.h.in to produce config.h.
16572
16573 # Create a delimiter string that does not exist in confdefs.h, to ease
16574 # handling of long lines.
16575 ac_delim='%!_!# '
16576 for ac_last_try in false false :; do
16577   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16578   if test -z "$ac_t"; then
16579     break
16580   elif $ac_last_try; then
16581     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16582   else
16583     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16584   fi
16585 done
16586
16587 # For the awk script, D is an array of macro values keyed by name,
16588 # likewise P contains macro parameters if any.  Preserve backslash
16589 # newline sequences.
16590
16591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16592 sed -n '
16593 s/.\{148\}/&'"$ac_delim"'/g
16594 t rset
16595 :rset
16596 s/^[     ]*#[    ]*define[       ][      ]*/ /
16597 t def
16598 d
16599 :def
16600 s/\\$//
16601 t bsnl
16602 s/["\\]/\\&/g
16603 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16604 D["\1"]=" \3"/p
16605 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16606 d
16607 :bsnl
16608 s/["\\]/\\&/g
16609 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16610 D["\1"]=" \3\\\\\\n"\\/p
16611 t cont
16612 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16613 t cont
16614 d
16615 :cont
16616 n
16617 s/.\{148\}/&'"$ac_delim"'/g
16618 t clear
16619 :clear
16620 s/\\$//
16621 t bsnlc
16622 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16623 d
16624 :bsnlc
16625 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16626 b cont
16627 ' <confdefs.h | sed '
16628 s/'"$ac_delim"'/"\\\
16629 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16630
16631 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16632   for (key in D) D_is_set[key] = 1
16633   FS = "\a"
16634 }
16635 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16636   line = \$ 0
16637   split(line, arg, " ")
16638   if (arg[1] == "#") {
16639     defundef = arg[2]
16640     mac1 = arg[3]
16641   } else {
16642     defundef = substr(arg[1], 2)
16643     mac1 = arg[2]
16644   }
16645   split(mac1, mac2, "(") #)
16646   macro = mac2[1]
16647   prefix = substr(line, 1, index(line, defundef) - 1)
16648   if (D_is_set[macro]) {
16649     # Preserve the white space surrounding the "#".
16650     print prefix "define", macro P[macro] D[macro]
16651     next
16652   } else {
16653     # Replace #undef with comments.  This is necessary, for example,
16654     # in the case of _POSIX_SOURCE, which is predefined and required
16655     # on some systems where configure will not decide to define it.
16656     if (defundef == "undef") {
16657       print "/*", prefix defundef, macro, "*/"
16658       next
16659     }
16660   }
16661 }
16662 { print }
16663 _ACAWK
16664 _ACEOF
16665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16666   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16667 fi # test -n "$CONFIG_HEADERS"
16668
16669
16670 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16671 shift
16672 for ac_tag
16673 do
16674   case $ac_tag in
16675   :[FHLC]) ac_mode=$ac_tag; continue;;
16676   esac
16677   case $ac_mode$ac_tag in
16678   :[FHL]*:*);;
16679   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16680   :[FH]-) ac_tag=-:-;;
16681   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16682   esac
16683   ac_save_IFS=$IFS
16684   IFS=:
16685   set x $ac_tag
16686   IFS=$ac_save_IFS
16687   shift
16688   ac_file=$1
16689   shift
16690
16691   case $ac_mode in
16692   :L) ac_source=$1;;
16693   :[FH])
16694     ac_file_inputs=
16695     for ac_f
16696     do
16697       case $ac_f in
16698       -) ac_f="$tmp/stdin";;
16699       *) # Look for the file first in the build tree, then in the source tree
16700          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16701          # because $ac_f cannot contain `:'.
16702          test -f "$ac_f" ||
16703            case $ac_f in
16704            [\\/$]*) false;;
16705            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16706            esac ||
16707            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16708       esac
16709       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16710       as_fn_append ac_file_inputs " '$ac_f'"
16711     done
16712
16713     # Let's still pretend it is `configure' which instantiates (i.e., don't
16714     # use $as_me), people would be surprised to read:
16715     #    /* config.h.  Generated by config.status.  */
16716     configure_input='Generated from '`
16717           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16718         `' by configure.'
16719     if test x"$ac_file" != x-; then
16720       configure_input="$ac_file.  $configure_input"
16721       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16722 $as_echo "$as_me: creating $ac_file" >&6;}
16723     fi
16724     # Neutralize special characters interpreted by sed in replacement strings.
16725     case $configure_input in #(
16726     *\&* | *\|* | *\\* )
16727        ac_sed_conf_input=`$as_echo "$configure_input" |
16728        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16729     *) ac_sed_conf_input=$configure_input;;
16730     esac
16731
16732     case $ac_tag in
16733     *:-:* | *:-) cat >"$tmp/stdin" \
16734       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16735     esac
16736     ;;
16737   esac
16738
16739   ac_dir=`$as_dirname -- "$ac_file" ||
16740 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16741          X"$ac_file" : 'X\(//\)[^/]' \| \
16742          X"$ac_file" : 'X\(//\)$' \| \
16743          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16744 $as_echo X"$ac_file" |
16745     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16746             s//\1/
16747             q
16748           }
16749           /^X\(\/\/\)[^/].*/{
16750             s//\1/
16751             q
16752           }
16753           /^X\(\/\/\)$/{
16754             s//\1/
16755             q
16756           }
16757           /^X\(\/\).*/{
16758             s//\1/
16759             q
16760           }
16761           s/.*/./; q'`
16762   as_dir="$ac_dir"; as_fn_mkdir_p
16763   ac_builddir=.
16764
16765 case "$ac_dir" in
16766 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16767 *)
16768   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16769   # A ".." for each directory in $ac_dir_suffix.
16770   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16771   case $ac_top_builddir_sub in
16772   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16773   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16774   esac ;;
16775 esac
16776 ac_abs_top_builddir=$ac_pwd
16777 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16778 # for backward compatibility:
16779 ac_top_builddir=$ac_top_build_prefix
16780
16781 case $srcdir in
16782   .)  # We are building in place.
16783     ac_srcdir=.
16784     ac_top_srcdir=$ac_top_builddir_sub
16785     ac_abs_top_srcdir=$ac_pwd ;;
16786   [\\/]* | ?:[\\/]* )  # Absolute name.
16787     ac_srcdir=$srcdir$ac_dir_suffix;
16788     ac_top_srcdir=$srcdir
16789     ac_abs_top_srcdir=$srcdir ;;
16790   *) # Relative name.
16791     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16792     ac_top_srcdir=$ac_top_build_prefix$srcdir
16793     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16794 esac
16795 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16796
16797
16798   case $ac_mode in
16799   :F)
16800   #
16801   # CONFIG_FILE
16802   #
16803
16804   case $INSTALL in
16805   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16806   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16807   esac
16808 _ACEOF
16809
16810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16811 # If the template does not know about datarootdir, expand it.
16812 # FIXME: This hack should be removed a few years after 2.60.
16813 ac_datarootdir_hack=; ac_datarootdir_seen=
16814 ac_sed_dataroot='
16815 /datarootdir/ {
16816   p
16817   q
16818 }
16819 /@datadir@/p
16820 /@docdir@/p
16821 /@infodir@/p
16822 /@localedir@/p
16823 /@mandir@/p'
16824 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16825 *datarootdir*) ac_datarootdir_seen=yes;;
16826 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16827   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16828 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16829 _ACEOF
16830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16831   ac_datarootdir_hack='
16832   s&@datadir@&$datadir&g
16833   s&@docdir@&$docdir&g
16834   s&@infodir@&$infodir&g
16835   s&@localedir@&$localedir&g
16836   s&@mandir@&$mandir&g
16837   s&\\\${datarootdir}&$datarootdir&g' ;;
16838 esac
16839 _ACEOF
16840
16841 # Neutralize VPATH when `$srcdir' = `.'.
16842 # Shell code in configure.ac might set extrasub.
16843 # FIXME: do we really want to maintain this feature?
16844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16845 ac_sed_extra="$ac_vpsub
16846 $extrasub
16847 _ACEOF
16848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16849 :t
16850 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16851 s|@configure_input@|$ac_sed_conf_input|;t t
16852 s&@top_builddir@&$ac_top_builddir_sub&;t t
16853 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16854 s&@srcdir@&$ac_srcdir&;t t
16855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16856 s&@top_srcdir@&$ac_top_srcdir&;t t
16857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16858 s&@builddir@&$ac_builddir&;t t
16859 s&@abs_builddir@&$ac_abs_builddir&;t t
16860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16861 s&@INSTALL@&$ac_INSTALL&;t t
16862 $ac_datarootdir_hack
16863 "
16864 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16865 if $ac_cs_awk_getline; then
16866   $AWK -f "$tmp/subs.awk"
16867 else
16868   $AWK -f "$tmp/subs.awk" | $SHELL
16869 fi >$tmp/out \
16870   || as_fn_error "could not create $ac_file" "$LINENO" 5
16871
16872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16873   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16874   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16875   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16876 which seems to be undefined.  Please make sure it is defined." >&5
16877 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16878 which seems to be undefined.  Please make sure it is defined." >&2;}
16879
16880   rm -f "$tmp/stdin"
16881   case $ac_file in
16882   -) cat "$tmp/out" && rm -f "$tmp/out";;
16883   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16884   esac \
16885   || as_fn_error "could not create $ac_file" "$LINENO" 5
16886  ;;
16887   :H)
16888   #
16889   # CONFIG_HEADER
16890   #
16891   if test x"$ac_file" != x-; then
16892     {
16893       $as_echo "/* $configure_input  */" \
16894       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16895     } >"$tmp/config.h" \
16896       || as_fn_error "could not create $ac_file" "$LINENO" 5
16897     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16898       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16899 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16900     else
16901       rm -f "$ac_file"
16902       mv "$tmp/config.h" "$ac_file" \
16903         || as_fn_error "could not create $ac_file" "$LINENO" 5
16904     fi
16905   else
16906     $as_echo "/* $configure_input  */" \
16907       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16908       || as_fn_error "could not create -" "$LINENO" 5
16909   fi
16910  ;;
16911   :L)
16912   #
16913   # CONFIG_LINK
16914   #
16915
16916   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16917     :
16918   else
16919     # Prefer the file from the source tree if names are identical.
16920     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16921       ac_source=$srcdir/$ac_source
16922     fi
16923
16924     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16925 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16926
16927     if test ! -r "$ac_source"; then
16928       as_fn_error "$ac_source: file not found" "$LINENO" 5
16929     fi
16930     rm -f "$ac_file"
16931
16932     # Try a relative symlink, then a hard link, then a copy.
16933     case $srcdir in
16934     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16935         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16936     esac
16937     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16938       ln "$ac_source" "$ac_file" 2>/dev/null ||
16939       cp -p "$ac_source" "$ac_file" ||
16940       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16941   fi
16942  ;;
16943   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16944 $as_echo "$as_me: executing $ac_file commands" >&6;}
16945  ;;
16946   esac
16947
16948
16949   case $ac_file$ac_mode in
16950     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16951     "gcore":F) chmod +x gcore ;;
16952     "default":C)
16953 case x$CONFIG_HEADERS in
16954 xconfig.h:config.in)
16955 echo > stamp-h ;;
16956 esac
16957  ;;
16958
16959   esac
16960 done # for ac_tag
16961
16962
16963 as_fn_exit 0
16964 _ACEOF
16965 ac_clean_files=$ac_clean_files_save
16966
16967 test $ac_write_fail = 0 ||
16968   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16969
16970
16971 # configure is writing to config.log, and then calls config.status.
16972 # config.status does its own redirection, appending to config.log.
16973 # Unfortunately, on DOS this fails, as config.log is still kept open
16974 # by configure, so config.status won't be able to write to it; its
16975 # output is simply discarded.  So we exec the FD to /dev/null,
16976 # effectively closing config.log, so it can be properly (re)opened and
16977 # appended to by config.status.  When coming back to configure, we
16978 # need to make the FD available again.
16979 if test "$no_create" != yes; then
16980   ac_cs_success=:
16981   ac_config_status_args=
16982   test "$silent" = yes &&
16983     ac_config_status_args="$ac_config_status_args --quiet"
16984   exec 5>/dev/null
16985   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16986   exec 5>>config.log
16987   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16988   # would make configure fail if this is the last instruction.
16989   $ac_cs_success || as_fn_exit $?
16990 fi
16991
16992 #
16993 # CONFIG_SUBDIRS section.
16994 #
16995 if test "$no_recursion" != yes; then
16996
16997   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16998   # so they do not pile up.
16999   ac_sub_configure_args=
17000   ac_prev=
17001   eval "set x $ac_configure_args"
17002   shift
17003   for ac_arg
17004   do
17005     if test -n "$ac_prev"; then
17006       ac_prev=
17007       continue
17008     fi
17009     case $ac_arg in
17010     -cache-file | --cache-file | --cache-fil | --cache-fi \
17011     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17012       ac_prev=cache_file ;;
17013     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17014     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17015     | --c=*)
17016       ;;
17017     --config-cache | -C)
17018       ;;
17019     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17020       ac_prev=srcdir ;;
17021     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17022       ;;
17023     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17024       ac_prev=prefix ;;
17025     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17026       ;;
17027     --disable-option-checking)
17028       ;;
17029     *)
17030       case $ac_arg in
17031       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17032       esac
17033       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17034     esac
17035   done
17036
17037   # Always prepend --prefix to ensure using the same prefix
17038   # in subdir configurations.
17039   ac_arg="--prefix=$prefix"
17040   case $ac_arg in
17041   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17042   esac
17043   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17044
17045   # Pass --silent
17046   if test "$silent" = yes; then
17047     ac_sub_configure_args="--silent $ac_sub_configure_args"
17048   fi
17049
17050   # Always prepend --disable-option-checking to silence warnings, since
17051   # different subdirs can have different --enable and --with options.
17052   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17053
17054   ac_popdir=`pwd`
17055   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17056
17057     # Do not complain, so a configure script can configure whichever
17058     # parts of a large source tree are present.
17059     test -d "$srcdir/$ac_dir" || continue
17060
17061     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17062     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17063     $as_echo "$ac_msg" >&6
17064     as_dir="$ac_dir"; as_fn_mkdir_p
17065     ac_builddir=.
17066
17067 case "$ac_dir" in
17068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17069 *)
17070   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17071   # A ".." for each directory in $ac_dir_suffix.
17072   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17073   case $ac_top_builddir_sub in
17074   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17075   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17076   esac ;;
17077 esac
17078 ac_abs_top_builddir=$ac_pwd
17079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17080 # for backward compatibility:
17081 ac_top_builddir=$ac_top_build_prefix
17082
17083 case $srcdir in
17084   .)  # We are building in place.
17085     ac_srcdir=.
17086     ac_top_srcdir=$ac_top_builddir_sub
17087     ac_abs_top_srcdir=$ac_pwd ;;
17088   [\\/]* | ?:[\\/]* )  # Absolute name.
17089     ac_srcdir=$srcdir$ac_dir_suffix;
17090     ac_top_srcdir=$srcdir
17091     ac_abs_top_srcdir=$srcdir ;;
17092   *) # Relative name.
17093     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17094     ac_top_srcdir=$ac_top_build_prefix$srcdir
17095     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17096 esac
17097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17098
17099
17100     cd "$ac_dir"
17101
17102     # Check for guested configure; otherwise get Cygnus style configure.
17103     if test -f "$ac_srcdir/configure.gnu"; then
17104       ac_sub_configure=$ac_srcdir/configure.gnu
17105     elif test -f "$ac_srcdir/configure"; then
17106       ac_sub_configure=$ac_srcdir/configure
17107     elif test -f "$ac_srcdir/configure.in"; then
17108       # This should be Cygnus configure.
17109       ac_sub_configure=$ac_aux_dir/configure
17110     else
17111       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17112 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17113       ac_sub_configure=
17114     fi
17115
17116     # The recursion is here.
17117     if test -n "$ac_sub_configure"; then
17118       # Make the cache file name correct relative to the subdirectory.
17119       case $cache_file in
17120       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17121       *) # Relative name.
17122         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17123       esac
17124
17125       { $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
17126 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17127       # The eval makes quoting arguments work.
17128       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17129            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17130         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17131     fi
17132
17133     cd "$ac_popdir"
17134   done
17135 fi
17136 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17137   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17138 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17139 fi
17140
17141
17142 exit 0