Regenerate tree using Autoconf 2.64 and Automake 1.11.
[platform/upstream/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 gl_header_list=
592 enable_option_checking=no
593 ac_subst_vars='am__EXEEXT_FALSE
594 am__EXEEXT_TRUE
595 gltests_LTLIBOBJS
596 gltests_LIBOBJS
597 gl_LTLIBOBJS
598 gl_LIBOBJS
599 LTLIBOBJS
600 LIBOBJS
601 GDB_NM_FILE
602 frags
603 target_subdir
604 CONFIG_UNINSTALL
605 CONFIG_INSTALL
606 CONFIG_CLEAN
607 CONFIG_ALL
608 CONFIG_SRCS
609 CONFIG_DEPS
610 CONFIG_OBS
611 PROFILE_CFLAGS
612 ENABLE_CFLAGS
613 SIM_OBS
614 SIM
615 XMKMF
616 GDBTK_SRC_DIR
617 GDBTK_CFLAGS
618 GDBTKLIBS
619 X_LIBS
620 X_LDFLAGS
621 X_CFLAGS
622 TK_XINCLUDES
623 TK_DEPS
624 TK_LIBRARY
625 TK_INCLUDE
626 TK_STUB_LIB_SPEC
627 TK_STUB_LIB_FLAG
628 TK_STUB_LIB_FILE
629 TK_LIB_SPEC
630 TK_LIB_FLAG
631 TK_LIB_FILE
632 TK_SRC_DIR
633 TK_BIN_DIR
634 TK_VERSION
635 TCL_DEPS
636 TCL_LIBRARY
637 TCL_INCLUDE
638 TCL_STUB_LIB_SPEC
639 TCL_STUB_LIB_FLAG
640 TCL_STUB_LIB_FILE
641 TCL_LIB_SPEC
642 TCL_LIB_FLAG
643 TCL_LIB_FILE
644 TCL_SRC_DIR
645 TCL_BIN_DIR
646 TCL_PATCH_LEVEL
647 TCL_VERSION
648 WIN32LDAPP
649 GUI_CFLAGS_X
650 LIBGUI
651 WIN32LIBS
652 SER_HARDWIRE
653 WERROR_CFLAGS
654 WARN_CFLAGS
655 SYSTEM_GDBINIT
656 TARGET_SYSTEM_ROOT_DEFINE
657 TARGET_SYSTEM_ROOT
658 CONFIG_LDFLAGS
659 ALLOCA
660 PYTHON_CFLAGS
661 LTLIBEXPAT
662 LIBEXPAT
663 HAVE_LIBEXPAT
664 READLINE_CFLAGS
665 READLINE_DEPS
666 READLINE
667 MIG
668 WINDRES
669 DLLTOOL
670 AR
671 YFLAGS
672 YACC
673 LN_S
674 REPORT_BUGS_TEXI
675 REPORT_BUGS_TO
676 PKGVERSION
677 TARGET_OBS
678 subdirs
679 GDB_DATADIR
680 DEBUGDIR
681 am__fastdepCC_FALSE
682 am__fastdepCC_TRUE
683 AMDEPBACKSLASH
684 AMDEP_FALSE
685 AMDEP_TRUE
686 am__quote
687 am__include
688 am__untar
689 am__tar
690 AMTAR
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 PACKAGE
709 GNULIB_STDINT_H
710 LIBGNU_LTLIBDEPS
711 LIBGNU_LIBDEPS
712 NEXT_WCHAR_H
713 HAVE_WCHAR_H
714 WCHAR_H
715 REPLACE_WCWIDTH
716 HAVE_DECL_WCWIDTH
717 GNULIB_WCWIDTH
718 NEXT_STRING_H
719 STDINT_H
720 WINT_T_SUFFIX
721 WCHAR_T_SUFFIX
722 SIZE_T_SUFFIX
723 SIG_ATOMIC_T_SUFFIX
724 PTRDIFF_T_SUFFIX
725 HAVE_SIGNED_WINT_T
726 HAVE_SIGNED_WCHAR_T
727 HAVE_SIGNED_SIG_ATOMIC_T
728 BITSIZEOF_WINT_T
729 BITSIZEOF_WCHAR_T
730 BITSIZEOF_SIZE_T
731 BITSIZEOF_SIG_ATOMIC_T
732 BITSIZEOF_PTRDIFF_T
733 HAVE_SYS_BITYPES_H
734 HAVE_SYS_INTTYPES_H
735 HAVE_STDINT_H
736 NEXT_STDINT_H
737 INCLUDE_NEXT
738 HAVE_SYS_TYPES_H
739 HAVE_INTTYPES_H
740 HAVE_UNSIGNED_LONG_LONG_INT
741 HAVE_LONG_LONG_INT
742 REPLACE_STRSTR
743 REPLACE_STRCASESTR
744 REPLACE_MEMMEM
745 REPLACE_STRSIGNAL
746 REPLACE_STRERROR
747 HAVE_DECL_STRSIGNAL
748 HAVE_DECL_STRERROR
749 HAVE_DECL_STRTOK_R
750 HAVE_STRCASESTR
751 HAVE_STRSEP
752 HAVE_STRPBRK
753 HAVE_DECL_STRNLEN
754 HAVE_DECL_STRNDUP
755 HAVE_STRNDUP
756 HAVE_DECL_STRDUP
757 HAVE_STRCHRNUL
758 HAVE_STPNCPY
759 HAVE_STPCPY
760 HAVE_DECL_MEMRCHR
761 HAVE_MEMPCPY
762 HAVE_DECL_MEMMEM
763 GNULIB_STRSIGNAL
764 GNULIB_STRERROR
765 GNULIB_MBSTOK_R
766 GNULIB_MBSSEP
767 GNULIB_MBSSPN
768 GNULIB_MBSPBRK
769 GNULIB_MBSCSPN
770 GNULIB_MBSCASESTR
771 GNULIB_MBSPCASECMP
772 GNULIB_MBSNCASECMP
773 GNULIB_MBSCASECMP
774 GNULIB_MBSSTR
775 GNULIB_MBSRCHR
776 GNULIB_MBSCHR
777 GNULIB_MBSNLEN
778 GNULIB_MBSLEN
779 GNULIB_STRTOK_R
780 GNULIB_STRCASESTR
781 GNULIB_STRSTR
782 GNULIB_STRSEP
783 GNULIB_STRPBRK
784 GNULIB_STRNLEN
785 GNULIB_STRNDUP
786 GNULIB_STRDUP
787 GNULIB_STRCHRNUL
788 GNULIB_STPNCPY
789 GNULIB_STPCPY
790 GNULIB_MEMRCHR
791 GNULIB_MEMPCPY
792 GNULIB_MEMMEM
793 GL_COND_LIBTOOL_FALSE
794 GL_COND_LIBTOOL_TRUE
795 CATOBJEXT
796 GENCAT
797 INSTOBJEXT
798 DATADIRNAME
799 CATALOGS
800 POSUB
801 GMSGFMT
802 XGETTEXT
803 INCINTL
804 LIBINTL_DEP
805 LIBINTL
806 USE_NLS
807 SET_MAKE
808 GMAKE_FALSE
809 GMAKE_TRUE
810 MAKE
811 CCDEPMODE
812 DEPDIR
813 am__leading_dot
814 target_os
815 target_vendor
816 target_cpu
817 target
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 RANLIB
827 EGREP
828 GREP
829 CPP
830 OBJEXT
831 EXEEXT
832 ac_ct_CC
833 CPPFLAGS
834 LDFLAGS
835 CFLAGS
836 CC
837 MAINT
838 MAINTAINER_MODE_FALSE
839 MAINTAINER_MODE_TRUE
840 target_alias
841 host_alias
842 build_alias
843 LIBS
844 ECHO_T
845 ECHO_N
846 ECHO_C
847 DEFS
848 mandir
849 localedir
850 libdir
851 psdir
852 pdfdir
853 dvidir
854 htmldir
855 infodir
856 docdir
857 oldincludedir
858 includedir
859 localstatedir
860 sharedstatedir
861 sysconfdir
862 datadir
863 datarootdir
864 libexecdir
865 sbindir
866 bindir
867 program_transform_name
868 prefix
869 exec_prefix
870 PACKAGE_URL
871 PACKAGE_BUGREPORT
872 PACKAGE_STRING
873 PACKAGE_VERSION
874 PACKAGE_TARNAME
875 PACKAGE_NAME
876 PATH_SEPARATOR
877 SHELL'
878 ac_subst_files='host_makefile_frag'
879 ac_user_opts='
880 enable_option_checking
881 enable_maintainer_mode
882 enable_dependency_tracking
883 with_separate_debug_dir
884 with_gdb_datadir
885 with_relocated_sources
886 enable_targets
887 enable_64_bit_bfd
888 enable_gdbcli
889 enable_gdbmi
890 enable_tui
891 enable_gdbtk
892 with_libunwind
893 with_curses
894 enable_profiling
895 with_pkgversion
896 with_bugurl
897 with_libiconv_prefix
898 with_system_readline
899 with_expat
900 with_gnu_ld
901 enable_rpath
902 with_libexpat_prefix
903 with_python
904 with_included_regex
905 with_sysroot
906 with_system_gdbinit
907 enable_werror
908 enable_build_warnings
909 enable_gdb_build_warnings
910 with_tcl
911 with_tk
912 with_x
913 enable_sim
914 enable_multi_ice
915 with_datarootdir
916 with_docdir
917 with_pdfdir
918 with_htmldir
919 '
920       ac_precious_vars='build_alias
921 host_alias
922 target_alias
923 CC
924 CFLAGS
925 LDFLAGS
926 LIBS
927 CPPFLAGS
928 CPP
929 YACC
930 YFLAGS
931 XMKMF'
932 ac_subdirs_all='doc testsuite
933 gdbtk
934 multi-ice
935 gdbserver'
936
937 # Initialize some variables set by options.
938 ac_init_help=
939 ac_init_version=false
940 ac_unrecognized_opts=
941 ac_unrecognized_sep=
942 # The variables have the same names as the options, with
943 # dashes changed to underlines.
944 cache_file=/dev/null
945 exec_prefix=NONE
946 no_create=
947 no_recursion=
948 prefix=NONE
949 program_prefix=NONE
950 program_suffix=NONE
951 program_transform_name=s,x,x,
952 silent=
953 site=
954 srcdir=
955 verbose=
956 x_includes=NONE
957 x_libraries=NONE
958
959 # Installation directory options.
960 # These are left unexpanded so users can "make install exec_prefix=/foo"
961 # and all the variables that are supposed to be based on exec_prefix
962 # by default will actually change.
963 # Use braces instead of parens because sh, perl, etc. also accept them.
964 # (The list follows the same order as the GNU Coding Standards.)
965 bindir='${exec_prefix}/bin'
966 sbindir='${exec_prefix}/sbin'
967 libexecdir='${exec_prefix}/libexec'
968 datarootdir='${prefix}/share'
969 datadir='${datarootdir}'
970 sysconfdir='${prefix}/etc'
971 sharedstatedir='${prefix}/com'
972 localstatedir='${prefix}/var'
973 includedir='${prefix}/include'
974 oldincludedir='/usr/include'
975 docdir='${datarootdir}/doc/${PACKAGE}'
976 infodir='${datarootdir}/info'
977 htmldir='${docdir}'
978 dvidir='${docdir}'
979 pdfdir='${docdir}'
980 psdir='${docdir}'
981 libdir='${exec_prefix}/lib'
982 localedir='${datarootdir}/locale'
983 mandir='${datarootdir}/man'
984
985 ac_prev=
986 ac_dashdash=
987 for ac_option
988 do
989   # If the previous option needs an argument, assign it.
990   if test -n "$ac_prev"; then
991     eval $ac_prev=\$ac_option
992     ac_prev=
993     continue
994   fi
995
996   case $ac_option in
997   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
998   *)    ac_optarg=yes ;;
999   esac
1000
1001   # Accept the important Cygnus configure options, so we can diagnose typos.
1002
1003   case $ac_dashdash$ac_option in
1004   --)
1005     ac_dashdash=yes ;;
1006
1007   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008     ac_prev=bindir ;;
1009   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1010     bindir=$ac_optarg ;;
1011
1012   -build | --build | --buil | --bui | --bu)
1013     ac_prev=build_alias ;;
1014   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1015     build_alias=$ac_optarg ;;
1016
1017   -cache-file | --cache-file | --cache-fil | --cache-fi \
1018   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019     ac_prev=cache_file ;;
1020   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1022     cache_file=$ac_optarg ;;
1023
1024   --config-cache | -C)
1025     cache_file=config.cache ;;
1026
1027   -datadir | --datadir | --datadi | --datad)
1028     ac_prev=datadir ;;
1029   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1030     datadir=$ac_optarg ;;
1031
1032   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033   | --dataroo | --dataro | --datar)
1034     ac_prev=datarootdir ;;
1035   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037     datarootdir=$ac_optarg ;;
1038
1039   -disable-* | --disable-*)
1040     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041     # Reject names that are not valid shell variable names.
1042     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1043       as_fn_error "invalid feature name: $ac_useropt"
1044     ac_useropt_orig=$ac_useropt
1045     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046     case $ac_user_opts in
1047       *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051          ac_unrecognized_sep=', ';;
1052     esac
1053     eval enable_$ac_useropt=no ;;
1054
1055   -docdir | --docdir | --docdi | --doc | --do)
1056     ac_prev=docdir ;;
1057   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058     docdir=$ac_optarg ;;
1059
1060   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061     ac_prev=dvidir ;;
1062   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063     dvidir=$ac_optarg ;;
1064
1065   -enable-* | --enable-*)
1066     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067     # Reject names that are not valid shell variable names.
1068     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069       as_fn_error "invalid feature name: $ac_useropt"
1070     ac_useropt_orig=$ac_useropt
1071     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072     case $ac_user_opts in
1073       *"
1074 "enable_$ac_useropt"
1075 "*) ;;
1076       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077          ac_unrecognized_sep=', ';;
1078     esac
1079     eval enable_$ac_useropt=\$ac_optarg ;;
1080
1081   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083   | --exec | --exe | --ex)
1084     ac_prev=exec_prefix ;;
1085   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087   | --exec=* | --exe=* | --ex=*)
1088     exec_prefix=$ac_optarg ;;
1089
1090   -gas | --gas | --ga | --g)
1091     # Obsolete; use --with-gas.
1092     with_gas=yes ;;
1093
1094   -help | --help | --hel | --he | -h)
1095     ac_init_help=long ;;
1096   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097     ac_init_help=recursive ;;
1098   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099     ac_init_help=short ;;
1100
1101   -host | --host | --hos | --ho)
1102     ac_prev=host_alias ;;
1103   -host=* | --host=* | --hos=* | --ho=*)
1104     host_alias=$ac_optarg ;;
1105
1106   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107     ac_prev=htmldir ;;
1108   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109   | --ht=*)
1110     htmldir=$ac_optarg ;;
1111
1112   -includedir | --includedir | --includedi | --included | --include \
1113   | --includ | --inclu | --incl | --inc)
1114     ac_prev=includedir ;;
1115   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116   | --includ=* | --inclu=* | --incl=* | --inc=*)
1117     includedir=$ac_optarg ;;
1118
1119   -infodir | --infodir | --infodi | --infod | --info | --inf)
1120     ac_prev=infodir ;;
1121   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1122     infodir=$ac_optarg ;;
1123
1124   -libdir | --libdir | --libdi | --libd)
1125     ac_prev=libdir ;;
1126   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1127     libdir=$ac_optarg ;;
1128
1129   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130   | --libexe | --libex | --libe)
1131     ac_prev=libexecdir ;;
1132   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133   | --libexe=* | --libex=* | --libe=*)
1134     libexecdir=$ac_optarg ;;
1135
1136   -localedir | --localedir | --localedi | --localed | --locale)
1137     ac_prev=localedir ;;
1138   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139     localedir=$ac_optarg ;;
1140
1141   -localstatedir | --localstatedir | --localstatedi | --localstated \
1142   | --localstate | --localstat | --localsta | --localst | --locals)
1143     ac_prev=localstatedir ;;
1144   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1145   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1146     localstatedir=$ac_optarg ;;
1147
1148   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149     ac_prev=mandir ;;
1150   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1151     mandir=$ac_optarg ;;
1152
1153   -nfp | --nfp | --nf)
1154     # Obsolete; use --without-fp.
1155     with_fp=no ;;
1156
1157   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1158   | --no-cr | --no-c | -n)
1159     no_create=yes ;;
1160
1161   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163     no_recursion=yes ;;
1164
1165   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167   | --oldin | --oldi | --old | --ol | --o)
1168     ac_prev=oldincludedir ;;
1169   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1172     oldincludedir=$ac_optarg ;;
1173
1174   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175     ac_prev=prefix ;;
1176   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1177     prefix=$ac_optarg ;;
1178
1179   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180   | --program-pre | --program-pr | --program-p)
1181     ac_prev=program_prefix ;;
1182   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1184     program_prefix=$ac_optarg ;;
1185
1186   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187   | --program-suf | --program-su | --program-s)
1188     ac_prev=program_suffix ;;
1189   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1191     program_suffix=$ac_optarg ;;
1192
1193   -program-transform-name | --program-transform-name \
1194   | --program-transform-nam | --program-transform-na \
1195   | --program-transform-n | --program-transform- \
1196   | --program-transform | --program-transfor \
1197   | --program-transfo | --program-transf \
1198   | --program-trans | --program-tran \
1199   | --progr-tra | --program-tr | --program-t)
1200     ac_prev=program_transform_name ;;
1201   -program-transform-name=* | --program-transform-name=* \
1202   | --program-transform-nam=* | --program-transform-na=* \
1203   | --program-transform-n=* | --program-transform-=* \
1204   | --program-transform=* | --program-transfor=* \
1205   | --program-transfo=* | --program-transf=* \
1206   | --program-trans=* | --program-tran=* \
1207   | --progr-tra=* | --program-tr=* | --program-t=*)
1208     program_transform_name=$ac_optarg ;;
1209
1210   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211     ac_prev=pdfdir ;;
1212   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213     pdfdir=$ac_optarg ;;
1214
1215   -psdir | --psdir | --psdi | --psd | --ps)
1216     ac_prev=psdir ;;
1217   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218     psdir=$ac_optarg ;;
1219
1220   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221   | -silent | --silent | --silen | --sile | --sil)
1222     silent=yes ;;
1223
1224   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1225     ac_prev=sbindir ;;
1226   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1227   | --sbi=* | --sb=*)
1228     sbindir=$ac_optarg ;;
1229
1230   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1231   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1232   | --sharedst | --shareds | --shared | --share | --shar \
1233   | --sha | --sh)
1234     ac_prev=sharedstatedir ;;
1235   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1236   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1237   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1238   | --sha=* | --sh=*)
1239     sharedstatedir=$ac_optarg ;;
1240
1241   -site | --site | --sit)
1242     ac_prev=site ;;
1243   -site=* | --site=* | --sit=*)
1244     site=$ac_optarg ;;
1245
1246   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1247     ac_prev=srcdir ;;
1248   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1249     srcdir=$ac_optarg ;;
1250
1251   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1252   | --syscon | --sysco | --sysc | --sys | --sy)
1253     ac_prev=sysconfdir ;;
1254   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1255   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1256     sysconfdir=$ac_optarg ;;
1257
1258   -target | --target | --targe | --targ | --tar | --ta | --t)
1259     ac_prev=target_alias ;;
1260   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1261     target_alias=$ac_optarg ;;
1262
1263   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1264     verbose=yes ;;
1265
1266   -version | --version | --versio | --versi | --vers | -V)
1267     ac_init_version=: ;;
1268
1269   -with-* | --with-*)
1270     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271     # Reject names that are not valid shell variable names.
1272     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1273       as_fn_error "invalid package name: $ac_useropt"
1274     ac_useropt_orig=$ac_useropt
1275     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276     case $ac_user_opts in
1277       *"
1278 "with_$ac_useropt"
1279 "*) ;;
1280       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281          ac_unrecognized_sep=', ';;
1282     esac
1283     eval with_$ac_useropt=\$ac_optarg ;;
1284
1285   -without-* | --without-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       as_fn_error "invalid package name: $ac_useropt"
1290     ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293       *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=no ;;
1300
1301   --x)
1302     # Obsolete; use --with-x.
1303     with_x=yes ;;
1304
1305   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1306   | --x-incl | --x-inc | --x-in | --x-i)
1307     ac_prev=x_includes ;;
1308   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1309   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1310     x_includes=$ac_optarg ;;
1311
1312   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1313   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1314     ac_prev=x_libraries ;;
1315   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1316   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1317     x_libraries=$ac_optarg ;;
1318
1319   -*) as_fn_error "unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information."
1321     ;;
1322
1323   *=*)
1324     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1325     # Reject names that are not valid shell variable names.
1326     case $ac_envvar in #(
1327       '' | [0-9]* | *[!_$as_cr_alnum]* )
1328       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1329     esac
1330     eval $ac_envvar=\$ac_optarg
1331     export $ac_envvar ;;
1332
1333   *)
1334     # FIXME: should be removed in autoconf 3.0.
1335     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1337       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1339     ;;
1340
1341   esac
1342 done
1343
1344 if test -n "$ac_prev"; then
1345   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1346   as_fn_error "missing argument to $ac_option"
1347 fi
1348
1349 if test -n "$ac_unrecognized_opts"; then
1350   case $enable_option_checking in
1351     no) ;;
1352     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1353     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1354   esac
1355 fi
1356
1357 # Check all directory arguments for consistency.
1358 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359                 datadir sysconfdir sharedstatedir localstatedir includedir \
1360                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361                 libdir localedir mandir
1362 do
1363   eval ac_val=\$$ac_var
1364   # Remove trailing slashes.
1365   case $ac_val in
1366     */ )
1367       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368       eval $ac_var=\$ac_val;;
1369   esac
1370   # Be sure to have absolute directory names.
1371   case $ac_val in
1372     [\\/$]* | ?:[\\/]* )  continue;;
1373     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1374   esac
1375   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1376 done
1377
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1381 build=$build_alias
1382 host=$host_alias
1383 target=$target_alias
1384
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x; then
1387   if test "x$build_alias" = x; then
1388     cross_compiling=maybe
1389     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1390     If a cross compiler is detected then cross compile mode will be used." >&2
1391   elif test "x$build_alias" != "x$host_alias"; then
1392     cross_compiling=yes
1393   fi
1394 fi
1395
1396 ac_tool_prefix=
1397 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1398
1399 test "$silent" = yes && exec 6>/dev/null
1400
1401
1402 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1403 ac_ls_di=`ls -di .` &&
1404 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1405   as_fn_error "working directory cannot be determined"
1406 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1407   as_fn_error "pwd does not report name of working directory"
1408
1409
1410 # Find the source files, if location was not specified.
1411 if test -z "$srcdir"; then
1412   ac_srcdir_defaulted=yes
1413   # Try the directory containing this script, then the parent directory.
1414   ac_confdir=`$as_dirname -- "$as_myself" ||
1415 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1416          X"$as_myself" : 'X\(//\)[^/]' \| \
1417          X"$as_myself" : 'X\(//\)$' \| \
1418          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1419 $as_echo X"$as_myself" |
1420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421             s//\1/
1422             q
1423           }
1424           /^X\(\/\/\)[^/].*/{
1425             s//\1/
1426             q
1427           }
1428           /^X\(\/\/\)$/{
1429             s//\1/
1430             q
1431           }
1432           /^X\(\/\).*/{
1433             s//\1/
1434             q
1435           }
1436           s/.*/./; q'`
1437   srcdir=$ac_confdir
1438   if test ! -r "$srcdir/$ac_unique_file"; then
1439     srcdir=..
1440   fi
1441 else
1442   ac_srcdir_defaulted=no
1443 fi
1444 if test ! -r "$srcdir/$ac_unique_file"; then
1445   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1446   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1447 fi
1448 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1449 ac_abs_confdir=`(
1450         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1451         pwd)`
1452 # When building in place, set srcdir=.
1453 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454   srcdir=.
1455 fi
1456 # Remove unnecessary trailing slashes from srcdir.
1457 # Double slashes in file names in object file debugging info
1458 # mess up M-x gdb in Emacs.
1459 case $srcdir in
1460 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1461 esac
1462 for ac_var in $ac_precious_vars; do
1463   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1464   eval ac_env_${ac_var}_value=\$${ac_var}
1465   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1466   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1467 done
1468
1469 #
1470 # Report the --help message.
1471 #
1472 if test "$ac_init_help" = "long"; then
1473   # Omit some internal or obsolete options to make the list less imposing.
1474   # This message is too long to be a string in the A/UX 3.1 sh.
1475   cat <<_ACEOF
1476 \`configure' configures this package to adapt to many kinds of systems.
1477
1478 Usage: $0 [OPTION]... [VAR=VALUE]...
1479
1480 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1481 VAR=VALUE.  See below for descriptions of some of the useful variables.
1482
1483 Defaults for the options are specified in brackets.
1484
1485 Configuration:
1486   -h, --help              display this help and exit
1487       --help=short        display options specific to this package
1488       --help=recursive    display the short help of all the included packages
1489   -V, --version           display version information and exit
1490   -q, --quiet, --silent   do not print \`checking...' messages
1491       --cache-file=FILE   cache test results in FILE [disabled]
1492   -C, --config-cache      alias for \`--cache-file=config.cache'
1493   -n, --no-create         do not create output files
1494       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1495
1496 Installation directories:
1497   --prefix=PREFIX         install architecture-independent files in PREFIX
1498                           [$ac_default_prefix]
1499   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1500                           [PREFIX]
1501
1502 By default, \`make install' will install all the files in
1503 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1504 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1505 for instance \`--prefix=\$HOME'.
1506
1507 For better control, use the options below.
1508
1509 Fine tuning of the installation directories:
1510   --bindir=DIR            user executables [EPREFIX/bin]
1511   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1512   --libexecdir=DIR        program executables [EPREFIX/libexec]
1513   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1514   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1515   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1516   --libdir=DIR            object code libraries [EPREFIX/lib]
1517   --includedir=DIR        C header files [PREFIX/include]
1518   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1519   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1520   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1521   --infodir=DIR           info documentation [DATAROOTDIR/info]
1522   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1523   --mandir=DIR            man documentation [DATAROOTDIR/man]
1524   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1525   --htmldir=DIR           html documentation [DOCDIR]
1526   --dvidir=DIR            dvi documentation [DOCDIR]
1527   --pdfdir=DIR            pdf documentation [DOCDIR]
1528   --psdir=DIR             ps documentation [DOCDIR]
1529 _ACEOF
1530
1531   cat <<\_ACEOF
1532
1533 Program names:
1534   --program-prefix=PREFIX            prepend PREFIX to installed program names
1535   --program-suffix=SUFFIX            append SUFFIX to installed program names
1536   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1537
1538 X features:
1539   --x-includes=DIR    X include files are in DIR
1540   --x-libraries=DIR   X library files are in DIR
1541
1542 System types:
1543   --build=BUILD     configure for building on BUILD [guessed]
1544   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1545   --target=TARGET   configure for building compilers for TARGET [HOST]
1546 _ACEOF
1547 fi
1548
1549 if test -n "$ac_init_help"; then
1550
1551   cat <<\_ACEOF
1552
1553 Optional Features:
1554   --disable-option-checking  ignore unrecognized --enable/--with options
1555   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1556   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1557   --enable-maintainer-mode  enable make rules and dependencies not useful
1558                           (and sometimes confusing) to the casual installer
1559   --disable-dependency-tracking  speeds up one-time build
1560   --enable-dependency-tracking   do not reject slow dependency extractors
1561   --enable-targets=TARGETS
1562                           alternative target configurations
1563   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1564   --disable-gdbcli        disable command-line interface (CLI)
1565   --disable-gdbmi         disable machine-interface (MI)
1566   --enable-tui            enable full-screen terminal user interface (TUI)
1567   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1568   --enable-profiling      enable profiling of GDB
1569   --disable-rpath         do not hardcode runtime library paths
1570   --enable-werror         treat compile warnings as errors
1571   --enable-build-warnings enable build-time compiler warnings if gcc is used
1572   --enable-gdb-build-warnings
1573                           enable GDB specific build-time compiler warnings if
1574                           gcc is used
1575   --enable-sim            link gdb with simulator
1576   --enable-multi-ice      build the multi-ice-gdb-server
1577
1578 Optional Packages:
1579   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1580   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1581   --with-separate-debug-dir=PATH
1582                           look for global separate debug info in this path
1583                           [LIBDIR/debug]
1584   --with-gdb-datadir=PATH look for global separate data files in this path
1585                           [DATADIR/gdb]
1586   --with-relocated-sources=PATH
1587                           automatically relocate this path for source files
1588   --with-libunwind        use libunwind frame unwinding support
1589   --with-curses           use the curses library instead of the termcap
1590                           library
1591   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1592   --with-bugurl=URL       Direct users to URL to report a bug
1593   --with-libiconv-prefix=DIR
1594                           search for libiconv in DIR/include and DIR/lib
1595   --with-system-readline  use installed readline library
1596   --with-expat            include expat support (auto/yes/no)
1597   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1598   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1599   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1600   --with-python           include python support (auto/yes/no/<path>)
1601   --without-included-regex
1602                           don't use included regex; this is the default on
1603                           systems with version 2 of the GNU C library (use
1604                           with caution on other system)
1605   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1606   --with-system-gdbinit=PATH
1607                           automatically load a system-wide gdbinit file
1608   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1609   --with-tk               directory containing tk configuration (tkConfig.sh)
1610   --with-x                use the X Window System
1611   --with-datarootdir      use datarootdir as the data root directory.
1612   --with-docdir           install documentation in this directory.
1613   --with-pdfdir           install pdf in this directory.
1614   --with-htmldir          install html in this directory.
1615
1616 Some influential environment variables:
1617   CC          C compiler command
1618   CFLAGS      C compiler flags
1619   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1620               nonstandard directory <lib dir>
1621   LIBS        libraries to pass to the linker, e.g. -l<library>
1622   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1623               you have headers in a nonstandard directory <include dir>
1624   CPP         C preprocessor
1625   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1626               the first program found out of: `bison -y', `byacc', `yacc'.
1627   YFLAGS      The list of arguments that will be passed by default to $YACC.
1628               This script will default YFLAGS to the empty string to avoid a
1629               default value of `-d' given by some make applications.
1630   XMKMF       Path to xmkmf, Makefile generator for X Window System
1631
1632 Use these variables to override the choices made by `configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1634
1635 Report bugs to the package provider.
1636 _ACEOF
1637 ac_status=$?
1638 fi
1639
1640 if test "$ac_init_help" = "recursive"; then
1641   # If there are subdirs, report their specific --help.
1642   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643     test -d "$ac_dir" ||
1644       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645       continue
1646     ac_builddir=.
1647
1648 case "$ac_dir" in
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *)
1651   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652   # A ".." for each directory in $ac_dir_suffix.
1653   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654   case $ac_top_builddir_sub in
1655   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657   esac ;;
1658 esac
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1663
1664 case $srcdir in
1665   .)  # We are building in place.
1666     ac_srcdir=.
1667     ac_top_srcdir=$ac_top_builddir_sub
1668     ac_abs_top_srcdir=$ac_pwd ;;
1669   [\\/]* | ?:[\\/]* )  # Absolute name.
1670     ac_srcdir=$srcdir$ac_dir_suffix;
1671     ac_top_srcdir=$srcdir
1672     ac_abs_top_srcdir=$srcdir ;;
1673   *) # Relative name.
1674     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675     ac_top_srcdir=$ac_top_build_prefix$srcdir
1676     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 esac
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680     cd "$ac_dir" || { ac_status=$?; continue; }
1681     # Check for guested configure.
1682     if test -f "$ac_srcdir/configure.gnu"; then
1683       echo &&
1684       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685     elif test -f "$ac_srcdir/configure"; then
1686       echo &&
1687       $SHELL "$ac_srcdir/configure" --help=recursive
1688     else
1689       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690     fi || ac_status=$?
1691     cd "$ac_pwd" || { ac_status=$?; break; }
1692   done
1693 fi
1694
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1697   cat <<\_ACEOF
1698 configure
1699 generated by GNU Autoconf 2.64
1700
1701 Copyright (C) 2009 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1704 _ACEOF
1705   exit
1706 fi
1707
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1711
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_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_c_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_c_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_check_func LINENO FUNC VAR
1994 # ----------------------------------
1995 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1996 ac_fn_c_check_func ()
1997 {
1998   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2002   $as_echo_n "(cached) " >&6
2003 else
2004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2008 #define $2 innocuous_$2
2009
2010 /* System header to define __stub macros and hopefully few prototypes,
2011     which can conflict with char $2 (); below.
2012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2013     <limits.h> exists even on freestanding compilers.  */
2014
2015 #ifdef __STDC__
2016 # include <limits.h>
2017 #else
2018 # include <assert.h>
2019 #endif
2020
2021 #undef $2
2022
2023 /* Override any GCC internal prototype to avoid an error.
2024    Use char because int might match the return type of a GCC
2025    builtin and then its argument prototype would still apply.  */
2026 #ifdef __cplusplus
2027 extern "C"
2028 #endif
2029 char $2 ();
2030 /* The GNU C library defines this for functions which it implements
2031     to always fail with ENOSYS.  Some functions are actually named
2032     something starting with __ and the normal name is an alias.  */
2033 #if defined __stub_$2 || defined __stub___$2
2034 choke me
2035 #endif
2036
2037 int
2038 main ()
2039 {
2040 return $2 ();
2041   ;
2042   return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_link "$LINENO"; then :
2046   eval "$3=yes"
2047 else
2048   eval "$3=no"
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext \
2051     conftest$ac_exeext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$3
2054                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2057
2058 } # ac_fn_c_check_func
2059
2060 # ac_fn_c_check_decl LINENO SYMBOL VAR
2061 # ------------------------------------
2062 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2063 ac_fn_c_check_decl ()
2064 {
2065   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2067 $as_echo_n "checking whether $2 is declared... " >&6; }
2068 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069   $as_echo_n "(cached) " >&6
2070 else
2071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h.  */
2073 $4
2074 int
2075 main ()
2076 {
2077 #ifndef $2
2078   (void) $2;
2079 #endif
2080
2081   ;
2082   return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086   eval "$3=yes"
2087 else
2088   eval "$3=no"
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 fi
2092 eval ac_res=\$$3
2093                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2096
2097 } # ac_fn_c_check_decl
2098
2099 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2100 # --------------------------------------------
2101 # Tries to find the compile-time value of EXPR in a program that includes
2102 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2103 # computed
2104 ac_fn_c_compute_int ()
2105 {
2106   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107   if test "$cross_compiling" = yes; then
2108     # Depending upon the size, compute the lo and hi bounds.
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h.  */
2111 $4
2112 int
2113 main ()
2114 {
2115 static int test_array [1 - 2 * !(($2) >= 0)];
2116 test_array [0] = 0
2117
2118   ;
2119   return 0;
2120 }
2121 _ACEOF
2122 if ac_fn_c_try_compile "$LINENO"; then :
2123   ac_lo=0 ac_mid=0
2124   while :; do
2125     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h.  */
2127 $4
2128 int
2129 main ()
2130 {
2131 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2132 test_array [0] = 0
2133
2134   ;
2135   return 0;
2136 }
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139   ac_hi=$ac_mid; break
2140 else
2141   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2142                         if test $ac_lo -le $ac_mid; then
2143                           ac_lo= ac_hi=
2144                           break
2145                         fi
2146                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2147 fi
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149   done
2150 else
2151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h.  */
2153 $4
2154 int
2155 main ()
2156 {
2157 static int test_array [1 - 2 * !(($2) < 0)];
2158 test_array [0] = 0
2159
2160   ;
2161   return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165   ac_hi=-1 ac_mid=-1
2166   while :; do
2167     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h.  */
2169 $4
2170 int
2171 main ()
2172 {
2173 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2174 test_array [0] = 0
2175
2176   ;
2177   return 0;
2178 }
2179 _ACEOF
2180 if ac_fn_c_try_compile "$LINENO"; then :
2181   ac_lo=$ac_mid; break
2182 else
2183   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2184                         if test $ac_mid -le $ac_hi; then
2185                           ac_lo= ac_hi=
2186                           break
2187                         fi
2188                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2189 fi
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2191   done
2192 else
2193   ac_lo= ac_hi=
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 # Binary search between lo and hi bounds.
2199 while test "x$ac_lo" != "x$ac_hi"; do
2200   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h.  */
2203 $4
2204 int
2205 main ()
2206 {
2207 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2208 test_array [0] = 0
2209
2210   ;
2211   return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215   ac_hi=$ac_mid
2216 else
2217   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 done
2221 case $ac_lo in #((
2222 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2223 '') ac_retval=1 ;;
2224 esac
2225   else
2226     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227 /* end confdefs.h.  */
2228 $4
2229 static long int longval () { return $2; }
2230 static unsigned long int ulongval () { return $2; }
2231 #include <stdio.h>
2232 #include <stdlib.h>
2233 int
2234 main ()
2235 {
2236
2237   FILE *f = fopen ("conftest.val", "w");
2238   if (! f)
2239     return 1;
2240   if (($2) < 0)
2241     {
2242       long int i = longval ();
2243       if (i != ($2))
2244         return 1;
2245       fprintf (f, "%ld", i);
2246     }
2247   else
2248     {
2249       unsigned long int i = ulongval ();
2250       if (i != ($2))
2251         return 1;
2252       fprintf (f, "%lu", i);
2253     }
2254   /* Do not output a trailing newline, as this causes \r\n confusion
2255      on some platforms.  */
2256   return ferror (f) || fclose (f) != 0;
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_run "$LINENO"; then :
2263   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2264 else
2265   ac_retval=1
2266 fi
2267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2268   conftest.$ac_objext conftest.beam conftest.$ac_ext
2269 rm -f conftest.val
2270
2271   fi
2272   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2273   return $ac_retval
2274
2275 } # ac_fn_c_compute_int
2276
2277 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2278 # ----------------------------------------------------
2279 # Tries to find if the field MEMBER exists in type AGGR, after including
2280 # INCLUDES, setting cache variable VAR accordingly.
2281 ac_fn_c_check_member ()
2282 {
2283   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2285 $as_echo_n "checking for $2.$3... " >&6; }
2286 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2287   $as_echo_n "(cached) " >&6
2288 else
2289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h.  */
2291 $5
2292 int
2293 main ()
2294 {
2295 static $2 ac_aggr;
2296 if (ac_aggr.$3)
2297 return 0;
2298   ;
2299   return 0;
2300 }
2301 _ACEOF
2302 if ac_fn_c_try_compile "$LINENO"; then :
2303   eval "$4=yes"
2304 else
2305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2306 /* end confdefs.h.  */
2307 $5
2308 int
2309 main ()
2310 {
2311 static $2 ac_aggr;
2312 if (sizeof ac_aggr.$3)
2313 return 0;
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_compile "$LINENO"; then :
2319   eval "$4=yes"
2320 else
2321   eval "$4=no"
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 fi
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 fi
2327 eval ac_res=\$$4
2328                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2331
2332 } # ac_fn_c_check_member
2333
2334 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335 # -------------------------------------------
2336 # Tests whether TYPE exists after having included INCLUDES, setting cache
2337 # variable VAR accordingly.
2338 ac_fn_c_check_type ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2344   $as_echo_n "(cached) " >&6
2345 else
2346   eval "$3=no"
2347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h.  */
2349 $4
2350 int
2351 main ()
2352 {
2353 if (sizeof ($2))
2354          return 0;
2355   ;
2356   return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h.  */
2362 $4
2363 int
2364 main ()
2365 {
2366 if (sizeof (($2)))
2367             return 0;
2368   ;
2369   return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373
2374 else
2375   eval "$3=yes"
2376 fi
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 fi
2381 eval ac_res=\$$3
2382                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2385
2386 } # ac_fn_c_check_type
2387 cat >config.log <<_ACEOF
2388 This file contains any messages produced by compilers while
2389 running configure, to aid debugging if configure makes a mistake.
2390
2391 It was created by $as_me, which was
2392 generated by GNU Autoconf 2.64.  Invocation command line was
2393
2394   $ $0 $@
2395
2396 _ACEOF
2397 exec 5>>config.log
2398 {
2399 cat <<_ASUNAME
2400 ## --------- ##
2401 ## Platform. ##
2402 ## --------- ##
2403
2404 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2405 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2406 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2407 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2408 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2409
2410 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2411 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2412
2413 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2414 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2415 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2416 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2417 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2418 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2419 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2420
2421 _ASUNAME
2422
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426   IFS=$as_save_IFS
2427   test -z "$as_dir" && as_dir=.
2428     $as_echo "PATH: $as_dir"
2429   done
2430 IFS=$as_save_IFS
2431
2432 } >&5
2433
2434 cat >&5 <<_ACEOF
2435
2436
2437 ## ----------- ##
2438 ## Core tests. ##
2439 ## ----------- ##
2440
2441 _ACEOF
2442
2443
2444 # Keep a trace of the command line.
2445 # Strip out --no-create and --no-recursion so they do not pile up.
2446 # Strip out --silent because we don't want to record it for future runs.
2447 # Also quote any args containing shell meta-characters.
2448 # Make two passes to allow for proper duplicate-argument suppression.
2449 ac_configure_args=
2450 ac_configure_args0=
2451 ac_configure_args1=
2452 ac_must_keep_next=false
2453 for ac_pass in 1 2
2454 do
2455   for ac_arg
2456   do
2457     case $ac_arg in
2458     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2459     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2460     | -silent | --silent | --silen | --sile | --sil)
2461       continue ;;
2462     *\'*)
2463       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2464     esac
2465     case $ac_pass in
2466     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2467     2)
2468       as_fn_append ac_configure_args1 " '$ac_arg'"
2469       if test $ac_must_keep_next = true; then
2470         ac_must_keep_next=false # Got value, back to normal.
2471       else
2472         case $ac_arg in
2473           *=* | --config-cache | -C | -disable-* | --disable-* \
2474           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2475           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2476           | -with-* | --with-* | -without-* | --without-* | --x)
2477             case "$ac_configure_args0 " in
2478               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2479             esac
2480             ;;
2481           -* ) ac_must_keep_next=true ;;
2482         esac
2483       fi
2484       as_fn_append ac_configure_args " '$ac_arg'"
2485       ;;
2486     esac
2487   done
2488 done
2489 { ac_configure_args0=; unset ac_configure_args0;}
2490 { ac_configure_args1=; unset ac_configure_args1;}
2491
2492 # When interrupted or exit'd, cleanup temporary files, and complete
2493 # config.log.  We remove comments because anyway the quotes in there
2494 # would cause problems or look ugly.
2495 # WARNING: Use '\'' to represent an apostrophe within the trap.
2496 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2497 trap 'exit_status=$?
2498   # Save into config.log some information that might help in debugging.
2499   {
2500     echo
2501
2502     cat <<\_ASBOX
2503 ## ---------------- ##
2504 ## Cache variables. ##
2505 ## ---------------- ##
2506 _ASBOX
2507     echo
2508     # The following way of writing the cache mishandles newlines in values,
2509 (
2510   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2511     eval ac_val=\$$ac_var
2512     case $ac_val in #(
2513     *${as_nl}*)
2514       case $ac_var in #(
2515       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2517       esac
2518       case $ac_var in #(
2519       _ | IFS | as_nl) ;; #(
2520       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2521       *) { eval $ac_var=; unset $ac_var;} ;;
2522       esac ;;
2523     esac
2524   done
2525   (set) 2>&1 |
2526     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2527     *${as_nl}ac_space=\ *)
2528       sed -n \
2529         "s/'\''/'\''\\\\'\'''\''/g;
2530           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2531       ;; #(
2532     *)
2533       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2534       ;;
2535     esac |
2536     sort
2537 )
2538     echo
2539
2540     cat <<\_ASBOX
2541 ## ----------------- ##
2542 ## Output variables. ##
2543 ## ----------------- ##
2544 _ASBOX
2545     echo
2546     for ac_var in $ac_subst_vars
2547     do
2548       eval ac_val=\$$ac_var
2549       case $ac_val in
2550       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551       esac
2552       $as_echo "$ac_var='\''$ac_val'\''"
2553     done | sort
2554     echo
2555
2556     if test -n "$ac_subst_files"; then
2557       cat <<\_ASBOX
2558 ## ------------------- ##
2559 ## File substitutions. ##
2560 ## ------------------- ##
2561 _ASBOX
2562       echo
2563       for ac_var in $ac_subst_files
2564       do
2565         eval ac_val=\$$ac_var
2566         case $ac_val in
2567         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2568         esac
2569         $as_echo "$ac_var='\''$ac_val'\''"
2570       done | sort
2571       echo
2572     fi
2573
2574     if test -s confdefs.h; then
2575       cat <<\_ASBOX
2576 ## ----------- ##
2577 ## confdefs.h. ##
2578 ## ----------- ##
2579 _ASBOX
2580       echo
2581       cat confdefs.h
2582       echo
2583     fi
2584     test "$ac_signal" != 0 &&
2585       $as_echo "$as_me: caught signal $ac_signal"
2586     $as_echo "$as_me: exit $exit_status"
2587   } >&5
2588   rm -f core *.core core.conftest.* &&
2589     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2590     exit $exit_status
2591 ' 0
2592 for ac_signal in 1 2 13 15; do
2593   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2594 done
2595 ac_signal=0
2596
2597 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2598 rm -f -r conftest* confdefs.h
2599
2600 $as_echo "/* confdefs.h */" > confdefs.h
2601
2602 # Predefined preprocessor variables.
2603
2604 cat >>confdefs.h <<_ACEOF
2605 #define PACKAGE_NAME "$PACKAGE_NAME"
2606 _ACEOF
2607
2608 cat >>confdefs.h <<_ACEOF
2609 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2610 _ACEOF
2611
2612 cat >>confdefs.h <<_ACEOF
2613 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2614 _ACEOF
2615
2616 cat >>confdefs.h <<_ACEOF
2617 #define PACKAGE_STRING "$PACKAGE_STRING"
2618 _ACEOF
2619
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2622 _ACEOF
2623
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_URL "$PACKAGE_URL"
2626 _ACEOF
2627
2628
2629 # Let the site file select an alternate cache file if it wants to.
2630 # Prefer an explicitly selected file to automatically selected ones.
2631 ac_site_file1=NONE
2632 ac_site_file2=NONE
2633 if test -n "$CONFIG_SITE"; then
2634   ac_site_file1=$CONFIG_SITE
2635 elif test "x$prefix" != xNONE; then
2636   ac_site_file1=$prefix/share/config.site
2637   ac_site_file2=$prefix/etc/config.site
2638 else
2639   ac_site_file1=$ac_default_prefix/share/config.site
2640   ac_site_file2=$ac_default_prefix/etc/config.site
2641 fi
2642 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2643 do
2644   test "x$ac_site_file" = xNONE && continue
2645   if test -r "$ac_site_file"; then
2646     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2647 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2648     sed 's/^/| /' "$ac_site_file" >&5
2649     . "$ac_site_file"
2650   fi
2651 done
2652
2653 if test -r "$cache_file"; then
2654   # Some versions of bash will fail to source /dev/null (special
2655   # files actually), so we avoid doing that.
2656   if test -f "$cache_file"; then
2657     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2658 $as_echo "$as_me: loading cache $cache_file" >&6;}
2659     case $cache_file in
2660       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2661       *)                      . "./$cache_file";;
2662     esac
2663   fi
2664 else
2665   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2666 $as_echo "$as_me: creating cache $cache_file" >&6;}
2667   >$cache_file
2668 fi
2669
2670 gl_header_list="$gl_header_list stdint.h"
2671 gl_header_list="$gl_header_list wchar.h"
2672 gl_header_list="$gl_header_list string.h"
2673 # Check that the precious variables saved in the cache have kept the same
2674 # value.
2675 ac_cache_corrupted=false
2676 for ac_var in $ac_precious_vars; do
2677   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2678   eval ac_new_set=\$ac_env_${ac_var}_set
2679   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2680   eval ac_new_val=\$ac_env_${ac_var}_value
2681   case $ac_old_set,$ac_new_set in
2682     set,)
2683       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2684 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2685       ac_cache_corrupted=: ;;
2686     ,set)
2687       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2688 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2689       ac_cache_corrupted=: ;;
2690     ,);;
2691     *)
2692       if test "x$ac_old_val" != "x$ac_new_val"; then
2693         # differences in whitespace do not lead to failure.
2694         ac_old_val_w=`echo x $ac_old_val`
2695         ac_new_val_w=`echo x $ac_new_val`
2696         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2697           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2698 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2699           ac_cache_corrupted=:
2700         else
2701           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2702 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2703           eval $ac_var=\$ac_old_val
2704         fi
2705         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2706 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2707         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2708 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2709       fi;;
2710   esac
2711   # Pass precious variables to config.status.
2712   if test "$ac_new_set" = set; then
2713     case $ac_new_val in
2714     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2715     *) ac_arg=$ac_var=$ac_new_val ;;
2716     esac
2717     case " $ac_configure_args " in
2718       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2719       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2720     esac
2721   fi
2722 done
2723 if $ac_cache_corrupted; then
2724   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2726   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2727 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2728   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2729 fi
2730 ## -------------------- ##
2731 ## Main body of script. ##
2732 ## -------------------- ##
2733
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741
2742
2743
2744 ac_config_headers="$ac_config_headers config.h:config.in"
2745
2746
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2748 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2749     # Check whether --enable-maintainer-mode was given.
2750 if test "${enable_maintainer_mode+set}" = set; then :
2751   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2752 else
2753   USE_MAINTAINER_MODE=no
2754 fi
2755
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2757 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2758    if test $USE_MAINTAINER_MODE = yes; then
2759   MAINTAINER_MODE_TRUE=
2760   MAINTAINER_MODE_FALSE='#'
2761 else
2762   MAINTAINER_MODE_TRUE='#'
2763   MAINTAINER_MODE_FALSE=
2764 fi
2765
2766   MAINT=$MAINTAINER_MODE_TRUE
2767
2768
2769
2770 ac_ext=c
2771 ac_cpp='$CPP $CPPFLAGS'
2772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775 if test -n "$ac_tool_prefix"; then
2776   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_prog_CC+set}" = set; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   if test -n "$CC"; then
2784   ac_cv_prog_CC="$CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789   IFS=$as_save_IFS
2790   test -z "$as_dir" && as_dir=.
2791     for ac_exec_ext in '' $ac_executable_extensions; do
2792   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795     break 2
2796   fi
2797 done
2798   done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 CC=$ac_cv_prog_CC
2804 if test -n "$CC"; then
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806 $as_echo "$CC" >&6; }
2807 else
2808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 fi
2814 if test -z "$ac_cv_prog_CC"; then
2815   ac_ct_CC=$CC
2816   # Extract the first word of "gcc", so it can be a program name with args.
2817 set dummy gcc; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2821   $as_echo_n "(cached) " >&6
2822 else
2823   if test -n "$ac_ct_CC"; then
2824   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831     for ac_exec_ext in '' $ac_executable_extensions; do
2832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2833     ac_cv_prog_ac_ct_CC="gcc"
2834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835     break 2
2836   fi
2837 done
2838   done
2839 IFS=$as_save_IFS
2840
2841 fi
2842 fi
2843 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2844 if test -n "$ac_ct_CC"; then
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2846 $as_echo "$ac_ct_CC" >&6; }
2847 else
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2849 $as_echo "no" >&6; }
2850 fi
2851
2852   if test "x$ac_ct_CC" = x; then
2853     CC=""
2854   else
2855     case $cross_compiling:$ac_tool_warned in
2856 yes:)
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2859 ac_tool_warned=yes ;;
2860 esac
2861     CC=$ac_ct_CC
2862   fi
2863 else
2864   CC="$ac_cv_prog_CC"
2865 fi
2866
2867 if test -z "$CC"; then
2868           if test -n "$ac_tool_prefix"; then
2869     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}cc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if test "${ac_cv_prog_CC+set}" = set; then :
2874   $as_echo_n "(cached) " >&6
2875 else
2876   if test -n "$CC"; then
2877   ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882   IFS=$as_save_IFS
2883   test -z "$as_dir" && as_dir=.
2884     for ac_exec_ext in '' $ac_executable_extensions; do
2885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886     ac_cv_prog_CC="${ac_tool_prefix}cc"
2887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888     break 2
2889   fi
2890 done
2891   done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906   fi
2907 fi
2908 if test -z "$CC"; then
2909   # Extract the first word of "cc", so it can be a program name with args.
2910 set dummy cc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then :
2914   $as_echo_n "(cached) " >&6
2915 else
2916   if test -n "$CC"; then
2917   ac_cv_prog_CC="$CC" # Let the user override the test.
2918 else
2919   ac_prog_rejected=no
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923   IFS=$as_save_IFS
2924   test -z "$as_dir" && as_dir=.
2925     for ac_exec_ext in '' $ac_executable_extensions; do
2926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2928        ac_prog_rejected=yes
2929        continue
2930      fi
2931     ac_cv_prog_CC="cc"
2932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933     break 2
2934   fi
2935 done
2936   done
2937 IFS=$as_save_IFS
2938
2939 if test $ac_prog_rejected = yes; then
2940   # We found a bogon in the path, so make sure we never use it.
2941   set dummy $ac_cv_prog_CC
2942   shift
2943   if test $# != 0; then
2944     # We chose a different compiler from the bogus one.
2945     # However, it has the same basename, so the bogon will be chosen
2946     # first if we set CC to just the basename; use the full file name.
2947     shift
2948     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2949   fi
2950 fi
2951 fi
2952 fi
2953 CC=$ac_cv_prog_CC
2954 if test -n "$CC"; then
2955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2956 $as_echo "$CC" >&6; }
2957 else
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2959 $as_echo "no" >&6; }
2960 fi
2961
2962
2963 fi
2964 if test -z "$CC"; then
2965   if test -n "$ac_tool_prefix"; then
2966   for ac_prog in cl.exe
2967   do
2968     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then :
2973   $as_echo_n "(cached) " >&6
2974 else
2975   if test -n "$CC"; then
2976   ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2980 do
2981   IFS=$as_save_IFS
2982   test -z "$as_dir" && as_dir=.
2983     for ac_exec_ext in '' $ac_executable_extensions; do
2984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987     break 2
2988   fi
2989 done
2990   done
2991 IFS=$as_save_IFS
2992
2993 fi
2994 fi
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3002 fi
3003
3004
3005     test -n "$CC" && break
3006   done
3007 fi
3008 if test -z "$CC"; then
3009   ac_ct_CC=$CC
3010   for ac_prog in cl.exe
3011 do
3012   # Extract the first word of "$ac_prog", so it can be a program name with args.
3013 set dummy $ac_prog; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3017   $as_echo_n "(cached) " >&6
3018 else
3019   if test -n "$ac_ct_CC"; then
3020   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025   IFS=$as_save_IFS
3026   test -z "$as_dir" && as_dir=.
3027     for ac_exec_ext in '' $ac_executable_extensions; do
3028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029     ac_cv_prog_ac_ct_CC="$ac_prog"
3030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034   done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040 if test -n "$ac_ct_CC"; then
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3042 $as_echo "$ac_ct_CC" >&6; }
3043 else
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048
3049   test -n "$ac_ct_CC" && break
3050 done
3051
3052   if test "x$ac_ct_CC" = x; then
3053     CC=""
3054   else
3055     case $cross_compiling:$ac_tool_warned in
3056 yes:)
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3059 ac_tool_warned=yes ;;
3060 esac
3061     CC=$ac_ct_CC
3062   fi
3063 fi
3064
3065 fi
3066
3067
3068 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 as_fn_error "no acceptable C compiler found in \$PATH
3071 See \`config.log' for more details." "$LINENO" 5; }
3072
3073 # Provide some information about the compiler.
3074 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3075 set X $ac_compile
3076 ac_compiler=$2
3077 for ac_option in --version -v -V -qversion; do
3078   { { ac_try="$ac_compiler $ac_option >&5"
3079 case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 $as_echo "$ac_try_echo"; } >&5
3085   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3086   ac_status=$?
3087   if test -s conftest.err; then
3088     sed '10a\
3089 ... rest of stderr output deleted ...
3090          10q' conftest.err >conftest.er1
3091     cat conftest.er1 >&5
3092     rm -f conftest.er1 conftest.err
3093   fi
3094   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095   test $ac_status = 0; }
3096 done
3097
3098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3099 /* end confdefs.h.  */
3100
3101 int
3102 main ()
3103 {
3104
3105   ;
3106   return 0;
3107 }
3108 _ACEOF
3109 ac_clean_files_save=$ac_clean_files
3110 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3111 # Try to create an executable without -o first, disregard a.out.
3112 # It will help us diagnose broken compilers, and finding out an intuition
3113 # of exeext.
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3115 $as_echo_n "checking for C compiler default output file name... " >&6; }
3116 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117
3118 # The possible output files:
3119 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3120
3121 ac_rmfiles=
3122 for ac_file in $ac_files
3123 do
3124   case $ac_file in
3125     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3127   esac
3128 done
3129 rm -f $ac_rmfiles
3130
3131 if { { ac_try="$ac_link_default"
3132 case "(($ac_try" in
3133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134   *) ac_try_echo=$ac_try;;
3135 esac
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138   (eval "$ac_link_default") 2>&5
3139   ac_status=$?
3140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141   test $ac_status = 0; }; then :
3142   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3143 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3144 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3145 # so that the user can short-circuit this test for compilers unknown to
3146 # Autoconf.
3147 for ac_file in $ac_files ''
3148 do
3149   test -f "$ac_file" || continue
3150   case $ac_file in
3151     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3152         ;;
3153     [ab].out )
3154         # We found the default executable, but exeext='' is most
3155         # certainly right.
3156         break;;
3157     *.* )
3158         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3159         then :; else
3160            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161         fi
3162         # We set ac_cv_exeext here because the later test for it is not
3163         # safe: cross compilers may not add the suffix if given an `-o'
3164         # argument, so we may need to know it at that point already.
3165         # Even if this section looks crufty: it has the advantage of
3166         # actually working.
3167         break;;
3168     * )
3169         break;;
3170   esac
3171 done
3172 test "$ac_cv_exeext" = no && ac_cv_exeext=
3173
3174 else
3175   ac_file=''
3176 fi
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3178 $as_echo "$ac_file" >&6; }
3179 if test -z "$ac_file"; then :
3180   $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 { as_fn_set_status 77
3186 as_fn_error "C compiler cannot create executables
3187 See \`config.log' for more details." "$LINENO" 5; }; }
3188 fi
3189 ac_exeext=$ac_cv_exeext
3190
3191 # Check that the compiler produces executables we can run.  If not, either
3192 # the compiler is broken, or we cross compile.
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3194 $as_echo_n "checking whether the C compiler works... " >&6; }
3195 # If not cross compiling, check that we can run a simple program.
3196 if test "$cross_compiling" != yes; then
3197   if { ac_try='./$ac_file'
3198   { { case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204   (eval "$ac_try") 2>&5
3205   ac_status=$?
3206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207   test $ac_status = 0; }; }; then
3208     cross_compiling=no
3209   else
3210     if test "$cross_compiling" = maybe; then
3211         cross_compiling=yes
3212     else
3213         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215 as_fn_error "cannot run C compiled programs.
3216 If you meant to cross compile, use \`--host'.
3217 See \`config.log' for more details." "$LINENO" 5; }
3218     fi
3219   fi
3220 fi
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222 $as_echo "yes" >&6; }
3223
3224 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3225 ac_clean_files=$ac_clean_files_save
3226 # Check that the compiler produces executables we can run.  If not, either
3227 # the compiler is broken, or we cross compile.
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3229 $as_echo_n "checking whether we are cross compiling... " >&6; }
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3231 $as_echo "$cross_compiling" >&6; }
3232
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3234 $as_echo_n "checking for suffix of executables... " >&6; }
3235 if { { ac_try="$ac_link"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242   (eval "$ac_link") 2>&5
3243   ac_status=$?
3244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245   test $ac_status = 0; }; then :
3246   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3247 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3248 # work properly (i.e., refer to `conftest.exe'), while it won't with
3249 # `rm'.
3250 for ac_file in conftest.exe conftest conftest.*; do
3251   test -f "$ac_file" || continue
3252   case $ac_file in
3253     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255           break;;
3256     * ) break;;
3257   esac
3258 done
3259 else
3260   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error "cannot compute suffix of executables: cannot compile and link
3263 See \`config.log' for more details." "$LINENO" 5; }
3264 fi
3265 rm -f conftest$ac_cv_exeext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3267 $as_echo "$ac_cv_exeext" >&6; }
3268
3269 rm -f conftest.$ac_ext
3270 EXEEXT=$ac_cv_exeext
3271 ac_exeext=$EXEEXT
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3273 $as_echo_n "checking for suffix of object files... " >&6; }
3274 if test "${ac_cv_objext+set}" = set; then :
3275   $as_echo_n "(cached) " >&6
3276 else
3277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h.  */
3279
3280 int
3281 main ()
3282 {
3283
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.o conftest.obj
3289 if { { ac_try="$ac_compile"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3295 $as_echo "$ac_try_echo"; } >&5
3296   (eval "$ac_compile") 2>&5
3297   ac_status=$?
3298   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3299   test $ac_status = 0; }; then :
3300   for ac_file in conftest.o conftest.obj conftest.*; do
3301   test -f "$ac_file" || continue;
3302   case $ac_file in
3303     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3304     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3305        break;;
3306   esac
3307 done
3308 else
3309   $as_echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3311
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error "cannot compute suffix of object files: cannot compile
3315 See \`config.log' for more details." "$LINENO" 5; }
3316 fi
3317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 fi
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3320 $as_echo "$ac_cv_objext" >&6; }
3321 OBJEXT=$ac_cv_objext
3322 ac_objext=$OBJEXT
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3324 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3325 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3326   $as_echo_n "(cached) " >&6
3327 else
3328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3329 /* end confdefs.h.  */
3330
3331 int
3332 main ()
3333 {
3334 #ifndef __GNUC__
3335        choke me
3336 #endif
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 if ac_fn_c_try_compile "$LINENO"; then :
3343   ac_compiler_gnu=yes
3344 else
3345   ac_compiler_gnu=no
3346 fi
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3349
3350 fi
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3352 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3353 if test $ac_compiler_gnu = yes; then
3354   GCC=yes
3355 else
3356   GCC=
3357 fi
3358 ac_test_CFLAGS=${CFLAGS+set}
3359 ac_save_CFLAGS=$CFLAGS
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3361 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3362 if test "${ac_cv_prog_cc_g+set}" = set; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   ac_save_c_werror_flag=$ac_c_werror_flag
3366    ac_c_werror_flag=yes
3367    ac_cv_prog_cc_g=no
3368    CFLAGS="-g"
3369    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h.  */
3371
3372 int
3373 main ()
3374 {
3375
3376   ;
3377   return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_compile "$LINENO"; then :
3381   ac_cv_prog_cc_g=yes
3382 else
3383   CFLAGS=""
3384       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h.  */
3386
3387 int
3388 main ()
3389 {
3390
3391   ;
3392   return 0;
3393 }
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396
3397 else
3398   ac_c_werror_flag=$ac_save_c_werror_flag
3399          CFLAGS="-g"
3400          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h.  */
3402
3403 int
3404 main ()
3405 {
3406
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 if ac_fn_c_try_compile "$LINENO"; then :
3412   ac_cv_prog_cc_g=yes
3413 fi
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 fi
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 fi
3418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3419    ac_c_werror_flag=$ac_save_c_werror_flag
3420 fi
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3422 $as_echo "$ac_cv_prog_cc_g" >&6; }
3423 if test "$ac_test_CFLAGS" = set; then
3424   CFLAGS=$ac_save_CFLAGS
3425 elif test $ac_cv_prog_cc_g = yes; then
3426   if test "$GCC" = yes; then
3427     CFLAGS="-g -O2"
3428   else
3429     CFLAGS="-g"
3430   fi
3431 else
3432   if test "$GCC" = yes; then
3433     CFLAGS="-O2"
3434   else
3435     CFLAGS=
3436   fi
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3439 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3440 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3441   $as_echo_n "(cached) " >&6
3442 else
3443   ac_cv_prog_cc_c89=no
3444 ac_save_CC=$CC
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h.  */
3447 #include <stdarg.h>
3448 #include <stdio.h>
3449 #include <sys/types.h>
3450 #include <sys/stat.h>
3451 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3452 struct buf { int x; };
3453 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3454 static char *e (p, i)
3455      char **p;
3456      int i;
3457 {
3458   return p[i];
3459 }
3460 static char *f (char * (*g) (char **, int), char **p, ...)
3461 {
3462   char *s;
3463   va_list v;
3464   va_start (v,p);
3465   s = g (p, va_arg (v,int));
3466   va_end (v);
3467   return s;
3468 }
3469
3470 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3471    function prototypes and stuff, but not '\xHH' hex character constants.
3472    These don't provoke an error unfortunately, instead are silently treated
3473    as 'x'.  The following induces an error, until -std is added to get
3474    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3475    array size at least.  It's necessary to write '\x00'==0 to get something
3476    that's true only with -std.  */
3477 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3478
3479 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3480    inside strings and character constants.  */
3481 #define FOO(x) 'x'
3482 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3483
3484 int test (int i, double x);
3485 struct s1 {int (*f) (int a);};
3486 struct s2 {int (*f) (double a);};
3487 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3488 int argc;
3489 char **argv;
3490 int
3491 main ()
3492 {
3493 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3499         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3500 do
3501   CC="$ac_save_CC $ac_arg"
3502   if ac_fn_c_try_compile "$LINENO"; then :
3503   ac_cv_prog_cc_c89=$ac_arg
3504 fi
3505 rm -f core conftest.err conftest.$ac_objext
3506   test "x$ac_cv_prog_cc_c89" != "xno" && break
3507 done
3508 rm -f conftest.$ac_ext
3509 CC=$ac_save_CC
3510
3511 fi
3512 # AC_CACHE_VAL
3513 case "x$ac_cv_prog_cc_c89" in
3514   x)
3515     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3516 $as_echo "none needed" >&6; } ;;
3517   xno)
3518     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3519 $as_echo "unsupported" >&6; } ;;
3520   *)
3521     CC="$CC $ac_cv_prog_cc_c89"
3522     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3523 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3524 esac
3525 if test "x$ac_cv_prog_cc_c89" != xno; then :
3526
3527 fi
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3542 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3543 # On Suns, sometimes $CPP names a directory.
3544 if test -n "$CPP" && test -d "$CPP"; then
3545   CPP=
3546 fi
3547 if test -z "$CPP"; then
3548   if test "${ac_cv_prog_CPP+set}" = set; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551       # Double quotes because CPP needs to be expanded
3552     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3553     do
3554       ac_preproc_ok=false
3555 for ac_c_preproc_warn_flag in '' yes
3556 do
3557   # Use a header file that comes with gcc, so configuring glibc
3558   # with a fresh cross-compiler works.
3559   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560   # <limits.h> exists even on freestanding compilers.
3561   # On the NeXT, cc -E runs the code through the compiler's parser,
3562   # not just through cpp. "Syntax error" is here to catch this case.
3563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h.  */
3565 #ifdef __STDC__
3566 # include <limits.h>
3567 #else
3568 # include <assert.h>
3569 #endif
3570                      Syntax error
3571 _ACEOF
3572 if ac_fn_c_try_cpp "$LINENO"; then :
3573
3574 else
3575   # Broken: fails on valid input.
3576 continue
3577 fi
3578 rm -f conftest.err conftest.$ac_ext
3579
3580   # OK, works on sane cases.  Now check whether nonexistent headers
3581   # can be detected and how.
3582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h.  */
3584 #include <ac_nonexistent.h>
3585 _ACEOF
3586 if ac_fn_c_try_cpp "$LINENO"; then :
3587   # Broken: success on invalid input.
3588 continue
3589 else
3590   # Passes both tests.
3591 ac_preproc_ok=:
3592 break
3593 fi
3594 rm -f conftest.err conftest.$ac_ext
3595
3596 done
3597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3598 rm -f conftest.err conftest.$ac_ext
3599 if $ac_preproc_ok; then :
3600   break
3601 fi
3602
3603     done
3604     ac_cv_prog_CPP=$CPP
3605
3606 fi
3607   CPP=$ac_cv_prog_CPP
3608 else
3609   ac_cv_prog_CPP=$CPP
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3612 $as_echo "$CPP" >&6; }
3613 ac_preproc_ok=false
3614 for ac_c_preproc_warn_flag in '' yes
3615 do
3616   # Use a header file that comes with gcc, so configuring glibc
3617   # with a fresh cross-compiler works.
3618   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619   # <limits.h> exists even on freestanding compilers.
3620   # On the NeXT, cc -E runs the code through the compiler's parser,
3621   # not just through cpp. "Syntax error" is here to catch this case.
3622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h.  */
3624 #ifdef __STDC__
3625 # include <limits.h>
3626 #else
3627 # include <assert.h>
3628 #endif
3629                      Syntax error
3630 _ACEOF
3631 if ac_fn_c_try_cpp "$LINENO"; then :
3632
3633 else
3634   # Broken: fails on valid input.
3635 continue
3636 fi
3637 rm -f conftest.err conftest.$ac_ext
3638
3639   # OK, works on sane cases.  Now check whether nonexistent headers
3640   # can be detected and how.
3641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h.  */
3643 #include <ac_nonexistent.h>
3644 _ACEOF
3645 if ac_fn_c_try_cpp "$LINENO"; then :
3646   # Broken: success on invalid input.
3647 continue
3648 else
3649   # Passes both tests.
3650 ac_preproc_ok=:
3651 break
3652 fi
3653 rm -f conftest.err conftest.$ac_ext
3654
3655 done
3656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3657 rm -f conftest.err conftest.$ac_ext
3658 if $ac_preproc_ok; then :
3659
3660 else
3661   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3664 See \`config.log' for more details." "$LINENO" 5; }
3665 fi
3666
3667 ac_ext=c
3668 ac_cpp='$CPP $CPPFLAGS'
3669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672
3673
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3675 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3676 if test "${ac_cv_path_GREP+set}" = set; then :
3677   $as_echo_n "(cached) " >&6
3678 else
3679   if test -z "$GREP"; then
3680   ac_path_GREP_found=false
3681   # Loop through the user's path and test for each of PROGNAME-LIST
3682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687     for ac_prog in grep ggrep; do
3688     for ac_exec_ext in '' $ac_executable_extensions; do
3689       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3690       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3691 # Check for GNU ac_path_GREP and select it if it is found.
3692   # Check for GNU $ac_path_GREP
3693 case `"$ac_path_GREP" --version 2>&1` in
3694 *GNU*)
3695   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3696 *)
3697   ac_count=0
3698   $as_echo_n 0123456789 >"conftest.in"
3699   while :
3700   do
3701     cat "conftest.in" "conftest.in" >"conftest.tmp"
3702     mv "conftest.tmp" "conftest.in"
3703     cp "conftest.in" "conftest.nl"
3704     $as_echo 'GREP' >> "conftest.nl"
3705     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3707     as_fn_arith $ac_count + 1 && ac_count=$as_val
3708     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3709       # Best one so far, save it but keep looking for a better one
3710       ac_cv_path_GREP="$ac_path_GREP"
3711       ac_path_GREP_max=$ac_count
3712     fi
3713     # 10*(2^10) chars as input seems more than enough
3714     test $ac_count -gt 10 && break
3715   done
3716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3717 esac
3718
3719       $ac_path_GREP_found && break 3
3720     done
3721   done
3722   done
3723 IFS=$as_save_IFS
3724   if test -z "$ac_cv_path_GREP"; then
3725     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3726   fi
3727 else
3728   ac_cv_path_GREP=$GREP
3729 fi
3730
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3733 $as_echo "$ac_cv_path_GREP" >&6; }
3734  GREP="$ac_cv_path_GREP"
3735
3736
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3738 $as_echo_n "checking for egrep... " >&6; }
3739 if test "${ac_cv_path_EGREP+set}" = set; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3743    then ac_cv_path_EGREP="$GREP -E"
3744    else
3745      if test -z "$EGREP"; then
3746   ac_path_EGREP_found=false
3747   # Loop through the user's path and test for each of PROGNAME-LIST
3748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3750 do
3751   IFS=$as_save_IFS
3752   test -z "$as_dir" && as_dir=.
3753     for ac_prog in egrep; do
3754     for ac_exec_ext in '' $ac_executable_extensions; do
3755       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3756       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3757 # Check for GNU ac_path_EGREP and select it if it is found.
3758   # Check for GNU $ac_path_EGREP
3759 case `"$ac_path_EGREP" --version 2>&1` in
3760 *GNU*)
3761   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3762 *)
3763   ac_count=0
3764   $as_echo_n 0123456789 >"conftest.in"
3765   while :
3766   do
3767     cat "conftest.in" "conftest.in" >"conftest.tmp"
3768     mv "conftest.tmp" "conftest.in"
3769     cp "conftest.in" "conftest.nl"
3770     $as_echo 'EGREP' >> "conftest.nl"
3771     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3772     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3773     as_fn_arith $ac_count + 1 && ac_count=$as_val
3774     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3775       # Best one so far, save it but keep looking for a better one
3776       ac_cv_path_EGREP="$ac_path_EGREP"
3777       ac_path_EGREP_max=$ac_count
3778     fi
3779     # 10*(2^10) chars as input seems more than enough
3780     test $ac_count -gt 10 && break
3781   done
3782   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3783 esac
3784
3785       $ac_path_EGREP_found && break 3
3786     done
3787   done
3788   done
3789 IFS=$as_save_IFS
3790   if test -z "$ac_cv_path_EGREP"; then
3791     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3792   fi
3793 else
3794   ac_cv_path_EGREP=$EGREP
3795 fi
3796
3797    fi
3798 fi
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3800 $as_echo "$ac_cv_path_EGREP" >&6; }
3801  EGREP="$ac_cv_path_EGREP"
3802
3803
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3805 $as_echo_n "checking for ANSI C header files... " >&6; }
3806 if test "${ac_cv_header_stdc+set}" = set; then :
3807   $as_echo_n "(cached) " >&6
3808 else
3809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h.  */
3811 #include <stdlib.h>
3812 #include <stdarg.h>
3813 #include <string.h>
3814 #include <float.h>
3815
3816 int
3817 main ()
3818 {
3819
3820   ;
3821   return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825   ac_cv_header_stdc=yes
3826 else
3827   ac_cv_header_stdc=no
3828 fi
3829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3830
3831 if test $ac_cv_header_stdc = yes; then
3832   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h.  */
3835 #include <string.h>
3836
3837 _ACEOF
3838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3839   $EGREP "memchr" >/dev/null 2>&1; then :
3840
3841 else
3842   ac_cv_header_stdc=no
3843 fi
3844 rm -f conftest*
3845
3846 fi
3847
3848 if test $ac_cv_header_stdc = yes; then
3849   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h.  */
3852 #include <stdlib.h>
3853
3854 _ACEOF
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856   $EGREP "free" >/dev/null 2>&1; then :
3857
3858 else
3859   ac_cv_header_stdc=no
3860 fi
3861 rm -f conftest*
3862
3863 fi
3864
3865 if test $ac_cv_header_stdc = yes; then
3866   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3867   if test "$cross_compiling" = yes; then :
3868   :
3869 else
3870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h.  */
3872 #include <ctype.h>
3873 #include <stdlib.h>
3874 #if ((' ' & 0x0FF) == 0x020)
3875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3877 #else
3878 # define ISLOWER(c) \
3879                    (('a' <= (c) && (c) <= 'i') \
3880                      || ('j' <= (c) && (c) <= 'r') \
3881                      || ('s' <= (c) && (c) <= 'z'))
3882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3883 #endif
3884
3885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3886 int
3887 main ()
3888 {
3889   int i;
3890   for (i = 0; i < 256; i++)
3891     if (XOR (islower (i), ISLOWER (i))
3892         || toupper (i) != TOUPPER (i))
3893       return 2;
3894   return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_c_try_run "$LINENO"; then :
3898
3899 else
3900   ac_cv_header_stdc=no
3901 fi
3902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3903   conftest.$ac_objext conftest.beam conftest.$ac_ext
3904 fi
3905
3906 fi
3907 fi
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3909 $as_echo "$ac_cv_header_stdc" >&6; }
3910 if test $ac_cv_header_stdc = yes; then
3911
3912 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3913
3914 fi
3915
3916 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3917 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3918                   inttypes.h stdint.h unistd.h
3919 do :
3920   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3921 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3922 "
3923 eval as_val=\$$as_ac_Header
3924    if test "x$as_val" = x""yes; then :
3925   cat >>confdefs.h <<_ACEOF
3926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3927 _ACEOF
3928
3929 fi
3930
3931 done
3932
3933
3934
3935   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3936 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3937   MINIX=yes
3938 else
3939   MINIX=
3940 fi
3941
3942
3943   if test "$MINIX" = yes; then
3944
3945 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3946
3947
3948 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3949
3950
3951 $as_echo "#define _MINIX 1" >>confdefs.h
3952
3953   fi
3954
3955
3956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3957 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3958 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3959   $as_echo_n "(cached) " >&6
3960 else
3961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h.  */
3963
3964 #         define __EXTENSIONS__ 1
3965           $ac_includes_default
3966 int
3967 main ()
3968 {
3969
3970   ;
3971   return 0;
3972 }
3973 _ACEOF
3974 if ac_fn_c_try_compile "$LINENO"; then :
3975   ac_cv_safe_to_define___extensions__=yes
3976 else
3977   ac_cv_safe_to_define___extensions__=no
3978 fi
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3982 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3983   test $ac_cv_safe_to_define___extensions__ = yes &&
3984     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3985
3986   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3987
3988   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3989
3990   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3991
3992   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3993
3994
3995 if test -n "$ac_tool_prefix"; then
3996   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 $as_echo_n "checking for $ac_word... " >&6; }
4000 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   if test -n "$RANLIB"; then
4004   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009   IFS=$as_save_IFS
4010   test -z "$as_dir" && as_dir=.
4011     for ac_exec_ext in '' $ac_executable_extensions; do
4012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015     break 2
4016   fi
4017 done
4018   done
4019 IFS=$as_save_IFS
4020
4021 fi
4022 fi
4023 RANLIB=$ac_cv_prog_RANLIB
4024 if test -n "$RANLIB"; then
4025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4026 $as_echo "$RANLIB" >&6; }
4027 else
4028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4030 fi
4031
4032
4033 fi
4034 if test -z "$ac_cv_prog_RANLIB"; then
4035   ac_ct_RANLIB=$RANLIB
4036   # Extract the first word of "ranlib", so it can be a program name with args.
4037 set dummy ranlib; ac_word=$2
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4039 $as_echo_n "checking for $ac_word... " >&6; }
4040 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4041   $as_echo_n "(cached) " >&6
4042 else
4043   if test -n "$ac_ct_RANLIB"; then
4044   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4045 else
4046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049   IFS=$as_save_IFS
4050   test -z "$as_dir" && as_dir=.
4051     for ac_exec_ext in '' $ac_executable_extensions; do
4052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4053     ac_cv_prog_ac_ct_RANLIB="ranlib"
4054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4055     break 2
4056   fi
4057 done
4058   done
4059 IFS=$as_save_IFS
4060
4061 fi
4062 fi
4063 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4064 if test -n "$ac_ct_RANLIB"; then
4065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4066 $as_echo "$ac_ct_RANLIB" >&6; }
4067 else
4068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4070 fi
4071
4072   if test "x$ac_ct_RANLIB" = x; then
4073     RANLIB=":"
4074   else
4075     case $cross_compiling:$ac_tool_warned in
4076 yes:)
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079 ac_tool_warned=yes ;;
4080 esac
4081     RANLIB=$ac_ct_RANLIB
4082   fi
4083 else
4084   RANLIB="$ac_cv_prog_RANLIB"
4085 fi
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4096 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4097 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4098   $as_echo_n "(cached) " >&6
4099 else
4100   am_cv_prog_cc_stdc=no
4101 ac_save_CC="$CC"
4102 # Don't try gcc -ansi; that turns off useful extensions and
4103 # breaks some systems' header files.
4104 # AIX                   -qlanglvl=ansi
4105 # Ultrix and OSF/1      -std1
4106 # HP-UX 10.20 and later -Ae
4107 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4108 # SVR4                  -Xc -D__EXTENSIONS__
4109 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4110 do
4111   CC="$ac_save_CC $ac_arg"
4112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h.  */
4114 #include <stdarg.h>
4115 #include <stdio.h>
4116 #include <sys/types.h>
4117 #include <sys/stat.h>
4118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4119 struct buf { int x; };
4120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4121 static char *e (p, i)
4122      char **p;
4123      int i;
4124 {
4125   return p[i];
4126 }
4127 static char *f (char * (*g) (char **, int), char **p, ...)
4128 {
4129   char *s;
4130   va_list v;
4131   va_start (v,p);
4132   s = g (p, va_arg (v,int));
4133   va_end (v);
4134   return s;
4135 }
4136 int test (int i, double x);
4137 struct s1 {int (*f) (int a);};
4138 struct s2 {int (*f) (double a);};
4139 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4140 int argc;
4141 char **argv;
4142
4143 int
4144 main ()
4145 {
4146
4147 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4148
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 if ac_fn_c_try_compile "$LINENO"; then :
4154   am_cv_prog_cc_stdc="$ac_arg"; break
4155 fi
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 done
4158 CC="$ac_save_CC"
4159
4160 fi
4161
4162 if test -z "$am_cv_prog_cc_stdc"; then
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164 $as_echo "none needed" >&6; }
4165 else
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4167 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4168 fi
4169 case "x$am_cv_prog_cc_stdc" in
4170   x|xno) ;;
4171   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4172 esac
4173
4174
4175 ac_aux_dir=
4176 for ac_dir in .. "$srcdir"/..; do
4177   for ac_t in install-sh install.sh shtool; do
4178     if test -f "$ac_dir/$ac_t"; then
4179       ac_aux_dir=$ac_dir
4180       ac_install_sh="$ac_aux_dir/$ac_t -c"
4181       break 2
4182     fi
4183   done
4184 done
4185 if test -z "$ac_aux_dir"; then
4186   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4187 fi
4188
4189 # These three variables are undocumented and unsupported,
4190 # and are intended to be withdrawn in a future Autoconf release.
4191 # They can cause serious problems if a builder's source tree is in a directory
4192 # whose full name contains unusual characters.
4193 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4194 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4195 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4196
4197
4198 # Make sure we can run config.sub.
4199 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4200   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4201
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4203 $as_echo_n "checking build system type... " >&6; }
4204 if test "${ac_cv_build+set}" = set; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   ac_build_alias=$build_alias
4208 test "x$ac_build_alias" = x &&
4209   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4210 test "x$ac_build_alias" = x &&
4211   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4212 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4213   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4214
4215 fi
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4217 $as_echo "$ac_cv_build" >&6; }
4218 case $ac_cv_build in
4219 *-*-*) ;;
4220 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4221 esac
4222 build=$ac_cv_build
4223 ac_save_IFS=$IFS; IFS='-'
4224 set x $ac_cv_build
4225 shift
4226 build_cpu=$1
4227 build_vendor=$2
4228 shift; shift
4229 # Remember, the first character of IFS is used to create $*,
4230 # except with old shells:
4231 build_os=$*
4232 IFS=$ac_save_IFS
4233 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4234
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4237 $as_echo_n "checking host system type... " >&6; }
4238 if test "${ac_cv_host+set}" = set; then :
4239   $as_echo_n "(cached) " >&6
4240 else
4241   if test "x$host_alias" = x; then
4242   ac_cv_host=$ac_cv_build
4243 else
4244   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4245     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4246 fi
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4250 $as_echo "$ac_cv_host" >&6; }
4251 case $ac_cv_host in
4252 *-*-*) ;;
4253 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4254 esac
4255 host=$ac_cv_host
4256 ac_save_IFS=$IFS; IFS='-'
4257 set x $ac_cv_host
4258 shift
4259 host_cpu=$1
4260 host_vendor=$2
4261 shift; shift
4262 # Remember, the first character of IFS is used to create $*,
4263 # except with old shells:
4264 host_os=$*
4265 IFS=$ac_save_IFS
4266 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4267
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4270 $as_echo_n "checking target system type... " >&6; }
4271 if test "${ac_cv_target+set}" = set; then :
4272   $as_echo_n "(cached) " >&6
4273 else
4274   if test "x$target_alias" = x; then
4275   ac_cv_target=$ac_cv_host
4276 else
4277   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4278     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4279 fi
4280
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4283 $as_echo "$ac_cv_target" >&6; }
4284 case $ac_cv_target in
4285 *-*-*) ;;
4286 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4287 esac
4288 target=$ac_cv_target
4289 ac_save_IFS=$IFS; IFS='-'
4290 set x $ac_cv_target
4291 shift
4292 target_cpu=$1
4293 target_vendor=$2
4294 shift; shift
4295 # Remember, the first character of IFS is used to create $*,
4296 # except with old shells:
4297 target_os=$*
4298 IFS=$ac_save_IFS
4299 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4300
4301
4302 # The aliases save the names the user supplied, while $host etc.
4303 # will get canonicalized.
4304 test -n "$target_alias" &&
4305   test "$program_prefix$program_suffix$program_transform_name" = \
4306     NONENONEs,x,x, &&
4307   program_prefix=${target_alias}-
4308
4309
4310 # Dependency checking.
4311 rm -rf .tst 2>/dev/null
4312 mkdir .tst 2>/dev/null
4313 if test -d .tst; then
4314   am__leading_dot=.
4315 else
4316   am__leading_dot=_
4317 fi
4318 rmdir .tst 2>/dev/null
4319
4320 DEPDIR="${am__leading_dot}deps"
4321
4322 ac_config_commands="$ac_config_commands depdir"
4323
4324
4325 depcc="$CC"   am_compiler_list=
4326
4327 am_depcomp=$ac_aux_dir/depcomp
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4329 $as_echo_n "checking dependency style of $depcc... " >&6; }
4330 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   if test -f "$am_depcomp"; then
4334   # We make a subdir and do the tests there.  Otherwise we can end up
4335   # making bogus files that we don't know about and never remove.  For
4336   # instance it was reported that on HP-UX the gcc test will end up
4337   # making a dummy file named `D' -- because `-MD' means `put the output
4338   # in D'.
4339   mkdir conftest.dir
4340   # Copy depcomp to subdir because otherwise we won't find it if we're
4341   # using a relative directory.
4342   cp "$am_depcomp" conftest.dir
4343   cd conftest.dir
4344   # We will build objects and dependencies in a subdirectory because
4345   # it helps to detect inapplicable dependency modes.  For instance
4346   # both Tru64's cc and ICC support -MD to output dependencies as a
4347   # side effect of compilation, but ICC will put the dependencies in
4348   # the current directory while Tru64 will put them in the object
4349   # directory.
4350   mkdir sub
4351
4352   am_cv_CC_dependencies_compiler_type=none
4353   if test "$am_compiler_list" = ""; then
4354      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4355   fi
4356   for depmode in $am_compiler_list; do
4357     if test $depmode = none; then break; fi
4358
4359     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4360     # Setup a source with many dependencies, because some compilers
4361     # like to wrap large dependency lists on column 80 (with \), and
4362     # we should not choose a depcomp mode which is confused by this.
4363     #
4364     # We need to recreate these files for each test, as the compiler may
4365     # overwrite some of them when testing with obscure command lines.
4366     # This happens at least with the AIX C compiler.
4367     : > sub/conftest.c
4368     for i in 1 2 3 4 5 6; do
4369       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4370       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4371       # Solaris 8's {/usr,}/bin/sh.
4372       touch sub/conftst$i.h
4373     done
4374     echo "include sub/conftest.Po" > confmf
4375
4376     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377     # mode.  It turns out that the SunPro C++ compiler does not properly
4378     # handle `-M -o', and we need to detect this.
4379     depcmd="depmode=$depmode \
4380        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4381        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4382        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4383     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4384     if env $depcmd > conftest.err 2>&1 &&
4385        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4386        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4387        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4388       # icc doesn't choke on unknown options, it will just issue warnings
4389       # or remarks (even with -Werror).  So we grep stderr for any message
4390       # that says an option was ignored or not supported.
4391       # When given -MP, icc 7.0 and 7.1 complain thusly:
4392       #   icc: Command line warning: ignoring option '-M'; no argument required
4393       # The diagnosis changed in icc 8.0:
4394       #   icc: Command line remark: option '-MP' not supported
4395       if (grep 'ignoring option' conftest.err ||
4396           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4397         am_cv_CC_dependencies_compiler_type=$depmode
4398         $as_echo "$as_me:$LINENO: success" >&5
4399         break
4400       fi
4401     fi
4402     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4403     sed -e 's/^/| /' < conftest.err >&5
4404   done
4405
4406   cd ..
4407   rm -rf conftest.dir
4408 else
4409   am_cv_CC_dependencies_compiler_type=none
4410 fi
4411
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4414 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4415 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4416 then as_fn_error "no usable dependency style found" "$LINENO" 5
4417 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4418
4419 fi
4420
4421
4422 # Check for the 'make' the user wants to use.
4423 for ac_prog in make
4424 do
4425   # Extract the first word of "$ac_prog", so it can be a program name with args.
4426 set dummy $ac_prog; ac_word=$2
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4428 $as_echo_n "checking for $ac_word... " >&6; }
4429 if test "${ac_cv_prog_MAKE+set}" = set; then :
4430   $as_echo_n "(cached) " >&6
4431 else
4432   if test -n "$MAKE"; then
4433   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440     for ac_exec_ext in '' $ac_executable_extensions; do
4441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4442     ac_cv_prog_MAKE="$ac_prog"
4443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447   done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 MAKE=$ac_cv_prog_MAKE
4453 if test -n "$MAKE"; then
4454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4455 $as_echo "$MAKE" >&6; }
4456 else
4457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458 $as_echo "no" >&6; }
4459 fi
4460
4461
4462   test -n "$MAKE" && break
4463 done
4464
4465 MAKE_IS_GNU=
4466 case "`$MAKE --version 2>&1 | sed 1q`" in
4467   *GNU*)
4468     MAKE_IS_GNU=yes
4469     ;;
4470 esac
4471  if test "$MAKE_IS_GNU" = yes; then
4472   GMAKE_TRUE=
4473   GMAKE_FALSE='#'
4474 else
4475   GMAKE_TRUE='#'
4476   GMAKE_FALSE=
4477 fi
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4480 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4481 set x ${MAKE-make}
4482 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4483 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4484   $as_echo_n "(cached) " >&6
4485 else
4486   cat >conftest.make <<\_ACEOF
4487 SHELL = /bin/sh
4488 all:
4489         @echo '@@@%%%=$(MAKE)=@@@%%%'
4490 _ACEOF
4491 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4492 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4493   *@@@%%%=?*=@@@%%%*)
4494     eval ac_cv_prog_make_${ac_make}_set=yes;;
4495   *)
4496     eval ac_cv_prog_make_${ac_make}_set=no;;
4497 esac
4498 rm -f conftest.make
4499 fi
4500 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4502 $as_echo "yes" >&6; }
4503   SET_MAKE=
4504 else
4505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4506 $as_echo "no" >&6; }
4507   SET_MAKE="MAKE=${MAKE-make}"
4508 fi
4509
4510
4511
4512 CONFIG_OBS=
4513 CONFIG_DEPS=
4514 CONFIG_SRCS=
4515 ENABLE_CFLAGS=
4516
4517 CONFIG_ALL=
4518 CONFIG_CLEAN=
4519 CONFIG_INSTALL=
4520 CONFIG_UNINSTALL=
4521
4522 # If we haven't got the data from the intl directory,
4523 # assume NLS is disabled.
4524 USE_NLS=no
4525 LIBINTL=
4526 LIBINTL_DEP=
4527 INCINTL=
4528 XGETTEXT=
4529 GMSGFMT=
4530 POSUB=
4531
4532 if test -f  ../intl/config.intl; then
4533   .  ../intl/config.intl
4534 fi
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4536 $as_echo_n "checking whether NLS is requested... " >&6; }
4537 if test x"$USE_NLS" != xyes; then
4538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4539 $as_echo "no" >&6; }
4540 else
4541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4543
4544 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4545
4546
4547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4548 $as_echo_n "checking for catalogs to be installed... " >&6; }
4549   # Look for .po and .gmo files in the source directory.
4550   CATALOGS=
4551   XLINGUAS=
4552   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4553     # If there aren't any .gmo files the shell will give us the
4554     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4555     # weeded out.
4556     case "$cat" in *\**)
4557       continue;;
4558     esac
4559     # The quadruple backslash is collapsed to a double backslash
4560     # by the backticks, then collapsed again by the double quotes,
4561     # leaving us with one backslash in the sed expression (right
4562     # before the dot that mustn't act as a wildcard).
4563     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4564     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4565     # The user is allowed to set LINGUAS to a list of languages to
4566     # install catalogs for.  If it's empty that means "all of them."
4567     if test "x$LINGUAS" = x; then
4568       CATALOGS="$CATALOGS $cat"
4569       XLINGUAS="$XLINGUAS $lang"
4570     else
4571       case "$LINGUAS" in *$lang*)
4572         CATALOGS="$CATALOGS $cat"
4573         XLINGUAS="$XLINGUAS $lang"
4574         ;;
4575       esac
4576     fi
4577   done
4578   LINGUAS="$XLINGUAS"
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4580 $as_echo "$LINGUAS" >&6; }
4581
4582
4583     DATADIRNAME=share
4584
4585   INSTOBJEXT=.mo
4586
4587   GENCAT=gencat
4588
4589   CATOBJEXT=.gmo
4590
4591 fi
4592
4593 localedir='${datadir}/locale'
4594
4595
4596 if test x"$USE_NLS" = xyes; then
4597    CONFIG_ALL="$CONFIG_ALL all-po"
4598    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4599    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4600    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4601 fi
4602
4603
4604   GNULIB_MEMMEM=0;
4605   GNULIB_MEMPCPY=0;
4606   GNULIB_MEMRCHR=0;
4607   GNULIB_STPCPY=0;
4608   GNULIB_STPNCPY=0;
4609   GNULIB_STRCHRNUL=0;
4610   GNULIB_STRDUP=0;
4611   GNULIB_STRNDUP=0;
4612   GNULIB_STRNLEN=0;
4613   GNULIB_STRPBRK=0;
4614   GNULIB_STRSEP=0;
4615   GNULIB_STRSTR=0;
4616   GNULIB_STRCASESTR=0;
4617   GNULIB_STRTOK_R=0;
4618   GNULIB_MBSLEN=0;
4619   GNULIB_MBSNLEN=0;
4620   GNULIB_MBSCHR=0;
4621   GNULIB_MBSRCHR=0;
4622   GNULIB_MBSSTR=0;
4623   GNULIB_MBSCASECMP=0;
4624   GNULIB_MBSNCASECMP=0;
4625   GNULIB_MBSPCASECMP=0;
4626   GNULIB_MBSCASESTR=0;
4627   GNULIB_MBSCSPN=0;
4628   GNULIB_MBSPBRK=0;
4629   GNULIB_MBSSPN=0;
4630   GNULIB_MBSSEP=0;
4631   GNULIB_MBSTOK_R=0;
4632   GNULIB_STRERROR=0;
4633   GNULIB_STRSIGNAL=0;
4634     HAVE_DECL_MEMMEM=1;
4635   HAVE_MEMPCPY=1;
4636   HAVE_DECL_MEMRCHR=1;
4637   HAVE_STPCPY=1;
4638   HAVE_STPNCPY=1;
4639   HAVE_STRCHRNUL=1;
4640   HAVE_DECL_STRDUP=1;
4641   HAVE_STRNDUP=1;
4642   HAVE_DECL_STRNDUP=1;
4643   HAVE_DECL_STRNLEN=1;
4644   HAVE_STRPBRK=1;
4645   HAVE_STRSEP=1;
4646   HAVE_STRCASESTR=1;
4647   HAVE_DECL_STRTOK_R=1;
4648   HAVE_DECL_STRERROR=1;
4649   HAVE_DECL_STRSIGNAL=1;
4650   REPLACE_STRERROR=0;
4651   REPLACE_STRSIGNAL=0;
4652   REPLACE_MEMMEM=0;
4653   REPLACE_STRCASESTR=0;
4654   REPLACE_STRSTR=0;
4655
4656
4657       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
4658 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
4659   ac_have_decl=1
4660 else
4661   ac_have_decl=0
4662 fi
4663
4664 cat >>confdefs.h <<_ACEOF
4665 #define HAVE_DECL_MEMMEM $ac_have_decl
4666 _ACEOF
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680   for ac_func in memmem
4681 do :
4682   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
4683 if test "x$ac_cv_func_memmem" = x""yes; then :
4684   cat >>confdefs.h <<_ACEOF
4685 #define HAVE_MEMMEM 1
4686 _ACEOF
4687
4688 else
4689
4690     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4691
4692 fi
4693 done
4694
4695
4696
4697   :
4698
4699
4700
4701
4702
4703   if test $ac_cv_have_decl_memmem = no; then
4704     HAVE_DECL_MEMMEM=0
4705   fi
4706   :
4707
4708
4709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
4710 $as_echo_n "checking for long long int... " >&6; }
4711 if test "${ac_cv_type_long_long_int+set}" = set; then :
4712   $as_echo_n "(cached) " >&6
4713 else
4714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h.  */
4716
4717   /* For now, do not test the preprocessor; as of 2007 there are too many
4718          implementations with broken preprocessors.  Perhaps this can
4719          be revisited in 2012.  In the meantime, code should not expect
4720          #if to work with literals wider than 32 bits.  */
4721       /* Test literals.  */
4722       long long int ll = 9223372036854775807ll;
4723       long long int nll = -9223372036854775807LL;
4724       unsigned long long int ull = 18446744073709551615ULL;
4725       /* Test constant expressions.   */
4726       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4727                      ? 1 : -1)];
4728       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4729                      ? 1 : -1)];
4730       int i = 63;
4731 int
4732 main ()
4733 {
4734 /* Test availability of runtime routines for shift and division.  */
4735       long long int llmax = 9223372036854775807ll;
4736       unsigned long long int ullmax = 18446744073709551615ull;
4737       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4738               | (llmax / ll) | (llmax % ll)
4739               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4740               | (ullmax / ull) | (ullmax % ull));
4741   ;
4742   return 0;
4743 }
4744
4745 _ACEOF
4746 if ac_fn_c_try_link "$LINENO"; then :
4747                         if test "$cross_compiling" = yes; then :
4748   ac_cv_type_long_long_int=yes
4749 else
4750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4751 /* end confdefs.h.  */
4752 #include <limits.h>
4753                #ifndef LLONG_MAX
4754                # define HALF \
4755                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4756                # define LLONG_MAX (HALF - 1 + HALF)
4757                #endif
4758 int
4759 main ()
4760 {
4761 long long int n = 1;
4762                int i;
4763                for (i = 0; ; i++)
4764                  {
4765                    long long int m = n << i;
4766                    if (m >> i != n)
4767                      return 1;
4768                    if (LLONG_MAX / 2 < m)
4769                      break;
4770                  }
4771                return 0;
4772   ;
4773   return 0;
4774 }
4775 _ACEOF
4776 if ac_fn_c_try_run "$LINENO"; then :
4777   ac_cv_type_long_long_int=yes
4778 else
4779   ac_cv_type_long_long_int=no
4780 fi
4781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4782   conftest.$ac_objext conftest.beam conftest.$ac_ext
4783 fi
4784
4785 else
4786   ac_cv_type_long_long_int=no
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext \
4789     conftest$ac_exeext conftest.$ac_ext
4790 fi
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
4792 $as_echo "$ac_cv_type_long_long_int" >&6; }
4793   if test $ac_cv_type_long_long_int = yes; then
4794
4795 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
4796
4797   fi
4798
4799
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
4801 $as_echo_n "checking for unsigned long long int... " >&6; }
4802 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h.  */
4807
4808   /* For now, do not test the preprocessor; as of 2007 there are too many
4809          implementations with broken preprocessors.  Perhaps this can
4810          be revisited in 2012.  In the meantime, code should not expect
4811          #if to work with literals wider than 32 bits.  */
4812       /* Test literals.  */
4813       long long int ll = 9223372036854775807ll;
4814       long long int nll = -9223372036854775807LL;
4815       unsigned long long int ull = 18446744073709551615ULL;
4816       /* Test constant expressions.   */
4817       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4818                      ? 1 : -1)];
4819       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4820                      ? 1 : -1)];
4821       int i = 63;
4822 int
4823 main ()
4824 {
4825 /* Test availability of runtime routines for shift and division.  */
4826       long long int llmax = 9223372036854775807ll;
4827       unsigned long long int ullmax = 18446744073709551615ull;
4828       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4829               | (llmax / ll) | (llmax % ll)
4830               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4831               | (ullmax / ull) | (ullmax % ull));
4832   ;
4833   return 0;
4834 }
4835
4836 _ACEOF
4837 if ac_fn_c_try_link "$LINENO"; then :
4838   ac_cv_type_unsigned_long_long_int=yes
4839 else
4840   ac_cv_type_unsigned_long_long_int=no
4841 fi
4842 rm -f core conftest.err conftest.$ac_objext \
4843     conftest$ac_exeext conftest.$ac_ext
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
4846 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
4847   if test $ac_cv_type_unsigned_long_long_int = yes; then
4848
4849 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
4850
4851   fi
4852
4853
4854
4855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
4856 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
4857 if test "${gl_cv_have_include_next+set}" = set; then :
4858   $as_echo_n "(cached) " >&6
4859 else
4860   rm -rf conftestd1 conftestd2
4861      mkdir conftestd1 conftestd2
4862      cat <<EOF > conftestd1/conftest.h
4863 #define DEFINED_IN_CONFTESTD1
4864 #include_next <conftest.h>
4865 #ifdef DEFINED_IN_CONFTESTD2
4866 int foo;
4867 #else
4868 #error "include_next doesn't work"
4869 #endif
4870 EOF
4871      cat <<EOF > conftestd2/conftest.h
4872 #ifndef DEFINED_IN_CONFTESTD1
4873 #error "include_next test doesn't work"
4874 #endif
4875 #define DEFINED_IN_CONFTESTD2
4876 EOF
4877      save_CPPFLAGS="$CPPFLAGS"
4878      CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4879      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h.  */
4881 #include <conftest.h>
4882 _ACEOF
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884   gl_cv_have_include_next=yes
4885 else
4886   gl_cv_have_include_next=no
4887 fi
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4889      CPPFLAGS="$save_CPPFLAGS"
4890      rm -rf conftestd1 conftestd2
4891
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
4894 $as_echo "$gl_cv_have_include_next" >&6; }
4895   if test $gl_cv_have_include_next = yes; then
4896
4897
4898 $as_echo "#define HAVE_INCLUDE_NEXT 1" >>confdefs.h
4899
4900
4901     INCLUDE_NEXT=include_next
4902   else
4903     INCLUDE_NEXT=include
4904   fi
4905
4906
4907
4908
4909
4910
4911   for ac_header in $gl_header_list
4912 do :
4913   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4914 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4915 eval as_val=\$$as_ac_Header
4916    if test "x$as_val" = x""yes; then :
4917   cat >>confdefs.h <<_ACEOF
4918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4919 _ACEOF
4920
4921 fi
4922
4923 done
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
4935 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
4936 if test "${ac_cv_c_restrict+set}" = set; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   ac_cv_c_restrict=no
4940    # The order here caters to the fact that C++ does not require restrict.
4941    for ac_kw in __restrict __restrict__ _Restrict restrict; do
4942      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4943 /* end confdefs.h.  */
4944 typedef int * int_ptr;
4945         int foo (int_ptr $ac_kw ip) {
4946         return ip[0];
4947        }
4948 int
4949 main ()
4950 {
4951 int s[1];
4952         int * $ac_kw t = s;
4953         t[0] = 0;
4954         return foo(t)
4955   ;
4956   return 0;
4957 }
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"; then :
4960   ac_cv_c_restrict=$ac_kw
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963      test "$ac_cv_c_restrict" != no && break
4964    done
4965
4966 fi
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
4968 $as_echo "$ac_cv_c_restrict" >&6; }
4969
4970  case $ac_cv_c_restrict in
4971    restrict) ;;
4972    no) $as_echo "#define restrict /**/" >>confdefs.h
4973  ;;
4974    *)  cat >>confdefs.h <<_ACEOF
4975 #define restrict $ac_cv_c_restrict
4976 _ACEOF
4977  ;;
4978  esac
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991   :
4992
4993
4994
4995
4996
4997
4998
4999      if test $gl_cv_have_include_next = yes; then
5000        gl_cv_next_string_h='<'string.h'>'
5001      else
5002        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5003 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5004 if test "${gl_cv_next_string_h+set}" = set; then :
5005   $as_echo_n "(cached) " >&6
5006 else
5007
5008           if test $ac_cv_header_string_h = yes; then
5009             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h.  */
5011 #include <string.h>
5012
5013 _ACEOF
5014                                     gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5015                sed -n '\#/string.h#{
5016                  s#.*"\(.*/string.h\)".*#\1#
5017                  s#^/[^/]#//&#
5018                  p
5019                  q
5020                }'`'"'
5021           else
5022             gl_cv_next_string_h='<'string.h'>'
5023           fi
5024
5025 fi
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5027 $as_echo "$gl_cv_next_string_h" >&6; }
5028      fi
5029      NEXT_STRING_H=$gl_cv_next_string_h
5030
5031
5032
5033
5034
5035   GNULIB_WCWIDTH=0;
5036     HAVE_DECL_WCWIDTH=1;
5037   REPLACE_WCWIDTH=0;
5038   WCHAR_H=
5039
5040
5041
5042    if false; then
5043   GL_COND_LIBTOOL_TRUE=
5044   GL_COND_LIBTOOL_FALSE='#'
5045 else
5046   GL_COND_LIBTOOL_TRUE='#'
5047   GL_COND_LIBTOOL_FALSE=
5048 fi
5049
5050   gl_cond_libtool=false
5051   gl_libdeps=
5052   gl_ltlibdeps=
5053
5054
5055
5056   gl_source_base='gnulib'
5057
5058
5059
5060
5061
5062
5063
5064
5065   for ac_func in memchr
5066 do :
5067   ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr"
5068 if test "x$ac_cv_func_memchr" = x""yes; then :
5069   cat >>confdefs.h <<_ACEOF
5070 #define HAVE_MEMCHR 1
5071 _ACEOF
5072
5073 else
5074
5075     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5076
5077 fi
5078 done
5079
5080
5081   if test $ac_cv_func_memchr = no; then
5082
5083   for ac_header in bp-sym.h
5084 do :
5085   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5086 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5087   cat >>confdefs.h <<_ACEOF
5088 #define HAVE_BP_SYM_H 1
5089 _ACEOF
5090
5091 fi
5092
5093 done
5094
5095
5096   fi
5097
5098
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5100 $as_echo_n "checking for working memcmp... " >&6; }
5101 if test "${ac_cv_func_memcmp_working+set}" = set; then :
5102   $as_echo_n "(cached) " >&6
5103 else
5104   if test "$cross_compiling" = yes; then :
5105   ac_cv_func_memcmp_working=no
5106 else
5107   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h.  */
5109 $ac_includes_default
5110 int
5111 main ()
5112 {
5113
5114   /* Some versions of memcmp are not 8-bit clean.  */
5115   char c0 = '\100', c1 = '\200', c2 = '\201';
5116   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5117     return 1;
5118
5119   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5120      or more and with at least one buffer not starting on a 4-byte boundary.
5121      William Lewis provided this test program.   */
5122   {
5123     char foo[21];
5124     char bar[21];
5125     int i;
5126     for (i = 0; i < 4; i++)
5127       {
5128         char *a = foo + i;
5129         char *b = bar + i;
5130         strcpy (a, "--------01111111");
5131         strcpy (b, "--------10000000");
5132         if (memcmp (a, b, 16) >= 0)
5133           return 1;
5134       }
5135     return 0;
5136   }
5137
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 if ac_fn_c_try_run "$LINENO"; then :
5143   ac_cv_func_memcmp_working=yes
5144 else
5145   ac_cv_func_memcmp_working=no
5146 fi
5147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5148   conftest.$ac_objext conftest.beam conftest.$ac_ext
5149 fi
5150
5151 fi
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5153 $as_echo "$ac_cv_func_memcmp_working" >&6; }
5154 test $ac_cv_func_memcmp_working = no &&
5155
5156
5157
5158
5159
5160
5161   gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5162
5163
5164     if test $ac_cv_func_memcmp_working = no; then
5165
5166 $as_echo "#define memcmp rpl_memcmp" >>confdefs.h
5167
5168     :
5169   fi
5170
5171
5172
5173   if test $ac_cv_have_decl_memmem = yes; then
5174     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5175 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5176 if test "${gl_cv_func_memmem_works+set}" = set; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179   if test "$cross_compiling" = yes; then :
5180                  gl_cv_func_memmem_works="guessing no"
5181 else
5182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h.  */
5184
5185 #include <string.h> /* for memmem */
5186 #include <stdlib.h> /* for malloc */
5187 #include <unistd.h> /* for alarm */
5188
5189 int
5190 main ()
5191 {
5192 size_t m = 1000000;
5193     char *haystack = (char *) malloc (2 * m + 1);
5194     char *needle = (char *) malloc (m + 1);
5195     void *result = 0;
5196     /* Failure to compile this test due to missing alarm is okay,
5197        since all such platforms (mingw) also lack memmem.  */
5198     alarm (5);
5199     /* Check for quadratic performance.  */
5200     if (haystack && needle)
5201       {
5202         memset (haystack, 'A', 2 * m);
5203         haystack[2 * m] = 'B';
5204         memset (needle, 'A', m);
5205         needle[m] = 'B';
5206         result = memmem (haystack, 2 * m + 1, needle, m + 1);
5207       }
5208     /* Check for empty needle behavior.  */
5209     return !result || !memmem ("a", 1, 0, 0);
5210   ;
5211   return 0;
5212 }
5213 _ACEOF
5214 if ac_fn_c_try_run "$LINENO"; then :
5215   gl_cv_func_memmem_works=yes
5216 else
5217   gl_cv_func_memmem_works=no
5218 fi
5219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5220   conftest.$ac_objext conftest.beam conftest.$ac_ext
5221 fi
5222
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
5225 $as_echo "$gl_cv_func_memmem_works" >&6; }
5226     if test "$gl_cv_func_memmem_works" != yes; then
5227       REPLACE_MEMMEM=1
5228
5229
5230
5231
5232
5233
5234
5235   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5236
5237     fi
5238   fi
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251   for ac_func in memmem
5252 do :
5253   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5254 if test "x$ac_cv_func_memmem" = x""yes; then :
5255   cat >>confdefs.h <<_ACEOF
5256 #define HAVE_MEMMEM 1
5257 _ACEOF
5258
5259 else
5260
5261     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5262
5263 fi
5264 done
5265
5266
5267
5268   :
5269
5270
5271
5272
5273
5274   if test $ac_cv_have_decl_memmem = no; then
5275     HAVE_DECL_MEMMEM=0
5276   fi
5277   :
5278
5279
5280
5281   GNULIB_MEMMEM=1
5282
5283
5284
5285
5286   if test $ac_cv_type_long_long_int = yes; then
5287     HAVE_LONG_LONG_INT=1
5288   else
5289     HAVE_LONG_LONG_INT=0
5290   fi
5291
5292
5293   if test $ac_cv_type_unsigned_long_long_int = yes; then
5294     HAVE_UNSIGNED_LONG_LONG_INT=1
5295   else
5296     HAVE_UNSIGNED_LONG_LONG_INT=0
5297   fi
5298
5299
5300       if test $ac_cv_header_inttypes_h = yes; then
5301     HAVE_INTTYPES_H=1
5302   else
5303     HAVE_INTTYPES_H=0
5304   fi
5305
5306
5307       if test $ac_cv_header_sys_types_h = yes; then
5308     HAVE_SYS_TYPES_H=1
5309   else
5310     HAVE_SYS_TYPES_H=0
5311   fi
5312
5313
5314
5315
5316
5317   :
5318
5319
5320
5321
5322
5323
5324
5325      if test $gl_cv_have_include_next = yes; then
5326        gl_cv_next_stdint_h='<'stdint.h'>'
5327      else
5328        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5329 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5330 if test "${gl_cv_next_stdint_h+set}" = set; then :
5331   $as_echo_n "(cached) " >&6
5332 else
5333
5334           if test $ac_cv_header_stdint_h = yes; then
5335             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h.  */
5337 #include <stdint.h>
5338
5339 _ACEOF
5340                                     gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5341                sed -n '\#/stdint.h#{
5342                  s#.*"\(.*/stdint.h\)".*#\1#
5343                  s#^/[^/]#//&#
5344                  p
5345                  q
5346                }'`'"'
5347           else
5348             gl_cv_next_stdint_h='<'stdint.h'>'
5349           fi
5350
5351 fi
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5353 $as_echo "$gl_cv_next_stdint_h" >&6; }
5354      fi
5355      NEXT_STDINT_H=$gl_cv_next_stdint_h
5356
5357
5358
5359   if test $ac_cv_header_stdint_h = yes; then
5360     HAVE_STDINT_H=1
5361   else
5362     HAVE_STDINT_H=0
5363   fi
5364
5365
5366     if test $ac_cv_header_stdint_h = yes; then
5367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5368 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5369 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5370   $as_echo_n "(cached) " >&6
5371 else
5372   gl_cv_header_working_stdint_h=no
5373        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h.  */
5375
5376
5377 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5378 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5379 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5380 #include <stdint.h>
5381 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
5382 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5383 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5384 #endif
5385
5386
5387   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5388      included before <wchar.h>.  */
5389   #include <stddef.h>
5390   #include <signal.h>
5391   #if HAVE_WCHAR_H
5392   # include <stdio.h>
5393   # include <time.h>
5394   # include <wchar.h>
5395   #endif
5396
5397
5398 #ifdef INT8_MAX
5399 int8_t a1 = INT8_MAX;
5400 int8_t a1min = INT8_MIN;
5401 #endif
5402 #ifdef INT16_MAX
5403 int16_t a2 = INT16_MAX;
5404 int16_t a2min = INT16_MIN;
5405 #endif
5406 #ifdef INT32_MAX
5407 int32_t a3 = INT32_MAX;
5408 int32_t a3min = INT32_MIN;
5409 #endif
5410 #ifdef INT64_MAX
5411 int64_t a4 = INT64_MAX;
5412 int64_t a4min = INT64_MIN;
5413 #endif
5414 #ifdef UINT8_MAX
5415 uint8_t b1 = UINT8_MAX;
5416 #else
5417 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5418 #endif
5419 #ifdef UINT16_MAX
5420 uint16_t b2 = UINT16_MAX;
5421 #endif
5422 #ifdef UINT32_MAX
5423 uint32_t b3 = UINT32_MAX;
5424 #endif
5425 #ifdef UINT64_MAX
5426 uint64_t b4 = UINT64_MAX;
5427 #endif
5428 int_least8_t c1 = INT8_C (0x7f);
5429 int_least8_t c1max = INT_LEAST8_MAX;
5430 int_least8_t c1min = INT_LEAST8_MIN;
5431 int_least16_t c2 = INT16_C (0x7fff);
5432 int_least16_t c2max = INT_LEAST16_MAX;
5433 int_least16_t c2min = INT_LEAST16_MIN;
5434 int_least32_t c3 = INT32_C (0x7fffffff);
5435 int_least32_t c3max = INT_LEAST32_MAX;
5436 int_least32_t c3min = INT_LEAST32_MIN;
5437 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5438 int_least64_t c4max = INT_LEAST64_MAX;
5439 int_least64_t c4min = INT_LEAST64_MIN;
5440 uint_least8_t d1 = UINT8_C (0xff);
5441 uint_least8_t d1max = UINT_LEAST8_MAX;
5442 uint_least16_t d2 = UINT16_C (0xffff);
5443 uint_least16_t d2max = UINT_LEAST16_MAX;
5444 uint_least32_t d3 = UINT32_C (0xffffffff);
5445 uint_least32_t d3max = UINT_LEAST32_MAX;
5446 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5447 uint_least64_t d4max = UINT_LEAST64_MAX;
5448 int_fast8_t e1 = INT_FAST8_MAX;
5449 int_fast8_t e1min = INT_FAST8_MIN;
5450 int_fast16_t e2 = INT_FAST16_MAX;
5451 int_fast16_t e2min = INT_FAST16_MIN;
5452 int_fast32_t e3 = INT_FAST32_MAX;
5453 int_fast32_t e3min = INT_FAST32_MIN;
5454 int_fast64_t e4 = INT_FAST64_MAX;
5455 int_fast64_t e4min = INT_FAST64_MIN;
5456 uint_fast8_t f1 = UINT_FAST8_MAX;
5457 uint_fast16_t f2 = UINT_FAST16_MAX;
5458 uint_fast32_t f3 = UINT_FAST32_MAX;
5459 uint_fast64_t f4 = UINT_FAST64_MAX;
5460 #ifdef INTPTR_MAX
5461 intptr_t g = INTPTR_MAX;
5462 intptr_t gmin = INTPTR_MIN;
5463 #endif
5464 #ifdef UINTPTR_MAX
5465 uintptr_t h = UINTPTR_MAX;
5466 #endif
5467 intmax_t i = INTMAX_MAX;
5468 uintmax_t j = UINTMAX_MAX;
5469
5470 #include <limits.h> /* for CHAR_BIT */
5471 #define TYPE_MINIMUM(t) \
5472   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5473 #define TYPE_MAXIMUM(t) \
5474   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5475 struct s {
5476   int check_PTRDIFF:
5477       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5478       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5479       ? 1 : -1;
5480   /* Detect bug in FreeBSD 6.0 / ia64.  */
5481   int check_SIG_ATOMIC:
5482       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5483       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5484       ? 1 : -1;
5485   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5486   int check_WCHAR:
5487       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5488       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5489       ? 1 : -1;
5490   /* Detect bug in mingw.  */
5491   int check_WINT:
5492       WINT_MIN == TYPE_MINIMUM (wint_t)
5493       && WINT_MAX == TYPE_MAXIMUM (wint_t)
5494       ? 1 : -1;
5495
5496   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
5497   int check_UINT8_C:
5498         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5499   int check_UINT16_C:
5500         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5501
5502   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
5503 #ifdef UINT8_MAX
5504   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5505 #endif
5506 #ifdef UINT16_MAX
5507   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5508 #endif
5509 #ifdef UINT32_MAX
5510   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5511 #endif
5512 #ifdef UINT64_MAX
5513   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5514 #endif
5515   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5516   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5517   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5518   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5519   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5520   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5521   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5522   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5523   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5524   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5525   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5526 };
5527
5528 int
5529 main ()
5530 {
5531
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537   gl_cv_header_working_stdint_h=yes
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5542 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5543   fi
5544   if test "$gl_cv_header_working_stdint_h" = yes; then
5545     STDINT_H=
5546   else
5547             for ac_header in sys/inttypes.h sys/bitypes.h
5548 do :
5549   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5550 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5551 eval as_val=\$$as_ac_Header
5552    if test "x$as_val" = x""yes; then :
5553   cat >>confdefs.h <<_ACEOF
5554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5555 _ACEOF
5556
5557 fi
5558
5559 done
5560
5561     if test $ac_cv_header_sys_inttypes_h = yes; then
5562       HAVE_SYS_INTTYPES_H=1
5563     else
5564       HAVE_SYS_INTTYPES_H=0
5565     fi
5566
5567     if test $ac_cv_header_sys_bitypes_h = yes; then
5568       HAVE_SYS_BITYPES_H=1
5569     else
5570       HAVE_SYS_BITYPES_H=0
5571     fi
5572
5573
5574
5575   :
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5586     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5587 $as_echo_n "checking for bit size of $gltype... " >&6; }
5588 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
5592   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5593      included before <wchar.h>.  */
5594   #include <stddef.h>
5595   #include <signal.h>
5596   #if HAVE_WCHAR_H
5597   # include <stdio.h>
5598   # include <time.h>
5599   # include <wchar.h>
5600   #endif
5601
5602 #include <limits.h>"; then :
5603
5604 else
5605   result=unknown
5606 fi
5607
5608        eval gl_cv_bitsizeof_${gltype}=\$result
5609
5610 fi
5611 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5612                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5613 $as_echo "$ac_res" >&6; }
5614     eval result=\$gl_cv_bitsizeof_${gltype}
5615     if test $result = unknown; then
5616                                                 result=0
5617     fi
5618     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5619     cat >>confdefs.h <<_ACEOF
5620 #define BITSIZEOF_${GLTYPE} $result
5621 _ACEOF
5622
5623     eval BITSIZEOF_${GLTYPE}=\$result
5624   done
5625
5626
5627
5628
5629   for gltype in sig_atomic_t wchar_t wint_t ; do
5630     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
5631 $as_echo_n "checking whether $gltype is signed... " >&6; }
5632 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636 /* end confdefs.h.  */
5637
5638   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5639      included before <wchar.h>.  */
5640   #include <stddef.h>
5641   #include <signal.h>
5642   #if HAVE_WCHAR_H
5643   # include <stdio.h>
5644   # include <time.h>
5645   # include <wchar.h>
5646   #endif
5647
5648             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
5649 int
5650 main ()
5651 {
5652
5653   ;
5654   return 0;
5655 }
5656 _ACEOF
5657 if ac_fn_c_try_compile "$LINENO"; then :
5658   result=yes
5659 else
5660   result=no
5661 fi
5662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5663        eval gl_cv_type_${gltype}_signed=\$result
5664
5665 fi
5666 eval ac_res=\$gl_cv_type_${gltype}_signed
5667                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5668 $as_echo "$ac_res" >&6; }
5669     eval result=\$gl_cv_type_${gltype}_signed
5670     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5671     if test "$result" = yes; then
5672       cat >>confdefs.h <<_ACEOF
5673 #define HAVE_SIGNED_${GLTYPE} 1
5674 _ACEOF
5675
5676       eval HAVE_SIGNED_${GLTYPE}=1
5677     else
5678       eval HAVE_SIGNED_${GLTYPE}=0
5679     fi
5680   done
5681
5682
5683   gl_cv_type_ptrdiff_t_signed=yes
5684   gl_cv_type_size_t_signed=no
5685
5686
5687   for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
5689 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
5690 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693   eval gl_cv_type_${gltype}_suffix=no
5694        eval result=\$gl_cv_type_${gltype}_signed
5695        if test "$result" = yes; then
5696          glsufu=
5697        else
5698          glsufu=u
5699        fi
5700        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
5701          case $glsuf in
5702            '')  gltype1='int';;
5703            l)   gltype1='long int';;
5704            ll)  gltype1='long long int';;
5705            i64) gltype1='__int64';;
5706            u)   gltype1='unsigned int';;
5707            ul)  gltype1='unsigned long int';;
5708            ull) gltype1='unsigned long long int';;
5709            ui64)gltype1='unsigned __int64';;
5710          esac
5711          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h.  */
5713
5714   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5715      included before <wchar.h>.  */
5716   #include <stddef.h>
5717   #include <signal.h>
5718   #if HAVE_WCHAR_H
5719   # include <stdio.h>
5720   # include <time.h>
5721   # include <wchar.h>
5722   #endif
5723
5724               extern $gltype foo;
5725               extern $gltype1 foo;
5726 int
5727 main ()
5728 {
5729
5730   ;
5731   return 0;
5732 }
5733 _ACEOF
5734 if ac_fn_c_try_compile "$LINENO"; then :
5735   eval gl_cv_type_${gltype}_suffix=\$glsuf
5736 fi
5737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5738          eval result=\$gl_cv_type_${gltype}_suffix
5739          test "$result" != no && break
5740        done
5741 fi
5742 eval ac_res=\$gl_cv_type_${gltype}_suffix
5743                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5744 $as_echo "$ac_res" >&6; }
5745     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5746     eval result=\$gl_cv_type_${gltype}_suffix
5747     test "$result" = no && result=
5748     eval ${GLTYPE}_SUFFIX=\$result
5749     cat >>confdefs.h <<_ACEOF
5750 #define ${GLTYPE}_SUFFIX $result
5751 _ACEOF
5752
5753   done
5754
5755
5756
5757     STDINT_H=stdint.h
5758   fi
5759
5760
5761
5762
5763
5764
5765
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> is standalone" >&5
5767 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
5768 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then :
5769   $as_echo_n "(cached) " >&6
5770 else
5771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h.  */
5773 #include <wchar.h>
5774 wchar_t w;
5775 _ACEOF
5776 if ac_fn_c_try_compile "$LINENO"; then :
5777   gl_cv_header_wchar_h_standalone=yes
5778 else
5779   gl_cv_header_wchar_h_standalone=no
5780 fi
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5782 fi
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_standalone" >&5
5784 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
5785   if test $gl_cv_header_wchar_h_standalone != yes; then
5786     WCHAR_H=wchar.h
5787   fi
5788
5789
5790   :
5791
5792
5793
5794
5795
5796   if test $ac_cv_header_wchar_h = yes; then
5797     HAVE_WCHAR_H=1
5798   else
5799     HAVE_WCHAR_H=0
5800   fi
5801
5802
5803
5804
5805   :
5806
5807
5808
5809
5810
5811
5812
5813      if test $gl_cv_have_include_next = yes; then
5814        gl_cv_next_wchar_h='<'wchar.h'>'
5815      else
5816        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
5817 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
5818 if test "${gl_cv_next_wchar_h+set}" = set; then :
5819   $as_echo_n "(cached) " >&6
5820 else
5821
5822           if test $ac_cv_header_wchar_h = yes; then
5823             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824 /* end confdefs.h.  */
5825 #include <wchar.h>
5826
5827 _ACEOF
5828                                     gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5829                sed -n '\#/wchar.h#{
5830                  s#.*"\(.*/wchar.h\)".*#\1#
5831                  s#^/[^/]#//&#
5832                  p
5833                  q
5834                }'`'"'
5835           else
5836             gl_cv_next_wchar_h='<'wchar.h'>'
5837           fi
5838
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
5841 $as_echo "$gl_cv_next_wchar_h" >&6; }
5842      fi
5843      NEXT_WCHAR_H=$gl_cv_next_wchar_h
5844
5845
5846
5847
5848
5849
5850
5851
5852   gltests_libdeps=
5853   gltests_ltlibdeps=
5854
5855
5856
5857   gl_source_base='tests'
5858
5859
5860
5861
5862   LIBGNU_LIBDEPS="$gl_libdeps"
5863
5864   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
5865
5866
5867
5868 # For Makefile dependencies.
5869 GNULIB_STDINT_H=
5870 if test x"$STDINT_H" != x; then
5871   GNULIB_STDINT_H=gnulib/$STDINT_H
5872 fi
5873
5874
5875 PACKAGE=gdb
5876
5877 cat >>confdefs.h <<_ACEOF
5878 #define PACKAGE "$PACKAGE"
5879 _ACEOF
5880
5881
5882
5883 # GDB does not use automake, but gnulib does.  This line lets us
5884 # generate its Makefile.in.
5885 am__api_version='1.11'
5886
5887 # Find a good install program.  We prefer a C program (faster),
5888 # so one script is as good as another.  But avoid the broken or
5889 # incompatible versions:
5890 # SysV /etc/install, /usr/sbin/install
5891 # SunOS /usr/etc/install
5892 # IRIX /sbin/install
5893 # AIX /bin/install
5894 # AmigaOS /C/install, which installs bootblocks on floppy discs
5895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5898 # OS/2's system install, which has a completely different semantic
5899 # ./install, which can be erroneously created by make from ./install.sh.
5900 # Reject install programs that cannot install multiple files.
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5902 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5903 if test -z "$INSTALL"; then
5904 if test "${ac_cv_path_install+set}" = set; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912     # Account for people who put trailing slashes in PATH elements.
5913 case $as_dir/ in #((
5914   ./ | .// | /[cC]/* | \
5915   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5916   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5917   /usr/ucb/* ) ;;
5918   *)
5919     # OSF1 and SCO ODT 3.0 have their own names for install.
5920     # Don't use installbsd from OSF since it installs stuff as root
5921     # by default.
5922     for ac_prog in ginstall scoinst install; do
5923       for ac_exec_ext in '' $ac_executable_extensions; do
5924         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5925           if test $ac_prog = install &&
5926             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5927             # AIX install.  It has an incompatible calling convention.
5928             :
5929           elif test $ac_prog = install &&
5930             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5931             # program-specific install script used by HP pwplus--don't use.
5932             :
5933           else
5934             rm -rf conftest.one conftest.two conftest.dir
5935             echo one > conftest.one
5936             echo two > conftest.two
5937             mkdir conftest.dir
5938             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5939               test -s conftest.one && test -s conftest.two &&
5940               test -s conftest.dir/conftest.one &&
5941               test -s conftest.dir/conftest.two
5942             then
5943               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5944               break 3
5945             fi
5946           fi
5947         fi
5948       done
5949     done
5950     ;;
5951 esac
5952
5953   done
5954 IFS=$as_save_IFS
5955
5956 rm -rf conftest.one conftest.two conftest.dir
5957
5958 fi
5959   if test "${ac_cv_path_install+set}" = set; then
5960     INSTALL=$ac_cv_path_install
5961   else
5962     # As a last resort, use the slow shell script.  Don't cache a
5963     # value for INSTALL within a source directory, because that will
5964     # break other packages using the cache if that directory is
5965     # removed, or if the value is a relative name.
5966     INSTALL=$ac_install_sh
5967   fi
5968 fi
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5970 $as_echo "$INSTALL" >&6; }
5971
5972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5973 # It thinks the first close brace ends the variable substitution.
5974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5975
5976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5977
5978 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5979
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5981 $as_echo_n "checking whether build environment is sane... " >&6; }
5982 # Just in case
5983 sleep 1
5984 echo timestamp > conftest.file
5985 # Reject unsafe characters in $srcdir or the absolute working directory
5986 # name.  Accept space and tab only in the latter.
5987 am_lf='
5988 '
5989 case `pwd` in
5990   *[\\\"\#\$\&\'\`$am_lf]*)
5991     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
5992 esac
5993 case $srcdir in
5994   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
5995     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
5996 esac
5997
5998 # Do `set' in a subshell so we don't clobber the current shell's
5999 # arguments.  Must try -L first in case configure is actually a
6000 # symlink; some systems play weird games with the mod time of symlinks
6001 # (eg FreeBSD returns the mod time of the symlink's containing
6002 # directory).
6003 if (
6004    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
6005    if test "$*" = "X"; then
6006       # -L didn't work.
6007       set X `ls -t "$srcdir/configure" conftest.file`
6008    fi
6009    rm -f conftest.file
6010    if test "$*" != "X $srcdir/configure conftest.file" \
6011       && test "$*" != "X conftest.file $srcdir/configure"; then
6012
6013       # If neither matched, then we have a broken ls.  This can happen
6014       # if, for instance, CONFIG_SHELL is bash and it inherits a
6015       # broken ls alias from the environment.  This has actually
6016       # happened.  Such a system could not be considered "sane".
6017       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
6018 alias in your environment" "$LINENO" 5
6019    fi
6020
6021    test "$2" = conftest.file
6022    )
6023 then
6024    # Ok.
6025    :
6026 else
6027    as_fn_error "newly created file is older than distributed files!
6028 Check your system clock" "$LINENO" 5
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6031 $as_echo "yes" >&6; }
6032 test "$program_prefix" != NONE &&
6033   program_transform_name="s&^&$program_prefix&;$program_transform_name"
6034 # Use a double $ so make ignores it.
6035 test "$program_suffix" != NONE &&
6036   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6037 # Double any \ or $.
6038 # By default was `s,x,x', remove it if useless.
6039 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6040 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
6041
6042 # expand $ac_aux_dir to an absolute path
6043 am_aux_dir=`cd $ac_aux_dir && pwd`
6044
6045 if test x"${MISSING+set}" != xset; then
6046   case $am_aux_dir in
6047   *\ * | *\     *)
6048     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
6049   *)
6050     MISSING="\${SHELL} $am_aux_dir/missing" ;;
6051   esac
6052 fi
6053 # Use eval to expand $SHELL
6054 if eval "$MISSING --run true"; then
6055   am_missing_run="$MISSING --run "
6056 else
6057   am_missing_run=
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
6059 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6060 fi
6061
6062 if test x"${install_sh}" != xset; then
6063   case $am_aux_dir in
6064   *\ * | *\     *)
6065     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6066   *)
6067     install_sh="\${SHELL} $am_aux_dir/install-sh"
6068   esac
6069 fi
6070
6071 # Installed binaries are usually stripped using `strip' when the user
6072 # run `make install-strip'.  However `strip' might not be the right
6073 # tool to use in cross-compilation environments, therefore Automake
6074 # will honor the `STRIP' environment variable to overrule this program.
6075 if test "$cross_compiling" != no; then
6076   if test -n "$ac_tool_prefix"; then
6077   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6078 set dummy ${ac_tool_prefix}strip; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_STRIP+set}" = set; then :
6082   $as_echo_n "(cached) " >&6
6083 else
6084   if test -n "$STRIP"; then
6085   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6089 do
6090   IFS=$as_save_IFS
6091   test -z "$as_dir" && as_dir=.
6092     for ac_exec_ext in '' $ac_executable_extensions; do
6093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096     break 2
6097   fi
6098 done
6099   done
6100 IFS=$as_save_IFS
6101
6102 fi
6103 fi
6104 STRIP=$ac_cv_prog_STRIP
6105 if test -n "$STRIP"; then
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6107 $as_echo "$STRIP" >&6; }
6108 else
6109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6111 fi
6112
6113
6114 fi
6115 if test -z "$ac_cv_prog_STRIP"; then
6116   ac_ct_STRIP=$STRIP
6117   # Extract the first word of "strip", so it can be a program name with args.
6118 set dummy strip; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6122   $as_echo_n "(cached) " >&6
6123 else
6124   if test -n "$ac_ct_STRIP"; then
6125   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130   IFS=$as_save_IFS
6131   test -z "$as_dir" && as_dir=.
6132     for ac_exec_ext in '' $ac_executable_extensions; do
6133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134     ac_cv_prog_ac_ct_STRIP="strip"
6135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136     break 2
6137   fi
6138 done
6139   done
6140 IFS=$as_save_IFS
6141
6142 fi
6143 fi
6144 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6145 if test -n "$ac_ct_STRIP"; then
6146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6147 $as_echo "$ac_ct_STRIP" >&6; }
6148 else
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6151 fi
6152
6153   if test "x$ac_ct_STRIP" = x; then
6154     STRIP=":"
6155   else
6156     case $cross_compiling:$ac_tool_warned in
6157 yes:)
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned=yes ;;
6161 esac
6162     STRIP=$ac_ct_STRIP
6163   fi
6164 else
6165   STRIP="$ac_cv_prog_STRIP"
6166 fi
6167
6168 fi
6169 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6170
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6172 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6173 if test -z "$MKDIR_P"; then
6174   if test "${ac_cv_path_mkdir+set}" = set; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6179 do
6180   IFS=$as_save_IFS
6181   test -z "$as_dir" && as_dir=.
6182     for ac_prog in mkdir gmkdir; do
6183          for ac_exec_ext in '' $ac_executable_extensions; do
6184            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
6185            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6186              'mkdir (GNU coreutils) '* | \
6187              'mkdir (coreutils) '* | \
6188              'mkdir (fileutils) '4.1*)
6189                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6190                break 3;;
6191            esac
6192          done
6193        done
6194   done
6195 IFS=$as_save_IFS
6196
6197 fi
6198
6199   if test "${ac_cv_path_mkdir+set}" = set; then
6200     MKDIR_P="$ac_cv_path_mkdir -p"
6201   else
6202     # As a last resort, use the slow shell script.  Don't cache a
6203     # value for MKDIR_P within a source directory, because that will
6204     # break other packages using the cache if that directory is
6205     # removed, or if the value is a relative name.
6206     test -d ./--version && rmdir ./--version
6207     MKDIR_P="$ac_install_sh -d"
6208   fi
6209 fi
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6211 $as_echo "$MKDIR_P" >&6; }
6212
6213 mkdir_p="$MKDIR_P"
6214 case $mkdir_p in
6215   [\\/$]* | ?:[\\/]*) ;;
6216   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
6217 esac
6218
6219 for ac_prog in gawk mawk nawk awk
6220 do
6221   # Extract the first word of "$ac_prog", so it can be a program name with args.
6222 set dummy $ac_prog; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if test "${ac_cv_prog_AWK+set}" = set; then :
6226   $as_echo_n "(cached) " >&6
6227 else
6228   if test -n "$AWK"; then
6229   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236     for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_prog_AWK="$ac_prog"
6239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243   done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 AWK=$ac_cv_prog_AWK
6249 if test -n "$AWK"; then
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6251 $as_echo "$AWK" >&6; }
6252 else
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257
6258   test -n "$AWK" && break
6259 done
6260
6261 ac_config_commands="$ac_config_commands depfiles"
6262
6263
6264 am_make=${MAKE-make}
6265 cat > confinc << 'END'
6266 am__doit:
6267         @echo this is the am__doit target
6268 .PHONY: am__doit
6269 END
6270 # If we don't find an include directive, just comment out the code.
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6272 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6273 am__include="#"
6274 am__quote=
6275 _am_result=none
6276 # First try GNU make style include.
6277 echo "include confinc" > confmf
6278 # Ignore all kinds of additional output from `make'.
6279 case `$am_make -s -f confmf 2> /dev/null` in #(
6280 *the\ am__doit\ target*)
6281   am__include=include
6282   am__quote=
6283   _am_result=GNU
6284   ;;
6285 esac
6286 # Now try BSD make style include.
6287 if test "$am__include" = "#"; then
6288    echo '.include "confinc"' > confmf
6289    case `$am_make -s -f confmf 2> /dev/null` in #(
6290    *the\ am__doit\ target*)
6291      am__include=.include
6292      am__quote="\""
6293      _am_result=BSD
6294      ;;
6295    esac
6296 fi
6297
6298
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6300 $as_echo "$_am_result" >&6; }
6301 rm -f confinc confmf
6302
6303 # Check whether --enable-dependency-tracking was given.
6304 if test "${enable_dependency_tracking+set}" = set; then :
6305   enableval=$enable_dependency_tracking;
6306 fi
6307
6308 if test "x$enable_dependency_tracking" != xno; then
6309   am_depcomp="$ac_aux_dir/depcomp"
6310   AMDEPBACKSLASH='\'
6311 fi
6312  if test "x$enable_dependency_tracking" != xno; then
6313   AMDEP_TRUE=
6314   AMDEP_FALSE='#'
6315 else
6316   AMDEP_TRUE='#'
6317   AMDEP_FALSE=
6318 fi
6319
6320
6321 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6322   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6323   # is not polluted with repeated "-I."
6324   am__isrc=' -I$(srcdir)'
6325   # test to see if srcdir already configured
6326   if test -f $srcdir/config.status; then
6327     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6328   fi
6329 fi
6330
6331 # test whether we have cygpath
6332 if test -z "$CYGPATH_W"; then
6333   if (cygpath --version) >/dev/null 2>/dev/null; then
6334     CYGPATH_W='cygpath -w'
6335   else
6336     CYGPATH_W=echo
6337   fi
6338 fi
6339
6340
6341 # Define the identity of the package.
6342  PACKAGE=gdb
6343  VERSION=UNUSED-VERSION
6344
6345
6346 # Some tools Automake needs.
6347
6348 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6349
6350
6351 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6352
6353
6354 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6355
6356
6357 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6358
6359
6360 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6361
6362 # We need awk for the "check" target.  The system "awk" is bad on
6363 # some platforms.
6364 # Always define AMTAR for backward compatibility.
6365
6366 AMTAR=${AMTAR-"${am_missing_run}tar"}
6367
6368 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6369
6370
6371
6372
6373 depcc="$CC"   am_compiler_list=
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6376 $as_echo_n "checking dependency style of $depcc... " >&6; }
6377 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6378   $as_echo_n "(cached) " >&6
6379 else
6380   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6381   # We make a subdir and do the tests there.  Otherwise we can end up
6382   # making bogus files that we don't know about and never remove.  For
6383   # instance it was reported that on HP-UX the gcc test will end up
6384   # making a dummy file named `D' -- because `-MD' means `put the output
6385   # in D'.
6386   mkdir conftest.dir
6387   # Copy depcomp to subdir because otherwise we won't find it if we're
6388   # using a relative directory.
6389   cp "$am_depcomp" conftest.dir
6390   cd conftest.dir
6391   # We will build objects and dependencies in a subdirectory because
6392   # it helps to detect inapplicable dependency modes.  For instance
6393   # both Tru64's cc and ICC support -MD to output dependencies as a
6394   # side effect of compilation, but ICC will put the dependencies in
6395   # the current directory while Tru64 will put them in the object
6396   # directory.
6397   mkdir sub
6398
6399   am_cv_CC_dependencies_compiler_type=none
6400   if test "$am_compiler_list" = ""; then
6401      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6402   fi
6403   am__universal=false
6404   case " $depcc " in #(
6405      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6406      esac
6407
6408   for depmode in $am_compiler_list; do
6409     # Setup a source with many dependencies, because some compilers
6410     # like to wrap large dependency lists on column 80 (with \), and
6411     # we should not choose a depcomp mode which is confused by this.
6412     #
6413     # We need to recreate these files for each test, as the compiler may
6414     # overwrite some of them when testing with obscure command lines.
6415     # This happens at least with the AIX C compiler.
6416     : > sub/conftest.c
6417     for i in 1 2 3 4 5 6; do
6418       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6419       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6420       # Solaris 8's {/usr,}/bin/sh.
6421       touch sub/conftst$i.h
6422     done
6423     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6424
6425     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6426     # mode.  It turns out that the SunPro C++ compiler does not properly
6427     # handle `-M -o', and we need to detect this.  Also, some Intel
6428     # versions had trouble with output in subdirs
6429     am__obj=sub/conftest.${OBJEXT-o}
6430     am__minus_obj="-o $am__obj"
6431     case $depmode in
6432     gcc)
6433       # This depmode causes a compiler race in universal mode.
6434       test "$am__universal" = false || continue
6435       ;;
6436     nosideeffect)
6437       # after this tag, mechanisms are not by side-effect, so they'll
6438       # only be used when explicitly requested
6439       if test "x$enable_dependency_tracking" = xyes; then
6440         continue
6441       else
6442         break
6443       fi
6444       ;;
6445     msvisualcpp | msvcmsys)
6446       # This compiler won't grok `-c -o', but also, the minuso test has
6447       # not run yet.  These depmodes are late enough in the game, and
6448       # so weak that their functioning should not be impacted.
6449       am__obj=conftest.${OBJEXT-o}
6450       am__minus_obj=
6451       ;;
6452     none) break ;;
6453     esac
6454     if depmode=$depmode \
6455        source=sub/conftest.c object=$am__obj \
6456        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6457        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6458          >/dev/null 2>conftest.err &&
6459        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6460        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6461        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6462        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6463       # icc doesn't choke on unknown options, it will just issue warnings
6464       # or remarks (even with -Werror).  So we grep stderr for any message
6465       # that says an option was ignored or not supported.
6466       # When given -MP, icc 7.0 and 7.1 complain thusly:
6467       #   icc: Command line warning: ignoring option '-M'; no argument required
6468       # The diagnosis changed in icc 8.0:
6469       #   icc: Command line remark: option '-MP' not supported
6470       if (grep 'ignoring option' conftest.err ||
6471           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6472         am_cv_CC_dependencies_compiler_type=$depmode
6473         break
6474       fi
6475     fi
6476   done
6477
6478   cd ..
6479   rm -rf conftest.dir
6480 else
6481   am_cv_CC_dependencies_compiler_type=none
6482 fi
6483
6484 fi
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6486 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6487 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6488
6489  if
6490   test "x$enable_dependency_tracking" != xno \
6491   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6492   am__fastdepCC_TRUE=
6493   am__fastdepCC_FALSE='#'
6494 else
6495   am__fastdepCC_TRUE='#'
6496   am__fastdepCC_FALSE=
6497 fi
6498
6499
6500
6501
6502
6503
6504 # Check whether --with-separate-debug-dir was given.
6505 if test "${with_separate_debug_dir+set}" = set; then :
6506   withval=$with_separate_debug_dir;
6507     DEBUGDIR=$withval
6508 else
6509   DEBUGDIR=${libdir}/debug
6510 fi
6511
6512
6513   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6514   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6515   ac_define_dir=`eval echo $DEBUGDIR`
6516   ac_define_dir=`eval echo $ac_define_dir`
6517
6518 cat >>confdefs.h <<_ACEOF
6519 #define DEBUGDIR "$ac_define_dir"
6520 _ACEOF
6521
6522
6523
6524   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6525      if test "x$prefix" = xNONE; then
6526         test_prefix=/usr/local
6527      else
6528         test_prefix=$prefix
6529      fi
6530   else
6531      test_prefix=$exec_prefix
6532   fi
6533   value=0
6534   case ${ac_define_dir} in
6535      "${test_prefix}"|"${test_prefix}/"*|\
6536         '${exec_prefix}'|'${exec_prefix}/'*)
6537      value=1
6538      ;;
6539   esac
6540
6541 cat >>confdefs.h <<_ACEOF
6542 #define DEBUGDIR_RELOCATABLE $value
6543 _ACEOF
6544
6545
6546
6547 # GDB's datadir relocation
6548
6549
6550
6551 # Check whether --with-gdb-datadir was given.
6552 if test "${with_gdb_datadir+set}" = set; then :
6553   withval=$with_gdb_datadir;
6554     GDB_DATADIR=$withval
6555 else
6556   GDB_DATADIR=${datadir}/gdb
6557 fi
6558
6559
6560   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6561   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6562   ac_define_dir=`eval echo $GDB_DATADIR`
6563   ac_define_dir=`eval echo $ac_define_dir`
6564
6565 cat >>confdefs.h <<_ACEOF
6566 #define GDB_DATADIR "$ac_define_dir"
6567 _ACEOF
6568
6569
6570
6571   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6572      if test "x$prefix" = xNONE; then
6573         test_prefix=/usr/local
6574      else
6575         test_prefix=$prefix
6576      fi
6577   else
6578      test_prefix=$exec_prefix
6579   fi
6580   value=0
6581   case ${ac_define_dir} in
6582      "${test_prefix}"|"${test_prefix}/"*|\
6583         '${exec_prefix}'|'${exec_prefix}/'*)
6584      value=1
6585      ;;
6586   esac
6587
6588 cat >>confdefs.h <<_ACEOF
6589 #define GDB_DATADIR_RELOCATABLE $value
6590 _ACEOF
6591
6592
6593
6594
6595 # Check whether --with-relocated-sources was given.
6596 if test "${with_relocated_sources+set}" = set; then :
6597   withval=$with_relocated_sources; reloc_srcdir="${withval}"
6598
6599   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6600   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6601   ac_define_dir=`eval echo $reloc_srcdir`
6602   ac_define_dir=`eval echo $ac_define_dir`
6603
6604 cat >>confdefs.h <<_ACEOF
6605 #define RELOC_SRCDIR "$ac_define_dir"
6606 _ACEOF
6607
6608
6609
6610 fi
6611
6612
6613
6614
6615 subdirs="$subdirs doc testsuite"
6616
6617
6618 # Check whether to support alternative target configurations
6619 # Check whether --enable-targets was given.
6620 if test "${enable_targets+set}" = set; then :
6621   enableval=$enable_targets; case "${enableval}" in
6622   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
6623             ;;
6624   no)       enable_targets= ;;
6625   *)        enable_targets=$enableval ;;
6626 esac
6627 fi
6628
6629
6630 # Check whether to enable 64-bit support on 32-bit hosts
6631 # Check whether --enable-64-bit-bfd was given.
6632 if test "${enable_64_bit_bfd+set}" = set; then :
6633   enableval=$enable_64_bit_bfd; case "${enableval}" in
6634   yes)  want64=true  ;;
6635   no)   want64=false ;;
6636   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6637 esac
6638 else
6639   want64=false
6640 fi
6641
6642 # Provide defaults for some variables set by the per-host and per-target
6643 # configuration.
6644 gdb_host_obs=posix-hdep.o
6645
6646 if test "${target}" = "${host}"; then
6647   gdb_native=yes
6648 else
6649   gdb_native=no
6650 fi
6651
6652 . $srcdir/configure.host
6653
6654 # Accumulate some settings from configure.tgt over all enabled targets
6655
6656 TARGET_OBS=
6657 all_targets=
6658
6659 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6660 do
6661   if test "$targ_alias" = "all"; then
6662     all_targets=true
6663   else
6664     # Canonicalize the secondary target names.
6665     result=`$ac_config_sub $targ_alias 2>/dev/null`
6666     if test -n "$result"; then
6667         targ=$result
6668     else
6669         targ=$targ_alias
6670     fi
6671
6672     . ${srcdir}/configure.tgt
6673
6674     # Target-specific object files
6675     for i in ${gdb_target_obs}; do
6676         case " $TARGET_OBS " in
6677         *" ${i} "*) ;;
6678         *)
6679           TARGET_OBS="$TARGET_OBS ${i}"
6680           ;;
6681         esac
6682     done
6683
6684     # Check whether this target needs 64-bit CORE_ADDR
6685     if test x${want64} = xfalse; then
6686       . ${srcdir}/../bfd/config.bfd
6687     fi
6688   fi
6689 done
6690
6691 if test x${all_targets} = xtrue; then
6692
6693   # We want all 64-bit targets if we either:
6694   #  - run on a 64-bit host  or
6695   #  - already require 64-bit support for some other target  or
6696   #  - the --enable-64-bit-bfd option was supplied
6697   # Otherwise we only support all 32-bit targets.
6698   #
6699   # NOTE: This test must be in sync with the corresponding
6700   #       tests in BFD!
6701
6702   if test x${want64} = xfalse; then
6703     # The cast to long int works around a bug in the HP C Compiler
6704 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6705 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6706 # This bug is HP SR number 8606223364.
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6708 $as_echo_n "checking size of long... " >&6; }
6709 if test "${ac_cv_sizeof_long+set}" = set; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
6713
6714 else
6715   if test "$ac_cv_type_long" = yes; then
6716      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6718 { as_fn_set_status 77
6719 as_fn_error "cannot compute sizeof (long)
6720 See \`config.log' for more details." "$LINENO" 5; }; }
6721    else
6722      ac_cv_sizeof_long=0
6723    fi
6724 fi
6725
6726 fi
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6728 $as_echo "$ac_cv_sizeof_long" >&6; }
6729
6730
6731
6732 cat >>confdefs.h <<_ACEOF
6733 #define SIZEOF_LONG $ac_cv_sizeof_long
6734 _ACEOF
6735
6736
6737     if test "x${ac_cv_sizeof_long}" = "x8"; then
6738       want64=true
6739     fi
6740   fi
6741   if test x${want64} = xtrue; then
6742     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6743   else
6744     TARGET_OBS='$(ALL_TARGET_OBS)'
6745   fi
6746 fi
6747
6748
6749
6750 # For other settings, only the main target counts.
6751 gdb_sim=
6752 gdb_osabi=
6753 build_gdbserver=
6754 targ=$target; . ${srcdir}/configure.tgt
6755
6756 # Fetch the default architecture and default target vector from BFD.
6757 targ=$target; . $srcdir/../bfd/config.bfd
6758
6759 # We only want the first architecture, so strip off the others if
6760 # there is more than one.
6761 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6762
6763 if test "x$targ_archs" != x; then
6764
6765 cat >>confdefs.h <<_ACEOF
6766 #define DEFAULT_BFD_ARCH $targ_archs
6767 _ACEOF
6768
6769 fi
6770 if test "x$targ_defvec" != x; then
6771
6772 cat >>confdefs.h <<_ACEOF
6773 #define DEFAULT_BFD_VEC $targ_defvec
6774 _ACEOF
6775
6776 fi
6777
6778 # The CLI cannot be disabled yet, but may be in the future.
6779
6780 # Enable CLI.
6781 # Check whether --enable-gdbcli was given.
6782 if test "${enable_gdbcli+set}" = set; then :
6783   enableval=$enable_gdbcli; case $enableval in
6784     yes)
6785       ;;
6786     no)
6787       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
6788     *)
6789       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
6790   esac
6791 else
6792   enable_gdbcli=yes
6793 fi
6794
6795 if test x"$enable_gdbcli" = xyes; then
6796   if test -d $srcdir/cli; then
6797     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
6798     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
6799     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
6800     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
6801   fi
6802 fi
6803
6804 # Enable MI.
6805 # Check whether --enable-gdbmi was given.
6806 if test "${enable_gdbmi+set}" = set; then :
6807   enableval=$enable_gdbmi; case $enableval in
6808     yes | no)
6809       ;;
6810     *)
6811       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6812   esac
6813 else
6814   enable_gdbmi=yes
6815 fi
6816
6817 if test x"$enable_gdbmi" = xyes; then
6818   if test -d $srcdir/mi; then
6819     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6820     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6821     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6822     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6823   fi
6824 fi
6825
6826 # Enable TUI.
6827 # Check whether --enable-tui was given.
6828 if test "${enable_tui+set}" = set; then :
6829   enableval=$enable_tui; case $enableval in
6830     yes | no | auto)
6831       ;;
6832     *)
6833       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6834   esac
6835 else
6836   enable_tui=auto
6837 fi
6838
6839
6840 # Enable gdbtk.
6841 # Check whether --enable-gdbtk was given.
6842 if test "${enable_gdbtk+set}" = set; then :
6843   enableval=$enable_gdbtk; case $enableval in
6844     yes | no)
6845       ;;
6846     *)
6847       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6848   esac
6849 else
6850   if test -d $srcdir/gdbtk; then
6851     enable_gdbtk=yes
6852   else
6853     enable_gdbtk=no
6854   fi
6855 fi
6856
6857 # We unconditionally disable gdbtk tests on selected platforms.
6858 case $host_os in
6859   go32* | windows*)
6860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6861 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6862     enable_gdbtk=no ;;
6863 esac
6864
6865 # Libunwind support.
6866
6867 # Check whether --with-libunwind was given.
6868 if test "${with_libunwind+set}" = set; then :
6869   withval=$with_libunwind; case "${withval}" in
6870   yes)  enable_libunwind=yes ;;
6871   no)   enable_libunwind=no ;;
6872   *)    as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
6873 esac
6874 else
6875
6876   for ac_header in libunwind.h libunwind-ia64.h
6877 do :
6878   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6879 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6880 eval as_val=\$$as_ac_Header
6881    if test "x$as_val" = x""yes; then :
6882   cat >>confdefs.h <<_ACEOF
6883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6884 _ACEOF
6885
6886 fi
6887
6888 done
6889
6890   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
6891     enable_libunwind=yes;
6892   fi
6893
6894 fi
6895
6896
6897 if test x"$enable_libunwind" = xyes; then
6898   for ac_header in libunwind.h libunwind-ia64.h
6899 do :
6900   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6901 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6902 eval as_val=\$$as_ac_Header
6903    if test "x$as_val" = x""yes; then :
6904   cat >>confdefs.h <<_ACEOF
6905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6906 _ACEOF
6907
6908 fi
6909
6910 done
6911
6912
6913 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
6914
6915   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
6916   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
6917   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
6918 fi
6919
6920 opt_curses=no
6921
6922 # Check whether --with-curses was given.
6923 if test "${with_curses+set}" = set; then :
6924   withval=$with_curses; opt_curses=$withval
6925 fi
6926
6927
6928 prefer_curses=no
6929 if test "$opt_curses" = "yes"; then
6930   prefer_curses=yes
6931 fi
6932
6933 # Profiling support.
6934 # Check whether --enable-profiling was given.
6935 if test "${enable_profiling+set}" = set; then :
6936   enableval=$enable_profiling; case $enableval in
6937     yes | no)
6938       ;;
6939     *)
6940       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6941   esac
6942 else
6943   enable_profiling=no
6944 fi
6945
6946
6947 for ac_func in monstartup _mcleanup
6948 do :
6949   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6950 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6951 eval as_val=\$$as_ac_var
6952    if test "x$as_val" = x""yes; then :
6953   cat >>confdefs.h <<_ACEOF
6954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6955 _ACEOF
6956
6957 fi
6958 done
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6961 $as_echo_n "checking for _etext... " >&6; }
6962 if test "${ac_cv_var__etext+set}" = set; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h.  */
6967 #include <stdlib.h>
6968 extern char _etext;
6969
6970 int
6971 main ()
6972 {
6973 free (&_etext);
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_link "$LINENO"; then :
6979   ac_cv_var__etext=yes
6980 else
6981   ac_cv_var__etext=no
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext \
6984     conftest$ac_exeext conftest.$ac_ext
6985 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6987 $as_echo "$ac_cv_var__etext" >&6; }
6988 if test $ac_cv_var__etext = yes; then
6989
6990 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6991
6992 fi
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6994 $as_echo_n "checking for etext... " >&6; }
6995 if test "${ac_cv_var_etext+set}" = set; then :
6996   $as_echo_n "(cached) " >&6
6997 else
6998   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h.  */
7000 #include <stdlib.h>
7001 extern char etext;
7002
7003 int
7004 main ()
7005 {
7006 free (&etext);
7007   ;
7008   return 0;
7009 }
7010 _ACEOF
7011 if ac_fn_c_try_link "$LINENO"; then :
7012   ac_cv_var_etext=yes
7013 else
7014   ac_cv_var_etext=no
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext \
7017     conftest$ac_exeext conftest.$ac_ext
7018 fi
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7020 $as_echo "$ac_cv_var_etext" >&6; }
7021 if test $ac_cv_var_etext = yes; then
7022
7023 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7024
7025 fi
7026 if test "$enable_profiling" = yes ; then
7027   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7028     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7029   fi
7030   PROFILE_CFLAGS=-pg
7031   OLD_CFLAGS="$CFLAGS"
7032   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7033
7034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7035 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7036 if test "${ac_cv_cc_supports_pg+set}" = set; then :
7037   $as_echo_n "(cached) " >&6
7038 else
7039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h.  */
7041
7042 int
7043 main ()
7044 {
7045 int x;
7046   ;
7047   return 0;
7048 }
7049 _ACEOF
7050 if ac_fn_c_try_compile "$LINENO"; then :
7051   ac_cv_cc_supports_pg=yes
7052 else
7053   ac_cv_cc_supports_pg=no
7054 fi
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7056 fi
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7058 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7059
7060   if test $ac_cv_cc_supports_pg = no; then
7061     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7062   fi
7063
7064   CFLAGS="$OLD_CFLAGS"
7065 fi
7066
7067
7068
7069 # Check whether --with-pkgversion was given.
7070 if test "${with_pkgversion+set}" = set; then :
7071   withval=$with_pkgversion; case "$withval" in
7072       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
7073       no)  PKGVERSION= ;;
7074       *)   PKGVERSION="($withval) " ;;
7075      esac
7076 else
7077   PKGVERSION="(GDB) "
7078
7079 fi
7080
7081
7082
7083
7084
7085 # Check whether --with-bugurl was given.
7086 if test "${with_bugurl+set}" = set; then :
7087   withval=$with_bugurl; case "$withval" in
7088       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
7089       no)  BUGURL=
7090            ;;
7091       *)   BUGURL="$withval"
7092            ;;
7093      esac
7094 else
7095   BUGURL="http://www.gnu.org/software/gdb/bugs/"
7096
7097 fi
7098
7099   case ${BUGURL} in
7100   "")
7101     REPORT_BUGS_TO=
7102     REPORT_BUGS_TEXI=
7103     ;;
7104   *)
7105     REPORT_BUGS_TO="<$BUGURL>"
7106     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7107     ;;
7108   esac;
7109
7110
7111
7112
7113 cat >>confdefs.h <<_ACEOF
7114 #define PKGVERSION "$PKGVERSION"
7115 _ACEOF
7116
7117
7118 cat >>confdefs.h <<_ACEOF
7119 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7120 _ACEOF
7121
7122
7123 # --------------------- #
7124 # Checks for programs.  #
7125 # --------------------- #
7126
7127 for ac_prog in gawk mawk nawk awk
7128 do
7129   # Extract the first word of "$ac_prog", so it can be a program name with args.
7130 set dummy $ac_prog; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if test "${ac_cv_prog_AWK+set}" = set; then :
7134   $as_echo_n "(cached) " >&6
7135 else
7136   if test -n "$AWK"; then
7137   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142   IFS=$as_save_IFS
7143   test -z "$as_dir" && as_dir=.
7144     for ac_exec_ext in '' $ac_executable_extensions; do
7145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7146     ac_cv_prog_AWK="$ac_prog"
7147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148     break 2
7149   fi
7150 done
7151   done
7152 IFS=$as_save_IFS
7153
7154 fi
7155 fi
7156 AWK=$ac_cv_prog_AWK
7157 if test -n "$AWK"; then
7158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7159 $as_echo "$AWK" >&6; }
7160 else
7161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7164
7165
7166   test -n "$AWK" && break
7167 done
7168
7169
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7171 $as_echo_n "checking whether ln -s works... " >&6; }
7172 LN_S=$as_ln_s
7173 if test "$LN_S" = "ln -s"; then
7174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7175 $as_echo "yes" >&6; }
7176 else
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7178 $as_echo "no, using $LN_S" >&6; }
7179 fi
7180
7181 if test -n "$ac_tool_prefix"; then
7182   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7183 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7185 $as_echo_n "checking for $ac_word... " >&6; }
7186 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7187   $as_echo_n "(cached) " >&6
7188 else
7189   if test -n "$RANLIB"; then
7190   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7191 else
7192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 for as_dir in $PATH
7194 do
7195   IFS=$as_save_IFS
7196   test -z "$as_dir" && as_dir=.
7197     for ac_exec_ext in '' $ac_executable_extensions; do
7198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7199     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201     break 2
7202   fi
7203 done
7204   done
7205 IFS=$as_save_IFS
7206
7207 fi
7208 fi
7209 RANLIB=$ac_cv_prog_RANLIB
7210 if test -n "$RANLIB"; then
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7212 $as_echo "$RANLIB" >&6; }
7213 else
7214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7216 fi
7217
7218
7219 fi
7220 if test -z "$ac_cv_prog_RANLIB"; then
7221   ac_ct_RANLIB=$RANLIB
7222   # Extract the first word of "ranlib", so it can be a program name with args.
7223 set dummy ranlib; ac_word=$2
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7225 $as_echo_n "checking for $ac_word... " >&6; }
7226 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7227   $as_echo_n "(cached) " >&6
7228 else
7229   if test -n "$ac_ct_RANLIB"; then
7230   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7231 else
7232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7233 for as_dir in $PATH
7234 do
7235   IFS=$as_save_IFS
7236   test -z "$as_dir" && as_dir=.
7237     for ac_exec_ext in '' $ac_executable_extensions; do
7238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7239     ac_cv_prog_ac_ct_RANLIB="ranlib"
7240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7241     break 2
7242   fi
7243 done
7244   done
7245 IFS=$as_save_IFS
7246
7247 fi
7248 fi
7249 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7250 if test -n "$ac_ct_RANLIB"; then
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7252 $as_echo "$ac_ct_RANLIB" >&6; }
7253 else
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258   if test "x$ac_ct_RANLIB" = x; then
7259     RANLIB=":"
7260   else
7261     case $cross_compiling:$ac_tool_warned in
7262 yes:)
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7265 ac_tool_warned=yes ;;
7266 esac
7267     RANLIB=$ac_ct_RANLIB
7268   fi
7269 else
7270   RANLIB="$ac_cv_prog_RANLIB"
7271 fi
7272
7273 for ac_prog in 'bison -y' byacc
7274 do
7275   # Extract the first word of "$ac_prog", so it can be a program name with args.
7276 set dummy $ac_prog; ac_word=$2
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278 $as_echo_n "checking for $ac_word... " >&6; }
7279 if test "${ac_cv_prog_YACC+set}" = set; then :
7280   $as_echo_n "(cached) " >&6
7281 else
7282   if test -n "$YACC"; then
7283   ac_cv_prog_YACC="$YACC" # Let the user override the test.
7284 else
7285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288   IFS=$as_save_IFS
7289   test -z "$as_dir" && as_dir=.
7290     for ac_exec_ext in '' $ac_executable_extensions; do
7291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292     ac_cv_prog_YACC="$ac_prog"
7293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295   fi
7296 done
7297   done
7298 IFS=$as_save_IFS
7299
7300 fi
7301 fi
7302 YACC=$ac_cv_prog_YACC
7303 if test -n "$YACC"; then
7304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7305 $as_echo "$YACC" >&6; }
7306 else
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308 $as_echo "no" >&6; }
7309 fi
7310
7311
7312   test -n "$YACC" && break
7313 done
7314 test -n "$YACC" || YACC="yacc"
7315
7316
7317 if test -n "$ac_tool_prefix"; then
7318   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}ar; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_AR+set}" = set; then :
7323   $as_echo_n "(cached) " >&6
7324 else
7325   if test -n "$AR"; then
7326   ac_cv_prog_AR="$AR" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333     for ac_exec_ext in '' $ac_executable_extensions; do
7334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335     ac_cv_prog_AR="${ac_tool_prefix}ar"
7336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340   done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 AR=$ac_cv_prog_AR
7346 if test -n "$AR"; then
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7348 $as_echo "$AR" >&6; }
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354
7355 fi
7356 if test -z "$ac_cv_prog_AR"; then
7357   ac_ct_AR=$AR
7358   # Extract the first word of "ar", so it can be a program name with args.
7359 set dummy ar; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7363   $as_echo_n "(cached) " >&6
7364 else
7365   if test -n "$ac_ct_AR"; then
7366   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373     for ac_exec_ext in '' $ac_executable_extensions; do
7374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375     ac_cv_prog_ac_ct_AR="ar"
7376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380   done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7386 if test -n "$ac_ct_AR"; then
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7388 $as_echo "$ac_ct_AR" >&6; }
7389 else
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394   if test "x$ac_ct_AR" = x; then
7395     AR=""
7396   else
7397     case $cross_compiling:$ac_tool_warned in
7398 yes:)
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned=yes ;;
7402 esac
7403     AR=$ac_ct_AR
7404   fi
7405 else
7406   AR="$ac_cv_prog_AR"
7407 fi
7408
7409 if test -n "$ac_tool_prefix"; then
7410   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7411 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7415   $as_echo_n "(cached) " >&6
7416 else
7417   if test -n "$DLLTOOL"; then
7418   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434
7435 fi
7436 fi
7437 DLLTOOL=$ac_cv_prog_DLLTOOL
7438 if test -n "$DLLTOOL"; then
7439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7440 $as_echo "$DLLTOOL" >&6; }
7441 else
7442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7444 fi
7445
7446
7447 fi
7448 if test -z "$ac_cv_prog_DLLTOOL"; then
7449   ac_ct_DLLTOOL=$DLLTOOL
7450   # Extract the first word of "dlltool", so it can be a program name with args.
7451 set dummy dlltool; ac_word=$2
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453 $as_echo_n "checking for $ac_word... " >&6; }
7454 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7455   $as_echo_n "(cached) " >&6
7456 else
7457   if test -n "$ac_ct_DLLTOOL"; then
7458   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7459 else
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465     for ac_exec_ext in '' $ac_executable_extensions; do
7466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472   done
7473 IFS=$as_save_IFS
7474
7475 fi
7476 fi
7477 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7478 if test -n "$ac_ct_DLLTOOL"; then
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7480 $as_echo "$ac_ct_DLLTOOL" >&6; }
7481 else
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485
7486   if test "x$ac_ct_DLLTOOL" = x; then
7487     DLLTOOL=""
7488   else
7489     case $cross_compiling:$ac_tool_warned in
7490 yes:)
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7493 ac_tool_warned=yes ;;
7494 esac
7495     DLLTOOL=$ac_ct_DLLTOOL
7496   fi
7497 else
7498   DLLTOOL="$ac_cv_prog_DLLTOOL"
7499 fi
7500
7501 if test -n "$ac_tool_prefix"; then
7502   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7503 set dummy ${ac_tool_prefix}windres; ac_word=$2
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7505 $as_echo_n "checking for $ac_word... " >&6; }
7506 if test "${ac_cv_prog_WINDRES+set}" = set; then :
7507   $as_echo_n "(cached) " >&6
7508 else
7509   if test -n "$WINDRES"; then
7510   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7511 else
7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7513 for as_dir in $PATH
7514 do
7515   IFS=$as_save_IFS
7516   test -z "$as_dir" && as_dir=.
7517     for ac_exec_ext in '' $ac_executable_extensions; do
7518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7521     break 2
7522   fi
7523 done
7524   done
7525 IFS=$as_save_IFS
7526
7527 fi
7528 fi
7529 WINDRES=$ac_cv_prog_WINDRES
7530 if test -n "$WINDRES"; then
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7532 $as_echo "$WINDRES" >&6; }
7533 else
7534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }
7536 fi
7537
7538
7539 fi
7540 if test -z "$ac_cv_prog_WINDRES"; then
7541   ac_ct_WINDRES=$WINDRES
7542   # Extract the first word of "windres", so it can be a program name with args.
7543 set dummy windres; ac_word=$2
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7545 $as_echo_n "checking for $ac_word... " >&6; }
7546 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
7547   $as_echo_n "(cached) " >&6
7548 else
7549   if test -n "$ac_ct_WINDRES"; then
7550   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555   IFS=$as_save_IFS
7556   test -z "$as_dir" && as_dir=.
7557     for ac_exec_ext in '' $ac_executable_extensions; do
7558   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559     ac_cv_prog_ac_ct_WINDRES="windres"
7560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7561     break 2
7562   fi
7563 done
7564   done
7565 IFS=$as_save_IFS
7566
7567 fi
7568 fi
7569 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7570 if test -n "$ac_ct_WINDRES"; then
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7572 $as_echo "$ac_ct_WINDRES" >&6; }
7573 else
7574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 $as_echo "no" >&6; }
7576 fi
7577
7578   if test "x$ac_ct_WINDRES" = x; then
7579     WINDRES=""
7580   else
7581     case $cross_compiling:$ac_tool_warned in
7582 yes:)
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585 ac_tool_warned=yes ;;
7586 esac
7587     WINDRES=$ac_ct_WINDRES
7588   fi
7589 else
7590   WINDRES="$ac_cv_prog_WINDRES"
7591 fi
7592
7593
7594 # Needed for GNU/Hurd.
7595 if test -n "$ac_tool_prefix"; then
7596   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}mig; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if test "${ac_cv_prog_MIG+set}" = set; then :
7601   $as_echo_n "(cached) " >&6
7602 else
7603   if test -n "$MIG"; then
7604   ac_cv_prog_MIG="$MIG" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609   IFS=$as_save_IFS
7610   test -z "$as_dir" && as_dir=.
7611     for ac_exec_ext in '' $ac_executable_extensions; do
7612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613     ac_cv_prog_MIG="${ac_tool_prefix}mig"
7614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615     break 2
7616   fi
7617 done
7618   done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 MIG=$ac_cv_prog_MIG
7624 if test -n "$MIG"; then
7625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7626 $as_echo "$MIG" >&6; }
7627 else
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632
7633 fi
7634 if test -z "$ac_cv_prog_MIG"; then
7635   ac_ct_MIG=$MIG
7636   # Extract the first word of "mig", so it can be a program name with args.
7637 set dummy mig; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
7641   $as_echo_n "(cached) " >&6
7642 else
7643   if test -n "$ac_ct_MIG"; then
7644   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649   IFS=$as_save_IFS
7650   test -z "$as_dir" && as_dir=.
7651     for ac_exec_ext in '' $ac_executable_extensions; do
7652   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653     ac_cv_prog_ac_ct_MIG="mig"
7654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655     break 2
7656   fi
7657 done
7658   done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7664 if test -n "$ac_ct_MIG"; then
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7666 $as_echo "$ac_ct_MIG" >&6; }
7667 else
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671
7672   if test "x$ac_ct_MIG" = x; then
7673     MIG=""
7674   else
7675     case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681     MIG=$ac_ct_MIG
7682   fi
7683 else
7684   MIG="$ac_cv_prog_MIG"
7685 fi
7686
7687
7688 # ---------------------- #
7689 # Checks for libraries.  #
7690 # ---------------------- #
7691
7692 # We might need to link with -lm; most simulators need it.
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7694 $as_echo_n "checking for main in -lm... " >&6; }
7695 if test "${ac_cv_lib_m_main+set}" = set; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   ac_check_lib_save_LIBS=$LIBS
7699 LIBS="-lm  $LIBS"
7700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h.  */
7702
7703
7704 int
7705 main ()
7706 {
7707 return main ();
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_link "$LINENO"; then :
7713   ac_cv_lib_m_main=yes
7714 else
7715   ac_cv_lib_m_main=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext \
7718     conftest$ac_exeext conftest.$ac_ext
7719 LIBS=$ac_check_lib_save_LIBS
7720 fi
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7722 $as_echo "$ac_cv_lib_m_main" >&6; }
7723 if test "x$ac_cv_lib_m_main" = x""yes; then :
7724   cat >>confdefs.h <<_ACEOF
7725 #define HAVE_LIBM 1
7726 _ACEOF
7727
7728   LIBS="-lm $LIBS"
7729
7730 fi
7731
7732
7733 # We need to link with -lw to get `wctype' on Solaris before Solaris
7734 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
7735 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
7736 # is known to have this problem).  Therefore we avoid libw if we can.
7737 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
7738 if test "x$ac_cv_func_wctype" = x""yes; then :
7739
7740 else
7741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
7742 $as_echo_n "checking for wctype in -lw... " >&6; }
7743 if test "${ac_cv_lib_w_wctype+set}" = set; then :
7744   $as_echo_n "(cached) " >&6
7745 else
7746   ac_check_lib_save_LIBS=$LIBS
7747 LIBS="-lw  $LIBS"
7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7749 /* end confdefs.h.  */
7750
7751 /* Override any GCC internal prototype to avoid an error.
7752    Use char because int might match the return type of a GCC
7753    builtin and then its argument prototype would still apply.  */
7754 #ifdef __cplusplus
7755 extern "C"
7756 #endif
7757 char wctype ();
7758 int
7759 main ()
7760 {
7761 return wctype ();
7762   ;
7763   return 0;
7764 }
7765 _ACEOF
7766 if ac_fn_c_try_link "$LINENO"; then :
7767   ac_cv_lib_w_wctype=yes
7768 else
7769   ac_cv_lib_w_wctype=no
7770 fi
7771 rm -f core conftest.err conftest.$ac_objext \
7772     conftest$ac_exeext conftest.$ac_ext
7773 LIBS=$ac_check_lib_save_LIBS
7774 fi
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
7776 $as_echo "$ac_cv_lib_w_wctype" >&6; }
7777 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
7778   cat >>confdefs.h <<_ACEOF
7779 #define HAVE_LIBW 1
7780 _ACEOF
7781
7782   LIBS="-lw $LIBS"
7783
7784 fi
7785
7786 fi
7787
7788
7789 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7791 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7792 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795   ac_func_search_save_LIBS=$LIBS
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h.  */
7798
7799 /* Override any GCC internal prototype to avoid an error.
7800    Use char because int might match the return type of a GCC
7801    builtin and then its argument prototype would still apply.  */
7802 #ifdef __cplusplus
7803 extern "C"
7804 #endif
7805 char gethostbyname ();
7806 int
7807 main ()
7808 {
7809 return gethostbyname ();
7810   ;
7811   return 0;
7812 }
7813 _ACEOF
7814 for ac_lib in '' nsl; do
7815   if test -z "$ac_lib"; then
7816     ac_res="none required"
7817   else
7818     ac_res=-l$ac_lib
7819     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7820   fi
7821   if ac_fn_c_try_link "$LINENO"; then :
7822   ac_cv_search_gethostbyname=$ac_res
7823 fi
7824 rm -f core conftest.err conftest.$ac_objext \
7825     conftest$ac_exeext
7826   if test "${ac_cv_search_gethostbyname+set}" = set; then :
7827   break
7828 fi
7829 done
7830 if test "${ac_cv_search_gethostbyname+set}" = set; then :
7831
7832 else
7833   ac_cv_search_gethostbyname=no
7834 fi
7835 rm conftest.$ac_ext
7836 LIBS=$ac_func_search_save_LIBS
7837 fi
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7839 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7840 ac_res=$ac_cv_search_gethostbyname
7841 if test "$ac_res" != no; then :
7842   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7843
7844 fi
7845
7846
7847 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7849 $as_echo_n "checking for library containing socketpair... " >&6; }
7850 if test "${ac_cv_search_socketpair+set}" = set; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   ac_func_search_save_LIBS=$LIBS
7854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h.  */
7856
7857 /* Override any GCC internal prototype to avoid an error.
7858    Use char because int might match the return type of a GCC
7859    builtin and then its argument prototype would still apply.  */
7860 #ifdef __cplusplus
7861 extern "C"
7862 #endif
7863 char socketpair ();
7864 int
7865 main ()
7866 {
7867 return socketpair ();
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 for ac_lib in '' socket; do
7873   if test -z "$ac_lib"; then
7874     ac_res="none required"
7875   else
7876     ac_res=-l$ac_lib
7877     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7878   fi
7879   if ac_fn_c_try_link "$LINENO"; then :
7880   ac_cv_search_socketpair=$ac_res
7881 fi
7882 rm -f core conftest.err conftest.$ac_objext \
7883     conftest$ac_exeext
7884   if test "${ac_cv_search_socketpair+set}" = set; then :
7885   break
7886 fi
7887 done
7888 if test "${ac_cv_search_socketpair+set}" = set; then :
7889
7890 else
7891   ac_cv_search_socketpair=no
7892 fi
7893 rm conftest.$ac_ext
7894 LIBS=$ac_func_search_save_LIBS
7895 fi
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7897 $as_echo "$ac_cv_search_socketpair" >&6; }
7898 ac_res=$ac_cv_search_socketpair
7899 if test "$ac_res" != no; then :
7900   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7901
7902 fi
7903
7904
7905 # Link in zlib if we can.  This allows us to read compressed debug sections.
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
7907 $as_echo_n "checking for library containing zlibVersion... " >&6; }
7908 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   ac_func_search_save_LIBS=$LIBS
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h.  */
7914
7915 /* Override any GCC internal prototype to avoid an error.
7916    Use char because int might match the return type of a GCC
7917    builtin and then its argument prototype would still apply.  */
7918 #ifdef __cplusplus
7919 extern "C"
7920 #endif
7921 char zlibVersion ();
7922 int
7923 main ()
7924 {
7925 return zlibVersion ();
7926   ;
7927   return 0;
7928 }
7929 _ACEOF
7930 for ac_lib in '' z; do
7931   if test -z "$ac_lib"; then
7932     ac_res="none required"
7933   else
7934     ac_res=-l$ac_lib
7935     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7936   fi
7937   if ac_fn_c_try_link "$LINENO"; then :
7938   ac_cv_search_zlibVersion=$ac_res
7939 fi
7940 rm -f core conftest.err conftest.$ac_objext \
7941     conftest$ac_exeext
7942   if test "${ac_cv_search_zlibVersion+set}" = set; then :
7943   break
7944 fi
7945 done
7946 if test "${ac_cv_search_zlibVersion+set}" = set; then :
7947
7948 else
7949   ac_cv_search_zlibVersion=no
7950 fi
7951 rm conftest.$ac_ext
7952 LIBS=$ac_func_search_save_LIBS
7953 fi
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
7955 $as_echo "$ac_cv_search_zlibVersion" >&6; }
7956 ac_res=$ac_cv_search_zlibVersion
7957 if test "$ac_res" != no; then :
7958   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7959   for ac_header in zlib.h
7960 do :
7961   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7962 if test "x$ac_cv_header_zlib_h" = x""yes; then :
7963   cat >>confdefs.h <<_ACEOF
7964 #define HAVE_ZLIB_H 1
7965 _ACEOF
7966
7967 fi
7968
7969 done
7970
7971 fi
7972
7973
7974 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
7976 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
7977 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
7978   $as_echo_n "(cached) " >&6
7979 else
7980   ac_func_search_save_LIBS=$LIBS
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h.  */
7983
7984 /* Override any GCC internal prototype to avoid an error.
7985    Use char because int might match the return type of a GCC
7986    builtin and then its argument prototype would still apply.  */
7987 #ifdef __cplusplus
7988 extern "C"
7989 #endif
7990 char dlgetmodinfo ();
7991 int
7992 main ()
7993 {
7994 return dlgetmodinfo ();
7995   ;
7996   return 0;
7997 }
7998 _ACEOF
7999 for ac_lib in '' dl xpdl; do
8000   if test -z "$ac_lib"; then
8001     ac_res="none required"
8002   else
8003     ac_res=-l$ac_lib
8004     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8005   fi
8006   if ac_fn_c_try_link "$LINENO"; then :
8007   ac_cv_search_dlgetmodinfo=$ac_res
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext \
8010     conftest$ac_exeext
8011   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8012   break
8013 fi
8014 done
8015 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
8016
8017 else
8018   ac_cv_search_dlgetmodinfo=no
8019 fi
8020 rm conftest.$ac_ext
8021 LIBS=$ac_func_search_save_LIBS
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
8024 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
8025 ac_res=$ac_cv_search_dlgetmodinfo
8026 if test "$ac_res" != no; then :
8027   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8028
8029 fi
8030
8031
8032
8033
8034
8035 # Check whether --with-libiconv-prefix was given.
8036 if test "${with_libiconv_prefix+set}" = set; then :
8037   withval=$with_libiconv_prefix;
8038     for dir in `echo "$withval" | tr : ' '`; do
8039       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
8040       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
8041     done
8042
8043 fi
8044
8045
8046   BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
8047   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
8048
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8050 $as_echo_n "checking for iconv... " >&6; }
8051 if test "${am_cv_func_iconv+set}" = set; then :
8052   $as_echo_n "(cached) " >&6
8053 else
8054
8055     am_cv_func_iconv="no, consider installing GNU libiconv"
8056     am_cv_lib_iconv=no
8057     am_cv_use_build_libiconv=no
8058
8059     # If libiconv is part of the build tree, then try using it over
8060     # any system iconv.
8061     if test -d ../libiconv; then
8062       am_save_LIBS="$LIBS"
8063       am_save_CPPFLAGS="$CPPFLAGS"
8064       LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
8065       CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
8066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8067 /* end confdefs.h.  */
8068 #include <stdlib.h>
8069 #include <iconv.h>
8070 int
8071 main ()
8072 {
8073 iconv_t cd = iconv_open("","");
8074          iconv(cd,NULL,NULL,NULL,NULL);
8075          iconv_close(cd);
8076   ;
8077   return 0;
8078 }
8079 _ACEOF
8080 if ac_fn_c_try_link "$LINENO"; then :
8081   am_cv_use_build_libiconv=yes
8082         am_cv_lib_iconv=yes
8083         am_cv_func_iconv=yes
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext \
8086     conftest$ac_exeext conftest.$ac_ext
8087       LIBS="$am_save_LIBS"
8088       CPPFLAGS="$am_save_CPPFLAGS"
8089     fi
8090
8091     # Next, try to find iconv in libc.
8092     if test "$am_cv_func_iconv" != yes; then
8093       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h.  */
8095 #include <stdlib.h>
8096 #include <iconv.h>
8097 int
8098 main ()
8099 {
8100 iconv_t cd = iconv_open("","");
8101          iconv(cd,NULL,NULL,NULL,NULL);
8102          iconv_close(cd);
8103   ;
8104   return 0;
8105 }
8106 _ACEOF
8107 if ac_fn_c_try_link "$LINENO"; then :
8108   am_cv_func_iconv=yes
8109 fi
8110 rm -f core conftest.err conftest.$ac_objext \
8111     conftest$ac_exeext conftest.$ac_ext
8112     fi
8113
8114     # If iconv was not in libc, try -liconv.  In this case, arrange to
8115     # look in the libiconv prefix, if it was specified by the user.
8116     if test "$am_cv_func_iconv" != yes; then
8117       am_save_CPPFLAGS="$CPPFLAGS"
8118       am_save_LIBS="$LIBS"
8119       if test -n "$LIBICONV_INCLUDE"; then
8120         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
8121         LIBS="$LIBS $LIBICONV_LIBDIR"
8122       fi
8123       LIBS="$LIBS -liconv"
8124       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h.  */
8126 #include <stdlib.h>
8127 #include <iconv.h>
8128 int
8129 main ()
8130 {
8131 iconv_t cd = iconv_open("","");
8132          iconv(cd,NULL,NULL,NULL,NULL);
8133          iconv_close(cd);
8134   ;
8135   return 0;
8136 }
8137 _ACEOF
8138 if ac_fn_c_try_link "$LINENO"; then :
8139   am_cv_lib_iconv=yes
8140         am_cv_func_iconv=yes
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext \
8143     conftest$ac_exeext conftest.$ac_ext
8144       LIBS="$am_save_LIBS"
8145       CPPFLAGS="$am_save_CPPFLAGS"
8146     fi
8147
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8150 $as_echo "$am_cv_func_iconv" >&6; }
8151
8152   # Set the various flags based on the cache variables.  We can't rely
8153   # on the flags to remain set from the above code, due to caching.
8154   LIBICONV=
8155   if test "$am_cv_lib_iconv" = yes; then
8156     LIBICONV="-liconv"
8157   else
8158     LIBICONV_LIBDIR=
8159     LIBICONV_INCLUDE=
8160   fi
8161   if test "$am_cv_use_build_libiconv" = yes; then
8162     LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR"
8163     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
8164   fi
8165   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
8166   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
8167
8168   if test "$am_cv_func_iconv" = yes; then
8169
8170 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8171
8172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8173 $as_echo_n "checking for iconv declaration... " >&6; }
8174     if test "${am_cv_proto_iconv+set}" = set; then :
8175   $as_echo_n "(cached) " >&6
8176 else
8177
8178       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h.  */
8180
8181 #include <stdlib.h>
8182 #include <iconv.h>
8183 extern
8184 #ifdef __cplusplus
8185 "C"
8186 #endif
8187 #if defined(__STDC__) || defined(__cplusplus)
8188 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8189 #else
8190 size_t iconv();
8191 #endif
8192
8193 int
8194 main ()
8195 {
8196
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"; then :
8202   am_cv_proto_iconv_arg1=""
8203 else
8204   am_cv_proto_iconv_arg1="const"
8205 fi
8206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207       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);"
8208 fi
8209
8210     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8211     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8212          }$am_cv_proto_iconv" >&5
8213 $as_echo "${ac_t:-
8214          }$am_cv_proto_iconv" >&6; }
8215
8216 cat >>confdefs.h <<_ACEOF
8217 #define ICONV_CONST $am_cv_proto_iconv_arg1
8218 _ACEOF
8219
8220   fi
8221
8222
8223 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
8224 # There is a very specific comment in /usr/include/curses.h explaining that
8225 # termcap routines built into libcurses must not be used.
8226 #
8227 # The symptoms we observed so far is GDB unexpectedly changing
8228 # the terminal settings when tgetent is called - this is particularly
8229 # visible as the output is missing carriage returns, and so rapidly
8230 # becomes very hard to read.
8231 #
8232 # The readline configure script has already decided that libtermcap
8233 # was enough for its purposes, and so decided to build readline using
8234 # libtermcap.  Since the TUI mode requires curses, building GDB with
8235 # TUI enabled results in both libraries to be used at the same time,
8236 # which is not allowed.  This basically means that GDB with TUI is
8237 # broken on alpha-osf.
8238
8239 case $host_os in
8240   alpha*-*-osf* )
8241     if "$enable_tui" = "yes"; then
8242       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
8243     fi
8244     if "$enable_tui" = "auto"; then
8245       enable_tui=no
8246     fi
8247     ;;
8248 esac
8249
8250 # For the TUI, we need enhanced curses functionality.
8251 if test x"$enable_tui" != xno; then
8252   prefer_curses=yes
8253 fi
8254
8255 curses_found=no
8256 if test x"$prefer_curses" = xyes; then
8257   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8258   # curses library because the latter might not provide all the
8259   # functionality we need.  However, this leads to problems on systems
8260   # where the linker searches /usr/local/lib, but the compiler doesn't
8261   # search /usr/local/include, if ncurses is installed in /usr/local.  A
8262   # default installation of ncurses on alpha*-dec-osf* will lead to such
8263   # a situation.
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8265 $as_echo_n "checking for library containing waddstr... " >&6; }
8266 if test "${ac_cv_search_waddstr+set}" = set; then :
8267   $as_echo_n "(cached) " >&6
8268 else
8269   ac_func_search_save_LIBS=$LIBS
8270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h.  */
8272
8273 /* Override any GCC internal prototype to avoid an error.
8274    Use char because int might match the return type of a GCC
8275    builtin and then its argument prototype would still apply.  */
8276 #ifdef __cplusplus
8277 extern "C"
8278 #endif
8279 char waddstr ();
8280 int
8281 main ()
8282 {
8283 return waddstr ();
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 for ac_lib in '' ncurses cursesX curses; do
8289   if test -z "$ac_lib"; then
8290     ac_res="none required"
8291   else
8292     ac_res=-l$ac_lib
8293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8294   fi
8295   if ac_fn_c_try_link "$LINENO"; then :
8296   ac_cv_search_waddstr=$ac_res
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext \
8299     conftest$ac_exeext
8300   if test "${ac_cv_search_waddstr+set}" = set; then :
8301   break
8302 fi
8303 done
8304 if test "${ac_cv_search_waddstr+set}" = set; then :
8305
8306 else
8307   ac_cv_search_waddstr=no
8308 fi
8309 rm conftest.$ac_ext
8310 LIBS=$ac_func_search_save_LIBS
8311 fi
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8313 $as_echo "$ac_cv_search_waddstr" >&6; }
8314 ac_res=$ac_cv_search_waddstr
8315 if test "$ac_res" != no; then :
8316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8317
8318 fi
8319
8320
8321   if test "$ac_cv_search_waddstr" != no; then
8322     curses_found=yes
8323   fi
8324 fi
8325
8326 # Check whether we should enable the TUI, but only do so if we really
8327 # can.
8328 if test x"$enable_tui" != xno; then
8329   if test -d $srcdir/tui; then
8330     if test "$curses_found" != no; then
8331       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8332       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8333       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8334       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8335       CONFIG_ALL="${CONFIG_ALL} all-tui"
8336       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
8337       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
8338       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
8339     else
8340       if test x"$enable_tui" = xyes; then
8341         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
8342       else
8343         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8344 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8345       fi
8346     fi
8347   fi
8348 fi
8349
8350 # Since GDB uses Readline, we need termcap functionality.  In many
8351 # cases this will be provided by the curses library, but some systems
8352 # have a seperate termcap library, or no curses library at all.
8353
8354 case $host_os in
8355   cygwin*)
8356     if test -d $srcdir/libtermcap; then
8357       LIBS="../libtermcap/libtermcap.a $LIBS"
8358       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8359     fi ;;
8360   go32* | *djgpp*)
8361     ac_cv_search_tgetent="none required"
8362     ;;
8363   *mingw32*)
8364     ac_cv_search_tgetent="none required"
8365     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
8366     ;;
8367 esac
8368
8369 # These are the libraries checked by Readline.
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8371 $as_echo_n "checking for library containing tgetent... " >&6; }
8372 if test "${ac_cv_search_tgetent+set}" = set; then :
8373   $as_echo_n "(cached) " >&6
8374 else
8375   ac_func_search_save_LIBS=$LIBS
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h.  */
8378
8379 /* Override any GCC internal prototype to avoid an error.
8380    Use char because int might match the return type of a GCC
8381    builtin and then its argument prototype would still apply.  */
8382 #ifdef __cplusplus
8383 extern "C"
8384 #endif
8385 char tgetent ();
8386 int
8387 main ()
8388 {
8389 return tgetent ();
8390   ;
8391   return 0;
8392 }
8393 _ACEOF
8394 for ac_lib in '' termcap tinfo curses ncurses; do
8395   if test -z "$ac_lib"; then
8396     ac_res="none required"
8397   else
8398     ac_res=-l$ac_lib
8399     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8400   fi
8401   if ac_fn_c_try_link "$LINENO"; then :
8402   ac_cv_search_tgetent=$ac_res
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext \
8405     conftest$ac_exeext
8406   if test "${ac_cv_search_tgetent+set}" = set; then :
8407   break
8408 fi
8409 done
8410 if test "${ac_cv_search_tgetent+set}" = set; then :
8411
8412 else
8413   ac_cv_search_tgetent=no
8414 fi
8415 rm conftest.$ac_ext
8416 LIBS=$ac_func_search_save_LIBS
8417 fi
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8419 $as_echo "$ac_cv_search_tgetent" >&6; }
8420 ac_res=$ac_cv_search_tgetent
8421 if test "$ac_res" != no; then :
8422   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8423
8424 fi
8425
8426
8427 if test "$ac_cv_search_tgetent" = no; then
8428   as_fn_error "no termcap library found" "$LINENO" 5
8429 fi
8430
8431
8432 # Check whether --with-system-readline was given.
8433 if test "${with_system_readline+set}" = set; then :
8434   withval=$with_system_readline;
8435 fi
8436
8437
8438 if test "$with_system_readline" = yes; then
8439   READLINE=-lreadline
8440   READLINE_DEPS=
8441   READLINE_CFLAGS=
8442 else
8443   READLINE='$(READLINE_DIR)/libreadline.a'
8444   READLINE_DEPS='$(READLINE)'
8445   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
8446 fi
8447
8448
8449
8450
8451
8452 # Check whether --with-expat was given.
8453 if test "${with_expat+set}" = set; then :
8454   withval=$with_expat;
8455 else
8456   with_expat=auto
8457 fi
8458
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
8460 $as_echo_n "checking whether to use expat... " >&6; }
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
8462 $as_echo "$with_expat" >&6; }
8463
8464 if test "${with_expat}" = no; then
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
8466 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
8467   HAVE_LIBEXPAT=no
8468 else
8469
8470       if test "X$prefix" = "XNONE"; then
8471     acl_final_prefix="$ac_default_prefix"
8472   else
8473     acl_final_prefix="$prefix"
8474   fi
8475   if test "X$exec_prefix" = "XNONE"; then
8476     acl_final_exec_prefix='${prefix}'
8477   else
8478     acl_final_exec_prefix="$exec_prefix"
8479   fi
8480   acl_save_prefix="$prefix"
8481   prefix="$acl_final_prefix"
8482   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8483   prefix="$acl_save_prefix"
8484
8485
8486 # Check whether --with-gnu-ld was given.
8487 if test "${with_gnu_ld+set}" = set; then :
8488   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8489 else
8490   with_gnu_ld=no
8491 fi
8492
8493 # Prepare PATH_SEPARATOR.
8494 # The user is always right.
8495 if test "${PATH_SEPARATOR+set}" != set; then
8496   echo "#! /bin/sh" >conf$$.sh
8497   echo  "exit 0"   >>conf$$.sh
8498   chmod +x conf$$.sh
8499   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8500     PATH_SEPARATOR=';'
8501   else
8502     PATH_SEPARATOR=:
8503   fi
8504   rm -f conf$$.sh
8505 fi
8506 ac_prog=ld
8507 if test "$GCC" = yes; then
8508   # Check if gcc -print-prog-name=ld gives a path.
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8510 $as_echo_n "checking for ld used by GCC... " >&6; }
8511   case $host in
8512   *-*-mingw*)
8513     # gcc leaves a trailing carriage return which upsets mingw
8514     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8515   *)
8516     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8517   esac
8518   case $ac_prog in
8519     # Accept absolute paths.
8520     [\\/]* | [A-Za-z]:[\\/]*)
8521       re_direlt='/[^/][^/]*/\.\./'
8522       # Canonicalize the path of ld
8523       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8524       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8525         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8526       done
8527       test -z "$LD" && LD="$ac_prog"
8528       ;;
8529   "")
8530     # If it fails, then pretend we aren't using GCC.
8531     ac_prog=ld
8532     ;;
8533   *)
8534     # If it is relative, then search for the first ld in PATH.
8535     with_gnu_ld=unknown
8536     ;;
8537   esac
8538 elif test "$with_gnu_ld" = yes; then
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8540 $as_echo_n "checking for GNU ld... " >&6; }
8541 else
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8543 $as_echo_n "checking for non-GNU ld... " >&6; }
8544 fi
8545 if test "${acl_cv_path_LD+set}" = set; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   if test -z "$LD"; then
8549   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8550   for ac_dir in $PATH; do
8551     test -z "$ac_dir" && ac_dir=.
8552     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8553       acl_cv_path_LD="$ac_dir/$ac_prog"
8554       # Check to see if the program is GNU ld.  I'd rather use --version,
8555       # but apparently some GNU ld's only accept -v.
8556       # Break only if it was the GNU/non-GNU ld that we prefer.
8557       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8558         test "$with_gnu_ld" != no && break
8559       else
8560         test "$with_gnu_ld" != yes && break
8561       fi
8562     fi
8563   done
8564   IFS="$ac_save_ifs"
8565 else
8566   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8567 fi
8568 fi
8569
8570 LD="$acl_cv_path_LD"
8571 if test -n "$LD"; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8573 $as_echo "$LD" >&6; }
8574 else
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8580 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8581 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8585 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8586   acl_cv_prog_gnu_ld=yes
8587 else
8588   acl_cv_prog_gnu_ld=no
8589 fi
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8592 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8593 with_gnu_ld=$acl_cv_prog_gnu_ld
8594
8595
8596
8597                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8598 $as_echo_n "checking for shared library run path origin... " >&6; }
8599 if test "${acl_cv_rpath+set}" = set; then :
8600   $as_echo_n "(cached) " >&6
8601 else
8602
8603     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8604     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8605     . ./conftest.sh
8606     rm -f ./conftest.sh
8607     acl_cv_rpath=done
8608
8609 fi
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8611 $as_echo "$acl_cv_rpath" >&6; }
8612   wl="$acl_cv_wl"
8613   libext="$acl_cv_libext"
8614   shlibext="$acl_cv_shlibext"
8615   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8616   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8617   hardcode_direct="$acl_cv_hardcode_direct"
8618   hardcode_minus_L="$acl_cv_hardcode_minus_L"
8619     # Check whether --enable-rpath was given.
8620 if test "${enable_rpath+set}" = set; then :
8621   enableval=$enable_rpath; :
8622 else
8623   enable_rpath=yes
8624 fi
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635     use_additional=yes
8636
8637   acl_save_prefix="$prefix"
8638   prefix="$acl_final_prefix"
8639   acl_save_exec_prefix="$exec_prefix"
8640   exec_prefix="$acl_final_exec_prefix"
8641
8642     eval additional_includedir=\"$includedir\"
8643     eval additional_libdir=\"$libdir\"
8644
8645   exec_prefix="$acl_save_exec_prefix"
8646   prefix="$acl_save_prefix"
8647
8648
8649 # Check whether --with-libexpat-prefix was given.
8650 if test "${with_libexpat_prefix+set}" = set; then :
8651   withval=$with_libexpat_prefix;
8652     if test "X$withval" = "Xno"; then
8653       use_additional=no
8654     else
8655       if test "X$withval" = "X"; then
8656
8657   acl_save_prefix="$prefix"
8658   prefix="$acl_final_prefix"
8659   acl_save_exec_prefix="$exec_prefix"
8660   exec_prefix="$acl_final_exec_prefix"
8661
8662           eval additional_includedir=\"$includedir\"
8663           eval additional_libdir=\"$libdir\"
8664
8665   exec_prefix="$acl_save_exec_prefix"
8666   prefix="$acl_save_prefix"
8667
8668       else
8669         additional_includedir="$withval/include"
8670         additional_libdir="$withval/lib"
8671       fi
8672     fi
8673
8674 fi
8675
8676       LIBEXPAT=
8677   LTLIBEXPAT=
8678   INCEXPAT=
8679   rpathdirs=
8680   ltrpathdirs=
8681   names_already_handled=
8682   names_next_round='expat '
8683   while test -n "$names_next_round"; do
8684     names_this_round="$names_next_round"
8685     names_next_round=
8686     for name in $names_this_round; do
8687       already_handled=
8688       for n in $names_already_handled; do
8689         if test "$n" = "$name"; then
8690           already_handled=yes
8691           break
8692         fi
8693       done
8694       if test -z "$already_handled"; then
8695         names_already_handled="$names_already_handled $name"
8696                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8697         eval value=\"\$HAVE_LIB$uppername\"
8698         if test -n "$value"; then
8699           if test "$value" = yes; then
8700             eval value=\"\$LIB$uppername\"
8701             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
8702             eval value=\"\$LTLIB$uppername\"
8703             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
8704           else
8705                                     :
8706           fi
8707         else
8708                               found_dir=
8709           found_la=
8710           found_so=
8711           found_a=
8712           if test $use_additional = yes; then
8713             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8714               found_dir="$additional_libdir"
8715               found_so="$additional_libdir/lib$name.$shlibext"
8716               if test -f "$additional_libdir/lib$name.la"; then
8717                 found_la="$additional_libdir/lib$name.la"
8718               fi
8719             else
8720               if test -f "$additional_libdir/lib$name.$libext"; then
8721                 found_dir="$additional_libdir"
8722                 found_a="$additional_libdir/lib$name.$libext"
8723                 if test -f "$additional_libdir/lib$name.la"; then
8724                   found_la="$additional_libdir/lib$name.la"
8725                 fi
8726               fi
8727             fi
8728           fi
8729           if test "X$found_dir" = "X"; then
8730             for x in $LDFLAGS $LTLIBEXPAT; do
8731
8732   acl_save_prefix="$prefix"
8733   prefix="$acl_final_prefix"
8734   acl_save_exec_prefix="$exec_prefix"
8735   exec_prefix="$acl_final_exec_prefix"
8736   eval x=\"$x\"
8737   exec_prefix="$acl_save_exec_prefix"
8738   prefix="$acl_save_prefix"
8739
8740               case "$x" in
8741                 -L*)
8742                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8743                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8744                     found_dir="$dir"
8745                     found_so="$dir/lib$name.$shlibext"
8746                     if test -f "$dir/lib$name.la"; then
8747                       found_la="$dir/lib$name.la"
8748                     fi
8749                   else
8750                     if test -f "$dir/lib$name.$libext"; then
8751                       found_dir="$dir"
8752                       found_a="$dir/lib$name.$libext"
8753                       if test -f "$dir/lib$name.la"; then
8754                         found_la="$dir/lib$name.la"
8755                       fi
8756                     fi
8757                   fi
8758                   ;;
8759               esac
8760               if test "X$found_dir" != "X"; then
8761                 break
8762               fi
8763             done
8764           fi
8765           if test "X$found_dir" != "X"; then
8766                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
8767             if test "X$found_so" != "X"; then
8768                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8769                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8770               else
8771                                                                                 haveit=
8772                 for x in $ltrpathdirs; do
8773                   if test "X$x" = "X$found_dir"; then
8774                     haveit=yes
8775                     break
8776                   fi
8777                 done
8778                 if test -z "$haveit"; then
8779                   ltrpathdirs="$ltrpathdirs $found_dir"
8780                 fi
8781                                 if test "$hardcode_direct" = yes; then
8782                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8783                 else
8784                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8785                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8786                                                             haveit=
8787                     for x in $rpathdirs; do
8788                       if test "X$x" = "X$found_dir"; then
8789                         haveit=yes
8790                         break
8791                       fi
8792                     done
8793                     if test -z "$haveit"; then
8794                       rpathdirs="$rpathdirs $found_dir"
8795                     fi
8796                   else
8797                                                                                 haveit=
8798                     for x in $LDFLAGS $LIBEXPAT; do
8799
8800   acl_save_prefix="$prefix"
8801   prefix="$acl_final_prefix"
8802   acl_save_exec_prefix="$exec_prefix"
8803   exec_prefix="$acl_final_exec_prefix"
8804   eval x=\"$x\"
8805   exec_prefix="$acl_save_exec_prefix"
8806   prefix="$acl_save_prefix"
8807
8808                       if test "X$x" = "X-L$found_dir"; then
8809                         haveit=yes
8810                         break
8811                       fi
8812                     done
8813                     if test -z "$haveit"; then
8814                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
8815                     fi
8816                     if test "$hardcode_minus_L" != no; then
8817                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
8818                     else
8819                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8820                     fi
8821                   fi
8822                 fi
8823               fi
8824             else
8825               if test "X$found_a" != "X"; then
8826                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
8827               else
8828                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
8829               fi
8830             fi
8831                         additional_includedir=
8832             case "$found_dir" in
8833               */lib | */lib/)
8834                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8835                 additional_includedir="$basedir/include"
8836                 ;;
8837             esac
8838             if test "X$additional_includedir" != "X"; then
8839                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8840                 haveit=
8841                 if test "X$additional_includedir" = "X/usr/local/include"; then
8842                   if test -n "$GCC"; then
8843                     case $host_os in
8844                       linux*) haveit=yes;;
8845                     esac
8846                   fi
8847                 fi
8848                 if test -z "$haveit"; then
8849                   for x in $CPPFLAGS $INCEXPAT; do
8850
8851   acl_save_prefix="$prefix"
8852   prefix="$acl_final_prefix"
8853   acl_save_exec_prefix="$exec_prefix"
8854   exec_prefix="$acl_final_exec_prefix"
8855   eval x=\"$x\"
8856   exec_prefix="$acl_save_exec_prefix"
8857   prefix="$acl_save_prefix"
8858
8859                     if test "X$x" = "X-I$additional_includedir"; then
8860                       haveit=yes
8861                       break
8862                     fi
8863                   done
8864                   if test -z "$haveit"; then
8865                     if test -d "$additional_includedir"; then
8866                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
8867                     fi
8868                   fi
8869                 fi
8870               fi
8871             fi
8872                         if test -n "$found_la"; then
8873                                                         save_libdir="$libdir"
8874               case "$found_la" in
8875                 */* | *\\*) . "$found_la" ;;
8876                 *) . "./$found_la" ;;
8877               esac
8878               libdir="$save_libdir"
8879                             for dep in $dependency_libs; do
8880                 case "$dep" in
8881                   -L*)
8882                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8883                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8884                       haveit=
8885                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8886                         if test -n "$GCC"; then
8887                           case $host_os in
8888                             linux*) haveit=yes;;
8889                           esac
8890                         fi
8891                       fi
8892                       if test -z "$haveit"; then
8893                         haveit=
8894                         for x in $LDFLAGS $LIBEXPAT; do
8895
8896   acl_save_prefix="$prefix"
8897   prefix="$acl_final_prefix"
8898   acl_save_exec_prefix="$exec_prefix"
8899   exec_prefix="$acl_final_exec_prefix"
8900   eval x=\"$x\"
8901   exec_prefix="$acl_save_exec_prefix"
8902   prefix="$acl_save_prefix"
8903
8904                           if test "X$x" = "X-L$additional_libdir"; then
8905                             haveit=yes
8906                             break
8907                           fi
8908                         done
8909                         if test -z "$haveit"; then
8910                           if test -d "$additional_libdir"; then
8911                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
8912                           fi
8913                         fi
8914                         haveit=
8915                         for x in $LDFLAGS $LTLIBEXPAT; do
8916
8917   acl_save_prefix="$prefix"
8918   prefix="$acl_final_prefix"
8919   acl_save_exec_prefix="$exec_prefix"
8920   exec_prefix="$acl_final_exec_prefix"
8921   eval x=\"$x\"
8922   exec_prefix="$acl_save_exec_prefix"
8923   prefix="$acl_save_prefix"
8924
8925                           if test "X$x" = "X-L$additional_libdir"; then
8926                             haveit=yes
8927                             break
8928                           fi
8929                         done
8930                         if test -z "$haveit"; then
8931                           if test -d "$additional_libdir"; then
8932                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
8933                           fi
8934                         fi
8935                       fi
8936                     fi
8937                     ;;
8938                   -R*)
8939                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8940                     if test "$enable_rpath" != no; then
8941                                                                   haveit=
8942                       for x in $rpathdirs; do
8943                         if test "X$x" = "X$dir"; then
8944                           haveit=yes
8945                           break
8946                         fi
8947                       done
8948                       if test -z "$haveit"; then
8949                         rpathdirs="$rpathdirs $dir"
8950                       fi
8951                                                                   haveit=
8952                       for x in $ltrpathdirs; do
8953                         if test "X$x" = "X$dir"; then
8954                           haveit=yes
8955                           break
8956                         fi
8957                       done
8958                       if test -z "$haveit"; then
8959                         ltrpathdirs="$ltrpathdirs $dir"
8960                       fi
8961                     fi
8962                     ;;
8963                   -l*)
8964                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8965                     ;;
8966                   *.la)
8967                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8968                     ;;
8969                   *)
8970                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
8971                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
8972                     ;;
8973                 esac
8974               done
8975             fi
8976           else
8977                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
8978             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
8979           fi
8980         fi
8981       fi
8982     done
8983   done
8984   if test "X$rpathdirs" != "X"; then
8985     if test -n "$hardcode_libdir_separator"; then
8986                         alldirs=
8987       for found_dir in $rpathdirs; do
8988         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8989       done
8990             acl_save_libdir="$libdir"
8991       libdir="$alldirs"
8992       eval flag=\"$hardcode_libdir_flag_spec\"
8993       libdir="$acl_save_libdir"
8994       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
8995     else
8996             for found_dir in $rpathdirs; do
8997         acl_save_libdir="$libdir"
8998         libdir="$found_dir"
8999         eval flag=\"$hardcode_libdir_flag_spec\"
9000         libdir="$acl_save_libdir"
9001         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9002       done
9003     fi
9004   fi
9005   if test "X$ltrpathdirs" != "X"; then
9006             for found_dir in $ltrpathdirs; do
9007       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9008     done
9009   fi
9010
9011
9012         ac_save_CPPFLAGS="$CPPFLAGS"
9013
9014   for element in $INCEXPAT; do
9015     haveit=
9016     for x in $CPPFLAGS; do
9017
9018   acl_save_prefix="$prefix"
9019   prefix="$acl_final_prefix"
9020   acl_save_exec_prefix="$exec_prefix"
9021   exec_prefix="$acl_final_exec_prefix"
9022   eval x=\"$x\"
9023   exec_prefix="$acl_save_exec_prefix"
9024   prefix="$acl_save_prefix"
9025
9026       if test "X$x" = "X$element"; then
9027         haveit=yes
9028         break
9029       fi
9030     done
9031     if test -z "$haveit"; then
9032       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9033     fi
9034   done
9035
9036
9037   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9038 $as_echo_n "checking for libexpat... " >&6; }
9039 if test "${ac_cv_libexpat+set}" = set; then :
9040   $as_echo_n "(cached) " >&6
9041 else
9042
9043     ac_save_LIBS="$LIBS"
9044     LIBS="$LIBS $LIBEXPAT"
9045     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9046 /* end confdefs.h.  */
9047 #include "expat.h"
9048 int
9049 main ()
9050 {
9051 XML_Parser p = XML_ParserCreate (0);
9052   ;
9053   return 0;
9054 }
9055 _ACEOF
9056 if ac_fn_c_try_link "$LINENO"; then :
9057   ac_cv_libexpat=yes
9058 else
9059   ac_cv_libexpat=no
9060 fi
9061 rm -f core conftest.err conftest.$ac_objext \
9062     conftest$ac_exeext conftest.$ac_ext
9063     LIBS="$ac_save_LIBS"
9064
9065 fi
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9067 $as_echo "$ac_cv_libexpat" >&6; }
9068   if test "$ac_cv_libexpat" = yes; then
9069     HAVE_LIBEXPAT=yes
9070
9071 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9072
9073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9074 $as_echo_n "checking how to link with libexpat... " >&6; }
9075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9076 $as_echo "$LIBEXPAT" >&6; }
9077   else
9078     HAVE_LIBEXPAT=no
9079             CPPFLAGS="$ac_save_CPPFLAGS"
9080     LIBEXPAT=
9081     LTLIBEXPAT=
9082   fi
9083
9084
9085
9086
9087
9088
9089   if test "$HAVE_LIBEXPAT" != yes; then
9090     if test "$with_expat" = yes; then
9091       as_fn_error "expat is missing or unusable" "$LINENO" 5
9092     else
9093       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9094 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9095     fi
9096   else
9097     save_LIBS=$LIBS
9098     LIBS="$LIBS $LIBEXPAT"
9099     for ac_func in XML_StopParser
9100 do :
9101   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9102 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
9103   cat >>confdefs.h <<_ACEOF
9104 #define HAVE_XML_STOPPARSER 1
9105 _ACEOF
9106
9107 fi
9108 done
9109
9110     LIBS=$save_LIBS
9111   fi
9112 fi
9113
9114
9115
9116
9117 # Check whether --with-python was given.
9118 if test "${with_python+set}" = set; then :
9119   withval=$with_python;
9120 else
9121   with_python=auto
9122 fi
9123
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
9125 $as_echo_n "checking whether to use python... " >&6; }
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
9127 $as_echo "$with_python" >&6; }
9128
9129 if test "${with_python}" = no; then
9130   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
9131 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
9132   have_libpython=no
9133 else
9134   case "${with_python}" in
9135   yes | auto)
9136     # Leave as empty, use defaults.
9137     python_includes=
9138     python_libs=
9139     ;;
9140   /*)
9141     python_includes="-I${with_python}/include"
9142     python_libs="-L${with_python}/lib"
9143     ;;
9144   *)
9145     as_fn_error "invalid value for --with-python" "$LINENO" 5
9146     ;;
9147   esac
9148
9149   save_CPPFLAGS=$CPPFLAGS
9150   CPPFLAGS="$CPPFLAGS ${python_includes}"
9151   save_LIBS=$LIBS
9152   LIBS="$LIBS ${python_libs}"
9153   have_libpython=no
9154   if test "${have_libpython}" = no; then
9155
9156   version=python2.6
9157
9158
9159   HAVE_LIBPYTHON2_6=no
9160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9161 $as_echo_n "checking for ${version}... " >&6; }
9162   save_LIBS=$LIBS
9163   LIBS="$LIBS -l${version}"
9164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h.  */
9166 #include "${version}/Python.h"
9167 int
9168 main ()
9169 {
9170 Py_Initialize ();
9171   ;
9172   return 0;
9173 }
9174 _ACEOF
9175 if ac_fn_c_try_link "$LINENO"; then :
9176   HAVE_LIBPYTHON2_6=yes
9177                   have_libpython=yes
9178 else
9179   LIBS=$save_LIBS
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext \
9182     conftest$ac_exeext conftest.$ac_ext
9183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
9184 $as_echo "$HAVE_LIBPYTHON2_6" >&6; }
9185
9186     if test "${HAVE_LIBPYTHON2_6}" = yes; then
9187
9188 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
9189
9190     fi
9191   fi
9192   if test ${have_libpython} = no; then
9193
9194   version=python2.5
9195
9196
9197   HAVE_LIBPYTHON2_5=no
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9199 $as_echo_n "checking for ${version}... " >&6; }
9200   save_LIBS=$LIBS
9201   LIBS="$LIBS -l${version}"
9202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9203 /* end confdefs.h.  */
9204 #include "${version}/Python.h"
9205 int
9206 main ()
9207 {
9208 Py_Initialize ();
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9214   HAVE_LIBPYTHON2_5=yes
9215                   have_libpython=yes
9216 else
9217   LIBS=$save_LIBS
9218 fi
9219 rm -f core conftest.err conftest.$ac_objext \
9220     conftest$ac_exeext conftest.$ac_ext
9221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
9222 $as_echo "$HAVE_LIBPYTHON2_5" >&6; }
9223
9224     if test "${HAVE_LIBPYTHON2_5}" = yes; then
9225
9226 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
9227
9228     fi
9229   fi
9230   if test ${have_libpython} = no; then
9231
9232   version=python2.4
9233
9234
9235   HAVE_LIBPYTHON2_4=no
9236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
9237 $as_echo_n "checking for ${version}... " >&6; }
9238   save_LIBS=$LIBS
9239   LIBS="$LIBS -l${version}"
9240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9241 /* end confdefs.h.  */
9242 #include "${version}/Python.h"
9243 int
9244 main ()
9245 {
9246 Py_Initialize ();
9247   ;
9248   return 0;
9249 }
9250 _ACEOF
9251 if ac_fn_c_try_link "$LINENO"; then :
9252   HAVE_LIBPYTHON2_4=yes
9253                   have_libpython=yes
9254 else
9255   LIBS=$save_LIBS
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext \
9258     conftest$ac_exeext conftest.$ac_ext
9259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
9260 $as_echo "$HAVE_LIBPYTHON2_4" >&6; }
9261
9262     if test "${HAVE_LIBPYTHON2_4}" = yes; then
9263
9264 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
9265
9266     fi
9267   fi
9268   if test ${have_libpython} = no; then
9269     case "${with_python}" in
9270     yes)
9271       as_fn_error "python is missing or unusable" "$LINENO" 5
9272       ;;
9273     auto)
9274       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
9275 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
9276       ;;
9277     *)
9278       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
9279       ;;
9280     esac
9281     CPPFLAGS=$save_CPPFLAGS
9282     LIBS=$save_LIBS
9283   fi
9284 fi
9285
9286 if test "${have_libpython}" = yes; then
9287
9288 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
9289
9290   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
9291   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
9292   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
9293   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
9294
9295   # Flags needed to compile Python code (taken from python-config --cflags).
9296   # We cannot call python-config directly because it will output whatever was
9297   # used when compiling the Python interpreter itself, including flags which
9298   # would make the python-related objects be compiled differently from the
9299   # rest of GDB (e.g., -O2 and -fPIC).
9300   if test "${GCC}" = yes; then
9301     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
9302   fi
9303
9304   if test "x${tentative_python_cflags}" != x; then
9305     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
9306 $as_echo_n "checking compiler flags for python code... " >&6; }
9307     for flag in ${tentative_python_cflags}; do
9308       # Check that the compiler accepts it
9309       saved_CFLAGS="$CFLAGS"
9310       CFLAGS="$CFLAGS $flag"
9311       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h.  */
9313
9314 int
9315 main ()
9316 {
9317
9318   ;
9319   return 0;
9320 }
9321 _ACEOF
9322 if ac_fn_c_try_compile "$LINENO"; then :
9323   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9326       CFLAGS="$saved_CFLAGS"
9327     done
9328     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
9329 $as_echo "${PYTHON_CFLAGS}" >&6; }
9330   fi
9331 else
9332   # Even if Python support is not compiled in, we need to have these files
9333   # included in order to recognize the GDB command "python".
9334   CONFIG_OBS="$CONFIG_OBS python.o python-value.o python-prettyprint.o"
9335   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c python/python-prettyprint.c"
9336 fi
9337
9338
9339 # ------------------------- #
9340 # Checks for header files.  #
9341 # ------------------------- #
9342
9343 ac_header_dirent=no
9344 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9345   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9347 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
9349   $as_echo_n "(cached) " >&6
9350 else
9351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352 /* end confdefs.h.  */
9353 #include <sys/types.h>
9354 #include <$ac_hdr>
9355
9356 int
9357 main ()
9358 {
9359 if ((DIR *) 0)
9360 return 0;
9361   ;
9362   return 0;
9363 }
9364 _ACEOF
9365 if ac_fn_c_try_compile "$LINENO"; then :
9366   eval "$as_ac_Header=yes"
9367 else
9368   eval "$as_ac_Header=no"
9369 fi
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 fi
9372 eval ac_res=\$$as_ac_Header
9373                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9374 $as_echo "$ac_res" >&6; }
9375 eval as_val=\$$as_ac_Header
9376    if test "x$as_val" = x""yes; then :
9377   cat >>confdefs.h <<_ACEOF
9378 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9379 _ACEOF
9380
9381 ac_header_dirent=$ac_hdr; break
9382 fi
9383
9384 done
9385 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9386 if test $ac_header_dirent = dirent.h; then
9387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9388 $as_echo_n "checking for library containing opendir... " >&6; }
9389 if test "${ac_cv_search_opendir+set}" = set; then :
9390   $as_echo_n "(cached) " >&6
9391 else
9392   ac_func_search_save_LIBS=$LIBS
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h.  */
9395
9396 /* Override any GCC internal prototype to avoid an error.
9397    Use char because int might match the return type of a GCC
9398    builtin and then its argument prototype would still apply.  */
9399 #ifdef __cplusplus
9400 extern "C"
9401 #endif
9402 char opendir ();
9403 int
9404 main ()
9405 {
9406 return opendir ();
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 for ac_lib in '' dir; do
9412   if test -z "$ac_lib"; then
9413     ac_res="none required"
9414   else
9415     ac_res=-l$ac_lib
9416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9417   fi
9418   if ac_fn_c_try_link "$LINENO"; then :
9419   ac_cv_search_opendir=$ac_res
9420 fi
9421 rm -f core conftest.err conftest.$ac_objext \
9422     conftest$ac_exeext
9423   if test "${ac_cv_search_opendir+set}" = set; then :
9424   break
9425 fi
9426 done
9427 if test "${ac_cv_search_opendir+set}" = set; then :
9428
9429 else
9430   ac_cv_search_opendir=no
9431 fi
9432 rm conftest.$ac_ext
9433 LIBS=$ac_func_search_save_LIBS
9434 fi
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9436 $as_echo "$ac_cv_search_opendir" >&6; }
9437 ac_res=$ac_cv_search_opendir
9438 if test "$ac_res" != no; then :
9439   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9440
9441 fi
9442
9443 else
9444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9445 $as_echo_n "checking for library containing opendir... " >&6; }
9446 if test "${ac_cv_search_opendir+set}" = set; then :
9447   $as_echo_n "(cached) " >&6
9448 else
9449   ac_func_search_save_LIBS=$LIBS
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h.  */
9452
9453 /* Override any GCC internal prototype to avoid an error.
9454    Use char because int might match the return type of a GCC
9455    builtin and then its argument prototype would still apply.  */
9456 #ifdef __cplusplus
9457 extern "C"
9458 #endif
9459 char opendir ();
9460 int
9461 main ()
9462 {
9463 return opendir ();
9464   ;
9465   return 0;
9466 }
9467 _ACEOF
9468 for ac_lib in '' x; do
9469   if test -z "$ac_lib"; then
9470     ac_res="none required"
9471   else
9472     ac_res=-l$ac_lib
9473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9474   fi
9475   if ac_fn_c_try_link "$LINENO"; then :
9476   ac_cv_search_opendir=$ac_res
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext \
9479     conftest$ac_exeext
9480   if test "${ac_cv_search_opendir+set}" = set; then :
9481   break
9482 fi
9483 done
9484 if test "${ac_cv_search_opendir+set}" = set; then :
9485
9486 else
9487   ac_cv_search_opendir=no
9488 fi
9489 rm conftest.$ac_ext
9490 LIBS=$ac_func_search_save_LIBS
9491 fi
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9493 $as_echo "$ac_cv_search_opendir" >&6; }
9494 ac_res=$ac_cv_search_opendir
9495 if test "$ac_res" != no; then :
9496   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9497
9498 fi
9499
9500 fi
9501
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9503 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9504 if test "${ac_cv_header_stat_broken+set}" = set; then :
9505   $as_echo_n "(cached) " >&6
9506 else
9507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h.  */
9509 #include <sys/types.h>
9510 #include <sys/stat.h>
9511
9512 #if defined S_ISBLK && defined S_IFDIR
9513 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9514 #endif
9515
9516 #if defined S_ISBLK && defined S_IFCHR
9517 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9518 #endif
9519
9520 #if defined S_ISLNK && defined S_IFREG
9521 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9522 #endif
9523
9524 #if defined S_ISSOCK && defined S_IFREG
9525 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9526 #endif
9527
9528 _ACEOF
9529 if ac_fn_c_try_compile "$LINENO"; then :
9530   ac_cv_header_stat_broken=no
9531 else
9532   ac_cv_header_stat_broken=yes
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9535 fi
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9537 $as_echo "$ac_cv_header_stat_broken" >&6; }
9538 if test $ac_cv_header_stat_broken = yes; then
9539
9540 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9541
9542 fi
9543
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9545 $as_echo_n "checking for ANSI C header files... " >&6; }
9546 if test "${ac_cv_header_stdc+set}" = set; then :
9547   $as_echo_n "(cached) " >&6
9548 else
9549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h.  */
9551 #include <stdlib.h>
9552 #include <stdarg.h>
9553 #include <string.h>
9554 #include <float.h>
9555
9556 int
9557 main ()
9558 {
9559
9560   ;
9561   return 0;
9562 }
9563 _ACEOF
9564 if ac_fn_c_try_compile "$LINENO"; then :
9565   ac_cv_header_stdc=yes
9566 else
9567   ac_cv_header_stdc=no
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9570
9571 if test $ac_cv_header_stdc = yes; then
9572   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h.  */
9575 #include <string.h>
9576
9577 _ACEOF
9578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9579   $EGREP "memchr" >/dev/null 2>&1; then :
9580
9581 else
9582   ac_cv_header_stdc=no
9583 fi
9584 rm -f conftest*
9585
9586 fi
9587
9588 if test $ac_cv_header_stdc = yes; then
9589   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 /* end confdefs.h.  */
9592 #include <stdlib.h>
9593
9594 _ACEOF
9595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9596   $EGREP "free" >/dev/null 2>&1; then :
9597
9598 else
9599   ac_cv_header_stdc=no
9600 fi
9601 rm -f conftest*
9602
9603 fi
9604
9605 if test $ac_cv_header_stdc = yes; then
9606   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9607   if test "$cross_compiling" = yes; then :
9608   :
9609 else
9610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611 /* end confdefs.h.  */
9612 #include <ctype.h>
9613 #include <stdlib.h>
9614 #if ((' ' & 0x0FF) == 0x020)
9615 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9616 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9617 #else
9618 # define ISLOWER(c) \
9619                    (('a' <= (c) && (c) <= 'i') \
9620                      || ('j' <= (c) && (c) <= 'r') \
9621                      || ('s' <= (c) && (c) <= 'z'))
9622 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9623 #endif
9624
9625 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9626 int
9627 main ()
9628 {
9629   int i;
9630   for (i = 0; i < 256; i++)
9631     if (XOR (islower (i), ISLOWER (i))
9632         || toupper (i) != TOUPPER (i))
9633       return 2;
9634   return 0;
9635 }
9636 _ACEOF
9637 if ac_fn_c_try_run "$LINENO"; then :
9638
9639 else
9640   ac_cv_header_stdc=no
9641 fi
9642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9643   conftest.$ac_objext conftest.beam conftest.$ac_ext
9644 fi
9645
9646 fi
9647 fi
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9649 $as_echo "$ac_cv_header_stdc" >&6; }
9650 if test $ac_cv_header_stdc = yes; then
9651
9652 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9653
9654 fi
9655
9656 # elf_hp.h is for HP/UX 64-bit shared library support.
9657 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
9658 # unconditionally, so what's the point in checking these?
9659 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
9660                   thread_db.h gnu/libc-version.h signal.h stddef.h \
9661                   stdlib.h string.h memory.h strings.h sys/fault.h \
9662                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
9663                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
9664                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
9665                   sys/types.h sys/wait.h wait.h termios.h termio.h \
9666                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
9667 do :
9668   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9669 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9670 eval as_val=\$$as_ac_Header
9671    if test "x$as_val" = x""yes; then :
9672   cat >>confdefs.h <<_ACEOF
9673 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9674 _ACEOF
9675
9676 fi
9677
9678 done
9679
9680 for ac_header in link.h
9681 do :
9682   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
9683 # include <sys/types.h>
9684 #endif
9685 #if HAVE_NLIST_H
9686 # include <nlist.h>
9687 #endif
9688
9689 "
9690 if test "x$ac_cv_header_link_h" = x""yes; then :
9691   cat >>confdefs.h <<_ACEOF
9692 #define HAVE_LINK_H 1
9693 _ACEOF
9694
9695 fi
9696
9697 done
9698
9699 for ac_header in sys/proc.h
9700 do :
9701   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
9702 # include <sys/param.h>
9703 #endif
9704
9705 "
9706 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
9707   cat >>confdefs.h <<_ACEOF
9708 #define HAVE_SYS_PROC_H 1
9709 _ACEOF
9710
9711 fi
9712
9713 done
9714
9715 for ac_header in sys/user.h
9716 do :
9717   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
9718 # include <sys/param.h>
9719 #endif
9720
9721 "
9722 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
9723   cat >>confdefs.h <<_ACEOF
9724 #define HAVE_SYS_USER_H 1
9725 _ACEOF
9726
9727 fi
9728
9729 done
9730
9731
9732 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
9733 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
9734 # think that we don't have <curses.h> if we're using GCC.
9735 case $host_os in
9736   solaris2.[789])
9737     if test "$GCC" = yes; then
9738
9739 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
9740
9741     fi ;;
9742 esac
9743 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
9744 do :
9745   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9747 eval as_val=\$$as_ac_Header
9748    if test "x$as_val" = x""yes; then :
9749   cat >>confdefs.h <<_ACEOF
9750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9751 _ACEOF
9752
9753 fi
9754
9755 done
9756
9757 for ac_header in term.h
9758 do :
9759   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
9760 # include <curses.h>
9761 #endif
9762
9763 "
9764 if test "x$ac_cv_header_term_h" = x""yes; then :
9765   cat >>confdefs.h <<_ACEOF
9766 #define HAVE_TERM_H 1
9767 _ACEOF
9768
9769 fi
9770
9771 done
9772
9773
9774 # ------------------------- #
9775 # Checks for declarations.  #
9776 # ------------------------- #
9777
9778 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
9779 if test "x$ac_cv_have_decl_free" = x""yes; then :
9780   ac_have_decl=1
9781 else
9782   ac_have_decl=0
9783 fi
9784
9785 cat >>confdefs.h <<_ACEOF
9786 #define HAVE_DECL_FREE $ac_have_decl
9787 _ACEOF
9788 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
9789 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
9790   ac_have_decl=1
9791 else
9792   ac_have_decl=0
9793 fi
9794
9795 cat >>confdefs.h <<_ACEOF
9796 #define HAVE_DECL_MALLOC $ac_have_decl
9797 _ACEOF
9798 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
9799 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
9800   ac_have_decl=1
9801 else
9802   ac_have_decl=0
9803 fi
9804
9805 cat >>confdefs.h <<_ACEOF
9806 #define HAVE_DECL_REALLOC $ac_have_decl
9807 _ACEOF
9808 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
9809 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
9810   ac_have_decl=1
9811 else
9812   ac_have_decl=0
9813 fi
9814
9815 cat >>confdefs.h <<_ACEOF
9816 #define HAVE_DECL_STRERROR $ac_have_decl
9817 _ACEOF
9818 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9819 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
9820   ac_have_decl=1
9821 else
9822   ac_have_decl=0
9823 fi
9824
9825 cat >>confdefs.h <<_ACEOF
9826 #define HAVE_DECL_STRSTR $ac_have_decl
9827 _ACEOF
9828 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9829 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
9830   ac_have_decl=1
9831 else
9832   ac_have_decl=0
9833 fi
9834
9835 cat >>confdefs.h <<_ACEOF
9836 #define HAVE_DECL_GETOPT $ac_have_decl
9837 _ACEOF
9838 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9839 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9840   ac_have_decl=1
9841 else
9842   ac_have_decl=0
9843 fi
9844
9845 cat >>confdefs.h <<_ACEOF
9846 #define HAVE_DECL_SNPRINTF $ac_have_decl
9847 _ACEOF
9848 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9849 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
9850   ac_have_decl=1
9851 else
9852   ac_have_decl=0
9853 fi
9854
9855 cat >>confdefs.h <<_ACEOF
9856 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9857 _ACEOF
9858
9859
9860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9861 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9862 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h.  */
9867 #include <locale.h>
9868 int
9869 main ()
9870 {
9871 return LC_MESSAGES
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 if ac_fn_c_try_link "$LINENO"; then :
9877   am_cv_val_LC_MESSAGES=yes
9878 else
9879   am_cv_val_LC_MESSAGES=no
9880 fi
9881 rm -f core conftest.err conftest.$ac_objext \
9882     conftest$ac_exeext conftest.$ac_ext
9883 fi
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9885 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9886   if test $am_cv_val_LC_MESSAGES = yes; then
9887
9888 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9889
9890   fi
9891
9892
9893 # ----------------------- #
9894 # Checks for structures.  #
9895 # ----------------------- #
9896
9897 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9898 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9899
9900 cat >>confdefs.h <<_ACEOF
9901 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9902 _ACEOF
9903
9904
9905 fi
9906 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9907 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9908
9909 cat >>confdefs.h <<_ACEOF
9910 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9911 _ACEOF
9912
9913
9914 fi
9915
9916
9917 # ------------------ #
9918 # Checks for types.  #
9919 # ------------------ #
9920
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9922 $as_echo_n "checking return type of signal handlers... " >&6; }
9923 if test "${ac_cv_type_signal+set}" = set; then :
9924   $as_echo_n "(cached) " >&6
9925 else
9926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h.  */
9928 #include <sys/types.h>
9929 #include <signal.h>
9930
9931 int
9932 main ()
9933 {
9934 return *(signal (0, 0)) (0) == 1;
9935   ;
9936   return 0;
9937 }
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940   ac_cv_type_signal=int
9941 else
9942   ac_cv_type_signal=void
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9947 $as_echo "$ac_cv_type_signal" >&6; }
9948
9949 cat >>confdefs.h <<_ACEOF
9950 #define RETSIGTYPE $ac_cv_type_signal
9951 _ACEOF
9952
9953
9954 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9955 #include <sys/socket.h>
9956
9957 "
9958 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9959
9960 cat >>confdefs.h <<_ACEOF
9961 #define HAVE_SOCKLEN_T 1
9962 _ACEOF
9963
9964
9965 fi
9966
9967
9968 # ------------------------------------- #
9969 # Checks for compiler characteristics.  #
9970 # ------------------------------------- #
9971
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9973 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9974 if test "${ac_cv_c_const+set}" = set; then :
9975   $as_echo_n "(cached) " >&6
9976 else
9977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h.  */
9979
9980 int
9981 main ()
9982 {
9983 /* FIXME: Include the comments suggested by Paul. */
9984 #ifndef __cplusplus
9985   /* Ultrix mips cc rejects this.  */
9986   typedef int charset[2];
9987   const charset cs;
9988   /* SunOS 4.1.1 cc rejects this.  */
9989   char const *const *pcpcc;
9990   char **ppc;
9991   /* NEC SVR4.0.2 mips cc rejects this.  */
9992   struct point {int x, y;};
9993   static struct point const zero = {0,0};
9994   /* AIX XL C 1.02.0.0 rejects this.
9995      It does not let you subtract one const X* pointer from another in
9996      an arm of an if-expression whose if-part is not a constant
9997      expression */
9998   const char *g = "string";
9999   pcpcc = &g + (g ? g-g : 0);
10000   /* HPUX 7.0 cc rejects these. */
10001   ++pcpcc;
10002   ppc = (char**) pcpcc;
10003   pcpcc = (char const *const *) ppc;
10004   { /* SCO 3.2v4 cc rejects this.  */
10005     char *t;
10006     char const *s = 0 ? (char *) 0 : (char const *) 0;
10007
10008     *t++ = 0;
10009     if (s) return 0;
10010   }
10011   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10012     int x[] = {25, 17};
10013     const int *foo = &x[0];
10014     ++foo;
10015   }
10016   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10017     typedef const int *iptr;
10018     iptr p = 0;
10019     ++p;
10020   }
10021   { /* AIX XL C 1.02.0.0 rejects this saying
10022        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10023     struct s { int j; const int *ap[3]; };
10024     struct s *b; b->j = 5;
10025   }
10026   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10027     const int foo = 10;
10028     if (!foo) return 0;
10029   }
10030   return !cs[0] && !zero.x;
10031 #endif
10032
10033   ;
10034   return 0;
10035 }
10036 _ACEOF
10037 if ac_fn_c_try_compile "$LINENO"; then :
10038   ac_cv_c_const=yes
10039 else
10040   ac_cv_c_const=no
10041 fi
10042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10043 fi
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10045 $as_echo "$ac_cv_c_const" >&6; }
10046 if test $ac_cv_c_const = no; then
10047
10048 $as_echo "#define const /**/" >>confdefs.h
10049
10050 fi
10051
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
10053 $as_echo_n "checking for inline... " >&6; }
10054 if test "${ac_cv_c_inline+set}" = set; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   ac_cv_c_inline=no
10058 for ac_kw in inline __inline__ __inline; do
10059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h.  */
10061 #ifndef __cplusplus
10062 typedef int foo_t;
10063 static $ac_kw foo_t static_foo () {return 0; }
10064 $ac_kw foo_t foo () {return 0; }
10065 #endif
10066
10067 _ACEOF
10068 if ac_fn_c_try_compile "$LINENO"; then :
10069   ac_cv_c_inline=$ac_kw
10070 fi
10071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10072   test "$ac_cv_c_inline" != no && break
10073 done
10074
10075 fi
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
10077 $as_echo "$ac_cv_c_inline" >&6; }
10078
10079 case $ac_cv_c_inline in
10080   inline | yes) ;;
10081   *)
10082     case $ac_cv_c_inline in
10083       no) ac_val=;;
10084       *) ac_val=$ac_cv_c_inline;;
10085     esac
10086     cat >>confdefs.h <<_ACEOF
10087 #ifndef __cplusplus
10088 #define inline $ac_val
10089 #endif
10090 _ACEOF
10091     ;;
10092 esac
10093
10094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10095 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10096 if test "${ac_cv_c_bigendian+set}" = set; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099   ac_cv_c_bigendian=unknown
10100     # See if we're dealing with a universal compiler.
10101     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10102 /* end confdefs.h.  */
10103 #ifndef __APPLE_CC__
10104                not a universal capable compiler
10105              #endif
10106              typedef int dummy;
10107
10108 _ACEOF
10109 if ac_fn_c_try_compile "$LINENO"; then :
10110
10111         # Check for potential -arch flags.  It is not universal unless
10112         # there are at least two -arch flags with different values.
10113         ac_arch=
10114         ac_prev=
10115         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10116          if test -n "$ac_prev"; then
10117            case $ac_word in
10118              i?86 | x86_64 | ppc | ppc64)
10119                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10120                  ac_arch=$ac_word
10121                else
10122                  ac_cv_c_bigendian=universal
10123                  break
10124                fi
10125                ;;
10126            esac
10127            ac_prev=
10128          elif test "x$ac_word" = "x-arch"; then
10129            ac_prev=arch
10130          fi
10131        done
10132 fi
10133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10134     if test $ac_cv_c_bigendian = unknown; then
10135       # See if sys/param.h defines the BYTE_ORDER macro.
10136       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h.  */
10138 #include <sys/types.h>
10139              #include <sys/param.h>
10140
10141 int
10142 main ()
10143 {
10144 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10145                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10146                      && LITTLE_ENDIAN)
10147               bogus endian macros
10148              #endif
10149
10150   ;
10151   return 0;
10152 }
10153 _ACEOF
10154 if ac_fn_c_try_compile "$LINENO"; then :
10155   # It does; now see whether it defined to BIG_ENDIAN or not.
10156          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h.  */
10158 #include <sys/types.h>
10159                 #include <sys/param.h>
10160
10161 int
10162 main ()
10163 {
10164 #if BYTE_ORDER != BIG_ENDIAN
10165                  not big endian
10166                 #endif
10167
10168   ;
10169   return 0;
10170 }
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"; then :
10173   ac_cv_c_bigendian=yes
10174 else
10175   ac_cv_c_bigendian=no
10176 fi
10177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10178 fi
10179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10180     fi
10181     if test $ac_cv_c_bigendian = unknown; then
10182       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
10183       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h.  */
10185 #include <limits.h>
10186
10187 int
10188 main ()
10189 {
10190 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10191               bogus endian macros
10192              #endif
10193
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 if ac_fn_c_try_compile "$LINENO"; then :
10199   # It does; now see whether it defined to _BIG_ENDIAN or not.
10200          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10201 /* end confdefs.h.  */
10202 #include <limits.h>
10203
10204 int
10205 main ()
10206 {
10207 #ifndef _BIG_ENDIAN
10208                  not big endian
10209                 #endif
10210
10211   ;
10212   return 0;
10213 }
10214 _ACEOF
10215 if ac_fn_c_try_compile "$LINENO"; then :
10216   ac_cv_c_bigendian=yes
10217 else
10218   ac_cv_c_bigendian=no
10219 fi
10220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10223     fi
10224     if test $ac_cv_c_bigendian = unknown; then
10225       # Compile a test program.
10226       if test "$cross_compiling" = yes; then :
10227   # Try to guess by grepping values from an object file.
10228          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10229 /* end confdefs.h.  */
10230 short int ascii_mm[] =
10231                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10232                 short int ascii_ii[] =
10233                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10234                 int use_ascii (int i) {
10235                   return ascii_mm[i] + ascii_ii[i];
10236                 }
10237                 short int ebcdic_ii[] =
10238                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10239                 short int ebcdic_mm[] =
10240                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10241                 int use_ebcdic (int i) {
10242                   return ebcdic_mm[i] + ebcdic_ii[i];
10243                 }
10244                 extern int foo;
10245
10246 int
10247 main ()
10248 {
10249 return use_ascii (foo) == use_ebcdic (foo);
10250   ;
10251   return 0;
10252 }
10253 _ACEOF
10254 if ac_fn_c_try_compile "$LINENO"; then :
10255   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10256               ac_cv_c_bigendian=yes
10257             fi
10258             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10259               if test "$ac_cv_c_bigendian" = unknown; then
10260                 ac_cv_c_bigendian=no
10261               else
10262                 # finding both strings is unlikely to happen, but who knows?
10263                 ac_cv_c_bigendian=unknown
10264               fi
10265             fi
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 else
10269   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h.  */
10271 $ac_includes_default
10272 int
10273 main ()
10274 {
10275
10276              /* Are we little or big endian?  From Harbison&Steele.  */
10277              union
10278              {
10279                long int l;
10280                char c[sizeof (long int)];
10281              } u;
10282              u.l = 1;
10283              return u.c[sizeof (long int) - 1] == 1;
10284
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 if ac_fn_c_try_run "$LINENO"; then :
10290   ac_cv_c_bigendian=no
10291 else
10292   ac_cv_c_bigendian=yes
10293 fi
10294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10295   conftest.$ac_objext conftest.beam conftest.$ac_ext
10296 fi
10297
10298     fi
10299 fi
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
10301 $as_echo "$ac_cv_c_bigendian" >&6; }
10302  case $ac_cv_c_bigendian in #(
10303    yes)
10304      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
10305 ;; #(
10306    no)
10307       ;; #(
10308    universal)
10309
10310 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
10311
10312      ;; #(
10313    *)
10314      as_fn_error "unknown endianness
10315  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
10316  esac
10317
10318
10319 # ------------------------------ #
10320 # Checks for library functions.  #
10321 # ------------------------------ #
10322
10323 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10324 # for constant arguments.  Useless!
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
10326 $as_echo_n "checking for working alloca.h... " >&6; }
10327 if test "${ac_cv_working_alloca_h+set}" = set; then :
10328   $as_echo_n "(cached) " >&6
10329 else
10330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h.  */
10332 #include <alloca.h>
10333 int
10334 main ()
10335 {
10336 char *p = (char *) alloca (2 * sizeof (int));
10337                           if (p) return 0;
10338   ;
10339   return 0;
10340 }
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343   ac_cv_working_alloca_h=yes
10344 else
10345   ac_cv_working_alloca_h=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext \
10348     conftest$ac_exeext conftest.$ac_ext
10349 fi
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
10351 $as_echo "$ac_cv_working_alloca_h" >&6; }
10352 if test $ac_cv_working_alloca_h = yes; then
10353
10354 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
10355
10356 fi
10357
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
10359 $as_echo_n "checking for alloca... " >&6; }
10360 if test "${ac_cv_func_alloca_works+set}" = set; then :
10361   $as_echo_n "(cached) " >&6
10362 else
10363   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h.  */
10365 #ifdef __GNUC__
10366 # define alloca __builtin_alloca
10367 #else
10368 # ifdef _MSC_VER
10369 #  include <malloc.h>
10370 #  define alloca _alloca
10371 # else
10372 #  ifdef HAVE_ALLOCA_H
10373 #   include <alloca.h>
10374 #  else
10375 #   ifdef _AIX
10376  #pragma alloca
10377 #   else
10378 #    ifndef alloca /* predefined by HP cc +Olibcalls */
10379 char *alloca ();
10380 #    endif
10381 #   endif
10382 #  endif
10383 # endif
10384 #endif
10385
10386 int
10387 main ()
10388 {
10389 char *p = (char *) alloca (1);
10390                                     if (p) return 0;
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 if ac_fn_c_try_link "$LINENO"; then :
10396   ac_cv_func_alloca_works=yes
10397 else
10398   ac_cv_func_alloca_works=no
10399 fi
10400 rm -f core conftest.err conftest.$ac_objext \
10401     conftest$ac_exeext conftest.$ac_ext
10402 fi
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
10404 $as_echo "$ac_cv_func_alloca_works" >&6; }
10405
10406 if test $ac_cv_func_alloca_works = yes; then
10407
10408 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10409
10410 else
10411   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10412 # that cause trouble.  Some versions do not even contain alloca or
10413 # contain a buggy version.  If you still want to use their alloca,
10414 # use ar to extract alloca.o from them instead of compiling alloca.c.
10415
10416 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10417
10418 $as_echo "#define C_ALLOCA 1" >>confdefs.h
10419
10420
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
10422 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10423 if test "${ac_cv_os_cray+set}" = set; then :
10424   $as_echo_n "(cached) " >&6
10425 else
10426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h.  */
10428 #if defined CRAY && ! defined CRAY2
10429 webecray
10430 #else
10431 wenotbecray
10432 #endif
10433
10434 _ACEOF
10435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10436   $EGREP "webecray" >/dev/null 2>&1; then :
10437   ac_cv_os_cray=yes
10438 else
10439   ac_cv_os_cray=no
10440 fi
10441 rm -f conftest*
10442
10443 fi
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
10445 $as_echo "$ac_cv_os_cray" >&6; }
10446 if test $ac_cv_os_cray = yes; then
10447   for ac_func in _getb67 GETB67 getb67; do
10448     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10449 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10450 eval as_val=\$$as_ac_var
10451    if test "x$as_val" = x""yes; then :
10452
10453 cat >>confdefs.h <<_ACEOF
10454 #define CRAY_STACKSEG_END $ac_func
10455 _ACEOF
10456
10457     break
10458 fi
10459
10460   done
10461 fi
10462
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
10464 $as_echo_n "checking stack direction for C alloca... " >&6; }
10465 if test "${ac_cv_c_stack_direction+set}" = set; then :
10466   $as_echo_n "(cached) " >&6
10467 else
10468   if test "$cross_compiling" = yes; then :
10469   ac_cv_c_stack_direction=0
10470 else
10471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h.  */
10473 $ac_includes_default
10474 int
10475 find_stack_direction ()
10476 {
10477   static char *addr = 0;
10478   auto char dummy;
10479   if (addr == 0)
10480     {
10481       addr = &dummy;
10482       return find_stack_direction ();
10483     }
10484   else
10485     return (&dummy > addr) ? 1 : -1;
10486 }
10487
10488 int
10489 main ()
10490 {
10491   return find_stack_direction () < 0;
10492 }
10493 _ACEOF
10494 if ac_fn_c_try_run "$LINENO"; then :
10495   ac_cv_c_stack_direction=1
10496 else
10497   ac_cv_c_stack_direction=-1
10498 fi
10499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10500   conftest.$ac_objext conftest.beam conftest.$ac_ext
10501 fi
10502
10503 fi
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
10505 $as_echo "$ac_cv_c_stack_direction" >&6; }
10506 cat >>confdefs.h <<_ACEOF
10507 #define STACK_DIRECTION $ac_cv_c_stack_direction
10508 _ACEOF
10509
10510
10511 fi
10512
10513 for ac_header in stdlib.h unistd.h
10514 do :
10515   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10516 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10517 eval as_val=\$$as_ac_Header
10518    if test "x$as_val" = x""yes; then :
10519   cat >>confdefs.h <<_ACEOF
10520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10521 _ACEOF
10522
10523 fi
10524
10525 done
10526
10527 for ac_func in getpagesize
10528 do :
10529   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10530 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10531   cat >>confdefs.h <<_ACEOF
10532 #define HAVE_GETPAGESIZE 1
10533 _ACEOF
10534
10535 fi
10536 done
10537
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
10539 $as_echo_n "checking for working mmap... " >&6; }
10540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10541   $as_echo_n "(cached) " >&6
10542 else
10543   if test "$cross_compiling" = yes; then :
10544   ac_cv_func_mmap_fixed_mapped=no
10545 else
10546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10547 /* end confdefs.h.  */
10548 $ac_includes_default
10549 /* malloc might have been renamed as rpl_malloc. */
10550 #undef malloc
10551
10552 /* Thanks to Mike Haertel and Jim Avera for this test.
10553    Here is a matrix of mmap possibilities:
10554         mmap private not fixed
10555         mmap private fixed at somewhere currently unmapped
10556         mmap private fixed at somewhere already mapped
10557         mmap shared not fixed
10558         mmap shared fixed at somewhere currently unmapped
10559         mmap shared fixed at somewhere already mapped
10560    For private mappings, we should verify that changes cannot be read()
10561    back from the file, nor mmap's back from the file at a different
10562    address.  (There have been systems where private was not correctly
10563    implemented like the infamous i386 svr4.0, and systems where the
10564    VM page cache was not coherent with the file system buffer cache
10565    like early versions of FreeBSD and possibly contemporary NetBSD.)
10566    For shared mappings, we should conversely verify that changes get
10567    propagated back to all the places they're supposed to be.
10568
10569    Grep wants private fixed already mapped.
10570    The main things grep needs to know about mmap are:
10571    * does it exist and is it safe to write into the mmap'd area
10572    * how to use it (BSD variants)  */
10573
10574 #include <fcntl.h>
10575 #include <sys/mman.h>
10576
10577 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10578 char *malloc ();
10579 #endif
10580
10581 /* This mess was copied from the GNU getpagesize.h.  */
10582 #ifndef HAVE_GETPAGESIZE
10583 /* Assume that all systems that can run configure have sys/param.h.  */
10584 # ifndef HAVE_SYS_PARAM_H
10585 #  define HAVE_SYS_PARAM_H 1
10586 # endif
10587
10588 # ifdef _SC_PAGESIZE
10589 #  define getpagesize() sysconf(_SC_PAGESIZE)
10590 # else /* no _SC_PAGESIZE */
10591 #  ifdef HAVE_SYS_PARAM_H
10592 #   include <sys/param.h>
10593 #   ifdef EXEC_PAGESIZE
10594 #    define getpagesize() EXEC_PAGESIZE
10595 #   else /* no EXEC_PAGESIZE */
10596 #    ifdef NBPG
10597 #     define getpagesize() NBPG * CLSIZE
10598 #     ifndef CLSIZE
10599 #      define CLSIZE 1
10600 #     endif /* no CLSIZE */
10601 #    else /* no NBPG */
10602 #     ifdef NBPC
10603 #      define getpagesize() NBPC
10604 #     else /* no NBPC */
10605 #      ifdef PAGESIZE
10606 #       define getpagesize() PAGESIZE
10607 #      endif /* PAGESIZE */
10608 #     endif /* no NBPC */
10609 #    endif /* no NBPG */
10610 #   endif /* no EXEC_PAGESIZE */
10611 #  else /* no HAVE_SYS_PARAM_H */
10612 #   define getpagesize() 8192   /* punt totally */
10613 #  endif /* no HAVE_SYS_PARAM_H */
10614 # endif /* no _SC_PAGESIZE */
10615
10616 #endif /* no HAVE_GETPAGESIZE */
10617
10618 int
10619 main ()
10620 {
10621   char *data, *data2, *data3;
10622   int i, pagesize;
10623   int fd;
10624
10625   pagesize = getpagesize ();
10626
10627   /* First, make a file with some known garbage in it. */
10628   data = (char *) malloc (pagesize);
10629   if (!data)
10630     return 1;
10631   for (i = 0; i < pagesize; ++i)
10632     *(data + i) = rand ();
10633   umask (0);
10634   fd = creat ("conftest.mmap", 0600);
10635   if (fd < 0)
10636     return 1;
10637   if (write (fd, data, pagesize) != pagesize)
10638     return 1;
10639   close (fd);
10640
10641   /* Next, try to mmap the file at a fixed address which already has
10642      something else allocated at it.  If we can, also make sure that
10643      we see the same garbage.  */
10644   fd = open ("conftest.mmap", O_RDWR);
10645   if (fd < 0)
10646     return 1;
10647   data2 = (char *) malloc (2 * pagesize);
10648   if (!data2)
10649     return 1;
10650   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10651   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10652                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10653     return 1;
10654   for (i = 0; i < pagesize; ++i)
10655     if (*(data + i) != *(data2 + i))
10656       return 1;
10657
10658   /* Finally, make sure that changes to the mapped area do not
10659      percolate back to the file as seen by read().  (This is a bug on
10660      some variants of i386 svr4.0.)  */
10661   for (i = 0; i < pagesize; ++i)
10662     *(data2 + i) = *(data2 + i) + 1;
10663   data3 = (char *) malloc (pagesize);
10664   if (!data3)
10665     return 1;
10666   if (read (fd, data3, pagesize) != pagesize)
10667     return 1;
10668   for (i = 0; i < pagesize; ++i)
10669     if (*(data + i) != *(data3 + i))
10670       return 1;
10671   close (fd);
10672   return 0;
10673 }
10674 _ACEOF
10675 if ac_fn_c_try_run "$LINENO"; then :
10676   ac_cv_func_mmap_fixed_mapped=yes
10677 else
10678   ac_cv_func_mmap_fixed_mapped=no
10679 fi
10680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10681   conftest.$ac_objext conftest.beam conftest.$ac_ext
10682 fi
10683
10684 fi
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10686 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10687 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10688
10689 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10690
10691 fi
10692 rm -f conftest.mmap
10693
10694 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10695 if test "x$ac_cv_type_pid_t" = x""yes; then :
10696
10697 else
10698
10699 cat >>confdefs.h <<_ACEOF
10700 #define pid_t int
10701 _ACEOF
10702
10703 fi
10704
10705 for ac_header in vfork.h
10706 do :
10707   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
10708 if test "x$ac_cv_header_vfork_h" = x""yes; then :
10709   cat >>confdefs.h <<_ACEOF
10710 #define HAVE_VFORK_H 1
10711 _ACEOF
10712
10713 fi
10714
10715 done
10716
10717 for ac_func in fork vfork
10718 do :
10719   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10720 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10721 eval as_val=\$$as_ac_var
10722    if test "x$as_val" = x""yes; then :
10723   cat >>confdefs.h <<_ACEOF
10724 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10725 _ACEOF
10726
10727 fi
10728 done
10729
10730 if test "x$ac_cv_func_fork" = xyes; then
10731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
10732 $as_echo_n "checking for working fork... " >&6; }
10733 if test "${ac_cv_func_fork_works+set}" = set; then :
10734   $as_echo_n "(cached) " >&6
10735 else
10736   if test "$cross_compiling" = yes; then :
10737   ac_cv_func_fork_works=cross
10738 else
10739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h.  */
10741 $ac_includes_default
10742 int
10743 main ()
10744 {
10745
10746           /* By Ruediger Kuhlmann. */
10747           return fork () < 0;
10748
10749   ;
10750   return 0;
10751 }
10752 _ACEOF
10753 if ac_fn_c_try_run "$LINENO"; then :
10754   ac_cv_func_fork_works=yes
10755 else
10756   ac_cv_func_fork_works=no
10757 fi
10758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10759   conftest.$ac_objext conftest.beam conftest.$ac_ext
10760 fi
10761
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
10764 $as_echo "$ac_cv_func_fork_works" >&6; }
10765
10766 else
10767   ac_cv_func_fork_works=$ac_cv_func_fork
10768 fi
10769 if test "x$ac_cv_func_fork_works" = xcross; then
10770   case $host in
10771     *-*-amigaos* | *-*-msdosdjgpp*)
10772       # Override, as these systems have only a dummy fork() stub
10773       ac_cv_func_fork_works=no
10774       ;;
10775     *)
10776       ac_cv_func_fork_works=yes
10777       ;;
10778   esac
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
10780 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
10781 fi
10782 ac_cv_func_vfork_works=$ac_cv_func_vfork
10783 if test "x$ac_cv_func_vfork" = xyes; then
10784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
10785 $as_echo_n "checking for working vfork... " >&6; }
10786 if test "${ac_cv_func_vfork_works+set}" = set; then :
10787   $as_echo_n "(cached) " >&6
10788 else
10789   if test "$cross_compiling" = yes; then :
10790   ac_cv_func_vfork_works=cross
10791 else
10792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10793 /* end confdefs.h.  */
10794 /* Thanks to Paul Eggert for this test.  */
10795 $ac_includes_default
10796 #include <sys/wait.h>
10797 #ifdef HAVE_VFORK_H
10798 # include <vfork.h>
10799 #endif
10800 /* On some sparc systems, changes by the child to local and incoming
10801    argument registers are propagated back to the parent.  The compiler
10802    is told about this with #include <vfork.h>, but some compilers
10803    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
10804    static variable whose address is put into a register that is
10805    clobbered by the vfork.  */
10806 static void
10807 #ifdef __cplusplus
10808 sparc_address_test (int arg)
10809 # else
10810 sparc_address_test (arg) int arg;
10811 #endif
10812 {
10813   static pid_t child;
10814   if (!child) {
10815     child = vfork ();
10816     if (child < 0) {
10817       perror ("vfork");
10818       _exit(2);
10819     }
10820     if (!child) {
10821       arg = getpid();
10822       write(-1, "", 0);
10823       _exit (arg);
10824     }
10825   }
10826 }
10827
10828 int
10829 main ()
10830 {
10831   pid_t parent = getpid ();
10832   pid_t child;
10833
10834   sparc_address_test (0);
10835
10836   child = vfork ();
10837
10838   if (child == 0) {
10839     /* Here is another test for sparc vfork register problems.  This
10840        test uses lots of local variables, at least as many local
10841        variables as main has allocated so far including compiler
10842        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
10843        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
10844        reuse the register of parent for one of the local variables,
10845        since it will think that parent can't possibly be used any more
10846        in this routine.  Assigning to the local variable will thus
10847        munge parent in the parent process.  */
10848     pid_t
10849       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10850       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10851     /* Convince the compiler that p..p7 are live; otherwise, it might
10852        use the same hardware register for all 8 local variables.  */
10853     if (p != p1 || p != p2 || p != p3 || p != p4
10854         || p != p5 || p != p6 || p != p7)
10855       _exit(1);
10856
10857     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10858        from child file descriptors.  If the child closes a descriptor
10859        before it execs or exits, this munges the parent's descriptor
10860        as well.  Test for this by closing stdout in the child.  */
10861     _exit(close(fileno(stdout)) != 0);
10862   } else {
10863     int status;
10864     struct stat st;
10865
10866     while (wait(&status) != child)
10867       ;
10868     return (
10869          /* Was there some problem with vforking?  */
10870          child < 0
10871
10872          /* Did the child fail?  (This shouldn't happen.)  */
10873          || status
10874
10875          /* Did the vfork/compiler bug occur?  */
10876          || parent != getpid()
10877
10878          /* Did the file descriptor bug occur?  */
10879          || fstat(fileno(stdout), &st) != 0
10880          );
10881   }
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_run "$LINENO"; then :
10885   ac_cv_func_vfork_works=yes
10886 else
10887   ac_cv_func_vfork_works=no
10888 fi
10889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10890   conftest.$ac_objext conftest.beam conftest.$ac_ext
10891 fi
10892
10893 fi
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10895 $as_echo "$ac_cv_func_vfork_works" >&6; }
10896
10897 fi;
10898 if test "x$ac_cv_func_fork_works" = xcross; then
10899   ac_cv_func_vfork_works=$ac_cv_func_vfork
10900   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10901 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10902 fi
10903
10904 if test "x$ac_cv_func_vfork_works" = xyes; then
10905
10906 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10907
10908 else
10909
10910 $as_echo "#define vfork fork" >>confdefs.h
10911
10912 fi
10913 if test "x$ac_cv_func_fork_works" = xyes; then
10914
10915 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10916
10917 fi
10918
10919 for ac_func in canonicalize_file_name realpath getrusage getuid \
10920                 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
10921                 sigaction sigprocmask sigsetmask socketpair syscall \
10922                 ttrace wborder setlocale iconvlist libiconvlist btowc
10923 do :
10924   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10925 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10926 eval as_val=\$$as_ac_var
10927    if test "x$as_val" = x""yes; then :
10928   cat >>confdefs.h <<_ACEOF
10929 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10930 _ACEOF
10931
10932 fi
10933 done
10934
10935
10936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10937 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10938 if test "${am_cv_langinfo_codeset+set}" = set; then :
10939   $as_echo_n "(cached) " >&6
10940 else
10941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h.  */
10943 #include <langinfo.h>
10944 int
10945 main ()
10946 {
10947 char* cs = nl_langinfo(CODESET);
10948   ;
10949   return 0;
10950 }
10951 _ACEOF
10952 if ac_fn_c_try_link "$LINENO"; then :
10953   am_cv_langinfo_codeset=yes
10954 else
10955   am_cv_langinfo_codeset=no
10956 fi
10957 rm -f core conftest.err conftest.$ac_objext \
10958     conftest$ac_exeext conftest.$ac_ext
10959
10960 fi
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10962 $as_echo "$am_cv_langinfo_codeset" >&6; }
10963   if test $am_cv_langinfo_codeset = yes; then
10964
10965 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10966
10967   fi
10968
10969
10970 # Check the return and argument types of ptrace.  No canned test for
10971 # this, so roll our own.
10972 gdb_ptrace_headers='
10973 #if HAVE_SYS_TYPES_H
10974 # include <sys/types.h>
10975 #endif
10976 #if HAVE_SYS_PTRACE_H
10977 # include <sys/ptrace.h>
10978 #endif
10979 #if HAVE_UNISTD_H
10980 # include <unistd.h>
10981 #endif
10982 '
10983 # There is no point in checking if we don't have a prototype.
10984 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10985 "
10986 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10987   ac_have_decl=1
10988 else
10989   ac_have_decl=0
10990 fi
10991
10992 cat >>confdefs.h <<_ACEOF
10993 #define HAVE_DECL_PTRACE $ac_have_decl
10994 _ACEOF
10995 if test $ac_have_decl = 1; then :
10996
10997 else
10998
10999   : ${gdb_cv_func_ptrace_ret='int'}
11000   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11001
11002 fi
11003
11004 # Check return type.  Varargs (used on GNU/Linux) conflict with the
11005 # empty argument list, so check for that explicitly.
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
11007 $as_echo_n "checking return type of ptrace... " >&6; }
11008 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
11009   $as_echo_n "(cached) " >&6
11010 else
11011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11012 /* end confdefs.h.  */
11013 $gdb_ptrace_headers
11014 int
11015 main ()
11016 {
11017 extern long ptrace (enum __ptrace_request, ...);
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 if ac_fn_c_try_compile "$LINENO"; then :
11023   gdb_cv_func_ptrace_ret='long'
11024 else
11025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h.  */
11027 $gdb_ptrace_headers
11028 int
11029 main ()
11030 {
11031 extern int ptrace ();
11032   ;
11033   return 0;
11034 }
11035 _ACEOF
11036 if ac_fn_c_try_compile "$LINENO"; then :
11037   gdb_cv_func_ptrace_ret='int'
11038 else
11039   gdb_cv_func_ptrace_ret='long'
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044 fi
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
11046 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
11047
11048 cat >>confdefs.h <<_ACEOF
11049 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
11050 _ACEOF
11051
11052 # Check argument types.
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
11054 $as_echo_n "checking types of arguments for ptrace... " >&6; }
11055 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
11056   $as_echo_n "(cached) " >&6
11057 else
11058
11059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h.  */
11061 $gdb_ptrace_headers
11062 int
11063 main ()
11064 {
11065 extern long ptrace (enum __ptrace_request, ...);
11066   ;
11067   return 0;
11068 }
11069 _ACEOF
11070 if ac_fn_c_try_compile "$LINENO"; then :
11071   gdb_cv_func_ptrace_args='int,int,long,long'
11072 else
11073
11074 for gdb_arg1 in 'int' 'long'; do
11075  for gdb_arg2 in 'pid_t' 'int' 'long'; do
11076   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
11077    for gdb_arg4 in 'int' 'long'; do
11078      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h.  */
11080 $gdb_ptrace_headers
11081 int
11082 main ()
11083 {
11084
11085 extern $gdb_cv_func_ptrace_ret
11086   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
11087
11088   ;
11089   return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_compile "$LINENO"; then :
11093   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
11094     break 4;
11095 fi
11096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097     for gdb_arg5 in 'int *' 'int' 'long'; do
11098      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11099 /* end confdefs.h.  */
11100 $gdb_ptrace_headers
11101 int
11102 main ()
11103 {
11104
11105 extern $gdb_cv_func_ptrace_ret
11106   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
11107
11108   ;
11109   return 0;
11110 }
11111 _ACEOF
11112 if ac_fn_c_try_compile "$LINENO"; then :
11113
11114 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
11115     break 5;
11116 fi
11117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11118     done
11119    done
11120   done
11121  done
11122 done
11123 # Provide a safe default value.
11124 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
11125
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 fi
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
11130 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
11131 ac_save_IFS=$IFS; IFS=','
11132 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
11133 IFS=$ac_save_IFS
11134 shift
11135
11136 cat >>confdefs.h <<_ACEOF
11137 #define PTRACE_TYPE_ARG3 $3
11138 _ACEOF
11139
11140 if test -n "$5"; then
11141
11142 cat >>confdefs.h <<_ACEOF
11143 #define PTRACE_TYPE_ARG5 $5
11144 _ACEOF
11145
11146 fi
11147
11148 if test "$cross_compiling" = no; then
11149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11150 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11151 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   if test "$cross_compiling" = yes; then :
11155   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
11156 else
11157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h.  */
11159 $ac_includes_default
11160 int
11161 main ()
11162 {
11163 /* If this system has a BSD-style setpgrp which takes arguments,
11164   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
11165   exit successfully. */
11166   return setpgrp (1,1) != -1;
11167   ;
11168   return 0;
11169 }
11170 _ACEOF
11171 if ac_fn_c_try_run "$LINENO"; then :
11172   ac_cv_func_setpgrp_void=no
11173 else
11174   ac_cv_func_setpgrp_void=yes
11175 fi
11176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11177   conftest.$ac_objext conftest.beam conftest.$ac_ext
11178 fi
11179
11180 fi
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11182 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11183 if test $ac_cv_func_setpgrp_void = yes; then
11184
11185 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11186
11187 fi
11188
11189 else
11190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
11191 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
11192 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
11193   $as_echo_n "(cached) " >&6
11194 else
11195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h.  */
11197
11198 #include <unistd.h>
11199
11200 int
11201 main ()
11202 {
11203
11204   if (setpgrp(1,1) == -1)
11205     exit (0);
11206   else
11207     exit (1);
11208
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 if ac_fn_c_try_compile "$LINENO"; then :
11214   ac_cv_func_setpgrp_void=no
11215 else
11216   ac_cv_func_setpgrp_void=yes
11217 fi
11218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11219 fi
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
11221 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
11222 if test $ac_cv_func_setpgrp_void = yes; then
11223   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
11224
11225 fi
11226 fi
11227
11228 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
11229 # since sigsetjmp might only be defined as a macro.
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
11231 $as_echo_n "checking for sigsetjmp... " >&6; }
11232 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
11233   $as_echo_n "(cached) " >&6
11234 else
11235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h.  */
11237
11238 #include <setjmp.h>
11239
11240 int
11241 main ()
11242 {
11243 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
11244   ;
11245   return 0;
11246 }
11247 _ACEOF
11248 if ac_fn_c_try_compile "$LINENO"; then :
11249   gdb_cv_func_sigsetjmp=yes
11250 else
11251   gdb_cv_func_sigsetjmp=no
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11254 fi
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
11256 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
11257 if test $gdb_cv_func_sigsetjmp = yes; then
11258
11259 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
11260
11261 fi
11262
11263 # Assume we'll default to using the included libiberty regex.
11264 gdb_use_included_regex=yes
11265
11266 # However, if the system regex is GNU regex, then default to *not*
11267 # using the included regex.
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
11269 $as_echo_n "checking for GNU regex... " >&6; }
11270 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
11271   $as_echo_n "(cached) " >&6
11272 else
11273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h.  */
11275 #include <gnu-versions.h>
11276 int
11277 main ()
11278 {
11279 #define REGEX_INTERFACE_VERSION 1
11280 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
11281 # error "Version mismatch"
11282 #endif
11283   ;
11284   return 0;
11285 }
11286 _ACEOF
11287 if ac_fn_c_try_compile "$LINENO"; then :
11288   gdb_cv_have_gnu_regex=yes
11289 else
11290   gdb_cv_have_gnu_regex=no
11291 fi
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 fi
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
11295 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
11296 if test $gdb_cv_have_gnu_regex = yes; then
11297   gdb_use_included_regex=no
11298 fi
11299
11300
11301 # Check whether --with-included-regex was given.
11302 if test "${with_included_regex+set}" = set; then :
11303   withval=$with_included_regex; gdb_with_regex=$withval
11304 else
11305   gdb_with_regex=$gdb_use_included_regex
11306 fi
11307
11308 if test "$gdb_with_regex" = yes; then
11309
11310 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
11311
11312 fi
11313
11314 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
11315 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
11316 #include <sys/proc.h>
11317
11318 "
11319 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
11320
11321 cat >>confdefs.h <<_ACEOF
11322 #define HAVE_STRUCT_THREAD_TD_PCB 1
11323 _ACEOF
11324
11325
11326 fi
11327
11328
11329 # See if <sys/lwp.h> defines `struct lwp`.
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
11331 $as_echo_n "checking for struct lwp... " >&6; }
11332 if test "${gdb_cv_struct_lwp+set}" = set; then :
11333   $as_echo_n "(cached) " >&6
11334 else
11335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h.  */
11337 #include <sys/param.h>
11338 #include <sys/lwp.h>
11339 int
11340 main ()
11341 {
11342 struct lwp l;
11343   ;
11344   return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_compile "$LINENO"; then :
11348   gdb_cv_struct_lwp=yes
11349 else
11350   gdb_cv_struct_lwp=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11353 fi
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
11355 $as_echo "$gdb_cv_struct_lwp" >&6; }
11356 if test $gdb_cv_struct_lwp = yes; then
11357
11358 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
11359
11360 fi
11361
11362 # See if <machine/reg.h> degines `struct reg'.
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
11364 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
11365 if test "${gdb_cv_struct_reg+set}" = set; then :
11366   $as_echo_n "(cached) " >&6
11367 else
11368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h.  */
11370 #include <sys/types.h>
11371 #include <machine/reg.h>
11372 int
11373 main ()
11374 {
11375 struct reg r;
11376   ;
11377   return 0;
11378 }
11379 _ACEOF
11380 if ac_fn_c_try_compile "$LINENO"; then :
11381   gdb_cv_struct_reg=yes
11382 else
11383   gdb_cv_struct_reg=no
11384 fi
11385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11386 fi
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
11388 $as_echo "$gdb_cv_struct_reg" >&6; }
11389 if test $gdb_cv_struct_reg = yes; then
11390
11391 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
11392
11393 fi
11394
11395 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
11396 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
11397 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
11398 "
11399 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
11400
11401 cat >>confdefs.h <<_ACEOF
11402 #define HAVE_STRUCT_REG_R_FS 1
11403 _ACEOF
11404
11405
11406 fi
11407 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
11408 "
11409 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
11410
11411 cat >>confdefs.h <<_ACEOF
11412 #define HAVE_STRUCT_REG_R_GS 1
11413 _ACEOF
11414
11415
11416 fi
11417
11418
11419 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
11421 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
11422 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
11423   $as_echo_n "(cached) " >&6
11424 else
11425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11426 /* end confdefs.h.  */
11427 #include <sys/ptrace.h>
11428 int
11429 main ()
11430 {
11431 PTRACE_GETREGS;
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 if ac_fn_c_try_compile "$LINENO"; then :
11437   gdb_cv_have_ptrace_getregs=yes
11438 else
11439   gdb_cv_have_ptrace_getregs=no
11440 fi
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 fi
11443
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
11445 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
11446 if test $gdb_cv_have_ptrace_getregs = yes; then
11447
11448 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
11449
11450 fi
11451
11452 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
11454 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
11455 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
11456   $as_echo_n "(cached) " >&6
11457 else
11458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h.  */
11460 #include <sys/ptrace.h>
11461 int
11462 main ()
11463 {
11464 PTRACE_GETFPXREGS;
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_compile "$LINENO"; then :
11470   gdb_cv_have_ptrace_getfpxregs=yes
11471 else
11472   gdb_cv_have_ptrace_getfpxregs=no
11473 fi
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11475 fi
11476
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
11478 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
11479 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
11480
11481 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
11482
11483 fi
11484
11485 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
11487 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
11488 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
11489   $as_echo_n "(cached) " >&6
11490 else
11491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492 /* end confdefs.h.  */
11493 #include <sys/types.h>
11494 #include <sys/ptrace.h>
11495 int
11496 main ()
11497 {
11498 PT_GETDBREGS;
11499   ;
11500   return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_compile "$LINENO"; then :
11504   gdb_cv_have_pt_getdbregs=yes
11505 else
11506   gdb_cv_have_pt_getdbregs=no
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11509 fi
11510
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
11512 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
11513 if test $gdb_cv_have_pt_getdbregs = yes; then
11514
11515 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
11516
11517 fi
11518
11519 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
11521 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
11522 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
11523   $as_echo_n "(cached) " >&6
11524 else
11525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h.  */
11527 #include <sys/types.h>
11528 #include <sys/ptrace.h>
11529 int
11530 main ()
11531 {
11532 PT_GETXMMREGS;
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 if ac_fn_c_try_compile "$LINENO"; then :
11538   gdb_cv_have_pt_getxmmregs=yes
11539 else
11540   gdb_cv_have_pt_getxmmregs=no
11541 fi
11542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11543 fi
11544
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
11546 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
11547 if test $gdb_cv_have_pt_getxmmregs = yes; then
11548
11549 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
11550
11551 fi
11552
11553 # Detect which type of /proc is in use, such as for Unixware or Solaris.
11554
11555 if test "${target}" = "${host}"; then
11556   case "${host}" in
11557   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
11558
11559 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11560
11561       ;;
11562   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
11563
11564 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
11565
11566       ;;
11567   mips-sgi-irix5*)
11568       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
11569
11570 $as_echo "#define _KMEMUSER 1" >>confdefs.h
11571
11572       ;;
11573   esac
11574 fi
11575
11576 if test "$ac_cv_header_sys_procfs_h" = yes; then
11577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
11578 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
11579  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
11580   $as_echo_n "(cached) " >&6
11581 else
11582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583 /* end confdefs.h.  */
11584
11585 #define _SYSCALL32
11586 #include <sys/procfs.h>
11587 int
11588 main ()
11589 {
11590 pstatus_t avar
11591   ;
11592   return 0;
11593 }
11594 _ACEOF
11595 if ac_fn_c_try_compile "$LINENO"; then :
11596   bfd_cv_have_sys_procfs_type_pstatus_t=yes
11597 else
11598   bfd_cv_have_sys_procfs_type_pstatus_t=no
11599
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 fi
11603
11604  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
11605
11606 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
11607
11608  fi
11609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
11610 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
11611
11612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
11613 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
11614  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
11615   $as_echo_n "(cached) " >&6
11616 else
11617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11618 /* end confdefs.h.  */
11619
11620 #define _SYSCALL32
11621 #include <sys/procfs.h>
11622 int
11623 main ()
11624 {
11625 prrun_t avar
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_compile "$LINENO"; then :
11631   bfd_cv_have_sys_procfs_type_prrun_t=yes
11632 else
11633   bfd_cv_have_sys_procfs_type_prrun_t=no
11634
11635 fi
11636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11637 fi
11638
11639  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
11640
11641 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
11642
11643  fi
11644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
11645 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
11646
11647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
11648 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
11649  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
11650   $as_echo_n "(cached) " >&6
11651 else
11652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h.  */
11654
11655 #define _SYSCALL32
11656 #include <sys/procfs.h>
11657 int
11658 main ()
11659 {
11660 gregset_t avar
11661   ;
11662   return 0;
11663 }
11664 _ACEOF
11665 if ac_fn_c_try_compile "$LINENO"; then :
11666   bfd_cv_have_sys_procfs_type_gregset_t=yes
11667 else
11668   bfd_cv_have_sys_procfs_type_gregset_t=no
11669
11670 fi
11671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672 fi
11673
11674  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
11675
11676 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
11677
11678  fi
11679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
11680 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
11681
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
11683 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
11684  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
11685   $as_echo_n "(cached) " >&6
11686 else
11687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h.  */
11689
11690 #define _SYSCALL32
11691 #include <sys/procfs.h>
11692 int
11693 main ()
11694 {
11695 fpregset_t avar
11696   ;
11697   return 0;
11698 }
11699 _ACEOF
11700 if ac_fn_c_try_compile "$LINENO"; then :
11701   bfd_cv_have_sys_procfs_type_fpregset_t=yes
11702 else
11703   bfd_cv_have_sys_procfs_type_fpregset_t=no
11704
11705 fi
11706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707 fi
11708
11709  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
11710
11711 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
11712
11713  fi
11714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
11715 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
11716
11717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
11718 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
11719  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h.  */
11724
11725 #define _SYSCALL32
11726 #include <sys/procfs.h>
11727 int
11728 main ()
11729 {
11730 prgregset_t avar
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 if ac_fn_c_try_compile "$LINENO"; then :
11736   bfd_cv_have_sys_procfs_type_prgregset_t=yes
11737 else
11738   bfd_cv_have_sys_procfs_type_prgregset_t=no
11739
11740 fi
11741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11742 fi
11743
11744  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
11745
11746 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
11747
11748  fi
11749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
11750 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
11751
11752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
11753 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
11754  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
11755   $as_echo_n "(cached) " >&6
11756 else
11757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11758 /* end confdefs.h.  */
11759
11760 #define _SYSCALL32
11761 #include <sys/procfs.h>
11762 int
11763 main ()
11764 {
11765 prfpregset_t avar
11766   ;
11767   return 0;
11768 }
11769 _ACEOF
11770 if ac_fn_c_try_compile "$LINENO"; then :
11771   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
11772 else
11773   bfd_cv_have_sys_procfs_type_prfpregset_t=no
11774
11775 fi
11776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 fi
11778
11779  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11780
11781 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
11782
11783  fi
11784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
11785 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
11786
11787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
11788 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
11789  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
11790   $as_echo_n "(cached) " >&6
11791 else
11792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11793 /* end confdefs.h.  */
11794
11795 #define _SYSCALL32
11796 #include <sys/procfs.h>
11797 int
11798 main ()
11799 {
11800 prgregset32_t avar
11801   ;
11802   return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_compile "$LINENO"; then :
11806   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11807 else
11808   bfd_cv_have_sys_procfs_type_prgregset32_t=no
11809
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 fi
11813
11814  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11815
11816 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11817
11818  fi
11819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11820 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11821
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11823 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11824  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11825   $as_echo_n "(cached) " >&6
11826 else
11827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h.  */
11829
11830 #define _SYSCALL32
11831 #include <sys/procfs.h>
11832 int
11833 main ()
11834 {
11835 prfpregset32_t avar
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 if ac_fn_c_try_compile "$LINENO"; then :
11841   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
11842 else
11843   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
11844
11845 fi
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 fi
11848
11849  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11850
11851 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11852
11853  fi
11854  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11855 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11856
11857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11858 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11859  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11860   $as_echo_n "(cached) " >&6
11861 else
11862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h.  */
11864
11865 #define _SYSCALL32
11866 #include <sys/procfs.h>
11867 int
11868 main ()
11869 {
11870 lwpid_t avar
11871   ;
11872   return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_compile "$LINENO"; then :
11876   bfd_cv_have_sys_procfs_type_lwpid_t=yes
11877 else
11878   bfd_cv_have_sys_procfs_type_lwpid_t=no
11879
11880 fi
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882 fi
11883
11884  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11885
11886 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11887
11888  fi
11889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11890 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11891
11892   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11893 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11894  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11895   $as_echo_n "(cached) " >&6
11896 else
11897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h.  */
11899
11900 #define _SYSCALL32
11901 #include <sys/procfs.h>
11902 int
11903 main ()
11904 {
11905 psaddr_t avar
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 if ac_fn_c_try_compile "$LINENO"; then :
11911   bfd_cv_have_sys_procfs_type_psaddr_t=yes
11912 else
11913   bfd_cv_have_sys_procfs_type_psaddr_t=no
11914
11915 fi
11916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 fi
11918
11919  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11920
11921 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11922
11923  fi
11924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11925 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11926
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11928 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11929  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11930   $as_echo_n "(cached) " >&6
11931 else
11932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h.  */
11934
11935 #define _SYSCALL32
11936 #include <sys/procfs.h>
11937 int
11938 main ()
11939 {
11940 prsysent_t avar
11941   ;
11942   return 0;
11943 }
11944 _ACEOF
11945 if ac_fn_c_try_compile "$LINENO"; then :
11946   bfd_cv_have_sys_procfs_type_prsysent_t=yes
11947 else
11948   bfd_cv_have_sys_procfs_type_prsysent_t=no
11949
11950 fi
11951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11952 fi
11953
11954  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11955
11956 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11957
11958  fi
11959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11960 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11961
11962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11963 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11964  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11965   $as_echo_n "(cached) " >&6
11966 else
11967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969
11970 #define _SYSCALL32
11971 #include <sys/procfs.h>
11972 int
11973 main ()
11974 {
11975 pr_sigset_t avar
11976   ;
11977   return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_compile "$LINENO"; then :
11981   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11982 else
11983   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11984
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 fi
11988
11989  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11990
11991 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11992
11993  fi
11994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11995 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11996
11997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11998 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11999  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
12000   $as_echo_n "(cached) " >&6
12001 else
12002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12003 /* end confdefs.h.  */
12004
12005 #define _SYSCALL32
12006 #include <sys/procfs.h>
12007 int
12008 main ()
12009 {
12010 pr_sigaction64_t avar
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 if ac_fn_c_try_compile "$LINENO"; then :
12016   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
12017 else
12018   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
12019
12020 fi
12021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12022 fi
12023
12024  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
12025
12026 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
12027
12028  fi
12029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
12030 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
12031
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
12033 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
12034  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
12035   $as_echo_n "(cached) " >&6
12036 else
12037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h.  */
12039
12040 #define _SYSCALL32
12041 #include <sys/procfs.h>
12042 int
12043 main ()
12044 {
12045 pr_siginfo64_t avar
12046   ;
12047   return 0;
12048 }
12049 _ACEOF
12050 if ac_fn_c_try_compile "$LINENO"; then :
12051   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
12052 else
12053   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
12054
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 fi
12058
12059  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
12060
12061 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
12062
12063  fi
12064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
12065 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
12066
12067
12068
12069
12070
12071   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
12072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
12073 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
12074     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
12075   $as_echo_n "(cached) " >&6
12076 else
12077   if test "$cross_compiling" = yes; then :
12078   gdb_cv_prfpregset_t_broken=yes
12079 else
12080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h.  */
12082 #include <sys/procfs.h>
12083        int main ()
12084        {
12085          if (sizeof (prfpregset_t) == sizeof (void *))
12086            return 1;
12087          return 0;
12088        }
12089 _ACEOF
12090 if ac_fn_c_try_run "$LINENO"; then :
12091   gdb_cv_prfpregset_t_broken=no
12092 else
12093   gdb_cv_prfpregset_t_broken=yes
12094 fi
12095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12096   conftest.$ac_objext conftest.beam conftest.$ac_ext
12097 fi
12098
12099 fi
12100
12101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
12102 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
12103     if test $gdb_cv_prfpregset_t_broken = yes; then
12104
12105 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
12106
12107     fi
12108   fi
12109
12110
12111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
12112 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
12113   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
12114   $as_echo_n "(cached) " >&6
12115 else
12116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117 /* end confdefs.h.  */
12118 #include <unistd.h>
12119 #include <sys/types.h>
12120 #include <sys/procfs.h>
12121
12122 int
12123 main ()
12124 {
12125
12126     int dummy;;
12127     dummy = ioctl(0, PIOCSET, &dummy);
12128
12129   ;
12130   return 0;
12131 }
12132 _ACEOF
12133 if ac_fn_c_try_compile "$LINENO"; then :
12134   gdb_cv_have_procfs_piocset=yes
12135 else
12136   gdb_cv_have_procfs_piocset=no
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 fi
12140
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
12142 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
12143   if test $gdb_cv_have_procfs_piocset = yes; then
12144
12145 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
12146
12147   fi
12148 fi
12149
12150 if test ${host} = ${target} ; then
12151
12152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
12153 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
12154   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
12155   $as_echo_n "(cached) " >&6
12156 else
12157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12158 /* end confdefs.h.  */
12159 #include <link.h>
12160 int
12161 main ()
12162 {
12163 struct link_map lm; (void) lm.l_addr;
12164   ;
12165   return 0;
12166 }
12167 _ACEOF
12168 if ac_fn_c_try_compile "$LINENO"; then :
12169   gdb_cv_have_struct_link_map_with_l_members=yes
12170 else
12171   gdb_cv_have_struct_link_map_with_l_members=no
12172 fi
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174 fi
12175
12176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
12177 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
12178   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
12179
12180 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
12181
12182   fi
12183
12184
12185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
12186 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
12187   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
12188   $as_echo_n "(cached) " >&6
12189 else
12190   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12191 /* end confdefs.h.  */
12192 #include <sys/types.h>
12193 #include <link.h>
12194 int
12195 main ()
12196 {
12197 struct link_map lm; (void) lm.lm_addr;
12198   ;
12199   return 0;
12200 }
12201 _ACEOF
12202 if ac_fn_c_try_compile "$LINENO"; then :
12203   gdb_cv_have_struct_link_map_with_lm_members=yes
12204 else
12205   gdb_cv_have_struct_link_map_with_lm_members=no
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 fi
12209
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
12211 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
12212   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
12213
12214 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
12215
12216   fi
12217
12218
12219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
12220 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
12221   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
12222   $as_echo_n "(cached) " >&6
12223 else
12224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12225 /* end confdefs.h.  */
12226 #include <sys/types.h>
12227 #ifdef HAVE_NLIST_H
12228 #include <nlist.h>
12229 #endif
12230 #include <link.h>
12231 int
12232 main ()
12233 {
12234 struct so_map lm; (void) lm.som_addr;
12235   ;
12236   return 0;
12237 }
12238 _ACEOF
12239 if ac_fn_c_try_compile "$LINENO"; then :
12240   gdb_cv_have_struct_so_map_with_som_members=yes
12241 else
12242   gdb_cv_have_struct_so_map_with_som_members=no
12243 fi
12244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12245 fi
12246
12247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
12248 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
12249   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
12250
12251 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
12252
12253   fi
12254
12255
12256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
12257 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
12258   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
12259   $as_echo_n "(cached) " >&6
12260 else
12261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12262 /* end confdefs.h.  */
12263 #define _SYSCALL32
12264 #include <sys/link.h>
12265 int
12266 main ()
12267 {
12268 struct link_map32 l;
12269   ;
12270   return 0;
12271 }
12272 _ACEOF
12273 if ac_fn_c_try_compile "$LINENO"; then :
12274   gdb_cv_have_struct_link_map32=yes
12275 else
12276   gdb_cv_have_struct_link_map32=no
12277 fi
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 fi
12280
12281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
12282 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
12283   if test $gdb_cv_have_struct_link_map32 = yes; then
12284
12285 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
12286
12287
12288 $as_echo "#define _SYSCALL32 1" >>confdefs.h
12289
12290   fi
12291 fi
12292
12293 # Check if the compiler supports the `long long' type.
12294
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
12296 $as_echo_n "checking for long long support in compiler... " >&6; }
12297 if test "${gdb_cv_c_long_long+set}" = set; then :
12298   $as_echo_n "(cached) " >&6
12299 else
12300   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12301 /* end confdefs.h.  */
12302 extern long long foo;
12303 int
12304 main ()
12305 {
12306 switch (foo & 2) { case 0: return 1; }
12307   ;
12308   return 0;
12309 }
12310 _ACEOF
12311 if ac_fn_c_try_compile "$LINENO"; then :
12312   gdb_cv_c_long_long=yes
12313 else
12314   gdb_cv_c_long_long=no
12315 fi
12316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 fi
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
12319 $as_echo "$gdb_cv_c_long_long" >&6; }
12320 if test $gdb_cv_c_long_long = yes; then
12321
12322 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
12323
12324 fi
12325
12326 # Check if the compiler and runtime support printing long longs.
12327
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
12329 $as_echo_n "checking for long long support in printf... " >&6; }
12330 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
12331   $as_echo_n "(cached) " >&6
12332 else
12333   if test "$cross_compiling" = yes; then :
12334   gdb_cv_printf_has_long_long=no
12335 else
12336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12337 /* end confdefs.h.  */
12338 $ac_includes_default
12339 int
12340 main ()
12341 {
12342 char buf[32];
12343   long long l = 0;
12344   l = (l << 16) + 0x0123;
12345   l = (l << 16) + 0x4567;
12346   l = (l << 16) + 0x89ab;
12347   l = (l << 16) + 0xcdef;
12348   sprintf (buf, "0x%016llx", l);
12349   return (strcmp ("0x0123456789abcdef", buf));
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 if ac_fn_c_try_run "$LINENO"; then :
12355   gdb_cv_printf_has_long_long=yes
12356 else
12357   gdb_cv_printf_has_long_long=no
12358 fi
12359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12360   conftest.$ac_objext conftest.beam conftest.$ac_ext
12361 fi
12362
12363 fi
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
12365 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
12366 if test $gdb_cv_printf_has_long_long = yes; then
12367
12368 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
12369
12370 fi
12371
12372 # Check if the compiler and runtime support printing decfloats.
12373
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
12375 $as_echo_n "checking for decfloat support in printf... " >&6; }
12376 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
12377   $as_echo_n "(cached) " >&6
12378 else
12379   if test "$cross_compiling" = yes; then :
12380   gdb_cv_printf_has_decfloat=no
12381 else
12382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12383 /* end confdefs.h.  */
12384 $ac_includes_default
12385 int
12386 main ()
12387 {
12388 char buf[64];
12389   _Decimal32 d32 = 1.2345df;
12390   _Decimal64 d64 = 1.2345dd;
12391   _Decimal128 d128 = 1.2345dl;
12392   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
12393   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_run "$LINENO"; then :
12399   gdb_cv_printf_has_decfloat=yes
12400 else
12401   gdb_cv_printf_has_decfloat=no
12402 fi
12403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12404   conftest.$ac_objext conftest.beam conftest.$ac_ext
12405 fi
12406
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
12409 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
12410 if test $gdb_cv_printf_has_decfloat = yes; then
12411
12412 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
12413
12414 fi
12415
12416 # Check if the compiler supports the `long double' type.  We can't use
12417 # AC_C_LONG_DOUBLE because that one does additional checks on the
12418 # constants defined in <float.h> that fail on some systems,
12419 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
12420
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
12422 $as_echo_n "checking for long double support in compiler... " >&6; }
12423 if test "${gdb_cv_c_long_double+set}" = set; then :
12424   $as_echo_n "(cached) " >&6
12425 else
12426   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12427 /* end confdefs.h.  */
12428 long double foo;
12429 _ACEOF
12430 if ac_fn_c_try_compile "$LINENO"; then :
12431   gdb_cv_c_long_double=yes
12432 else
12433   gdb_cv_c_long_double=no
12434 fi
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 fi
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
12438 $as_echo "$gdb_cv_c_long_double" >&6; }
12439 if test $gdb_cv_c_long_double = yes; then
12440
12441 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12442
12443 fi
12444
12445 # Check if the compiler and runtime support printing long doubles.
12446
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
12448 $as_echo_n "checking for long double support in printf... " >&6; }
12449 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
12450   $as_echo_n "(cached) " >&6
12451 else
12452   if test "$cross_compiling" = yes; then :
12453   gdb_cv_printf_has_long_double=no
12454 else
12455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h.  */
12457 $ac_includes_default
12458 int
12459 main ()
12460 {
12461 char buf[16];
12462   long double f = 3.141592653;
12463   sprintf (buf, "%Lg", f);
12464   return (strncmp ("3.14159", buf, 7));
12465   ;
12466   return 0;
12467 }
12468 _ACEOF
12469 if ac_fn_c_try_run "$LINENO"; then :
12470   gdb_cv_printf_has_long_double=yes
12471 else
12472   gdb_cv_printf_has_long_double=no
12473 fi
12474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12475   conftest.$ac_objext conftest.beam conftest.$ac_ext
12476 fi
12477
12478 fi
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
12480 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
12481 if test $gdb_cv_printf_has_long_double = yes; then
12482
12483 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
12484
12485 fi
12486
12487 # Check if the compiler and runtime support scanning long doubles.
12488
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
12490 $as_echo_n "checking for long double support in scanf... " >&6; }
12491 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
12492   $as_echo_n "(cached) " >&6
12493 else
12494   if test "$cross_compiling" = yes; then :
12495   gdb_cv_scanf_has_long_double=no
12496 else
12497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h.  */
12499 #include <stdio.h>
12500 int
12501 main ()
12502 {
12503 char *buf = "3.141592653";
12504   long double f = 0;
12505   sscanf (buf, "%Lg", &f);
12506   return !(f > 3.14159 && f < 3.14160);
12507   ;
12508   return 0;
12509 }
12510 _ACEOF
12511 if ac_fn_c_try_run "$LINENO"; then :
12512   gdb_cv_scanf_has_long_double=yes
12513 else
12514   gdb_cv_scanf_has_long_double=no
12515 fi
12516 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12517   conftest.$ac_objext conftest.beam conftest.$ac_ext
12518 fi
12519
12520 fi
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
12522 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
12523 if test $gdb_cv_scanf_has_long_double = yes; then
12524
12525 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
12526
12527 fi
12528
12529 case ${host_os} in
12530 aix*)
12531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
12532 $as_echo_n "checking for -bbigtoc option... " >&6; }
12533 if test "${gdb_cv_bigtoc+set}" = set; then :
12534   $as_echo_n "(cached) " >&6
12535 else
12536
12537     SAVE_LDFLAGS=$LDFLAGS
12538
12539     case $GCC in
12540     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
12541     *) gdb_cv_bigtoc=-bbigtoc ;;
12542     esac
12543
12544     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
12545     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12546 /* end confdefs.h.  */
12547
12548 int
12549 main ()
12550 {
12551 int i;
12552   ;
12553   return 0;
12554 }
12555 _ACEOF
12556 if ac_fn_c_try_link "$LINENO"; then :
12557
12558 else
12559   gdb_cv_bigtoc=
12560 fi
12561 rm -f core conftest.err conftest.$ac_objext \
12562     conftest$ac_exeext conftest.$ac_ext
12563     LDFLAGS="${SAVE_LDFLAGS}"
12564
12565 fi
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
12567 $as_echo "$gdb_cv_bigtoc" >&6; }
12568   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
12569   ;;
12570 esac
12571
12572
12573
12574 if test ${build} = ${host} -a ${host} = ${target} ; then
12575    case ${host_os} in
12576    hpux*)
12577       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
12578 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
12579       if test -f /usr/include/dce/cma_config.h ; then
12580          if test "$GCC" = "yes" ; then
12581             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12582 $as_echo "yes" >&6; }
12583
12584 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
12585
12586             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
12587             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
12588          else
12589             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
12590 $as_echo "no (suppressed because you are not using GCC)" >&6; }
12591          fi
12592       else
12593          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12594 $as_echo "no" >&6; }
12595       fi
12596       ;;
12597    solaris*)
12598       # See if thread_db library is around for Solaris thread debugging.
12599       # Note that we must explicitly test for version 1 of the library
12600       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
12601       # the same API.
12602       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
12603 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
12604       if test -f /usr/lib/libthread_db.so.1 ; then
12605          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12606 $as_echo "yes" >&6; }
12607
12608 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
12609
12610          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
12611          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
12612          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12615   $as_echo_n "(cached) " >&6
12616 else
12617   ac_check_lib_save_LIBS=$LIBS
12618 LIBS="-ldl  $LIBS"
12619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620 /* end confdefs.h.  */
12621
12622 /* Override any GCC internal prototype to avoid an error.
12623    Use char because int might match the return type of a GCC
12624    builtin and then its argument prototype would still apply.  */
12625 #ifdef __cplusplus
12626 extern "C"
12627 #endif
12628 char dlopen ();
12629 int
12630 main ()
12631 {
12632 return dlopen ();
12633   ;
12634   return 0;
12635 }
12636 _ACEOF
12637 if ac_fn_c_try_link "$LINENO"; then :
12638   ac_cv_lib_dl_dlopen=yes
12639 else
12640   ac_cv_lib_dl_dlopen=no
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext \
12643     conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12645 fi
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12648 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12649   cat >>confdefs.h <<_ACEOF
12650 #define HAVE_LIBDL 1
12651 _ACEOF
12652
12653   LIBS="-ldl $LIBS"
12654
12655 fi
12656
12657          if test "$GCC" = "yes" ; then
12658             # The GNU linker requires the -export-dynamic option to make
12659             # all symbols visible in the dynamic symbol table.
12660             hold_ldflags=$LDFLAGS
12661             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
12662 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
12663             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
12664             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h.  */
12666
12667 int
12668 main ()
12669 {
12670 int i;
12671   ;
12672   return 0;
12673 }
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676   found=yes
12677 else
12678   found=no
12679 fi
12680 rm -f core conftest.err conftest.$ac_objext \
12681     conftest$ac_exeext conftest.$ac_ext
12682             LDFLAGS=$hold_ldflags
12683             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
12684 $as_echo "$found" >&6; }
12685             if test $found = yes; then
12686                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
12687             fi
12688          fi
12689          # Sun randomly tweaked the prototypes in <proc_service.h>
12690          # at one point.
12691          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
12692 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
12693          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696
12697             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12698 /* end confdefs.h.  */
12699
12700                 #include <proc_service.h>
12701                 ps_err_e ps_pdwrite
12702                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
12703
12704 int
12705 main ()
12706 {
12707
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 if ac_fn_c_try_compile "$LINENO"; then :
12713   gdb_cv_proc_service_is_old=no
12714 else
12715   gdb_cv_proc_service_is_old=yes
12716 fi
12717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12718
12719 fi
12720
12721          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
12722 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
12723          if test $gdb_cv_proc_service_is_old = yes; then
12724
12725 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
12726
12727          fi
12728       else
12729          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730 $as_echo "no" >&6; }
12731       fi
12732       ;;
12733    aix*)
12734       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
12735 $as_echo_n "checking for AiX thread debugging library... " >&6; }
12736       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
12737   $as_echo_n "(cached) " >&6
12738 else
12739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h.  */
12741 #include <sys/pthdebug.h>
12742 int
12743 main ()
12744 {
12745 #ifndef PTHDB_VERSION_3
12746                                     #error
12747                                     #endif
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 if ac_fn_c_try_compile "$LINENO"; then :
12753   gdb_cv_have_aix_thread_debug=yes
12754 else
12755   gdb_cv_have_aix_thread_debug=no
12756 fi
12757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12758 fi
12759
12760       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12761 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12762       if test $gdb_cv_have_aix_thread_debug = yes; then
12763          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12764          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12765          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
12766       fi
12767       ;;
12768    esac
12769
12770 fi
12771
12772 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12773    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12774 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12775 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12776   $as_echo_n "(cached) " >&6
12777 else
12778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h.  */
12780 #include <thread_db.h>
12781 int
12782 main ()
12783 {
12784 int i = TD_NOTALLOC;
12785   ;
12786   return 0;
12787 }
12788 _ACEOF
12789 if ac_fn_c_try_compile "$LINENO"; then :
12790   gdb_cv_thread_db_h_has_td_notalloc=yes
12791 else
12792   gdb_cv_thread_db_h_has_td_notalloc=no
12793
12794 fi
12795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796
12797 fi
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12799 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12800    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12801 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12802 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12803   $as_echo_n "(cached) " >&6
12804 else
12805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h.  */
12807 #include <thread_db.h>
12808 int
12809 main ()
12810 {
12811 int i = TD_VERSION;
12812   ;
12813   return 0;
12814 }
12815 _ACEOF
12816 if ac_fn_c_try_compile "$LINENO"; then :
12817   gdb_cv_thread_db_h_has_td_version=yes
12818 else
12819   gdb_cv_thread_db_h_has_td_version=no
12820
12821 fi
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823
12824 fi
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12826 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12828 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12829 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12830   $as_echo_n "(cached) " >&6
12831 else
12832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12833 /* end confdefs.h.  */
12834 #include <thread_db.h>
12835 int
12836 main ()
12837 {
12838 int i = TD_NOTLS;
12839   ;
12840   return 0;
12841 }
12842 _ACEOF
12843 if ac_fn_c_try_compile "$LINENO"; then :
12844   gdb_cv_thread_db_h_has_td_notls=yes
12845 else
12846   gdb_cv_thread_db_h_has_td_notls=no
12847
12848 fi
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850
12851 fi
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12853 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12854 fi
12855 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12856
12857 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12858
12859 fi
12860 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12861
12862 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12863
12864 fi
12865 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12866
12867 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12868
12869 fi
12870
12871 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12873 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12874 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12875   $as_echo_n "(cached) " >&6
12876 else
12877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h.  */
12879 #include <sys/syscall.h>
12880 int
12881 main ()
12882 {
12883 int i = __NR_tkill;
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 if ac_fn_c_try_compile "$LINENO"; then :
12889   gdb_cv_sys_syscall_h_has_tkill=yes
12890 else
12891   gdb_cv_sys_syscall_h_has_tkill=no
12892
12893 fi
12894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12895
12896 fi
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12898 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12899 fi
12900 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12901
12902 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12903
12904 fi
12905
12906 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12907 "
12908 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12909   ac_have_decl=1
12910 else
12911   ac_have_decl=0
12912 fi
12913
12914 cat >>confdefs.h <<_ACEOF
12915 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12916 _ACEOF
12917
12918
12919 if test "$cross_compiling" = yes; then :
12920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h.  */
12922 #include <sys/personality.h>
12923 int
12924 main ()
12925 {
12926
12927 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
12928 #       define ADDR_NO_RANDOMIZE 0x0040000
12929 #      endif
12930        /* Test the flag could be set and stays set.  */
12931        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12932        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12933            return 1
12934   ;
12935   return 0;
12936 }
12937 _ACEOF
12938 if ac_fn_c_try_link "$LINENO"; then :
12939   have_personality=true
12940 else
12941   have_personality=false
12942 fi
12943 rm -f core conftest.err conftest.$ac_objext \
12944     conftest$ac_exeext conftest.$ac_ext
12945 else
12946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h.  */
12948 #include <sys/personality.h>
12949 int
12950 main ()
12951 {
12952
12953 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
12954 #       define ADDR_NO_RANDOMIZE 0x0040000
12955 #      endif
12956        /* Test the flag could be set and stays set.  */
12957        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12958        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12959            return 1
12960   ;
12961   return 0;
12962 }
12963 _ACEOF
12964 if ac_fn_c_try_run "$LINENO"; then :
12965   have_personality=true
12966 else
12967   have_personality=false
12968 fi
12969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12970   conftest.$ac_objext conftest.beam conftest.$ac_ext
12971 fi
12972
12973 if $have_personality
12974 then
12975
12976 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12977
12978 fi
12979
12980
12981 target_sysroot_reloc=0
12982
12983 # Check whether --with-sysroot was given.
12984 if test "${with_sysroot+set}" = set; then :
12985   withval=$with_sysroot;
12986  case ${with_sysroot} in
12987  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
12988  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
12989  esac
12990
12991  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
12992
12993  if test "x$prefix" = xNONE; then
12994   test_prefix=/usr/local
12995  else
12996   test_prefix=$prefix
12997  fi
12998  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12999   test_exec_prefix=$test_prefix
13000  else
13001   test_exec_prefix=$exec_prefix
13002  fi
13003  case ${TARGET_SYSTEM_ROOT} in
13004  "${test_prefix}"|"${test_prefix}/"*|\
13005  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
13006  '${prefix}'|'${prefix}/'*|\
13007  '${exec_prefix}'|'${exec_prefix}/'*)
13008    target_sysroot_reloc=1
13009    ;;
13010  esac
13011
13012 else
13013
13014  TARGET_SYSTEM_ROOT=
13015  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
13016
13017 fi
13018
13019 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
13020
13021
13022
13023
13024
13025 # Check whether --with-system-gdbinit was given.
13026 if test "${with_system_gdbinit+set}" = set; then :
13027   withval=$with_system_gdbinit;
13028     SYSTEM_GDBINIT=$withval
13029 else
13030   SYSTEM_GDBINIT=
13031 fi
13032
13033
13034   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
13035   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13036   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
13037   ac_define_dir=`eval echo $ac_define_dir`
13038
13039 cat >>confdefs.h <<_ACEOF
13040 #define SYSTEM_GDBINIT "$ac_define_dir"
13041 _ACEOF
13042
13043
13044
13045   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
13046      if test "x$prefix" = xNONE; then
13047         test_prefix=/usr/local
13048      else
13049         test_prefix=$prefix
13050      fi
13051   else
13052      test_prefix=$exec_prefix
13053   fi
13054   value=0
13055   case ${ac_define_dir} in
13056      "${test_prefix}"|"${test_prefix}/"*|\
13057         '${exec_prefix}'|'${exec_prefix}/'*)
13058      value=1
13059      ;;
13060   esac
13061
13062 cat >>confdefs.h <<_ACEOF
13063 #define SYSTEM_GDBINIT_RELOCATABLE $value
13064 _ACEOF
13065
13066
13067
13068 # Check whether --enable-werror was given.
13069 if test "${enable_werror+set}" = set; then :
13070   enableval=$enable_werror; case "${enableval}" in
13071      yes | y) ERROR_ON_WARNING="yes" ;;
13072      no | n)  ERROR_ON_WARNING="no" ;;
13073      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
13074    esac
13075 fi
13076
13077
13078 # Enable -Werror by default when using gcc
13079 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
13080     ERROR_ON_WARNING=yes
13081 fi
13082
13083 WERROR_CFLAGS=""
13084 if test "${ERROR_ON_WARNING}" = yes ; then
13085     WERROR_CFLAGS="-Werror"
13086 fi
13087
13088 # The entries after -Wno-pointer-sign are disabled warnings which may
13089 # be enabled in the future, which can not currently be used to build
13090 # GDB.
13091 # NOTE: If you change this list, remember to update
13092 # gdb/doc/gdbint.texinfo.
13093 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
13094 -Wformat-nonliteral -Wno-pointer-sign \
13095 -Wno-unused -Wno-switch -Wno-char-subscripts"
13096
13097 # Enable -Wno-format by default when using gcc on mingw since many
13098 # GCC versions complain about %I64.
13099 case "${host}" in
13100   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
13101 esac
13102
13103 # Check whether --enable-build-warnings was given.
13104 if test "${enable_build_warnings+set}" = set; then :
13105   enableval=$enable_build_warnings; case "${enableval}" in
13106   yes)  ;;
13107   no)   build_warnings="-w";;
13108   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13109         build_warnings="${build_warnings} ${t}";;
13110   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13111         build_warnings="${t} ${build_warnings}";;
13112   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13113 esac
13114 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13115   echo "Setting compiler warning flags = $build_warnings" 6>&1
13116 fi
13117 fi
13118 # Check whether --enable-gdb-build-warnings was given.
13119 if test "${enable_gdb_build_warnings+set}" = set; then :
13120   enableval=$enable_gdb_build_warnings; case "${enableval}" in
13121   yes)  ;;
13122   no)   build_warnings="-w";;
13123   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13124         build_warnings="${build_warnings} ${t}";;
13125   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
13126         build_warnings="${t} ${build_warnings}";;
13127   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
13128 esac
13129 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
13130   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
13131 fi
13132 fi
13133 WARN_CFLAGS=""
13134 if test "x${build_warnings}" != x -a "x$GCC" = xyes
13135 then
13136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
13137 $as_echo_n "checking compiler warning flags... " >&6; }
13138     # Separate out the -Werror flag as some files just cannot be
13139     # compiled with it enabled.
13140     for w in ${build_warnings}; do
13141         case $w in
13142         -Werr*) WERROR_CFLAGS=-Werror ;;
13143         *) # Check that GCC accepts it
13144             saved_CFLAGS="$CFLAGS"
13145             CFLAGS="$CFLAGS $w"
13146             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h.  */
13148
13149 int
13150 main ()
13151 {
13152
13153   ;
13154   return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_compile "$LINENO"; then :
13158   WARN_CFLAGS="${WARN_CFLAGS} $w"
13159 fi
13160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13161             CFLAGS="$saved_CFLAGS"
13162         esac
13163     done
13164     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
13165 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
13166 fi
13167
13168
13169
13170 # In the Cygwin environment, we need some additional flags.
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
13172 $as_echo_n "checking for cygwin... " >&6; }
13173 if test "${gdb_cv_os_cygwin+set}" = set; then :
13174   $as_echo_n "(cached) " >&6
13175 else
13176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h.  */
13178
13179 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
13180 lose
13181 #endif
13182 _ACEOF
13183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13184   $EGREP "lose" >/dev/null 2>&1; then :
13185   gdb_cv_os_cygwin=yes
13186 else
13187   gdb_cv_os_cygwin=no
13188 fi
13189 rm -f conftest*
13190
13191 fi
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
13193 $as_echo "$gdb_cv_os_cygwin" >&6; }
13194
13195
13196 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
13197 case ${host} in
13198   *go32* ) SER_HARDWIRE=ser-go32.o ;;
13199   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
13200   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
13201 esac
13202
13203
13204 # libreadline needs libuser32.a in a cygwin environment
13205 WIN32LIBS=
13206 if test x$gdb_cv_os_cygwin = xyes; then
13207     WIN32LIBS="-luser32"
13208     case "${target}" in
13209         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
13210         ;;
13211     esac
13212 fi
13213
13214 # The ser-tcp.c module requires sockets.
13215 case ${host} in
13216   *mingw32*)
13217
13218 $as_echo "#define USE_WIN32API 1" >>confdefs.h
13219
13220     WIN32LIBS="$WIN32LIBS -lws2_32"
13221     ;;
13222 esac
13223
13224
13225 # Add ELF support to GDB, but only if BFD includes ELF support.
13226 OLD_CFLAGS=$CFLAGS
13227 OLD_LDFLAGS=$LDFLAGS
13228 OLD_LIBS=$LIBS
13229 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
13230 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
13231 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
13232 LIBS="-lbfd -liberty $intl $LIBS"
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
13234 $as_echo_n "checking for ELF support in BFD... " >&6; }
13235 if test "${gdb_cv_var_elf+set}" = set; then :
13236   $as_echo_n "(cached) " >&6
13237 else
13238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13239 /* end confdefs.h.  */
13240 #include <stdlib.h>
13241 #include "bfd.h"
13242 #include "elf-bfd.h"
13243
13244 int
13245 main ()
13246 {
13247 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
13248   ;
13249   return 0;
13250 }
13251 _ACEOF
13252 if ac_fn_c_try_link "$LINENO"; then :
13253   gdb_cv_var_elf=yes
13254 else
13255   gdb_cv_var_elf=no
13256 fi
13257 rm -f core conftest.err conftest.$ac_objext \
13258     conftest$ac_exeext conftest.$ac_ext
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
13261 $as_echo "$gdb_cv_var_elf" >&6; }
13262 if test $gdb_cv_var_elf = yes; then
13263   CONFIG_OBS="$CONFIG_OBS elfread.o"
13264
13265 $as_echo "#define HAVE_ELF 1" >>confdefs.h
13266
13267 fi
13268 CFLAGS=$OLD_CFLAGS
13269 LDFLAGS=$OLD_LDFLAGS
13270 LIBS=$OLD_LIBS
13271
13272 # Add any host-specific objects to GDB.
13273 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
13274
13275 LIBGUI="../libgui/src/libgui.a"
13276 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
13277
13278
13279
13280 WIN32LDAPP=
13281
13282
13283
13284 case "${host}" in
13285 *-*-cygwin* | *-*-mingw* )
13286     configdir="win"
13287     ;;
13288 *)
13289     configdir="unix"
13290     ;;
13291 esac
13292
13293 GDBTKLIBS=
13294 if test "${enable_gdbtk}" = "yes"; then
13295
13296     # Gdbtk must have an absolute path to srcdir in order to run
13297     # properly when not installed.
13298     here=`pwd`
13299     cd ${srcdir}
13300     GDBTK_SRC_DIR=`pwd`
13301     cd $here
13302
13303
13304     #
13305     # Ok, lets find the tcl configuration
13306     # First, look for one uninstalled.
13307     # the alternative search directory is invoked by --with-tcl
13308     #
13309
13310     if test x"${no_tcl}" = x ; then
13311         # we reset no_tcl in case something fails here
13312         no_tcl=true
13313
13314 # Check whether --with-tcl was given.
13315 if test "${with_tcl+set}" = set; then :
13316   withval=$with_tcl; with_tclconfig=${withval}
13317 fi
13318
13319         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
13320 $as_echo_n "checking for Tcl configuration... " >&6; }
13321         if test "${ac_cv_c_tclconfig+set}" = set; then :
13322   $as_echo_n "(cached) " >&6
13323 else
13324
13325
13326             # First check to see if --with-tcl was specified.
13327             case "${host}" in
13328                 *-*-cygwin*) platDir="win" ;;
13329                 *) platDir="unix" ;;
13330             esac
13331             if test x"${with_tclconfig}" != x ; then
13332                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
13333                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
13334                 else
13335                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
13336                 fi
13337             fi
13338
13339             # then check for a private Tcl installation
13340             if test x"${ac_cv_c_tclconfig}" = x ; then
13341                 for i in \
13342                         ../tcl \
13343                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13344                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
13345                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
13346                         ../../tcl \
13347                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13348                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
13349                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
13350                         ../../../tcl \
13351                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13352                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
13353                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
13354                     if test -f "$i/$platDir/tclConfig.sh" ; then
13355                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13356                         break
13357                     fi
13358                 done
13359             fi
13360
13361             # on Darwin, check in Framework installation locations
13362             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
13363                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13364                         `ls -d /Library/Frameworks 2>/dev/null` \
13365                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
13366                         `ls -d /System/Library/Frameworks 2>/dev/null` \
13367                         ; do
13368                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
13369                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
13370                         break
13371                     fi
13372                 done
13373             fi
13374
13375             # check in a few common install locations
13376             if test x"${ac_cv_c_tclconfig}" = x ; then
13377                 for i in `ls -d ${libdir} 2>/dev/null` \
13378                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
13379                         `ls -d ${prefix}/lib 2>/dev/null` \
13380                         `ls -d /usr/local/lib 2>/dev/null` \
13381                         `ls -d /usr/contrib/lib 2>/dev/null` \
13382                         `ls -d /usr/lib 2>/dev/null` \
13383                         ; do
13384                     if test -f "$i/tclConfig.sh" ; then
13385                         ac_cv_c_tclconfig=`(cd $i; pwd)`
13386                         break
13387                     fi
13388                 done
13389             fi
13390
13391             # check in a few other private locations
13392             if test x"${ac_cv_c_tclconfig}" = x ; then
13393                 for i in \
13394                         ${srcdir}/../tcl \
13395                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
13396                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
13397                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
13398                     if test -f "$i/$platDir/tclConfig.sh" ; then
13399                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
13400                     break
13401                 fi
13402                 done
13403             fi
13404
13405 fi
13406
13407
13408         if test x"${ac_cv_c_tclconfig}" = x ; then
13409             TCL_BIN_DIR="# no Tcl configs found"
13410             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
13411 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
13412         else
13413             no_tcl=
13414             TCL_BIN_DIR=${ac_cv_c_tclconfig}
13415             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
13416 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13417         fi
13418     fi
13419
13420
13421     # If $no_tk is nonempty, then we can't do Tk, and there is no
13422     # point to doing Tcl.
13423
13424     #
13425     # Ok, lets find the tk configuration
13426     # First, look for one uninstalled.
13427     # the alternative search directory is invoked by --with-tk
13428     #
13429
13430     if test x"${no_tk}" = x ; then
13431         # we reset no_tk in case something fails here
13432         no_tk=true
13433
13434 # Check whether --with-tk was given.
13435 if test "${with_tk+set}" = set; then :
13436   withval=$with_tk; with_tkconfig=${withval}
13437 fi
13438
13439         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
13440 $as_echo_n "checking for Tk configuration... " >&6; }
13441         if test "${ac_cv_c_tkconfig+set}" = set; then :
13442   $as_echo_n "(cached) " >&6
13443 else
13444
13445
13446             # First check to see if --with-tkconfig was specified.
13447             if test x"${with_tkconfig}" != x ; then
13448                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
13449                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
13450                 else
13451                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
13452                 fi
13453             fi
13454
13455             # then check for a private Tk library
13456             case "${host}" in
13457                 *-*-cygwin*) platDir="win" ;;
13458                 *) platDir="unix" ;;
13459             esac
13460             if test x"${ac_cv_c_tkconfig}" = x ; then
13461                 for i in \
13462                         ../tk \
13463                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13464                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
13465                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
13466                         ../../tk \
13467                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13468                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
13469                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
13470                         ../../../tk \
13471                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13472                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
13473                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
13474                     if test -f "$i/$platDir/tkConfig.sh" ; then
13475                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13476                         break
13477                     fi
13478                 done
13479             fi
13480
13481             # on Darwin, check in Framework installation locations
13482             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
13483                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
13484                         `ls -d /Library/Frameworks 2>/dev/null` \
13485                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
13486                         `ls -d /System/Library/Frameworks 2>/dev/null` \
13487                         ; do
13488                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
13489                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
13490                         break
13491                     fi
13492                 done
13493             fi
13494
13495             # check in a few common install locations
13496             if test x"${ac_cv_c_tkconfig}" = x ; then
13497                 for i in `ls -d ${libdir} 2>/dev/null` \
13498                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
13499                         `ls -d ${prefix}/lib 2>/dev/null` \
13500                         `ls -d /usr/local/lib 2>/dev/null` \
13501                         `ls -d /usr/contrib/lib 2>/dev/null` \
13502                         `ls -d /usr/lib 2>/dev/null` \
13503                         ; do
13504                     if test -f "$i/tkConfig.sh" ; then
13505                         ac_cv_c_tkconfig=`(cd $i; pwd)`
13506                         break
13507                     fi
13508                 done
13509             fi
13510             # check in a few other private locations
13511             if test x"${ac_cv_c_tkconfig}" = x ; then
13512                 for i in \
13513                         ${srcdir}/../tk \
13514                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
13515                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
13516                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
13517                     if test -f "$i/$platDir/tkConfig.sh" ; then
13518                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
13519                         break
13520                     fi
13521                 done
13522             fi
13523
13524 fi
13525
13526
13527         if test x"${ac_cv_c_tkconfig}" = x ; then
13528             TK_BIN_DIR="# no Tk configs found"
13529             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
13530 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
13531         else
13532             no_tk=
13533             TK_BIN_DIR=${ac_cv_c_tkconfig}
13534             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
13535 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13536         fi
13537     fi
13538
13539
13540     if test -z "${no_tcl}" -a -z "${no_tk}"; then
13541
13542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
13543 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
13544
13545     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
13546         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13547 $as_echo "loading" >&6; }
13548         . ${TCL_BIN_DIR}/tclConfig.sh
13549     else
13550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
13551 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
13552     fi
13553
13554     # eval is required to do the TCL_DBGX substitution
13555     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
13556     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
13557
13558     # If the TCL_BIN_DIR is the build directory (not the install directory),
13559     # then set the common variable name to the value of the build variables.
13560     # For example, the variable TCL_LIB_SPEC will be set to the value
13561     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
13562     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
13563     # installed and uninstalled version of Tcl.
13564     if test -f "${TCL_BIN_DIR}/Makefile" ; then
13565         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
13566         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
13567         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
13568     elif test "`uname -s`" = "Darwin"; then
13569         # If Tcl was built as a framework, attempt to use the libraries
13570         # from the framework at the given location so that linking works
13571         # against Tcl.framework installed in an arbitary location.
13572         case ${TCL_DEFS} in
13573             *TCL_FRAMEWORK*)
13574                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
13575                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
13576                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
13577                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
13578                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
13579                             break
13580                         fi
13581                     done
13582                 fi
13583                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
13584                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
13585                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
13586                 fi
13587                 ;;
13588         esac
13589     fi
13590
13591     # eval is required to do the TCL_DBGX substitution
13592     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
13593     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
13594     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
13595     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611         # Check for in-tree tcl
13612         here=`pwd`
13613         cd ${srcdir}/..
13614         topdir=`pwd`
13615         cd ${here}
13616
13617         intree="no"
13618         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
13619           intree="yes"
13620         fi
13621
13622         # Find Tcl private headers
13623         if test x"${intree}" = xno; then
13624
13625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
13626 $as_echo_n "checking for Tcl private headers... " >&6; }
13627   private_dir=""
13628   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
13629   if test -f ${dir}/tclInt.h ; then
13630     private_dir=${dir}
13631   fi
13632
13633   if test x"${private_dir}" = x; then
13634     as_fn_error "could not find private Tcl headers" "$LINENO" 5
13635   else
13636     TCL_PRIVATE_INCLUDE="-I${private_dir}"
13637     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13638 $as_echo "${private_dir}" >&6; }
13639   fi
13640
13641           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
13642           TCL_LIBRARY="${TCL_LIB_SPEC}"
13643           TCL_DEPS=""
13644         else
13645           # If building tcl in the same src tree, private headers
13646           # are not needed, but we need to be sure to use the right
13647           # headers library
13648           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
13649           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
13650           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
13651         fi
13652
13653
13654
13655
13656
13657     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
13658 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
13659
13660     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
13661         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
13662 $as_echo "loading" >&6; }
13663         . ${TK_BIN_DIR}/tkConfig.sh
13664     else
13665         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
13666 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
13667     fi
13668
13669     # eval is required to do the TK_DBGX substitution
13670     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
13671     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
13672
13673     # If the TK_BIN_DIR is the build directory (not the install directory),
13674     # then set the common variable name to the value of the build variables.
13675     # For example, the variable TK_LIB_SPEC will be set to the value
13676     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
13677     # instead of TK_BUILD_LIB_SPEC since it will work with both an
13678     # installed and uninstalled version of Tcl.
13679     if test -f "${TK_BIN_DIR}/Makefile" ; then
13680         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
13681         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
13682         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
13683     elif test "`uname -s`" = "Darwin"; then
13684         # If Tk was built as a framework, attempt to use the libraries
13685         # from the framework at the given location so that linking works
13686         # against Tk.framework installed in an arbitary location.
13687         case ${TK_DEFS} in
13688             *TK_FRAMEWORK*)
13689                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
13690                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
13691                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
13692                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
13693                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
13694                             break
13695                         fi
13696                     done
13697                 fi
13698                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
13699                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
13700                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
13701                 fi
13702                 ;;
13703         esac
13704     fi
13705
13706     # eval is required to do the TK_DBGX substitution
13707     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
13708     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
13709     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
13710     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725         # Check for in-tree Tk
13726         intree="no"
13727         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13728           intree="yes"
13729         fi
13730
13731         # Find Tk private headers
13732         if test x"${intree}" = xno; then
13733
13734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13735 $as_echo_n "checking for Tk private headers... " >&6; }
13736   private_dir=""
13737   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13738   if test -f ${dir}/tkInt.h; then
13739     private_dir=${dir}
13740   fi
13741
13742   if test x"${private_dir}" = x; then
13743     as_fn_error "could not find Tk private headers" "$LINENO" 5
13744   else
13745     TK_PRIVATE_INCLUDE="-I${private_dir}"
13746     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13747 $as_echo "${private_dir}" >&6; }
13748   fi
13749
13750           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13751           TK_LIBRARY=${TK_LIB_SPEC}
13752           TK_DEPS=""
13753         else
13754           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
13755           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
13756           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
13757         fi
13758
13759
13760
13761
13762
13763         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13764
13765         # Include some libraries that Tcl and Tk want.
13766         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13767         # Yes, the ordering seems wrong here.  But it isn't.
13768         # TK_LIBS is the list of libraries that need to be linked
13769         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
13770         # were in LIBS then any link tests after this point would
13771         # try to include things like `$(LIBGUI)', which wouldn't work.
13772         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
13773
13774         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13775         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13776         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13777         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
13778         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
13779         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
13780         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
13781
13782         if test x$gdb_cv_os_cygwin = xyes; then
13783           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13784           WIN32LDAPP="-Wl,--subsystem,console"
13785           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
13786         fi
13787
13788         subdirs="$subdirs gdbtk"
13789
13790     fi
13791 fi
13792
13793
13794
13795
13796
13797
13798
13799
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13801 $as_echo_n "checking for X... " >&6; }
13802
13803
13804 # Check whether --with-x was given.
13805 if test "${with_x+set}" = set; then :
13806   withval=$with_x;
13807 fi
13808
13809 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13810 if test "x$with_x" = xno; then
13811   # The user explicitly disabled X.
13812   have_x=disabled
13813 else
13814   case $x_includes,$x_libraries in #(
13815     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
13816     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13817   $as_echo_n "(cached) " >&6
13818 else
13819   # One or both of the vars are not set, and there is no cached value.
13820 ac_x_includes=no ac_x_libraries=no
13821 rm -f -r conftest.dir
13822 if mkdir conftest.dir; then
13823   cd conftest.dir
13824   cat >Imakefile <<'_ACEOF'
13825 incroot:
13826         @echo incroot='${INCROOT}'
13827 usrlibdir:
13828         @echo usrlibdir='${USRLIBDIR}'
13829 libdir:
13830         @echo libdir='${LIBDIR}'
13831 _ACEOF
13832   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13833     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13834     for ac_var in incroot usrlibdir libdir; do
13835       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13836     done
13837     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13838     for ac_extension in a so sl dylib la dll; do
13839       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13840          test -f "$ac_im_libdir/libX11.$ac_extension"; then
13841         ac_im_usrlibdir=$ac_im_libdir; break
13842       fi
13843     done
13844     # Screen out bogus values from the imake configuration.  They are
13845     # bogus both because they are the default anyway, and because
13846     # using them would break gcc on systems where it needs fixed includes.
13847     case $ac_im_incroot in
13848         /usr/include) ac_x_includes= ;;
13849         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13850     esac
13851     case $ac_im_usrlibdir in
13852         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13853         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13854     esac
13855   fi
13856   cd ..
13857   rm -f -r conftest.dir
13858 fi
13859
13860 # Standard set of common directories for X headers.
13861 # Check X11 before X11Rn because it is often a symlink to the current release.
13862 ac_x_header_dirs='
13863 /usr/X11/include
13864 /usr/X11R7/include
13865 /usr/X11R6/include
13866 /usr/X11R5/include
13867 /usr/X11R4/include
13868
13869 /usr/include/X11
13870 /usr/include/X11R7
13871 /usr/include/X11R6
13872 /usr/include/X11R5
13873 /usr/include/X11R4
13874
13875 /usr/local/X11/include
13876 /usr/local/X11R7/include
13877 /usr/local/X11R6/include
13878 /usr/local/X11R5/include
13879 /usr/local/X11R4/include
13880
13881 /usr/local/include/X11
13882 /usr/local/include/X11R7
13883 /usr/local/include/X11R6
13884 /usr/local/include/X11R5
13885 /usr/local/include/X11R4
13886
13887 /usr/X386/include
13888 /usr/x386/include
13889 /usr/XFree86/include/X11
13890
13891 /usr/include
13892 /usr/local/include
13893 /usr/unsupported/include
13894 /usr/athena/include
13895 /usr/local/x11r5/include
13896 /usr/lpp/Xamples/include
13897
13898 /usr/openwin/include
13899 /usr/openwin/share/include'
13900
13901 if test "$ac_x_includes" = no; then
13902   # Guess where to find include files, by looking for Xlib.h.
13903   # First, try using that file with no special directory specified.
13904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h.  */
13906 #include <X11/Xlib.h>
13907 _ACEOF
13908 if ac_fn_c_try_cpp "$LINENO"; then :
13909   # We can compile using X headers with no special include directory.
13910 ac_x_includes=
13911 else
13912   for ac_dir in $ac_x_header_dirs; do
13913   if test -r "$ac_dir/X11/Xlib.h"; then
13914     ac_x_includes=$ac_dir
13915     break
13916   fi
13917 done
13918 fi
13919 rm -f conftest.err conftest.$ac_ext
13920 fi # $ac_x_includes = no
13921
13922 if test "$ac_x_libraries" = no; then
13923   # Check for the libraries.
13924   # See if we find them without any special options.
13925   # Don't add to $LIBS permanently.
13926   ac_save_LIBS=$LIBS
13927   LIBS="-lX11 $LIBS"
13928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h.  */
13930 #include <X11/Xlib.h>
13931 int
13932 main ()
13933 {
13934 XrmInitialize ()
13935   ;
13936   return 0;
13937 }
13938 _ACEOF
13939 if ac_fn_c_try_link "$LINENO"; then :
13940   LIBS=$ac_save_LIBS
13941 # We can link X programs with no special library path.
13942 ac_x_libraries=
13943 else
13944   LIBS=$ac_save_LIBS
13945 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13946 do
13947   # Don't even attempt the hair of trying to link an X program!
13948   for ac_extension in a so sl dylib la dll; do
13949     if test -r "$ac_dir/libX11.$ac_extension"; then
13950       ac_x_libraries=$ac_dir
13951       break 2
13952     fi
13953   done
13954 done
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext \
13957     conftest$ac_exeext conftest.$ac_ext
13958 fi # $ac_x_libraries = no
13959
13960 case $ac_x_includes,$ac_x_libraries in #(
13961   no,* | *,no | *\'*)
13962     # Didn't find X, or a directory has "'" in its name.
13963     ac_cv_have_x="have_x=no";; #(
13964   *)
13965     # Record where we found X for the cache.
13966     ac_cv_have_x="have_x=yes\
13967         ac_x_includes='$ac_x_includes'\
13968         ac_x_libraries='$ac_x_libraries'"
13969 esac
13970 fi
13971 ;; #(
13972     *) have_x=yes;;
13973   esac
13974   eval "$ac_cv_have_x"
13975 fi # $with_x != no
13976
13977 if test "$have_x" != yes; then
13978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13979 $as_echo "$have_x" >&6; }
13980   no_x=yes
13981 else
13982   # If each of the values was on the command line, it overrides each guess.
13983   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13984   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13985   # Update the cache value to reflect the command line values.
13986   ac_cv_have_x="have_x=yes\
13987         ac_x_includes='$x_includes'\
13988         ac_x_libraries='$x_libraries'"
13989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13990 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13991 fi
13992
13993
13994 # Unlike the sim directory, whether a simulator is linked is controlled by
13995 # presence of a gdb_sim definition in the target configure.tgt entry.
13996 # This code just checks for a few cases where we'd like to ignore those
13997 # definitions, even when they're present in the '.mt' file.  These cases
13998 # are when --disable-sim is specified, or if the simulator directory is
13999 # not part of the source tree.
14000 #
14001 # Check whether --enable-sim was given.
14002 if test "${enable_sim+set}" = set; then :
14003   enableval=$enable_sim; echo "enable_sim = $enable_sim";
14004  echo "enableval = ${enableval}";
14005  case "${enableval}" in
14006   yes) ignore_sim=false ;;
14007   no)  ignore_sim=true ;;
14008   *)   ignore_sim=false ;;
14009  esac
14010 else
14011   ignore_sim=false
14012 fi
14013
14014
14015 if test ! -d "${srcdir}/../sim"; then
14016   ignore_sim=true
14017 fi
14018
14019 SIM=
14020 SIM_OBS=
14021 if test "${ignore_sim}" = "false"; then
14022   if test x"${gdb_sim}" != x ; then
14023     SIM="${gdb_sim}"
14024     SIM_OBS="remote-sim.o"
14025
14026 $as_echo "#define WITH_SIM 1" >>confdefs.h
14027
14028   fi
14029 fi
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044 # List of host floatformats.
14045
14046 cat >>confdefs.h <<_ACEOF
14047 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
14048 _ACEOF
14049
14050
14051 cat >>confdefs.h <<_ACEOF
14052 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
14053 _ACEOF
14054
14055
14056 cat >>confdefs.h <<_ACEOF
14057 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
14058 _ACEOF
14059
14060
14061 # target_subdir is used by the testsuite to find the target libraries.
14062 target_subdir=
14063 if test "${host}" != "${target}"; then
14064     target_subdir="${target_alias}/"
14065 fi
14066
14067
14068 frags=
14069 if test "${gdb_native}" = "yes"; then
14070   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
14071   if test ! -f ${host_makefile_frag}; then
14072     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
14073   fi
14074   frags="$frags $host_makefile_frag"
14075 else
14076   host_makefile_frag=/dev/null
14077 fi
14078
14079
14080
14081
14082 if test "${gdb_native}" = "yes"; then
14083 # We pick this up from the host configuration file (.mh) because we
14084 # do not have a native configuration Makefile fragment.
14085 nativefile=`sed -n '
14086 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
14087 ' ${host_makefile_frag}`
14088 fi
14089
14090
14091 if test x"${gdb_osabi}" != x ; then
14092
14093 cat >>confdefs.h <<_ACEOF
14094 #define GDB_OSABI_DEFAULT $gdb_osabi
14095 _ACEOF
14096
14097 fi
14098
14099 # Enable multi-ice-gdb-server.
14100 # Check whether --enable-multi-ice was given.
14101 if test "${enable_multi_ice+set}" = set; then :
14102   enableval=$enable_multi_ice; case $enableval in
14103     yes | no)
14104       ;;
14105     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
14106   esac
14107 fi
14108
14109 if test "x$enable_multi_ice" = xyes; then
14110    subdirs="$subdirs multi-ice"
14111
14112 fi
14113
14114 # We only build gdbserver automatically in a native configuration.
14115 if test "$gdb_native" = "yes"; then
14116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
14117 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
14118   if test "x$build_gdbserver" = xyes; then
14119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14120 $as_echo "yes" >&6; }
14121     subdirs="$subdirs gdbserver"
14122
14123   else
14124     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14125 $as_echo "no" >&6; }
14126   fi
14127 fi
14128
14129 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
14130 # to an empty version.
14131
14132 files=
14133 links=
14134
14135 rm -f nm.h
14136 if test "${nativefile}" != ""; then
14137     case "${nativefile}" in
14138       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
14139       * ) GDB_NM_FILE="${nativefile}"
14140     esac
14141     files="${files} ${GDB_NM_FILE}"
14142     links="${links} nm.h"
14143
14144 cat >>confdefs.h <<_ACEOF
14145 #define GDB_NM_FILE "${GDB_NM_FILE}"
14146 _ACEOF
14147
14148 fi
14149
14150
14151 ac_sources="$files"
14152 ac_dests="$links"
14153 while test -n "$ac_sources"; do
14154   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
14155   set $ac_sources; ac_source=$1; shift; ac_sources=$*
14156   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
14157 done
14158 ac_config_links="$ac_config_links $ac_config_links_1"
14159
14160
14161
14162
14163
14164 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
14165
14166
14167 # Flags needed to enable html installing and building
14168
14169 # Check whether --with-datarootdir was given.
14170 if test "${with_datarootdir+set}" = set; then :
14171   withval=$with_datarootdir; datarootdir="\${prefix}/${withval}"
14172 else
14173   datarootdir="\${prefix}/share"
14174 fi
14175
14176
14177
14178 # Check whether --with-docdir was given.
14179 if test "${with_docdir+set}" = set; then :
14180   withval=$with_docdir; docdir="\${prefix}/${withval}"
14181 else
14182   docdir="\${datarootdir}/doc"
14183 fi
14184
14185
14186
14187 # Check whether --with-pdfdir was given.
14188 if test "${with_pdfdir+set}" = set; then :
14189   withval=$with_pdfdir; pdfdir="\${prefix}/${withval}"
14190 else
14191   pdfdir="\${docdir}"
14192 fi
14193
14194
14195
14196 # Check whether --with-htmldir was given.
14197 if test "${with_htmldir+set}" = set; then :
14198   withval=$with_htmldir; htmldir="\${prefix}/${withval}"
14199 else
14200   htmldir="\${docdir}"
14201 fi
14202
14203
14204
14205
14206
14207
14208
14209 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
14210
14211 ac_config_commands="$ac_config_commands default"
14212
14213 cat >confcache <<\_ACEOF
14214 # This file is a shell script that caches the results of configure
14215 # tests run on this system so they can be shared between configure
14216 # scripts and configure runs, see configure's option --config-cache.
14217 # It is not useful on other systems.  If it contains results you don't
14218 # want to keep, you may remove or edit it.
14219 #
14220 # config.status only pays attention to the cache file if you give it
14221 # the --recheck option to rerun configure.
14222 #
14223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14225 # following values.
14226
14227 _ACEOF
14228
14229 # The following way of writing the cache mishandles newlines in values,
14230 # but we know of no workaround that is simple, portable, and efficient.
14231 # So, we kill variables containing newlines.
14232 # Ultrix sh set writes to stderr and can't be redirected directly,
14233 # and sets the high bit in the cache file unless we assign to the vars.
14234 (
14235   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14236     eval ac_val=\$$ac_var
14237     case $ac_val in #(
14238     *${as_nl}*)
14239       case $ac_var in #(
14240       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14241 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14242       esac
14243       case $ac_var in #(
14244       _ | IFS | as_nl) ;; #(
14245       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14246       *) { eval $ac_var=; unset $ac_var;} ;;
14247       esac ;;
14248     esac
14249   done
14250
14251   (set) 2>&1 |
14252     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14253     *${as_nl}ac_space=\ *)
14254       # `set' does not quote correctly, so add quotes: double-quote
14255       # substitution turns \\\\ into \\, and sed turns \\ into \.
14256       sed -n \
14257         "s/'/'\\\\''/g;
14258           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14259       ;; #(
14260     *)
14261       # `set' quotes correctly as required by POSIX, so do not add quotes.
14262       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14263       ;;
14264     esac |
14265     sort
14266 ) |
14267   sed '
14268      /^ac_cv_env_/b end
14269      t clear
14270      :clear
14271      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14272      t end
14273      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14274      :end' >>confcache
14275 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14276   if test -w "$cache_file"; then
14277     test "x$cache_file" != "x/dev/null" &&
14278       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14279 $as_echo "$as_me: updating cache $cache_file" >&6;}
14280     cat confcache >$cache_file
14281   else
14282     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14283 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14284   fi
14285 fi
14286 rm -f confcache
14287
14288 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14289 # Let make expand exec_prefix.
14290 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14291
14292 DEFS=-DHAVE_CONFIG_H
14293
14294 ac_libobjs=
14295 ac_ltlibobjs=
14296 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14297   # 1. Remove the extension, and $U if already installed.
14298   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14299   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14300   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14301   #    will be set to the directory where LIBOBJS objects are built.
14302   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14303   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14304 done
14305 LIBOBJS=$ac_libobjs
14306
14307 LTLIBOBJS=$ac_ltlibobjs
14308
14309
14310 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14311   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14313 fi
14314 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
14315   as_fn_error "conditional \"GMAKE\" was never defined.
14316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14317 fi
14318 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14319   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14321 fi
14322
14323     gl_libobjs=
14324     gl_ltlibobjs=
14325     if test -n "$gl_LIBOBJS"; then
14326       # Remove the extension.
14327       sed_drop_objext='s/\.o$//;s/\.obj$//'
14328       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14329         gl_libobjs="$gl_libobjs $i.$ac_objext"
14330         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14331       done
14332     fi
14333     gl_LIBOBJS=$gl_libobjs
14334
14335     gl_LTLIBOBJS=$gl_ltlibobjs
14336
14337
14338
14339     gltests_libobjs=
14340     gltests_ltlibobjs=
14341     if test -n "$gltests_LIBOBJS"; then
14342       # Remove the extension.
14343       sed_drop_objext='s/\.o$//;s/\.obj$//'
14344       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
14345         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14346         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14347       done
14348     fi
14349     gltests_LIBOBJS=$gltests_libobjs
14350
14351     gltests_LTLIBOBJS=$gltests_ltlibobjs
14352
14353
14354 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14355   as_fn_error "conditional \"AMDEP\" was never defined.
14356 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14357 fi
14358 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14359   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14360 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14361 fi
14362  if test -n "$EXEEXT"; then
14363   am__EXEEXT_TRUE=
14364   am__EXEEXT_FALSE='#'
14365 else
14366   am__EXEEXT_TRUE='#'
14367   am__EXEEXT_FALSE=
14368 fi
14369
14370
14371
14372 : ${CONFIG_STATUS=./config.status}
14373 ac_write_fail=0
14374 ac_clean_files_save=$ac_clean_files
14375 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14377 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14378 as_write_fail=0
14379 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14380 #! $SHELL
14381 # Generated by $as_me.
14382 # Run this file to recreate the current configuration.
14383 # Compiler output produced by configure, useful for debugging
14384 # configure, is in config.log if it exists.
14385
14386 debug=false
14387 ac_cs_recheck=false
14388 ac_cs_silent=false
14389
14390 SHELL=\${CONFIG_SHELL-$SHELL}
14391 export SHELL
14392 _ASEOF
14393 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14394 ## -------------------- ##
14395 ## M4sh Initialization. ##
14396 ## -------------------- ##
14397
14398 # Be more Bourne compatible
14399 DUALCASE=1; export DUALCASE # for MKS sh
14400 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14401   emulate sh
14402   NULLCMD=:
14403   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14404   # is contrary to our usage.  Disable this feature.
14405   alias -g '${1+"$@"}'='"$@"'
14406   setopt NO_GLOB_SUBST
14407 else
14408   case `(set -o) 2>/dev/null` in #(
14409   *posix*) :
14410     set -o posix ;; #(
14411   *) :
14412      ;;
14413 esac
14414 fi
14415
14416
14417 as_nl='
14418 '
14419 export as_nl
14420 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14421 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14422 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14423 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14424 # Prefer a ksh shell builtin over an external printf program on Solaris,
14425 # but without wasting forks for bash or zsh.
14426 if test -z "$BASH_VERSION$ZSH_VERSION" \
14427     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14428   as_echo='print -r --'
14429   as_echo_n='print -rn --'
14430 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14431   as_echo='printf %s\n'
14432   as_echo_n='printf %s'
14433 else
14434   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14435     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14436     as_echo_n='/usr/ucb/echo -n'
14437   else
14438     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14439     as_echo_n_body='eval
14440       arg=$1;
14441       case $arg in #(
14442       *"$as_nl"*)
14443         expr "X$arg" : "X\\(.*\\)$as_nl";
14444         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14445       esac;
14446       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14447     '
14448     export as_echo_n_body
14449     as_echo_n='sh -c $as_echo_n_body as_echo'
14450   fi
14451   export as_echo_body
14452   as_echo='sh -c $as_echo_body as_echo'
14453 fi
14454
14455 # The user is always right.
14456 if test "${PATH_SEPARATOR+set}" != set; then
14457   PATH_SEPARATOR=:
14458   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14459     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14460       PATH_SEPARATOR=';'
14461   }
14462 fi
14463
14464
14465 # IFS
14466 # We need space, tab and new line, in precisely that order.  Quoting is
14467 # there to prevent editors from complaining about space-tab.
14468 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14469 # splitting by setting IFS to empty value.)
14470 IFS=" ""        $as_nl"
14471
14472 # Find who we are.  Look in the path if we contain no directory separator.
14473 case $0 in #((
14474   *[\\/]* ) as_myself=$0 ;;
14475   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14476 for as_dir in $PATH
14477 do
14478   IFS=$as_save_IFS
14479   test -z "$as_dir" && as_dir=.
14480     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14481   done
14482 IFS=$as_save_IFS
14483
14484      ;;
14485 esac
14486 # We did not find ourselves, most probably we were run as `sh COMMAND'
14487 # in which case we are not to be found in the path.
14488 if test "x$as_myself" = x; then
14489   as_myself=$0
14490 fi
14491 if test ! -f "$as_myself"; then
14492   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14493   exit 1
14494 fi
14495
14496 # Unset variables that we do not need and which cause bugs (e.g. in
14497 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14498 # suppresses any "Segmentation fault" message there.  '((' could
14499 # trigger a bug in pdksh 5.2.14.
14500 for as_var in BASH_ENV ENV MAIL MAILPATH
14501 do eval test x\${$as_var+set} = xset \
14502   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14503 done
14504 PS1='$ '
14505 PS2='> '
14506 PS4='+ '
14507
14508 # NLS nuisances.
14509 LC_ALL=C
14510 export LC_ALL
14511 LANGUAGE=C
14512 export LANGUAGE
14513
14514 # CDPATH.
14515 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14516
14517
14518 # as_fn_error ERROR [LINENO LOG_FD]
14519 # ---------------------------------
14520 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14521 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14522 # script with status $?, using 1 if that was 0.
14523 as_fn_error ()
14524 {
14525   as_status=$?; test $as_status -eq 0 && as_status=1
14526   if test "$3"; then
14527     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14528     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14529   fi
14530   $as_echo "$as_me: error: $1" >&2
14531   as_fn_exit $as_status
14532 } # as_fn_error
14533
14534
14535 # as_fn_set_status STATUS
14536 # -----------------------
14537 # Set $? to STATUS, without forking.
14538 as_fn_set_status ()
14539 {
14540   return $1
14541 } # as_fn_set_status
14542
14543 # as_fn_exit STATUS
14544 # -----------------
14545 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14546 as_fn_exit ()
14547 {
14548   set +e
14549   as_fn_set_status $1
14550   exit $1
14551 } # as_fn_exit
14552
14553 # as_fn_unset VAR
14554 # ---------------
14555 # Portably unset VAR.
14556 as_fn_unset ()
14557 {
14558   { eval $1=; unset $1;}
14559 }
14560 as_unset=as_fn_unset
14561 # as_fn_append VAR VALUE
14562 # ----------------------
14563 # Append the text in VALUE to the end of the definition contained in VAR. Take
14564 # advantage of any shell optimizations that allow amortized linear growth over
14565 # repeated appends, instead of the typical quadratic growth present in naive
14566 # implementations.
14567 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14568   eval 'as_fn_append ()
14569   {
14570     eval $1+=\$2
14571   }'
14572 else
14573   as_fn_append ()
14574   {
14575     eval $1=\$$1\$2
14576   }
14577 fi # as_fn_append
14578
14579 # as_fn_arith ARG...
14580 # ------------------
14581 # Perform arithmetic evaluation on the ARGs, and store the result in the
14582 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14583 # must be portable across $(()) and expr.
14584 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14585   eval 'as_fn_arith ()
14586   {
14587     as_val=$(( $* ))
14588   }'
14589 else
14590   as_fn_arith ()
14591   {
14592     as_val=`expr "$@" || test $? -eq 1`
14593   }
14594 fi # as_fn_arith
14595
14596
14597 if expr a : '\(a\)' >/dev/null 2>&1 &&
14598    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14599   as_expr=expr
14600 else
14601   as_expr=false
14602 fi
14603
14604 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14605   as_basename=basename
14606 else
14607   as_basename=false
14608 fi
14609
14610 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14611   as_dirname=dirname
14612 else
14613   as_dirname=false
14614 fi
14615
14616 as_me=`$as_basename -- "$0" ||
14617 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14618          X"$0" : 'X\(//\)$' \| \
14619          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14620 $as_echo X/"$0" |
14621     sed '/^.*\/\([^/][^/]*\)\/*$/{
14622             s//\1/
14623             q
14624           }
14625           /^X\/\(\/\/\)$/{
14626             s//\1/
14627             q
14628           }
14629           /^X\/\(\/\).*/{
14630             s//\1/
14631             q
14632           }
14633           s/.*/./; q'`
14634
14635 # Avoid depending upon Character Ranges.
14636 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14637 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14638 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14639 as_cr_digits='0123456789'
14640 as_cr_alnum=$as_cr_Letters$as_cr_digits
14641
14642 ECHO_C= ECHO_N= ECHO_T=
14643 case `echo -n x` in #(((((
14644 -n*)
14645   case `echo 'xy\c'` in
14646   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14647   xy)  ECHO_C='\c';;
14648   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14649        ECHO_T=' ';;
14650   esac;;
14651 *)
14652   ECHO_N='-n';;
14653 esac
14654
14655 rm -f conf$$ conf$$.exe conf$$.file
14656 if test -d conf$$.dir; then
14657   rm -f conf$$.dir/conf$$.file
14658 else
14659   rm -f conf$$.dir
14660   mkdir conf$$.dir 2>/dev/null
14661 fi
14662 if (echo >conf$$.file) 2>/dev/null; then
14663   if ln -s conf$$.file conf$$ 2>/dev/null; then
14664     as_ln_s='ln -s'
14665     # ... but there are two gotchas:
14666     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14667     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14668     # In both cases, we have to default to `cp -p'.
14669     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14670       as_ln_s='cp -p'
14671   elif ln conf$$.file conf$$ 2>/dev/null; then
14672     as_ln_s=ln
14673   else
14674     as_ln_s='cp -p'
14675   fi
14676 else
14677   as_ln_s='cp -p'
14678 fi
14679 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14680 rmdir conf$$.dir 2>/dev/null
14681
14682
14683 # as_fn_mkdir_p
14684 # -------------
14685 # Create "$as_dir" as a directory, including parents if necessary.
14686 as_fn_mkdir_p ()
14687 {
14688
14689   case $as_dir in #(
14690   -*) as_dir=./$as_dir;;
14691   esac
14692   test -d "$as_dir" || eval $as_mkdir_p || {
14693     as_dirs=
14694     while :; do
14695       case $as_dir in #(
14696       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14697       *) as_qdir=$as_dir;;
14698       esac
14699       as_dirs="'$as_qdir' $as_dirs"
14700       as_dir=`$as_dirname -- "$as_dir" ||
14701 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14702          X"$as_dir" : 'X\(//\)[^/]' \| \
14703          X"$as_dir" : 'X\(//\)$' \| \
14704          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14705 $as_echo X"$as_dir" |
14706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14707             s//\1/
14708             q
14709           }
14710           /^X\(\/\/\)[^/].*/{
14711             s//\1/
14712             q
14713           }
14714           /^X\(\/\/\)$/{
14715             s//\1/
14716             q
14717           }
14718           /^X\(\/\).*/{
14719             s//\1/
14720             q
14721           }
14722           s/.*/./; q'`
14723       test -d "$as_dir" && break
14724     done
14725     test -z "$as_dirs" || eval "mkdir $as_dirs"
14726   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14727
14728
14729 } # as_fn_mkdir_p
14730 if mkdir -p . 2>/dev/null; then
14731   as_mkdir_p='mkdir -p "$as_dir"'
14732 else
14733   test -d ./-p && rmdir ./-p
14734   as_mkdir_p=false
14735 fi
14736
14737 if test -x / >/dev/null 2>&1; then
14738   as_test_x='test -x'
14739 else
14740   if ls -dL / >/dev/null 2>&1; then
14741     as_ls_L_option=L
14742   else
14743     as_ls_L_option=
14744   fi
14745   as_test_x='
14746     eval sh -c '\''
14747       if test -d "$1"; then
14748         test -d "$1/.";
14749       else
14750         case $1 in #(
14751         -*)set "./$1";;
14752         esac;
14753         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14754         ???[sx]*):;;*)false;;esac;fi
14755     '\'' sh
14756   '
14757 fi
14758 as_executable_p=$as_test_x
14759
14760 # Sed expression to map a string onto a valid CPP name.
14761 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14762
14763 # Sed expression to map a string onto a valid variable name.
14764 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14765
14766
14767 exec 6>&1
14768 ## ----------------------------------- ##
14769 ## Main body of $CONFIG_STATUS script. ##
14770 ## ----------------------------------- ##
14771 _ASEOF
14772 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14773
14774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14775 # Save the log message, to keep $0 and so on meaningful, and to
14776 # report actual input values of CONFIG_FILES etc. instead of their
14777 # values after options handling.
14778 ac_log="
14779 This file was extended by $as_me, which was
14780 generated by GNU Autoconf 2.64.  Invocation command line was
14781
14782   CONFIG_FILES    = $CONFIG_FILES
14783   CONFIG_HEADERS  = $CONFIG_HEADERS
14784   CONFIG_LINKS    = $CONFIG_LINKS
14785   CONFIG_COMMANDS = $CONFIG_COMMANDS
14786   $ $0 $@
14787
14788 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14789 "
14790
14791 _ACEOF
14792
14793 case $ac_config_files in *"
14794 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14795 esac
14796
14797 case $ac_config_headers in *"
14798 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14799 esac
14800
14801
14802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14803 # Files that config.status was made for.
14804 config_files="$ac_config_files"
14805 config_headers="$ac_config_headers"
14806 config_links="$ac_config_links"
14807 config_commands="$ac_config_commands"
14808
14809 _ACEOF
14810
14811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14812 ac_cs_usage="\
14813 \`$as_me' instantiates files and other configuration actions
14814 from templates according to the current configuration.  Unless the files
14815 and actions are specified as TAGs, all are instantiated by default.
14816
14817 Usage: $0 [OPTION]... [TAG]...
14818
14819   -h, --help       print this help, then exit
14820   -V, --version    print version number and configuration settings, then exit
14821   -q, --quiet, --silent
14822                    do not print progress messages
14823   -d, --debug      don't remove temporary files
14824       --recheck    update $as_me by reconfiguring in the same conditions
14825       --file=FILE[:TEMPLATE]
14826                    instantiate the configuration file FILE
14827       --header=FILE[:TEMPLATE]
14828                    instantiate the configuration header FILE
14829
14830 Configuration files:
14831 $config_files
14832
14833 Configuration headers:
14834 $config_headers
14835
14836 Configuration links:
14837 $config_links
14838
14839 Configuration commands:
14840 $config_commands
14841
14842 Report bugs to the package provider."
14843
14844 _ACEOF
14845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14846 ac_cs_version="\\
14847 config.status
14848 configured by $0, generated by GNU Autoconf 2.64,
14849   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14850
14851 Copyright (C) 2009 Free Software Foundation, Inc.
14852 This config.status script is free software; the Free Software Foundation
14853 gives unlimited permission to copy, distribute and modify it."
14854
14855 ac_pwd='$ac_pwd'
14856 srcdir='$srcdir'
14857 INSTALL='$INSTALL'
14858 MKDIR_P='$MKDIR_P'
14859 AWK='$AWK'
14860 test -n "\$AWK" || AWK=awk
14861 _ACEOF
14862
14863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14864 # The default lists apply if the user does not specify any file.
14865 ac_need_defaults=:
14866 while test $# != 0
14867 do
14868   case $1 in
14869   --*=*)
14870     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14871     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14872     ac_shift=:
14873     ;;
14874   *)
14875     ac_option=$1
14876     ac_optarg=$2
14877     ac_shift=shift
14878     ;;
14879   esac
14880
14881   case $ac_option in
14882   # Handling of the options.
14883   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14884     ac_cs_recheck=: ;;
14885   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14886     $as_echo "$ac_cs_version"; exit ;;
14887   --debug | --debu | --deb | --de | --d | -d )
14888     debug=: ;;
14889   --file | --fil | --fi | --f )
14890     $ac_shift
14891     case $ac_optarg in
14892     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14893     esac
14894     as_fn_append CONFIG_FILES " '$ac_optarg'"
14895     ac_need_defaults=false;;
14896   --header | --heade | --head | --hea )
14897     $ac_shift
14898     case $ac_optarg in
14899     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14900     esac
14901     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14902     ac_need_defaults=false;;
14903   --he | --h)
14904     # Conflict between --help and --header
14905     as_fn_error "ambiguous option: \`$1'
14906 Try \`$0 --help' for more information.";;
14907   --help | --hel | -h )
14908     $as_echo "$ac_cs_usage"; exit ;;
14909   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14910   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14911     ac_cs_silent=: ;;
14912
14913   # This is an error.
14914   -*) as_fn_error "unrecognized option: \`$1'
14915 Try \`$0 --help' for more information." ;;
14916
14917   *) as_fn_append ac_config_targets " $1"
14918      ac_need_defaults=false ;;
14919
14920   esac
14921   shift
14922 done
14923
14924 ac_configure_extra_args=
14925
14926 if $ac_cs_silent; then
14927   exec 6>/dev/null
14928   ac_configure_extra_args="$ac_configure_extra_args --silent"
14929 fi
14930
14931 _ACEOF
14932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14933 if \$ac_cs_recheck; then
14934   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14935   shift
14936   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14937   CONFIG_SHELL='$SHELL'
14938   export CONFIG_SHELL
14939   exec "\$@"
14940 fi
14941
14942 _ACEOF
14943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14944 exec 5>>config.log
14945 {
14946   echo
14947   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14948 ## Running $as_me. ##
14949 _ASBOX
14950   $as_echo "$ac_log"
14951 } >&5
14952
14953 _ACEOF
14954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14955 #
14956 # INIT-COMMANDS
14957 #
14958 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14959 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14960
14961 _ACEOF
14962
14963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14964
14965 # Handling of arguments.
14966 for ac_config_target in $ac_config_targets
14967 do
14968   case $ac_config_target in
14969     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14970     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
14971     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14972     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
14973     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14974     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
14975     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
14976     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14977
14978   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14979   esac
14980 done
14981
14982
14983 # If the user did not use the arguments to specify the items to instantiate,
14984 # then the envvar interface is used.  Set only those that are not.
14985 # We use the long form for the default assignment because of an extremely
14986 # bizarre bug on SunOS 4.1.3.
14987 if $ac_need_defaults; then
14988   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14989   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14990   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14991   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14992 fi
14993
14994 # Have a temporary directory for convenience.  Make it in the build tree
14995 # simply because there is no reason against having it here, and in addition,
14996 # creating and moving files from /tmp can sometimes cause problems.
14997 # Hook for its removal unless debugging.
14998 # Note that there is a small window in which the directory will not be cleaned:
14999 # after its creation but before its name has been assigned to `$tmp'.
15000 $debug ||
15001 {
15002   tmp=
15003   trap 'exit_status=$?
15004   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15005 ' 0
15006   trap 'as_fn_exit 1' 1 2 13 15
15007 }
15008 # Create a (secure) tmp directory for tmp files.
15009
15010 {
15011   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15012   test -n "$tmp" && test -d "$tmp"
15013 }  ||
15014 {
15015   tmp=./conf$$-$RANDOM
15016   (umask 077 && mkdir "$tmp")
15017 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15018
15019 # Set up the scripts for CONFIG_FILES section.
15020 # No need to generate them if there are no CONFIG_FILES.
15021 # This happens for instance with `./config.status config.h'.
15022 if test -n "$CONFIG_FILES"; then
15023
15024 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15025   ac_cs_awk_getline=:
15026   ac_cs_awk_pipe_init=
15027   ac_cs_awk_read_file='
15028       while ((getline aline < (F[key])) > 0)
15029         print(aline)
15030       close(F[key])'
15031   ac_cs_awk_pipe_fini=
15032 else
15033   ac_cs_awk_getline=false
15034   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15035   ac_cs_awk_read_file='
15036       print "|#_!!_#|"
15037       print "cat " F[key] " &&"
15038       '$ac_cs_awk_pipe_init
15039   # The final `:' finishes the AND list.
15040   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15041 fi
15042 ac_cr=`echo X | tr X '\015'`
15043 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15044 # But we know of no other shell where ac_cr would be empty at this
15045 # point, so we can use a bashism as a fallback.
15046 if test "x$ac_cr" = x; then
15047   eval ac_cr=\$\'\\r\'
15048 fi
15049 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15050 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15051   ac_cs_awk_cr='\r'
15052 else
15053   ac_cs_awk_cr=$ac_cr
15054 fi
15055
15056 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15057 _ACEOF
15058
15059 # Create commands to substitute file output variables.
15060 {
15061   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15062   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15063   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15064   echo "_ACAWK" &&
15065   echo "_ACEOF"
15066 } >conf$$files.sh &&
15067 . ./conf$$files.sh ||
15068   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15069 rm -f conf$$files.sh
15070
15071 {
15072   echo "cat >conf$$subs.awk <<_ACEOF" &&
15073   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15074   echo "_ACEOF"
15075 } >conf$$subs.sh ||
15076   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15077 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15078 ac_delim='%!_!# '
15079 for ac_last_try in false false false false false :; do
15080   . ./conf$$subs.sh ||
15081     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15082
15083   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15084   if test $ac_delim_n = $ac_delim_num; then
15085     break
15086   elif $ac_last_try; then
15087     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15088   else
15089     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15090   fi
15091 done
15092 rm -f conf$$subs.sh
15093
15094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15095 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15096 _ACEOF
15097 sed -n '
15098 h
15099 s/^/S["/; s/!.*/"]=/
15100 p
15101 g
15102 s/^[^!]*!//
15103 :repl
15104 t repl
15105 s/'"$ac_delim"'$//
15106 t delim
15107 :nl
15108 h
15109 s/\(.\{148\}\).*/\1/
15110 t more1
15111 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15112 p
15113 n
15114 b repl
15115 :more1
15116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15117 p
15118 g
15119 s/.\{148\}//
15120 t nl
15121 :delim
15122 h
15123 s/\(.\{148\}\).*/\1/
15124 t more2
15125 s/["\\]/\\&/g; s/^/"/; s/$/"/
15126 p
15127 b
15128 :more2
15129 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15130 p
15131 g
15132 s/.\{148\}//
15133 t delim
15134 ' <conf$$subs.awk | sed '
15135 /^[^""]/{
15136   N
15137   s/\n//
15138 }
15139 ' >>$CONFIG_STATUS || ac_write_fail=1
15140 rm -f conf$$subs.awk
15141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15142 _ACAWK
15143 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15144   for (key in S) S_is_set[key] = 1
15145   FS = "\a"
15146   \$ac_cs_awk_pipe_init
15147 }
15148 {
15149   line = $ 0
15150   nfields = split(line, field, "@")
15151   substed = 0
15152   len = length(field[1])
15153   for (i = 2; i < nfields; i++) {
15154     key = field[i]
15155     keylen = length(key)
15156     if (S_is_set[key]) {
15157       value = S[key]
15158       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15159       len += length(value) + length(field[++i])
15160       substed = 1
15161     } else
15162       len += 1 + keylen
15163   }
15164   if (nfields == 3 && !substed) {
15165     key = field[2]
15166     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
15167       \$ac_cs_awk_read_file
15168       next
15169     }
15170   }
15171   print line
15172 }
15173 \$ac_cs_awk_pipe_fini
15174 _ACAWK
15175 _ACEOF
15176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15177 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15178   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15179 else
15180   cat
15181 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15182   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15183 _ACEOF
15184
15185 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15186 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15187 # trailing colons and then remove the whole line if VPATH becomes empty
15188 # (actually we leave an empty line to preserve line numbers).
15189 if test "x$srcdir" = x.; then
15190   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15191 s/:*\$(srcdir):*/:/
15192 s/:*\${srcdir}:*/:/
15193 s/:*@srcdir@:*/:/
15194 s/^\([^=]*=[     ]*\):*/\1/
15195 s/:*$//
15196 s/^[^=]*=[       ]*$//
15197 }'
15198 fi
15199
15200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15201 fi # test -n "$CONFIG_FILES"
15202
15203 # Set up the scripts for CONFIG_HEADERS section.
15204 # No need to generate them if there are no CONFIG_HEADERS.
15205 # This happens for instance with `./config.status Makefile'.
15206 if test -n "$CONFIG_HEADERS"; then
15207 cat >"$tmp/defines.awk" <<\_ACAWK ||
15208 BEGIN {
15209 _ACEOF
15210
15211 # Transform confdefs.h into an awk script `defines.awk', embedded as
15212 # here-document in config.status, that substitutes the proper values into
15213 # config.h.in to produce config.h.
15214
15215 # Create a delimiter string that does not exist in confdefs.h, to ease
15216 # handling of long lines.
15217 ac_delim='%!_!# '
15218 for ac_last_try in false false :; do
15219   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15220   if test -z "$ac_t"; then
15221     break
15222   elif $ac_last_try; then
15223     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15224   else
15225     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15226   fi
15227 done
15228
15229 # For the awk script, D is an array of macro values keyed by name,
15230 # likewise P contains macro parameters if any.  Preserve backslash
15231 # newline sequences.
15232
15233 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15234 sed -n '
15235 s/.\{148\}/&'"$ac_delim"'/g
15236 t rset
15237 :rset
15238 s/^[     ]*#[    ]*define[       ][      ]*/ /
15239 t def
15240 d
15241 :def
15242 s/\\$//
15243 t bsnl
15244 s/["\\]/\\&/g
15245 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15246 D["\1"]=" \3"/p
15247 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15248 d
15249 :bsnl
15250 s/["\\]/\\&/g
15251 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15252 D["\1"]=" \3\\\\\\n"\\/p
15253 t cont
15254 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15255 t cont
15256 d
15257 :cont
15258 n
15259 s/.\{148\}/&'"$ac_delim"'/g
15260 t clear
15261 :clear
15262 s/\\$//
15263 t bsnlc
15264 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15265 d
15266 :bsnlc
15267 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15268 b cont
15269 ' <confdefs.h | sed '
15270 s/'"$ac_delim"'/"\\\
15271 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15272
15273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15274   for (key in D) D_is_set[key] = 1
15275   FS = "\a"
15276 }
15277 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15278   line = \$ 0
15279   split(line, arg, " ")
15280   if (arg[1] == "#") {
15281     defundef = arg[2]
15282     mac1 = arg[3]
15283   } else {
15284     defundef = substr(arg[1], 2)
15285     mac1 = arg[2]
15286   }
15287   split(mac1, mac2, "(") #)
15288   macro = mac2[1]
15289   prefix = substr(line, 1, index(line, defundef) - 1)
15290   if (D_is_set[macro]) {
15291     # Preserve the white space surrounding the "#".
15292     print prefix "define", macro P[macro] D[macro]
15293     next
15294   } else {
15295     # Replace #undef with comments.  This is necessary, for example,
15296     # in the case of _POSIX_SOURCE, which is predefined and required
15297     # on some systems where configure will not decide to define it.
15298     if (defundef == "undef") {
15299       print "/*", prefix defundef, macro, "*/"
15300       next
15301     }
15302   }
15303 }
15304 { print }
15305 _ACAWK
15306 _ACEOF
15307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15308   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15309 fi # test -n "$CONFIG_HEADERS"
15310
15311
15312 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
15313 shift
15314 for ac_tag
15315 do
15316   case $ac_tag in
15317   :[FHLC]) ac_mode=$ac_tag; continue;;
15318   esac
15319   case $ac_mode$ac_tag in
15320   :[FHL]*:*);;
15321   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15322   :[FH]-) ac_tag=-:-;;
15323   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15324   esac
15325   ac_save_IFS=$IFS
15326   IFS=:
15327   set x $ac_tag
15328   IFS=$ac_save_IFS
15329   shift
15330   ac_file=$1
15331   shift
15332
15333   case $ac_mode in
15334   :L) ac_source=$1;;
15335   :[FH])
15336     ac_file_inputs=
15337     for ac_f
15338     do
15339       case $ac_f in
15340       -) ac_f="$tmp/stdin";;
15341       *) # Look for the file first in the build tree, then in the source tree
15342          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15343          # because $ac_f cannot contain `:'.
15344          test -f "$ac_f" ||
15345            case $ac_f in
15346            [\\/$]*) false;;
15347            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15348            esac ||
15349            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15350       esac
15351       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15352       as_fn_append ac_file_inputs " '$ac_f'"
15353     done
15354
15355     # Let's still pretend it is `configure' which instantiates (i.e., don't
15356     # use $as_me), people would be surprised to read:
15357     #    /* config.h.  Generated by config.status.  */
15358     configure_input='Generated from '`
15359           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15360         `' by configure.'
15361     if test x"$ac_file" != x-; then
15362       configure_input="$ac_file.  $configure_input"
15363       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15364 $as_echo "$as_me: creating $ac_file" >&6;}
15365     fi
15366     # Neutralize special characters interpreted by sed in replacement strings.
15367     case $configure_input in #(
15368     *\&* | *\|* | *\\* )
15369        ac_sed_conf_input=`$as_echo "$configure_input" |
15370        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15371     *) ac_sed_conf_input=$configure_input;;
15372     esac
15373
15374     case $ac_tag in
15375     *:-:* | *:-) cat >"$tmp/stdin" \
15376       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15377     esac
15378     ;;
15379   esac
15380
15381   ac_dir=`$as_dirname -- "$ac_file" ||
15382 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15383          X"$ac_file" : 'X\(//\)[^/]' \| \
15384          X"$ac_file" : 'X\(//\)$' \| \
15385          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15386 $as_echo X"$ac_file" |
15387     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15388             s//\1/
15389             q
15390           }
15391           /^X\(\/\/\)[^/].*/{
15392             s//\1/
15393             q
15394           }
15395           /^X\(\/\/\)$/{
15396             s//\1/
15397             q
15398           }
15399           /^X\(\/\).*/{
15400             s//\1/
15401             q
15402           }
15403           s/.*/./; q'`
15404   as_dir="$ac_dir"; as_fn_mkdir_p
15405   ac_builddir=.
15406
15407 case "$ac_dir" in
15408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15409 *)
15410   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15411   # A ".." for each directory in $ac_dir_suffix.
15412   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15413   case $ac_top_builddir_sub in
15414   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15415   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15416   esac ;;
15417 esac
15418 ac_abs_top_builddir=$ac_pwd
15419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15420 # for backward compatibility:
15421 ac_top_builddir=$ac_top_build_prefix
15422
15423 case $srcdir in
15424   .)  # We are building in place.
15425     ac_srcdir=.
15426     ac_top_srcdir=$ac_top_builddir_sub
15427     ac_abs_top_srcdir=$ac_pwd ;;
15428   [\\/]* | ?:[\\/]* )  # Absolute name.
15429     ac_srcdir=$srcdir$ac_dir_suffix;
15430     ac_top_srcdir=$srcdir
15431     ac_abs_top_srcdir=$srcdir ;;
15432   *) # Relative name.
15433     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15434     ac_top_srcdir=$ac_top_build_prefix$srcdir
15435     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15436 esac
15437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15438
15439
15440   case $ac_mode in
15441   :F)
15442   #
15443   # CONFIG_FILE
15444   #
15445
15446   case $INSTALL in
15447   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15448   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15449   esac
15450   ac_MKDIR_P=$MKDIR_P
15451   case $MKDIR_P in
15452   [\\/$]* | ?:[\\/]* ) ;;
15453   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15454   esac
15455 _ACEOF
15456
15457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15458 # If the template does not know about datarootdir, expand it.
15459 # FIXME: This hack should be removed a few years after 2.60.
15460 ac_datarootdir_hack=; ac_datarootdir_seen=
15461 ac_sed_dataroot='
15462 /datarootdir/ {
15463   p
15464   q
15465 }
15466 /@datadir@/p
15467 /@docdir@/p
15468 /@infodir@/p
15469 /@localedir@/p
15470 /@mandir@/p'
15471 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15472 *datarootdir*) ac_datarootdir_seen=yes;;
15473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15474   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15475 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15476 _ACEOF
15477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15478   ac_datarootdir_hack='
15479   s&@datadir@&$datadir&g
15480   s&@docdir@&$docdir&g
15481   s&@infodir@&$infodir&g
15482   s&@localedir@&$localedir&g
15483   s&@mandir@&$mandir&g
15484   s&\\\${datarootdir}&$datarootdir&g' ;;
15485 esac
15486 _ACEOF
15487
15488 # Neutralize VPATH when `$srcdir' = `.'.
15489 # Shell code in configure.ac might set extrasub.
15490 # FIXME: do we really want to maintain this feature?
15491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15492 ac_sed_extra="$ac_vpsub
15493 $extrasub
15494 _ACEOF
15495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15496 :t
15497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15498 s|@configure_input@|$ac_sed_conf_input|;t t
15499 s&@top_builddir@&$ac_top_builddir_sub&;t t
15500 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15501 s&@srcdir@&$ac_srcdir&;t t
15502 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15503 s&@top_srcdir@&$ac_top_srcdir&;t t
15504 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15505 s&@builddir@&$ac_builddir&;t t
15506 s&@abs_builddir@&$ac_abs_builddir&;t t
15507 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15508 s&@INSTALL@&$ac_INSTALL&;t t
15509 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15510 $ac_datarootdir_hack
15511 "
15512 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15513 if $ac_cs_awk_getline; then
15514   $AWK -f "$tmp/subs.awk"
15515 else
15516   $AWK -f "$tmp/subs.awk" | $SHELL
15517 fi >$tmp/out \
15518   || as_fn_error "could not create $ac_file" "$LINENO" 5
15519
15520 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15521   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15522   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15523   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15524 which seems to be undefined.  Please make sure it is defined." >&5
15525 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15526 which seems to be undefined.  Please make sure it is defined." >&2;}
15527
15528   rm -f "$tmp/stdin"
15529   case $ac_file in
15530   -) cat "$tmp/out" && rm -f "$tmp/out";;
15531   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15532   esac \
15533   || as_fn_error "could not create $ac_file" "$LINENO" 5
15534  ;;
15535   :H)
15536   #
15537   # CONFIG_HEADER
15538   #
15539   if test x"$ac_file" != x-; then
15540     {
15541       $as_echo "/* $configure_input  */" \
15542       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15543     } >"$tmp/config.h" \
15544       || as_fn_error "could not create $ac_file" "$LINENO" 5
15545     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15546       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15547 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15548     else
15549       rm -f "$ac_file"
15550       mv "$tmp/config.h" "$ac_file" \
15551         || as_fn_error "could not create $ac_file" "$LINENO" 5
15552     fi
15553   else
15554     $as_echo "/* $configure_input  */" \
15555       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15556       || as_fn_error "could not create -" "$LINENO" 5
15557   fi
15558 # Compute "$ac_file"'s index in $config_headers.
15559 _am_arg="$ac_file"
15560 _am_stamp_count=1
15561 for _am_header in $config_headers :; do
15562   case $_am_header in
15563     $_am_arg | $_am_arg:* )
15564       break ;;
15565     * )
15566       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15567   esac
15568 done
15569 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15570 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15571          X"$_am_arg" : 'X\(//\)[^/]' \| \
15572          X"$_am_arg" : 'X\(//\)$' \| \
15573          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15574 $as_echo X"$_am_arg" |
15575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15576             s//\1/
15577             q
15578           }
15579           /^X\(\/\/\)[^/].*/{
15580             s//\1/
15581             q
15582           }
15583           /^X\(\/\/\)$/{
15584             s//\1/
15585             q
15586           }
15587           /^X\(\/\).*/{
15588             s//\1/
15589             q
15590           }
15591           s/.*/./; q'`/stamp-h$_am_stamp_count
15592  ;;
15593   :L)
15594   #
15595   # CONFIG_LINK
15596   #
15597
15598   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15599     :
15600   else
15601     # Prefer the file from the source tree if names are identical.
15602     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15603       ac_source=$srcdir/$ac_source
15604     fi
15605
15606     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15607 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15608
15609     if test ! -r "$ac_source"; then
15610       as_fn_error "$ac_source: file not found" "$LINENO" 5
15611     fi
15612     rm -f "$ac_file"
15613
15614     # Try a relative symlink, then a hard link, then a copy.
15615     case $srcdir in
15616     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15617         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15618     esac
15619     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15620       ln "$ac_source" "$ac_file" 2>/dev/null ||
15621       cp -p "$ac_source" "$ac_file" ||
15622       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15623   fi
15624  ;;
15625   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15626 $as_echo "$as_me: executing $ac_file commands" >&6;}
15627  ;;
15628   esac
15629
15630
15631   case $ac_file$ac_mode in
15632     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
15633     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15634   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15635   # are listed without --file.  Let's play safe and only enable the eval
15636   # if we detect the quoting.
15637   case $CONFIG_FILES in
15638   *\'*) eval set x "$CONFIG_FILES" ;;
15639   *)   set x $CONFIG_FILES ;;
15640   esac
15641   shift
15642   for mf
15643   do
15644     # Strip MF so we end up with the name of the file.
15645     mf=`echo "$mf" | sed -e 's/:.*$//'`
15646     # Check whether this is an Automake generated Makefile or not.
15647     # We used to match only the files named `Makefile.in', but
15648     # some people rename them; so instead we look at the file content.
15649     # Grep'ing the first line is not enough: some people post-process
15650     # each Makefile.in and add a new line on top of each file to say so.
15651     # Grep'ing the whole file is not good either: AIX grep has a line
15652     # limit of 2048, but all sed's we know have understand at least 4000.
15653     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15654       dirpart=`$as_dirname -- "$mf" ||
15655 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15656          X"$mf" : 'X\(//\)[^/]' \| \
15657          X"$mf" : 'X\(//\)$' \| \
15658          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15659 $as_echo X"$mf" |
15660     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15661             s//\1/
15662             q
15663           }
15664           /^X\(\/\/\)[^/].*/{
15665             s//\1/
15666             q
15667           }
15668           /^X\(\/\/\)$/{
15669             s//\1/
15670             q
15671           }
15672           /^X\(\/\).*/{
15673             s//\1/
15674             q
15675           }
15676           s/.*/./; q'`
15677     else
15678       continue
15679     fi
15680     # Extract the definition of DEPDIR, am__include, and am__quote
15681     # from the Makefile without running `make'.
15682     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15683     test -z "$DEPDIR" && continue
15684     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15685     test -z "am__include" && continue
15686     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15687     # When using ansi2knr, U may be empty or an underscore; expand it
15688     U=`sed -n 's/^U = //p' < "$mf"`
15689     # Find all dependency output files, they are included files with
15690     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15691     # simplest approach to changing $(DEPDIR) to its actual value in the
15692     # expansion.
15693     for file in `sed -n "
15694       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15695          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15696       # Make sure the directory exists.
15697       test -f "$dirpart/$file" && continue
15698       fdir=`$as_dirname -- "$file" ||
15699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15700          X"$file" : 'X\(//\)[^/]' \| \
15701          X"$file" : 'X\(//\)$' \| \
15702          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15703 $as_echo X"$file" |
15704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15705             s//\1/
15706             q
15707           }
15708           /^X\(\/\/\)[^/].*/{
15709             s//\1/
15710             q
15711           }
15712           /^X\(\/\/\)$/{
15713             s//\1/
15714             q
15715           }
15716           /^X\(\/\).*/{
15717             s//\1/
15718             q
15719           }
15720           s/.*/./; q'`
15721       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15722       # echo "creating $dirpart/$file"
15723       echo '# dummy' > "$dirpart/$file"
15724     done
15725   done
15726 }
15727  ;;
15728     "default":C)
15729 case x$CONFIG_HEADERS in
15730 xconfig.h:config.in)
15731 echo > stamp-h ;;
15732 esac
15733  ;;
15734
15735   esac
15736 done # for ac_tag
15737
15738
15739 as_fn_exit 0
15740 _ACEOF
15741 ac_clean_files=$ac_clean_files_save
15742
15743 test $ac_write_fail = 0 ||
15744   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15745
15746
15747 # configure is writing to config.log, and then calls config.status.
15748 # config.status does its own redirection, appending to config.log.
15749 # Unfortunately, on DOS this fails, as config.log is still kept open
15750 # by configure, so config.status won't be able to write to it; its
15751 # output is simply discarded.  So we exec the FD to /dev/null,
15752 # effectively closing config.log, so it can be properly (re)opened and
15753 # appended to by config.status.  When coming back to configure, we
15754 # need to make the FD available again.
15755 if test "$no_create" != yes; then
15756   ac_cs_success=:
15757   ac_config_status_args=
15758   test "$silent" = yes &&
15759     ac_config_status_args="$ac_config_status_args --quiet"
15760   exec 5>/dev/null
15761   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15762   exec 5>>config.log
15763   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15764   # would make configure fail if this is the last instruction.
15765   $ac_cs_success || as_fn_exit $?
15766 fi
15767
15768 #
15769 # CONFIG_SUBDIRS section.
15770 #
15771 if test "$no_recursion" != yes; then
15772
15773   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
15774   # so they do not pile up.
15775   ac_sub_configure_args=
15776   ac_prev=
15777   eval "set x $ac_configure_args"
15778   shift
15779   for ac_arg
15780   do
15781     if test -n "$ac_prev"; then
15782       ac_prev=
15783       continue
15784     fi
15785     case $ac_arg in
15786     -cache-file | --cache-file | --cache-fil | --cache-fi \
15787     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
15788       ac_prev=cache_file ;;
15789     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
15790     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
15791     | --c=*)
15792       ;;
15793     --config-cache | -C)
15794       ;;
15795     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
15796       ac_prev=srcdir ;;
15797     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
15798       ;;
15799     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
15800       ac_prev=prefix ;;
15801     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
15802       ;;
15803     --disable-option-checking)
15804       ;;
15805     *)
15806       case $ac_arg in
15807       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15808       esac
15809       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
15810     esac
15811   done
15812
15813   # Always prepend --prefix to ensure using the same prefix
15814   # in subdir configurations.
15815   ac_arg="--prefix=$prefix"
15816   case $ac_arg in
15817   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
15818   esac
15819   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
15820
15821   # Pass --silent
15822   if test "$silent" = yes; then
15823     ac_sub_configure_args="--silent $ac_sub_configure_args"
15824   fi
15825
15826   # Always prepend --disable-option-checking to silence warnings, since
15827   # different subdirs can have different --enable and --with options.
15828   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
15829
15830   ac_popdir=`pwd`
15831   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
15832
15833     # Do not complain, so a configure script can configure whichever
15834     # parts of a large source tree are present.
15835     test -d "$srcdir/$ac_dir" || continue
15836
15837     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
15838     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
15839     $as_echo "$ac_msg" >&6
15840     as_dir="$ac_dir"; as_fn_mkdir_p
15841     ac_builddir=.
15842
15843 case "$ac_dir" in
15844 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15845 *)
15846   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15847   # A ".." for each directory in $ac_dir_suffix.
15848   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15849   case $ac_top_builddir_sub in
15850   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15851   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15852   esac ;;
15853 esac
15854 ac_abs_top_builddir=$ac_pwd
15855 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15856 # for backward compatibility:
15857 ac_top_builddir=$ac_top_build_prefix
15858
15859 case $srcdir in
15860   .)  # We are building in place.
15861     ac_srcdir=.
15862     ac_top_srcdir=$ac_top_builddir_sub
15863     ac_abs_top_srcdir=$ac_pwd ;;
15864   [\\/]* | ?:[\\/]* )  # Absolute name.
15865     ac_srcdir=$srcdir$ac_dir_suffix;
15866     ac_top_srcdir=$srcdir
15867     ac_abs_top_srcdir=$srcdir ;;
15868   *) # Relative name.
15869     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15870     ac_top_srcdir=$ac_top_build_prefix$srcdir
15871     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15872 esac
15873 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15874
15875
15876     cd "$ac_dir"
15877
15878     # Check for guested configure; otherwise get Cygnus style configure.
15879     if test -f "$ac_srcdir/configure.gnu"; then
15880       ac_sub_configure=$ac_srcdir/configure.gnu
15881     elif test -f "$ac_srcdir/configure"; then
15882       ac_sub_configure=$ac_srcdir/configure
15883     elif test -f "$ac_srcdir/configure.in"; then
15884       # This should be Cygnus configure.
15885       ac_sub_configure=$ac_aux_dir/configure
15886     else
15887       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
15888 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
15889       ac_sub_configure=
15890     fi
15891
15892     # The recursion is here.
15893     if test -n "$ac_sub_configure"; then
15894       # Make the cache file name correct relative to the subdirectory.
15895       case $cache_file in
15896       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
15897       *) # Relative name.
15898         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
15899       esac
15900
15901       { $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
15902 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
15903       # The eval makes quoting arguments work.
15904       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
15905            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
15906         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
15907     fi
15908
15909     cd "$ac_popdir"
15910   done
15911 fi
15912 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15913   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15914 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15915 fi
15916
15917
15918 exit 0