gdb/
[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 gl_func_list=
593 enable_option_checking=no
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 GDB_NM_FILE
603 frags
604 target_subdir
605 CONFIG_UNINSTALL
606 CONFIG_INSTALL
607 CONFIG_CLEAN
608 CONFIG_ALL
609 CONFIG_SRCS
610 CONFIG_DEPS
611 CONFIG_OBS
612 PROFILE_CFLAGS
613 ENABLE_CFLAGS
614 SIM_OBS
615 SIM
616 XMKMF
617 GDBTK_SRC_DIR
618 GDBTK_CFLAGS
619 GDBTKLIBS
620 X_LIBS
621 X_LDFLAGS
622 X_CFLAGS
623 TK_XINCLUDES
624 TK_DEPS
625 TK_LIBRARY
626 TK_INCLUDE
627 TK_STUB_LIB_SPEC
628 TK_STUB_LIB_FLAG
629 TK_STUB_LIB_FILE
630 TK_LIB_SPEC
631 TK_LIB_FLAG
632 TK_LIB_FILE
633 TK_SRC_DIR
634 TK_BIN_DIR
635 TK_VERSION
636 TCL_DEPS
637 TCL_LIBRARY
638 TCL_INCLUDE
639 TCL_STUB_LIB_SPEC
640 TCL_STUB_LIB_FLAG
641 TCL_STUB_LIB_FILE
642 TCL_LIB_SPEC
643 TCL_LIB_FLAG
644 TCL_LIB_FILE
645 TCL_SRC_DIR
646 TCL_BIN_DIR
647 TCL_PATCH_LEVEL
648 TCL_VERSION
649 WIN32LDAPP
650 GUI_CFLAGS_X
651 LIBGUI
652 WIN32LIBS
653 SER_HARDWIRE
654 WERROR_CFLAGS
655 WARN_CFLAGS
656 SYSTEM_GDBINIT
657 TARGET_SYSTEM_ROOT_DEFINE
658 TARGET_SYSTEM_ROOT
659 CONFIG_LDFLAGS
660 ALLOCA
661 PYTHON_CFLAGS
662 LTLIBEXPAT
663 LIBEXPAT
664 HAVE_LIBEXPAT
665 READLINE_CFLAGS
666 READLINE_DEPS
667 READLINE
668 MIG
669 WINDRES
670 DLLTOOL
671 AR
672 YFLAGS
673 YACC
674 LN_S
675 REPORT_BUGS_TEXI
676 REPORT_BUGS_TO
677 PKGVERSION
678 TARGET_OBS
679 subdirs
680 GDB_DATADIR
681 DEBUGDIR
682 am__fastdepCC_FALSE
683 am__fastdepCC_TRUE
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__quote
688 am__include
689 am__untar
690 am__tar
691 AMTAR
692 AWK
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 STRIP
697 install_sh
698 MAKEINFO
699 AUTOHEADER
700 AUTOMAKE
701 AUTOCONF
702 ACLOCAL
703 VERSION
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 PACKAGE
710 GNULIB_STDINT_H
711 LIBGNU_LTLIBDEPS
712 LIBGNU_LIBDEPS
713 gltests_WITNESS
714 HAVE_WINT_T
715 HAVE_WCHAR_H
716 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
717 NEXT_WCHAR_H
718 REPLACE_WCWIDTH
719 REPLACE_WCSNRTOMBS
720 REPLACE_WCSRTOMBS
721 REPLACE_WCRTOMB
722 REPLACE_MBSNRTOWCS
723 REPLACE_MBSRTOWCS
724 REPLACE_MBRLEN
725 REPLACE_MBRTOWC
726 REPLACE_MBSINIT
727 REPLACE_WCTOB
728 REPLACE_BTOWC
729 REPLACE_MBSTATE_T
730 HAVE_DECL_WCWIDTH
731 HAVE_DECL_WCTOB
732 HAVE_WCSNRTOMBS
733 HAVE_WCSRTOMBS
734 HAVE_WCRTOMB
735 HAVE_MBSNRTOWCS
736 HAVE_MBSRTOWCS
737 HAVE_MBRLEN
738 HAVE_MBRTOWC
739 HAVE_MBSINIT
740 HAVE_BTOWC
741 GNULIB_WCWIDTH
742 GNULIB_WCSNRTOMBS
743 GNULIB_WCSRTOMBS
744 GNULIB_WCRTOMB
745 GNULIB_MBSNRTOWCS
746 GNULIB_MBSRTOWCS
747 GNULIB_MBRLEN
748 GNULIB_MBRTOWC
749 GNULIB_MBSINIT
750 GNULIB_WCTOB
751 GNULIB_BTOWC
752 NEXT_AS_FIRST_DIRECTIVE_STRING_H
753 NEXT_STRING_H
754 STDINT_H
755 WINT_T_SUFFIX
756 WCHAR_T_SUFFIX
757 SIG_ATOMIC_T_SUFFIX
758 SIZE_T_SUFFIX
759 PTRDIFF_T_SUFFIX
760 HAVE_SIGNED_WINT_T
761 HAVE_SIGNED_WCHAR_T
762 HAVE_SIGNED_SIG_ATOMIC_T
763 BITSIZEOF_WINT_T
764 BITSIZEOF_WCHAR_T
765 BITSIZEOF_SIG_ATOMIC_T
766 BITSIZEOF_SIZE_T
767 BITSIZEOF_PTRDIFF_T
768 HAVE_SYS_BITYPES_H
769 HAVE_SYS_INTTYPES_H
770 HAVE_STDINT_H
771 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
772 NEXT_STDINT_H
773 HAVE_SYS_TYPES_H
774 HAVE_INTTYPES_H
775 HAVE_UNSIGNED_LONG_LONG_INT
776 HAVE_LONG_LONG_INT
777 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
778 NEXT_STDDEF_H
779 PRAGMA_SYSTEM_HEADER
780 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
781 INCLUDE_NEXT
782 STDDEF_H
783 HAVE_WCHAR_T
784 REPLACE_NULL
785 APPLE_UNIVERSAL_BUILD
786 UNDEFINE_STRTOK_R
787 REPLACE_STRTOK_R
788 REPLACE_STRSIGNAL
789 REPLACE_STRNLEN
790 REPLACE_STRNDUP
791 REPLACE_STRNCAT
792 REPLACE_STRERROR
793 REPLACE_STRCASESTR
794 REPLACE_STRSTR
795 REPLACE_STRDUP
796 REPLACE_STPNCPY
797 REPLACE_MEMMEM
798 REPLACE_MEMCHR
799 HAVE_STRVERSCMP
800 HAVE_DECL_STRSIGNAL
801 HAVE_DECL_STRTOK_R
802 HAVE_STRCASESTR
803 HAVE_STRSEP
804 HAVE_STRPBRK
805 HAVE_DECL_STRNLEN
806 HAVE_DECL_STRNDUP
807 HAVE_DECL_STRDUP
808 HAVE_STRCHRNUL
809 HAVE_STPNCPY
810 HAVE_STPCPY
811 HAVE_RAWMEMCHR
812 HAVE_DECL_MEMRCHR
813 HAVE_MEMPCPY
814 HAVE_DECL_MEMMEM
815 HAVE_MEMCHR
816 HAVE_MBSLEN
817 GNULIB_STRVERSCMP
818 GNULIB_STRSIGNAL
819 GNULIB_STRERROR
820 GNULIB_MBSTOK_R
821 GNULIB_MBSSEP
822 GNULIB_MBSSPN
823 GNULIB_MBSPBRK
824 GNULIB_MBSCSPN
825 GNULIB_MBSCASESTR
826 GNULIB_MBSPCASECMP
827 GNULIB_MBSNCASECMP
828 GNULIB_MBSCASECMP
829 GNULIB_MBSSTR
830 GNULIB_MBSRCHR
831 GNULIB_MBSCHR
832 GNULIB_MBSNLEN
833 GNULIB_MBSLEN
834 GNULIB_STRTOK_R
835 GNULIB_STRCASESTR
836 GNULIB_STRSTR
837 GNULIB_STRSEP
838 GNULIB_STRPBRK
839 GNULIB_STRNLEN
840 GNULIB_STRNDUP
841 GNULIB_STRNCAT
842 GNULIB_STRDUP
843 GNULIB_STRCHRNUL
844 GNULIB_STPNCPY
845 GNULIB_STPCPY
846 GNULIB_RAWMEMCHR
847 GNULIB_MEMRCHR
848 GNULIB_MEMPCPY
849 GNULIB_MEMMEM
850 GNULIB_MEMCHR
851 GL_COND_LIBTOOL_FALSE
852 GL_COND_LIBTOOL_TRUE
853 CATOBJEXT
854 GENCAT
855 INSTOBJEXT
856 DATADIRNAME
857 CATALOGS
858 POSUB
859 GMSGFMT
860 XGETTEXT
861 INCINTL
862 LIBINTL_DEP
863 LIBINTL
864 USE_NLS
865 SET_MAKE
866 GMAKE_FALSE
867 GMAKE_TRUE
868 MAKE
869 CCDEPMODE
870 DEPDIR
871 am__leading_dot
872 target_os
873 target_vendor
874 target_cpu
875 target
876 RANLIB
877 EGREP
878 GREP
879 CPP
880 host_os
881 host_vendor
882 host_cpu
883 host
884 build_os
885 build_vendor
886 build_cpu
887 build
888 OBJEXT
889 EXEEXT
890 ac_ct_CC
891 CPPFLAGS
892 LDFLAGS
893 CFLAGS
894 CC
895 MAINT
896 MAINTAINER_MODE_FALSE
897 MAINTAINER_MODE_TRUE
898 target_alias
899 host_alias
900 build_alias
901 LIBS
902 ECHO_T
903 ECHO_N
904 ECHO_C
905 DEFS
906 mandir
907 localedir
908 libdir
909 psdir
910 pdfdir
911 dvidir
912 htmldir
913 infodir
914 docdir
915 oldincludedir
916 includedir
917 localstatedir
918 sharedstatedir
919 sysconfdir
920 datadir
921 datarootdir
922 libexecdir
923 sbindir
924 bindir
925 program_transform_name
926 prefix
927 exec_prefix
928 PACKAGE_URL
929 PACKAGE_BUGREPORT
930 PACKAGE_STRING
931 PACKAGE_VERSION
932 PACKAGE_TARNAME
933 PACKAGE_NAME
934 PATH_SEPARATOR
935 SHELL'
936 ac_subst_files='host_makefile_frag'
937 ac_user_opts='
938 enable_option_checking
939 enable_maintainer_mode
940 enable_plugins
941 enable_largefile
942 enable_dependency_tracking
943 with_separate_debug_dir
944 with_gdb_datadir
945 with_relocated_sources
946 enable_targets
947 enable_64_bit_bfd
948 enable_gdbcli
949 enable_gdbmi
950 enable_tui
951 enable_gdbtk
952 with_libunwind
953 with_curses
954 enable_profiling
955 with_pkgversion
956 with_bugurl
957 with_zlib
958 with_libiconv_prefix
959 with_system_readline
960 with_expat
961 with_gnu_ld
962 enable_rpath
963 with_libexpat_prefix
964 with_python
965 with_included_regex
966 with_sysroot
967 with_system_gdbinit
968 enable_werror
969 enable_build_warnings
970 enable_gdb_build_warnings
971 with_tcl
972 with_tk
973 with_x
974 enable_sim
975 enable_multi_ice
976 '
977       ac_precious_vars='build_alias
978 host_alias
979 target_alias
980 CC
981 CFLAGS
982 LDFLAGS
983 LIBS
984 CPPFLAGS
985 CPP
986 YACC
987 YFLAGS
988 XMKMF'
989 ac_subdirs_all='doc testsuite
990 gdbtk
991 multi-ice
992 gdbserver'
993
994 # Initialize some variables set by options.
995 ac_init_help=
996 ac_init_version=false
997 ac_unrecognized_opts=
998 ac_unrecognized_sep=
999 # The variables have the same names as the options, with
1000 # dashes changed to underlines.
1001 cache_file=/dev/null
1002 exec_prefix=NONE
1003 no_create=
1004 no_recursion=
1005 prefix=NONE
1006 program_prefix=NONE
1007 program_suffix=NONE
1008 program_transform_name=s,x,x,
1009 silent=
1010 site=
1011 srcdir=
1012 verbose=
1013 x_includes=NONE
1014 x_libraries=NONE
1015
1016 # Installation directory options.
1017 # These are left unexpanded so users can "make install exec_prefix=/foo"
1018 # and all the variables that are supposed to be based on exec_prefix
1019 # by default will actually change.
1020 # Use braces instead of parens because sh, perl, etc. also accept them.
1021 # (The list follows the same order as the GNU Coding Standards.)
1022 bindir='${exec_prefix}/bin'
1023 sbindir='${exec_prefix}/sbin'
1024 libexecdir='${exec_prefix}/libexec'
1025 datarootdir='${prefix}/share'
1026 datadir='${datarootdir}'
1027 sysconfdir='${prefix}/etc'
1028 sharedstatedir='${prefix}/com'
1029 localstatedir='${prefix}/var'
1030 includedir='${prefix}/include'
1031 oldincludedir='/usr/include'
1032 docdir='${datarootdir}/doc/${PACKAGE}'
1033 infodir='${datarootdir}/info'
1034 htmldir='${docdir}'
1035 dvidir='${docdir}'
1036 pdfdir='${docdir}'
1037 psdir='${docdir}'
1038 libdir='${exec_prefix}/lib'
1039 localedir='${datarootdir}/locale'
1040 mandir='${datarootdir}/man'
1041
1042 ac_prev=
1043 ac_dashdash=
1044 for ac_option
1045 do
1046   # If the previous option needs an argument, assign it.
1047   if test -n "$ac_prev"; then
1048     eval $ac_prev=\$ac_option
1049     ac_prev=
1050     continue
1051   fi
1052
1053   case $ac_option in
1054   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1055   *)    ac_optarg=yes ;;
1056   esac
1057
1058   # Accept the important Cygnus configure options, so we can diagnose typos.
1059
1060   case $ac_dashdash$ac_option in
1061   --)
1062     ac_dashdash=yes ;;
1063
1064   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1065     ac_prev=bindir ;;
1066   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1067     bindir=$ac_optarg ;;
1068
1069   -build | --build | --buil | --bui | --bu)
1070     ac_prev=build_alias ;;
1071   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1072     build_alias=$ac_optarg ;;
1073
1074   -cache-file | --cache-file | --cache-fil | --cache-fi \
1075   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1076     ac_prev=cache_file ;;
1077   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1078   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1079     cache_file=$ac_optarg ;;
1080
1081   --config-cache | -C)
1082     cache_file=config.cache ;;
1083
1084   -datadir | --datadir | --datadi | --datad)
1085     ac_prev=datadir ;;
1086   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1087     datadir=$ac_optarg ;;
1088
1089   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1090   | --dataroo | --dataro | --datar)
1091     ac_prev=datarootdir ;;
1092   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1093   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1094     datarootdir=$ac_optarg ;;
1095
1096   -disable-* | --disable-*)
1097     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1098     # Reject names that are not valid shell variable names.
1099     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100       as_fn_error "invalid feature name: $ac_useropt"
1101     ac_useropt_orig=$ac_useropt
1102     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103     case $ac_user_opts in
1104       *"
1105 "enable_$ac_useropt"
1106 "*) ;;
1107       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1108          ac_unrecognized_sep=', ';;
1109     esac
1110     eval enable_$ac_useropt=no ;;
1111
1112   -docdir | --docdir | --docdi | --doc | --do)
1113     ac_prev=docdir ;;
1114   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1115     docdir=$ac_optarg ;;
1116
1117   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1118     ac_prev=dvidir ;;
1119   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1120     dvidir=$ac_optarg ;;
1121
1122   -enable-* | --enable-*)
1123     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1124     # Reject names that are not valid shell variable names.
1125     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126       as_fn_error "invalid feature name: $ac_useropt"
1127     ac_useropt_orig=$ac_useropt
1128     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129     case $ac_user_opts in
1130       *"
1131 "enable_$ac_useropt"
1132 "*) ;;
1133       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1134          ac_unrecognized_sep=', ';;
1135     esac
1136     eval enable_$ac_useropt=\$ac_optarg ;;
1137
1138   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1139   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1140   | --exec | --exe | --ex)
1141     ac_prev=exec_prefix ;;
1142   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1143   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1144   | --exec=* | --exe=* | --ex=*)
1145     exec_prefix=$ac_optarg ;;
1146
1147   -gas | --gas | --ga | --g)
1148     # Obsolete; use --with-gas.
1149     with_gas=yes ;;
1150
1151   -help | --help | --hel | --he | -h)
1152     ac_init_help=long ;;
1153   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1154     ac_init_help=recursive ;;
1155   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1156     ac_init_help=short ;;
1157
1158   -host | --host | --hos | --ho)
1159     ac_prev=host_alias ;;
1160   -host=* | --host=* | --hos=* | --ho=*)
1161     host_alias=$ac_optarg ;;
1162
1163   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1164     ac_prev=htmldir ;;
1165   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1166   | --ht=*)
1167     htmldir=$ac_optarg ;;
1168
1169   -includedir | --includedir | --includedi | --included | --include \
1170   | --includ | --inclu | --incl | --inc)
1171     ac_prev=includedir ;;
1172   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1173   | --includ=* | --inclu=* | --incl=* | --inc=*)
1174     includedir=$ac_optarg ;;
1175
1176   -infodir | --infodir | --infodi | --infod | --info | --inf)
1177     ac_prev=infodir ;;
1178   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1179     infodir=$ac_optarg ;;
1180
1181   -libdir | --libdir | --libdi | --libd)
1182     ac_prev=libdir ;;
1183   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1184     libdir=$ac_optarg ;;
1185
1186   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1187   | --libexe | --libex | --libe)
1188     ac_prev=libexecdir ;;
1189   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1190   | --libexe=* | --libex=* | --libe=*)
1191     libexecdir=$ac_optarg ;;
1192
1193   -localedir | --localedir | --localedi | --localed | --locale)
1194     ac_prev=localedir ;;
1195   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1196     localedir=$ac_optarg ;;
1197
1198   -localstatedir | --localstatedir | --localstatedi | --localstated \
1199   | --localstate | --localstat | --localsta | --localst | --locals)
1200     ac_prev=localstatedir ;;
1201   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1202   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1203     localstatedir=$ac_optarg ;;
1204
1205   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1206     ac_prev=mandir ;;
1207   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1208     mandir=$ac_optarg ;;
1209
1210   -nfp | --nfp | --nf)
1211     # Obsolete; use --without-fp.
1212     with_fp=no ;;
1213
1214   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1215   | --no-cr | --no-c | -n)
1216     no_create=yes ;;
1217
1218   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1219   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1220     no_recursion=yes ;;
1221
1222   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1223   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1224   | --oldin | --oldi | --old | --ol | --o)
1225     ac_prev=oldincludedir ;;
1226   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1227   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1228   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1229     oldincludedir=$ac_optarg ;;
1230
1231   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1232     ac_prev=prefix ;;
1233   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1234     prefix=$ac_optarg ;;
1235
1236   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1237   | --program-pre | --program-pr | --program-p)
1238     ac_prev=program_prefix ;;
1239   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1240   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1241     program_prefix=$ac_optarg ;;
1242
1243   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1244   | --program-suf | --program-su | --program-s)
1245     ac_prev=program_suffix ;;
1246   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1247   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1248     program_suffix=$ac_optarg ;;
1249
1250   -program-transform-name | --program-transform-name \
1251   | --program-transform-nam | --program-transform-na \
1252   | --program-transform-n | --program-transform- \
1253   | --program-transform | --program-transfor \
1254   | --program-transfo | --program-transf \
1255   | --program-trans | --program-tran \
1256   | --progr-tra | --program-tr | --program-t)
1257     ac_prev=program_transform_name ;;
1258   -program-transform-name=* | --program-transform-name=* \
1259   | --program-transform-nam=* | --program-transform-na=* \
1260   | --program-transform-n=* | --program-transform-=* \
1261   | --program-transform=* | --program-transfor=* \
1262   | --program-transfo=* | --program-transf=* \
1263   | --program-trans=* | --program-tran=* \
1264   | --progr-tra=* | --program-tr=* | --program-t=*)
1265     program_transform_name=$ac_optarg ;;
1266
1267   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1268     ac_prev=pdfdir ;;
1269   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1270     pdfdir=$ac_optarg ;;
1271
1272   -psdir | --psdir | --psdi | --psd | --ps)
1273     ac_prev=psdir ;;
1274   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1275     psdir=$ac_optarg ;;
1276
1277   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1278   | -silent | --silent | --silen | --sile | --sil)
1279     silent=yes ;;
1280
1281   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1282     ac_prev=sbindir ;;
1283   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1284   | --sbi=* | --sb=*)
1285     sbindir=$ac_optarg ;;
1286
1287   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1288   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1289   | --sharedst | --shareds | --shared | --share | --shar \
1290   | --sha | --sh)
1291     ac_prev=sharedstatedir ;;
1292   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1293   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1294   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1295   | --sha=* | --sh=*)
1296     sharedstatedir=$ac_optarg ;;
1297
1298   -site | --site | --sit)
1299     ac_prev=site ;;
1300   -site=* | --site=* | --sit=*)
1301     site=$ac_optarg ;;
1302
1303   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1304     ac_prev=srcdir ;;
1305   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1306     srcdir=$ac_optarg ;;
1307
1308   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1309   | --syscon | --sysco | --sysc | --sys | --sy)
1310     ac_prev=sysconfdir ;;
1311   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1312   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1313     sysconfdir=$ac_optarg ;;
1314
1315   -target | --target | --targe | --targ | --tar | --ta | --t)
1316     ac_prev=target_alias ;;
1317   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1318     target_alias=$ac_optarg ;;
1319
1320   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1321     verbose=yes ;;
1322
1323   -version | --version | --versio | --versi | --vers | -V)
1324     ac_init_version=: ;;
1325
1326   -with-* | --with-*)
1327     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1328     # Reject names that are not valid shell variable names.
1329     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330       as_fn_error "invalid package name: $ac_useropt"
1331     ac_useropt_orig=$ac_useropt
1332     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333     case $ac_user_opts in
1334       *"
1335 "with_$ac_useropt"
1336 "*) ;;
1337       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1338          ac_unrecognized_sep=', ';;
1339     esac
1340     eval with_$ac_useropt=\$ac_optarg ;;
1341
1342   -without-* | --without-*)
1343     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1344     # Reject names that are not valid shell variable names.
1345     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346       as_fn_error "invalid package name: $ac_useropt"
1347     ac_useropt_orig=$ac_useropt
1348     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349     case $ac_user_opts in
1350       *"
1351 "with_$ac_useropt"
1352 "*) ;;
1353       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1354          ac_unrecognized_sep=', ';;
1355     esac
1356     eval with_$ac_useropt=no ;;
1357
1358   --x)
1359     # Obsolete; use --with-x.
1360     with_x=yes ;;
1361
1362   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1363   | --x-incl | --x-inc | --x-in | --x-i)
1364     ac_prev=x_includes ;;
1365   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1366   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1367     x_includes=$ac_optarg ;;
1368
1369   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1370   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1371     ac_prev=x_libraries ;;
1372   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1373   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1374     x_libraries=$ac_optarg ;;
1375
1376   -*) as_fn_error "unrecognized option: \`$ac_option'
1377 Try \`$0 --help' for more information."
1378     ;;
1379
1380   *=*)
1381     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1382     # Reject names that are not valid shell variable names.
1383     case $ac_envvar in #(
1384       '' | [0-9]* | *[!_$as_cr_alnum]* )
1385       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1386     esac
1387     eval $ac_envvar=\$ac_optarg
1388     export $ac_envvar ;;
1389
1390   *)
1391     # FIXME: should be removed in autoconf 3.0.
1392     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1393     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1394       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1395     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1396     ;;
1397
1398   esac
1399 done
1400
1401 if test -n "$ac_prev"; then
1402   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1403   as_fn_error "missing argument to $ac_option"
1404 fi
1405
1406 if test -n "$ac_unrecognized_opts"; then
1407   case $enable_option_checking in
1408     no) ;;
1409     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1410     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1411   esac
1412 fi
1413
1414 # Check all directory arguments for consistency.
1415 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1416                 datadir sysconfdir sharedstatedir localstatedir includedir \
1417                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1418                 libdir localedir mandir
1419 do
1420   eval ac_val=\$$ac_var
1421   # Remove trailing slashes.
1422   case $ac_val in
1423     */ )
1424       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1425       eval $ac_var=\$ac_val;;
1426   esac
1427   # Be sure to have absolute directory names.
1428   case $ac_val in
1429     [\\/$]* | ?:[\\/]* )  continue;;
1430     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1431   esac
1432   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1433 done
1434
1435 # There might be people who depend on the old broken behavior: `$host'
1436 # used to hold the argument of --host etc.
1437 # FIXME: To remove some day.
1438 build=$build_alias
1439 host=$host_alias
1440 target=$target_alias
1441
1442 # FIXME: To remove some day.
1443 if test "x$host_alias" != x; then
1444   if test "x$build_alias" = x; then
1445     cross_compiling=maybe
1446     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1447     If a cross compiler is detected then cross compile mode will be used." >&2
1448   elif test "x$build_alias" != "x$host_alias"; then
1449     cross_compiling=yes
1450   fi
1451 fi
1452
1453 ac_tool_prefix=
1454 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1455
1456 test "$silent" = yes && exec 6>/dev/null
1457
1458
1459 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1460 ac_ls_di=`ls -di .` &&
1461 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1462   as_fn_error "working directory cannot be determined"
1463 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1464   as_fn_error "pwd does not report name of working directory"
1465
1466
1467 # Find the source files, if location was not specified.
1468 if test -z "$srcdir"; then
1469   ac_srcdir_defaulted=yes
1470   # Try the directory containing this script, then the parent directory.
1471   ac_confdir=`$as_dirname -- "$as_myself" ||
1472 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1473          X"$as_myself" : 'X\(//\)[^/]' \| \
1474          X"$as_myself" : 'X\(//\)$' \| \
1475          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1476 $as_echo X"$as_myself" |
1477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1478             s//\1/
1479             q
1480           }
1481           /^X\(\/\/\)[^/].*/{
1482             s//\1/
1483             q
1484           }
1485           /^X\(\/\/\)$/{
1486             s//\1/
1487             q
1488           }
1489           /^X\(\/\).*/{
1490             s//\1/
1491             q
1492           }
1493           s/.*/./; q'`
1494   srcdir=$ac_confdir
1495   if test ! -r "$srcdir/$ac_unique_file"; then
1496     srcdir=..
1497   fi
1498 else
1499   ac_srcdir_defaulted=no
1500 fi
1501 if test ! -r "$srcdir/$ac_unique_file"; then
1502   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1503   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1504 fi
1505 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1506 ac_abs_confdir=`(
1507         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1508         pwd)`
1509 # When building in place, set srcdir=.
1510 if test "$ac_abs_confdir" = "$ac_pwd"; then
1511   srcdir=.
1512 fi
1513 # Remove unnecessary trailing slashes from srcdir.
1514 # Double slashes in file names in object file debugging info
1515 # mess up M-x gdb in Emacs.
1516 case $srcdir in
1517 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1518 esac
1519 for ac_var in $ac_precious_vars; do
1520   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1521   eval ac_env_${ac_var}_value=\$${ac_var}
1522   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1523   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1524 done
1525
1526 #
1527 # Report the --help message.
1528 #
1529 if test "$ac_init_help" = "long"; then
1530   # Omit some internal or obsolete options to make the list less imposing.
1531   # This message is too long to be a string in the A/UX 3.1 sh.
1532   cat <<_ACEOF
1533 \`configure' configures this package to adapt to many kinds of systems.
1534
1535 Usage: $0 [OPTION]... [VAR=VALUE]...
1536
1537 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1538 VAR=VALUE.  See below for descriptions of some of the useful variables.
1539
1540 Defaults for the options are specified in brackets.
1541
1542 Configuration:
1543   -h, --help              display this help and exit
1544       --help=short        display options specific to this package
1545       --help=recursive    display the short help of all the included packages
1546   -V, --version           display version information and exit
1547   -q, --quiet, --silent   do not print \`checking...' messages
1548       --cache-file=FILE   cache test results in FILE [disabled]
1549   -C, --config-cache      alias for \`--cache-file=config.cache'
1550   -n, --no-create         do not create output files
1551       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1552
1553 Installation directories:
1554   --prefix=PREFIX         install architecture-independent files in PREFIX
1555                           [$ac_default_prefix]
1556   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1557                           [PREFIX]
1558
1559 By default, \`make install' will install all the files in
1560 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1561 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1562 for instance \`--prefix=\$HOME'.
1563
1564 For better control, use the options below.
1565
1566 Fine tuning of the installation directories:
1567   --bindir=DIR            user executables [EPREFIX/bin]
1568   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1569   --libexecdir=DIR        program executables [EPREFIX/libexec]
1570   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1571   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1572   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1573   --libdir=DIR            object code libraries [EPREFIX/lib]
1574   --includedir=DIR        C header files [PREFIX/include]
1575   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1576   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1577   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1578   --infodir=DIR           info documentation [DATAROOTDIR/info]
1579   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1580   --mandir=DIR            man documentation [DATAROOTDIR/man]
1581   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1582   --htmldir=DIR           html documentation [DOCDIR]
1583   --dvidir=DIR            dvi documentation [DOCDIR]
1584   --pdfdir=DIR            pdf documentation [DOCDIR]
1585   --psdir=DIR             ps documentation [DOCDIR]
1586 _ACEOF
1587
1588   cat <<\_ACEOF
1589
1590 Program names:
1591   --program-prefix=PREFIX            prepend PREFIX to installed program names
1592   --program-suffix=SUFFIX            append SUFFIX to installed program names
1593   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1594
1595 X features:
1596   --x-includes=DIR    X include files are in DIR
1597   --x-libraries=DIR   X library files are in DIR
1598
1599 System types:
1600   --build=BUILD     configure for building on BUILD [guessed]
1601   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1602   --target=TARGET   configure for building compilers for TARGET [HOST]
1603 _ACEOF
1604 fi
1605
1606 if test -n "$ac_init_help"; then
1607
1608   cat <<\_ACEOF
1609
1610 Optional Features:
1611   --disable-option-checking  ignore unrecognized --enable/--with options
1612   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1613   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1614   --enable-maintainer-mode  enable make rules and dependencies not useful
1615                           (and sometimes confusing) to the casual installer
1616   --enable-plugins        Enable support for plugins (defaults no)
1617   --disable-largefile     omit support for large files
1618   --disable-dependency-tracking  speeds up one-time build
1619   --enable-dependency-tracking   do not reject slow dependency extractors
1620   --enable-targets=TARGETS
1621                           alternative target configurations
1622   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1623   --disable-gdbcli        disable command-line interface (CLI)
1624   --disable-gdbmi         disable machine-interface (MI)
1625   --enable-tui            enable full-screen terminal user interface (TUI)
1626   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1627   --enable-profiling      enable profiling of GDB
1628   --disable-rpath         do not hardcode runtime library paths
1629   --enable-werror         treat compile warnings as errors
1630   --enable-build-warnings enable build-time compiler warnings if gcc is used
1631   --enable-gdb-build-warnings
1632                           enable GDB specific build-time compiler warnings if
1633                           gcc is used
1634   --enable-sim            link gdb with simulator
1635   --enable-multi-ice      build the multi-ice-gdb-server
1636
1637 Optional Packages:
1638   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1639   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1640   --with-separate-debug-dir=PATH
1641                           look for global separate debug info in this path
1642                           [LIBDIR/debug]
1643   --with-gdb-datadir=PATH look for global separate data files in this path
1644                           [DATADIR/gdb]
1645   --with-relocated-sources=PATH
1646                           automatically relocate this path for source files
1647   --with-libunwind        use libunwind frame unwinding support
1648   --with-curses           use the curses library instead of the termcap
1649                           library
1650   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1651   --with-bugurl=URL       Direct users to URL to report a bug
1652   --with-zlib             include zlib support (auto/yes/no) default=auto
1653   --with-libiconv-prefix=DIR
1654                           search for libiconv in DIR/include and DIR/lib
1655   --with-system-readline  use installed readline library
1656   --with-expat            include expat support (auto/yes/no)
1657   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1658   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1659   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1660   --with-python           include python support (auto/yes/no/<path>)
1661   --without-included-regex
1662                           don't use included regex; this is the default on
1663                           systems with version 2 of the GNU C library (use
1664                           with caution on other system)
1665   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1666   --with-system-gdbinit=PATH
1667                           automatically load a system-wide gdbinit file
1668   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1669   --with-tk               directory containing tk configuration (tkConfig.sh)
1670   --with-x                use the X Window System
1671
1672 Some influential environment variables:
1673   CC          C compiler command
1674   CFLAGS      C compiler flags
1675   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1676               nonstandard directory <lib dir>
1677   LIBS        libraries to pass to the linker, e.g. -l<library>
1678   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1679               you have headers in a nonstandard directory <include dir>
1680   CPP         C preprocessor
1681   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1682               the first program found out of: `bison -y', `byacc', `yacc'.
1683   YFLAGS      The list of arguments that will be passed by default to $YACC.
1684               This script will default YFLAGS to the empty string to avoid a
1685               default value of `-d' given by some make applications.
1686   XMKMF       Path to xmkmf, Makefile generator for X Window System
1687
1688 Use these variables to override the choices made by `configure' or to help
1689 it to find libraries and programs with nonstandard names/locations.
1690
1691 Report bugs to the package provider.
1692 _ACEOF
1693 ac_status=$?
1694 fi
1695
1696 if test "$ac_init_help" = "recursive"; then
1697   # If there are subdirs, report their specific --help.
1698   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1699     test -d "$ac_dir" ||
1700       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1701       continue
1702     ac_builddir=.
1703
1704 case "$ac_dir" in
1705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1706 *)
1707   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1708   # A ".." for each directory in $ac_dir_suffix.
1709   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1710   case $ac_top_builddir_sub in
1711   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1712   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1713   esac ;;
1714 esac
1715 ac_abs_top_builddir=$ac_pwd
1716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1717 # for backward compatibility:
1718 ac_top_builddir=$ac_top_build_prefix
1719
1720 case $srcdir in
1721   .)  # We are building in place.
1722     ac_srcdir=.
1723     ac_top_srcdir=$ac_top_builddir_sub
1724     ac_abs_top_srcdir=$ac_pwd ;;
1725   [\\/]* | ?:[\\/]* )  # Absolute name.
1726     ac_srcdir=$srcdir$ac_dir_suffix;
1727     ac_top_srcdir=$srcdir
1728     ac_abs_top_srcdir=$srcdir ;;
1729   *) # Relative name.
1730     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1731     ac_top_srcdir=$ac_top_build_prefix$srcdir
1732     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1733 esac
1734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1735
1736     cd "$ac_dir" || { ac_status=$?; continue; }
1737     # Check for guested configure.
1738     if test -f "$ac_srcdir/configure.gnu"; then
1739       echo &&
1740       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1741     elif test -f "$ac_srcdir/configure"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure" --help=recursive
1744     else
1745       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1746     fi || ac_status=$?
1747     cd "$ac_pwd" || { ac_status=$?; break; }
1748   done
1749 fi
1750
1751 test -n "$ac_init_help" && exit $ac_status
1752 if $ac_init_version; then
1753   cat <<\_ACEOF
1754 configure
1755 generated by GNU Autoconf 2.64
1756
1757 Copyright (C) 2009 Free Software Foundation, Inc.
1758 This configure script is free software; the Free Software Foundation
1759 gives unlimited permission to copy, distribute and modify it.
1760 _ACEOF
1761   exit
1762 fi
1763
1764 ## ------------------------ ##
1765 ## Autoconf initialization. ##
1766 ## ------------------------ ##
1767
1768 # ac_fn_c_try_compile LINENO
1769 # --------------------------
1770 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1771 ac_fn_c_try_compile ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   rm -f conftest.$ac_objext
1775   if { { ac_try="$ac_compile"
1776 case "(($ac_try" in
1777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778   *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782   (eval "$ac_compile") 2>conftest.err
1783   ac_status=$?
1784   if test -s conftest.err; then
1785     grep -v '^ *+' conftest.err >conftest.er1
1786     cat conftest.er1 >&5
1787     mv -f conftest.er1 conftest.err
1788   fi
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && {
1791          test -z "$ac_c_werror_flag" ||
1792          test ! -s conftest.err
1793        } && test -s conftest.$ac_objext; then :
1794   ac_retval=0
1795 else
1796   $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799         ac_retval=1
1800 fi
1801   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802   return $ac_retval
1803
1804 } # ac_fn_c_try_compile
1805
1806 # ac_fn_c_try_cpp LINENO
1807 # ----------------------
1808 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1809 ac_fn_c_try_cpp ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   if { { ac_try="$ac_cpp conftest.$ac_ext"
1813 case "(($ac_try" in
1814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815   *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1820   ac_status=$?
1821   if test -s conftest.err; then
1822     grep -v '^ *+' conftest.err >conftest.er1
1823     cat conftest.er1 >&5
1824     mv -f conftest.er1 conftest.err
1825   fi
1826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827   test $ac_status = 0; } >/dev/null && {
1828          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1829          test ! -s conftest.err
1830        }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1835
1836     ac_retval=1
1837 fi
1838   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839   return $ac_retval
1840
1841 } # ac_fn_c_try_cpp
1842
1843 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846 # the include files in INCLUDES and setting the cache variable VAR
1847 # accordingly.
1848 ac_fn_c_check_header_mongrel ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855   $as_echo_n "(cached) " >&6
1856 fi
1857 eval ac_res=\$$3
1858                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 else
1861   # Is the header compilable?
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863 $as_echo_n "checking $2 usability... " >&6; }
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h.  */
1866 $4
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870   ac_header_compiler=yes
1871 else
1872   ac_header_compiler=no
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876 $as_echo "$ac_header_compiler" >&6; }
1877
1878 # Is the header present?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880 $as_echo_n "checking $2 presence... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h.  */
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_cpp "$LINENO"; then :
1886   ac_header_preproc=yes
1887 else
1888   ac_header_preproc=no
1889 fi
1890 rm -f conftest.err conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892 $as_echo "$ac_header_preproc" >&6; }
1893
1894 # So?  What about this header?
1895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896   yes:no: )
1897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901     ;;
1902   no:yes:* )
1903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1906 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1907     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1910 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1911     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913     ;;
1914 esac
1915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1918   $as_echo_n "(cached) " >&6
1919 else
1920   eval "$3=\$ac_header_compiler"
1921 fi
1922 eval ac_res=\$$3
1923                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924 $as_echo "$ac_res" >&6; }
1925 fi
1926   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927
1928 } # ac_fn_c_check_header_mongrel
1929
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1934 ac_fn_c_try_run ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940   *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944   (eval "$ac_link") 2>&5
1945   ac_status=$?
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948   { { case "(($ac_try" in
1949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950   *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954   (eval "$ac_try") 2>&5
1955   ac_status=$?
1956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957   test $ac_status = 0; }; }; then :
1958   ac_retval=0
1959 else
1960   $as_echo "$as_me: program exited with status $ac_status" >&5
1961        $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964        ac_retval=$ac_status
1965 fi
1966   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1968   return $ac_retval
1969
1970 } # ac_fn_c_try_run
1971
1972 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1973 # -------------------------------------------------------
1974 # Tests whether HEADER exists and can be compiled using the include files in
1975 # INCLUDES, setting the cache variable VAR accordingly.
1976 ac_fn_c_check_header_compile ()
1977 {
1978   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980 $as_echo_n "checking for $2... " >&6; }
1981 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982   $as_echo_n "(cached) " >&6
1983 else
1984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 #include <$2>
1988 _ACEOF
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990   eval "$3=yes"
1991 else
1992   eval "$3=no"
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$3
1997                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000
2001 } # ac_fn_c_check_header_compile
2002
2003 # ac_fn_c_try_link LINENO
2004 # -----------------------
2005 # Try to link conftest.$ac_ext, and return whether this succeeded.
2006 ac_fn_c_try_link ()
2007 {
2008   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009   rm -f conftest.$ac_objext conftest$ac_exeext
2010   if { { ac_try="$ac_link"
2011 case "(($ac_try" in
2012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013   *) ac_try_echo=$ac_try;;
2014 esac
2015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016 $as_echo "$ac_try_echo"; } >&5
2017   (eval "$ac_link") 2>conftest.err
2018   ac_status=$?
2019   if test -s conftest.err; then
2020     grep -v '^ *+' conftest.err >conftest.er1
2021     cat conftest.er1 >&5
2022     mv -f conftest.er1 conftest.err
2023   fi
2024   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025   test $ac_status = 0; } && {
2026          test -z "$ac_c_werror_flag" ||
2027          test ! -s conftest.err
2028        } && test -s conftest$ac_exeext && {
2029          test "$cross_compiling" = yes ||
2030          $as_test_x conftest$ac_exeext
2031        }; then :
2032   ac_retval=0
2033 else
2034   $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037         ac_retval=1
2038 fi
2039   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041   # interfere with the next link command; also delete a directory that is
2042   # left behind by Apple's compiler.  We do this before executing the actions.
2043   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2045   return $ac_retval
2046
2047 } # ac_fn_c_try_link
2048
2049 # ac_fn_c_check_func LINENO FUNC VAR
2050 # ----------------------------------
2051 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2052 ac_fn_c_check_func ()
2053 {
2054   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056 $as_echo_n "checking for $2... " >&6; }
2057 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2058   $as_echo_n "(cached) " >&6
2059 else
2060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2064 #define $2 innocuous_$2
2065
2066 /* System header to define __stub macros and hopefully few prototypes,
2067     which can conflict with char $2 (); below.
2068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2069     <limits.h> exists even on freestanding compilers.  */
2070
2071 #ifdef __STDC__
2072 # include <limits.h>
2073 #else
2074 # include <assert.h>
2075 #endif
2076
2077 #undef $2
2078
2079 /* Override any GCC internal prototype to avoid an error.
2080    Use char because int might match the return type of a GCC
2081    builtin and then its argument prototype would still apply.  */
2082 #ifdef __cplusplus
2083 extern "C"
2084 #endif
2085 char $2 ();
2086 /* The GNU C library defines this for functions which it implements
2087     to always fail with ENOSYS.  Some functions are actually named
2088     something starting with __ and the normal name is an alias.  */
2089 #if defined __stub_$2 || defined __stub___$2
2090 choke me
2091 #endif
2092
2093 int
2094 main ()
2095 {
2096 return $2 ();
2097   ;
2098   return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_link "$LINENO"; then :
2102   eval "$3=yes"
2103 else
2104   eval "$3=no"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext \
2107     conftest$ac_exeext conftest.$ac_ext
2108 fi
2109 eval ac_res=\$$3
2110                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 $as_echo "$ac_res" >&6; }
2112   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2113
2114 } # ac_fn_c_check_func
2115
2116 # ac_fn_c_check_decl LINENO SYMBOL VAR
2117 # ------------------------------------
2118 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2119 ac_fn_c_check_decl ()
2120 {
2121   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2123 $as_echo_n "checking whether $2 is declared... " >&6; }
2124 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2125   $as_echo_n "(cached) " >&6
2126 else
2127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h.  */
2129 $4
2130 int
2131 main ()
2132 {
2133 #ifndef $2
2134   (void) $2;
2135 #endif
2136
2137   ;
2138   return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142   eval "$3=yes"
2143 else
2144   eval "$3=no"
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 fi
2148 eval ac_res=\$$3
2149                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150 $as_echo "$ac_res" >&6; }
2151   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152
2153 } # ac_fn_c_check_decl
2154
2155 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2156 # --------------------------------------------
2157 # Tries to find the compile-time value of EXPR in a program that includes
2158 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2159 # computed
2160 ac_fn_c_compute_int ()
2161 {
2162   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163   if test "$cross_compiling" = yes; then
2164     # Depending upon the size, compute the lo and hi bounds.
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $4
2168 int
2169 main ()
2170 {
2171 static int test_array [1 - 2 * !(($2) >= 0)];
2172 test_array [0] = 0
2173
2174   ;
2175   return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179   ac_lo=0 ac_mid=0
2180   while :; do
2181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h.  */
2183 $4
2184 int
2185 main ()
2186 {
2187 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2188 test_array [0] = 0
2189
2190   ;
2191   return 0;
2192 }
2193 _ACEOF
2194 if ac_fn_c_try_compile "$LINENO"; then :
2195   ac_hi=$ac_mid; break
2196 else
2197   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2198                         if test $ac_lo -le $ac_mid; then
2199                           ac_lo= ac_hi=
2200                           break
2201                         fi
2202                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2203 fi
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205   done
2206 else
2207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h.  */
2209 $4
2210 int
2211 main ()
2212 {
2213 static int test_array [1 - 2 * !(($2) < 0)];
2214 test_array [0] = 0
2215
2216   ;
2217   return 0;
2218 }
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221   ac_hi=-1 ac_mid=-1
2222   while :; do
2223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h.  */
2225 $4
2226 int
2227 main ()
2228 {
2229 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2230 test_array [0] = 0
2231
2232   ;
2233   return 0;
2234 }
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237   ac_lo=$ac_mid; break
2238 else
2239   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2240                         if test $ac_mid -le $ac_hi; then
2241                           ac_lo= ac_hi=
2242                           break
2243                         fi
2244                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247   done
2248 else
2249   ac_lo= ac_hi=
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 fi
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254 # Binary search between lo and hi bounds.
2255 while test "x$ac_lo" != "x$ac_hi"; do
2256   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258 /* end confdefs.h.  */
2259 $4
2260 int
2261 main ()
2262 {
2263 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2264 test_array [0] = 0
2265
2266   ;
2267   return 0;
2268 }
2269 _ACEOF
2270 if ac_fn_c_try_compile "$LINENO"; then :
2271   ac_hi=$ac_mid
2272 else
2273   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2274 fi
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276 done
2277 case $ac_lo in #((
2278 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2279 '') ac_retval=1 ;;
2280 esac
2281   else
2282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h.  */
2284 $4
2285 static long int longval () { return $2; }
2286 static unsigned long int ulongval () { return $2; }
2287 #include <stdio.h>
2288 #include <stdlib.h>
2289 int
2290 main ()
2291 {
2292
2293   FILE *f = fopen ("conftest.val", "w");
2294   if (! f)
2295     return 1;
2296   if (($2) < 0)
2297     {
2298       long int i = longval ();
2299       if (i != ($2))
2300         return 1;
2301       fprintf (f, "%ld", i);
2302     }
2303   else
2304     {
2305       unsigned long int i = ulongval ();
2306       if (i != ($2))
2307         return 1;
2308       fprintf (f, "%lu", i);
2309     }
2310   /* Do not output a trailing newline, as this causes \r\n confusion
2311      on some platforms.  */
2312   return ferror (f) || fclose (f) != 0;
2313
2314   ;
2315   return 0;
2316 }
2317 _ACEOF
2318 if ac_fn_c_try_run "$LINENO"; then :
2319   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2320 else
2321   ac_retval=1
2322 fi
2323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2324   conftest.$ac_objext conftest.beam conftest.$ac_ext
2325 rm -f conftest.val
2326
2327   fi
2328   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2329   return $ac_retval
2330
2331 } # ac_fn_c_compute_int
2332
2333 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2334 # ----------------------------------------------------
2335 # Tries to find if the field MEMBER exists in type AGGR, after including
2336 # INCLUDES, setting cache variable VAR accordingly.
2337 ac_fn_c_check_member ()
2338 {
2339   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2341 $as_echo_n "checking for $2.$3... " >&6; }
2342 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2343   $as_echo_n "(cached) " >&6
2344 else
2345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 $5
2348 int
2349 main ()
2350 {
2351 static $2 ac_aggr;
2352 if (ac_aggr.$3)
2353 return 0;
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359   eval "$4=yes"
2360 else
2361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2362 /* end confdefs.h.  */
2363 $5
2364 int
2365 main ()
2366 {
2367 static $2 ac_aggr;
2368 if (sizeof ac_aggr.$3)
2369 return 0;
2370   ;
2371   return 0;
2372 }
2373 _ACEOF
2374 if ac_fn_c_try_compile "$LINENO"; then :
2375   eval "$4=yes"
2376 else
2377   eval "$4=no"
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 fi
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2382 fi
2383 eval ac_res=\$$4
2384                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387
2388 } # ac_fn_c_check_member
2389
2390 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2391 # -------------------------------------------
2392 # Tests whether TYPE exists after having included INCLUDES, setting cache
2393 # variable VAR accordingly.
2394 ac_fn_c_check_type ()
2395 {
2396   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398 $as_echo_n "checking for $2... " >&6; }
2399 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2400   $as_echo_n "(cached) " >&6
2401 else
2402   eval "$3=no"
2403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h.  */
2405 $4
2406 int
2407 main ()
2408 {
2409 if (sizeof ($2))
2410          return 0;
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 if ac_fn_c_try_compile "$LINENO"; then :
2416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h.  */
2418 $4
2419 int
2420 main ()
2421 {
2422 if (sizeof (($2)))
2423             return 0;
2424   ;
2425   return 0;
2426 }
2427 _ACEOF
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429
2430 else
2431   eval "$3=yes"
2432 fi
2433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 fi
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436 fi
2437 eval ac_res=\$$3
2438                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2439 $as_echo "$ac_res" >&6; }
2440   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2441
2442 } # ac_fn_c_check_type
2443 cat >config.log <<_ACEOF
2444 This file contains any messages produced by compilers while
2445 running configure, to aid debugging if configure makes a mistake.
2446
2447 It was created by $as_me, which was
2448 generated by GNU Autoconf 2.64.  Invocation command line was
2449
2450   $ $0 $@
2451
2452 _ACEOF
2453 exec 5>>config.log
2454 {
2455 cat <<_ASUNAME
2456 ## --------- ##
2457 ## Platform. ##
2458 ## --------- ##
2459
2460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2465
2466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2467 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2468
2469 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2470 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2472 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2473 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2474 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2475 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2476
2477 _ASUNAME
2478
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 for as_dir in $PATH
2481 do
2482   IFS=$as_save_IFS
2483   test -z "$as_dir" && as_dir=.
2484     $as_echo "PATH: $as_dir"
2485   done
2486 IFS=$as_save_IFS
2487
2488 } >&5
2489
2490 cat >&5 <<_ACEOF
2491
2492
2493 ## ----------- ##
2494 ## Core tests. ##
2495 ## ----------- ##
2496
2497 _ACEOF
2498
2499
2500 # Keep a trace of the command line.
2501 # Strip out --no-create and --no-recursion so they do not pile up.
2502 # Strip out --silent because we don't want to record it for future runs.
2503 # Also quote any args containing shell meta-characters.
2504 # Make two passes to allow for proper duplicate-argument suppression.
2505 ac_configure_args=
2506 ac_configure_args0=
2507 ac_configure_args1=
2508 ac_must_keep_next=false
2509 for ac_pass in 1 2
2510 do
2511   for ac_arg
2512   do
2513     case $ac_arg in
2514     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2515     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2516     | -silent | --silent | --silen | --sile | --sil)
2517       continue ;;
2518     *\'*)
2519       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2520     esac
2521     case $ac_pass in
2522     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2523     2)
2524       as_fn_append ac_configure_args1 " '$ac_arg'"
2525       if test $ac_must_keep_next = true; then
2526         ac_must_keep_next=false # Got value, back to normal.
2527       else
2528         case $ac_arg in
2529           *=* | --config-cache | -C | -disable-* | --disable-* \
2530           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2531           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2532           | -with-* | --with-* | -without-* | --without-* | --x)
2533             case "$ac_configure_args0 " in
2534               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2535             esac
2536             ;;
2537           -* ) ac_must_keep_next=true ;;
2538         esac
2539       fi
2540       as_fn_append ac_configure_args " '$ac_arg'"
2541       ;;
2542     esac
2543   done
2544 done
2545 { ac_configure_args0=; unset ac_configure_args0;}
2546 { ac_configure_args1=; unset ac_configure_args1;}
2547
2548 # When interrupted or exit'd, cleanup temporary files, and complete
2549 # config.log.  We remove comments because anyway the quotes in there
2550 # would cause problems or look ugly.
2551 # WARNING: Use '\'' to represent an apostrophe within the trap.
2552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2553 trap 'exit_status=$?
2554   # Save into config.log some information that might help in debugging.
2555   {
2556     echo
2557
2558     cat <<\_ASBOX
2559 ## ---------------- ##
2560 ## Cache variables. ##
2561 ## ---------------- ##
2562 _ASBOX
2563     echo
2564     # The following way of writing the cache mishandles newlines in values,
2565 (
2566   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2567     eval ac_val=\$$ac_var
2568     case $ac_val in #(
2569     *${as_nl}*)
2570       case $ac_var in #(
2571       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2572 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2573       esac
2574       case $ac_var in #(
2575       _ | IFS | as_nl) ;; #(
2576       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2577       *) { eval $ac_var=; unset $ac_var;} ;;
2578       esac ;;
2579     esac
2580   done
2581   (set) 2>&1 |
2582     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2583     *${as_nl}ac_space=\ *)
2584       sed -n \
2585         "s/'\''/'\''\\\\'\'''\''/g;
2586           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2587       ;; #(
2588     *)
2589       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2590       ;;
2591     esac |
2592     sort
2593 )
2594     echo
2595
2596     cat <<\_ASBOX
2597 ## ----------------- ##
2598 ## Output variables. ##
2599 ## ----------------- ##
2600 _ASBOX
2601     echo
2602     for ac_var in $ac_subst_vars
2603     do
2604       eval ac_val=\$$ac_var
2605       case $ac_val in
2606       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2607       esac
2608       $as_echo "$ac_var='\''$ac_val'\''"
2609     done | sort
2610     echo
2611
2612     if test -n "$ac_subst_files"; then
2613       cat <<\_ASBOX
2614 ## ------------------- ##
2615 ## File substitutions. ##
2616 ## ------------------- ##
2617 _ASBOX
2618       echo
2619       for ac_var in $ac_subst_files
2620       do
2621         eval ac_val=\$$ac_var
2622         case $ac_val in
2623         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2624         esac
2625         $as_echo "$ac_var='\''$ac_val'\''"
2626       done | sort
2627       echo
2628     fi
2629
2630     if test -s confdefs.h; then
2631       cat <<\_ASBOX
2632 ## ----------- ##
2633 ## confdefs.h. ##
2634 ## ----------- ##
2635 _ASBOX
2636       echo
2637       cat confdefs.h
2638       echo
2639     fi
2640     test "$ac_signal" != 0 &&
2641       $as_echo "$as_me: caught signal $ac_signal"
2642     $as_echo "$as_me: exit $exit_status"
2643   } >&5
2644   rm -f core *.core core.conftest.* &&
2645     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2646     exit $exit_status
2647 ' 0
2648 for ac_signal in 1 2 13 15; do
2649   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2650 done
2651 ac_signal=0
2652
2653 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2654 rm -f -r conftest* confdefs.h
2655
2656 $as_echo "/* confdefs.h */" > confdefs.h
2657
2658 # Predefined preprocessor variables.
2659
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_NAME "$PACKAGE_NAME"
2662 _ACEOF
2663
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2666 _ACEOF
2667
2668 cat >>confdefs.h <<_ACEOF
2669 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2670 _ACEOF
2671
2672 cat >>confdefs.h <<_ACEOF
2673 #define PACKAGE_STRING "$PACKAGE_STRING"
2674 _ACEOF
2675
2676 cat >>confdefs.h <<_ACEOF
2677 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2678 _ACEOF
2679
2680 cat >>confdefs.h <<_ACEOF
2681 #define PACKAGE_URL "$PACKAGE_URL"
2682 _ACEOF
2683
2684
2685 # Let the site file select an alternate cache file if it wants to.
2686 # Prefer an explicitly selected file to automatically selected ones.
2687 ac_site_file1=NONE
2688 ac_site_file2=NONE
2689 if test -n "$CONFIG_SITE"; then
2690   ac_site_file1=$CONFIG_SITE
2691 elif test "x$prefix" != xNONE; then
2692   ac_site_file1=$prefix/share/config.site
2693   ac_site_file2=$prefix/etc/config.site
2694 else
2695   ac_site_file1=$ac_default_prefix/share/config.site
2696   ac_site_file2=$ac_default_prefix/etc/config.site
2697 fi
2698 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2699 do
2700   test "x$ac_site_file" = xNONE && continue
2701   if test -r "$ac_site_file"; then
2702     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2703 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2704     sed 's/^/| /' "$ac_site_file" >&5
2705     . "$ac_site_file"
2706   fi
2707 done
2708
2709 if test -r "$cache_file"; then
2710   # Some versions of bash will fail to source /dev/null (special
2711   # files actually), so we avoid doing that.
2712   if test -f "$cache_file"; then
2713     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2714 $as_echo "$as_me: loading cache $cache_file" >&6;}
2715     case $cache_file in
2716       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2717       *)                      . "./$cache_file";;
2718     esac
2719   fi
2720 else
2721   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2722 $as_echo "$as_me: creating cache $cache_file" >&6;}
2723   >$cache_file
2724 fi
2725
2726 gl_header_list="$gl_header_list sys/mman.h"
2727 gl_func_list="$gl_func_list mprotect"
2728 gl_func_list="$gl_func_list memchr"
2729 gl_header_list="$gl_header_list stddef.h"
2730 gl_header_list="$gl_header_list stdint.h"
2731 gl_header_list="$gl_header_list wchar.h"
2732 gl_header_list="$gl_header_list string.h"
2733 # Check that the precious variables saved in the cache have kept the same
2734 # value.
2735 ac_cache_corrupted=false
2736 for ac_var in $ac_precious_vars; do
2737   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2738   eval ac_new_set=\$ac_env_${ac_var}_set
2739   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2740   eval ac_new_val=\$ac_env_${ac_var}_value
2741   case $ac_old_set,$ac_new_set in
2742     set,)
2743       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2744 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2745       ac_cache_corrupted=: ;;
2746     ,set)
2747       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2748 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2749       ac_cache_corrupted=: ;;
2750     ,);;
2751     *)
2752       if test "x$ac_old_val" != "x$ac_new_val"; then
2753         # differences in whitespace do not lead to failure.
2754         ac_old_val_w=`echo x $ac_old_val`
2755         ac_new_val_w=`echo x $ac_new_val`
2756         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2757           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2758 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2759           ac_cache_corrupted=:
2760         else
2761           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2762 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2763           eval $ac_var=\$ac_old_val
2764         fi
2765         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2766 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2767         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2768 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2769       fi;;
2770   esac
2771   # Pass precious variables to config.status.
2772   if test "$ac_new_set" = set; then
2773     case $ac_new_val in
2774     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2775     *) ac_arg=$ac_var=$ac_new_val ;;
2776     esac
2777     case " $ac_configure_args " in
2778       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2779       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2780     esac
2781   fi
2782 done
2783 if $ac_cache_corrupted; then
2784   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2786   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2787 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2788   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2789 fi
2790 ## -------------------- ##
2791 ## Main body of script. ##
2792 ## -------------------- ##
2793
2794 ac_ext=c
2795 ac_cpp='$CPP $CPPFLAGS'
2796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2799
2800
2801
2802
2803
2804 ac_config_headers="$ac_config_headers config.h:config.in"
2805
2806
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2808 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2809     # Check whether --enable-maintainer-mode was given.
2810 if test "${enable_maintainer_mode+set}" = set; then :
2811   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2812 else
2813   USE_MAINTAINER_MODE=no
2814 fi
2815
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2817 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2818    if test $USE_MAINTAINER_MODE = yes; then
2819   MAINTAINER_MODE_TRUE=
2820   MAINTAINER_MODE_FALSE='#'
2821 else
2822   MAINTAINER_MODE_TRUE='#'
2823   MAINTAINER_MODE_FALSE=
2824 fi
2825
2826   MAINT=$MAINTAINER_MODE_TRUE
2827
2828
2829
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 if test -n "$ac_tool_prefix"; then
2836   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then :
2841   $as_echo_n "(cached) " >&6
2842 else
2843   if test -n "$CC"; then
2844   ac_cv_prog_CC="$CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849   IFS=$as_save_IFS
2850   test -z "$as_dir" && as_dir=.
2851     for ac_exec_ext in '' $ac_executable_extensions; do
2852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855     break 2
2856   fi
2857 done
2858   done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 fi
2874 if test -z "$ac_cv_prog_CC"; then
2875   ac_ct_CC=$CC
2876   # Extract the first word of "gcc", so it can be a program name with args.
2877 set dummy gcc; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   if test -n "$ac_ct_CC"; then
2884   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889   IFS=$as_save_IFS
2890   test -z "$as_dir" && as_dir=.
2891     for ac_exec_ext in '' $ac_executable_extensions; do
2892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893     ac_cv_prog_ac_ct_CC="gcc"
2894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895     break 2
2896   fi
2897 done
2898   done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2904 if test -n "$ac_ct_CC"; then
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2906 $as_echo "$ac_ct_CC" >&6; }
2907 else
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912   if test "x$ac_ct_CC" = x; then
2913     CC=""
2914   else
2915     case $cross_compiling:$ac_tool_warned in
2916 yes:)
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2919 ac_tool_warned=yes ;;
2920 esac
2921     CC=$ac_ct_CC
2922   fi
2923 else
2924   CC="$ac_cv_prog_CC"
2925 fi
2926
2927 if test -z "$CC"; then
2928           if test -n "$ac_tool_prefix"; then
2929     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2930 set dummy ${ac_tool_prefix}cc; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if test "${ac_cv_prog_CC+set}" = set; then :
2934   $as_echo_n "(cached) " >&6
2935 else
2936   if test -n "$CC"; then
2937   ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2941 do
2942   IFS=$as_save_IFS
2943   test -z "$as_dir" && as_dir=.
2944     for ac_exec_ext in '' $ac_executable_extensions; do
2945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946     ac_cv_prog_CC="${ac_tool_prefix}cc"
2947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948     break 2
2949   fi
2950 done
2951   done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2963 fi
2964
2965
2966   fi
2967 fi
2968 if test -z "$CC"; then
2969   # Extract the first word of "cc", so it can be a program name with args.
2970 set dummy cc; ac_word=$2
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2972 $as_echo_n "checking for $ac_word... " >&6; }
2973 if test "${ac_cv_prog_CC+set}" = set; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   if test -n "$CC"; then
2977   ac_cv_prog_CC="$CC" # Let the user override the test.
2978 else
2979   ac_prog_rejected=no
2980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981 for as_dir in $PATH
2982 do
2983   IFS=$as_save_IFS
2984   test -z "$as_dir" && as_dir=.
2985     for ac_exec_ext in '' $ac_executable_extensions; do
2986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2987     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2988        ac_prog_rejected=yes
2989        continue
2990      fi
2991     ac_cv_prog_CC="cc"
2992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993     break 2
2994   fi
2995 done
2996   done
2997 IFS=$as_save_IFS
2998
2999 if test $ac_prog_rejected = yes; then
3000   # We found a bogon in the path, so make sure we never use it.
3001   set dummy $ac_cv_prog_CC
3002   shift
3003   if test $# != 0; then
3004     # We chose a different compiler from the bogus one.
3005     # However, it has the same basename, so the bogon will be chosen
3006     # first if we set CC to just the basename; use the full file name.
3007     shift
3008     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3009   fi
3010 fi
3011 fi
3012 fi
3013 CC=$ac_cv_prog_CC
3014 if test -n "$CC"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3016 $as_echo "$CC" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022
3023 fi
3024 if test -z "$CC"; then
3025   if test -n "$ac_tool_prefix"; then
3026   for ac_prog in cl.exe
3027   do
3028     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3031 $as_echo_n "checking for $ac_word... " >&6; }
3032 if test "${ac_cv_prog_CC+set}" = set; then :
3033   $as_echo_n "(cached) " >&6
3034 else
3035   if test -n "$CC"; then
3036   ac_cv_prog_CC="$CC" # Let the user override the test.
3037 else
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3040 do
3041   IFS=$as_save_IFS
3042   test -z "$as_dir" && as_dir=.
3043     for ac_exec_ext in '' $ac_executable_extensions; do
3044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3045     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3047     break 2
3048   fi
3049 done
3050   done
3051 IFS=$as_save_IFS
3052
3053 fi
3054 fi
3055 CC=$ac_cv_prog_CC
3056 if test -n "$CC"; then
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3058 $as_echo "$CC" >&6; }
3059 else
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061 $as_echo "no" >&6; }
3062 fi
3063
3064
3065     test -n "$CC" && break
3066   done
3067 fi
3068 if test -z "$CC"; then
3069   ac_ct_CC=$CC
3070   for ac_prog in cl.exe
3071 do
3072   # Extract the first word of "$ac_prog", so it can be a program name with args.
3073 set dummy $ac_prog; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3077   $as_echo_n "(cached) " >&6
3078 else
3079   if test -n "$ac_ct_CC"; then
3080   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3081 else
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087     for ac_exec_ext in '' $ac_executable_extensions; do
3088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089     ac_cv_prog_ac_ct_CC="$ac_prog"
3090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3091     break 2
3092   fi
3093 done
3094   done
3095 IFS=$as_save_IFS
3096
3097 fi
3098 fi
3099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3100 if test -n "$ac_ct_CC"; then
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3102 $as_echo "$ac_ct_CC" >&6; }
3103 else
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3106 fi
3107
3108
3109   test -n "$ac_ct_CC" && break
3110 done
3111
3112   if test "x$ac_ct_CC" = x; then
3113     CC=""
3114   else
3115     case $cross_compiling:$ac_tool_warned in
3116 yes:)
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3119 ac_tool_warned=yes ;;
3120 esac
3121     CC=$ac_ct_CC
3122   fi
3123 fi
3124
3125 fi
3126
3127
3128 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error "no acceptable C compiler found in \$PATH
3131 See \`config.log' for more details." "$LINENO" 5; }
3132
3133 # Provide some information about the compiler.
3134 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3135 set X $ac_compile
3136 ac_compiler=$2
3137 for ac_option in --version -v -V -qversion; do
3138   { { ac_try="$ac_compiler $ac_option >&5"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3146   ac_status=$?
3147   if test -s conftest.err; then
3148     sed '10a\
3149 ... rest of stderr output deleted ...
3150          10q' conftest.err >conftest.er1
3151     cat conftest.er1 >&5
3152     rm -f conftest.er1 conftest.err
3153   fi
3154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3155   test $ac_status = 0; }
3156 done
3157
3158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3173 # of exeext.
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3175 $as_echo_n "checking for C compiler default output file name... " >&6; }
3176 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3177
3178 # The possible output files:
3179 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3180
3181 ac_rmfiles=
3182 for ac_file in $ac_files
3183 do
3184   case $ac_file in
3185     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3186     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3187   esac
3188 done
3189 rm -f $ac_rmfiles
3190
3191 if { { ac_try="$ac_link_default"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197 $as_echo "$ac_try_echo"; } >&5
3198   (eval "$ac_link_default") 2>&5
3199   ac_status=$?
3200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201   test $ac_status = 0; }; then :
3202   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3203 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3204 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3205 # so that the user can short-circuit this test for compilers unknown to
3206 # Autoconf.
3207 for ac_file in $ac_files ''
3208 do
3209   test -f "$ac_file" || continue
3210   case $ac_file in
3211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3212         ;;
3213     [ab].out )
3214         # We found the default executable, but exeext='' is most
3215         # certainly right.
3216         break;;
3217     *.* )
3218         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3219         then :; else
3220            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3221         fi
3222         # We set ac_cv_exeext here because the later test for it is not
3223         # safe: cross compilers may not add the suffix if given an `-o'
3224         # argument, so we may need to know it at that point already.
3225         # Even if this section looks crufty: it has the advantage of
3226         # actually working.
3227         break;;
3228     * )
3229         break;;
3230   esac
3231 done
3232 test "$ac_cv_exeext" = no && ac_cv_exeext=
3233
3234 else
3235   ac_file=''
3236 fi
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3238 $as_echo "$ac_file" >&6; }
3239 if test -z "$ac_file"; then :
3240   $as_echo "$as_me: failed program was:" >&5
3241 sed 's/^/| /' conftest.$ac_ext >&5
3242
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 { as_fn_set_status 77
3246 as_fn_error "C compiler cannot create executables
3247 See \`config.log' for more details." "$LINENO" 5; }; }
3248 fi
3249 ac_exeext=$ac_cv_exeext
3250
3251 # Check that the compiler produces executables we can run.  If not, either
3252 # the compiler is broken, or we cross compile.
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3254 $as_echo_n "checking whether the C compiler works... " >&6; }
3255 # If not cross compiling, check that we can run a simple program.
3256 if test "$cross_compiling" != yes; then
3257   if { ac_try='./$ac_file'
3258   { { case "(($ac_try" in
3259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260   *) ac_try_echo=$ac_try;;
3261 esac
3262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263 $as_echo "$ac_try_echo"; } >&5
3264   (eval "$ac_try") 2>&5
3265   ac_status=$?
3266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267   test $ac_status = 0; }; }; then
3268     cross_compiling=no
3269   else
3270     if test "$cross_compiling" = maybe; then
3271         cross_compiling=yes
3272     else
3273         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275 as_fn_error "cannot run C compiled programs.
3276 If you meant to cross compile, use \`--host'.
3277 See \`config.log' for more details." "$LINENO" 5; }
3278     fi
3279   fi
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3283
3284 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3285 ac_clean_files=$ac_clean_files_save
3286 # Check that the compiler produces executables we can run.  If not, either
3287 # the compiler is broken, or we cross compile.
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3289 $as_echo_n "checking whether we are cross compiling... " >&6; }
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3291 $as_echo "$cross_compiling" >&6; }
3292
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3294 $as_echo_n "checking for suffix of executables... " >&6; }
3295 if { { ac_try="$ac_link"
3296 case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302   (eval "$ac_link") 2>&5
3303   ac_status=$?
3304   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305   test $ac_status = 0; }; then :
3306   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3307 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3308 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 # `rm'.
3310 for ac_file in conftest.exe conftest conftest.*; do
3311   test -f "$ac_file" || continue
3312   case $ac_file in
3313     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315           break;;
3316     * ) break;;
3317   esac
3318 done
3319 else
3320   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error "cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details." "$LINENO" 5; }
3324 fi
3325 rm -f conftest$ac_cv_exeext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3327 $as_echo "$ac_cv_exeext" >&6; }
3328
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3331 ac_exeext=$EXEEXT
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3333 $as_echo_n "checking for suffix of object files... " >&6; }
3334 if test "${ac_cv_objext+set}" = set; then :
3335   $as_echo_n "(cached) " >&6
3336 else
3337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h.  */
3339
3340 int
3341 main ()
3342 {
3343
3344   ;
3345   return 0;
3346 }
3347 _ACEOF
3348 rm -f conftest.o conftest.obj
3349 if { { ac_try="$ac_compile"
3350 case "(($ac_try" in
3351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3352   *) ac_try_echo=$ac_try;;
3353 esac
3354 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3355 $as_echo "$ac_try_echo"; } >&5
3356   (eval "$ac_compile") 2>&5
3357   ac_status=$?
3358   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3359   test $ac_status = 0; }; then :
3360   for ac_file in conftest.o conftest.obj conftest.*; do
3361   test -f "$ac_file" || continue;
3362   case $ac_file in
3363     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3364     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3365        break;;
3366   esac
3367 done
3368 else
3369   $as_echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374 as_fn_error "cannot compute suffix of object files: cannot compile
3375 See \`config.log' for more details." "$LINENO" 5; }
3376 fi
3377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3380 $as_echo "$ac_cv_objext" >&6; }
3381 OBJEXT=$ac_cv_objext
3382 ac_objext=$OBJEXT
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3384 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3385 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3386   $as_echo_n "(cached) " >&6
3387 else
3388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3389 /* end confdefs.h.  */
3390
3391 int
3392 main ()
3393 {
3394 #ifndef __GNUC__
3395        choke me
3396 #endif
3397
3398   ;
3399   return 0;
3400 }
3401 _ACEOF
3402 if ac_fn_c_try_compile "$LINENO"; then :
3403   ac_compiler_gnu=yes
3404 else
3405   ac_compiler_gnu=no
3406 fi
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3408 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3409
3410 fi
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3412 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3413 if test $ac_compiler_gnu = yes; then
3414   GCC=yes
3415 else
3416   GCC=
3417 fi
3418 ac_test_CFLAGS=${CFLAGS+set}
3419 ac_save_CFLAGS=$CFLAGS
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3421 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3422 if test "${ac_cv_prog_cc_g+set}" = set; then :
3423   $as_echo_n "(cached) " >&6
3424 else
3425   ac_save_c_werror_flag=$ac_c_werror_flag
3426    ac_c_werror_flag=yes
3427    ac_cv_prog_cc_g=no
3428    CFLAGS="-g"
3429    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h.  */
3431
3432 int
3433 main ()
3434 {
3435
3436   ;
3437   return 0;
3438 }
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441   ac_cv_prog_cc_g=yes
3442 else
3443   CFLAGS=""
3444       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h.  */
3446
3447 int
3448 main ()
3449 {
3450
3451   ;
3452   return 0;
3453 }
3454 _ACEOF
3455 if ac_fn_c_try_compile "$LINENO"; then :
3456
3457 else
3458   ac_c_werror_flag=$ac_save_c_werror_flag
3459          CFLAGS="-g"
3460          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3461 /* end confdefs.h.  */
3462
3463 int
3464 main ()
3465 {
3466
3467   ;
3468   return 0;
3469 }
3470 _ACEOF
3471 if ac_fn_c_try_compile "$LINENO"; then :
3472   ac_cv_prog_cc_g=yes
3473 fi
3474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3475 fi
3476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477 fi
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479    ac_c_werror_flag=$ac_save_c_werror_flag
3480 fi
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3482 $as_echo "$ac_cv_prog_cc_g" >&6; }
3483 if test "$ac_test_CFLAGS" = set; then
3484   CFLAGS=$ac_save_CFLAGS
3485 elif test $ac_cv_prog_cc_g = yes; then
3486   if test "$GCC" = yes; then
3487     CFLAGS="-g -O2"
3488   else
3489     CFLAGS="-g"
3490   fi
3491 else
3492   if test "$GCC" = yes; then
3493     CFLAGS="-O2"
3494   else
3495     CFLAGS=
3496   fi
3497 fi
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3499 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3500 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3501   $as_echo_n "(cached) " >&6
3502 else
3503   ac_cv_prog_cc_c89=no
3504 ac_save_CC=$CC
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3506 /* end confdefs.h.  */
3507 #include <stdarg.h>
3508 #include <stdio.h>
3509 #include <sys/types.h>
3510 #include <sys/stat.h>
3511 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3512 struct buf { int x; };
3513 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3514 static char *e (p, i)
3515      char **p;
3516      int i;
3517 {
3518   return p[i];
3519 }
3520 static char *f (char * (*g) (char **, int), char **p, ...)
3521 {
3522   char *s;
3523   va_list v;
3524   va_start (v,p);
3525   s = g (p, va_arg (v,int));
3526   va_end (v);
3527   return s;
3528 }
3529
3530 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3531    function prototypes and stuff, but not '\xHH' hex character constants.
3532    These don't provoke an error unfortunately, instead are silently treated
3533    as 'x'.  The following induces an error, until -std is added to get
3534    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3535    array size at least.  It's necessary to write '\x00'==0 to get something
3536    that's true only with -std.  */
3537 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3538
3539 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3540    inside strings and character constants.  */
3541 #define FOO(x) 'x'
3542 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3543
3544 int test (int i, double x);
3545 struct s1 {int (*f) (int a);};
3546 struct s2 {int (*f) (double a);};
3547 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3548 int argc;
3549 char **argv;
3550 int
3551 main ()
3552 {
3553 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3559         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3560 do
3561   CC="$ac_save_CC $ac_arg"
3562   if ac_fn_c_try_compile "$LINENO"; then :
3563   ac_cv_prog_cc_c89=$ac_arg
3564 fi
3565 rm -f core conftest.err conftest.$ac_objext
3566   test "x$ac_cv_prog_cc_c89" != "xno" && break
3567 done
3568 rm -f conftest.$ac_ext
3569 CC=$ac_save_CC
3570
3571 fi
3572 # AC_CACHE_VAL
3573 case "x$ac_cv_prog_cc_c89" in
3574   x)
3575     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3576 $as_echo "none needed" >&6; } ;;
3577   xno)
3578     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3579 $as_echo "unsupported" >&6; } ;;
3580   *)
3581     CC="$CC $ac_cv_prog_cc_c89"
3582     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3583 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3584 esac
3585 if test "x$ac_cv_prog_cc_c89" != xno; then :
3586
3587 fi
3588
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594
3595 ac_aux_dir=
3596 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3597   for ac_t in install-sh install.sh shtool; do
3598     if test -f "$ac_dir/$ac_t"; then
3599       ac_aux_dir=$ac_dir
3600       ac_install_sh="$ac_aux_dir/$ac_t -c"
3601       break 2
3602     fi
3603   done
3604 done
3605 if test -z "$ac_aux_dir"; then
3606   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3607 fi
3608
3609 # These three variables are undocumented and unsupported,
3610 # and are intended to be withdrawn in a future Autoconf release.
3611 # They can cause serious problems if a builder's source tree is in a directory
3612 # whose full name contains unusual characters.
3613 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3614 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3615 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3616
3617
3618 # Make sure we can run config.sub.
3619 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3620   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3621
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3623 $as_echo_n "checking build system type... " >&6; }
3624 if test "${ac_cv_build+set}" = set; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   ac_build_alias=$build_alias
3628 test "x$ac_build_alias" = x &&
3629   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3630 test "x$ac_build_alias" = x &&
3631   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3632 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3633   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3634
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3637 $as_echo "$ac_cv_build" >&6; }
3638 case $ac_cv_build in
3639 *-*-*) ;;
3640 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3641 esac
3642 build=$ac_cv_build
3643 ac_save_IFS=$IFS; IFS='-'
3644 set x $ac_cv_build
3645 shift
3646 build_cpu=$1
3647 build_vendor=$2
3648 shift; shift
3649 # Remember, the first character of IFS is used to create $*,
3650 # except with old shells:
3651 build_os=$*
3652 IFS=$ac_save_IFS
3653 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3654
3655
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3657 $as_echo_n "checking host system type... " >&6; }
3658 if test "${ac_cv_host+set}" = set; then :
3659   $as_echo_n "(cached) " >&6
3660 else
3661   if test "x$host_alias" = x; then
3662   ac_cv_host=$ac_cv_build
3663 else
3664   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3665     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3666 fi
3667
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3670 $as_echo "$ac_cv_host" >&6; }
3671 case $ac_cv_host in
3672 *-*-*) ;;
3673 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3674 esac
3675 host=$ac_cv_host
3676 ac_save_IFS=$IFS; IFS='-'
3677 set x $ac_cv_host
3678 shift
3679 host_cpu=$1
3680 host_vendor=$2
3681 shift; shift
3682 # Remember, the first character of IFS is used to create $*,
3683 # except with old shells:
3684 host_os=$*
3685 IFS=$ac_save_IFS
3686 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3687
3688
3689
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3696 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3697 # On Suns, sometimes $CPP names a directory.
3698 if test -n "$CPP" && test -d "$CPP"; then
3699   CPP=
3700 fi
3701 if test -z "$CPP"; then
3702   if test "${ac_cv_prog_CPP+set}" = set; then :
3703   $as_echo_n "(cached) " >&6
3704 else
3705       # Double quotes because CPP needs to be expanded
3706     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3707     do
3708       ac_preproc_ok=false
3709 for ac_c_preproc_warn_flag in '' yes
3710 do
3711   # Use a header file that comes with gcc, so configuring glibc
3712   # with a fresh cross-compiler works.
3713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714   # <limits.h> exists even on freestanding compilers.
3715   # On the NeXT, cc -E runs the code through the compiler's parser,
3716   # not just through cpp. "Syntax error" is here to catch this case.
3717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h.  */
3719 #ifdef __STDC__
3720 # include <limits.h>
3721 #else
3722 # include <assert.h>
3723 #endif
3724                      Syntax error
3725 _ACEOF
3726 if ac_fn_c_try_cpp "$LINENO"; then :
3727
3728 else
3729   # Broken: fails on valid input.
3730 continue
3731 fi
3732 rm -f conftest.err conftest.$ac_ext
3733
3734   # OK, works on sane cases.  Now check whether nonexistent headers
3735   # can be detected and how.
3736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h.  */
3738 #include <ac_nonexistent.h>
3739 _ACEOF
3740 if ac_fn_c_try_cpp "$LINENO"; then :
3741   # Broken: success on invalid input.
3742 continue
3743 else
3744   # Passes both tests.
3745 ac_preproc_ok=:
3746 break
3747 fi
3748 rm -f conftest.err conftest.$ac_ext
3749
3750 done
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.err conftest.$ac_ext
3753 if $ac_preproc_ok; then :
3754   break
3755 fi
3756
3757     done
3758     ac_cv_prog_CPP=$CPP
3759
3760 fi
3761   CPP=$ac_cv_prog_CPP
3762 else
3763   ac_cv_prog_CPP=$CPP
3764 fi
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3766 $as_echo "$CPP" >&6; }
3767 ac_preproc_ok=false
3768 for ac_c_preproc_warn_flag in '' yes
3769 do
3770   # Use a header file that comes with gcc, so configuring glibc
3771   # with a fresh cross-compiler works.
3772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3773   # <limits.h> exists even on freestanding compilers.
3774   # On the NeXT, cc -E runs the code through the compiler's parser,
3775   # not just through cpp. "Syntax error" is here to catch this case.
3776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h.  */
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783                      Syntax error
3784 _ACEOF
3785 if ac_fn_c_try_cpp "$LINENO"; then :
3786
3787 else
3788   # Broken: fails on valid input.
3789 continue
3790 fi
3791 rm -f conftest.err conftest.$ac_ext
3792
3793   # OK, works on sane cases.  Now check whether nonexistent headers
3794   # can be detected and how.
3795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797 #include <ac_nonexistent.h>
3798 _ACEOF
3799 if ac_fn_c_try_cpp "$LINENO"; then :
3800   # Broken: success on invalid input.
3801 continue
3802 else
3803   # Passes both tests.
3804 ac_preproc_ok=:
3805 break
3806 fi
3807 rm -f conftest.err conftest.$ac_ext
3808
3809 done
3810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3811 rm -f conftest.err conftest.$ac_ext
3812 if $ac_preproc_ok; then :
3813
3814 else
3815   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3818 See \`config.log' for more details." "$LINENO" 5; }
3819 fi
3820
3821 ac_ext=c
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826
3827
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3829 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3830 if test "${ac_cv_path_GREP+set}" = set; then :
3831   $as_echo_n "(cached) " >&6
3832 else
3833   if test -z "$GREP"; then
3834   ac_path_GREP_found=false
3835   # Loop through the user's path and test for each of PROGNAME-LIST
3836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3838 do
3839   IFS=$as_save_IFS
3840   test -z "$as_dir" && as_dir=.
3841     for ac_prog in grep ggrep; do
3842     for ac_exec_ext in '' $ac_executable_extensions; do
3843       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3844       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3845 # Check for GNU ac_path_GREP and select it if it is found.
3846   # Check for GNU $ac_path_GREP
3847 case `"$ac_path_GREP" --version 2>&1` in
3848 *GNU*)
3849   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3850 *)
3851   ac_count=0
3852   $as_echo_n 0123456789 >"conftest.in"
3853   while :
3854   do
3855     cat "conftest.in" "conftest.in" >"conftest.tmp"
3856     mv "conftest.tmp" "conftest.in"
3857     cp "conftest.in" "conftest.nl"
3858     $as_echo 'GREP' >> "conftest.nl"
3859     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3860     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3861     as_fn_arith $ac_count + 1 && ac_count=$as_val
3862     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3863       # Best one so far, save it but keep looking for a better one
3864       ac_cv_path_GREP="$ac_path_GREP"
3865       ac_path_GREP_max=$ac_count
3866     fi
3867     # 10*(2^10) chars as input seems more than enough
3868     test $ac_count -gt 10 && break
3869   done
3870   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3871 esac
3872
3873       $ac_path_GREP_found && break 3
3874     done
3875   done
3876   done
3877 IFS=$as_save_IFS
3878   if test -z "$ac_cv_path_GREP"; then
3879     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3880   fi
3881 else
3882   ac_cv_path_GREP=$GREP
3883 fi
3884
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3887 $as_echo "$ac_cv_path_GREP" >&6; }
3888  GREP="$ac_cv_path_GREP"
3889
3890
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3892 $as_echo_n "checking for egrep... " >&6; }
3893 if test "${ac_cv_path_EGREP+set}" = set; then :
3894   $as_echo_n "(cached) " >&6
3895 else
3896   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3897    then ac_cv_path_EGREP="$GREP -E"
3898    else
3899      if test -z "$EGREP"; then
3900   ac_path_EGREP_found=false
3901   # Loop through the user's path and test for each of PROGNAME-LIST
3902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_prog in egrep; do
3908     for ac_exec_ext in '' $ac_executable_extensions; do
3909       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3910       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3911 # Check for GNU ac_path_EGREP and select it if it is found.
3912   # Check for GNU $ac_path_EGREP
3913 case `"$ac_path_EGREP" --version 2>&1` in
3914 *GNU*)
3915   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3916 *)
3917   ac_count=0
3918   $as_echo_n 0123456789 >"conftest.in"
3919   while :
3920   do
3921     cat "conftest.in" "conftest.in" >"conftest.tmp"
3922     mv "conftest.tmp" "conftest.in"
3923     cp "conftest.in" "conftest.nl"
3924     $as_echo 'EGREP' >> "conftest.nl"
3925     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927     as_fn_arith $ac_count + 1 && ac_count=$as_val
3928     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3929       # Best one so far, save it but keep looking for a better one
3930       ac_cv_path_EGREP="$ac_path_EGREP"
3931       ac_path_EGREP_max=$ac_count
3932     fi
3933     # 10*(2^10) chars as input seems more than enough
3934     test $ac_count -gt 10 && break
3935   done
3936   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937 esac
3938
3939       $ac_path_EGREP_found && break 3
3940     done
3941   done
3942   done
3943 IFS=$as_save_IFS
3944   if test -z "$ac_cv_path_EGREP"; then
3945     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3946   fi
3947 else
3948   ac_cv_path_EGREP=$EGREP
3949 fi
3950
3951    fi
3952 fi
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3954 $as_echo "$ac_cv_path_EGREP" >&6; }
3955  EGREP="$ac_cv_path_EGREP"
3956
3957
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3959 $as_echo_n "checking for ANSI C header files... " >&6; }
3960 if test "${ac_cv_header_stdc+set}" = set; then :
3961   $as_echo_n "(cached) " >&6
3962 else
3963   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h.  */
3965 #include <stdlib.h>
3966 #include <stdarg.h>
3967 #include <string.h>
3968 #include <float.h>
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 if ac_fn_c_try_compile "$LINENO"; then :
3979   ac_cv_header_stdc=yes
3980 else
3981   ac_cv_header_stdc=no
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984
3985 if test $ac_cv_header_stdc = yes; then
3986   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h.  */
3989 #include <string.h>
3990
3991 _ACEOF
3992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3993   $EGREP "memchr" >/dev/null 2>&1; then :
3994
3995 else
3996   ac_cv_header_stdc=no
3997 fi
3998 rm -f conftest*
3999
4000 fi
4001
4002 if test $ac_cv_header_stdc = yes; then
4003   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h.  */
4006 #include <stdlib.h>
4007
4008 _ACEOF
4009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010   $EGREP "free" >/dev/null 2>&1; then :
4011
4012 else
4013   ac_cv_header_stdc=no
4014 fi
4015 rm -f conftest*
4016
4017 fi
4018
4019 if test $ac_cv_header_stdc = yes; then
4020   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4021   if test "$cross_compiling" = yes; then :
4022   :
4023 else
4024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h.  */
4026 #include <ctype.h>
4027 #include <stdlib.h>
4028 #if ((' ' & 0x0FF) == 0x020)
4029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4031 #else
4032 # define ISLOWER(c) \
4033                    (('a' <= (c) && (c) <= 'i') \
4034                      || ('j' <= (c) && (c) <= 'r') \
4035                      || ('s' <= (c) && (c) <= 'z'))
4036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4037 #endif
4038
4039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4040 int
4041 main ()
4042 {
4043   int i;
4044   for (i = 0; i < 256; i++)
4045     if (XOR (islower (i), ISLOWER (i))
4046         || toupper (i) != TOUPPER (i))
4047       return 2;
4048   return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_run "$LINENO"; then :
4052
4053 else
4054   ac_cv_header_stdc=no
4055 fi
4056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4057   conftest.$ac_objext conftest.beam conftest.$ac_ext
4058 fi
4059
4060 fi
4061 fi
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4063 $as_echo "$ac_cv_header_stdc" >&6; }
4064 if test $ac_cv_header_stdc = yes; then
4065
4066 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4067
4068 fi
4069
4070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4072                   inttypes.h stdint.h unistd.h
4073 do :
4074   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4076 "
4077 eval as_val=\$$as_ac_Header
4078    if test "x$as_val" = x""yes; then :
4079   cat >>confdefs.h <<_ACEOF
4080 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081 _ACEOF
4082
4083 fi
4084
4085 done
4086
4087
4088
4089
4090
4091   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4092 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4093   MINIX=yes
4094 else
4095   MINIX=
4096 fi
4097
4098
4099   if test "$MINIX" = yes; then
4100
4101 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4102
4103
4104 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4105
4106
4107 $as_echo "#define _MINIX 1" >>confdefs.h
4108
4109   fi
4110
4111         case "$host_os" in
4112     hpux*)
4113
4114 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4115
4116       ;;
4117   esac
4118
4119
4120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4121 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4122 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4123   $as_echo_n "(cached) " >&6
4124 else
4125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126 /* end confdefs.h.  */
4127
4128 #         define __EXTENSIONS__ 1
4129           $ac_includes_default
4130 int
4131 main ()
4132 {
4133
4134   ;
4135   return 0;
4136 }
4137 _ACEOF
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139   ac_cv_safe_to_define___extensions__=yes
4140 else
4141   ac_cv_safe_to_define___extensions__=no
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4144 fi
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4146 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4147   test $ac_cv_safe_to_define___extensions__ = yes &&
4148     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4149
4150   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4151
4152   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4153
4154   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4155
4156   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4157
4158
4159 if test -n "$ac_tool_prefix"; then
4160   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4161 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4165   $as_echo_n "(cached) " >&6
4166 else
4167   if test -n "$RANLIB"; then
4168   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173   IFS=$as_save_IFS
4174   test -z "$as_dir" && as_dir=.
4175     for ac_exec_ext in '' $ac_executable_extensions; do
4176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182   done
4183 IFS=$as_save_IFS
4184
4185 fi
4186 fi
4187 RANLIB=$ac_cv_prog_RANLIB
4188 if test -n "$RANLIB"; then
4189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4190 $as_echo "$RANLIB" >&6; }
4191 else
4192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4194 fi
4195
4196
4197 fi
4198 if test -z "$ac_cv_prog_RANLIB"; then
4199   ac_ct_RANLIB=$RANLIB
4200   # Extract the first word of "ranlib", so it can be a program name with args.
4201 set dummy ranlib; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4205   $as_echo_n "(cached) " >&6
4206 else
4207   if test -n "$ac_ct_RANLIB"; then
4208   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4212 do
4213   IFS=$as_save_IFS
4214   test -z "$as_dir" && as_dir=.
4215     for ac_exec_ext in '' $ac_executable_extensions; do
4216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217     ac_cv_prog_ac_ct_RANLIB="ranlib"
4218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4219     break 2
4220   fi
4221 done
4222   done
4223 IFS=$as_save_IFS
4224
4225 fi
4226 fi
4227 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4228 if test -n "$ac_ct_RANLIB"; then
4229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4230 $as_echo "$ac_ct_RANLIB" >&6; }
4231 else
4232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 fi
4235
4236   if test "x$ac_ct_RANLIB" = x; then
4237     RANLIB=":"
4238   else
4239     case $cross_compiling:$ac_tool_warned in
4240 yes:)
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4243 ac_tool_warned=yes ;;
4244 esac
4245     RANLIB=$ac_ct_RANLIB
4246   fi
4247 else
4248   RANLIB="$ac_cv_prog_RANLIB"
4249 fi
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259   # Code from module arg-nonnull:
4260   # Code from module c++defs:
4261   # Code from module extensions:
4262
4263   # Code from module include_next:
4264   # Code from module memchr:
4265   # Code from module memmem:
4266   # Code from module memmem-simple:
4267   # Code from module multiarch:
4268   # Code from module stddef:
4269   # Code from module stdint:
4270   # Code from module string:
4271   # Code from module warn-on-use:
4272   # Code from module wchar:
4273
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4275 $as_echo_n "checking target system type... " >&6; }
4276 if test "${ac_cv_target+set}" = set; then :
4277   $as_echo_n "(cached) " >&6
4278 else
4279   if test "x$target_alias" = x; then
4280   ac_cv_target=$ac_cv_host
4281 else
4282   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4283     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4284 fi
4285
4286 fi
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4288 $as_echo "$ac_cv_target" >&6; }
4289 case $ac_cv_target in
4290 *-*-*) ;;
4291 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4292 esac
4293 target=$ac_cv_target
4294 ac_save_IFS=$IFS; IFS='-'
4295 set x $ac_cv_target
4296 shift
4297 target_cpu=$1
4298 target_vendor=$2
4299 shift; shift
4300 # Remember, the first character of IFS is used to create $*,
4301 # except with old shells:
4302 target_os=$*
4303 IFS=$ac_save_IFS
4304 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4305
4306
4307 # The aliases save the names the user supplied, while $host etc.
4308 # will get canonicalized.
4309 test -n "$target_alias" &&
4310   test "$program_prefix$program_suffix$program_transform_name" = \
4311     NONENONEs,x,x, &&
4312   program_prefix=${target_alias}-
4313
4314 # The tests for host and target for $enable_largefile require
4315 # canonical names.
4316
4317
4318
4319 # As the $enable_largefile decision depends on --enable-plugins we must set it
4320 # even in directories otherwise not depending on the $plugins option.
4321
4322
4323 # Check whether --enable-plugins was given.
4324 if test "${enable_plugins+set}" = set; then :
4325   enableval=$enable_plugins; case "${enableval}" in
4326   yes | "") plugins=yes ;;
4327   no) plugins=no ;;
4328   *) plugins=yes ;;
4329  esac
4330 else
4331   plugins=no
4332 fi
4333
4334
4335
4336 case "${host}" in
4337   sparc-*-solaris*|i[3-7]86-*-solaris*)
4338     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4339     # are mutually exclusive; and without procfs support, the bfd/ elf module
4340     # cannot provide certain routines such as elfcore_write_prpsinfo
4341     # or elfcore_write_prstatus.  So unless the user explicitly requested
4342     # large-file support through the --enable-largefile switch, disable
4343     # large-file support in favor of procfs support.
4344     test "${target}" = "${host}" -a "x$plugins" = xno \
4345       && : ${enable_largefile="no"}
4346     ;;
4347 esac
4348
4349 # Check whether --enable-largefile was given.
4350 if test "${enable_largefile+set}" = set; then :
4351   enableval=$enable_largefile;
4352 fi
4353
4354 if test "$enable_largefile" != no; then
4355
4356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4357 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4358 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4359   $as_echo_n "(cached) " >&6
4360 else
4361   ac_cv_sys_largefile_CC=no
4362      if test "$GCC" != yes; then
4363        ac_save_CC=$CC
4364        while :; do
4365          # IRIX 6.2 and later do not support large files by default,
4366          # so use the C compiler's -n32 option if that helps.
4367          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h.  */
4369 #include <sys/types.h>
4370  /* Check that off_t can represent 2**63 - 1 correctly.
4371     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4372     since some C++ compilers masquerading as C compilers
4373     incorrectly reject 9223372036854775807.  */
4374 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4375   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4376                        && LARGE_OFF_T % 2147483647 == 1)
4377                       ? 1 : -1];
4378 int
4379 main ()
4380 {
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386          if ac_fn_c_try_compile "$LINENO"; then :
4387   break
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext
4390          CC="$CC -n32"
4391          if ac_fn_c_try_compile "$LINENO"; then :
4392   ac_cv_sys_largefile_CC=' -n32'; break
4393 fi
4394 rm -f core conftest.err conftest.$ac_objext
4395          break
4396        done
4397        CC=$ac_save_CC
4398        rm -f conftest.$ac_ext
4399     fi
4400 fi
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4402 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4403   if test "$ac_cv_sys_largefile_CC" != no; then
4404     CC=$CC$ac_cv_sys_largefile_CC
4405   fi
4406
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4408 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4409 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4410   $as_echo_n "(cached) " >&6
4411 else
4412   while :; do
4413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414 /* end confdefs.h.  */
4415 #include <sys/types.h>
4416  /* Check that off_t can represent 2**63 - 1 correctly.
4417     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4418     since some C++ compilers masquerading as C compilers
4419     incorrectly reject 9223372036854775807.  */
4420 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4421   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4422                        && LARGE_OFF_T % 2147483647 == 1)
4423                       ? 1 : -1];
4424 int
4425 main ()
4426 {
4427
4428   ;
4429   return 0;
4430 }
4431 _ACEOF
4432 if ac_fn_c_try_compile "$LINENO"; then :
4433   ac_cv_sys_file_offset_bits=no; break
4434 fi
4435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438 #define _FILE_OFFSET_BITS 64
4439 #include <sys/types.h>
4440  /* Check that off_t can represent 2**63 - 1 correctly.
4441     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4442     since some C++ compilers masquerading as C compilers
4443     incorrectly reject 9223372036854775807.  */
4444 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4445   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4446                        && LARGE_OFF_T % 2147483647 == 1)
4447                       ? 1 : -1];
4448 int
4449 main ()
4450 {
4451
4452   ;
4453   return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457   ac_cv_sys_file_offset_bits=64; break
4458 fi
4459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4460   ac_cv_sys_file_offset_bits=unknown
4461   break
4462 done
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4465 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4466 case $ac_cv_sys_file_offset_bits in #(
4467   no | unknown) ;;
4468   *)
4469 cat >>confdefs.h <<_ACEOF
4470 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4471 _ACEOF
4472 ;;
4473 esac
4474 rm -rf conftest*
4475   if test $ac_cv_sys_file_offset_bits = unknown; then
4476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4477 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4478 if test "${ac_cv_sys_large_files+set}" = set; then :
4479   $as_echo_n "(cached) " >&6
4480 else
4481   while :; do
4482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h.  */
4484 #include <sys/types.h>
4485  /* Check that off_t can represent 2**63 - 1 correctly.
4486     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4487     since some C++ compilers masquerading as C compilers
4488     incorrectly reject 9223372036854775807.  */
4489 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4490   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4491                        && LARGE_OFF_T % 2147483647 == 1)
4492                       ? 1 : -1];
4493 int
4494 main ()
4495 {
4496
4497   ;
4498   return 0;
4499 }
4500 _ACEOF
4501 if ac_fn_c_try_compile "$LINENO"; then :
4502   ac_cv_sys_large_files=no; break
4503 fi
4504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h.  */
4507 #define _LARGE_FILES 1
4508 #include <sys/types.h>
4509  /* Check that off_t can represent 2**63 - 1 correctly.
4510     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4511     since some C++ compilers masquerading as C compilers
4512     incorrectly reject 9223372036854775807.  */
4513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4514   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4515                        && LARGE_OFF_T % 2147483647 == 1)
4516                       ? 1 : -1];
4517 int
4518 main ()
4519 {
4520
4521   ;
4522   return 0;
4523 }
4524 _ACEOF
4525 if ac_fn_c_try_compile "$LINENO"; then :
4526   ac_cv_sys_large_files=1; break
4527 fi
4528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529   ac_cv_sys_large_files=unknown
4530   break
4531 done
4532 fi
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4534 $as_echo "$ac_cv_sys_large_files" >&6; }
4535 case $ac_cv_sys_large_files in #(
4536   no | unknown) ;;
4537   *)
4538 cat >>confdefs.h <<_ACEOF
4539 #define _LARGE_FILES $ac_cv_sys_large_files
4540 _ACEOF
4541 ;;
4542 esac
4543 rm -rf conftest*
4544   fi
4545 fi
4546
4547
4548
4549
4550
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4552 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4553 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4554   $as_echo_n "(cached) " >&6
4555 else
4556   am_cv_prog_cc_stdc=no
4557 ac_save_CC="$CC"
4558 # Don't try gcc -ansi; that turns off useful extensions and
4559 # breaks some systems' header files.
4560 # AIX                   -qlanglvl=ansi
4561 # Ultrix and OSF/1      -std1
4562 # HP-UX 10.20 and later -Ae
4563 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4564 # SVR4                  -Xc -D__EXTENSIONS__
4565 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4566 do
4567   CC="$ac_save_CC $ac_arg"
4568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h.  */
4570 #include <stdarg.h>
4571 #include <stdio.h>
4572 #include <sys/types.h>
4573 #include <sys/stat.h>
4574 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4575 struct buf { int x; };
4576 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4577 static char *e (p, i)
4578      char **p;
4579      int i;
4580 {
4581   return p[i];
4582 }
4583 static char *f (char * (*g) (char **, int), char **p, ...)
4584 {
4585   char *s;
4586   va_list v;
4587   va_start (v,p);
4588   s = g (p, va_arg (v,int));
4589   va_end (v);
4590   return s;
4591 }
4592 int test (int i, double x);
4593 struct s1 {int (*f) (int a);};
4594 struct s2 {int (*f) (double a);};
4595 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4596 int argc;
4597 char **argv;
4598
4599 int
4600 main ()
4601 {
4602
4603 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4604
4605   ;
4606   return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_c_try_compile "$LINENO"; then :
4610   am_cv_prog_cc_stdc="$ac_arg"; break
4611 fi
4612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613 done
4614 CC="$ac_save_CC"
4615
4616 fi
4617
4618 if test -z "$am_cv_prog_cc_stdc"; then
4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4620 $as_echo "none needed" >&6; }
4621 else
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4623 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4624 fi
4625 case "x$am_cv_prog_cc_stdc" in
4626   x|xno) ;;
4627   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4628 esac
4629
4630
4631 ac_aux_dir=
4632 for ac_dir in .. "$srcdir"/..; do
4633   for ac_t in install-sh install.sh shtool; do
4634     if test -f "$ac_dir/$ac_t"; then
4635       ac_aux_dir=$ac_dir
4636       ac_install_sh="$ac_aux_dir/$ac_t -c"
4637       break 2
4638     fi
4639   done
4640 done
4641 if test -z "$ac_aux_dir"; then
4642   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4643 fi
4644
4645 # These three variables are undocumented and unsupported,
4646 # and are intended to be withdrawn in a future Autoconf release.
4647 # They can cause serious problems if a builder's source tree is in a directory
4648 # whose full name contains unusual characters.
4649 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4650 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4651 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4652
4653
4654
4655
4656 # Dependency checking.
4657 rm -rf .tst 2>/dev/null
4658 mkdir .tst 2>/dev/null
4659 if test -d .tst; then
4660   am__leading_dot=.
4661 else
4662   am__leading_dot=_
4663 fi
4664 rmdir .tst 2>/dev/null
4665
4666 DEPDIR="${am__leading_dot}deps"
4667
4668 ac_config_commands="$ac_config_commands depdir"
4669
4670
4671 depcc="$CC"   am_compiler_list=
4672
4673 am_depcomp=$ac_aux_dir/depcomp
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4675 $as_echo_n "checking dependency style of $depcc... " >&6; }
4676 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4677   $as_echo_n "(cached) " >&6
4678 else
4679   if test -f "$am_depcomp"; then
4680   # We make a subdir and do the tests there.  Otherwise we can end up
4681   # making bogus files that we don't know about and never remove.  For
4682   # instance it was reported that on HP-UX the gcc test will end up
4683   # making a dummy file named `D' -- because `-MD' means `put the output
4684   # in D'.
4685   mkdir conftest.dir
4686   # Copy depcomp to subdir because otherwise we won't find it if we're
4687   # using a relative directory.
4688   cp "$am_depcomp" conftest.dir
4689   cd conftest.dir
4690   # We will build objects and dependencies in a subdirectory because
4691   # it helps to detect inapplicable dependency modes.  For instance
4692   # both Tru64's cc and ICC support -MD to output dependencies as a
4693   # side effect of compilation, but ICC will put the dependencies in
4694   # the current directory while Tru64 will put them in the object
4695   # directory.
4696   mkdir sub
4697
4698   am_cv_CC_dependencies_compiler_type=none
4699   if test "$am_compiler_list" = ""; then
4700      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4701   fi
4702   for depmode in $am_compiler_list; do
4703     if test $depmode = none; then break; fi
4704
4705     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4706     # Setup a source with many dependencies, because some compilers
4707     # like to wrap large dependency lists on column 80 (with \), and
4708     # we should not choose a depcomp mode which is confused by this.
4709     #
4710     # We need to recreate these files for each test, as the compiler may
4711     # overwrite some of them when testing with obscure command lines.
4712     # This happens at least with the AIX C compiler.
4713     : > sub/conftest.c
4714     for i in 1 2 3 4 5 6; do
4715       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4716       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4717       # Solaris 8's {/usr,}/bin/sh.
4718       touch sub/conftst$i.h
4719     done
4720     echo "include sub/conftest.Po" > confmf
4721
4722     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4723     # mode.  It turns out that the SunPro C++ compiler does not properly
4724     # handle `-M -o', and we need to detect this.
4725     depcmd="depmode=$depmode \
4726        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4727        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4728        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4729     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4730     if env $depcmd > conftest.err 2>&1 &&
4731        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4732        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4733        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4734       # icc doesn't choke on unknown options, it will just issue warnings
4735       # or remarks (even with -Werror).  So we grep stderr for any message
4736       # that says an option was ignored or not supported.
4737       # When given -MP, icc 7.0 and 7.1 complain thusly:
4738       #   icc: Command line warning: ignoring option '-M'; no argument required
4739       # The diagnosis changed in icc 8.0:
4740       #   icc: Command line remark: option '-MP' not supported
4741       if (grep 'ignoring option' conftest.err ||
4742           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4743         am_cv_CC_dependencies_compiler_type=$depmode
4744         $as_echo "$as_me:$LINENO: success" >&5
4745         break
4746       fi
4747     fi
4748     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4749     sed -e 's/^/| /' < conftest.err >&5
4750   done
4751
4752   cd ..
4753   rm -rf conftest.dir
4754 else
4755   am_cv_CC_dependencies_compiler_type=none
4756 fi
4757
4758 fi
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4760 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4761 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4762 then as_fn_error "no usable dependency style found" "$LINENO" 5
4763 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4764
4765 fi
4766
4767
4768 # Check for the 'make' the user wants to use.
4769 for ac_prog in make
4770 do
4771   # Extract the first word of "$ac_prog", so it can be a program name with args.
4772 set dummy $ac_prog; ac_word=$2
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4774 $as_echo_n "checking for $ac_word... " >&6; }
4775 if test "${ac_cv_prog_MAKE+set}" = set; then :
4776   $as_echo_n "(cached) " >&6
4777 else
4778   if test -n "$MAKE"; then
4779   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786     for ac_exec_ext in '' $ac_executable_extensions; do
4787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788     ac_cv_prog_MAKE="$ac_prog"
4789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793   done
4794 IFS=$as_save_IFS
4795
4796 fi
4797 fi
4798 MAKE=$ac_cv_prog_MAKE
4799 if test -n "$MAKE"; then
4800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4801 $as_echo "$MAKE" >&6; }
4802 else
4803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4804 $as_echo "no" >&6; }
4805 fi
4806
4807
4808   test -n "$MAKE" && break
4809 done
4810
4811 MAKE_IS_GNU=
4812 case "`$MAKE --version 2>&1 | sed 1q`" in
4813   *GNU*)
4814     MAKE_IS_GNU=yes
4815     ;;
4816 esac
4817  if test "$MAKE_IS_GNU" = yes; then
4818   GMAKE_TRUE=
4819   GMAKE_FALSE='#'
4820 else
4821   GMAKE_TRUE='#'
4822   GMAKE_FALSE=
4823 fi
4824
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4826 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4827 set x ${MAKE-make}
4828 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4829 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4830   $as_echo_n "(cached) " >&6
4831 else
4832   cat >conftest.make <<\_ACEOF
4833 SHELL = /bin/sh
4834 all:
4835         @echo '@@@%%%=$(MAKE)=@@@%%%'
4836 _ACEOF
4837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4838 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4839   *@@@%%%=?*=@@@%%%*)
4840     eval ac_cv_prog_make_${ac_make}_set=yes;;
4841   *)
4842     eval ac_cv_prog_make_${ac_make}_set=no;;
4843 esac
4844 rm -f conftest.make
4845 fi
4846 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4848 $as_echo "yes" >&6; }
4849   SET_MAKE=
4850 else
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853   SET_MAKE="MAKE=${MAKE-make}"
4854 fi
4855
4856
4857
4858 CONFIG_OBS=
4859 CONFIG_DEPS=
4860 CONFIG_SRCS=
4861 ENABLE_CFLAGS=
4862
4863 CONFIG_ALL=
4864 CONFIG_CLEAN=
4865 CONFIG_INSTALL=
4866 CONFIG_UNINSTALL=
4867
4868 # If we haven't got the data from the intl directory,
4869 # assume NLS is disabled.
4870 USE_NLS=no
4871 LIBINTL=
4872 LIBINTL_DEP=
4873 INCINTL=
4874 XGETTEXT=
4875 GMSGFMT=
4876 POSUB=
4877
4878 if test -f  ../intl/config.intl; then
4879   .  ../intl/config.intl
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4882 $as_echo_n "checking whether NLS is requested... " >&6; }
4883 if test x"$USE_NLS" != xyes; then
4884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885 $as_echo "no" >&6; }
4886 else
4887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4888 $as_echo "yes" >&6; }
4889
4890 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4891
4892
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4894 $as_echo_n "checking for catalogs to be installed... " >&6; }
4895   # Look for .po and .gmo files in the source directory.
4896   CATALOGS=
4897   XLINGUAS=
4898   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4899     # If there aren't any .gmo files the shell will give us the
4900     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4901     # weeded out.
4902     case "$cat" in *\**)
4903       continue;;
4904     esac
4905     # The quadruple backslash is collapsed to a double backslash
4906     # by the backticks, then collapsed again by the double quotes,
4907     # leaving us with one backslash in the sed expression (right
4908     # before the dot that mustn't act as a wildcard).
4909     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4910     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4911     # The user is allowed to set LINGUAS to a list of languages to
4912     # install catalogs for.  If it's empty that means "all of them."
4913     if test "x$LINGUAS" = x; then
4914       CATALOGS="$CATALOGS $cat"
4915       XLINGUAS="$XLINGUAS $lang"
4916     else
4917       case "$LINGUAS" in *$lang*)
4918         CATALOGS="$CATALOGS $cat"
4919         XLINGUAS="$XLINGUAS $lang"
4920         ;;
4921       esac
4922     fi
4923   done
4924   LINGUAS="$XLINGUAS"
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4926 $as_echo "$LINGUAS" >&6; }
4927
4928
4929     DATADIRNAME=share
4930
4931   INSTOBJEXT=.mo
4932
4933   GENCAT=gencat
4934
4935   CATOBJEXT=.gmo
4936
4937 fi
4938
4939 localedir='${datadir}/locale'
4940
4941
4942 if test x"$USE_NLS" = xyes; then
4943    CONFIG_ALL="$CONFIG_ALL all-po"
4944    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4945    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4946    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4947 fi
4948
4949
4950
4951
4952
4953           LIBC_FATAL_STDERR_=1
4954   export LIBC_FATAL_STDERR_
4955
4956
4957
4958
4959
4960   for ac_header in $gl_header_list
4961 do :
4962   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4964 eval as_val=\$$as_ac_Header
4965    if test "x$as_val" = x""yes; then :
4966   cat >>confdefs.h <<_ACEOF
4967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 _ACEOF
4969
4970 fi
4971
4972 done
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982   for ac_func in $gl_func_list
4983 do :
4984   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4985 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4986 eval as_val=\$$as_ac_var
4987    if test "x$as_val" = x""yes; then :
4988   cat >>confdefs.h <<_ACEOF
4989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4990 _ACEOF
4991
4992 fi
4993 done
4994
4995
4996
4997
4998
4999
5000   GNULIB_MEMCHR=0;
5001   GNULIB_MEMMEM=0;
5002   GNULIB_MEMPCPY=0;
5003   GNULIB_MEMRCHR=0;
5004   GNULIB_RAWMEMCHR=0;
5005   GNULIB_STPCPY=0;
5006   GNULIB_STPNCPY=0;
5007   GNULIB_STRCHRNUL=0;
5008   GNULIB_STRDUP=0;
5009   GNULIB_STRNCAT=0;
5010   GNULIB_STRNDUP=0;
5011   GNULIB_STRNLEN=0;
5012   GNULIB_STRPBRK=0;
5013   GNULIB_STRSEP=0;
5014   GNULIB_STRSTR=0;
5015   GNULIB_STRCASESTR=0;
5016   GNULIB_STRTOK_R=0;
5017   GNULIB_MBSLEN=0;
5018   GNULIB_MBSNLEN=0;
5019   GNULIB_MBSCHR=0;
5020   GNULIB_MBSRCHR=0;
5021   GNULIB_MBSSTR=0;
5022   GNULIB_MBSCASECMP=0;
5023   GNULIB_MBSNCASECMP=0;
5024   GNULIB_MBSPCASECMP=0;
5025   GNULIB_MBSCASESTR=0;
5026   GNULIB_MBSCSPN=0;
5027   GNULIB_MBSPBRK=0;
5028   GNULIB_MBSSPN=0;
5029   GNULIB_MBSSEP=0;
5030   GNULIB_MBSTOK_R=0;
5031   GNULIB_STRERROR=0;
5032   GNULIB_STRSIGNAL=0;
5033   GNULIB_STRVERSCMP=0;
5034   HAVE_MBSLEN=0;
5035     HAVE_MEMCHR=1;
5036   HAVE_DECL_MEMMEM=1;
5037   HAVE_MEMPCPY=1;
5038   HAVE_DECL_MEMRCHR=1;
5039   HAVE_RAWMEMCHR=1;
5040   HAVE_STPCPY=1;
5041   HAVE_STPNCPY=1;
5042   HAVE_STRCHRNUL=1;
5043   HAVE_DECL_STRDUP=1;
5044   HAVE_DECL_STRNDUP=1;
5045   HAVE_DECL_STRNLEN=1;
5046   HAVE_STRPBRK=1;
5047   HAVE_STRSEP=1;
5048   HAVE_STRCASESTR=1;
5049   HAVE_DECL_STRTOK_R=1;
5050   HAVE_DECL_STRSIGNAL=1;
5051   HAVE_STRVERSCMP=1;
5052   REPLACE_MEMCHR=0;
5053   REPLACE_MEMMEM=0;
5054   REPLACE_STPNCPY=0;
5055   REPLACE_STRDUP=0;
5056   REPLACE_STRSTR=0;
5057   REPLACE_STRCASESTR=0;
5058   REPLACE_STRERROR=0;
5059   REPLACE_STRNCAT=0;
5060   REPLACE_STRNDUP=0;
5061   REPLACE_STRNLEN=0;
5062   REPLACE_STRSIGNAL=0;
5063   REPLACE_STRTOK_R=0;
5064   UNDEFINE_STRTOK_R=0;
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5079   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5080   # irrelevant for anonymous mappings.
5081   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5082 if test "x$ac_cv_func_mmap" = x""yes; then :
5083   gl_have_mmap=yes
5084 else
5085   gl_have_mmap=no
5086 fi
5087
5088
5089   # Try to allow MAP_ANONYMOUS.
5090   gl_have_mmap_anonymous=no
5091   if test $gl_have_mmap = yes; then
5092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5093 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h.  */
5096
5097 #include <sys/mman.h>
5098 #ifdef MAP_ANONYMOUS
5099     I cant identify this map.
5100 #endif
5101
5102 _ACEOF
5103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5104   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5105   gl_have_mmap_anonymous=yes
5106 fi
5107 rm -f conftest*
5108
5109     if test $gl_have_mmap_anonymous != yes; then
5110       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111 /* end confdefs.h.  */
5112
5113 #include <sys/mman.h>
5114 #ifdef MAP_ANON
5115     I cant identify this map.
5116 #endif
5117
5118 _ACEOF
5119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5120   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5121
5122 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5123
5124          gl_have_mmap_anonymous=yes
5125 fi
5126 rm -f conftest*
5127
5128     fi
5129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5130 $as_echo "$gl_have_mmap_anonymous" >&6; }
5131     if test $gl_have_mmap_anonymous = yes; then
5132
5133 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5134
5135     fi
5136   fi
5137
5138
5139   :
5140
5141
5142
5143
5144
5145
5146   :
5147
5148
5149
5150
5151
5152
5153
5154
5155   :
5156
5157
5158
5159
5160
5161   if test $ac_cv_func_memchr = yes; then
5162     # Detect platform-specific bugs in some versions of glibc:
5163     # memchr should not dereference anything with length 0
5164     #   http://bugzilla.redhat.com/499689
5165     # memchr should not dereference overestimated length after a match
5166     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5167     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5168     # Assume that memchr works on platforms that lack mprotect.
5169     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5170 $as_echo_n "checking whether memchr works... " >&6; }
5171 if test "${gl_cv_func_memchr_works+set}" = set; then :
5172   $as_echo_n "(cached) " >&6
5173 else
5174   if test "$cross_compiling" = yes; then :
5175          gl_cv_func_memchr_works="guessing no"
5176 else
5177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178 /* end confdefs.h.  */
5179
5180 #include <string.h>
5181 #if HAVE_SYS_MMAN_H
5182 # include <fcntl.h>
5183 # include <unistd.h>
5184 # include <sys/types.h>
5185 # include <sys/mman.h>
5186 # ifndef MAP_FILE
5187 #  define MAP_FILE 0
5188 # endif
5189 #endif
5190
5191 int
5192 main ()
5193 {
5194
5195   char *fence = NULL;
5196 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5197 # if HAVE_MAP_ANONYMOUS
5198   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5199   const int fd = -1;
5200 # else /* !HAVE_MAP_ANONYMOUS */
5201   const int flags = MAP_FILE | MAP_PRIVATE;
5202   int fd = open ("/dev/zero", O_RDONLY, 0666);
5203   if (fd >= 0)
5204 # endif
5205     {
5206       int pagesize = getpagesize ();
5207       char *two_pages =
5208         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5209                        flags, fd, 0);
5210       if (two_pages != (char *)(-1)
5211           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5212         fence = two_pages + pagesize;
5213     }
5214 #endif
5215   if (fence)
5216     {
5217       if (memchr (fence, 0, 0))
5218         return 1;
5219       strcpy (fence - 9, "12345678");
5220       if (memchr (fence - 9, 0, 79) != fence - 1)
5221         return 2;
5222     }
5223   return 0;
5224
5225   ;
5226   return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_c_try_run "$LINENO"; then :
5230   gl_cv_func_memchr_works=yes
5231 else
5232   gl_cv_func_memchr_works=no
5233 fi
5234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5235   conftest.$ac_objext conftest.beam conftest.$ac_ext
5236 fi
5237
5238 fi
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5240 $as_echo "$gl_cv_func_memchr_works" >&6; }
5241     if test "$gl_cv_func_memchr_works" != yes; then
5242       REPLACE_MEMCHR=1
5243     fi
5244   else
5245     HAVE_MEMCHR=0
5246   fi
5247   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5248
5249
5250
5251
5252
5253
5254
5255
5256   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5257
5258
5259   for ac_header in bp-sym.h
5260 do :
5261   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5262 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5263   cat >>confdefs.h <<_ACEOF
5264 #define HAVE_BP_SYM_H 1
5265 _ACEOF
5266
5267 fi
5268
5269 done
5270
5271
5272   fi
5273
5274
5275       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5276 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5277   ac_have_decl=1
5278 else
5279   ac_have_decl=0
5280 fi
5281
5282 cat >>confdefs.h <<_ACEOF
5283 #define HAVE_DECL_MEMMEM $ac_have_decl
5284 _ACEOF
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299   for ac_func in memmem
5300 do :
5301   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5302 if test "x$ac_cv_func_memmem" = x""yes; then :
5303   cat >>confdefs.h <<_ACEOF
5304 #define HAVE_MEMMEM 1
5305 _ACEOF
5306
5307 else
5308
5309     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5310
5311 fi
5312 done
5313
5314
5315
5316   :
5317
5318
5319
5320
5321
5322   if test $ac_cv_have_decl_memmem = no; then
5323     HAVE_DECL_MEMMEM=0
5324   fi
5325   :
5326
5327
5328     gl_cv_c_multiarch=no
5329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331 #ifndef __APPLE_CC__
5332          not a universal capable compiler
5333         #endif
5334         typedef int dummy;
5335
5336 _ACEOF
5337 if ac_fn_c_try_compile "$LINENO"; then :
5338
5339                arch=
5340      prev=
5341      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5342        if test -n "$prev"; then
5343          case $word in
5344            i?86 | x86_64 | ppc | ppc64)
5345              if test -z "$arch" || test "$arch" = "$word"; then
5346                arch="$word"
5347              else
5348                gl_cv_c_multiarch=yes
5349              fi
5350              ;;
5351          esac
5352          prev=
5353        else
5354          if test "x$word" = "x-arch"; then
5355            prev=arch
5356          fi
5357        fi
5358      done
5359
5360 fi
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362   if test $gl_cv_c_multiarch = yes; then
5363
5364 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5365
5366     APPLE_UNIVERSAL_BUILD=1
5367   else
5368     APPLE_UNIVERSAL_BUILD=0
5369   fi
5370
5371
5372
5373     REPLACE_NULL=0;
5374   HAVE_WCHAR_T=1;
5375   STDDEF_H='';
5376
5377
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5379 $as_echo_n "checking for wchar_t... " >&6; }
5380 if test "${gt_cv_c_wchar_t+set}" = set; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h.  */
5385 #include <stddef.h>
5386        wchar_t foo = (wchar_t)'\0';
5387 int
5388 main ()
5389 {
5390
5391   ;
5392   return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_compile "$LINENO"; then :
5396   gt_cv_c_wchar_t=yes
5397 else
5398   gt_cv_c_wchar_t=no
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 fi
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5403 $as_echo "$gt_cv_c_wchar_t" >&6; }
5404   if test $gt_cv_c_wchar_t = yes; then
5405
5406 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5407
5408   fi
5409
5410
5411
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5413 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5414 if test "${gl_cv_have_include_next+set}" = set; then :
5415   $as_echo_n "(cached) " >&6
5416 else
5417   rm -rf conftestd1a conftestd1b conftestd2
5418      mkdir conftestd1a conftestd1b conftestd2
5419                                                   cat <<EOF > conftestd1a/conftest.h
5420 #define DEFINED_IN_CONFTESTD1
5421 #include_next <conftest.h>
5422 #ifdef DEFINED_IN_CONFTESTD2
5423 int foo;
5424 #else
5425 #error "include_next doesn't work"
5426 #endif
5427 EOF
5428      cat <<EOF > conftestd1b/conftest.h
5429 #define DEFINED_IN_CONFTESTD1
5430 #include <stdio.h>
5431 #include_next <conftest.h>
5432 #ifdef DEFINED_IN_CONFTESTD2
5433 int foo;
5434 #else
5435 #error "include_next doesn't work"
5436 #endif
5437 EOF
5438      cat <<EOF > conftestd2/conftest.h
5439 #ifndef DEFINED_IN_CONFTESTD1
5440 #error "include_next test doesn't work"
5441 #endif
5442 #define DEFINED_IN_CONFTESTD2
5443 EOF
5444      gl_save_CPPFLAGS="$CPPFLAGS"
5445      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5446      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h.  */
5448 #include <conftest.h>
5449 _ACEOF
5450 if ac_fn_c_try_compile "$LINENO"; then :
5451   gl_cv_have_include_next=yes
5452 else
5453   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5454         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h.  */
5456 #include <conftest.h>
5457 _ACEOF
5458 if ac_fn_c_try_compile "$LINENO"; then :
5459   gl_cv_have_include_next=buggy
5460 else
5461   gl_cv_have_include_next=no
5462 fi
5463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467      CPPFLAGS="$gl_save_CPPFLAGS"
5468      rm -rf conftestd1a conftestd1b conftestd2
5469
5470 fi
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5472 $as_echo "$gl_cv_have_include_next" >&6; }
5473   PRAGMA_SYSTEM_HEADER=
5474   if test $gl_cv_have_include_next = yes; then
5475     INCLUDE_NEXT=include_next
5476     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5477     if test -n "$GCC"; then
5478       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5479     fi
5480   else
5481     if test $gl_cv_have_include_next = buggy; then
5482       INCLUDE_NEXT=include
5483       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5484     else
5485       INCLUDE_NEXT=include
5486       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5487     fi
5488   fi
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5500 $as_echo_n "checking for long long int... " >&6; }
5501 if test "${ac_cv_type_long_long_int+set}" = set; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5505 /* end confdefs.h.  */
5506
5507   /* For now, do not test the preprocessor; as of 2007 there are too many
5508          implementations with broken preprocessors.  Perhaps this can
5509          be revisited in 2012.  In the meantime, code should not expect
5510          #if to work with literals wider than 32 bits.  */
5511       /* Test literals.  */
5512       long long int ll = 9223372036854775807ll;
5513       long long int nll = -9223372036854775807LL;
5514       unsigned long long int ull = 18446744073709551615ULL;
5515       /* Test constant expressions.   */
5516       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5517                      ? 1 : -1)];
5518       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5519                      ? 1 : -1)];
5520       int i = 63;
5521 int
5522 main ()
5523 {
5524 /* Test availability of runtime routines for shift and division.  */
5525       long long int llmax = 9223372036854775807ll;
5526       unsigned long long int ullmax = 18446744073709551615ull;
5527       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5528               | (llmax / ll) | (llmax % ll)
5529               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5530               | (ullmax / ull) | (ullmax % ull));
5531   ;
5532   return 0;
5533 }
5534
5535 _ACEOF
5536 if ac_fn_c_try_link "$LINENO"; then :
5537                           if test "$cross_compiling" = yes; then :
5538   ac_cv_type_long_long_int=yes
5539 else
5540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5541 /* end confdefs.h.  */
5542 #include <limits.h>
5543                #ifndef LLONG_MAX
5544                # define HALF \
5545                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5546                # define LLONG_MAX (HALF - 1 + HALF)
5547                #endif
5548 int
5549 main ()
5550 {
5551 long long int n = 1;
5552                int i;
5553                for (i = 0; ; i++)
5554                  {
5555                    long long int m = n << i;
5556                    if (m >> i != n)
5557                      return 1;
5558                    if (LLONG_MAX / 2 < m)
5559                      break;
5560                  }
5561                return 0;
5562   ;
5563   return 0;
5564 }
5565 _ACEOF
5566 if ac_fn_c_try_run "$LINENO"; then :
5567   ac_cv_type_long_long_int=yes
5568 else
5569   ac_cv_type_long_long_int=no
5570 fi
5571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5572   conftest.$ac_objext conftest.beam conftest.$ac_ext
5573 fi
5574
5575 else
5576   ac_cv_type_long_long_int=no
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext \
5579     conftest$ac_exeext conftest.$ac_ext
5580 fi
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5582 $as_echo "$ac_cv_type_long_long_int" >&6; }
5583   if test $ac_cv_type_long_long_int = yes; then
5584
5585 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5586
5587   fi
5588
5589
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5591 $as_echo_n "checking for unsigned long long int... " >&6; }
5592 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h.  */
5597
5598   /* For now, do not test the preprocessor; as of 2007 there are too many
5599          implementations with broken preprocessors.  Perhaps this can
5600          be revisited in 2012.  In the meantime, code should not expect
5601          #if to work with literals wider than 32 bits.  */
5602       /* Test literals.  */
5603       long long int ll = 9223372036854775807ll;
5604       long long int nll = -9223372036854775807LL;
5605       unsigned long long int ull = 18446744073709551615ULL;
5606       /* Test constant expressions.   */
5607       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5608                      ? 1 : -1)];
5609       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5610                      ? 1 : -1)];
5611       int i = 63;
5612 int
5613 main ()
5614 {
5615 /* Test availability of runtime routines for shift and division.  */
5616       long long int llmax = 9223372036854775807ll;
5617       unsigned long long int ullmax = 18446744073709551615ull;
5618       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5619               | (llmax / ll) | (llmax % ll)
5620               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5621               | (ullmax / ull) | (ullmax % ull));
5622   ;
5623   return 0;
5624 }
5625
5626 _ACEOF
5627 if ac_fn_c_try_link "$LINENO"; then :
5628   ac_cv_type_unsigned_long_long_int=yes
5629 else
5630   ac_cv_type_unsigned_long_long_int=no
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext \
5633     conftest$ac_exeext conftest.$ac_ext
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5636 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5637   if test $ac_cv_type_unsigned_long_long_int = yes; then
5638
5639 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5640
5641   fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5654 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5655 if test "${ac_cv_c_restrict+set}" = set; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   ac_cv_c_restrict=no
5659    # The order here caters to the fact that C++ does not require restrict.
5660    for ac_kw in __restrict __restrict__ _Restrict restrict; do
5661      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662 /* end confdefs.h.  */
5663 typedef int * int_ptr;
5664         int foo (int_ptr $ac_kw ip) {
5665         return ip[0];
5666        }
5667 int
5668 main ()
5669 {
5670 int s[1];
5671         int * $ac_kw t = s;
5672         t[0] = 0;
5673         return foo(t)
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_compile "$LINENO"; then :
5679   ac_cv_c_restrict=$ac_kw
5680 fi
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682      test "$ac_cv_c_restrict" != no && break
5683    done
5684
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5687 $as_echo "$ac_cv_c_restrict" >&6; }
5688
5689  case $ac_cv_c_restrict in
5690    restrict) ;;
5691    no) $as_echo "#define restrict /**/" >>confdefs.h
5692  ;;
5693    *)  cat >>confdefs.h <<_ACEOF
5694 #define restrict $ac_cv_c_restrict
5695 _ACEOF
5696  ;;
5697  esac
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711   :
5712
5713
5714
5715
5716
5717
5718
5719      if test $gl_cv_have_include_next = yes; then
5720        gl_cv_next_string_h='<'string.h'>'
5721      else
5722        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5723 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5724 if test "${gl_cv_next_string_h+set}" = set; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727
5728           if test $ac_cv_header_string_h = yes; then
5729             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h.  */
5731 #include <string.h>
5732
5733 _ACEOF
5734                                                                                                 case "$host_os" in
5735               aix*) gl_absname_cpp="$ac_cpp -C" ;;
5736               *)    gl_absname_cpp="$ac_cpp" ;;
5737             esac
5738                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5739                sed -n '\#/string.h#{
5740                  s#.*"\(.*/string.h\)".*#\1#
5741                  s#^/[^/]#//&#
5742                  p
5743                  q
5744                }'`'"'
5745           else
5746             gl_cv_next_string_h='<'string.h'>'
5747           fi
5748
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5751 $as_echo "$gl_cv_next_string_h" >&6; }
5752      fi
5753      NEXT_STRING_H=$gl_cv_next_string_h
5754
5755      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5756        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5757        gl_next_as_first_directive='<'string.h'>'
5758      else
5759        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5760        gl_next_as_first_directive=$gl_cv_next_string_h
5761      fi
5762      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5763
5764
5765
5766
5767
5768     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
5769     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5770     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5771 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5772 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5773   $as_echo_n "(cached) " >&6
5774 else
5775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h.  */
5777 #include <string.h>
5778
5779 int
5780 main ()
5781 {
5782 #undef $gl_func
5783   (void) $gl_func;
5784   ;
5785   return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_c_try_compile "$LINENO"; then :
5789   eval "$as_gl_Symbol=yes"
5790 else
5791   eval "$as_gl_Symbol=no"
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 fi
5795 eval ac_res=\$$as_gl_Symbol
5796                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5797 $as_echo "$ac_res" >&6; }
5798      eval as_val=\$$as_gl_Symbol
5799    if test "x$as_val" = x""yes; then :
5800   cat >>confdefs.h <<_ACEOF
5801 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5802 _ACEOF
5803
5804                      eval ac_cv_have_decl_$gl_func=yes
5805 fi
5806       done
5807
5808
5809
5810   GNULIB_BTOWC=0;
5811   GNULIB_WCTOB=0;
5812   GNULIB_MBSINIT=0;
5813   GNULIB_MBRTOWC=0;
5814   GNULIB_MBRLEN=0;
5815   GNULIB_MBSRTOWCS=0;
5816   GNULIB_MBSNRTOWCS=0;
5817   GNULIB_WCRTOMB=0;
5818   GNULIB_WCSRTOMBS=0;
5819   GNULIB_WCSNRTOMBS=0;
5820   GNULIB_WCWIDTH=0;
5821     HAVE_BTOWC=1;
5822   HAVE_MBSINIT=1;
5823   HAVE_MBRTOWC=1;
5824   HAVE_MBRLEN=1;
5825   HAVE_MBSRTOWCS=1;
5826   HAVE_MBSNRTOWCS=1;
5827   HAVE_WCRTOMB=1;
5828   HAVE_WCSRTOMBS=1;
5829   HAVE_WCSNRTOMBS=1;
5830   HAVE_DECL_WCTOB=1;
5831   HAVE_DECL_WCWIDTH=1;
5832   REPLACE_MBSTATE_T=0;
5833   REPLACE_BTOWC=0;
5834   REPLACE_WCTOB=0;
5835   REPLACE_MBSINIT=0;
5836   REPLACE_MBRTOWC=0;
5837   REPLACE_MBRLEN=0;
5838   REPLACE_MBSRTOWCS=0;
5839   REPLACE_MBSNRTOWCS=0;
5840   REPLACE_WCRTOMB=0;
5841   REPLACE_WCSRTOMBS=0;
5842   REPLACE_WCSNRTOMBS=0;
5843   REPLACE_WCWIDTH=0;
5844
5845
5846             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5847 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5848 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5849   $as_echo_n "(cached) " >&6
5850 else
5851   gl_cv_header_wchar_h_correct_inline=yes
5852      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5853 /* end confdefs.h.  */
5854
5855        #define wcstod renamed_wcstod
5856 #include <wchar.h>
5857 extern int zero (void);
5858 int main () { return zero(); }
5859
5860 _ACEOF
5861      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5862   (eval $ac_compile) 2>&5
5863   ac_status=$?
5864   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5865   test $ac_status = 0; }; then
5866        mv conftest.$ac_objext conftest1.$ac_objext
5867        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h.  */
5869
5870          #define wcstod renamed_wcstod
5871 #include <wchar.h>
5872 int zero (void) { return 0; }
5873
5874 _ACEOF
5875        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5876   (eval $ac_compile) 2>&5
5877   ac_status=$?
5878   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5879   test $ac_status = 0; }; then
5880          mv conftest.$ac_objext conftest2.$ac_objext
5881          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5882            :
5883          else
5884            gl_cv_header_wchar_h_correct_inline=no
5885          fi
5886        fi
5887      fi
5888      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5889
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5892 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5893   if test $gl_cv_header_wchar_h_correct_inline = no; then
5894     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5895 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5896 C99 mode. You have four options:
5897   - Add the flag -fgnu89-inline to CC and reconfigure, or
5898   - Fix your include files, using parts of
5899     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5900   - Use a gcc version older than 4.3, or
5901   - Don't use the flags -std=c99 or -std=gnu99.
5902 Configuration aborted." "$LINENO" 5
5903   fi
5904
5905
5906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5907 $as_echo_n "checking for wint_t... " >&6; }
5908 if test "${gt_cv_c_wint_t+set}" = set; then :
5909   $as_echo_n "(cached) " >&6
5910 else
5911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h.  */
5913
5914 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5915    <wchar.h>.
5916    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5917    before <wchar.h>.  */
5918 #include <stddef.h>
5919 #include <stdio.h>
5920 #include <time.h>
5921 #include <wchar.h>
5922        wint_t foo = (wchar_t)'\0';
5923 int
5924 main ()
5925 {
5926
5927   ;
5928   return 0;
5929 }
5930 _ACEOF
5931 if ac_fn_c_try_compile "$LINENO"; then :
5932   gt_cv_c_wint_t=yes
5933 else
5934   gt_cv_c_wint_t=no
5935 fi
5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 fi
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5939 $as_echo "$gt_cv_c_wint_t" >&6; }
5940   if test $gt_cv_c_wint_t = yes; then
5941
5942 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5943
5944   fi
5945
5946
5947    if false; then
5948   GL_COND_LIBTOOL_TRUE=
5949   GL_COND_LIBTOOL_FALSE='#'
5950 else
5951   GL_COND_LIBTOOL_TRUE='#'
5952   GL_COND_LIBTOOL_FALSE=
5953 fi
5954
5955   gl_cond_libtool=false
5956   gl_libdeps=
5957   gl_ltlibdeps=
5958   gl_m4_base='gnulib/m4'
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968   gl_source_base='gnulib'
5969   # Code from module arg-nonnull:
5970   # Code from module c++defs:
5971   # Code from module extensions:
5972   # Code from module include_next:
5973   # Code from module memchr:
5974
5975
5976
5977
5978   GNULIB_MEMCHR=1
5979
5980
5981
5982 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5983
5984
5985
5986   # Code from module memmem:
5987
5988
5989   if test $ac_cv_have_decl_memmem = yes; then
5990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
5991 $as_echo_n "checking whether memmem works in linear time... " >&6; }
5992 if test "${gl_cv_func_memmem_works+set}" = set; then :
5993   $as_echo_n "(cached) " >&6
5994 else
5995   if test "$cross_compiling" = yes; then :
5996                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h.  */
5998
5999 #include <features.h>
6000 #ifdef __GNU_LIBRARY__
6001  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6002   Lucky user
6003  #endif
6004 #endif
6005 #ifdef __CYGWIN__
6006  #include <cygwin/version.h>
6007  #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6008   Lucky user
6009  #endif
6010 #endif
6011
6012 _ACEOF
6013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014   $EGREP "Lucky user" >/dev/null 2>&1; then :
6015   gl_cv_func_memmem_works=yes
6016 else
6017   gl_cv_func_memmem_works="guessing no"
6018 fi
6019 rm -f conftest*
6020
6021
6022 else
6023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h.  */
6025
6026 #include <signal.h> /* for signal */
6027 #include <string.h> /* for memmem */
6028 #include <stdlib.h> /* for malloc */
6029 #include <unistd.h> /* for alarm */
6030
6031 int
6032 main ()
6033 {
6034 size_t m = 1000000;
6035     char *haystack = (char *) malloc (2 * m + 1);
6036     char *needle = (char *) malloc (m + 1);
6037     void *result = 0;
6038     /* Failure to compile this test due to missing alarm is okay,
6039        since all such platforms (mingw) also lack memmem.  */
6040     signal (SIGALRM, SIG_DFL);
6041     alarm (5);
6042     /* Check for quadratic performance.  */
6043     if (haystack && needle)
6044       {
6045         memset (haystack, 'A', 2 * m);
6046         haystack[2 * m] = 'B';
6047         memset (needle, 'A', m);
6048         needle[m] = 'B';
6049         result = memmem (haystack, 2 * m + 1, needle, m + 1);
6050       }
6051     /* Check for empty needle behavior.  */
6052     return !result || !memmem ("a", 1, 0, 0);
6053   ;
6054   return 0;
6055 }
6056 _ACEOF
6057 if ac_fn_c_try_run "$LINENO"; then :
6058   gl_cv_func_memmem_works=yes
6059 else
6060   gl_cv_func_memmem_works=no
6061 fi
6062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6063   conftest.$ac_objext conftest.beam conftest.$ac_ext
6064 fi
6065
6066
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6069 $as_echo "$gl_cv_func_memmem_works" >&6; }
6070     if test "$gl_cv_func_memmem_works" != yes; then
6071       REPLACE_MEMMEM=1
6072
6073
6074
6075
6076
6077
6078
6079
6080   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6081
6082     fi
6083   fi
6084
6085   # Code from module memmem-simple:
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098   for ac_func in memmem
6099 do :
6100   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6101 if test "x$ac_cv_func_memmem" = x""yes; then :
6102   cat >>confdefs.h <<_ACEOF
6103 #define HAVE_MEMMEM 1
6104 _ACEOF
6105
6106 else
6107
6108     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6109
6110 fi
6111 done
6112
6113
6114
6115   :
6116
6117
6118
6119
6120
6121   if test $ac_cv_have_decl_memmem = no; then
6122     HAVE_DECL_MEMMEM=0
6123   fi
6124   :
6125
6126
6127
6128
6129   GNULIB_MEMMEM=1
6130
6131
6132
6133 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6134
6135
6136
6137   # Code from module multiarch:
6138
6139   # Code from module stddef:
6140
6141
6142
6143   if test $gt_cv_c_wchar_t = no; then
6144     HAVE_WCHAR_T=0
6145     STDDEF_H=stddef.h
6146   fi
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6148 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6149 if test "${gl_cv_decl_null_works+set}" = set; then :
6150   $as_echo_n "(cached) " >&6
6151 else
6152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h.  */
6154 #include <stddef.h>
6155       int test[2 * (sizeof NULL == sizeof (void *)) -1];
6156
6157 int
6158 main ()
6159 {
6160
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 if ac_fn_c_try_compile "$LINENO"; then :
6166   gl_cv_decl_null_works=yes
6167 else
6168   gl_cv_decl_null_works=no
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6173 $as_echo "$gl_cv_decl_null_works" >&6; }
6174   if test $gl_cv_decl_null_works = no; then
6175     REPLACE_NULL=1
6176     STDDEF_H=stddef.h
6177   fi
6178   if test -n "$STDDEF_H"; then
6179
6180
6181
6182
6183   :
6184
6185
6186
6187
6188
6189
6190
6191      if test $gl_cv_have_include_next = yes; then
6192        gl_cv_next_stddef_h='<'stddef.h'>'
6193      else
6194        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6195 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6196 if test "${gl_cv_next_stddef_h+set}" = set; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199
6200           if test $ac_cv_header_stddef_h = yes; then
6201             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h.  */
6203 #include <stddef.h>
6204
6205 _ACEOF
6206                                                                                                 case "$host_os" in
6207               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6208               *)    gl_absname_cpp="$ac_cpp" ;;
6209             esac
6210                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6211                sed -n '\#/stddef.h#{
6212                  s#.*"\(.*/stddef.h\)".*#\1#
6213                  s#^/[^/]#//&#
6214                  p
6215                  q
6216                }'`'"'
6217           else
6218             gl_cv_next_stddef_h='<'stddef.h'>'
6219           fi
6220
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6223 $as_echo "$gl_cv_next_stddef_h" >&6; }
6224      fi
6225      NEXT_STDDEF_H=$gl_cv_next_stddef_h
6226
6227      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6228        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6229        gl_next_as_first_directive='<'stddef.h'>'
6230      else
6231        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6232        gl_next_as_first_directive=$gl_cv_next_stddef_h
6233      fi
6234      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6235
6236
6237
6238   fi
6239
6240   # Code from module stdint:
6241
6242
6243
6244   if test $ac_cv_type_long_long_int = yes; then
6245     HAVE_LONG_LONG_INT=1
6246   else
6247     HAVE_LONG_LONG_INT=0
6248   fi
6249
6250
6251   if test $ac_cv_type_unsigned_long_long_int = yes; then
6252     HAVE_UNSIGNED_LONG_LONG_INT=1
6253   else
6254     HAVE_UNSIGNED_LONG_LONG_INT=0
6255   fi
6256
6257
6258       if test $ac_cv_header_inttypes_h = yes; then
6259     HAVE_INTTYPES_H=1
6260   else
6261     HAVE_INTTYPES_H=0
6262   fi
6263
6264
6265       if test $ac_cv_header_sys_types_h = yes; then
6266     HAVE_SYS_TYPES_H=1
6267   else
6268     HAVE_SYS_TYPES_H=0
6269   fi
6270
6271
6272
6273
6274
6275
6276   :
6277
6278
6279
6280
6281
6282
6283
6284      if test $gl_cv_have_include_next = yes; then
6285        gl_cv_next_stdint_h='<'stdint.h'>'
6286      else
6287        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6288 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6289 if test "${gl_cv_next_stdint_h+set}" = set; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292
6293           if test $ac_cv_header_stdint_h = yes; then
6294             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h.  */
6296 #include <stdint.h>
6297
6298 _ACEOF
6299                                                                                                 case "$host_os" in
6300               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6301               *)    gl_absname_cpp="$ac_cpp" ;;
6302             esac
6303                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6304                sed -n '\#/stdint.h#{
6305                  s#.*"\(.*/stdint.h\)".*#\1#
6306                  s#^/[^/]#//&#
6307                  p
6308                  q
6309                }'`'"'
6310           else
6311             gl_cv_next_stdint_h='<'stdint.h'>'
6312           fi
6313
6314 fi
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6316 $as_echo "$gl_cv_next_stdint_h" >&6; }
6317      fi
6318      NEXT_STDINT_H=$gl_cv_next_stdint_h
6319
6320      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6321        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6322        gl_next_as_first_directive='<'stdint.h'>'
6323      else
6324        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6325        gl_next_as_first_directive=$gl_cv_next_stdint_h
6326      fi
6327      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6328
6329
6330
6331   if test $ac_cv_header_stdint_h = yes; then
6332     HAVE_STDINT_H=1
6333   else
6334     HAVE_STDINT_H=0
6335   fi
6336
6337
6338     if test $ac_cv_header_stdint_h = yes; then
6339     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6340 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6341 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   gl_cv_header_working_stdint_h=no
6345        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h.  */
6347
6348
6349 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6350 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6351 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6352 #include <stdint.h>
6353 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
6354 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6355 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6356 #endif
6357
6358
6359   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6360      included before <wchar.h>.  */
6361   #include <stddef.h>
6362   #include <signal.h>
6363   #if HAVE_WCHAR_H
6364   # include <stdio.h>
6365   # include <time.h>
6366   # include <wchar.h>
6367   #endif
6368
6369
6370 #ifdef INT8_MAX
6371 int8_t a1 = INT8_MAX;
6372 int8_t a1min = INT8_MIN;
6373 #endif
6374 #ifdef INT16_MAX
6375 int16_t a2 = INT16_MAX;
6376 int16_t a2min = INT16_MIN;
6377 #endif
6378 #ifdef INT32_MAX
6379 int32_t a3 = INT32_MAX;
6380 int32_t a3min = INT32_MIN;
6381 #endif
6382 #ifdef INT64_MAX
6383 int64_t a4 = INT64_MAX;
6384 int64_t a4min = INT64_MIN;
6385 #endif
6386 #ifdef UINT8_MAX
6387 uint8_t b1 = UINT8_MAX;
6388 #else
6389 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6390 #endif
6391 #ifdef UINT16_MAX
6392 uint16_t b2 = UINT16_MAX;
6393 #endif
6394 #ifdef UINT32_MAX
6395 uint32_t b3 = UINT32_MAX;
6396 #endif
6397 #ifdef UINT64_MAX
6398 uint64_t b4 = UINT64_MAX;
6399 #endif
6400 int_least8_t c1 = INT8_C (0x7f);
6401 int_least8_t c1max = INT_LEAST8_MAX;
6402 int_least8_t c1min = INT_LEAST8_MIN;
6403 int_least16_t c2 = INT16_C (0x7fff);
6404 int_least16_t c2max = INT_LEAST16_MAX;
6405 int_least16_t c2min = INT_LEAST16_MIN;
6406 int_least32_t c3 = INT32_C (0x7fffffff);
6407 int_least32_t c3max = INT_LEAST32_MAX;
6408 int_least32_t c3min = INT_LEAST32_MIN;
6409 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6410 int_least64_t c4max = INT_LEAST64_MAX;
6411 int_least64_t c4min = INT_LEAST64_MIN;
6412 uint_least8_t d1 = UINT8_C (0xff);
6413 uint_least8_t d1max = UINT_LEAST8_MAX;
6414 uint_least16_t d2 = UINT16_C (0xffff);
6415 uint_least16_t d2max = UINT_LEAST16_MAX;
6416 uint_least32_t d3 = UINT32_C (0xffffffff);
6417 uint_least32_t d3max = UINT_LEAST32_MAX;
6418 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6419 uint_least64_t d4max = UINT_LEAST64_MAX;
6420 int_fast8_t e1 = INT_FAST8_MAX;
6421 int_fast8_t e1min = INT_FAST8_MIN;
6422 int_fast16_t e2 = INT_FAST16_MAX;
6423 int_fast16_t e2min = INT_FAST16_MIN;
6424 int_fast32_t e3 = INT_FAST32_MAX;
6425 int_fast32_t e3min = INT_FAST32_MIN;
6426 int_fast64_t e4 = INT_FAST64_MAX;
6427 int_fast64_t e4min = INT_FAST64_MIN;
6428 uint_fast8_t f1 = UINT_FAST8_MAX;
6429 uint_fast16_t f2 = UINT_FAST16_MAX;
6430 uint_fast32_t f3 = UINT_FAST32_MAX;
6431 uint_fast64_t f4 = UINT_FAST64_MAX;
6432 #ifdef INTPTR_MAX
6433 intptr_t g = INTPTR_MAX;
6434 intptr_t gmin = INTPTR_MIN;
6435 #endif
6436 #ifdef UINTPTR_MAX
6437 uintptr_t h = UINTPTR_MAX;
6438 #endif
6439 intmax_t i = INTMAX_MAX;
6440 uintmax_t j = UINTMAX_MAX;
6441
6442 #include <limits.h> /* for CHAR_BIT */
6443 #define TYPE_MINIMUM(t) \
6444   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6445 #define TYPE_MAXIMUM(t) \
6446   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6447 struct s {
6448   int check_PTRDIFF:
6449       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6450       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6451       ? 1 : -1;
6452   /* Detect bug in FreeBSD 6.0 / ia64.  */
6453   int check_SIG_ATOMIC:
6454       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6455       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6456       ? 1 : -1;
6457   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6458   int check_WCHAR:
6459       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6460       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6461       ? 1 : -1;
6462   /* Detect bug in mingw.  */
6463   int check_WINT:
6464       WINT_MIN == TYPE_MINIMUM (wint_t)
6465       && WINT_MAX == TYPE_MAXIMUM (wint_t)
6466       ? 1 : -1;
6467
6468   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
6469   int check_UINT8_C:
6470         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6471   int check_UINT16_C:
6472         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6473
6474   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
6475 #ifdef UINT8_MAX
6476   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6477 #endif
6478 #ifdef UINT16_MAX
6479   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6480 #endif
6481 #ifdef UINT32_MAX
6482   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6483 #endif
6484 #ifdef UINT64_MAX
6485   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6486 #endif
6487   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6488   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6489   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6490   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6491   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6492   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6493   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6494   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6495   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6496   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6497   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6498 };
6499
6500 int
6501 main ()
6502 {
6503
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 if ac_fn_c_try_compile "$LINENO"; then :
6509                                                     if test "$cross_compiling" = yes; then :
6510                  gl_cv_header_working_stdint_h=yes
6511
6512 else
6513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h.  */
6515
6516
6517 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6518 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6519 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6520 #include <stdint.h>
6521
6522
6523   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6524      included before <wchar.h>.  */
6525   #include <stddef.h>
6526   #include <signal.h>
6527   #if HAVE_WCHAR_H
6528   # include <stdio.h>
6529   # include <time.h>
6530   # include <wchar.h>
6531   #endif
6532
6533
6534 #include <stdio.h>
6535 #include <string.h>
6536 #define MVAL(macro) MVAL1(macro)
6537 #define MVAL1(expression) #expression
6538 static const char *macro_values[] =
6539   {
6540 #ifdef INT8_MAX
6541     MVAL (INT8_MAX),
6542 #endif
6543 #ifdef INT16_MAX
6544     MVAL (INT16_MAX),
6545 #endif
6546 #ifdef INT32_MAX
6547     MVAL (INT32_MAX),
6548 #endif
6549 #ifdef INT64_MAX
6550     MVAL (INT64_MAX),
6551 #endif
6552 #ifdef UINT8_MAX
6553     MVAL (UINT8_MAX),
6554 #endif
6555 #ifdef UINT16_MAX
6556     MVAL (UINT16_MAX),
6557 #endif
6558 #ifdef UINT32_MAX
6559     MVAL (UINT32_MAX),
6560 #endif
6561 #ifdef UINT64_MAX
6562     MVAL (UINT64_MAX),
6563 #endif
6564     NULL
6565   };
6566
6567 int
6568 main ()
6569 {
6570
6571   const char **mv;
6572   for (mv = macro_values; *mv != NULL; mv++)
6573     {
6574       const char *value = *mv;
6575       /* Test whether it looks like a cast expression.  */
6576       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6577           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6578           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6579           || strncmp (value, "((int)"/*)*/, 6) == 0
6580           || strncmp (value, "((signed short)"/*)*/, 15) == 0
6581           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6582         return 1;
6583     }
6584   return 0;
6585
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 if ac_fn_c_try_run "$LINENO"; then :
6591   gl_cv_header_working_stdint_h=yes
6592 fi
6593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6594   conftest.$ac_objext conftest.beam conftest.$ac_ext
6595 fi
6596
6597
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600
6601 fi
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6603 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6604   fi
6605   if test "$gl_cv_header_working_stdint_h" = yes; then
6606     STDINT_H=
6607   else
6608             for ac_header in sys/inttypes.h sys/bitypes.h
6609 do :
6610   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6611 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6612 eval as_val=\$$as_ac_Header
6613    if test "x$as_val" = x""yes; then :
6614   cat >>confdefs.h <<_ACEOF
6615 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6616 _ACEOF
6617
6618 fi
6619
6620 done
6621
6622     if test $ac_cv_header_sys_inttypes_h = yes; then
6623       HAVE_SYS_INTTYPES_H=1
6624     else
6625       HAVE_SYS_INTTYPES_H=0
6626     fi
6627
6628     if test $ac_cv_header_sys_bitypes_h = yes; then
6629       HAVE_SYS_BITYPES_H=1
6630     else
6631       HAVE_SYS_BITYPES_H=0
6632     fi
6633
6634
6635
6636   :
6637
6638
6639
6640
6641
6642
6643
6644
6645   if test $APPLE_UNIVERSAL_BUILD = 0; then
6646
6647
6648   for gltype in ptrdiff_t size_t ; do
6649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6650 $as_echo_n "checking for bit size of $gltype... " >&6; }
6651 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6652   $as_echo_n "(cached) " >&6
6653 else
6654   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6655   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6656      included before <wchar.h>.  */
6657   #include <stddef.h>
6658   #include <signal.h>
6659   #if HAVE_WCHAR_H
6660   # include <stdio.h>
6661   # include <time.h>
6662   # include <wchar.h>
6663   #endif
6664
6665 #include <limits.h>"; then :
6666
6667 else
6668   result=unknown
6669 fi
6670
6671        eval gl_cv_bitsizeof_${gltype}=\$result
6672
6673 fi
6674 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6675                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6676 $as_echo "$ac_res" >&6; }
6677     eval result=\$gl_cv_bitsizeof_${gltype}
6678     if test $result = unknown; then
6679                                                 result=0
6680     fi
6681     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6682     cat >>confdefs.h <<_ACEOF
6683 #define BITSIZEOF_${GLTYPE} $result
6684 _ACEOF
6685
6686     eval BITSIZEOF_${GLTYPE}=\$result
6687   done
6688
6689
6690   fi
6691
6692
6693   for gltype in sig_atomic_t wchar_t wint_t ; do
6694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6695 $as_echo_n "checking for bit size of $gltype... " >&6; }
6696 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6697   $as_echo_n "(cached) " >&6
6698 else
6699   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6700   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6701      included before <wchar.h>.  */
6702   #include <stddef.h>
6703   #include <signal.h>
6704   #if HAVE_WCHAR_H
6705   # include <stdio.h>
6706   # include <time.h>
6707   # include <wchar.h>
6708   #endif
6709
6710 #include <limits.h>"; then :
6711
6712 else
6713   result=unknown
6714 fi
6715
6716        eval gl_cv_bitsizeof_${gltype}=\$result
6717
6718 fi
6719 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6720                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6721 $as_echo "$ac_res" >&6; }
6722     eval result=\$gl_cv_bitsizeof_${gltype}
6723     if test $result = unknown; then
6724                                                 result=0
6725     fi
6726     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6727     cat >>confdefs.h <<_ACEOF
6728 #define BITSIZEOF_${GLTYPE} $result
6729 _ACEOF
6730
6731     eval BITSIZEOF_${GLTYPE}=\$result
6732   done
6733
6734
6735
6736
6737   for gltype in sig_atomic_t wchar_t wint_t ; do
6738     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6739 $as_echo_n "checking whether $gltype is signed... " >&6; }
6740 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6741   $as_echo_n "(cached) " >&6
6742 else
6743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h.  */
6745
6746   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6747      included before <wchar.h>.  */
6748   #include <stddef.h>
6749   #include <signal.h>
6750   #if HAVE_WCHAR_H
6751   # include <stdio.h>
6752   # include <time.h>
6753   # include <wchar.h>
6754   #endif
6755
6756             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6757 int
6758 main ()
6759 {
6760
6761   ;
6762   return 0;
6763 }
6764 _ACEOF
6765 if ac_fn_c_try_compile "$LINENO"; then :
6766   result=yes
6767 else
6768   result=no
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6771        eval gl_cv_type_${gltype}_signed=\$result
6772
6773 fi
6774 eval ac_res=\$gl_cv_type_${gltype}_signed
6775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6776 $as_echo "$ac_res" >&6; }
6777     eval result=\$gl_cv_type_${gltype}_signed
6778     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6779     if test "$result" = yes; then
6780       cat >>confdefs.h <<_ACEOF
6781 #define HAVE_SIGNED_${GLTYPE} 1
6782 _ACEOF
6783
6784       eval HAVE_SIGNED_${GLTYPE}=1
6785     else
6786       eval HAVE_SIGNED_${GLTYPE}=0
6787     fi
6788   done
6789
6790
6791   gl_cv_type_ptrdiff_t_signed=yes
6792   gl_cv_type_size_t_signed=no
6793   if test $APPLE_UNIVERSAL_BUILD = 0; then
6794
6795
6796   for gltype in ptrdiff_t size_t ; do
6797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6798 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6799 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6800   $as_echo_n "(cached) " >&6
6801 else
6802   eval gl_cv_type_${gltype}_suffix=no
6803        eval result=\$gl_cv_type_${gltype}_signed
6804        if test "$result" = yes; then
6805          glsufu=
6806        else
6807          glsufu=u
6808        fi
6809        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6810          case $glsuf in
6811            '')  gltype1='int';;
6812            l)   gltype1='long int';;
6813            ll)  gltype1='long long int';;
6814            i64) gltype1='__int64';;
6815            u)   gltype1='unsigned int';;
6816            ul)  gltype1='unsigned long int';;
6817            ull) gltype1='unsigned long long int';;
6818            ui64)gltype1='unsigned __int64';;
6819          esac
6820          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h.  */
6822
6823   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6824      included before <wchar.h>.  */
6825   #include <stddef.h>
6826   #include <signal.h>
6827   #if HAVE_WCHAR_H
6828   # include <stdio.h>
6829   # include <time.h>
6830   # include <wchar.h>
6831   #endif
6832
6833               extern $gltype foo;
6834               extern $gltype1 foo;
6835 int
6836 main ()
6837 {
6838
6839   ;
6840   return 0;
6841 }
6842 _ACEOF
6843 if ac_fn_c_try_compile "$LINENO"; then :
6844   eval gl_cv_type_${gltype}_suffix=\$glsuf
6845 fi
6846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6847          eval result=\$gl_cv_type_${gltype}_suffix
6848          test "$result" != no && break
6849        done
6850 fi
6851 eval ac_res=\$gl_cv_type_${gltype}_suffix
6852                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6853 $as_echo "$ac_res" >&6; }
6854     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6855     eval result=\$gl_cv_type_${gltype}_suffix
6856     test "$result" = no && result=
6857     eval ${GLTYPE}_SUFFIX=\$result
6858     cat >>confdefs.h <<_ACEOF
6859 #define ${GLTYPE}_SUFFIX $result
6860 _ACEOF
6861
6862   done
6863
6864
6865   fi
6866
6867
6868   for gltype in sig_atomic_t wchar_t wint_t ; do
6869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6870 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6871 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6872   $as_echo_n "(cached) " >&6
6873 else
6874   eval gl_cv_type_${gltype}_suffix=no
6875        eval result=\$gl_cv_type_${gltype}_signed
6876        if test "$result" = yes; then
6877          glsufu=
6878        else
6879          glsufu=u
6880        fi
6881        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6882          case $glsuf in
6883            '')  gltype1='int';;
6884            l)   gltype1='long int';;
6885            ll)  gltype1='long long int';;
6886            i64) gltype1='__int64';;
6887            u)   gltype1='unsigned int';;
6888            ul)  gltype1='unsigned long int';;
6889            ull) gltype1='unsigned long long int';;
6890            ui64)gltype1='unsigned __int64';;
6891          esac
6892          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h.  */
6894
6895   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6896      included before <wchar.h>.  */
6897   #include <stddef.h>
6898   #include <signal.h>
6899   #if HAVE_WCHAR_H
6900   # include <stdio.h>
6901   # include <time.h>
6902   # include <wchar.h>
6903   #endif
6904
6905               extern $gltype foo;
6906               extern $gltype1 foo;
6907 int
6908 main ()
6909 {
6910
6911   ;
6912   return 0;
6913 }
6914 _ACEOF
6915 if ac_fn_c_try_compile "$LINENO"; then :
6916   eval gl_cv_type_${gltype}_suffix=\$glsuf
6917 fi
6918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6919          eval result=\$gl_cv_type_${gltype}_suffix
6920          test "$result" != no && break
6921        done
6922 fi
6923 eval ac_res=\$gl_cv_type_${gltype}_suffix
6924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6925 $as_echo "$ac_res" >&6; }
6926     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6927     eval result=\$gl_cv_type_${gltype}_suffix
6928     test "$result" = no && result=
6929     eval ${GLTYPE}_SUFFIX=\$result
6930     cat >>confdefs.h <<_ACEOF
6931 #define ${GLTYPE}_SUFFIX $result
6932 _ACEOF
6933
6934   done
6935
6936
6937
6938     STDINT_H=stdint.h
6939   fi
6940
6941
6942   # Code from module string:
6943
6944
6945
6946   # Code from module warn-on-use:
6947   # Code from module wchar:
6948
6949
6950
6951
6952   :
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962   :
6963
6964
6965
6966
6967
6968
6969
6970      if test $gl_cv_have_include_next = yes; then
6971        gl_cv_next_wchar_h='<'wchar.h'>'
6972      else
6973        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6974 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6975 if test "${gl_cv_next_wchar_h+set}" = set; then :
6976   $as_echo_n "(cached) " >&6
6977 else
6978
6979           if test $ac_cv_header_wchar_h = yes; then
6980             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h.  */
6982 #include <wchar.h>
6983
6984 _ACEOF
6985                                                                                                 case "$host_os" in
6986               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6987               *)    gl_absname_cpp="$ac_cpp" ;;
6988             esac
6989                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6990                sed -n '\#/wchar.h#{
6991                  s#.*"\(.*/wchar.h\)".*#\1#
6992                  s#^/[^/]#//&#
6993                  p
6994                  q
6995                }'`'"'
6996           else
6997             gl_cv_next_wchar_h='<'wchar.h'>'
6998           fi
6999
7000 fi
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7002 $as_echo "$gl_cv_next_wchar_h" >&6; }
7003      fi
7004      NEXT_WCHAR_H=$gl_cv_next_wchar_h
7005
7006      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7007        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7008        gl_next_as_first_directive='<'wchar.h'>'
7009      else
7010        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7011        gl_next_as_first_directive=$gl_cv_next_wchar_h
7012      fi
7013      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7014
7015
7016
7017   if test $ac_cv_header_wchar_h = yes; then
7018     HAVE_WCHAR_H=1
7019   else
7020     HAVE_WCHAR_H=0
7021   fi
7022
7023
7024
7025   if test $gt_cv_c_wint_t = yes; then
7026     HAVE_WINT_T=1
7027   else
7028     HAVE_WINT_T=0
7029   fi
7030
7031
7032
7033     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
7034     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7036 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7037 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7038   $as_echo_n "(cached) " >&6
7039 else
7040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h.  */
7042
7043 /* Some systems require additional headers.  */
7044 #ifndef __GLIBC__
7045 # include <stddef.h>
7046 # include <stdio.h>
7047 # include <time.h>
7048 #endif
7049 #include <wchar.h>
7050
7051 int
7052 main ()
7053 {
7054 #undef $gl_func
7055   (void) $gl_func;
7056   ;
7057   return 0;
7058 }
7059 _ACEOF
7060 if ac_fn_c_try_compile "$LINENO"; then :
7061   eval "$as_gl_Symbol=yes"
7062 else
7063   eval "$as_gl_Symbol=no"
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 fi
7067 eval ac_res=\$$as_gl_Symbol
7068                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7069 $as_echo "$ac_res" >&6; }
7070      eval as_val=\$$as_gl_Symbol
7071    if test "x$as_val" = x""yes; then :
7072   cat >>confdefs.h <<_ACEOF
7073 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7074 _ACEOF
7075
7076                      eval ac_cv_have_decl_$gl_func=yes
7077 fi
7078       done
7079
7080
7081   # Code from module dummy:
7082   # End of code from modules
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092   gltests_libdeps=
7093   gltests_ltlibdeps=
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103   gl_source_base='tests'
7104   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
7105
7106   gl_module_indicator_condition=$gltests_WITNESS
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116   LIBGNU_LIBDEPS="$gl_libdeps"
7117
7118   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7119
7120
7121
7122 # For Makefile dependencies.
7123 GNULIB_STDINT_H=
7124 if test x"$STDINT_H" != x; then
7125   GNULIB_STDINT_H=gnulib/$STDINT_H
7126 fi
7127
7128
7129 PACKAGE=gdb
7130
7131 cat >>confdefs.h <<_ACEOF
7132 #define PACKAGE "$PACKAGE"
7133 _ACEOF
7134
7135
7136
7137 # GDB does not use automake, but gnulib does.  This line lets us
7138 # generate its Makefile.in.
7139 am__api_version='1.11'
7140
7141 # Find a good install program.  We prefer a C program (faster),
7142 # so one script is as good as another.  But avoid the broken or
7143 # incompatible versions:
7144 # SysV /etc/install, /usr/sbin/install
7145 # SunOS /usr/etc/install
7146 # IRIX /sbin/install
7147 # AIX /bin/install
7148 # AmigaOS /C/install, which installs bootblocks on floppy discs
7149 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7150 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7151 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7152 # OS/2's system install, which has a completely different semantic
7153 # ./install, which can be erroneously created by make from ./install.sh.
7154 # Reject install programs that cannot install multiple files.
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7156 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7157 if test -z "$INSTALL"; then
7158 if test "${ac_cv_path_install+set}" = set; then :
7159   $as_echo_n "(cached) " >&6
7160 else
7161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7163 do
7164   IFS=$as_save_IFS
7165   test -z "$as_dir" && as_dir=.
7166     # Account for people who put trailing slashes in PATH elements.
7167 case $as_dir/ in #((
7168   ./ | .// | /[cC]/* | \
7169   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7170   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7171   /usr/ucb/* ) ;;
7172   *)
7173     # OSF1 and SCO ODT 3.0 have their own names for install.
7174     # Don't use installbsd from OSF since it installs stuff as root
7175     # by default.
7176     for ac_prog in ginstall scoinst install; do
7177       for ac_exec_ext in '' $ac_executable_extensions; do
7178         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7179           if test $ac_prog = install &&
7180             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7181             # AIX install.  It has an incompatible calling convention.
7182             :
7183           elif test $ac_prog = install &&
7184             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7185             # program-specific install script used by HP pwplus--don't use.
7186             :
7187           else
7188             rm -rf conftest.one conftest.two conftest.dir
7189             echo one > conftest.one
7190             echo two > conftest.two
7191             mkdir conftest.dir
7192             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7193               test -s conftest.one && test -s conftest.two &&
7194               test -s conftest.dir/conftest.one &&
7195               test -s conftest.dir/conftest.two
7196             then
7197               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7198               break 3
7199             fi
7200           fi
7201         fi
7202       done
7203     done
7204     ;;
7205 esac
7206
7207   done
7208 IFS=$as_save_IFS
7209
7210 rm -rf conftest.one conftest.two conftest.dir
7211
7212 fi
7213   if test "${ac_cv_path_install+set}" = set; then
7214     INSTALL=$ac_cv_path_install
7215   else
7216     # As a last resort, use the slow shell script.  Don't cache a
7217     # value for INSTALL within a source directory, because that will
7218     # break other packages using the cache if that directory is
7219     # removed, or if the value is a relative name.
7220     INSTALL=$ac_install_sh
7221   fi
7222 fi
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7224 $as_echo "$INSTALL" >&6; }
7225
7226 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7227 # It thinks the first close brace ends the variable substitution.
7228 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7229
7230 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7231
7232 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7233
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7235 $as_echo_n "checking whether build environment is sane... " >&6; }
7236 # Just in case
7237 sleep 1
7238 echo timestamp > conftest.file
7239 # Reject unsafe characters in $srcdir or the absolute working directory
7240 # name.  Accept space and tab only in the latter.
7241 am_lf='
7242 '
7243 case `pwd` in
7244   *[\\\"\#\$\&\'\`$am_lf]*)
7245     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7246 esac
7247 case $srcdir in
7248   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
7249     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7250 esac
7251
7252 # Do `set' in a subshell so we don't clobber the current shell's
7253 # arguments.  Must try -L first in case configure is actually a
7254 # symlink; some systems play weird games with the mod time of symlinks
7255 # (eg FreeBSD returns the mod time of the symlink's containing
7256 # directory).
7257 if (
7258    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7259    if test "$*" = "X"; then
7260       # -L didn't work.
7261       set X `ls -t "$srcdir/configure" conftest.file`
7262    fi
7263    rm -f conftest.file
7264    if test "$*" != "X $srcdir/configure conftest.file" \
7265       && test "$*" != "X conftest.file $srcdir/configure"; then
7266
7267       # If neither matched, then we have a broken ls.  This can happen
7268       # if, for instance, CONFIG_SHELL is bash and it inherits a
7269       # broken ls alias from the environment.  This has actually
7270       # happened.  Such a system could not be considered "sane".
7271       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
7272 alias in your environment" "$LINENO" 5
7273    fi
7274
7275    test "$2" = conftest.file
7276    )
7277 then
7278    # Ok.
7279    :
7280 else
7281    as_fn_error "newly created file is older than distributed files!
7282 Check your system clock" "$LINENO" 5
7283 fi
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7285 $as_echo "yes" >&6; }
7286 test "$program_prefix" != NONE &&
7287   program_transform_name="s&^&$program_prefix&;$program_transform_name"
7288 # Use a double $ so make ignores it.
7289 test "$program_suffix" != NONE &&
7290   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7291 # Double any \ or $.
7292 # By default was `s,x,x', remove it if useless.
7293 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7294 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7295
7296 # expand $ac_aux_dir to an absolute path
7297 am_aux_dir=`cd $ac_aux_dir && pwd`
7298
7299 if test x"${MISSING+set}" != xset; then
7300   case $am_aux_dir in
7301   *\ * | *\     *)
7302     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7303   *)
7304     MISSING="\${SHELL} $am_aux_dir/missing" ;;
7305   esac
7306 fi
7307 # Use eval to expand $SHELL
7308 if eval "$MISSING --run true"; then
7309   am_missing_run="$MISSING --run "
7310 else
7311   am_missing_run=
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7313 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7314 fi
7315
7316 if test x"${install_sh}" != xset; then
7317   case $am_aux_dir in
7318   *\ * | *\     *)
7319     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7320   *)
7321     install_sh="\${SHELL} $am_aux_dir/install-sh"
7322   esac
7323 fi
7324
7325 # Installed binaries are usually stripped using `strip' when the user
7326 # run `make install-strip'.  However `strip' might not be the right
7327 # tool to use in cross-compilation environments, therefore Automake
7328 # will honor the `STRIP' environment variable to overrule this program.
7329 if test "$cross_compiling" != no; then
7330   if test -n "$ac_tool_prefix"; then
7331   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7332 set dummy ${ac_tool_prefix}strip; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if test "${ac_cv_prog_STRIP+set}" = set; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if test -n "$STRIP"; then
7339   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7348     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 STRIP=$ac_cv_prog_STRIP
7359 if test -n "$STRIP"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7361 $as_echo "$STRIP" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367
7368 fi
7369 if test -z "$ac_cv_prog_STRIP"; then
7370   ac_ct_STRIP=$STRIP
7371   # Extract the first word of "strip", so it can be a program name with args.
7372 set dummy strip; ac_word=$2
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 $as_echo_n "checking for $ac_word... " >&6; }
7375 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7376   $as_echo_n "(cached) " >&6
7377 else
7378   if test -n "$ac_ct_STRIP"; then
7379   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7380 else
7381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 for as_dir in $PATH
7383 do
7384   IFS=$as_save_IFS
7385   test -z "$as_dir" && as_dir=.
7386     for ac_exec_ext in '' $ac_executable_extensions; do
7387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7388     ac_cv_prog_ac_ct_STRIP="strip"
7389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7390     break 2
7391   fi
7392 done
7393   done
7394 IFS=$as_save_IFS
7395
7396 fi
7397 fi
7398 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7399 if test -n "$ac_ct_STRIP"; then
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7401 $as_echo "$ac_ct_STRIP" >&6; }
7402 else
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404 $as_echo "no" >&6; }
7405 fi
7406
7407   if test "x$ac_ct_STRIP" = x; then
7408     STRIP=":"
7409   else
7410     case $cross_compiling:$ac_tool_warned in
7411 yes:)
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7414 ac_tool_warned=yes ;;
7415 esac
7416     STRIP=$ac_ct_STRIP
7417   fi
7418 else
7419   STRIP="$ac_cv_prog_STRIP"
7420 fi
7421
7422 fi
7423 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7424
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7426 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7427 if test -z "$MKDIR_P"; then
7428   if test "${ac_cv_path_mkdir+set}" = set; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7433 do
7434   IFS=$as_save_IFS
7435   test -z "$as_dir" && as_dir=.
7436     for ac_prog in mkdir gmkdir; do
7437          for ac_exec_ext in '' $ac_executable_extensions; do
7438            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7439            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7440              'mkdir (GNU coreutils) '* | \
7441              'mkdir (coreutils) '* | \
7442              'mkdir (fileutils) '4.1*)
7443                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7444                break 3;;
7445            esac
7446          done
7447        done
7448   done
7449 IFS=$as_save_IFS
7450
7451 fi
7452
7453   if test "${ac_cv_path_mkdir+set}" = set; then
7454     MKDIR_P="$ac_cv_path_mkdir -p"
7455   else
7456     # As a last resort, use the slow shell script.  Don't cache a
7457     # value for MKDIR_P within a source directory, because that will
7458     # break other packages using the cache if that directory is
7459     # removed, or if the value is a relative name.
7460     test -d ./--version && rmdir ./--version
7461     MKDIR_P="$ac_install_sh -d"
7462   fi
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7465 $as_echo "$MKDIR_P" >&6; }
7466
7467
7468 mkdir_p="$MKDIR_P"
7469 case $mkdir_p in
7470   [\\/$]* | ?:[\\/]*) ;;
7471   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7472 esac
7473
7474 for ac_prog in gawk mawk nawk awk
7475 do
7476   # Extract the first word of "$ac_prog", so it can be a program name with args.
7477 set dummy $ac_prog; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if test "${ac_cv_prog_AWK+set}" = set; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   if test -n "$AWK"; then
7484   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493     ac_cv_prog_AWK="$ac_prog"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 AWK=$ac_cv_prog_AWK
7504 if test -n "$AWK"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7506 $as_echo "$AWK" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512
7513   test -n "$AWK" && break
7514 done
7515
7516 ac_config_commands="$ac_config_commands depfiles"
7517
7518
7519 am_make=${MAKE-make}
7520 cat > confinc << 'END'
7521 am__doit:
7522         @echo this is the am__doit target
7523 .PHONY: am__doit
7524 END
7525 # If we don't find an include directive, just comment out the code.
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7527 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7528 am__include="#"
7529 am__quote=
7530 _am_result=none
7531 # First try GNU make style include.
7532 echo "include confinc" > confmf
7533 # Ignore all kinds of additional output from `make'.
7534 case `$am_make -s -f confmf 2> /dev/null` in #(
7535 *the\ am__doit\ target*)
7536   am__include=include
7537   am__quote=
7538   _am_result=GNU
7539   ;;
7540 esac
7541 # Now try BSD make style include.
7542 if test "$am__include" = "#"; then
7543    echo '.include "confinc"' > confmf
7544    case `$am_make -s -f confmf 2> /dev/null` in #(
7545    *the\ am__doit\ target*)
7546      am__include=.include
7547      am__quote="\""
7548      _am_result=BSD
7549      ;;
7550    esac
7551 fi
7552
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7555 $as_echo "$_am_result" >&6; }
7556 rm -f confinc confmf
7557
7558 # Check whether --enable-dependency-tracking was given.
7559 if test "${enable_dependency_tracking+set}" = set; then :
7560   enableval=$enable_dependency_tracking;
7561 fi
7562
7563 if test "x$enable_dependency_tracking" != xno; then
7564   am_depcomp="$ac_aux_dir/depcomp"
7565   AMDEPBACKSLASH='\'
7566 fi
7567  if test "x$enable_dependency_tracking" != xno; then
7568   AMDEP_TRUE=
7569   AMDEP_FALSE='#'
7570 else
7571   AMDEP_TRUE='#'
7572   AMDEP_FALSE=
7573 fi
7574
7575
7576 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7577   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7578   # is not polluted with repeated "-I."
7579   am__isrc=' -I$(srcdir)'
7580   # test to see if srcdir already configured
7581   if test -f $srcdir/config.status; then
7582     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7583   fi
7584 fi
7585
7586 # test whether we have cygpath
7587 if test -z "$CYGPATH_W"; then
7588   if (cygpath --version) >/dev/null 2>/dev/null; then
7589     CYGPATH_W='cygpath -w'
7590   else
7591     CYGPATH_W=echo
7592   fi
7593 fi
7594
7595
7596 # Define the identity of the package.
7597  PACKAGE=gdb
7598  VERSION=UNUSED-VERSION
7599
7600
7601 # Some tools Automake needs.
7602
7603 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7604
7605
7606 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7607
7608
7609 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7610
7611
7612 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7613
7614
7615 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7616
7617 # We need awk for the "check" target.  The system "awk" is bad on
7618 # some platforms.
7619 # Always define AMTAR for backward compatibility.
7620
7621 AMTAR=${AMTAR-"${am_missing_run}tar"}
7622
7623 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7624
7625
7626
7627
7628 depcc="$CC"   am_compiler_list=
7629
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7631 $as_echo_n "checking dependency style of $depcc... " >&6; }
7632 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7633   $as_echo_n "(cached) " >&6
7634 else
7635   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7636   # We make a subdir and do the tests there.  Otherwise we can end up
7637   # making bogus files that we don't know about and never remove.  For
7638   # instance it was reported that on HP-UX the gcc test will end up
7639   # making a dummy file named `D' -- because `-MD' means `put the output
7640   # in D'.
7641   mkdir conftest.dir
7642   # Copy depcomp to subdir because otherwise we won't find it if we're
7643   # using a relative directory.
7644   cp "$am_depcomp" conftest.dir
7645   cd conftest.dir
7646   # We will build objects and dependencies in a subdirectory because
7647   # it helps to detect inapplicable dependency modes.  For instance
7648   # both Tru64's cc and ICC support -MD to output dependencies as a
7649   # side effect of compilation, but ICC will put the dependencies in
7650   # the current directory while Tru64 will put them in the object
7651   # directory.
7652   mkdir sub
7653
7654   am_cv_CC_dependencies_compiler_type=none
7655   if test "$am_compiler_list" = ""; then
7656      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7657   fi
7658   am__universal=false
7659   case " $depcc " in #(
7660      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7661      esac
7662
7663   for depmode in $am_compiler_list; do
7664     # Setup a source with many dependencies, because some compilers
7665     # like to wrap large dependency lists on column 80 (with \), and
7666     # we should not choose a depcomp mode which is confused by this.
7667     #
7668     # We need to recreate these files for each test, as the compiler may
7669     # overwrite some of them when testing with obscure command lines.
7670     # This happens at least with the AIX C compiler.
7671     : > sub/conftest.c
7672     for i in 1 2 3 4 5 6; do
7673       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7674       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7675       # Solaris 8's {/usr,}/bin/sh.
7676       touch sub/conftst$i.h
7677     done
7678     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7679
7680     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7681     # mode.  It turns out that the SunPro C++ compiler does not properly
7682     # handle `-M -o', and we need to detect this.  Also, some Intel
7683     # versions had trouble with output in subdirs
7684     am__obj=sub/conftest.${OBJEXT-o}
7685     am__minus_obj="-o $am__obj"
7686     case $depmode in
7687     gcc)
7688       # This depmode causes a compiler race in universal mode.
7689       test "$am__universal" = false || continue
7690       ;;
7691     nosideeffect)
7692       # after this tag, mechanisms are not by side-effect, so they'll
7693       # only be used when explicitly requested
7694       if test "x$enable_dependency_tracking" = xyes; then
7695         continue
7696       else
7697         break
7698       fi
7699       ;;
7700     msvisualcpp | msvcmsys)
7701       # This compiler won't grok `-c -o', but also, the minuso test has
7702       # not run yet.  These depmodes are late enough in the game, and
7703       # so weak that their functioning should not be impacted.
7704       am__obj=conftest.${OBJEXT-o}
7705       am__minus_obj=
7706       ;;
7707     none) break ;;
7708     esac
7709     if depmode=$depmode \
7710        source=sub/conftest.c object=$am__obj \
7711        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7712        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7713          >/dev/null 2>conftest.err &&
7714        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7715        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7716        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7717        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7718       # icc doesn't choke on unknown options, it will just issue warnings
7719       # or remarks (even with -Werror).  So we grep stderr for any message
7720       # that says an option was ignored or not supported.
7721       # When given -MP, icc 7.0 and 7.1 complain thusly:
7722       #   icc: Command line warning: ignoring option '-M'; no argument required
7723       # The diagnosis changed in icc 8.0:
7724       #   icc: Command line remark: option '-MP' not supported
7725       if (grep 'ignoring option' conftest.err ||
7726           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7727         am_cv_CC_dependencies_compiler_type=$depmode
7728         break
7729       fi
7730     fi
7731   done
7732
7733   cd ..
7734   rm -rf conftest.dir
7735 else
7736   am_cv_CC_dependencies_compiler_type=none
7737 fi
7738
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7741 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7743
7744  if
7745   test "x$enable_dependency_tracking" != xno \
7746   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7747   am__fastdepCC_TRUE=
7748   am__fastdepCC_FALSE='#'
7749 else
7750   am__fastdepCC_TRUE='#'
7751   am__fastdepCC_FALSE=
7752 fi
7753
7754
7755
7756
7757
7758
7759 # Check whether --with-separate-debug-dir was given.
7760 if test "${with_separate_debug_dir+set}" = set; then :
7761   withval=$with_separate_debug_dir;
7762     DEBUGDIR=$withval
7763 else
7764   DEBUGDIR=${libdir}/debug
7765 fi
7766
7767
7768   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7769   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7770   ac_define_dir=`eval echo $DEBUGDIR`
7771   ac_define_dir=`eval echo $ac_define_dir`
7772
7773 cat >>confdefs.h <<_ACEOF
7774 #define DEBUGDIR "$ac_define_dir"
7775 _ACEOF
7776
7777
7778
7779   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7780      if test "x$prefix" = xNONE; then
7781         test_prefix=/usr/local
7782      else
7783         test_prefix=$prefix
7784      fi
7785   else
7786      test_prefix=$exec_prefix
7787   fi
7788   value=0
7789   case ${ac_define_dir} in
7790      "${test_prefix}"|"${test_prefix}/"*|\
7791         '${exec_prefix}'|'${exec_prefix}/'*)
7792      value=1
7793      ;;
7794   esac
7795
7796 cat >>confdefs.h <<_ACEOF
7797 #define DEBUGDIR_RELOCATABLE $value
7798 _ACEOF
7799
7800
7801
7802 # GDB's datadir relocation
7803
7804
7805
7806 # Check whether --with-gdb-datadir was given.
7807 if test "${with_gdb_datadir+set}" = set; then :
7808   withval=$with_gdb_datadir;
7809     GDB_DATADIR=$withval
7810 else
7811   GDB_DATADIR=${datadir}/gdb
7812 fi
7813
7814
7815   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7816   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7817   ac_define_dir=`eval echo $GDB_DATADIR`
7818   ac_define_dir=`eval echo $ac_define_dir`
7819
7820 cat >>confdefs.h <<_ACEOF
7821 #define GDB_DATADIR "$ac_define_dir"
7822 _ACEOF
7823
7824
7825
7826   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7827      if test "x$prefix" = xNONE; then
7828         test_prefix=/usr/local
7829      else
7830         test_prefix=$prefix
7831      fi
7832   else
7833      test_prefix=$exec_prefix
7834   fi
7835   value=0
7836   case ${ac_define_dir} in
7837      "${test_prefix}"|"${test_prefix}/"*|\
7838         '${exec_prefix}'|'${exec_prefix}/'*)
7839      value=1
7840      ;;
7841   esac
7842
7843 cat >>confdefs.h <<_ACEOF
7844 #define GDB_DATADIR_RELOCATABLE $value
7845 _ACEOF
7846
7847
7848
7849
7850 # Check whether --with-relocated-sources was given.
7851 if test "${with_relocated_sources+set}" = set; then :
7852   withval=$with_relocated_sources; reloc_srcdir="${withval}"
7853
7854   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7855   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7856   ac_define_dir=`eval echo $reloc_srcdir`
7857   ac_define_dir=`eval echo $ac_define_dir`
7858
7859 cat >>confdefs.h <<_ACEOF
7860 #define RELOC_SRCDIR "$ac_define_dir"
7861 _ACEOF
7862
7863
7864
7865 fi
7866
7867
7868
7869
7870 subdirs="$subdirs doc testsuite"
7871
7872
7873 # Check whether to support alternative target configurations
7874 # Check whether --enable-targets was given.
7875 if test "${enable_targets+set}" = set; then :
7876   enableval=$enable_targets; case "${enableval}" in
7877   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7878             ;;
7879   no)       enable_targets= ;;
7880   *)        enable_targets=$enableval ;;
7881 esac
7882 fi
7883
7884
7885 # Check whether to enable 64-bit support on 32-bit hosts
7886 # Check whether --enable-64-bit-bfd was given.
7887 if test "${enable_64_bit_bfd+set}" = set; then :
7888   enableval=$enable_64_bit_bfd; case "${enableval}" in
7889   yes)  want64=true  ;;
7890   no)   want64=false ;;
7891   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7892 esac
7893 else
7894   want64=false
7895 fi
7896
7897 # Provide defaults for some variables set by the per-host and per-target
7898 # configuration.
7899 gdb_host_obs=posix-hdep.o
7900
7901 if test "${target}" = "${host}"; then
7902   gdb_native=yes
7903 else
7904   gdb_native=no
7905 fi
7906
7907 . $srcdir/configure.host
7908
7909 # Accumulate some settings from configure.tgt over all enabled targets
7910
7911 TARGET_OBS=
7912 all_targets=
7913
7914 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7915 do
7916   if test "$targ_alias" = "all"; then
7917     all_targets=true
7918   else
7919     # Canonicalize the secondary target names.
7920     result=`$ac_config_sub $targ_alias 2>/dev/null`
7921     if test -n "$result"; then
7922         targ=$result
7923     else
7924         targ=$targ_alias
7925     fi
7926
7927     . ${srcdir}/configure.tgt
7928
7929     if test -z "${gdb_target_obs}"; then :
7930   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7931 fi
7932
7933     # Target-specific object files
7934     for i in ${gdb_target_obs}; do
7935         case " $TARGET_OBS " in
7936         *" ${i} "*) ;;
7937         *)
7938           TARGET_OBS="$TARGET_OBS ${i}"
7939           ;;
7940         esac
7941     done
7942
7943     # Check whether this target needs 64-bit CORE_ADDR
7944     if test x${want64} = xfalse; then
7945       . ${srcdir}/../bfd/config.bfd
7946     fi
7947   fi
7948 done
7949
7950 if test x${all_targets} = xtrue; then
7951
7952   # We want all 64-bit targets if we either:
7953   #  - run on a 64-bit host  or
7954   #  - already require 64-bit support for some other target  or
7955   #  - the --enable-64-bit-bfd option was supplied
7956   # Otherwise we only support all 32-bit targets.
7957   #
7958   # NOTE: This test must be in sync with the corresponding
7959   #       tests in BFD!
7960
7961   if test x${want64} = xfalse; then
7962     # The cast to long int works around a bug in the HP C Compiler
7963 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7964 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7965 # This bug is HP SR number 8606223364.
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7967 $as_echo_n "checking size of long... " >&6; }
7968 if test "${ac_cv_sizeof_long+set}" = set; then :
7969   $as_echo_n "(cached) " >&6
7970 else
7971   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7972
7973 else
7974   if test "$ac_cv_type_long" = yes; then
7975      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7977 { as_fn_set_status 77
7978 as_fn_error "cannot compute sizeof (long)
7979 See \`config.log' for more details." "$LINENO" 5; }; }
7980    else
7981      ac_cv_sizeof_long=0
7982    fi
7983 fi
7984
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
7987 $as_echo "$ac_cv_sizeof_long" >&6; }
7988
7989
7990
7991 cat >>confdefs.h <<_ACEOF
7992 #define SIZEOF_LONG $ac_cv_sizeof_long
7993 _ACEOF
7994
7995
7996     if test "x${ac_cv_sizeof_long}" = "x8"; then
7997       want64=true
7998     fi
7999   fi
8000   if test x${want64} = xtrue; then
8001     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8002   else
8003     TARGET_OBS='$(ALL_TARGET_OBS)'
8004   fi
8005 fi
8006
8007
8008
8009 # For other settings, only the main target counts.
8010 gdb_sim=
8011 gdb_osabi=
8012 build_gdbserver=
8013 targ=$target; . ${srcdir}/configure.tgt
8014
8015 # Fetch the default architecture and default target vector from BFD.
8016 targ=$target; . $srcdir/../bfd/config.bfd
8017
8018 # We only want the first architecture, so strip off the others if
8019 # there is more than one.
8020 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8021
8022 if test "x$targ_archs" != x; then
8023
8024 cat >>confdefs.h <<_ACEOF
8025 #define DEFAULT_BFD_ARCH $targ_archs
8026 _ACEOF
8027
8028 fi
8029 if test "x$targ_defvec" != x; then
8030
8031 cat >>confdefs.h <<_ACEOF
8032 #define DEFAULT_BFD_VEC $targ_defvec
8033 _ACEOF
8034
8035 fi
8036
8037 # The CLI cannot be disabled yet, but may be in the future.
8038
8039 # Enable CLI.
8040 # Check whether --enable-gdbcli was given.
8041 if test "${enable_gdbcli+set}" = set; then :
8042   enableval=$enable_gdbcli; case $enableval in
8043     yes)
8044       ;;
8045     no)
8046       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8047     *)
8048       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8049   esac
8050 else
8051   enable_gdbcli=yes
8052 fi
8053
8054 if test x"$enable_gdbcli" = xyes; then
8055   if test -d $srcdir/cli; then
8056     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8057     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8058     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8059     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8060   fi
8061 fi
8062
8063 # Enable MI.
8064 # Check whether --enable-gdbmi was given.
8065 if test "${enable_gdbmi+set}" = set; then :
8066   enableval=$enable_gdbmi; case $enableval in
8067     yes | no)
8068       ;;
8069     *)
8070       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8071   esac
8072 else
8073   enable_gdbmi=yes
8074 fi
8075
8076 if test x"$enable_gdbmi" = xyes; then
8077   if test -d $srcdir/mi; then
8078     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8079     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8080     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8081     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8082   fi
8083 fi
8084
8085 # Enable TUI.
8086 # Check whether --enable-tui was given.
8087 if test "${enable_tui+set}" = set; then :
8088   enableval=$enable_tui; case $enableval in
8089     yes | no | auto)
8090       ;;
8091     *)
8092       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8093   esac
8094 else
8095   enable_tui=auto
8096 fi
8097
8098
8099 # Enable gdbtk.
8100 # Check whether --enable-gdbtk was given.
8101 if test "${enable_gdbtk+set}" = set; then :
8102   enableval=$enable_gdbtk; case $enableval in
8103     yes | no)
8104       ;;
8105     *)
8106       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8107   esac
8108 else
8109   if test -d $srcdir/gdbtk; then
8110     enable_gdbtk=yes
8111   else
8112     enable_gdbtk=no
8113   fi
8114 fi
8115
8116 # We unconditionally disable gdbtk tests on selected platforms.
8117 case $host_os in
8118   go32* | windows*)
8119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8120 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8121     enable_gdbtk=no ;;
8122 esac
8123
8124 # Libunwind support.
8125
8126 # Check whether --with-libunwind was given.
8127 if test "${with_libunwind+set}" = set; then :
8128   withval=$with_libunwind; case "${withval}" in
8129   yes)  enable_libunwind=yes ;;
8130   no)   enable_libunwind=no ;;
8131   *)    as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8132 esac
8133 else
8134
8135   for ac_header in libunwind.h libunwind-ia64.h
8136 do :
8137   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8138 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8139 eval as_val=\$$as_ac_Header
8140    if test "x$as_val" = x""yes; then :
8141   cat >>confdefs.h <<_ACEOF
8142 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8143 _ACEOF
8144
8145 fi
8146
8147 done
8148
8149   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8150     enable_libunwind=yes;
8151   fi
8152
8153 fi
8154
8155
8156 if test x"$enable_libunwind" = xyes; then
8157   for ac_header in libunwind.h libunwind-ia64.h
8158 do :
8159   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8160 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8161 eval as_val=\$$as_ac_Header
8162    if test "x$as_val" = x""yes; then :
8163   cat >>confdefs.h <<_ACEOF
8164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8165 _ACEOF
8166
8167 fi
8168
8169 done
8170
8171
8172 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8173
8174   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8175   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8176   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8177 fi
8178
8179 opt_curses=no
8180
8181 # Check whether --with-curses was given.
8182 if test "${with_curses+set}" = set; then :
8183   withval=$with_curses; opt_curses=$withval
8184 fi
8185
8186
8187 prefer_curses=no
8188 if test "$opt_curses" = "yes"; then
8189   prefer_curses=yes
8190 fi
8191
8192 # Profiling support.
8193 # Check whether --enable-profiling was given.
8194 if test "${enable_profiling+set}" = set; then :
8195   enableval=$enable_profiling; case $enableval in
8196     yes | no)
8197       ;;
8198     *)
8199       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8200   esac
8201 else
8202   enable_profiling=no
8203 fi
8204
8205
8206 for ac_func in monstartup _mcleanup
8207 do :
8208   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8209 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8210 eval as_val=\$$as_ac_var
8211    if test "x$as_val" = x""yes; then :
8212   cat >>confdefs.h <<_ACEOF
8213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8214 _ACEOF
8215
8216 fi
8217 done
8218
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8220 $as_echo_n "checking for _etext... " >&6; }
8221 if test "${ac_cv_var__etext+set}" = set; then :
8222   $as_echo_n "(cached) " >&6
8223 else
8224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8225 /* end confdefs.h.  */
8226 #include <stdlib.h>
8227 extern char _etext;
8228
8229 int
8230 main ()
8231 {
8232 free (&_etext);
8233   ;
8234   return 0;
8235 }
8236 _ACEOF
8237 if ac_fn_c_try_link "$LINENO"; then :
8238   ac_cv_var__etext=yes
8239 else
8240   ac_cv_var__etext=no
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext \
8243     conftest$ac_exeext conftest.$ac_ext
8244 fi
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8246 $as_echo "$ac_cv_var__etext" >&6; }
8247 if test $ac_cv_var__etext = yes; then
8248
8249 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8250
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8253 $as_echo_n "checking for etext... " >&6; }
8254 if test "${ac_cv_var_etext+set}" = set; then :
8255   $as_echo_n "(cached) " >&6
8256 else
8257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h.  */
8259 #include <stdlib.h>
8260 extern char etext;
8261
8262 int
8263 main ()
8264 {
8265 free (&etext);
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 if ac_fn_c_try_link "$LINENO"; then :
8271   ac_cv_var_etext=yes
8272 else
8273   ac_cv_var_etext=no
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext \
8276     conftest$ac_exeext conftest.$ac_ext
8277 fi
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8279 $as_echo "$ac_cv_var_etext" >&6; }
8280 if test $ac_cv_var_etext = yes; then
8281
8282 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8283
8284 fi
8285 if test "$enable_profiling" = yes ; then
8286   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8287     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8288   fi
8289   PROFILE_CFLAGS=-pg
8290   OLD_CFLAGS="$CFLAGS"
8291   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8292
8293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8294 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8295 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8296   $as_echo_n "(cached) " >&6
8297 else
8298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h.  */
8300
8301 int
8302 main ()
8303 {
8304 int x;
8305   ;
8306   return 0;
8307 }
8308 _ACEOF
8309 if ac_fn_c_try_compile "$LINENO"; then :
8310   ac_cv_cc_supports_pg=yes
8311 else
8312   ac_cv_cc_supports_pg=no
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 fi
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8317 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8318
8319   if test $ac_cv_cc_supports_pg = no; then
8320     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8321   fi
8322
8323   CFLAGS="$OLD_CFLAGS"
8324 fi
8325
8326
8327
8328 # Check whether --with-pkgversion was given.
8329 if test "${with_pkgversion+set}" = set; then :
8330   withval=$with_pkgversion; case "$withval" in
8331       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8332       no)  PKGVERSION= ;;
8333       *)   PKGVERSION="($withval) " ;;
8334      esac
8335 else
8336   PKGVERSION="(GDB) "
8337
8338 fi
8339
8340
8341
8342
8343
8344 # Check whether --with-bugurl was given.
8345 if test "${with_bugurl+set}" = set; then :
8346   withval=$with_bugurl; case "$withval" in
8347       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8348       no)  BUGURL=
8349            ;;
8350       *)   BUGURL="$withval"
8351            ;;
8352      esac
8353 else
8354   BUGURL="http://www.gnu.org/software/gdb/bugs/"
8355
8356 fi
8357
8358   case ${BUGURL} in
8359   "")
8360     REPORT_BUGS_TO=
8361     REPORT_BUGS_TEXI=
8362     ;;
8363   *)
8364     REPORT_BUGS_TO="<$BUGURL>"
8365     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8366     ;;
8367   esac;
8368
8369
8370
8371
8372 cat >>confdefs.h <<_ACEOF
8373 #define PKGVERSION "$PKGVERSION"
8374 _ACEOF
8375
8376
8377 cat >>confdefs.h <<_ACEOF
8378 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8379 _ACEOF
8380
8381
8382 # --------------------- #
8383 # Checks for programs.  #
8384 # --------------------- #
8385
8386 for ac_prog in gawk mawk nawk awk
8387 do
8388   # Extract the first word of "$ac_prog", so it can be a program name with args.
8389 set dummy $ac_prog; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if test "${ac_cv_prog_AWK+set}" = set; then :
8393   $as_echo_n "(cached) " >&6
8394 else
8395   if test -n "$AWK"; then
8396   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8400 do
8401   IFS=$as_save_IFS
8402   test -z "$as_dir" && as_dir=.
8403     for ac_exec_ext in '' $ac_executable_extensions; do
8404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405     ac_cv_prog_AWK="$ac_prog"
8406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407     break 2
8408   fi
8409 done
8410   done
8411 IFS=$as_save_IFS
8412
8413 fi
8414 fi
8415 AWK=$ac_cv_prog_AWK
8416 if test -n "$AWK"; then
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8418 $as_echo "$AWK" >&6; }
8419 else
8420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8422 fi
8423
8424
8425   test -n "$AWK" && break
8426 done
8427
8428
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8430 $as_echo_n "checking whether ln -s works... " >&6; }
8431 LN_S=$as_ln_s
8432 if test "$LN_S" = "ln -s"; then
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8434 $as_echo "yes" >&6; }
8435 else
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8437 $as_echo "no, using $LN_S" >&6; }
8438 fi
8439
8440 if test -n "$ac_tool_prefix"; then
8441   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8442 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444 $as_echo_n "checking for $ac_word... " >&6; }
8445 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8446   $as_echo_n "(cached) " >&6
8447 else
8448   if test -n "$RANLIB"; then
8449   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8450 else
8451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 for as_dir in $PATH
8453 do
8454   IFS=$as_save_IFS
8455   test -z "$as_dir" && as_dir=.
8456     for ac_exec_ext in '' $ac_executable_extensions; do
8457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8458     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8460     break 2
8461   fi
8462 done
8463   done
8464 IFS=$as_save_IFS
8465
8466 fi
8467 fi
8468 RANLIB=$ac_cv_prog_RANLIB
8469 if test -n "$RANLIB"; then
8470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8471 $as_echo "$RANLIB" >&6; }
8472 else
8473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474 $as_echo "no" >&6; }
8475 fi
8476
8477
8478 fi
8479 if test -z "$ac_cv_prog_RANLIB"; then
8480   ac_ct_RANLIB=$RANLIB
8481   # Extract the first word of "ranlib", so it can be a program name with args.
8482 set dummy ranlib; ac_word=$2
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8484 $as_echo_n "checking for $ac_word... " >&6; }
8485 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   if test -n "$ac_ct_RANLIB"; then
8489   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8490 else
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 for as_dir in $PATH
8493 do
8494   IFS=$as_save_IFS
8495   test -z "$as_dir" && as_dir=.
8496     for ac_exec_ext in '' $ac_executable_extensions; do
8497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8498     ac_cv_prog_ac_ct_RANLIB="ranlib"
8499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8500     break 2
8501   fi
8502 done
8503   done
8504 IFS=$as_save_IFS
8505
8506 fi
8507 fi
8508 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8509 if test -n "$ac_ct_RANLIB"; then
8510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8511 $as_echo "$ac_ct_RANLIB" >&6; }
8512 else
8513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514 $as_echo "no" >&6; }
8515 fi
8516
8517   if test "x$ac_ct_RANLIB" = x; then
8518     RANLIB=":"
8519   else
8520     case $cross_compiling:$ac_tool_warned in
8521 yes:)
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8524 ac_tool_warned=yes ;;
8525 esac
8526     RANLIB=$ac_ct_RANLIB
8527   fi
8528 else
8529   RANLIB="$ac_cv_prog_RANLIB"
8530 fi
8531
8532 for ac_prog in 'bison -y' byacc
8533 do
8534   # Extract the first word of "$ac_prog", so it can be a program name with args.
8535 set dummy $ac_prog; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if test "${ac_cv_prog_YACC+set}" = set; then :
8539   $as_echo_n "(cached) " >&6
8540 else
8541   if test -n "$YACC"; then
8542   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8543 else
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547   IFS=$as_save_IFS
8548   test -z "$as_dir" && as_dir=.
8549     for ac_exec_ext in '' $ac_executable_extensions; do
8550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551     ac_cv_prog_YACC="$ac_prog"
8552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8553     break 2
8554   fi
8555 done
8556   done
8557 IFS=$as_save_IFS
8558
8559 fi
8560 fi
8561 YACC=$ac_cv_prog_YACC
8562 if test -n "$YACC"; then
8563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8564 $as_echo "$YACC" >&6; }
8565 else
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8568 fi
8569
8570
8571   test -n "$YACC" && break
8572 done
8573 test -n "$YACC" || YACC="yacc"
8574
8575
8576 if test -n "$ac_tool_prefix"; then
8577   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8578 set dummy ${ac_tool_prefix}ar; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if test "${ac_cv_prog_AR+set}" = set; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   if test -n "$AR"; then
8585   ac_cv_prog_AR="$AR" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590   IFS=$as_save_IFS
8591   test -z "$as_dir" && as_dir=.
8592     for ac_exec_ext in '' $ac_executable_extensions; do
8593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8594     ac_cv_prog_AR="${ac_tool_prefix}ar"
8595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596     break 2
8597   fi
8598 done
8599   done
8600 IFS=$as_save_IFS
8601
8602 fi
8603 fi
8604 AR=$ac_cv_prog_AR
8605 if test -n "$AR"; then
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8607 $as_echo "$AR" >&6; }
8608 else
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8611 fi
8612
8613
8614 fi
8615 if test -z "$ac_cv_prog_AR"; then
8616   ac_ct_AR=$AR
8617   # Extract the first word of "ar", so it can be a program name with args.
8618 set dummy ar; ac_word=$2
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8620 $as_echo_n "checking for $ac_word... " >&6; }
8621 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8622   $as_echo_n "(cached) " >&6
8623 else
8624   if test -n "$ac_ct_AR"; then
8625   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8626 else
8627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 for as_dir in $PATH
8629 do
8630   IFS=$as_save_IFS
8631   test -z "$as_dir" && as_dir=.
8632     for ac_exec_ext in '' $ac_executable_extensions; do
8633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8634     ac_cv_prog_ac_ct_AR="ar"
8635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8636     break 2
8637   fi
8638 done
8639   done
8640 IFS=$as_save_IFS
8641
8642 fi
8643 fi
8644 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8645 if test -n "$ac_ct_AR"; then
8646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8647 $as_echo "$ac_ct_AR" >&6; }
8648 else
8649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8650 $as_echo "no" >&6; }
8651 fi
8652
8653   if test "x$ac_ct_AR" = x; then
8654     AR=""
8655   else
8656     case $cross_compiling:$ac_tool_warned in
8657 yes:)
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8660 ac_tool_warned=yes ;;
8661 esac
8662     AR=$ac_ct_AR
8663   fi
8664 else
8665   AR="$ac_cv_prog_AR"
8666 fi
8667
8668 if test -n "$ac_tool_prefix"; then
8669   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8670 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8674   $as_echo_n "(cached) " >&6
8675 else
8676   if test -n "$DLLTOOL"; then
8677   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8678 else
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8681 do
8682   IFS=$as_save_IFS
8683   test -z "$as_dir" && as_dir=.
8684     for ac_exec_ext in '' $ac_executable_extensions; do
8685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8686     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688     break 2
8689   fi
8690 done
8691   done
8692 IFS=$as_save_IFS
8693
8694 fi
8695 fi
8696 DLLTOOL=$ac_cv_prog_DLLTOOL
8697 if test -n "$DLLTOOL"; then
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8699 $as_echo "$DLLTOOL" >&6; }
8700 else
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 fi
8704
8705
8706 fi
8707 if test -z "$ac_cv_prog_DLLTOOL"; then
8708   ac_ct_DLLTOOL=$DLLTOOL
8709   # Extract the first word of "dlltool", so it can be a program name with args.
8710 set dummy dlltool; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   if test -n "$ac_ct_DLLTOOL"; then
8717   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8721 do
8722   IFS=$as_save_IFS
8723   test -z "$as_dir" && as_dir=.
8724     for ac_exec_ext in '' $ac_executable_extensions; do
8725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728     break 2
8729   fi
8730 done
8731   done
8732 IFS=$as_save_IFS
8733
8734 fi
8735 fi
8736 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8737 if test -n "$ac_ct_DLLTOOL"; then
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8739 $as_echo "$ac_ct_DLLTOOL" >&6; }
8740 else
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8743 fi
8744
8745   if test "x$ac_ct_DLLTOOL" = x; then
8746     DLLTOOL=""
8747   else
8748     case $cross_compiling:$ac_tool_warned in
8749 yes:)
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8752 ac_tool_warned=yes ;;
8753 esac
8754     DLLTOOL=$ac_ct_DLLTOOL
8755   fi
8756 else
8757   DLLTOOL="$ac_cv_prog_DLLTOOL"
8758 fi
8759
8760 if test -n "$ac_tool_prefix"; then
8761   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8762 set dummy ${ac_tool_prefix}windres; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8766   $as_echo_n "(cached) " >&6
8767 else
8768   if test -n "$WINDRES"; then
8769   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8770 else
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774   IFS=$as_save_IFS
8775   test -z "$as_dir" && as_dir=.
8776     for ac_exec_ext in '' $ac_executable_extensions; do
8777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780     break 2
8781   fi
8782 done
8783   done
8784 IFS=$as_save_IFS
8785
8786 fi
8787 fi
8788 WINDRES=$ac_cv_prog_WINDRES
8789 if test -n "$WINDRES"; then
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8791 $as_echo "$WINDRES" >&6; }
8792 else
8793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8795 fi
8796
8797
8798 fi
8799 if test -z "$ac_cv_prog_WINDRES"; then
8800   ac_ct_WINDRES=$WINDRES
8801   # Extract the first word of "windres", so it can be a program name with args.
8802 set dummy windres; ac_word=$2
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804 $as_echo_n "checking for $ac_word... " >&6; }
8805 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8806   $as_echo_n "(cached) " >&6
8807 else
8808   if test -n "$ac_ct_WINDRES"; then
8809   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8810 else
8811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812 for as_dir in $PATH
8813 do
8814   IFS=$as_save_IFS
8815   test -z "$as_dir" && as_dir=.
8816     for ac_exec_ext in '' $ac_executable_extensions; do
8817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8818     ac_cv_prog_ac_ct_WINDRES="windres"
8819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8820     break 2
8821   fi
8822 done
8823   done
8824 IFS=$as_save_IFS
8825
8826 fi
8827 fi
8828 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8829 if test -n "$ac_ct_WINDRES"; then
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8831 $as_echo "$ac_ct_WINDRES" >&6; }
8832 else
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8835 fi
8836
8837   if test "x$ac_ct_WINDRES" = x; then
8838     WINDRES=""
8839   else
8840     case $cross_compiling:$ac_tool_warned in
8841 yes:)
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8844 ac_tool_warned=yes ;;
8845 esac
8846     WINDRES=$ac_ct_WINDRES
8847   fi
8848 else
8849   WINDRES="$ac_cv_prog_WINDRES"
8850 fi
8851
8852
8853 # Needed for GNU/Hurd.
8854 if test -n "$ac_tool_prefix"; then
8855   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8856 set dummy ${ac_tool_prefix}mig; ac_word=$2
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8858 $as_echo_n "checking for $ac_word... " >&6; }
8859 if test "${ac_cv_prog_MIG+set}" = set; then :
8860   $as_echo_n "(cached) " >&6
8861 else
8862   if test -n "$MIG"; then
8863   ac_cv_prog_MIG="$MIG" # Let the user override the test.
8864 else
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8867 do
8868   IFS=$as_save_IFS
8869   test -z "$as_dir" && as_dir=.
8870     for ac_exec_ext in '' $ac_executable_extensions; do
8871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8872     ac_cv_prog_MIG="${ac_tool_prefix}mig"
8873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874     break 2
8875   fi
8876 done
8877   done
8878 IFS=$as_save_IFS
8879
8880 fi
8881 fi
8882 MIG=$ac_cv_prog_MIG
8883 if test -n "$MIG"; then
8884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8885 $as_echo "$MIG" >&6; }
8886 else
8887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8888 $as_echo "no" >&6; }
8889 fi
8890
8891
8892 fi
8893 if test -z "$ac_cv_prog_MIG"; then
8894   ac_ct_MIG=$MIG
8895   # Extract the first word of "mig", so it can be a program name with args.
8896 set dummy mig; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   if test -n "$ac_ct_MIG"; then
8903   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8904 else
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8907 do
8908   IFS=$as_save_IFS
8909   test -z "$as_dir" && as_dir=.
8910     for ac_exec_ext in '' $ac_executable_extensions; do
8911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8912     ac_cv_prog_ac_ct_MIG="mig"
8913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914     break 2
8915   fi
8916 done
8917   done
8918 IFS=$as_save_IFS
8919
8920 fi
8921 fi
8922 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8923 if test -n "$ac_ct_MIG"; then
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8925 $as_echo "$ac_ct_MIG" >&6; }
8926 else
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8928 $as_echo "no" >&6; }
8929 fi
8930
8931   if test "x$ac_ct_MIG" = x; then
8932     MIG=""
8933   else
8934     case $cross_compiling:$ac_tool_warned in
8935 yes:)
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8938 ac_tool_warned=yes ;;
8939 esac
8940     MIG=$ac_ct_MIG
8941   fi
8942 else
8943   MIG="$ac_cv_prog_MIG"
8944 fi
8945
8946
8947 # ---------------------- #
8948 # Checks for libraries.  #
8949 # ---------------------- #
8950
8951 # We might need to link with -lm; most simulators need it.
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8953 $as_echo_n "checking for main in -lm... " >&6; }
8954 if test "${ac_cv_lib_m_main+set}" = set; then :
8955   $as_echo_n "(cached) " >&6
8956 else
8957   ac_check_lib_save_LIBS=$LIBS
8958 LIBS="-lm  $LIBS"
8959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8960 /* end confdefs.h.  */
8961
8962
8963 int
8964 main ()
8965 {
8966 return main ();
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 if ac_fn_c_try_link "$LINENO"; then :
8972   ac_cv_lib_m_main=yes
8973 else
8974   ac_cv_lib_m_main=no
8975 fi
8976 rm -f core conftest.err conftest.$ac_objext \
8977     conftest$ac_exeext conftest.$ac_ext
8978 LIBS=$ac_check_lib_save_LIBS
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8981 $as_echo "$ac_cv_lib_m_main" >&6; }
8982 if test "x$ac_cv_lib_m_main" = x""yes; then :
8983   cat >>confdefs.h <<_ACEOF
8984 #define HAVE_LIBM 1
8985 _ACEOF
8986
8987   LIBS="-lm $LIBS"
8988
8989 fi
8990
8991
8992 # We need to link with -lw to get `wctype' on Solaris before Solaris
8993 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
8994 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
8995 # is known to have this problem).  Therefore we avoid libw if we can.
8996 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
8997 if test "x$ac_cv_func_wctype" = x""yes; then :
8998
8999 else
9000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9001 $as_echo_n "checking for wctype in -lw... " >&6; }
9002 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9003   $as_echo_n "(cached) " >&6
9004 else
9005   ac_check_lib_save_LIBS=$LIBS
9006 LIBS="-lw  $LIBS"
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h.  */
9009
9010 /* Override any GCC internal prototype to avoid an error.
9011    Use char because int might match the return type of a GCC
9012    builtin and then its argument prototype would still apply.  */
9013 #ifdef __cplusplus
9014 extern "C"
9015 #endif
9016 char wctype ();
9017 int
9018 main ()
9019 {
9020 return wctype ();
9021   ;
9022   return 0;
9023 }
9024 _ACEOF
9025 if ac_fn_c_try_link "$LINENO"; then :
9026   ac_cv_lib_w_wctype=yes
9027 else
9028   ac_cv_lib_w_wctype=no
9029 fi
9030 rm -f core conftest.err conftest.$ac_objext \
9031     conftest$ac_exeext conftest.$ac_ext
9032 LIBS=$ac_check_lib_save_LIBS
9033 fi
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9035 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9036 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9037   cat >>confdefs.h <<_ACEOF
9038 #define HAVE_LIBW 1
9039 _ACEOF
9040
9041   LIBS="-lw $LIBS"
9042
9043 fi
9044
9045 fi
9046
9047
9048 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9050 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9051 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9052   $as_echo_n "(cached) " >&6
9053 else
9054   ac_func_search_save_LIBS=$LIBS
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h.  */
9057
9058 /* Override any GCC internal prototype to avoid an error.
9059    Use char because int might match the return type of a GCC
9060    builtin and then its argument prototype would still apply.  */
9061 #ifdef __cplusplus
9062 extern "C"
9063 #endif
9064 char gethostbyname ();
9065 int
9066 main ()
9067 {
9068 return gethostbyname ();
9069   ;
9070   return 0;
9071 }
9072 _ACEOF
9073 for ac_lib in '' nsl; do
9074   if test -z "$ac_lib"; then
9075     ac_res="none required"
9076   else
9077     ac_res=-l$ac_lib
9078     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9079   fi
9080   if ac_fn_c_try_link "$LINENO"; then :
9081   ac_cv_search_gethostbyname=$ac_res
9082 fi
9083 rm -f core conftest.err conftest.$ac_objext \
9084     conftest$ac_exeext
9085   if test "${ac_cv_search_gethostbyname+set}" = set; then :
9086   break
9087 fi
9088 done
9089 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9090
9091 else
9092   ac_cv_search_gethostbyname=no
9093 fi
9094 rm conftest.$ac_ext
9095 LIBS=$ac_func_search_save_LIBS
9096 fi
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9098 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9099 ac_res=$ac_cv_search_gethostbyname
9100 if test "$ac_res" != no; then :
9101   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9102
9103 fi
9104
9105
9106 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9108 $as_echo_n "checking for library containing socketpair... " >&6; }
9109 if test "${ac_cv_search_socketpair+set}" = set; then :
9110   $as_echo_n "(cached) " >&6
9111 else
9112   ac_func_search_save_LIBS=$LIBS
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h.  */
9115
9116 /* Override any GCC internal prototype to avoid an error.
9117    Use char because int might match the return type of a GCC
9118    builtin and then its argument prototype would still apply.  */
9119 #ifdef __cplusplus
9120 extern "C"
9121 #endif
9122 char socketpair ();
9123 int
9124 main ()
9125 {
9126 return socketpair ();
9127   ;
9128   return 0;
9129 }
9130 _ACEOF
9131 for ac_lib in '' socket; do
9132   if test -z "$ac_lib"; then
9133     ac_res="none required"
9134   else
9135     ac_res=-l$ac_lib
9136     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9137   fi
9138   if ac_fn_c_try_link "$LINENO"; then :
9139   ac_cv_search_socketpair=$ac_res
9140 fi
9141 rm -f core conftest.err conftest.$ac_objext \
9142     conftest$ac_exeext
9143   if test "${ac_cv_search_socketpair+set}" = set; then :
9144   break
9145 fi
9146 done
9147 if test "${ac_cv_search_socketpair+set}" = set; then :
9148
9149 else
9150   ac_cv_search_socketpair=no
9151 fi
9152 rm conftest.$ac_ext
9153 LIBS=$ac_func_search_save_LIBS
9154 fi
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9156 $as_echo "$ac_cv_search_socketpair" >&6; }
9157 ac_res=$ac_cv_search_socketpair
9158 if test "$ac_res" != no; then :
9159   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9160
9161 fi
9162
9163
9164 # Link in zlib if we can.  This allows us to read compressed debug sections.
9165
9166   # See if the user specified whether he wants zlib support or not.
9167
9168 # Check whether --with-zlib was given.
9169 if test "${with_zlib+set}" = set; then :
9170   withval=$with_zlib;
9171 else
9172   with_zlib=auto
9173 fi
9174
9175
9176   if test "$with_zlib" != "no"; then
9177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9178 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9179 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9180   $as_echo_n "(cached) " >&6
9181 else
9182   ac_func_search_save_LIBS=$LIBS
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h.  */
9185
9186 /* Override any GCC internal prototype to avoid an error.
9187    Use char because int might match the return type of a GCC
9188    builtin and then its argument prototype would still apply.  */
9189 #ifdef __cplusplus
9190 extern "C"
9191 #endif
9192 char zlibVersion ();
9193 int
9194 main ()
9195 {
9196 return zlibVersion ();
9197   ;
9198   return 0;
9199 }
9200 _ACEOF
9201 for ac_lib in '' z; do
9202   if test -z "$ac_lib"; then
9203     ac_res="none required"
9204   else
9205     ac_res=-l$ac_lib
9206     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9207   fi
9208   if ac_fn_c_try_link "$LINENO"; then :
9209   ac_cv_search_zlibVersion=$ac_res
9210 fi
9211 rm -f core conftest.err conftest.$ac_objext \
9212     conftest$ac_exeext
9213   if test "${ac_cv_search_zlibVersion+set}" = set; then :
9214   break
9215 fi
9216 done
9217 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9218
9219 else
9220   ac_cv_search_zlibVersion=no
9221 fi
9222 rm conftest.$ac_ext
9223 LIBS=$ac_func_search_save_LIBS
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9226 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9227 ac_res=$ac_cv_search_zlibVersion
9228 if test "$ac_res" != no; then :
9229   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9230   for ac_header in zlib.h
9231 do :
9232   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9233 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9234   cat >>confdefs.h <<_ACEOF
9235 #define HAVE_ZLIB_H 1
9236 _ACEOF
9237
9238 fi
9239
9240 done
9241
9242 fi
9243
9244     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9245       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9246     fi
9247   fi
9248
9249
9250 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9252 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9253 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9254   $as_echo_n "(cached) " >&6
9255 else
9256   ac_func_search_save_LIBS=$LIBS
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h.  */
9259
9260 /* Override any GCC internal prototype to avoid an error.
9261    Use char because int might match the return type of a GCC
9262    builtin and then its argument prototype would still apply.  */
9263 #ifdef __cplusplus
9264 extern "C"
9265 #endif
9266 char dlgetmodinfo ();
9267 int
9268 main ()
9269 {
9270 return dlgetmodinfo ();
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 for ac_lib in '' dl xpdl; do
9276   if test -z "$ac_lib"; then
9277     ac_res="none required"
9278   else
9279     ac_res=-l$ac_lib
9280     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9281   fi
9282   if ac_fn_c_try_link "$LINENO"; then :
9283   ac_cv_search_dlgetmodinfo=$ac_res
9284 fi
9285 rm -f core conftest.err conftest.$ac_objext \
9286     conftest$ac_exeext
9287   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9288   break
9289 fi
9290 done
9291 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9292
9293 else
9294   ac_cv_search_dlgetmodinfo=no
9295 fi
9296 rm conftest.$ac_ext
9297 LIBS=$ac_func_search_save_LIBS
9298 fi
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9300 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9301 ac_res=$ac_cv_search_dlgetmodinfo
9302 if test "$ac_res" != no; then :
9303   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9304
9305 fi
9306
9307
9308
9309
9310
9311 # Check whether --with-libiconv-prefix was given.
9312 if test "${with_libiconv_prefix+set}" = set; then :
9313   withval=$with_libiconv_prefix;
9314     for dir in `echo "$withval" | tr : ' '`; do
9315       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9316       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9317     done
9318
9319 fi
9320
9321
9322   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9323   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9324
9325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9326 $as_echo_n "checking for iconv... " >&6; }
9327 if test "${am_cv_func_iconv+set}" = set; then :
9328   $as_echo_n "(cached) " >&6
9329 else
9330
9331     am_cv_func_iconv="no, consider installing GNU libiconv"
9332     am_cv_lib_iconv=no
9333     am_cv_use_build_libiconv=no
9334     am_cv_build_libiconv_path=
9335
9336     # If libiconv is part of the build tree, then try using it over
9337     # any system iconv.
9338     if test -d ../libiconv; then
9339       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9340         am_save_LIBS="$LIBS"
9341         am_save_CPPFLAGS="$CPPFLAGS"
9342         LIBS="$LIBS $lib_dir/libiconv.a"
9343         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9344         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h.  */
9346 #include <stdlib.h>
9347 #include <iconv.h>
9348 int
9349 main ()
9350 {
9351 iconv_t cd = iconv_open("","");
9352            iconv(cd,NULL,NULL,NULL,NULL);
9353            iconv_close(cd);
9354   ;
9355   return 0;
9356 }
9357 _ACEOF
9358 if ac_fn_c_try_link "$LINENO"; then :
9359   am_cv_use_build_libiconv=yes
9360           am_cv_build_libiconv_path=$lib_dir/libiconv.a
9361           am_cv_lib_iconv=yes
9362           am_cv_func_iconv=yes
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext \
9365     conftest$ac_exeext conftest.$ac_ext
9366         LIBS="$am_save_LIBS"
9367         CPPFLAGS="$am_save_CPPFLAGS"
9368         if test "$am_cv_use_build_libiconv" = "yes"; then
9369           break
9370         fi
9371       done
9372     fi
9373
9374     # Next, try to find iconv in libc.
9375     if test "$am_cv_func_iconv" != yes; then
9376       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h.  */
9378 #include <stdlib.h>
9379 #include <iconv.h>
9380 int
9381 main ()
9382 {
9383 iconv_t cd = iconv_open("","");
9384          iconv(cd,NULL,NULL,NULL,NULL);
9385          iconv_close(cd);
9386   ;
9387   return 0;
9388 }
9389 _ACEOF
9390 if ac_fn_c_try_link "$LINENO"; then :
9391   am_cv_func_iconv=yes
9392 fi
9393 rm -f core conftest.err conftest.$ac_objext \
9394     conftest$ac_exeext conftest.$ac_ext
9395     fi
9396
9397     # If iconv was not in libc, try -liconv.  In this case, arrange to
9398     # look in the libiconv prefix, if it was specified by the user.
9399     if test "$am_cv_func_iconv" != yes; then
9400       am_save_CPPFLAGS="$CPPFLAGS"
9401       am_save_LIBS="$LIBS"
9402       if test -n "$LIBICONV_INCLUDE"; then
9403         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9404         LIBS="$LIBS $LIBICONV_LIBDIR"
9405       fi
9406       LIBS="$LIBS -liconv"
9407       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9408 /* end confdefs.h.  */
9409 #include <stdlib.h>
9410 #include <iconv.h>
9411 int
9412 main ()
9413 {
9414 iconv_t cd = iconv_open("","");
9415          iconv(cd,NULL,NULL,NULL,NULL);
9416          iconv_close(cd);
9417   ;
9418   return 0;
9419 }
9420 _ACEOF
9421 if ac_fn_c_try_link "$LINENO"; then :
9422   am_cv_lib_iconv=yes
9423         am_cv_func_iconv=yes
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext \
9426     conftest$ac_exeext conftest.$ac_ext
9427       LIBS="$am_save_LIBS"
9428       CPPFLAGS="$am_save_CPPFLAGS"
9429     fi
9430
9431 fi
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9433 $as_echo "$am_cv_func_iconv" >&6; }
9434
9435   # Set the various flags based on the cache variables.  We can't rely
9436   # on the flags to remain set from the above code, due to caching.
9437   LIBICONV=
9438   if test "$am_cv_lib_iconv" = yes; then
9439     LIBICONV="-liconv"
9440   else
9441     LIBICONV_LIBDIR=
9442     LIBICONV_INCLUDE=
9443   fi
9444   if test "$am_cv_use_build_libiconv" = yes; then
9445     LIBICONV="$am_cv_build_libiconv_path"
9446     LIBICONV_LIBDIR=""
9447     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9448   fi
9449   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9450   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9451
9452   if test "$am_cv_func_iconv" = yes; then
9453
9454 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9455
9456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9457 $as_echo_n "checking for iconv declaration... " >&6; }
9458     if test "${am_cv_proto_iconv+set}" = set; then :
9459   $as_echo_n "(cached) " >&6
9460 else
9461
9462       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h.  */
9464
9465 #include <stdlib.h>
9466 #include <iconv.h>
9467 extern
9468 #ifdef __cplusplus
9469 "C"
9470 #endif
9471 #if defined(__STDC__) || defined(__cplusplus)
9472 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9473 #else
9474 size_t iconv();
9475 #endif
9476
9477 int
9478 main ()
9479 {
9480
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 if ac_fn_c_try_compile "$LINENO"; then :
9486   am_cv_proto_iconv_arg1=""
9487 else
9488   am_cv_proto_iconv_arg1="const"
9489 fi
9490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491       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);"
9492 fi
9493
9494     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9495     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9496          }$am_cv_proto_iconv" >&5
9497 $as_echo "${ac_t:-
9498          }$am_cv_proto_iconv" >&6; }
9499
9500 cat >>confdefs.h <<_ACEOF
9501 #define ICONV_CONST $am_cv_proto_iconv_arg1
9502 _ACEOF
9503
9504   fi
9505
9506
9507 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9508 # There is a very specific comment in /usr/include/curses.h explaining that
9509 # termcap routines built into libcurses must not be used.
9510 #
9511 # The symptoms we observed so far is GDB unexpectedly changing
9512 # the terminal settings when tgetent is called - this is particularly
9513 # visible as the output is missing carriage returns, and so rapidly
9514 # becomes very hard to read.
9515 #
9516 # The readline configure script has already decided that libtermcap
9517 # was enough for its purposes, and so decided to build readline using
9518 # libtermcap.  Since the TUI mode requires curses, building GDB with
9519 # TUI enabled results in both libraries to be used at the same time,
9520 # which is not allowed.  This basically means that GDB with TUI is
9521 # broken on alpha-osf.
9522
9523 case $host_os in
9524   osf* )
9525     if test x"$enable_tui" = xyes; then
9526       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9527     fi
9528     if test x"$enable_tui" = xauto; then
9529       enable_tui=no
9530     fi
9531     ;;
9532 esac
9533
9534 # For the TUI, we need enhanced curses functionality.
9535 if test x"$enable_tui" != xno; then
9536   prefer_curses=yes
9537 fi
9538
9539 curses_found=no
9540 if test x"$prefer_curses" = xyes; then
9541   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9542   # curses library because the latter might not provide all the
9543   # functionality we need.  However, this leads to problems on systems
9544   # where the linker searches /usr/local/lib, but the compiler doesn't
9545   # search /usr/local/include, if ncurses is installed in /usr/local.  A
9546   # default installation of ncurses on alpha*-dec-osf* will lead to such
9547   # a situation.
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9549 $as_echo_n "checking for library containing waddstr... " >&6; }
9550 if test "${ac_cv_search_waddstr+set}" = set; then :
9551   $as_echo_n "(cached) " >&6
9552 else
9553   ac_func_search_save_LIBS=$LIBS
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555 /* end confdefs.h.  */
9556
9557 /* Override any GCC internal prototype to avoid an error.
9558    Use char because int might match the return type of a GCC
9559    builtin and then its argument prototype would still apply.  */
9560 #ifdef __cplusplus
9561 extern "C"
9562 #endif
9563 char waddstr ();
9564 int
9565 main ()
9566 {
9567 return waddstr ();
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 for ac_lib in '' ncurses cursesX curses; do
9573   if test -z "$ac_lib"; then
9574     ac_res="none required"
9575   else
9576     ac_res=-l$ac_lib
9577     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9578   fi
9579   if ac_fn_c_try_link "$LINENO"; then :
9580   ac_cv_search_waddstr=$ac_res
9581 fi
9582 rm -f core conftest.err conftest.$ac_objext \
9583     conftest$ac_exeext
9584   if test "${ac_cv_search_waddstr+set}" = set; then :
9585   break
9586 fi
9587 done
9588 if test "${ac_cv_search_waddstr+set}" = set; then :
9589
9590 else
9591   ac_cv_search_waddstr=no
9592 fi
9593 rm conftest.$ac_ext
9594 LIBS=$ac_func_search_save_LIBS
9595 fi
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9597 $as_echo "$ac_cv_search_waddstr" >&6; }
9598 ac_res=$ac_cv_search_waddstr
9599 if test "$ac_res" != no; then :
9600   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9601
9602 fi
9603
9604
9605   if test "$ac_cv_search_waddstr" != no; then
9606     curses_found=yes
9607   fi
9608 fi
9609
9610 # Check whether we should enable the TUI, but only do so if we really
9611 # can.
9612 if test x"$enable_tui" != xno; then
9613   if test -d $srcdir/tui; then
9614     if test "$curses_found" != no; then
9615       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9616       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9617       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9618       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9619       CONFIG_ALL="${CONFIG_ALL} all-tui"
9620       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9621       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9622       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9623     else
9624       if test x"$enable_tui" = xyes; then
9625         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9626       else
9627         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9628 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9629       fi
9630     fi
9631   fi
9632 fi
9633
9634 # Since GDB uses Readline, we need termcap functionality.  In many
9635 # cases this will be provided by the curses library, but some systems
9636 # have a seperate termcap library, or no curses library at all.
9637
9638 case $host_os in
9639   cygwin*)
9640     if test -d $srcdir/libtermcap; then
9641       LIBS="../libtermcap/libtermcap.a $LIBS"
9642       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9643     fi ;;
9644   go32* | *djgpp*)
9645     ac_cv_search_tgetent="none required"
9646     ;;
9647   *mingw32*)
9648     ac_cv_search_tgetent="none required"
9649     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9650     ;;
9651 esac
9652
9653 # These are the libraries checked by Readline.
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9655 $as_echo_n "checking for library containing tgetent... " >&6; }
9656 if test "${ac_cv_search_tgetent+set}" = set; then :
9657   $as_echo_n "(cached) " >&6
9658 else
9659   ac_func_search_save_LIBS=$LIBS
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h.  */
9662
9663 /* Override any GCC internal prototype to avoid an error.
9664    Use char because int might match the return type of a GCC
9665    builtin and then its argument prototype would still apply.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 char tgetent ();
9670 int
9671 main ()
9672 {
9673 return tgetent ();
9674   ;
9675   return 0;
9676 }
9677 _ACEOF
9678 for ac_lib in '' termcap tinfo curses ncurses; do
9679   if test -z "$ac_lib"; then
9680     ac_res="none required"
9681   else
9682     ac_res=-l$ac_lib
9683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9684   fi
9685   if ac_fn_c_try_link "$LINENO"; then :
9686   ac_cv_search_tgetent=$ac_res
9687 fi
9688 rm -f core conftest.err conftest.$ac_objext \
9689     conftest$ac_exeext
9690   if test "${ac_cv_search_tgetent+set}" = set; then :
9691   break
9692 fi
9693 done
9694 if test "${ac_cv_search_tgetent+set}" = set; then :
9695
9696 else
9697   ac_cv_search_tgetent=no
9698 fi
9699 rm conftest.$ac_ext
9700 LIBS=$ac_func_search_save_LIBS
9701 fi
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9703 $as_echo "$ac_cv_search_tgetent" >&6; }
9704 ac_res=$ac_cv_search_tgetent
9705 if test "$ac_res" != no; then :
9706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9707
9708 fi
9709
9710
9711 if test "$ac_cv_search_tgetent" = no; then
9712   as_fn_error "no termcap library found" "$LINENO" 5
9713 fi
9714
9715
9716 # Check whether --with-system-readline was given.
9717 if test "${with_system_readline+set}" = set; then :
9718   withval=$with_system_readline;
9719 fi
9720
9721
9722 if test "$with_system_readline" = yes; then
9723   READLINE=-lreadline
9724   READLINE_DEPS=
9725   READLINE_CFLAGS=
9726
9727   # readline-6.0 started to use the name `_rl_echoing_p'.
9728   # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9729
9730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9731 $as_echo_n "checking for readline_echoing_p... " >&6; }
9732   save_LIBS=$LIBS
9733   LIBS="$LIBS $READLINE"
9734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h.  */
9736
9737 int
9738 main ()
9739 {
9740 extern int readline_echoing_p;
9741                                     return readline_echoing_p;
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747   READLINE_ECHOING_P=yes
9748 else
9749   READLINE_ECHOING_P=no
9750
9751 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9752
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext \
9755     conftest$ac_exeext conftest.$ac_ext
9756   LIBS="$save_LIBS"
9757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9758 $as_echo "$READLINE_ECHOING_P" >&6; }
9759 else
9760   READLINE='$(READLINE_DIR)/libreadline.a'
9761   READLINE_DEPS='$(READLINE)'
9762   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9763 fi
9764
9765
9766
9767
9768
9769 # Check whether --with-expat was given.
9770 if test "${with_expat+set}" = set; then :
9771   withval=$with_expat;
9772 else
9773   with_expat=auto
9774 fi
9775
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9777 $as_echo_n "checking whether to use expat... " >&6; }
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9779 $as_echo "$with_expat" >&6; }
9780
9781 if test "${with_expat}" = no; then
9782   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9783 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9784   HAVE_LIBEXPAT=no
9785 else
9786
9787       if test "X$prefix" = "XNONE"; then
9788     acl_final_prefix="$ac_default_prefix"
9789   else
9790     acl_final_prefix="$prefix"
9791   fi
9792   if test "X$exec_prefix" = "XNONE"; then
9793     acl_final_exec_prefix='${prefix}'
9794   else
9795     acl_final_exec_prefix="$exec_prefix"
9796   fi
9797   acl_save_prefix="$prefix"
9798   prefix="$acl_final_prefix"
9799   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9800   prefix="$acl_save_prefix"
9801
9802
9803 # Check whether --with-gnu-ld was given.
9804 if test "${with_gnu_ld+set}" = set; then :
9805   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9806 else
9807   with_gnu_ld=no
9808 fi
9809
9810 # Prepare PATH_SEPARATOR.
9811 # The user is always right.
9812 if test "${PATH_SEPARATOR+set}" != set; then
9813   echo "#! /bin/sh" >conf$$.sh
9814   echo  "exit 0"   >>conf$$.sh
9815   chmod +x conf$$.sh
9816   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9817     PATH_SEPARATOR=';'
9818   else
9819     PATH_SEPARATOR=:
9820   fi
9821   rm -f conf$$.sh
9822 fi
9823 ac_prog=ld
9824 if test "$GCC" = yes; then
9825   # Check if gcc -print-prog-name=ld gives a path.
9826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9827 $as_echo_n "checking for ld used by GCC... " >&6; }
9828   case $host in
9829   *-*-mingw*)
9830     # gcc leaves a trailing carriage return which upsets mingw
9831     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9832   *)
9833     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9834   esac
9835   case $ac_prog in
9836     # Accept absolute paths.
9837     [\\/]* | [A-Za-z]:[\\/]*)
9838       re_direlt='/[^/][^/]*/\.\./'
9839       # Canonicalize the path of ld
9840       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9841       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9842         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9843       done
9844       test -z "$LD" && LD="$ac_prog"
9845       ;;
9846   "")
9847     # If it fails, then pretend we aren't using GCC.
9848     ac_prog=ld
9849     ;;
9850   *)
9851     # If it is relative, then search for the first ld in PATH.
9852     with_gnu_ld=unknown
9853     ;;
9854   esac
9855 elif test "$with_gnu_ld" = yes; then
9856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9857 $as_echo_n "checking for GNU ld... " >&6; }
9858 else
9859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9860 $as_echo_n "checking for non-GNU ld... " >&6; }
9861 fi
9862 if test "${acl_cv_path_LD+set}" = set; then :
9863   $as_echo_n "(cached) " >&6
9864 else
9865   if test -z "$LD"; then
9866   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9867   for ac_dir in $PATH; do
9868     test -z "$ac_dir" && ac_dir=.
9869     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9870       acl_cv_path_LD="$ac_dir/$ac_prog"
9871       # Check to see if the program is GNU ld.  I'd rather use --version,
9872       # but apparently some GNU ld's only accept -v.
9873       # Break only if it was the GNU/non-GNU ld that we prefer.
9874       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9875         test "$with_gnu_ld" != no && break
9876       else
9877         test "$with_gnu_ld" != yes && break
9878       fi
9879     fi
9880   done
9881   IFS="$ac_save_ifs"
9882 else
9883   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9884 fi
9885 fi
9886
9887 LD="$acl_cv_path_LD"
9888 if test -n "$LD"; then
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9890 $as_echo "$LD" >&6; }
9891 else
9892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9893 $as_echo "no" >&6; }
9894 fi
9895 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9897 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9898 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9899   $as_echo_n "(cached) " >&6
9900 else
9901   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9902 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9903   acl_cv_prog_gnu_ld=yes
9904 else
9905   acl_cv_prog_gnu_ld=no
9906 fi
9907 fi
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9909 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9910 with_gnu_ld=$acl_cv_prog_gnu_ld
9911
9912
9913
9914                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9915 $as_echo_n "checking for shared library run path origin... " >&6; }
9916 if test "${acl_cv_rpath+set}" = set; then :
9917   $as_echo_n "(cached) " >&6
9918 else
9919
9920     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9921     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9922     . ./conftest.sh
9923     rm -f ./conftest.sh
9924     acl_cv_rpath=done
9925
9926 fi
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9928 $as_echo "$acl_cv_rpath" >&6; }
9929   wl="$acl_cv_wl"
9930   libext="$acl_cv_libext"
9931   shlibext="$acl_cv_shlibext"
9932   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9933   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9934   hardcode_direct="$acl_cv_hardcode_direct"
9935   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9936     # Check whether --enable-rpath was given.
9937 if test "${enable_rpath+set}" = set; then :
9938   enableval=$enable_rpath; :
9939 else
9940   enable_rpath=yes
9941 fi
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952     use_additional=yes
9953
9954   acl_save_prefix="$prefix"
9955   prefix="$acl_final_prefix"
9956   acl_save_exec_prefix="$exec_prefix"
9957   exec_prefix="$acl_final_exec_prefix"
9958
9959     eval additional_includedir=\"$includedir\"
9960     eval additional_libdir=\"$libdir\"
9961
9962   exec_prefix="$acl_save_exec_prefix"
9963   prefix="$acl_save_prefix"
9964
9965
9966 # Check whether --with-libexpat-prefix was given.
9967 if test "${with_libexpat_prefix+set}" = set; then :
9968   withval=$with_libexpat_prefix;
9969     if test "X$withval" = "Xno"; then
9970       use_additional=no
9971     else
9972       if test "X$withval" = "X"; then
9973
9974   acl_save_prefix="$prefix"
9975   prefix="$acl_final_prefix"
9976   acl_save_exec_prefix="$exec_prefix"
9977   exec_prefix="$acl_final_exec_prefix"
9978
9979           eval additional_includedir=\"$includedir\"
9980           eval additional_libdir=\"$libdir\"
9981
9982   exec_prefix="$acl_save_exec_prefix"
9983   prefix="$acl_save_prefix"
9984
9985       else
9986         additional_includedir="$withval/include"
9987         additional_libdir="$withval/lib"
9988       fi
9989     fi
9990
9991 fi
9992
9993       LIBEXPAT=
9994   LTLIBEXPAT=
9995   INCEXPAT=
9996   rpathdirs=
9997   ltrpathdirs=
9998   names_already_handled=
9999   names_next_round='expat '
10000   while test -n "$names_next_round"; do
10001     names_this_round="$names_next_round"
10002     names_next_round=
10003     for name in $names_this_round; do
10004       already_handled=
10005       for n in $names_already_handled; do
10006         if test "$n" = "$name"; then
10007           already_handled=yes
10008           break
10009         fi
10010       done
10011       if test -z "$already_handled"; then
10012         names_already_handled="$names_already_handled $name"
10013                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10014         eval value=\"\$HAVE_LIB$uppername\"
10015         if test -n "$value"; then
10016           if test "$value" = yes; then
10017             eval value=\"\$LIB$uppername\"
10018             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10019             eval value=\"\$LTLIB$uppername\"
10020             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10021           else
10022                                     :
10023           fi
10024         else
10025                               found_dir=
10026           found_la=
10027           found_so=
10028           found_a=
10029           if test $use_additional = yes; then
10030             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10031               found_dir="$additional_libdir"
10032               found_so="$additional_libdir/lib$name.$shlibext"
10033               if test -f "$additional_libdir/lib$name.la"; then
10034                 found_la="$additional_libdir/lib$name.la"
10035               fi
10036             else
10037               if test -f "$additional_libdir/lib$name.$libext"; then
10038                 found_dir="$additional_libdir"
10039                 found_a="$additional_libdir/lib$name.$libext"
10040                 if test -f "$additional_libdir/lib$name.la"; then
10041                   found_la="$additional_libdir/lib$name.la"
10042                 fi
10043               fi
10044             fi
10045           fi
10046           if test "X$found_dir" = "X"; then
10047             for x in $LDFLAGS $LTLIBEXPAT; do
10048
10049   acl_save_prefix="$prefix"
10050   prefix="$acl_final_prefix"
10051   acl_save_exec_prefix="$exec_prefix"
10052   exec_prefix="$acl_final_exec_prefix"
10053   eval x=\"$x\"
10054   exec_prefix="$acl_save_exec_prefix"
10055   prefix="$acl_save_prefix"
10056
10057               case "$x" in
10058                 -L*)
10059                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10060                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10061                     found_dir="$dir"
10062                     found_so="$dir/lib$name.$shlibext"
10063                     if test -f "$dir/lib$name.la"; then
10064                       found_la="$dir/lib$name.la"
10065                     fi
10066                   else
10067                     if test -f "$dir/lib$name.$libext"; then
10068                       found_dir="$dir"
10069                       found_a="$dir/lib$name.$libext"
10070                       if test -f "$dir/lib$name.la"; then
10071                         found_la="$dir/lib$name.la"
10072                       fi
10073                     fi
10074                   fi
10075                   ;;
10076               esac
10077               if test "X$found_dir" != "X"; then
10078                 break
10079               fi
10080             done
10081           fi
10082           if test "X$found_dir" != "X"; then
10083                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10084             if test "X$found_so" != "X"; then
10085                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10086                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10087               else
10088                                                                                 haveit=
10089                 for x in $ltrpathdirs; do
10090                   if test "X$x" = "X$found_dir"; then
10091                     haveit=yes
10092                     break
10093                   fi
10094                 done
10095                 if test -z "$haveit"; then
10096                   ltrpathdirs="$ltrpathdirs $found_dir"
10097                 fi
10098                                 if test "$hardcode_direct" = yes; then
10099                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10100                 else
10101                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10102                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10103                                                             haveit=
10104                     for x in $rpathdirs; do
10105                       if test "X$x" = "X$found_dir"; then
10106                         haveit=yes
10107                         break
10108                       fi
10109                     done
10110                     if test -z "$haveit"; then
10111                       rpathdirs="$rpathdirs $found_dir"
10112                     fi
10113                   else
10114                                                                                 haveit=
10115                     for x in $LDFLAGS $LIBEXPAT; do
10116
10117   acl_save_prefix="$prefix"
10118   prefix="$acl_final_prefix"
10119   acl_save_exec_prefix="$exec_prefix"
10120   exec_prefix="$acl_final_exec_prefix"
10121   eval x=\"$x\"
10122   exec_prefix="$acl_save_exec_prefix"
10123   prefix="$acl_save_prefix"
10124
10125                       if test "X$x" = "X-L$found_dir"; then
10126                         haveit=yes
10127                         break
10128                       fi
10129                     done
10130                     if test -z "$haveit"; then
10131                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10132                     fi
10133                     if test "$hardcode_minus_L" != no; then
10134                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10135                     else
10136                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10137                     fi
10138                   fi
10139                 fi
10140               fi
10141             else
10142               if test "X$found_a" != "X"; then
10143                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10144               else
10145                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10146               fi
10147             fi
10148                         additional_includedir=
10149             case "$found_dir" in
10150               */lib | */lib/)
10151                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10152                 additional_includedir="$basedir/include"
10153                 ;;
10154             esac
10155             if test "X$additional_includedir" != "X"; then
10156                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10157                 haveit=
10158                 if test "X$additional_includedir" = "X/usr/local/include"; then
10159                   if test -n "$GCC"; then
10160                     case $host_os in
10161                       linux*) haveit=yes;;
10162                     esac
10163                   fi
10164                 fi
10165                 if test -z "$haveit"; then
10166                   for x in $CPPFLAGS $INCEXPAT; do
10167
10168   acl_save_prefix="$prefix"
10169   prefix="$acl_final_prefix"
10170   acl_save_exec_prefix="$exec_prefix"
10171   exec_prefix="$acl_final_exec_prefix"
10172   eval x=\"$x\"
10173   exec_prefix="$acl_save_exec_prefix"
10174   prefix="$acl_save_prefix"
10175
10176                     if test "X$x" = "X-I$additional_includedir"; then
10177                       haveit=yes
10178                       break
10179                     fi
10180                   done
10181                   if test -z "$haveit"; then
10182                     if test -d "$additional_includedir"; then
10183                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10184                     fi
10185                   fi
10186                 fi
10187               fi
10188             fi
10189                         if test -n "$found_la"; then
10190                                                         save_libdir="$libdir"
10191               case "$found_la" in
10192                 */* | *\\*) . "$found_la" ;;
10193                 *) . "./$found_la" ;;
10194               esac
10195               libdir="$save_libdir"
10196                             for dep in $dependency_libs; do
10197                 case "$dep" in
10198                   -L*)
10199                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10200                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10201                       haveit=
10202                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10203                         if test -n "$GCC"; then
10204                           case $host_os in
10205                             linux*) haveit=yes;;
10206                           esac
10207                         fi
10208                       fi
10209                       if test -z "$haveit"; then
10210                         haveit=
10211                         for x in $LDFLAGS $LIBEXPAT; do
10212
10213   acl_save_prefix="$prefix"
10214   prefix="$acl_final_prefix"
10215   acl_save_exec_prefix="$exec_prefix"
10216   exec_prefix="$acl_final_exec_prefix"
10217   eval x=\"$x\"
10218   exec_prefix="$acl_save_exec_prefix"
10219   prefix="$acl_save_prefix"
10220
10221                           if test "X$x" = "X-L$additional_libdir"; then
10222                             haveit=yes
10223                             break
10224                           fi
10225                         done
10226                         if test -z "$haveit"; then
10227                           if test -d "$additional_libdir"; then
10228                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10229                           fi
10230                         fi
10231                         haveit=
10232                         for x in $LDFLAGS $LTLIBEXPAT; do
10233
10234   acl_save_prefix="$prefix"
10235   prefix="$acl_final_prefix"
10236   acl_save_exec_prefix="$exec_prefix"
10237   exec_prefix="$acl_final_exec_prefix"
10238   eval x=\"$x\"
10239   exec_prefix="$acl_save_exec_prefix"
10240   prefix="$acl_save_prefix"
10241
10242                           if test "X$x" = "X-L$additional_libdir"; then
10243                             haveit=yes
10244                             break
10245                           fi
10246                         done
10247                         if test -z "$haveit"; then
10248                           if test -d "$additional_libdir"; then
10249                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10250                           fi
10251                         fi
10252                       fi
10253                     fi
10254                     ;;
10255                   -R*)
10256                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10257                     if test "$enable_rpath" != no; then
10258                                                                   haveit=
10259                       for x in $rpathdirs; do
10260                         if test "X$x" = "X$dir"; then
10261                           haveit=yes
10262                           break
10263                         fi
10264                       done
10265                       if test -z "$haveit"; then
10266                         rpathdirs="$rpathdirs $dir"
10267                       fi
10268                                                                   haveit=
10269                       for x in $ltrpathdirs; do
10270                         if test "X$x" = "X$dir"; then
10271                           haveit=yes
10272                           break
10273                         fi
10274                       done
10275                       if test -z "$haveit"; then
10276                         ltrpathdirs="$ltrpathdirs $dir"
10277                       fi
10278                     fi
10279                     ;;
10280                   -l*)
10281                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10282                     ;;
10283                   *.la)
10284                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10285                     ;;
10286                   *)
10287                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10288                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10289                     ;;
10290                 esac
10291               done
10292             fi
10293           else
10294                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10295             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10296           fi
10297         fi
10298       fi
10299     done
10300   done
10301   if test "X$rpathdirs" != "X"; then
10302     if test -n "$hardcode_libdir_separator"; then
10303                         alldirs=
10304       for found_dir in $rpathdirs; do
10305         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10306       done
10307             acl_save_libdir="$libdir"
10308       libdir="$alldirs"
10309       eval flag=\"$hardcode_libdir_flag_spec\"
10310       libdir="$acl_save_libdir"
10311       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10312     else
10313             for found_dir in $rpathdirs; do
10314         acl_save_libdir="$libdir"
10315         libdir="$found_dir"
10316         eval flag=\"$hardcode_libdir_flag_spec\"
10317         libdir="$acl_save_libdir"
10318         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10319       done
10320     fi
10321   fi
10322   if test "X$ltrpathdirs" != "X"; then
10323             for found_dir in $ltrpathdirs; do
10324       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10325     done
10326   fi
10327
10328
10329         ac_save_CPPFLAGS="$CPPFLAGS"
10330
10331   for element in $INCEXPAT; do
10332     haveit=
10333     for x in $CPPFLAGS; do
10334
10335   acl_save_prefix="$prefix"
10336   prefix="$acl_final_prefix"
10337   acl_save_exec_prefix="$exec_prefix"
10338   exec_prefix="$acl_final_exec_prefix"
10339   eval x=\"$x\"
10340   exec_prefix="$acl_save_exec_prefix"
10341   prefix="$acl_save_prefix"
10342
10343       if test "X$x" = "X$element"; then
10344         haveit=yes
10345         break
10346       fi
10347     done
10348     if test -z "$haveit"; then
10349       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10350     fi
10351   done
10352
10353
10354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10355 $as_echo_n "checking for libexpat... " >&6; }
10356 if test "${ac_cv_libexpat+set}" = set; then :
10357   $as_echo_n "(cached) " >&6
10358 else
10359
10360     ac_save_LIBS="$LIBS"
10361     LIBS="$LIBS $LIBEXPAT"
10362     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h.  */
10364 #include "expat.h"
10365 int
10366 main ()
10367 {
10368 XML_Parser p = XML_ParserCreate (0);
10369   ;
10370   return 0;
10371 }
10372 _ACEOF
10373 if ac_fn_c_try_link "$LINENO"; then :
10374   ac_cv_libexpat=yes
10375 else
10376   ac_cv_libexpat=no
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext \
10379     conftest$ac_exeext conftest.$ac_ext
10380     LIBS="$ac_save_LIBS"
10381
10382 fi
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10384 $as_echo "$ac_cv_libexpat" >&6; }
10385   if test "$ac_cv_libexpat" = yes; then
10386     HAVE_LIBEXPAT=yes
10387
10388 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10389
10390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10391 $as_echo_n "checking how to link with libexpat... " >&6; }
10392     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10393 $as_echo "$LIBEXPAT" >&6; }
10394   else
10395     HAVE_LIBEXPAT=no
10396             CPPFLAGS="$ac_save_CPPFLAGS"
10397     LIBEXPAT=
10398     LTLIBEXPAT=
10399   fi
10400
10401
10402
10403
10404
10405
10406   if test "$HAVE_LIBEXPAT" != yes; then
10407     if test "$with_expat" = yes; then
10408       as_fn_error "expat is missing or unusable" "$LINENO" 5
10409     else
10410       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10411 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10412     fi
10413   else
10414     save_LIBS=$LIBS
10415     LIBS="$LIBS $LIBEXPAT"
10416     for ac_func in XML_StopParser
10417 do :
10418   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10419 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10420   cat >>confdefs.h <<_ACEOF
10421 #define HAVE_XML_STOPPARSER 1
10422 _ACEOF
10423
10424 fi
10425 done
10426
10427     LIBS=$save_LIBS
10428   fi
10429 fi
10430
10431
10432
10433
10434 # Check whether --with-python was given.
10435 if test "${with_python+set}" = set; then :
10436   withval=$with_python;
10437 else
10438   with_python=auto
10439 fi
10440
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10442 $as_echo_n "checking whether to use python... " >&6; }
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10444 $as_echo "$with_python" >&6; }
10445
10446 if test "${with_python}" = no; then
10447   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10448 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10449   have_libpython=no
10450 else
10451   case "${with_python}" in
10452   yes | auto)
10453     # Leave as empty, use defaults.
10454     python_includes=
10455     python_libs=
10456     ;;
10457   /*)
10458     python_includes="-I${with_python}/include"
10459     python_libs="-L${with_python}/lib"
10460     ;;
10461   *)
10462     as_fn_error "invalid value for --with-python" "$LINENO" 5
10463     ;;
10464   esac
10465
10466   save_CPPFLAGS=$CPPFLAGS
10467   CPPFLAGS="$CPPFLAGS ${python_includes}"
10468   save_LIBS=$LIBS
10469   LIBS="$LIBS ${python_libs}"
10470   have_libpython=no
10471   if test "${have_libpython}" = no; then
10472
10473   version=python2.6
10474
10475
10476   HAVE_LIBPYTHON2_6=no
10477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10478 $as_echo_n "checking for ${version}... " >&6; }
10479   save_LIBS=$LIBS
10480   LIBS="$LIBS -l${version}"
10481   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h.  */
10483 #include "${version}/Python.h"
10484 int
10485 main ()
10486 {
10487 Py_Initialize ();
10488   ;
10489   return 0;
10490 }
10491 _ACEOF
10492 if ac_fn_c_try_link "$LINENO"; then :
10493   HAVE_LIBPYTHON2_6=yes
10494                   have_libpython=yes
10495 else
10496   LIBS=$save_LIBS
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext \
10499     conftest$ac_exeext conftest.$ac_ext
10500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_6" >&5
10501 $as_echo "$HAVE_LIBPYTHON2_6" >&6; }
10502
10503     if test "${HAVE_LIBPYTHON2_6}" = yes; then
10504
10505 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10506
10507     fi
10508   fi
10509   if test ${have_libpython} = no; then
10510
10511   version=python2.5
10512
10513
10514   HAVE_LIBPYTHON2_5=no
10515   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10516 $as_echo_n "checking for ${version}... " >&6; }
10517   save_LIBS=$LIBS
10518   LIBS="$LIBS -l${version}"
10519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10520 /* end confdefs.h.  */
10521 #include "${version}/Python.h"
10522 int
10523 main ()
10524 {
10525 Py_Initialize ();
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 if ac_fn_c_try_link "$LINENO"; then :
10531   HAVE_LIBPYTHON2_5=yes
10532                   have_libpython=yes
10533 else
10534   LIBS=$save_LIBS
10535 fi
10536 rm -f core conftest.err conftest.$ac_objext \
10537     conftest$ac_exeext conftest.$ac_ext
10538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_5" >&5
10539 $as_echo "$HAVE_LIBPYTHON2_5" >&6; }
10540
10541     if test "${HAVE_LIBPYTHON2_5}" = yes; then
10542
10543 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10544
10545     fi
10546   fi
10547   if test ${have_libpython} = no; then
10548
10549   version=python2.4
10550
10551
10552   HAVE_LIBPYTHON2_4=no
10553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10554 $as_echo_n "checking for ${version}... " >&6; }
10555   save_LIBS=$LIBS
10556   LIBS="$LIBS -l${version}"
10557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h.  */
10559 #include "${version}/Python.h"
10560 int
10561 main ()
10562 {
10563 Py_Initialize ();
10564   ;
10565   return 0;
10566 }
10567 _ACEOF
10568 if ac_fn_c_try_link "$LINENO"; then :
10569   HAVE_LIBPYTHON2_4=yes
10570                   have_libpython=yes
10571 else
10572   LIBS=$save_LIBS
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext \
10575     conftest$ac_exeext conftest.$ac_ext
10576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_LIBPYTHON2_4" >&5
10577 $as_echo "$HAVE_LIBPYTHON2_4" >&6; }
10578
10579     if test "${HAVE_LIBPYTHON2_4}" = yes; then
10580
10581 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10582
10583     fi
10584   fi
10585   if test ${have_libpython} = no; then
10586     case "${with_python}" in
10587     yes)
10588       as_fn_error "python is missing or unusable" "$LINENO" 5
10589       ;;
10590     auto)
10591       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10592 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10593       ;;
10594     *)
10595       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10596       ;;
10597     esac
10598     CPPFLAGS=$save_CPPFLAGS
10599     LIBS=$save_LIBS
10600   fi
10601 fi
10602
10603 if test "${have_libpython}" = yes; then
10604
10605 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10606
10607   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10608   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10609   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10610   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10611
10612   # Flags needed to compile Python code (taken from python-config --cflags).
10613   # We cannot call python-config directly because it will output whatever was
10614   # used when compiling the Python interpreter itself, including flags which
10615   # would make the python-related objects be compiled differently from the
10616   # rest of GDB (e.g., -O2 and -fPIC).
10617   if test "${GCC}" = yes; then
10618     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10619   fi
10620
10621   if test "x${tentative_python_cflags}" != x; then
10622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10623 $as_echo_n "checking compiler flags for python code... " >&6; }
10624     for flag in ${tentative_python_cflags}; do
10625       # Check that the compiler accepts it
10626       saved_CFLAGS="$CFLAGS"
10627       CFLAGS="$CFLAGS $flag"
10628       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h.  */
10630
10631 int
10632 main ()
10633 {
10634
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 if ac_fn_c_try_compile "$LINENO"; then :
10640   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10641 fi
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643       CFLAGS="$saved_CFLAGS"
10644     done
10645     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10646 $as_echo "${PYTHON_CFLAGS}" >&6; }
10647   fi
10648 else
10649   # Even if Python support is not compiled in, we need to have these files
10650   # included.
10651   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10652   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10653         python/py-prettyprint.c python/py-auto-load.c"
10654 fi
10655
10656
10657 # ------------------------- #
10658 # Checks for header files.  #
10659 # ------------------------- #
10660
10661 ac_header_dirent=no
10662 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10663   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10665 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10667   $as_echo_n "(cached) " >&6
10668 else
10669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h.  */
10671 #include <sys/types.h>
10672 #include <$ac_hdr>
10673
10674 int
10675 main ()
10676 {
10677 if ((DIR *) 0)
10678 return 0;
10679   ;
10680   return 0;
10681 }
10682 _ACEOF
10683 if ac_fn_c_try_compile "$LINENO"; then :
10684   eval "$as_ac_Header=yes"
10685 else
10686   eval "$as_ac_Header=no"
10687 fi
10688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10689 fi
10690 eval ac_res=\$$as_ac_Header
10691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10692 $as_echo "$ac_res" >&6; }
10693 eval as_val=\$$as_ac_Header
10694    if test "x$as_val" = x""yes; then :
10695   cat >>confdefs.h <<_ACEOF
10696 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10697 _ACEOF
10698
10699 ac_header_dirent=$ac_hdr; break
10700 fi
10701
10702 done
10703 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10704 if test $ac_header_dirent = dirent.h; then
10705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10706 $as_echo_n "checking for library containing opendir... " >&6; }
10707 if test "${ac_cv_search_opendir+set}" = set; then :
10708   $as_echo_n "(cached) " >&6
10709 else
10710   ac_func_search_save_LIBS=$LIBS
10711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10712 /* end confdefs.h.  */
10713
10714 /* Override any GCC internal prototype to avoid an error.
10715    Use char because int might match the return type of a GCC
10716    builtin and then its argument prototype would still apply.  */
10717 #ifdef __cplusplus
10718 extern "C"
10719 #endif
10720 char opendir ();
10721 int
10722 main ()
10723 {
10724 return opendir ();
10725   ;
10726   return 0;
10727 }
10728 _ACEOF
10729 for ac_lib in '' dir; do
10730   if test -z "$ac_lib"; then
10731     ac_res="none required"
10732   else
10733     ac_res=-l$ac_lib
10734     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10735   fi
10736   if ac_fn_c_try_link "$LINENO"; then :
10737   ac_cv_search_opendir=$ac_res
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext \
10740     conftest$ac_exeext
10741   if test "${ac_cv_search_opendir+set}" = set; then :
10742   break
10743 fi
10744 done
10745 if test "${ac_cv_search_opendir+set}" = set; then :
10746
10747 else
10748   ac_cv_search_opendir=no
10749 fi
10750 rm conftest.$ac_ext
10751 LIBS=$ac_func_search_save_LIBS
10752 fi
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10754 $as_echo "$ac_cv_search_opendir" >&6; }
10755 ac_res=$ac_cv_search_opendir
10756 if test "$ac_res" != no; then :
10757   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10758
10759 fi
10760
10761 else
10762   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10763 $as_echo_n "checking for library containing opendir... " >&6; }
10764 if test "${ac_cv_search_opendir+set}" = set; then :
10765   $as_echo_n "(cached) " >&6
10766 else
10767   ac_func_search_save_LIBS=$LIBS
10768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10769 /* end confdefs.h.  */
10770
10771 /* Override any GCC internal prototype to avoid an error.
10772    Use char because int might match the return type of a GCC
10773    builtin and then its argument prototype would still apply.  */
10774 #ifdef __cplusplus
10775 extern "C"
10776 #endif
10777 char opendir ();
10778 int
10779 main ()
10780 {
10781 return opendir ();
10782   ;
10783   return 0;
10784 }
10785 _ACEOF
10786 for ac_lib in '' x; do
10787   if test -z "$ac_lib"; then
10788     ac_res="none required"
10789   else
10790     ac_res=-l$ac_lib
10791     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10792   fi
10793   if ac_fn_c_try_link "$LINENO"; then :
10794   ac_cv_search_opendir=$ac_res
10795 fi
10796 rm -f core conftest.err conftest.$ac_objext \
10797     conftest$ac_exeext
10798   if test "${ac_cv_search_opendir+set}" = set; then :
10799   break
10800 fi
10801 done
10802 if test "${ac_cv_search_opendir+set}" = set; then :
10803
10804 else
10805   ac_cv_search_opendir=no
10806 fi
10807 rm conftest.$ac_ext
10808 LIBS=$ac_func_search_save_LIBS
10809 fi
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
10811 $as_echo "$ac_cv_search_opendir" >&6; }
10812 ac_res=$ac_cv_search_opendir
10813 if test "$ac_res" != no; then :
10814   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10815
10816 fi
10817
10818 fi
10819
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10821 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10822 if test "${ac_cv_header_stat_broken+set}" = set; then :
10823   $as_echo_n "(cached) " >&6
10824 else
10825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h.  */
10827 #include <sys/types.h>
10828 #include <sys/stat.h>
10829
10830 #if defined S_ISBLK && defined S_IFDIR
10831 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10832 #endif
10833
10834 #if defined S_ISBLK && defined S_IFCHR
10835 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10836 #endif
10837
10838 #if defined S_ISLNK && defined S_IFREG
10839 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10840 #endif
10841
10842 #if defined S_ISSOCK && defined S_IFREG
10843 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10844 #endif
10845
10846 _ACEOF
10847 if ac_fn_c_try_compile "$LINENO"; then :
10848   ac_cv_header_stat_broken=no
10849 else
10850   ac_cv_header_stat_broken=yes
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853 fi
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10855 $as_echo "$ac_cv_header_stat_broken" >&6; }
10856 if test $ac_cv_header_stat_broken = yes; then
10857
10858 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10859
10860 fi
10861
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10863 $as_echo_n "checking for ANSI C header files... " >&6; }
10864 if test "${ac_cv_header_stdc+set}" = set; then :
10865   $as_echo_n "(cached) " >&6
10866 else
10867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10868 /* end confdefs.h.  */
10869 #include <stdlib.h>
10870 #include <stdarg.h>
10871 #include <string.h>
10872 #include <float.h>
10873
10874 int
10875 main ()
10876 {
10877
10878   ;
10879   return 0;
10880 }
10881 _ACEOF
10882 if ac_fn_c_try_compile "$LINENO"; then :
10883   ac_cv_header_stdc=yes
10884 else
10885   ac_cv_header_stdc=no
10886 fi
10887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10888
10889 if test $ac_cv_header_stdc = yes; then
10890   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h.  */
10893 #include <string.h>
10894
10895 _ACEOF
10896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10897   $EGREP "memchr" >/dev/null 2>&1; then :
10898
10899 else
10900   ac_cv_header_stdc=no
10901 fi
10902 rm -f conftest*
10903
10904 fi
10905
10906 if test $ac_cv_header_stdc = yes; then
10907   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h.  */
10910 #include <stdlib.h>
10911
10912 _ACEOF
10913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10914   $EGREP "free" >/dev/null 2>&1; then :
10915
10916 else
10917   ac_cv_header_stdc=no
10918 fi
10919 rm -f conftest*
10920
10921 fi
10922
10923 if test $ac_cv_header_stdc = yes; then
10924   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10925   if test "$cross_compiling" = yes; then :
10926   :
10927 else
10928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10929 /* end confdefs.h.  */
10930 #include <ctype.h>
10931 #include <stdlib.h>
10932 #if ((' ' & 0x0FF) == 0x020)
10933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10935 #else
10936 # define ISLOWER(c) \
10937                    (('a' <= (c) && (c) <= 'i') \
10938                      || ('j' <= (c) && (c) <= 'r') \
10939                      || ('s' <= (c) && (c) <= 'z'))
10940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10941 #endif
10942
10943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10944 int
10945 main ()
10946 {
10947   int i;
10948   for (i = 0; i < 256; i++)
10949     if (XOR (islower (i), ISLOWER (i))
10950         || toupper (i) != TOUPPER (i))
10951       return 2;
10952   return 0;
10953 }
10954 _ACEOF
10955 if ac_fn_c_try_run "$LINENO"; then :
10956
10957 else
10958   ac_cv_header_stdc=no
10959 fi
10960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10961   conftest.$ac_objext conftest.beam conftest.$ac_ext
10962 fi
10963
10964 fi
10965 fi
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10967 $as_echo "$ac_cv_header_stdc" >&6; }
10968 if test $ac_cv_header_stdc = yes; then
10969
10970 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10971
10972 fi
10973
10974 # elf_hp.h is for HP/UX 64-bit shared library support.
10975 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
10976 # unconditionally, so what's the point in checking these?
10977 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
10978                   thread_db.h gnu/libc-version.h signal.h stddef.h \
10979                   stdlib.h string.h memory.h strings.h sys/fault.h \
10980                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
10981                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
10982                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
10983                   sys/types.h sys/wait.h wait.h termios.h termio.h \
10984                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
10985 do :
10986   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10988 eval as_val=\$$as_ac_Header
10989    if test "x$as_val" = x""yes; then :
10990   cat >>confdefs.h <<_ACEOF
10991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10992 _ACEOF
10993
10994 fi
10995
10996 done
10997
10998 for ac_header in link.h
10999 do :
11000   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11001 # include <sys/types.h>
11002 #endif
11003 #if HAVE_NLIST_H
11004 # include <nlist.h>
11005 #endif
11006
11007 "
11008 if test "x$ac_cv_header_link_h" = x""yes; then :
11009   cat >>confdefs.h <<_ACEOF
11010 #define HAVE_LINK_H 1
11011 _ACEOF
11012
11013 fi
11014
11015 done
11016
11017 for ac_header in sys/proc.h
11018 do :
11019   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11020 # include <sys/param.h>
11021 #endif
11022
11023 "
11024 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11025   cat >>confdefs.h <<_ACEOF
11026 #define HAVE_SYS_PROC_H 1
11027 _ACEOF
11028
11029 fi
11030
11031 done
11032
11033 for ac_header in sys/user.h
11034 do :
11035   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11036 # include <sys/param.h>
11037 #endif
11038
11039 "
11040 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11041   cat >>confdefs.h <<_ACEOF
11042 #define HAVE_SYS_USER_H 1
11043 _ACEOF
11044
11045 fi
11046
11047 done
11048
11049
11050 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11051 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11052 # think that we don't have <curses.h> if we're using GCC.
11053 case $host_os in
11054   solaris2.[789])
11055     if test "$GCC" = yes; then
11056
11057 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11058
11059     fi ;;
11060 esac
11061 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11062 do :
11063   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11064 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11065 eval as_val=\$$as_ac_Header
11066    if test "x$as_val" = x""yes; then :
11067   cat >>confdefs.h <<_ACEOF
11068 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11069 _ACEOF
11070
11071 fi
11072
11073 done
11074
11075 for ac_header in term.h
11076 do :
11077   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11078 # include <curses.h>
11079 #endif
11080
11081 "
11082 if test "x$ac_cv_header_term_h" = x""yes; then :
11083   cat >>confdefs.h <<_ACEOF
11084 #define HAVE_TERM_H 1
11085 _ACEOF
11086
11087 fi
11088
11089 done
11090
11091
11092 # ------------------------- #
11093 # Checks for declarations.  #
11094 # ------------------------- #
11095
11096 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11097 if test "x$ac_cv_have_decl_free" = x""yes; then :
11098   ac_have_decl=1
11099 else
11100   ac_have_decl=0
11101 fi
11102
11103 cat >>confdefs.h <<_ACEOF
11104 #define HAVE_DECL_FREE $ac_have_decl
11105 _ACEOF
11106 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11107 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11108   ac_have_decl=1
11109 else
11110   ac_have_decl=0
11111 fi
11112
11113 cat >>confdefs.h <<_ACEOF
11114 #define HAVE_DECL_MALLOC $ac_have_decl
11115 _ACEOF
11116 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11117 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11118   ac_have_decl=1
11119 else
11120   ac_have_decl=0
11121 fi
11122
11123 cat >>confdefs.h <<_ACEOF
11124 #define HAVE_DECL_REALLOC $ac_have_decl
11125 _ACEOF
11126 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11127 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11128   ac_have_decl=1
11129 else
11130   ac_have_decl=0
11131 fi
11132
11133 cat >>confdefs.h <<_ACEOF
11134 #define HAVE_DECL_STRERROR $ac_have_decl
11135 _ACEOF
11136 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11137 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11138   ac_have_decl=1
11139 else
11140   ac_have_decl=0
11141 fi
11142
11143 cat >>confdefs.h <<_ACEOF
11144 #define HAVE_DECL_STRSTR $ac_have_decl
11145 _ACEOF
11146 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11147 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11148   ac_have_decl=1
11149 else
11150   ac_have_decl=0
11151 fi
11152
11153 cat >>confdefs.h <<_ACEOF
11154 #define HAVE_DECL_GETOPT $ac_have_decl
11155 _ACEOF
11156 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11157 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11158   ac_have_decl=1
11159 else
11160   ac_have_decl=0
11161 fi
11162
11163 cat >>confdefs.h <<_ACEOF
11164 #define HAVE_DECL_SNPRINTF $ac_have_decl
11165 _ACEOF
11166 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11167 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11168   ac_have_decl=1
11169 else
11170   ac_have_decl=0
11171 fi
11172
11173 cat >>confdefs.h <<_ACEOF
11174 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11175 _ACEOF
11176
11177
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11179 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11180 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11181   $as_echo_n "(cached) " >&6
11182 else
11183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h.  */
11185 #include <locale.h>
11186 int
11187 main ()
11188 {
11189 return LC_MESSAGES
11190   ;
11191   return 0;
11192 }
11193 _ACEOF
11194 if ac_fn_c_try_link "$LINENO"; then :
11195   am_cv_val_LC_MESSAGES=yes
11196 else
11197   am_cv_val_LC_MESSAGES=no
11198 fi
11199 rm -f core conftest.err conftest.$ac_objext \
11200     conftest$ac_exeext conftest.$ac_ext
11201 fi
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11203 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11204   if test $am_cv_val_LC_MESSAGES = yes; then
11205
11206 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11207
11208   fi
11209
11210
11211 # ----------------------- #
11212 # Checks for structures.  #
11213 # ----------------------- #
11214
11215 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11216 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11217
11218 cat >>confdefs.h <<_ACEOF
11219 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11220 _ACEOF
11221
11222
11223 fi
11224 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11225 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11226
11227 cat >>confdefs.h <<_ACEOF
11228 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11229 _ACEOF
11230
11231
11232 fi
11233
11234
11235 # ------------------ #
11236 # Checks for types.  #
11237 # ------------------ #
11238
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11240 $as_echo_n "checking return type of signal handlers... " >&6; }
11241 if test "${ac_cv_type_signal+set}" = set; then :
11242   $as_echo_n "(cached) " >&6
11243 else
11244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h.  */
11246 #include <sys/types.h>
11247 #include <signal.h>
11248
11249 int
11250 main ()
11251 {
11252 return *(signal (0, 0)) (0) == 1;
11253   ;
11254   return 0;
11255 }
11256 _ACEOF
11257 if ac_fn_c_try_compile "$LINENO"; then :
11258   ac_cv_type_signal=int
11259 else
11260   ac_cv_type_signal=void
11261 fi
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11265 $as_echo "$ac_cv_type_signal" >&6; }
11266
11267 cat >>confdefs.h <<_ACEOF
11268 #define RETSIGTYPE $ac_cv_type_signal
11269 _ACEOF
11270
11271
11272 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11273 #include <sys/socket.h>
11274
11275 "
11276 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11277
11278 cat >>confdefs.h <<_ACEOF
11279 #define HAVE_SOCKLEN_T 1
11280 _ACEOF
11281
11282
11283 fi
11284
11285
11286 # ------------------------------------- #
11287 # Checks for compiler characteristics.  #
11288 # ------------------------------------- #
11289
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11291 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11292 if test "${ac_cv_c_const+set}" = set; then :
11293   $as_echo_n "(cached) " >&6
11294 else
11295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h.  */
11297
11298 int
11299 main ()
11300 {
11301 /* FIXME: Include the comments suggested by Paul. */
11302 #ifndef __cplusplus
11303   /* Ultrix mips cc rejects this.  */
11304   typedef int charset[2];
11305   const charset cs;
11306   /* SunOS 4.1.1 cc rejects this.  */
11307   char const *const *pcpcc;
11308   char **ppc;
11309   /* NEC SVR4.0.2 mips cc rejects this.  */
11310   struct point {int x, y;};
11311   static struct point const zero = {0,0};
11312   /* AIX XL C 1.02.0.0 rejects this.
11313      It does not let you subtract one const X* pointer from another in
11314      an arm of an if-expression whose if-part is not a constant
11315      expression */
11316   const char *g = "string";
11317   pcpcc = &g + (g ? g-g : 0);
11318   /* HPUX 7.0 cc rejects these. */
11319   ++pcpcc;
11320   ppc = (char**) pcpcc;
11321   pcpcc = (char const *const *) ppc;
11322   { /* SCO 3.2v4 cc rejects this.  */
11323     char *t;
11324     char const *s = 0 ? (char *) 0 : (char const *) 0;
11325
11326     *t++ = 0;
11327     if (s) return 0;
11328   }
11329   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11330     int x[] = {25, 17};
11331     const int *foo = &x[0];
11332     ++foo;
11333   }
11334   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11335     typedef const int *iptr;
11336     iptr p = 0;
11337     ++p;
11338   }
11339   { /* AIX XL C 1.02.0.0 rejects this saying
11340        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11341     struct s { int j; const int *ap[3]; };
11342     struct s *b; b->j = 5;
11343   }
11344   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11345     const int foo = 10;
11346     if (!foo) return 0;
11347   }
11348   return !cs[0] && !zero.x;
11349 #endif
11350
11351   ;
11352   return 0;
11353 }
11354 _ACEOF
11355 if ac_fn_c_try_compile "$LINENO"; then :
11356   ac_cv_c_const=yes
11357 else
11358   ac_cv_c_const=no
11359 fi
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361 fi
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11363 $as_echo "$ac_cv_c_const" >&6; }
11364 if test $ac_cv_c_const = no; then
11365
11366 $as_echo "#define const /**/" >>confdefs.h
11367
11368 fi
11369
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11371 $as_echo_n "checking for inline... " >&6; }
11372 if test "${ac_cv_c_inline+set}" = set; then :
11373   $as_echo_n "(cached) " >&6
11374 else
11375   ac_cv_c_inline=no
11376 for ac_kw in inline __inline__ __inline; do
11377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h.  */
11379 #ifndef __cplusplus
11380 typedef int foo_t;
11381 static $ac_kw foo_t static_foo () {return 0; }
11382 $ac_kw foo_t foo () {return 0; }
11383 #endif
11384
11385 _ACEOF
11386 if ac_fn_c_try_compile "$LINENO"; then :
11387   ac_cv_c_inline=$ac_kw
11388 fi
11389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11390   test "$ac_cv_c_inline" != no && break
11391 done
11392
11393 fi
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11395 $as_echo "$ac_cv_c_inline" >&6; }
11396
11397 case $ac_cv_c_inline in
11398   inline | yes) ;;
11399   *)
11400     case $ac_cv_c_inline in
11401       no) ac_val=;;
11402       *) ac_val=$ac_cv_c_inline;;
11403     esac
11404     cat >>confdefs.h <<_ACEOF
11405 #ifndef __cplusplus
11406 #define inline $ac_val
11407 #endif
11408 _ACEOF
11409     ;;
11410 esac
11411
11412  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11413 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11414 if test "${ac_cv_c_bigendian+set}" = set; then :
11415   $as_echo_n "(cached) " >&6
11416 else
11417   ac_cv_c_bigendian=unknown
11418     # See if we're dealing with a universal compiler.
11419     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11420 /* end confdefs.h.  */
11421 #ifndef __APPLE_CC__
11422                not a universal capable compiler
11423              #endif
11424              typedef int dummy;
11425
11426 _ACEOF
11427 if ac_fn_c_try_compile "$LINENO"; then :
11428
11429         # Check for potential -arch flags.  It is not universal unless
11430         # there are at least two -arch flags with different values.
11431         ac_arch=
11432         ac_prev=
11433         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11434          if test -n "$ac_prev"; then
11435            case $ac_word in
11436              i?86 | x86_64 | ppc | ppc64)
11437                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11438                  ac_arch=$ac_word
11439                else
11440                  ac_cv_c_bigendian=universal
11441                  break
11442                fi
11443                ;;
11444            esac
11445            ac_prev=
11446          elif test "x$ac_word" = "x-arch"; then
11447            ac_prev=arch
11448          fi
11449        done
11450 fi
11451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452     if test $ac_cv_c_bigendian = unknown; then
11453       # See if sys/param.h defines the BYTE_ORDER macro.
11454       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455 /* end confdefs.h.  */
11456 #include <sys/types.h>
11457              #include <sys/param.h>
11458
11459 int
11460 main ()
11461 {
11462 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11463                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11464                      && LITTLE_ENDIAN)
11465               bogus endian macros
11466              #endif
11467
11468   ;
11469   return 0;
11470 }
11471 _ACEOF
11472 if ac_fn_c_try_compile "$LINENO"; then :
11473   # It does; now see whether it defined to BIG_ENDIAN or not.
11474          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h.  */
11476 #include <sys/types.h>
11477                 #include <sys/param.h>
11478
11479 int
11480 main ()
11481 {
11482 #if BYTE_ORDER != BIG_ENDIAN
11483                  not big endian
11484                 #endif
11485
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_compile "$LINENO"; then :
11491   ac_cv_c_bigendian=yes
11492 else
11493   ac_cv_c_bigendian=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498     fi
11499     if test $ac_cv_c_bigendian = unknown; then
11500       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11501       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11502 /* end confdefs.h.  */
11503 #include <limits.h>
11504
11505 int
11506 main ()
11507 {
11508 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11509               bogus endian macros
11510              #endif
11511
11512   ;
11513   return 0;
11514 }
11515 _ACEOF
11516 if ac_fn_c_try_compile "$LINENO"; then :
11517   # It does; now see whether it defined to _BIG_ENDIAN or not.
11518          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h.  */
11520 #include <limits.h>
11521
11522 int
11523 main ()
11524 {
11525 #ifndef _BIG_ENDIAN
11526                  not big endian
11527                 #endif
11528
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_compile "$LINENO"; then :
11534   ac_cv_c_bigendian=yes
11535 else
11536   ac_cv_c_bigendian=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11541     fi
11542     if test $ac_cv_c_bigendian = unknown; then
11543       # Compile a test program.
11544       if test "$cross_compiling" = yes; then :
11545   # Try to guess by grepping values from an object file.
11546          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11547 /* end confdefs.h.  */
11548 short int ascii_mm[] =
11549                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11550                 short int ascii_ii[] =
11551                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11552                 int use_ascii (int i) {
11553                   return ascii_mm[i] + ascii_ii[i];
11554                 }
11555                 short int ebcdic_ii[] =
11556                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11557                 short int ebcdic_mm[] =
11558                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11559                 int use_ebcdic (int i) {
11560                   return ebcdic_mm[i] + ebcdic_ii[i];
11561                 }
11562                 extern int foo;
11563
11564 int
11565 main ()
11566 {
11567 return use_ascii (foo) == use_ebcdic (foo);
11568   ;
11569   return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11574               ac_cv_c_bigendian=yes
11575             fi
11576             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11577               if test "$ac_cv_c_bigendian" = unknown; then
11578                 ac_cv_c_bigendian=no
11579               else
11580                 # finding both strings is unlikely to happen, but who knows?
11581                 ac_cv_c_bigendian=unknown
11582               fi
11583             fi
11584 fi
11585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11586 else
11587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h.  */
11589 $ac_includes_default
11590 int
11591 main ()
11592 {
11593
11594              /* Are we little or big endian?  From Harbison&Steele.  */
11595              union
11596              {
11597                long int l;
11598                char c[sizeof (long int)];
11599              } u;
11600              u.l = 1;
11601              return u.c[sizeof (long int) - 1] == 1;
11602
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 if ac_fn_c_try_run "$LINENO"; then :
11608   ac_cv_c_bigendian=no
11609 else
11610   ac_cv_c_bigendian=yes
11611 fi
11612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11613   conftest.$ac_objext conftest.beam conftest.$ac_ext
11614 fi
11615
11616     fi
11617 fi
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11619 $as_echo "$ac_cv_c_bigendian" >&6; }
11620  case $ac_cv_c_bigendian in #(
11621    yes)
11622      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11623 ;; #(
11624    no)
11625       ;; #(
11626    universal)
11627
11628 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11629
11630      ;; #(
11631    *)
11632      as_fn_error "unknown endianness
11633  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11634  esac
11635
11636
11637 # ------------------------------ #
11638 # Checks for library functions.  #
11639 # ------------------------------ #
11640
11641 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11642 # for constant arguments.  Useless!
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11644 $as_echo_n "checking for working alloca.h... " >&6; }
11645 if test "${ac_cv_working_alloca_h+set}" = set; then :
11646   $as_echo_n "(cached) " >&6
11647 else
11648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h.  */
11650 #include <alloca.h>
11651 int
11652 main ()
11653 {
11654 char *p = (char *) alloca (2 * sizeof (int));
11655                           if (p) return 0;
11656   ;
11657   return 0;
11658 }
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661   ac_cv_working_alloca_h=yes
11662 else
11663   ac_cv_working_alloca_h=no
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666     conftest$ac_exeext conftest.$ac_ext
11667 fi
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11669 $as_echo "$ac_cv_working_alloca_h" >&6; }
11670 if test $ac_cv_working_alloca_h = yes; then
11671
11672 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11673
11674 fi
11675
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11677 $as_echo_n "checking for alloca... " >&6; }
11678 if test "${ac_cv_func_alloca_works+set}" = set; then :
11679   $as_echo_n "(cached) " >&6
11680 else
11681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682 /* end confdefs.h.  */
11683 #ifdef __GNUC__
11684 # define alloca __builtin_alloca
11685 #else
11686 # ifdef _MSC_VER
11687 #  include <malloc.h>
11688 #  define alloca _alloca
11689 # else
11690 #  ifdef HAVE_ALLOCA_H
11691 #   include <alloca.h>
11692 #  else
11693 #   ifdef _AIX
11694  #pragma alloca
11695 #   else
11696 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11697 char *alloca ();
11698 #    endif
11699 #   endif
11700 #  endif
11701 # endif
11702 #endif
11703
11704 int
11705 main ()
11706 {
11707 char *p = (char *) alloca (1);
11708                                     if (p) return 0;
11709   ;
11710   return 0;
11711 }
11712 _ACEOF
11713 if ac_fn_c_try_link "$LINENO"; then :
11714   ac_cv_func_alloca_works=yes
11715 else
11716   ac_cv_func_alloca_works=no
11717 fi
11718 rm -f core conftest.err conftest.$ac_objext \
11719     conftest$ac_exeext conftest.$ac_ext
11720 fi
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11722 $as_echo "$ac_cv_func_alloca_works" >&6; }
11723
11724 if test $ac_cv_func_alloca_works = yes; then
11725
11726 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11727
11728 else
11729   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11730 # that cause trouble.  Some versions do not even contain alloca or
11731 # contain a buggy version.  If you still want to use their alloca,
11732 # use ar to extract alloca.o from them instead of compiling alloca.c.
11733
11734 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11735
11736 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11737
11738
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11740 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11741 if test "${ac_cv_os_cray+set}" = set; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h.  */
11746 #if defined CRAY && ! defined CRAY2
11747 webecray
11748 #else
11749 wenotbecray
11750 #endif
11751
11752 _ACEOF
11753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11754   $EGREP "webecray" >/dev/null 2>&1; then :
11755   ac_cv_os_cray=yes
11756 else
11757   ac_cv_os_cray=no
11758 fi
11759 rm -f conftest*
11760
11761 fi
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11763 $as_echo "$ac_cv_os_cray" >&6; }
11764 if test $ac_cv_os_cray = yes; then
11765   for ac_func in _getb67 GETB67 getb67; do
11766     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11767 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11768 eval as_val=\$$as_ac_var
11769    if test "x$as_val" = x""yes; then :
11770
11771 cat >>confdefs.h <<_ACEOF
11772 #define CRAY_STACKSEG_END $ac_func
11773 _ACEOF
11774
11775     break
11776 fi
11777
11778   done
11779 fi
11780
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11782 $as_echo_n "checking stack direction for C alloca... " >&6; }
11783 if test "${ac_cv_c_stack_direction+set}" = set; then :
11784   $as_echo_n "(cached) " >&6
11785 else
11786   if test "$cross_compiling" = yes; then :
11787   ac_cv_c_stack_direction=0
11788 else
11789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h.  */
11791 $ac_includes_default
11792 int
11793 find_stack_direction ()
11794 {
11795   static char *addr = 0;
11796   auto char dummy;
11797   if (addr == 0)
11798     {
11799       addr = &dummy;
11800       return find_stack_direction ();
11801     }
11802   else
11803     return (&dummy > addr) ? 1 : -1;
11804 }
11805
11806 int
11807 main ()
11808 {
11809   return find_stack_direction () < 0;
11810 }
11811 _ACEOF
11812 if ac_fn_c_try_run "$LINENO"; then :
11813   ac_cv_c_stack_direction=1
11814 else
11815   ac_cv_c_stack_direction=-1
11816 fi
11817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11818   conftest.$ac_objext conftest.beam conftest.$ac_ext
11819 fi
11820
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11823 $as_echo "$ac_cv_c_stack_direction" >&6; }
11824 cat >>confdefs.h <<_ACEOF
11825 #define STACK_DIRECTION $ac_cv_c_stack_direction
11826 _ACEOF
11827
11828
11829 fi
11830
11831 for ac_header in stdlib.h unistd.h
11832 do :
11833   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11834 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11835 eval as_val=\$$as_ac_Header
11836    if test "x$as_val" = x""yes; then :
11837   cat >>confdefs.h <<_ACEOF
11838 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11839 _ACEOF
11840
11841 fi
11842
11843 done
11844
11845 for ac_func in getpagesize
11846 do :
11847   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11848 if test "x$ac_cv_func_getpagesize" = x""yes; then :
11849   cat >>confdefs.h <<_ACEOF
11850 #define HAVE_GETPAGESIZE 1
11851 _ACEOF
11852
11853 fi
11854 done
11855
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
11857 $as_echo_n "checking for working mmap... " >&6; }
11858 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
11859   $as_echo_n "(cached) " >&6
11860 else
11861   if test "$cross_compiling" = yes; then :
11862   ac_cv_func_mmap_fixed_mapped=no
11863 else
11864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11865 /* end confdefs.h.  */
11866 $ac_includes_default
11867 /* malloc might have been renamed as rpl_malloc. */
11868 #undef malloc
11869
11870 /* Thanks to Mike Haertel and Jim Avera for this test.
11871    Here is a matrix of mmap possibilities:
11872         mmap private not fixed
11873         mmap private fixed at somewhere currently unmapped
11874         mmap private fixed at somewhere already mapped
11875         mmap shared not fixed
11876         mmap shared fixed at somewhere currently unmapped
11877         mmap shared fixed at somewhere already mapped
11878    For private mappings, we should verify that changes cannot be read()
11879    back from the file, nor mmap's back from the file at a different
11880    address.  (There have been systems where private was not correctly
11881    implemented like the infamous i386 svr4.0, and systems where the
11882    VM page cache was not coherent with the file system buffer cache
11883    like early versions of FreeBSD and possibly contemporary NetBSD.)
11884    For shared mappings, we should conversely verify that changes get
11885    propagated back to all the places they're supposed to be.
11886
11887    Grep wants private fixed already mapped.
11888    The main things grep needs to know about mmap are:
11889    * does it exist and is it safe to write into the mmap'd area
11890    * how to use it (BSD variants)  */
11891
11892 #include <fcntl.h>
11893 #include <sys/mman.h>
11894
11895 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
11896 char *malloc ();
11897 #endif
11898
11899 /* This mess was copied from the GNU getpagesize.h.  */
11900 #ifndef HAVE_GETPAGESIZE
11901 /* Assume that all systems that can run configure have sys/param.h.  */
11902 # ifndef HAVE_SYS_PARAM_H
11903 #  define HAVE_SYS_PARAM_H 1
11904 # endif
11905
11906 # ifdef _SC_PAGESIZE
11907 #  define getpagesize() sysconf(_SC_PAGESIZE)
11908 # else /* no _SC_PAGESIZE */
11909 #  ifdef HAVE_SYS_PARAM_H
11910 #   include <sys/param.h>
11911 #   ifdef EXEC_PAGESIZE
11912 #    define getpagesize() EXEC_PAGESIZE
11913 #   else /* no EXEC_PAGESIZE */
11914 #    ifdef NBPG
11915 #     define getpagesize() NBPG * CLSIZE
11916 #     ifndef CLSIZE
11917 #      define CLSIZE 1
11918 #     endif /* no CLSIZE */
11919 #    else /* no NBPG */
11920 #     ifdef NBPC
11921 #      define getpagesize() NBPC
11922 #     else /* no NBPC */
11923 #      ifdef PAGESIZE
11924 #       define getpagesize() PAGESIZE
11925 #      endif /* PAGESIZE */
11926 #     endif /* no NBPC */
11927 #    endif /* no NBPG */
11928 #   endif /* no EXEC_PAGESIZE */
11929 #  else /* no HAVE_SYS_PARAM_H */
11930 #   define getpagesize() 8192   /* punt totally */
11931 #  endif /* no HAVE_SYS_PARAM_H */
11932 # endif /* no _SC_PAGESIZE */
11933
11934 #endif /* no HAVE_GETPAGESIZE */
11935
11936 int
11937 main ()
11938 {
11939   char *data, *data2, *data3;
11940   int i, pagesize;
11941   int fd;
11942
11943   pagesize = getpagesize ();
11944
11945   /* First, make a file with some known garbage in it. */
11946   data = (char *) malloc (pagesize);
11947   if (!data)
11948     return 1;
11949   for (i = 0; i < pagesize; ++i)
11950     *(data + i) = rand ();
11951   umask (0);
11952   fd = creat ("conftest.mmap", 0600);
11953   if (fd < 0)
11954     return 1;
11955   if (write (fd, data, pagesize) != pagesize)
11956     return 1;
11957   close (fd);
11958
11959   /* Next, try to mmap the file at a fixed address which already has
11960      something else allocated at it.  If we can, also make sure that
11961      we see the same garbage.  */
11962   fd = open ("conftest.mmap", O_RDWR);
11963   if (fd < 0)
11964     return 1;
11965   data2 = (char *) malloc (2 * pagesize);
11966   if (!data2)
11967     return 1;
11968   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11969   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11970                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
11971     return 1;
11972   for (i = 0; i < pagesize; ++i)
11973     if (*(data + i) != *(data2 + i))
11974       return 1;
11975
11976   /* Finally, make sure that changes to the mapped area do not
11977      percolate back to the file as seen by read().  (This is a bug on
11978      some variants of i386 svr4.0.)  */
11979   for (i = 0; i < pagesize; ++i)
11980     *(data2 + i) = *(data2 + i) + 1;
11981   data3 = (char *) malloc (pagesize);
11982   if (!data3)
11983     return 1;
11984   if (read (fd, data3, pagesize) != pagesize)
11985     return 1;
11986   for (i = 0; i < pagesize; ++i)
11987     if (*(data + i) != *(data3 + i))
11988       return 1;
11989   close (fd);
11990   return 0;
11991 }
11992 _ACEOF
11993 if ac_fn_c_try_run "$LINENO"; then :
11994   ac_cv_func_mmap_fixed_mapped=yes
11995 else
11996   ac_cv_func_mmap_fixed_mapped=no
11997 fi
11998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11999   conftest.$ac_objext conftest.beam conftest.$ac_ext
12000 fi
12001
12002 fi
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12004 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12005 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12006
12007 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12008
12009 fi
12010 rm -f conftest.mmap
12011
12012 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12013 if test "x$ac_cv_type_pid_t" = x""yes; then :
12014
12015 else
12016
12017 cat >>confdefs.h <<_ACEOF
12018 #define pid_t int
12019 _ACEOF
12020
12021 fi
12022
12023 for ac_header in vfork.h
12024 do :
12025   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12026 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12027   cat >>confdefs.h <<_ACEOF
12028 #define HAVE_VFORK_H 1
12029 _ACEOF
12030
12031 fi
12032
12033 done
12034
12035 for ac_func in fork vfork
12036 do :
12037   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12039 eval as_val=\$$as_ac_var
12040    if test "x$as_val" = x""yes; then :
12041   cat >>confdefs.h <<_ACEOF
12042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12043 _ACEOF
12044
12045 fi
12046 done
12047
12048 if test "x$ac_cv_func_fork" = xyes; then
12049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12050 $as_echo_n "checking for working fork... " >&6; }
12051 if test "${ac_cv_func_fork_works+set}" = set; then :
12052   $as_echo_n "(cached) " >&6
12053 else
12054   if test "$cross_compiling" = yes; then :
12055   ac_cv_func_fork_works=cross
12056 else
12057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h.  */
12059 $ac_includes_default
12060 int
12061 main ()
12062 {
12063
12064           /* By Ruediger Kuhlmann. */
12065           return fork () < 0;
12066
12067   ;
12068   return 0;
12069 }
12070 _ACEOF
12071 if ac_fn_c_try_run "$LINENO"; then :
12072   ac_cv_func_fork_works=yes
12073 else
12074   ac_cv_func_fork_works=no
12075 fi
12076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12077   conftest.$ac_objext conftest.beam conftest.$ac_ext
12078 fi
12079
12080 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12082 $as_echo "$ac_cv_func_fork_works" >&6; }
12083
12084 else
12085   ac_cv_func_fork_works=$ac_cv_func_fork
12086 fi
12087 if test "x$ac_cv_func_fork_works" = xcross; then
12088   case $host in
12089     *-*-amigaos* | *-*-msdosdjgpp*)
12090       # Override, as these systems have only a dummy fork() stub
12091       ac_cv_func_fork_works=no
12092       ;;
12093     *)
12094       ac_cv_func_fork_works=yes
12095       ;;
12096   esac
12097   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12098 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12099 fi
12100 ac_cv_func_vfork_works=$ac_cv_func_vfork
12101 if test "x$ac_cv_func_vfork" = xyes; then
12102   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12103 $as_echo_n "checking for working vfork... " >&6; }
12104 if test "${ac_cv_func_vfork_works+set}" = set; then :
12105   $as_echo_n "(cached) " >&6
12106 else
12107   if test "$cross_compiling" = yes; then :
12108   ac_cv_func_vfork_works=cross
12109 else
12110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111 /* end confdefs.h.  */
12112 /* Thanks to Paul Eggert for this test.  */
12113 $ac_includes_default
12114 #include <sys/wait.h>
12115 #ifdef HAVE_VFORK_H
12116 # include <vfork.h>
12117 #endif
12118 /* On some sparc systems, changes by the child to local and incoming
12119    argument registers are propagated back to the parent.  The compiler
12120    is told about this with #include <vfork.h>, but some compilers
12121    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12122    static variable whose address is put into a register that is
12123    clobbered by the vfork.  */
12124 static void
12125 #ifdef __cplusplus
12126 sparc_address_test (int arg)
12127 # else
12128 sparc_address_test (arg) int arg;
12129 #endif
12130 {
12131   static pid_t child;
12132   if (!child) {
12133     child = vfork ();
12134     if (child < 0) {
12135       perror ("vfork");
12136       _exit(2);
12137     }
12138     if (!child) {
12139       arg = getpid();
12140       write(-1, "", 0);
12141       _exit (arg);
12142     }
12143   }
12144 }
12145
12146 int
12147 main ()
12148 {
12149   pid_t parent = getpid ();
12150   pid_t child;
12151
12152   sparc_address_test (0);
12153
12154   child = vfork ();
12155
12156   if (child == 0) {
12157     /* Here is another test for sparc vfork register problems.  This
12158        test uses lots of local variables, at least as many local
12159        variables as main has allocated so far including compiler
12160        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12161        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12162        reuse the register of parent for one of the local variables,
12163        since it will think that parent can't possibly be used any more
12164        in this routine.  Assigning to the local variable will thus
12165        munge parent in the parent process.  */
12166     pid_t
12167       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12168       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12169     /* Convince the compiler that p..p7 are live; otherwise, it might
12170        use the same hardware register for all 8 local variables.  */
12171     if (p != p1 || p != p2 || p != p3 || p != p4
12172         || p != p5 || p != p6 || p != p7)
12173       _exit(1);
12174
12175     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12176        from child file descriptors.  If the child closes a descriptor
12177        before it execs or exits, this munges the parent's descriptor
12178        as well.  Test for this by closing stdout in the child.  */
12179     _exit(close(fileno(stdout)) != 0);
12180   } else {
12181     int status;
12182     struct stat st;
12183
12184     while (wait(&status) != child)
12185       ;
12186     return (
12187          /* Was there some problem with vforking?  */
12188          child < 0
12189
12190          /* Did the child fail?  (This shouldn't happen.)  */
12191          || status
12192
12193          /* Did the vfork/compiler bug occur?  */
12194          || parent != getpid()
12195
12196          /* Did the file descriptor bug occur?  */
12197          || fstat(fileno(stdout), &st) != 0
12198          );
12199   }
12200 }
12201 _ACEOF
12202 if ac_fn_c_try_run "$LINENO"; then :
12203   ac_cv_func_vfork_works=yes
12204 else
12205   ac_cv_func_vfork_works=no
12206 fi
12207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12208   conftest.$ac_objext conftest.beam conftest.$ac_ext
12209 fi
12210
12211 fi
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12213 $as_echo "$ac_cv_func_vfork_works" >&6; }
12214
12215 fi;
12216 if test "x$ac_cv_func_fork_works" = xcross; then
12217   ac_cv_func_vfork_works=$ac_cv_func_vfork
12218   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12219 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12220 fi
12221
12222 if test "x$ac_cv_func_vfork_works" = xyes; then
12223
12224 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12225
12226 else
12227
12228 $as_echo "#define vfork fork" >>confdefs.h
12229
12230 fi
12231 if test "x$ac_cv_func_fork_works" = xyes; then
12232
12233 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12234
12235 fi
12236
12237 for ac_func in canonicalize_file_name realpath getrusage getuid \
12238                 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
12239                 sigaction sigprocmask sigsetmask socketpair syscall \
12240                 ttrace wborder setlocale iconvlist libiconvlist btowc \
12241                 setrlimit getrlimit posix_madvise
12242 do :
12243   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12245 eval as_val=\$$as_ac_var
12246    if test "x$as_val" = x""yes; then :
12247   cat >>confdefs.h <<_ACEOF
12248 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12249 _ACEOF
12250
12251 fi
12252 done
12253
12254
12255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12256 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12257 if test "${am_cv_langinfo_codeset+set}" = set; then :
12258   $as_echo_n "(cached) " >&6
12259 else
12260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h.  */
12262 #include <langinfo.h>
12263 int
12264 main ()
12265 {
12266 char* cs = nl_langinfo(CODESET);
12267   ;
12268   return 0;
12269 }
12270 _ACEOF
12271 if ac_fn_c_try_link "$LINENO"; then :
12272   am_cv_langinfo_codeset=yes
12273 else
12274   am_cv_langinfo_codeset=no
12275 fi
12276 rm -f core conftest.err conftest.$ac_objext \
12277     conftest$ac_exeext conftest.$ac_ext
12278
12279 fi
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12281 $as_echo "$am_cv_langinfo_codeset" >&6; }
12282   if test $am_cv_langinfo_codeset = yes; then
12283
12284 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12285
12286   fi
12287
12288
12289 # Check the return and argument types of ptrace.  No canned test for
12290 # this, so roll our own.
12291 gdb_ptrace_headers='
12292 #if HAVE_SYS_TYPES_H
12293 # include <sys/types.h>
12294 #endif
12295 #if HAVE_SYS_PTRACE_H
12296 # include <sys/ptrace.h>
12297 #endif
12298 #if HAVE_UNISTD_H
12299 # include <unistd.h>
12300 #endif
12301 '
12302 # There is no point in checking if we don't have a prototype.
12303 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12304 "
12305 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12306   ac_have_decl=1
12307 else
12308   ac_have_decl=0
12309 fi
12310
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_DECL_PTRACE $ac_have_decl
12313 _ACEOF
12314 if test $ac_have_decl = 1; then :
12315
12316 else
12317
12318   : ${gdb_cv_func_ptrace_ret='int'}
12319   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12320
12321 fi
12322
12323 # Check return type.  Varargs (used on GNU/Linux) conflict with the
12324 # empty argument list, so check for that explicitly.
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12326 $as_echo_n "checking return type of ptrace... " >&6; }
12327 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12331 /* end confdefs.h.  */
12332 $gdb_ptrace_headers
12333 int
12334 main ()
12335 {
12336 extern long ptrace (enum __ptrace_request, ...);
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 if ac_fn_c_try_compile "$LINENO"; then :
12342   gdb_cv_func_ptrace_ret='long'
12343 else
12344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12345 /* end confdefs.h.  */
12346 $gdb_ptrace_headers
12347 int
12348 main ()
12349 {
12350 extern int ptrace ();
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 if ac_fn_c_try_compile "$LINENO"; then :
12356   gdb_cv_func_ptrace_ret='int'
12357 else
12358   gdb_cv_func_ptrace_ret='long'
12359 fi
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 fi
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12365 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12366
12367 cat >>confdefs.h <<_ACEOF
12368 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12369 _ACEOF
12370
12371 # Check argument types.
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12373 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12374 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12375   $as_echo_n "(cached) " >&6
12376 else
12377
12378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379 /* end confdefs.h.  */
12380 $gdb_ptrace_headers
12381 int
12382 main ()
12383 {
12384 extern long ptrace (enum __ptrace_request, ...);
12385   ;
12386   return 0;
12387 }
12388 _ACEOF
12389 if ac_fn_c_try_compile "$LINENO"; then :
12390   gdb_cv_func_ptrace_args='int,int,long,long'
12391 else
12392
12393 for gdb_arg1 in 'int' 'long'; do
12394  for gdb_arg2 in 'pid_t' 'int' 'long'; do
12395   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12396    for gdb_arg4 in 'int' 'long'; do
12397      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12398 /* end confdefs.h.  */
12399 $gdb_ptrace_headers
12400 int
12401 main ()
12402 {
12403
12404 extern $gdb_cv_func_ptrace_ret
12405   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12406
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 if ac_fn_c_try_compile "$LINENO"; then :
12412   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12413     break 4;
12414 fi
12415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12416     for gdb_arg5 in 'int *' 'int' 'long'; do
12417      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h.  */
12419 $gdb_ptrace_headers
12420 int
12421 main ()
12422 {
12423
12424 extern $gdb_cv_func_ptrace_ret
12425   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12426
12427   ;
12428   return 0;
12429 }
12430 _ACEOF
12431 if ac_fn_c_try_compile "$LINENO"; then :
12432
12433 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12434     break 5;
12435 fi
12436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437     done
12438    done
12439   done
12440  done
12441 done
12442 # Provide a safe default value.
12443 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12444
12445 fi
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 fi
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12449 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12450 ac_save_IFS=$IFS; IFS=','
12451 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12452 IFS=$ac_save_IFS
12453 shift
12454
12455 cat >>confdefs.h <<_ACEOF
12456 #define PTRACE_TYPE_ARG3 $3
12457 _ACEOF
12458
12459 if test -n "$5"; then
12460
12461 cat >>confdefs.h <<_ACEOF
12462 #define PTRACE_TYPE_ARG5 $5
12463 _ACEOF
12464
12465 fi
12466
12467 if test "$cross_compiling" = no; then
12468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12469 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12470 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12471   $as_echo_n "(cached) " >&6
12472 else
12473   if test "$cross_compiling" = yes; then :
12474   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12475 else
12476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h.  */
12478 $ac_includes_default
12479 int
12480 main ()
12481 {
12482 /* If this system has a BSD-style setpgrp which takes arguments,
12483   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12484   exit successfully. */
12485   return setpgrp (1,1) != -1;
12486   ;
12487   return 0;
12488 }
12489 _ACEOF
12490 if ac_fn_c_try_run "$LINENO"; then :
12491   ac_cv_func_setpgrp_void=no
12492 else
12493   ac_cv_func_setpgrp_void=yes
12494 fi
12495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12496   conftest.$ac_objext conftest.beam conftest.$ac_ext
12497 fi
12498
12499 fi
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12501 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12502 if test $ac_cv_func_setpgrp_void = yes; then
12503
12504 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12505
12506 fi
12507
12508 else
12509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12510 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12511 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12512   $as_echo_n "(cached) " >&6
12513 else
12514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h.  */
12516
12517 #include <unistd.h>
12518
12519 int
12520 main ()
12521 {
12522
12523   if (setpgrp(1,1) == -1)
12524     exit (0);
12525   else
12526     exit (1);
12527
12528   ;
12529   return 0;
12530 }
12531 _ACEOF
12532 if ac_fn_c_try_compile "$LINENO"; then :
12533   ac_cv_func_setpgrp_void=no
12534 else
12535   ac_cv_func_setpgrp_void=yes
12536 fi
12537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12538 fi
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12540 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12541 if test $ac_cv_func_setpgrp_void = yes; then
12542   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12543
12544 fi
12545 fi
12546
12547 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
12548 # since sigsetjmp might only be defined as a macro.
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12550 $as_echo_n "checking for sigsetjmp... " >&6; }
12551 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12552   $as_echo_n "(cached) " >&6
12553 else
12554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12555 /* end confdefs.h.  */
12556
12557 #include <setjmp.h>
12558
12559 int
12560 main ()
12561 {
12562 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12563   ;
12564   return 0;
12565 }
12566 _ACEOF
12567 if ac_fn_c_try_compile "$LINENO"; then :
12568   gdb_cv_func_sigsetjmp=yes
12569 else
12570   gdb_cv_func_sigsetjmp=no
12571 fi
12572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12573 fi
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12575 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12576 if test $gdb_cv_func_sigsetjmp = yes; then
12577
12578 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12579
12580 fi
12581
12582 # Assume we'll default to using the included libiberty regex.
12583 gdb_use_included_regex=yes
12584
12585 # However, if the system regex is GNU regex, then default to *not*
12586 # using the included regex.
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12588 $as_echo_n "checking for GNU regex... " >&6; }
12589 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h.  */
12594 #include <gnu-versions.h>
12595 int
12596 main ()
12597 {
12598 #define REGEX_INTERFACE_VERSION 1
12599 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12600 # error "Version mismatch"
12601 #endif
12602   ;
12603   return 0;
12604 }
12605 _ACEOF
12606 if ac_fn_c_try_compile "$LINENO"; then :
12607   gdb_cv_have_gnu_regex=yes
12608 else
12609   gdb_cv_have_gnu_regex=no
12610 fi
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12614 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12615 if test $gdb_cv_have_gnu_regex = yes; then
12616   gdb_use_included_regex=no
12617 fi
12618
12619
12620 # Check whether --with-included-regex was given.
12621 if test "${with_included_regex+set}" = set; then :
12622   withval=$with_included_regex; gdb_with_regex=$withval
12623 else
12624   gdb_with_regex=$gdb_use_included_regex
12625 fi
12626
12627 if test "$gdb_with_regex" = yes; then
12628
12629 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12630
12631 fi
12632
12633 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12634 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12635 #include <sys/proc.h>
12636
12637 "
12638 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12639
12640 cat >>confdefs.h <<_ACEOF
12641 #define HAVE_STRUCT_THREAD_TD_PCB 1
12642 _ACEOF
12643
12644
12645 fi
12646
12647
12648 # See if <sys/lwp.h> defines `struct lwp`.
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12650 $as_echo_n "checking for struct lwp... " >&6; }
12651 if test "${gdb_cv_struct_lwp+set}" = set; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h.  */
12656 #include <sys/param.h>
12657 #include <sys/lwp.h>
12658 int
12659 main ()
12660 {
12661 struct lwp l;
12662   ;
12663   return 0;
12664 }
12665 _ACEOF
12666 if ac_fn_c_try_compile "$LINENO"; then :
12667   gdb_cv_struct_lwp=yes
12668 else
12669   gdb_cv_struct_lwp=no
12670 fi
12671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 fi
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12674 $as_echo "$gdb_cv_struct_lwp" >&6; }
12675 if test $gdb_cv_struct_lwp = yes; then
12676
12677 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12678
12679 fi
12680
12681 # See if <machine/reg.h> degines `struct reg'.
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12683 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12684 if test "${gdb_cv_struct_reg+set}" = set; then :
12685   $as_echo_n "(cached) " >&6
12686 else
12687   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h.  */
12689 #include <sys/types.h>
12690 #include <machine/reg.h>
12691 int
12692 main ()
12693 {
12694 struct reg r;
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 if ac_fn_c_try_compile "$LINENO"; then :
12700   gdb_cv_struct_reg=yes
12701 else
12702   gdb_cv_struct_reg=no
12703 fi
12704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705 fi
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12707 $as_echo "$gdb_cv_struct_reg" >&6; }
12708 if test $gdb_cv_struct_reg = yes; then
12709
12710 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12711
12712 fi
12713
12714 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12715 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12716 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12717 "
12718 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12719
12720 cat >>confdefs.h <<_ACEOF
12721 #define HAVE_STRUCT_REG_R_FS 1
12722 _ACEOF
12723
12724
12725 fi
12726 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12727 "
12728 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12729
12730 cat >>confdefs.h <<_ACEOF
12731 #define HAVE_STRUCT_REG_R_GS 1
12732 _ACEOF
12733
12734
12735 fi
12736
12737
12738 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
12740 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
12741 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
12742   $as_echo_n "(cached) " >&6
12743 else
12744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h.  */
12746 #include <sys/ptrace.h>
12747 int
12748 main ()
12749 {
12750 PTRACE_GETREGS;
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 if ac_fn_c_try_compile "$LINENO"; then :
12756   gdb_cv_have_ptrace_getregs=yes
12757 else
12758   gdb_cv_have_ptrace_getregs=no
12759 fi
12760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12761 fi
12762
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
12764 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
12765 if test $gdb_cv_have_ptrace_getregs = yes; then
12766
12767 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
12768
12769 fi
12770
12771 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
12773 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
12774 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
12775   $as_echo_n "(cached) " >&6
12776 else
12777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h.  */
12779 #include <sys/ptrace.h>
12780 int
12781 main ()
12782 {
12783 PTRACE_GETFPXREGS;
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 if ac_fn_c_try_compile "$LINENO"; then :
12789   gdb_cv_have_ptrace_getfpxregs=yes
12790 else
12791   gdb_cv_have_ptrace_getfpxregs=no
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 fi
12795
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
12797 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
12798 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
12799
12800 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
12801
12802 fi
12803
12804 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
12806 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
12807 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
12808   $as_echo_n "(cached) " >&6
12809 else
12810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h.  */
12812 #include <sys/types.h>
12813 #include <sys/ptrace.h>
12814 int
12815 main ()
12816 {
12817 PT_GETDBREGS;
12818   ;
12819   return 0;
12820 }
12821 _ACEOF
12822 if ac_fn_c_try_compile "$LINENO"; then :
12823   gdb_cv_have_pt_getdbregs=yes
12824 else
12825   gdb_cv_have_pt_getdbregs=no
12826 fi
12827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828 fi
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
12831 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
12832 if test $gdb_cv_have_pt_getdbregs = yes; then
12833
12834 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
12835
12836 fi
12837
12838 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
12840 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
12841 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
12842   $as_echo_n "(cached) " >&6
12843 else
12844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12845 /* end confdefs.h.  */
12846 #include <sys/types.h>
12847 #include <sys/ptrace.h>
12848 int
12849 main ()
12850 {
12851 PT_GETXMMREGS;
12852   ;
12853   return 0;
12854 }
12855 _ACEOF
12856 if ac_fn_c_try_compile "$LINENO"; then :
12857   gdb_cv_have_pt_getxmmregs=yes
12858 else
12859   gdb_cv_have_pt_getxmmregs=no
12860 fi
12861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 fi
12863
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
12865 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
12866 if test $gdb_cv_have_pt_getxmmregs = yes; then
12867
12868 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
12869
12870 fi
12871
12872 # Detect which type of /proc is in use, such as for Unixware or Solaris.
12873
12874 if test "${target}" = "${host}"; then
12875   case "${host}" in
12876   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
12877
12878 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12879
12880       ;;
12881   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
12882
12883 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
12884
12885       ;;
12886   mips-sgi-irix5*)
12887       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
12888
12889 $as_echo "#define _KMEMUSER 1" >>confdefs.h
12890
12891       ;;
12892   esac
12893 fi
12894
12895 if test "$ac_cv_header_sys_procfs_h" = yes; then
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
12897 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
12898  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
12899   $as_echo_n "(cached) " >&6
12900 else
12901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12902 /* end confdefs.h.  */
12903
12904 #define _SYSCALL32
12905 /* Needed for new procfs interface on sparc-solaris.  */
12906 #define _STRUCTURED_PROC 1
12907 #include <sys/procfs.h>
12908 int
12909 main ()
12910 {
12911 pstatus_t avar
12912   ;
12913   return 0;
12914 }
12915 _ACEOF
12916 if ac_fn_c_try_compile "$LINENO"; then :
12917   bfd_cv_have_sys_procfs_type_pstatus_t=yes
12918 else
12919   bfd_cv_have_sys_procfs_type_pstatus_t=no
12920
12921 fi
12922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923 fi
12924
12925  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
12926
12927 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
12928
12929  fi
12930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
12931 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
12932
12933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
12934 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
12935  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
12936   $as_echo_n "(cached) " >&6
12937 else
12938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12939 /* end confdefs.h.  */
12940
12941 #define _SYSCALL32
12942 /* Needed for new procfs interface on sparc-solaris.  */
12943 #define _STRUCTURED_PROC 1
12944 #include <sys/procfs.h>
12945 int
12946 main ()
12947 {
12948 prrun_t avar
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 if ac_fn_c_try_compile "$LINENO"; then :
12954   bfd_cv_have_sys_procfs_type_prrun_t=yes
12955 else
12956   bfd_cv_have_sys_procfs_type_prrun_t=no
12957
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960 fi
12961
12962  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
12963
12964 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
12965
12966  fi
12967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
12968 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
12969
12970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
12971 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
12972  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
12973   $as_echo_n "(cached) " >&6
12974 else
12975   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h.  */
12977
12978 #define _SYSCALL32
12979 /* Needed for new procfs interface on sparc-solaris.  */
12980 #define _STRUCTURED_PROC 1
12981 #include <sys/procfs.h>
12982 int
12983 main ()
12984 {
12985 gregset_t avar
12986   ;
12987   return 0;
12988 }
12989 _ACEOF
12990 if ac_fn_c_try_compile "$LINENO"; then :
12991   bfd_cv_have_sys_procfs_type_gregset_t=yes
12992 else
12993   bfd_cv_have_sys_procfs_type_gregset_t=no
12994
12995 fi
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 fi
12998
12999  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13000
13001 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13002
13003  fi
13004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13005 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13006
13007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13008 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13009  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13010   $as_echo_n "(cached) " >&6
13011 else
13012   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13013 /* end confdefs.h.  */
13014
13015 #define _SYSCALL32
13016 /* Needed for new procfs interface on sparc-solaris.  */
13017 #define _STRUCTURED_PROC 1
13018 #include <sys/procfs.h>
13019 int
13020 main ()
13021 {
13022 fpregset_t avar
13023   ;
13024   return 0;
13025 }
13026 _ACEOF
13027 if ac_fn_c_try_compile "$LINENO"; then :
13028   bfd_cv_have_sys_procfs_type_fpregset_t=yes
13029 else
13030   bfd_cv_have_sys_procfs_type_fpregset_t=no
13031
13032 fi
13033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034 fi
13035
13036  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13037
13038 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13039
13040  fi
13041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13042 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13043
13044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13045 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13046  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13047   $as_echo_n "(cached) " >&6
13048 else
13049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13050 /* end confdefs.h.  */
13051
13052 #define _SYSCALL32
13053 /* Needed for new procfs interface on sparc-solaris.  */
13054 #define _STRUCTURED_PROC 1
13055 #include <sys/procfs.h>
13056 int
13057 main ()
13058 {
13059 prgregset_t avar
13060   ;
13061   return 0;
13062 }
13063 _ACEOF
13064 if ac_fn_c_try_compile "$LINENO"; then :
13065   bfd_cv_have_sys_procfs_type_prgregset_t=yes
13066 else
13067   bfd_cv_have_sys_procfs_type_prgregset_t=no
13068
13069 fi
13070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13071 fi
13072
13073  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13074
13075 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13076
13077  fi
13078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13079 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13080
13081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13082 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13083  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13084   $as_echo_n "(cached) " >&6
13085 else
13086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h.  */
13088
13089 #define _SYSCALL32
13090 /* Needed for new procfs interface on sparc-solaris.  */
13091 #define _STRUCTURED_PROC 1
13092 #include <sys/procfs.h>
13093 int
13094 main ()
13095 {
13096 prfpregset_t avar
13097   ;
13098   return 0;
13099 }
13100 _ACEOF
13101 if ac_fn_c_try_compile "$LINENO"; then :
13102   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13103 else
13104   bfd_cv_have_sys_procfs_type_prfpregset_t=no
13105
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13108 fi
13109
13110  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13111
13112 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13113
13114  fi
13115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13116 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13117
13118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13119 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13120  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13121   $as_echo_n "(cached) " >&6
13122 else
13123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h.  */
13125
13126 #define _SYSCALL32
13127 /* Needed for new procfs interface on sparc-solaris.  */
13128 #define _STRUCTURED_PROC 1
13129 #include <sys/procfs.h>
13130 int
13131 main ()
13132 {
13133 prgregset32_t avar
13134   ;
13135   return 0;
13136 }
13137 _ACEOF
13138 if ac_fn_c_try_compile "$LINENO"; then :
13139   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13140 else
13141   bfd_cv_have_sys_procfs_type_prgregset32_t=no
13142
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13145 fi
13146
13147  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13148
13149 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13150
13151  fi
13152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13153 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13154
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13156 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13157  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13158   $as_echo_n "(cached) " >&6
13159 else
13160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h.  */
13162
13163 #define _SYSCALL32
13164 /* Needed for new procfs interface on sparc-solaris.  */
13165 #define _STRUCTURED_PROC 1
13166 #include <sys/procfs.h>
13167 int
13168 main ()
13169 {
13170 prfpregset32_t avar
13171   ;
13172   return 0;
13173 }
13174 _ACEOF
13175 if ac_fn_c_try_compile "$LINENO"; then :
13176   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13177 else
13178   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13179
13180 fi
13181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 fi
13183
13184  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13185
13186 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13187
13188  fi
13189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13190 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13191
13192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13193 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13194  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13195   $as_echo_n "(cached) " >&6
13196 else
13197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13198 /* end confdefs.h.  */
13199
13200 #define _SYSCALL32
13201 /* Needed for new procfs interface on sparc-solaris.  */
13202 #define _STRUCTURED_PROC 1
13203 #include <sys/procfs.h>
13204 int
13205 main ()
13206 {
13207 lwpid_t avar
13208   ;
13209   return 0;
13210 }
13211 _ACEOF
13212 if ac_fn_c_try_compile "$LINENO"; then :
13213   bfd_cv_have_sys_procfs_type_lwpid_t=yes
13214 else
13215   bfd_cv_have_sys_procfs_type_lwpid_t=no
13216
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 fi
13220
13221  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13222
13223 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13224
13225  fi
13226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13227 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13228
13229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13230 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13231  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13232   $as_echo_n "(cached) " >&6
13233 else
13234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h.  */
13236
13237 #define _SYSCALL32
13238 /* Needed for new procfs interface on sparc-solaris.  */
13239 #define _STRUCTURED_PROC 1
13240 #include <sys/procfs.h>
13241 int
13242 main ()
13243 {
13244 psaddr_t avar
13245   ;
13246   return 0;
13247 }
13248 _ACEOF
13249 if ac_fn_c_try_compile "$LINENO"; then :
13250   bfd_cv_have_sys_procfs_type_psaddr_t=yes
13251 else
13252   bfd_cv_have_sys_procfs_type_psaddr_t=no
13253
13254 fi
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256 fi
13257
13258  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13259
13260 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13261
13262  fi
13263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13264 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13265
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13267 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13268  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13269   $as_echo_n "(cached) " >&6
13270 else
13271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h.  */
13273
13274 #define _SYSCALL32
13275 /* Needed for new procfs interface on sparc-solaris.  */
13276 #define _STRUCTURED_PROC 1
13277 #include <sys/procfs.h>
13278 int
13279 main ()
13280 {
13281 prsysent_t avar
13282   ;
13283   return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_compile "$LINENO"; then :
13287   bfd_cv_have_sys_procfs_type_prsysent_t=yes
13288 else
13289   bfd_cv_have_sys_procfs_type_prsysent_t=no
13290
13291 fi
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 fi
13294
13295  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13296
13297 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13298
13299  fi
13300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13301 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13302
13303   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13304 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13305  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13306   $as_echo_n "(cached) " >&6
13307 else
13308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13309 /* end confdefs.h.  */
13310
13311 #define _SYSCALL32
13312 /* Needed for new procfs interface on sparc-solaris.  */
13313 #define _STRUCTURED_PROC 1
13314 #include <sys/procfs.h>
13315 int
13316 main ()
13317 {
13318 pr_sigset_t avar
13319   ;
13320   return 0;
13321 }
13322 _ACEOF
13323 if ac_fn_c_try_compile "$LINENO"; then :
13324   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13325 else
13326   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13327
13328 fi
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 fi
13331
13332  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13333
13334 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13335
13336  fi
13337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13338 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13339
13340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13341 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13342  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13343   $as_echo_n "(cached) " >&6
13344 else
13345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h.  */
13347
13348 #define _SYSCALL32
13349 /* Needed for new procfs interface on sparc-solaris.  */
13350 #define _STRUCTURED_PROC 1
13351 #include <sys/procfs.h>
13352 int
13353 main ()
13354 {
13355 pr_sigaction64_t avar
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 if ac_fn_c_try_compile "$LINENO"; then :
13361   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13362 else
13363   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13364
13365 fi
13366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 fi
13368
13369  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13370
13371 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13372
13373  fi
13374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13375 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13376
13377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13378 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13379  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13380   $as_echo_n "(cached) " >&6
13381 else
13382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h.  */
13384
13385 #define _SYSCALL32
13386 /* Needed for new procfs interface on sparc-solaris.  */
13387 #define _STRUCTURED_PROC 1
13388 #include <sys/procfs.h>
13389 int
13390 main ()
13391 {
13392 pr_siginfo64_t avar
13393   ;
13394   return 0;
13395 }
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13399 else
13400   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13401
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 fi
13405
13406  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13407
13408 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13409
13410  fi
13411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13412 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13413
13414
13415
13416
13417
13418   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13420 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13421     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13422   $as_echo_n "(cached) " >&6
13423 else
13424   if test "$cross_compiling" = yes; then :
13425   gdb_cv_prfpregset_t_broken=yes
13426 else
13427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h.  */
13429 #include <sys/procfs.h>
13430        int main ()
13431        {
13432          if (sizeof (prfpregset_t) == sizeof (void *))
13433            return 1;
13434          return 0;
13435        }
13436 _ACEOF
13437 if ac_fn_c_try_run "$LINENO"; then :
13438   gdb_cv_prfpregset_t_broken=no
13439 else
13440   gdb_cv_prfpregset_t_broken=yes
13441 fi
13442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13443   conftest.$ac_objext conftest.beam conftest.$ac_ext
13444 fi
13445
13446 fi
13447
13448     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13449 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13450     if test $gdb_cv_prfpregset_t_broken = yes; then
13451
13452 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13453
13454     fi
13455   fi
13456
13457
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13459 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13460   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13461   $as_echo_n "(cached) " >&6
13462 else
13463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h.  */
13465 #include <unistd.h>
13466 #include <sys/types.h>
13467 #include <sys/procfs.h>
13468
13469 int
13470 main ()
13471 {
13472
13473     int dummy;;
13474     dummy = ioctl(0, PIOCSET, &dummy);
13475
13476   ;
13477   return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_compile "$LINENO"; then :
13481   gdb_cv_have_procfs_piocset=yes
13482 else
13483   gdb_cv_have_procfs_piocset=no
13484 fi
13485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13486 fi
13487
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13489 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13490   if test $gdb_cv_have_procfs_piocset = yes; then
13491
13492 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13493
13494   fi
13495 fi
13496
13497 if test ${host} = ${target} ; then
13498
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13500 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13501   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13502   $as_echo_n "(cached) " >&6
13503 else
13504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h.  */
13506 #include <link.h>
13507 int
13508 main ()
13509 {
13510 struct link_map lm; (void) lm.l_addr;
13511   ;
13512   return 0;
13513 }
13514 _ACEOF
13515 if ac_fn_c_try_compile "$LINENO"; then :
13516   gdb_cv_have_struct_link_map_with_l_members=yes
13517 else
13518   gdb_cv_have_struct_link_map_with_l_members=no
13519 fi
13520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13521 fi
13522
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13524 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13525   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13526
13527 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13528
13529   fi
13530
13531
13532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13533 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13534   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13535   $as_echo_n "(cached) " >&6
13536 else
13537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13538 /* end confdefs.h.  */
13539 #include <sys/types.h>
13540 #include <link.h>
13541 int
13542 main ()
13543 {
13544 struct link_map lm; (void) lm.lm_addr;
13545   ;
13546   return 0;
13547 }
13548 _ACEOF
13549 if ac_fn_c_try_compile "$LINENO"; then :
13550   gdb_cv_have_struct_link_map_with_lm_members=yes
13551 else
13552   gdb_cv_have_struct_link_map_with_lm_members=no
13553 fi
13554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13555 fi
13556
13557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13558 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13559   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13560
13561 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13562
13563   fi
13564
13565
13566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13567 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13568   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13569   $as_echo_n "(cached) " >&6
13570 else
13571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 /* end confdefs.h.  */
13573 #include <sys/types.h>
13574 #ifdef HAVE_NLIST_H
13575 #include <nlist.h>
13576 #endif
13577 #include <link.h>
13578 int
13579 main ()
13580 {
13581 struct so_map lm; (void) lm.som_addr;
13582   ;
13583   return 0;
13584 }
13585 _ACEOF
13586 if ac_fn_c_try_compile "$LINENO"; then :
13587   gdb_cv_have_struct_so_map_with_som_members=yes
13588 else
13589   gdb_cv_have_struct_so_map_with_som_members=no
13590 fi
13591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13592 fi
13593
13594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13595 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13596   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13597
13598 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13599
13600   fi
13601
13602
13603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13604 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13605   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13606   $as_echo_n "(cached) " >&6
13607 else
13608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h.  */
13610 #define _SYSCALL32
13611 #include <sys/link.h>
13612 int
13613 main ()
13614 {
13615 struct link_map32 l;
13616   ;
13617   return 0;
13618 }
13619 _ACEOF
13620 if ac_fn_c_try_compile "$LINENO"; then :
13621   gdb_cv_have_struct_link_map32=yes
13622 else
13623   gdb_cv_have_struct_link_map32=no
13624 fi
13625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13626 fi
13627
13628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13629 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13630   if test $gdb_cv_have_struct_link_map32 = yes; then
13631
13632 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13633
13634
13635 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13636
13637   fi
13638 fi
13639
13640 # Check if the compiler supports the `long long' type.
13641
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13643 $as_echo_n "checking for long long support in compiler... " >&6; }
13644 if test "${gdb_cv_c_long_long+set}" = set; then :
13645   $as_echo_n "(cached) " >&6
13646 else
13647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648 /* end confdefs.h.  */
13649 extern long long foo;
13650 int
13651 main ()
13652 {
13653 switch (foo & 2) { case 0: return 1; }
13654   ;
13655   return 0;
13656 }
13657 _ACEOF
13658 if ac_fn_c_try_compile "$LINENO"; then :
13659   gdb_cv_c_long_long=yes
13660 else
13661   gdb_cv_c_long_long=no
13662 fi
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 fi
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13666 $as_echo "$gdb_cv_c_long_long" >&6; }
13667 if test $gdb_cv_c_long_long = yes; then
13668
13669 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13670
13671 fi
13672
13673 # Check if the compiler and runtime support printing long longs.
13674
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13676 $as_echo_n "checking for long long support in printf... " >&6; }
13677 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13678   $as_echo_n "(cached) " >&6
13679 else
13680   if test "$cross_compiling" = yes; then :
13681   gdb_cv_printf_has_long_long=no
13682 else
13683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h.  */
13685 $ac_includes_default
13686 int
13687 main ()
13688 {
13689 char buf[32];
13690   long long l = 0;
13691   l = (l << 16) + 0x0123;
13692   l = (l << 16) + 0x4567;
13693   l = (l << 16) + 0x89ab;
13694   l = (l << 16) + 0xcdef;
13695   sprintf (buf, "0x%016llx", l);
13696   return (strcmp ("0x0123456789abcdef", buf));
13697   ;
13698   return 0;
13699 }
13700 _ACEOF
13701 if ac_fn_c_try_run "$LINENO"; then :
13702   gdb_cv_printf_has_long_long=yes
13703 else
13704   gdb_cv_printf_has_long_long=no
13705 fi
13706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13707   conftest.$ac_objext conftest.beam conftest.$ac_ext
13708 fi
13709
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13712 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13713 if test $gdb_cv_printf_has_long_long = yes; then
13714
13715 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13716
13717 fi
13718
13719 # Check if the compiler and runtime support printing decfloats.
13720
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13722 $as_echo_n "checking for decfloat support in printf... " >&6; }
13723 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13724   $as_echo_n "(cached) " >&6
13725 else
13726   if test "$cross_compiling" = yes; then :
13727   gdb_cv_printf_has_decfloat=no
13728 else
13729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h.  */
13731 $ac_includes_default
13732 int
13733 main ()
13734 {
13735 char buf[64];
13736   _Decimal32 d32 = 1.2345df;
13737   _Decimal64 d64 = 1.2345dd;
13738   _Decimal128 d128 = 1.2345dl;
13739   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
13740   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 if ac_fn_c_try_run "$LINENO"; then :
13746   gdb_cv_printf_has_decfloat=yes
13747 else
13748   gdb_cv_printf_has_decfloat=no
13749 fi
13750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13751   conftest.$ac_objext conftest.beam conftest.$ac_ext
13752 fi
13753
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
13756 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
13757 if test $gdb_cv_printf_has_decfloat = yes; then
13758
13759 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
13760
13761 fi
13762
13763 # Check if the compiler supports the `long double' type.  We can't use
13764 # AC_C_LONG_DOUBLE because that one does additional checks on the
13765 # constants defined in <float.h> that fail on some systems,
13766 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
13767
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
13769 $as_echo_n "checking for long double support in compiler... " >&6; }
13770 if test "${gdb_cv_c_long_double+set}" = set; then :
13771   $as_echo_n "(cached) " >&6
13772 else
13773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h.  */
13775 long double foo;
13776 _ACEOF
13777 if ac_fn_c_try_compile "$LINENO"; then :
13778   gdb_cv_c_long_double=yes
13779 else
13780   gdb_cv_c_long_double=no
13781 fi
13782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13783 fi
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
13785 $as_echo "$gdb_cv_c_long_double" >&6; }
13786 if test $gdb_cv_c_long_double = yes; then
13787
13788 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13789
13790 fi
13791
13792 # Check if the compiler and runtime support printing long doubles.
13793
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
13795 $as_echo_n "checking for long double support in printf... " >&6; }
13796 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
13797   $as_echo_n "(cached) " >&6
13798 else
13799   if test "$cross_compiling" = yes; then :
13800   gdb_cv_printf_has_long_double=no
13801 else
13802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h.  */
13804 $ac_includes_default
13805 int
13806 main ()
13807 {
13808 char buf[16];
13809   long double f = 3.141592653;
13810   sprintf (buf, "%Lg", f);
13811   return (strncmp ("3.14159", buf, 7));
13812   ;
13813   return 0;
13814 }
13815 _ACEOF
13816 if ac_fn_c_try_run "$LINENO"; then :
13817   gdb_cv_printf_has_long_double=yes
13818 else
13819   gdb_cv_printf_has_long_double=no
13820 fi
13821 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13822   conftest.$ac_objext conftest.beam conftest.$ac_ext
13823 fi
13824
13825 fi
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
13827 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
13828 if test $gdb_cv_printf_has_long_double = yes; then
13829
13830 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
13831
13832 fi
13833
13834 # Check if the compiler and runtime support scanning long doubles.
13835
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
13837 $as_echo_n "checking for long double support in scanf... " >&6; }
13838 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
13839   $as_echo_n "(cached) " >&6
13840 else
13841   if test "$cross_compiling" = yes; then :
13842   gdb_cv_scanf_has_long_double=no
13843 else
13844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h.  */
13846 #include <stdio.h>
13847 int
13848 main ()
13849 {
13850 char *buf = "3.141592653";
13851   long double f = 0;
13852   sscanf (buf, "%Lg", &f);
13853   return !(f > 3.14159 && f < 3.14160);
13854   ;
13855   return 0;
13856 }
13857 _ACEOF
13858 if ac_fn_c_try_run "$LINENO"; then :
13859   gdb_cv_scanf_has_long_double=yes
13860 else
13861   gdb_cv_scanf_has_long_double=no
13862 fi
13863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13864   conftest.$ac_objext conftest.beam conftest.$ac_ext
13865 fi
13866
13867 fi
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
13869 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
13870 if test $gdb_cv_scanf_has_long_double = yes; then
13871
13872 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
13873
13874 fi
13875
13876 case ${host_os} in
13877 aix*)
13878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
13879 $as_echo_n "checking for -bbigtoc option... " >&6; }
13880 if test "${gdb_cv_bigtoc+set}" = set; then :
13881   $as_echo_n "(cached) " >&6
13882 else
13883
13884     SAVE_LDFLAGS=$LDFLAGS
13885
13886     case $GCC in
13887     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
13888     *) gdb_cv_bigtoc=-bbigtoc ;;
13889     esac
13890
13891     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
13892     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h.  */
13894
13895 int
13896 main ()
13897 {
13898 int i;
13899   ;
13900   return 0;
13901 }
13902 _ACEOF
13903 if ac_fn_c_try_link "$LINENO"; then :
13904
13905 else
13906   gdb_cv_bigtoc=
13907 fi
13908 rm -f core conftest.err conftest.$ac_objext \
13909     conftest$ac_exeext conftest.$ac_ext
13910     LDFLAGS="${SAVE_LDFLAGS}"
13911
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
13914 $as_echo "$gdb_cv_bigtoc" >&6; }
13915   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
13916   ;;
13917 esac
13918
13919
13920
13921 if test ${build} = ${host} -a ${host} = ${target} ; then
13922    case ${host_os} in
13923    hpux*)
13924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
13925 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
13926       if test -f /usr/include/dce/cma_config.h ; then
13927          if test "$GCC" = "yes" ; then
13928             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13929 $as_echo "yes" >&6; }
13930
13931 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
13932
13933             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
13934             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
13935          else
13936             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
13937 $as_echo "no (suppressed because you are not using GCC)" >&6; }
13938          fi
13939       else
13940          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13941 $as_echo "no" >&6; }
13942       fi
13943       ;;
13944    solaris*)
13945       # See if thread_db library is around for Solaris thread debugging.
13946       # Note that we must explicitly test for version 1 of the library
13947       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
13948       # the same API.
13949       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
13950 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
13951       if test -f /usr/lib/libthread_db.so.1 ; then
13952          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13953 $as_echo "yes" >&6; }
13954
13955 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
13956
13957          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
13958          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
13959          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13960 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13961 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13962   $as_echo_n "(cached) " >&6
13963 else
13964   ac_check_lib_save_LIBS=$LIBS
13965 LIBS="-ldl  $LIBS"
13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13967 /* end confdefs.h.  */
13968
13969 /* Override any GCC internal prototype to avoid an error.
13970    Use char because int might match the return type of a GCC
13971    builtin and then its argument prototype would still apply.  */
13972 #ifdef __cplusplus
13973 extern "C"
13974 #endif
13975 char dlopen ();
13976 int
13977 main ()
13978 {
13979 return dlopen ();
13980   ;
13981   return 0;
13982 }
13983 _ACEOF
13984 if ac_fn_c_try_link "$LINENO"; then :
13985   ac_cv_lib_dl_dlopen=yes
13986 else
13987   ac_cv_lib_dl_dlopen=no
13988 fi
13989 rm -f core conftest.err conftest.$ac_objext \
13990     conftest$ac_exeext conftest.$ac_ext
13991 LIBS=$ac_check_lib_save_LIBS
13992 fi
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13994 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13995 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13996   cat >>confdefs.h <<_ACEOF
13997 #define HAVE_LIBDL 1
13998 _ACEOF
13999
14000   LIBS="-ldl $LIBS"
14001
14002 fi
14003
14004          if test "$GCC" = "yes" ; then
14005             # The GNU linker requires the -export-dynamic option to make
14006             # all symbols visible in the dynamic symbol table.
14007             hold_ldflags=$LDFLAGS
14008             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ld -export-dynamic flag" >&5
14009 $as_echo_n "checking for the ld -export-dynamic flag... " >&6; }
14010             LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
14011             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h.  */
14013
14014 int
14015 main ()
14016 {
14017 int i;
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 if ac_fn_c_try_link "$LINENO"; then :
14023   found=yes
14024 else
14025   found=no
14026 fi
14027 rm -f core conftest.err conftest.$ac_objext \
14028     conftest$ac_exeext conftest.$ac_ext
14029             LDFLAGS=$hold_ldflags
14030             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14031 $as_echo "$found" >&6; }
14032             if test $found = yes; then
14033                CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
14034             fi
14035          fi
14036          # Sun randomly tweaked the prototypes in <proc_service.h>
14037          # at one point.
14038          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14039 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14040          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043
14044             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h.  */
14046
14047                 #include <proc_service.h>
14048                 ps_err_e ps_pdwrite
14049                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
14050
14051 int
14052 main ()
14053 {
14054
14055   ;
14056   return 0;
14057 }
14058 _ACEOF
14059 if ac_fn_c_try_compile "$LINENO"; then :
14060   gdb_cv_proc_service_is_old=no
14061 else
14062   gdb_cv_proc_service_is_old=yes
14063 fi
14064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14065
14066 fi
14067
14068          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14069 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14070          if test $gdb_cv_proc_service_is_old = yes; then
14071
14072 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14073
14074          fi
14075       else
14076          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14077 $as_echo "no" >&6; }
14078       fi
14079       ;;
14080    aix*)
14081       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14082 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14083       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14084   $as_echo_n "(cached) " >&6
14085 else
14086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h.  */
14088 #include <sys/pthdebug.h>
14089 int
14090 main ()
14091 {
14092 #ifndef PTHDB_VERSION_3
14093                                     #error
14094                                     #endif
14095   ;
14096   return 0;
14097 }
14098 _ACEOF
14099 if ac_fn_c_try_compile "$LINENO"; then :
14100   gdb_cv_have_aix_thread_debug=yes
14101 else
14102   gdb_cv_have_aix_thread_debug=no
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105 fi
14106
14107       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14108 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14109       if test $gdb_cv_have_aix_thread_debug = yes; then
14110          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14111          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14112          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14113       fi
14114       ;;
14115    esac
14116
14117 fi
14118
14119 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14120    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14121 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14122 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14123   $as_echo_n "(cached) " >&6
14124 else
14125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14126 /* end confdefs.h.  */
14127 #include <thread_db.h>
14128 int
14129 main ()
14130 {
14131 int i = TD_NOTALLOC;
14132   ;
14133   return 0;
14134 }
14135 _ACEOF
14136 if ac_fn_c_try_compile "$LINENO"; then :
14137   gdb_cv_thread_db_h_has_td_notalloc=yes
14138 else
14139   gdb_cv_thread_db_h_has_td_notalloc=no
14140
14141 fi
14142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14143
14144 fi
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14146 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14148 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14149 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14150   $as_echo_n "(cached) " >&6
14151 else
14152   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14153 /* end confdefs.h.  */
14154 #include <thread_db.h>
14155 int
14156 main ()
14157 {
14158 int i = TD_VERSION;
14159   ;
14160   return 0;
14161 }
14162 _ACEOF
14163 if ac_fn_c_try_compile "$LINENO"; then :
14164   gdb_cv_thread_db_h_has_td_version=yes
14165 else
14166   gdb_cv_thread_db_h_has_td_version=no
14167
14168 fi
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170
14171 fi
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14173 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14174    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14175 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14176 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14177   $as_echo_n "(cached) " >&6
14178 else
14179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h.  */
14181 #include <thread_db.h>
14182 int
14183 main ()
14184 {
14185 int i = TD_NOTLS;
14186   ;
14187   return 0;
14188 }
14189 _ACEOF
14190 if ac_fn_c_try_compile "$LINENO"; then :
14191   gdb_cv_thread_db_h_has_td_notls=yes
14192 else
14193   gdb_cv_thread_db_h_has_td_notls=no
14194
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197
14198 fi
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14200 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14201 fi
14202 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14203
14204 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14205
14206 fi
14207 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14208
14209 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14210
14211 fi
14212 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14213
14214 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14215
14216 fi
14217
14218 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14220 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14221 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14222   $as_echo_n "(cached) " >&6
14223 else
14224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h.  */
14226 #include <sys/syscall.h>
14227 int
14228 main ()
14229 {
14230 int i = __NR_tkill;
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236   gdb_cv_sys_syscall_h_has_tkill=yes
14237 else
14238   gdb_cv_sys_syscall_h_has_tkill=no
14239
14240 fi
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242
14243 fi
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14245 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14246 fi
14247 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14248
14249 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14250
14251 fi
14252
14253 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14254 "
14255 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14256   ac_have_decl=1
14257 else
14258   ac_have_decl=0
14259 fi
14260
14261 cat >>confdefs.h <<_ACEOF
14262 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14263 _ACEOF
14264
14265
14266 if test "$cross_compiling" = yes; then :
14267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h.  */
14269 #include <sys/personality.h>
14270 int
14271 main ()
14272 {
14273
14274 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
14275 #       define ADDR_NO_RANDOMIZE 0x0040000
14276 #      endif
14277        /* Test the flag could be set and stays set.  */
14278        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14279        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14280            return 1
14281   ;
14282   return 0;
14283 }
14284 _ACEOF
14285 if ac_fn_c_try_link "$LINENO"; then :
14286   have_personality=true
14287 else
14288   have_personality=false
14289 fi
14290 rm -f core conftest.err conftest.$ac_objext \
14291     conftest$ac_exeext conftest.$ac_ext
14292 else
14293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h.  */
14295 #include <sys/personality.h>
14296 int
14297 main ()
14298 {
14299
14300 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
14301 #       define ADDR_NO_RANDOMIZE 0x0040000
14302 #      endif
14303        /* Test the flag could be set and stays set.  */
14304        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14305        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14306            return 1
14307   ;
14308   return 0;
14309 }
14310 _ACEOF
14311 if ac_fn_c_try_run "$LINENO"; then :
14312   have_personality=true
14313 else
14314   have_personality=false
14315 fi
14316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14317   conftest.$ac_objext conftest.beam conftest.$ac_ext
14318 fi
14319
14320 if $have_personality
14321 then
14322
14323 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14324
14325 fi
14326
14327
14328 target_sysroot_reloc=0
14329
14330 # Check whether --with-sysroot was given.
14331 if test "${with_sysroot+set}" = set; then :
14332   withval=$with_sysroot;
14333  case ${with_sysroot} in
14334  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14335  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14336  esac
14337
14338  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14339
14340  if test "x$prefix" = xNONE; then
14341   test_prefix=/usr/local
14342  else
14343   test_prefix=$prefix
14344  fi
14345  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14346   test_exec_prefix=$test_prefix
14347  else
14348   test_exec_prefix=$exec_prefix
14349  fi
14350  case ${TARGET_SYSTEM_ROOT} in
14351  "${test_prefix}"|"${test_prefix}/"*|\
14352  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14353  '${prefix}'|'${prefix}/'*|\
14354  '${exec_prefix}'|'${exec_prefix}/'*)
14355    target_sysroot_reloc=1
14356    ;;
14357  esac
14358
14359 else
14360
14361  TARGET_SYSTEM_ROOT=
14362  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14363
14364 fi
14365
14366 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14367
14368
14369
14370
14371
14372 # Check whether --with-system-gdbinit was given.
14373 if test "${with_system_gdbinit+set}" = set; then :
14374   withval=$with_system_gdbinit;
14375     SYSTEM_GDBINIT=$withval
14376 else
14377   SYSTEM_GDBINIT=
14378 fi
14379
14380
14381   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14382   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14383   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14384   ac_define_dir=`eval echo $ac_define_dir`
14385
14386 cat >>confdefs.h <<_ACEOF
14387 #define SYSTEM_GDBINIT "$ac_define_dir"
14388 _ACEOF
14389
14390
14391
14392   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14393      if test "x$prefix" = xNONE; then
14394         test_prefix=/usr/local
14395      else
14396         test_prefix=$prefix
14397      fi
14398   else
14399      test_prefix=$exec_prefix
14400   fi
14401   value=0
14402   case ${ac_define_dir} in
14403      "${test_prefix}"|"${test_prefix}/"*|\
14404         '${exec_prefix}'|'${exec_prefix}/'*)
14405      value=1
14406      ;;
14407   esac
14408
14409 cat >>confdefs.h <<_ACEOF
14410 #define SYSTEM_GDBINIT_RELOCATABLE $value
14411 _ACEOF
14412
14413
14414
14415 # Check whether --enable-werror was given.
14416 if test "${enable_werror+set}" = set; then :
14417   enableval=$enable_werror; case "${enableval}" in
14418      yes | y) ERROR_ON_WARNING="yes" ;;
14419      no | n)  ERROR_ON_WARNING="no" ;;
14420      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14421    esac
14422 fi
14423
14424
14425 # Enable -Werror by default when using gcc
14426 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14427     ERROR_ON_WARNING=yes
14428 fi
14429
14430 WERROR_CFLAGS=""
14431 if test "${ERROR_ON_WARNING}" = yes ; then
14432     WERROR_CFLAGS="-Werror"
14433 fi
14434
14435 # The entries after -Wno-pointer-sign are disabled warnings which may
14436 # be enabled in the future, which can not currently be used to build
14437 # GDB.
14438 # NOTE: If you change this list, remember to update
14439 # gdb/doc/gdbint.texinfo.
14440 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14441 -Wformat-nonliteral -Wno-pointer-sign \
14442 -Wno-unused -Wunused-value -Wunused-function \
14443 -Wno-switch -Wno-char-subscripts"
14444
14445 # Enable -Wno-format by default when using gcc on mingw since many
14446 # GCC versions complain about %I64.
14447 case "${host}" in
14448   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14449 esac
14450
14451 # Check whether --enable-build-warnings was given.
14452 if test "${enable_build_warnings+set}" = set; then :
14453   enableval=$enable_build_warnings; case "${enableval}" in
14454   yes)  ;;
14455   no)   build_warnings="-w";;
14456   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14457         build_warnings="${build_warnings} ${t}";;
14458   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14459         build_warnings="${t} ${build_warnings}";;
14460   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14461 esac
14462 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14463   echo "Setting compiler warning flags = $build_warnings" 6>&1
14464 fi
14465 fi
14466 # Check whether --enable-gdb-build-warnings was given.
14467 if test "${enable_gdb_build_warnings+set}" = set; then :
14468   enableval=$enable_gdb_build_warnings; case "${enableval}" in
14469   yes)  ;;
14470   no)   build_warnings="-w";;
14471   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14472         build_warnings="${build_warnings} ${t}";;
14473   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14474         build_warnings="${t} ${build_warnings}";;
14475   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14476 esac
14477 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14478   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14479 fi
14480 fi
14481 WARN_CFLAGS=""
14482 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14483 then
14484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14485 $as_echo_n "checking compiler warning flags... " >&6; }
14486     # Separate out the -Werror flag as some files just cannot be
14487     # compiled with it enabled.
14488     for w in ${build_warnings}; do
14489         case $w in
14490         -Werr*) WERROR_CFLAGS=-Werror ;;
14491         *) # Check that GCC accepts it
14492             saved_CFLAGS="$CFLAGS"
14493             CFLAGS="$CFLAGS $w"
14494             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h.  */
14496
14497 int
14498 main ()
14499 {
14500
14501   ;
14502   return 0;
14503 }
14504 _ACEOF
14505 if ac_fn_c_try_compile "$LINENO"; then :
14506   WARN_CFLAGS="${WARN_CFLAGS} $w"
14507 fi
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14509             CFLAGS="$saved_CFLAGS"
14510         esac
14511     done
14512     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14513 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14514 fi
14515
14516
14517
14518 # In the Cygwin environment, we need some additional flags.
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14520 $as_echo_n "checking for cygwin... " >&6; }
14521 if test "${gdb_cv_os_cygwin+set}" = set; then :
14522   $as_echo_n "(cached) " >&6
14523 else
14524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14525 /* end confdefs.h.  */
14526
14527 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14528 lose
14529 #endif
14530 _ACEOF
14531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14532   $EGREP "lose" >/dev/null 2>&1; then :
14533   gdb_cv_os_cygwin=yes
14534 else
14535   gdb_cv_os_cygwin=no
14536 fi
14537 rm -f conftest*
14538
14539 fi
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14541 $as_echo "$gdb_cv_os_cygwin" >&6; }
14542
14543
14544 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14545 case ${host} in
14546   *go32* ) SER_HARDWIRE=ser-go32.o ;;
14547   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14548   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14549 esac
14550
14551
14552 # libreadline needs libuser32.a in a cygwin environment
14553 WIN32LIBS=
14554 if test x$gdb_cv_os_cygwin = xyes; then
14555     WIN32LIBS="-luser32"
14556     case "${target}" in
14557         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14558         ;;
14559     esac
14560 fi
14561
14562 # The ser-tcp.c module requires sockets.
14563 case ${host} in
14564   *mingw32*)
14565
14566 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14567
14568     WIN32LIBS="$WIN32LIBS -lws2_32"
14569     ;;
14570 esac
14571
14572
14573 # Add ELF support to GDB, but only if BFD includes ELF support.
14574 OLD_CFLAGS=$CFLAGS
14575 OLD_LDFLAGS=$LDFLAGS
14576 OLD_LIBS=$LIBS
14577 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14578 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14579 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14580 LIBS="-lbfd -liberty $intl $LIBS"
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14582 $as_echo_n "checking for ELF support in BFD... " >&6; }
14583 if test "${gdb_cv_var_elf+set}" = set; then :
14584   $as_echo_n "(cached) " >&6
14585 else
14586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14587 /* end confdefs.h.  */
14588 #include <stdlib.h>
14589 #include "bfd.h"
14590 #include "elf-bfd.h"
14591
14592 int
14593 main ()
14594 {
14595 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 if ac_fn_c_try_link "$LINENO"; then :
14601   gdb_cv_var_elf=yes
14602 else
14603   gdb_cv_var_elf=no
14604 fi
14605 rm -f core conftest.err conftest.$ac_objext \
14606     conftest$ac_exeext conftest.$ac_ext
14607 fi
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14609 $as_echo "$gdb_cv_var_elf" >&6; }
14610 if test $gdb_cv_var_elf = yes; then
14611   CONFIG_OBS="$CONFIG_OBS elfread.o"
14612
14613 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14614
14615 fi
14616 CFLAGS=$OLD_CFLAGS
14617 LDFLAGS=$OLD_LDFLAGS
14618 LIBS=$OLD_LIBS
14619
14620 # Add any host-specific objects to GDB.
14621 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14622
14623 LIBGUI="../libgui/src/libgui.a"
14624 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14625
14626
14627
14628 WIN32LDAPP=
14629
14630
14631
14632 case "${host}" in
14633 *-*-cygwin* | *-*-mingw* )
14634     configdir="win"
14635     ;;
14636 *)
14637     configdir="unix"
14638     ;;
14639 esac
14640
14641 GDBTKLIBS=
14642 if test "${enable_gdbtk}" = "yes"; then
14643
14644     # Gdbtk must have an absolute path to srcdir in order to run
14645     # properly when not installed.
14646     here=`pwd`
14647     cd ${srcdir}
14648     GDBTK_SRC_DIR=`pwd`
14649     cd $here
14650
14651
14652     #
14653     # Ok, lets find the tcl configuration
14654     # First, look for one uninstalled.
14655     # the alternative search directory is invoked by --with-tcl
14656     #
14657
14658     if test x"${no_tcl}" = x ; then
14659         # we reset no_tcl in case something fails here
14660         no_tcl=true
14661
14662 # Check whether --with-tcl was given.
14663 if test "${with_tcl+set}" = set; then :
14664   withval=$with_tcl; with_tclconfig=${withval}
14665 fi
14666
14667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14668 $as_echo_n "checking for Tcl configuration... " >&6; }
14669         if test "${ac_cv_c_tclconfig+set}" = set; then :
14670   $as_echo_n "(cached) " >&6
14671 else
14672
14673
14674             # First check to see if --with-tcl was specified.
14675             case "${host}" in
14676                 *-*-cygwin*) platDir="win" ;;
14677                 *) platDir="unix" ;;
14678             esac
14679             if test x"${with_tclconfig}" != x ; then
14680                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14681                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
14682                 else
14683                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14684                 fi
14685             fi
14686
14687             # then check for a private Tcl installation
14688             if test x"${ac_cv_c_tclconfig}" = x ; then
14689                 for i in \
14690                         ../tcl \
14691                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14692                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
14693                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
14694                         ../../tcl \
14695                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14696                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
14697                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
14698                         ../../../tcl \
14699                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14700                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
14701                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
14702                     if test -f "$i/$platDir/tclConfig.sh" ; then
14703                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14704                         break
14705                     fi
14706                 done
14707             fi
14708
14709             # on Darwin, check in Framework installation locations
14710             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
14711                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14712                         `ls -d /Library/Frameworks 2>/dev/null` \
14713                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
14714                         `ls -d /System/Library/Frameworks 2>/dev/null` \
14715                         ; do
14716                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
14717                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
14718                         break
14719                     fi
14720                 done
14721             fi
14722
14723             # check in a few common install locations
14724             if test x"${ac_cv_c_tclconfig}" = x ; then
14725                 for i in `ls -d ${libdir} 2>/dev/null` \
14726                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
14727                         `ls -d ${prefix}/lib 2>/dev/null` \
14728                         `ls -d /usr/local/lib 2>/dev/null` \
14729                         `ls -d /usr/contrib/lib 2>/dev/null` \
14730                         `ls -d /usr/lib 2>/dev/null` \
14731                         ; do
14732                     if test -f "$i/tclConfig.sh" ; then
14733                         ac_cv_c_tclconfig=`(cd $i; pwd)`
14734                         break
14735                     fi
14736                 done
14737             fi
14738
14739             # check in a few other private locations
14740             if test x"${ac_cv_c_tclconfig}" = x ; then
14741                 for i in \
14742                         ${srcdir}/../tcl \
14743                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
14744                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
14745                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
14746                     if test -f "$i/$platDir/tclConfig.sh" ; then
14747                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
14748                     break
14749                 fi
14750                 done
14751             fi
14752
14753 fi
14754
14755
14756         if test x"${ac_cv_c_tclconfig}" = x ; then
14757             TCL_BIN_DIR="# no Tcl configs found"
14758             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
14759 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
14760         else
14761             no_tcl=
14762             TCL_BIN_DIR=${ac_cv_c_tclconfig}
14763             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
14764 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14765         fi
14766     fi
14767
14768
14769     # If $no_tk is nonempty, then we can't do Tk, and there is no
14770     # point to doing Tcl.
14771
14772     #
14773     # Ok, lets find the tk configuration
14774     # First, look for one uninstalled.
14775     # the alternative search directory is invoked by --with-tk
14776     #
14777
14778     if test x"${no_tk}" = x ; then
14779         # we reset no_tk in case something fails here
14780         no_tk=true
14781
14782 # Check whether --with-tk was given.
14783 if test "${with_tk+set}" = set; then :
14784   withval=$with_tk; with_tkconfig=${withval}
14785 fi
14786
14787         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
14788 $as_echo_n "checking for Tk configuration... " >&6; }
14789         if test "${ac_cv_c_tkconfig+set}" = set; then :
14790   $as_echo_n "(cached) " >&6
14791 else
14792
14793
14794             # First check to see if --with-tkconfig was specified.
14795             if test x"${with_tkconfig}" != x ; then
14796                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
14797                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
14798                 else
14799                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
14800                 fi
14801             fi
14802
14803             # then check for a private Tk library
14804             case "${host}" in
14805                 *-*-cygwin*) platDir="win" ;;
14806                 *) platDir="unix" ;;
14807             esac
14808             if test x"${ac_cv_c_tkconfig}" = x ; then
14809                 for i in \
14810                         ../tk \
14811                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14812                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
14813                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
14814                         ../../tk \
14815                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14816                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
14817                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
14818                         ../../../tk \
14819                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14820                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
14821                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
14822                     if test -f "$i/$platDir/tkConfig.sh" ; then
14823                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14824                         break
14825                     fi
14826                 done
14827             fi
14828
14829             # on Darwin, check in Framework installation locations
14830             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
14831                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
14832                         `ls -d /Library/Frameworks 2>/dev/null` \
14833                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
14834                         `ls -d /System/Library/Frameworks 2>/dev/null` \
14835                         ; do
14836                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
14837                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
14838                         break
14839                     fi
14840                 done
14841             fi
14842
14843             # check in a few common install locations
14844             if test x"${ac_cv_c_tkconfig}" = x ; then
14845                 for i in `ls -d ${libdir} 2>/dev/null` \
14846                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
14847                         `ls -d ${prefix}/lib 2>/dev/null` \
14848                         `ls -d /usr/local/lib 2>/dev/null` \
14849                         `ls -d /usr/contrib/lib 2>/dev/null` \
14850                         `ls -d /usr/lib 2>/dev/null` \
14851                         ; do
14852                     if test -f "$i/tkConfig.sh" ; then
14853                         ac_cv_c_tkconfig=`(cd $i; pwd)`
14854                         break
14855                     fi
14856                 done
14857             fi
14858             # check in a few other private locations
14859             if test x"${ac_cv_c_tkconfig}" = x ; then
14860                 for i in \
14861                         ${srcdir}/../tk \
14862                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
14863                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
14864                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
14865                     if test -f "$i/$platDir/tkConfig.sh" ; then
14866                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
14867                         break
14868                     fi
14869                 done
14870             fi
14871
14872 fi
14873
14874
14875         if test x"${ac_cv_c_tkconfig}" = x ; then
14876             TK_BIN_DIR="# no Tk configs found"
14877             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
14878 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
14879         else
14880             no_tk=
14881             TK_BIN_DIR=${ac_cv_c_tkconfig}
14882             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
14883 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
14884         fi
14885     fi
14886
14887
14888     if test -z "${no_tcl}" -a -z "${no_tk}"; then
14889
14890     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
14891 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
14892
14893     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
14894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
14895 $as_echo "loading" >&6; }
14896         . ${TCL_BIN_DIR}/tclConfig.sh
14897     else
14898         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
14899 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
14900     fi
14901
14902     # eval is required to do the TCL_DBGX substitution
14903     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
14904     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
14905
14906     # If the TCL_BIN_DIR is the build directory (not the install directory),
14907     # then set the common variable name to the value of the build variables.
14908     # For example, the variable TCL_LIB_SPEC will be set to the value
14909     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
14910     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
14911     # installed and uninstalled version of Tcl.
14912     if test -f "${TCL_BIN_DIR}/Makefile" ; then
14913         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
14914         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
14915         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
14916     elif test "`uname -s`" = "Darwin"; then
14917         # If Tcl was built as a framework, attempt to use the libraries
14918         # from the framework at the given location so that linking works
14919         # against Tcl.framework installed in an arbitary location.
14920         case ${TCL_DEFS} in
14921             *TCL_FRAMEWORK*)
14922                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
14923                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
14924                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
14925                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
14926                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
14927                             break
14928                         fi
14929                     done
14930                 fi
14931                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
14932                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
14933                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
14934                 fi
14935                 ;;
14936         esac
14937     fi
14938
14939     # eval is required to do the TCL_DBGX substitution
14940     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
14941     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
14942     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
14943     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959         # Check for in-tree tcl
14960         here=`pwd`
14961         cd ${srcdir}/..
14962         topdir=`pwd`
14963         cd ${here}
14964
14965         intree="no"
14966         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
14967           intree="yes"
14968         fi
14969
14970         # Find Tcl private headers
14971         if test x"${intree}" = xno; then
14972
14973   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
14974 $as_echo_n "checking for Tcl private headers... " >&6; }
14975   private_dir=""
14976   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
14977   if test -f ${dir}/tclInt.h ; then
14978     private_dir=${dir}
14979   fi
14980
14981   if test x"${private_dir}" = x; then
14982     as_fn_error "could not find private Tcl headers" "$LINENO" 5
14983   else
14984     TCL_PRIVATE_INCLUDE="-I${private_dir}"
14985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
14986 $as_echo "${private_dir}" >&6; }
14987   fi
14988
14989           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
14990           TCL_LIBRARY="${TCL_LIB_SPEC}"
14991           TCL_DEPS=""
14992         else
14993           # If building tcl in the same src tree, private headers
14994           # are not needed, but we need to be sure to use the right
14995           # headers library
14996           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
14997           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
14998           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
14999         fi
15000
15001
15002
15003
15004
15005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15006 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15007
15008     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15009         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15010 $as_echo "loading" >&6; }
15011         . ${TK_BIN_DIR}/tkConfig.sh
15012     else
15013         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15014 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15015     fi
15016
15017     # eval is required to do the TK_DBGX substitution
15018     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15019     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15020
15021     # If the TK_BIN_DIR is the build directory (not the install directory),
15022     # then set the common variable name to the value of the build variables.
15023     # For example, the variable TK_LIB_SPEC will be set to the value
15024     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15025     # instead of TK_BUILD_LIB_SPEC since it will work with both an
15026     # installed and uninstalled version of Tcl.
15027     if test -f "${TK_BIN_DIR}/Makefile" ; then
15028         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15029         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15030         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15031     elif test "`uname -s`" = "Darwin"; then
15032         # If Tk was built as a framework, attempt to use the libraries
15033         # from the framework at the given location so that linking works
15034         # against Tk.framework installed in an arbitary location.
15035         case ${TK_DEFS} in
15036             *TK_FRAMEWORK*)
15037                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15038                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
15039                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15040                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15041                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15042                             break
15043                         fi
15044                     done
15045                 fi
15046                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15047                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15048                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15049                 fi
15050                 ;;
15051         esac
15052     fi
15053
15054     # eval is required to do the TK_DBGX substitution
15055     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15056     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15057     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15058     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073         # Check for in-tree Tk
15074         intree="no"
15075         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15076           intree="yes"
15077         fi
15078
15079         # Find Tk private headers
15080         if test x"${intree}" = xno; then
15081
15082   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15083 $as_echo_n "checking for Tk private headers... " >&6; }
15084   private_dir=""
15085   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15086   if test -f ${dir}/tkInt.h; then
15087     private_dir=${dir}
15088   fi
15089
15090   if test x"${private_dir}" = x; then
15091     as_fn_error "could not find Tk private headers" "$LINENO" 5
15092   else
15093     TK_PRIVATE_INCLUDE="-I${private_dir}"
15094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15095 $as_echo "${private_dir}" >&6; }
15096   fi
15097
15098           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15099           TK_LIBRARY=${TK_LIB_SPEC}
15100           TK_DEPS=""
15101         else
15102           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15103           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15104           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15105         fi
15106
15107
15108
15109
15110
15111         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15112
15113         # Include some libraries that Tcl and Tk want.
15114         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15115         # Yes, the ordering seems wrong here.  But it isn't.
15116         # TK_LIBS is the list of libraries that need to be linked
15117         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
15118         # were in LIBS then any link tests after this point would
15119         # try to include things like `$(LIBGUI)', which wouldn't work.
15120         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15121
15122         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15123         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15124         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15125         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15126         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15127         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15128         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15129
15130         if test x$gdb_cv_os_cygwin = xyes; then
15131           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15132           WIN32LDAPP="-Wl,--subsystem,console"
15133           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15134         fi
15135
15136         subdirs="$subdirs gdbtk"
15137
15138     fi
15139 fi
15140
15141
15142
15143
15144
15145
15146
15147
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15149 $as_echo_n "checking for X... " >&6; }
15150
15151
15152 # Check whether --with-x was given.
15153 if test "${with_x+set}" = set; then :
15154   withval=$with_x;
15155 fi
15156
15157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15158 if test "x$with_x" = xno; then
15159   # The user explicitly disabled X.
15160   have_x=disabled
15161 else
15162   case $x_includes,$x_libraries in #(
15163     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15164     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15165   $as_echo_n "(cached) " >&6
15166 else
15167   # One or both of the vars are not set, and there is no cached value.
15168 ac_x_includes=no ac_x_libraries=no
15169 rm -f -r conftest.dir
15170 if mkdir conftest.dir; then
15171   cd conftest.dir
15172   cat >Imakefile <<'_ACEOF'
15173 incroot:
15174         @echo incroot='${INCROOT}'
15175 usrlibdir:
15176         @echo usrlibdir='${USRLIBDIR}'
15177 libdir:
15178         @echo libdir='${LIBDIR}'
15179 _ACEOF
15180   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15181     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15182     for ac_var in incroot usrlibdir libdir; do
15183       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15184     done
15185     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15186     for ac_extension in a so sl dylib la dll; do
15187       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15188          test -f "$ac_im_libdir/libX11.$ac_extension"; then
15189         ac_im_usrlibdir=$ac_im_libdir; break
15190       fi
15191     done
15192     # Screen out bogus values from the imake configuration.  They are
15193     # bogus both because they are the default anyway, and because
15194     # using them would break gcc on systems where it needs fixed includes.
15195     case $ac_im_incroot in
15196         /usr/include) ac_x_includes= ;;
15197         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15198     esac
15199     case $ac_im_usrlibdir in
15200         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15201         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15202     esac
15203   fi
15204   cd ..
15205   rm -f -r conftest.dir
15206 fi
15207
15208 # Standard set of common directories for X headers.
15209 # Check X11 before X11Rn because it is often a symlink to the current release.
15210 ac_x_header_dirs='
15211 /usr/X11/include
15212 /usr/X11R7/include
15213 /usr/X11R6/include
15214 /usr/X11R5/include
15215 /usr/X11R4/include
15216
15217 /usr/include/X11
15218 /usr/include/X11R7
15219 /usr/include/X11R6
15220 /usr/include/X11R5
15221 /usr/include/X11R4
15222
15223 /usr/local/X11/include
15224 /usr/local/X11R7/include
15225 /usr/local/X11R6/include
15226 /usr/local/X11R5/include
15227 /usr/local/X11R4/include
15228
15229 /usr/local/include/X11
15230 /usr/local/include/X11R7
15231 /usr/local/include/X11R6
15232 /usr/local/include/X11R5
15233 /usr/local/include/X11R4
15234
15235 /usr/X386/include
15236 /usr/x386/include
15237 /usr/XFree86/include/X11
15238
15239 /usr/include
15240 /usr/local/include
15241 /usr/unsupported/include
15242 /usr/athena/include
15243 /usr/local/x11r5/include
15244 /usr/lpp/Xamples/include
15245
15246 /usr/openwin/include
15247 /usr/openwin/share/include'
15248
15249 if test "$ac_x_includes" = no; then
15250   # Guess where to find include files, by looking for Xlib.h.
15251   # First, try using that file with no special directory specified.
15252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h.  */
15254 #include <X11/Xlib.h>
15255 _ACEOF
15256 if ac_fn_c_try_cpp "$LINENO"; then :
15257   # We can compile using X headers with no special include directory.
15258 ac_x_includes=
15259 else
15260   for ac_dir in $ac_x_header_dirs; do
15261   if test -r "$ac_dir/X11/Xlib.h"; then
15262     ac_x_includes=$ac_dir
15263     break
15264   fi
15265 done
15266 fi
15267 rm -f conftest.err conftest.$ac_ext
15268 fi # $ac_x_includes = no
15269
15270 if test "$ac_x_libraries" = no; then
15271   # Check for the libraries.
15272   # See if we find them without any special options.
15273   # Don't add to $LIBS permanently.
15274   ac_save_LIBS=$LIBS
15275   LIBS="-lX11 $LIBS"
15276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277 /* end confdefs.h.  */
15278 #include <X11/Xlib.h>
15279 int
15280 main ()
15281 {
15282 XrmInitialize ()
15283   ;
15284   return 0;
15285 }
15286 _ACEOF
15287 if ac_fn_c_try_link "$LINENO"; then :
15288   LIBS=$ac_save_LIBS
15289 # We can link X programs with no special library path.
15290 ac_x_libraries=
15291 else
15292   LIBS=$ac_save_LIBS
15293 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15294 do
15295   # Don't even attempt the hair of trying to link an X program!
15296   for ac_extension in a so sl dylib la dll; do
15297     if test -r "$ac_dir/libX11.$ac_extension"; then
15298       ac_x_libraries=$ac_dir
15299       break 2
15300     fi
15301   done
15302 done
15303 fi
15304 rm -f core conftest.err conftest.$ac_objext \
15305     conftest$ac_exeext conftest.$ac_ext
15306 fi # $ac_x_libraries = no
15307
15308 case $ac_x_includes,$ac_x_libraries in #(
15309   no,* | *,no | *\'*)
15310     # Didn't find X, or a directory has "'" in its name.
15311     ac_cv_have_x="have_x=no";; #(
15312   *)
15313     # Record where we found X for the cache.
15314     ac_cv_have_x="have_x=yes\
15315         ac_x_includes='$ac_x_includes'\
15316         ac_x_libraries='$ac_x_libraries'"
15317 esac
15318 fi
15319 ;; #(
15320     *) have_x=yes;;
15321   esac
15322   eval "$ac_cv_have_x"
15323 fi # $with_x != no
15324
15325 if test "$have_x" != yes; then
15326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15327 $as_echo "$have_x" >&6; }
15328   no_x=yes
15329 else
15330   # If each of the values was on the command line, it overrides each guess.
15331   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15332   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15333   # Update the cache value to reflect the command line values.
15334   ac_cv_have_x="have_x=yes\
15335         ac_x_includes='$x_includes'\
15336         ac_x_libraries='$x_libraries'"
15337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15338 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15339 fi
15340
15341
15342 # Unlike the sim directory, whether a simulator is linked is controlled by
15343 # presence of a gdb_sim definition in the target configure.tgt entry.
15344 # This code just checks for a few cases where we'd like to ignore those
15345 # definitions, even when they're present in the '.mt' file.  These cases
15346 # are when --disable-sim is specified, or if the simulator directory is
15347 # not part of the source tree.
15348 #
15349 # Check whether --enable-sim was given.
15350 if test "${enable_sim+set}" = set; then :
15351   enableval=$enable_sim; echo "enable_sim = $enable_sim";
15352  echo "enableval = ${enableval}";
15353  case "${enableval}" in
15354   yes) ignore_sim=false ;;
15355   no)  ignore_sim=true ;;
15356   *)   ignore_sim=false ;;
15357  esac
15358 else
15359   ignore_sim=false
15360 fi
15361
15362
15363 if test ! -d "${srcdir}/../sim"; then
15364   ignore_sim=true
15365 fi
15366
15367 SIM=
15368 SIM_OBS=
15369 if test "${ignore_sim}" = "false"; then
15370   if test x"${gdb_sim}" != x ; then
15371     SIM="${gdb_sim}"
15372     SIM_OBS="remote-sim.o"
15373
15374 $as_echo "#define WITH_SIM 1" >>confdefs.h
15375
15376   fi
15377 fi
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392 # List of host floatformats.
15393
15394 cat >>confdefs.h <<_ACEOF
15395 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15396 _ACEOF
15397
15398
15399 cat >>confdefs.h <<_ACEOF
15400 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15401 _ACEOF
15402
15403
15404 cat >>confdefs.h <<_ACEOF
15405 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15406 _ACEOF
15407
15408
15409 # target_subdir is used by the testsuite to find the target libraries.
15410 target_subdir=
15411 if test "${host}" != "${target}"; then
15412     target_subdir="${target_alias}/"
15413 fi
15414
15415
15416 frags=
15417 if test "${gdb_native}" = "yes"; then
15418   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15419   if test ! -f ${host_makefile_frag}; then
15420     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15421   fi
15422   frags="$frags $host_makefile_frag"
15423 else
15424   host_makefile_frag=/dev/null
15425 fi
15426
15427
15428
15429
15430 if test "${gdb_native}" = "yes"; then
15431 # We pick this up from the host configuration file (.mh) because we
15432 # do not have a native configuration Makefile fragment.
15433 nativefile=`sed -n '
15434 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
15435 ' ${host_makefile_frag}`
15436 fi
15437
15438
15439 if test x"${gdb_osabi}" != x ; then
15440
15441 cat >>confdefs.h <<_ACEOF
15442 #define GDB_OSABI_DEFAULT $gdb_osabi
15443 _ACEOF
15444
15445 fi
15446
15447 # Enable multi-ice-gdb-server.
15448 # Check whether --enable-multi-ice was given.
15449 if test "${enable_multi_ice+set}" = set; then :
15450   enableval=$enable_multi_ice; case $enableval in
15451     yes | no)
15452       ;;
15453     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15454   esac
15455 fi
15456
15457 if test "x$enable_multi_ice" = xyes; then
15458    subdirs="$subdirs multi-ice"
15459
15460 fi
15461
15462 # We only build gdbserver automatically in a native configuration.
15463 if test "$gdb_native" = "yes"; then
15464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15465 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15466   if test "x$build_gdbserver" = xyes; then
15467     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15468 $as_echo "yes" >&6; }
15469     subdirs="$subdirs gdbserver"
15470
15471   else
15472     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473 $as_echo "no" >&6; }
15474   fi
15475 fi
15476
15477 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15478 # to an empty version.
15479
15480 files=
15481 links=
15482
15483 rm -f nm.h
15484 if test "${nativefile}" != ""; then
15485     case "${nativefile}" in
15486       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15487       * ) GDB_NM_FILE="${nativefile}"
15488     esac
15489     files="${files} ${GDB_NM_FILE}"
15490     links="${links} nm.h"
15491
15492 cat >>confdefs.h <<_ACEOF
15493 #define GDB_NM_FILE "${GDB_NM_FILE}"
15494 _ACEOF
15495
15496 fi
15497
15498
15499 ac_sources="$files"
15500 ac_dests="$links"
15501 while test -n "$ac_sources"; do
15502   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15503   set $ac_sources; ac_source=$1; shift; ac_sources=$*
15504   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15505 done
15506 ac_config_links="$ac_config_links $ac_config_links_1"
15507
15508
15509
15510
15511
15512 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15513
15514
15515 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
15516
15517 ac_config_commands="$ac_config_commands default"
15518
15519 cat >confcache <<\_ACEOF
15520 # This file is a shell script that caches the results of configure
15521 # tests run on this system so they can be shared between configure
15522 # scripts and configure runs, see configure's option --config-cache.
15523 # It is not useful on other systems.  If it contains results you don't
15524 # want to keep, you may remove or edit it.
15525 #
15526 # config.status only pays attention to the cache file if you give it
15527 # the --recheck option to rerun configure.
15528 #
15529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15531 # following values.
15532
15533 _ACEOF
15534
15535 # The following way of writing the cache mishandles newlines in values,
15536 # but we know of no workaround that is simple, portable, and efficient.
15537 # So, we kill variables containing newlines.
15538 # Ultrix sh set writes to stderr and can't be redirected directly,
15539 # and sets the high bit in the cache file unless we assign to the vars.
15540 (
15541   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15542     eval ac_val=\$$ac_var
15543     case $ac_val in #(
15544     *${as_nl}*)
15545       case $ac_var in #(
15546       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15548       esac
15549       case $ac_var in #(
15550       _ | IFS | as_nl) ;; #(
15551       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15552       *) { eval $ac_var=; unset $ac_var;} ;;
15553       esac ;;
15554     esac
15555   done
15556
15557   (set) 2>&1 |
15558     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15559     *${as_nl}ac_space=\ *)
15560       # `set' does not quote correctly, so add quotes: double-quote
15561       # substitution turns \\\\ into \\, and sed turns \\ into \.
15562       sed -n \
15563         "s/'/'\\\\''/g;
15564           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15565       ;; #(
15566     *)
15567       # `set' quotes correctly as required by POSIX, so do not add quotes.
15568       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15569       ;;
15570     esac |
15571     sort
15572 ) |
15573   sed '
15574      /^ac_cv_env_/b end
15575      t clear
15576      :clear
15577      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15578      t end
15579      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15580      :end' >>confcache
15581 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15582   if test -w "$cache_file"; then
15583     test "x$cache_file" != "x/dev/null" &&
15584       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15585 $as_echo "$as_me: updating cache $cache_file" >&6;}
15586     cat confcache >$cache_file
15587   else
15588     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15589 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15590   fi
15591 fi
15592 rm -f confcache
15593
15594 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15595 # Let make expand exec_prefix.
15596 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15597
15598 DEFS=-DHAVE_CONFIG_H
15599
15600 ac_libobjs=
15601 ac_ltlibobjs=
15602 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15603   # 1. Remove the extension, and $U if already installed.
15604   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15605   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15606   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15607   #    will be set to the directory where LIBOBJS objects are built.
15608   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15609   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15610 done
15611 LIBOBJS=$ac_libobjs
15612
15613 LTLIBOBJS=$ac_ltlibobjs
15614
15615
15616 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15617   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15619 fi
15620 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15621   as_fn_error "conditional \"GMAKE\" was never defined.
15622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15623 fi
15624 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15625   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15627 fi
15628
15629     gl_libobjs=
15630     gl_ltlibobjs=
15631     if test -n "$gl_LIBOBJS"; then
15632       # Remove the extension.
15633       sed_drop_objext='s/\.o$//;s/\.obj$//'
15634       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15635         gl_libobjs="$gl_libobjs $i.$ac_objext"
15636         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15637       done
15638     fi
15639     gl_LIBOBJS=$gl_libobjs
15640
15641     gl_LTLIBOBJS=$gl_ltlibobjs
15642
15643
15644
15645     gltests_libobjs=
15646     gltests_ltlibobjs=
15647     if test -n "$gltests_LIBOBJS"; then
15648       # Remove the extension.
15649       sed_drop_objext='s/\.o$//;s/\.obj$//'
15650       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15651         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15652         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15653       done
15654     fi
15655     gltests_LIBOBJS=$gltests_libobjs
15656
15657     gltests_LTLIBOBJS=$gltests_ltlibobjs
15658
15659
15660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15661   as_fn_error "conditional \"AMDEP\" was never defined.
15662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15663 fi
15664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15665   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15667 fi
15668  if test -n "$EXEEXT"; then
15669   am__EXEEXT_TRUE=
15670   am__EXEEXT_FALSE='#'
15671 else
15672   am__EXEEXT_TRUE='#'
15673   am__EXEEXT_FALSE=
15674 fi
15675
15676
15677
15678 : ${CONFIG_STATUS=./config.status}
15679 ac_write_fail=0
15680 ac_clean_files_save=$ac_clean_files
15681 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15683 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15684 as_write_fail=0
15685 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15686 #! $SHELL
15687 # Generated by $as_me.
15688 # Run this file to recreate the current configuration.
15689 # Compiler output produced by configure, useful for debugging
15690 # configure, is in config.log if it exists.
15691
15692 debug=false
15693 ac_cs_recheck=false
15694 ac_cs_silent=false
15695
15696 SHELL=\${CONFIG_SHELL-$SHELL}
15697 export SHELL
15698 _ASEOF
15699 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15700 ## -------------------- ##
15701 ## M4sh Initialization. ##
15702 ## -------------------- ##
15703
15704 # Be more Bourne compatible
15705 DUALCASE=1; export DUALCASE # for MKS sh
15706 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15707   emulate sh
15708   NULLCMD=:
15709   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15710   # is contrary to our usage.  Disable this feature.
15711   alias -g '${1+"$@"}'='"$@"'
15712   setopt NO_GLOB_SUBST
15713 else
15714   case `(set -o) 2>/dev/null` in #(
15715   *posix*) :
15716     set -o posix ;; #(
15717   *) :
15718      ;;
15719 esac
15720 fi
15721
15722
15723 as_nl='
15724 '
15725 export as_nl
15726 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15727 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15728 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15729 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15730 # Prefer a ksh shell builtin over an external printf program on Solaris,
15731 # but without wasting forks for bash or zsh.
15732 if test -z "$BASH_VERSION$ZSH_VERSION" \
15733     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15734   as_echo='print -r --'
15735   as_echo_n='print -rn --'
15736 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15737   as_echo='printf %s\n'
15738   as_echo_n='printf %s'
15739 else
15740   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15741     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15742     as_echo_n='/usr/ucb/echo -n'
15743   else
15744     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15745     as_echo_n_body='eval
15746       arg=$1;
15747       case $arg in #(
15748       *"$as_nl"*)
15749         expr "X$arg" : "X\\(.*\\)$as_nl";
15750         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15751       esac;
15752       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15753     '
15754     export as_echo_n_body
15755     as_echo_n='sh -c $as_echo_n_body as_echo'
15756   fi
15757   export as_echo_body
15758   as_echo='sh -c $as_echo_body as_echo'
15759 fi
15760
15761 # The user is always right.
15762 if test "${PATH_SEPARATOR+set}" != set; then
15763   PATH_SEPARATOR=:
15764   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15765     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15766       PATH_SEPARATOR=';'
15767   }
15768 fi
15769
15770
15771 # IFS
15772 # We need space, tab and new line, in precisely that order.  Quoting is
15773 # there to prevent editors from complaining about space-tab.
15774 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15775 # splitting by setting IFS to empty value.)
15776 IFS=" ""        $as_nl"
15777
15778 # Find who we are.  Look in the path if we contain no directory separator.
15779 case $0 in #((
15780   *[\\/]* ) as_myself=$0 ;;
15781   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15782 for as_dir in $PATH
15783 do
15784   IFS=$as_save_IFS
15785   test -z "$as_dir" && as_dir=.
15786     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15787   done
15788 IFS=$as_save_IFS
15789
15790      ;;
15791 esac
15792 # We did not find ourselves, most probably we were run as `sh COMMAND'
15793 # in which case we are not to be found in the path.
15794 if test "x$as_myself" = x; then
15795   as_myself=$0
15796 fi
15797 if test ! -f "$as_myself"; then
15798   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15799   exit 1
15800 fi
15801
15802 # Unset variables that we do not need and which cause bugs (e.g. in
15803 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15804 # suppresses any "Segmentation fault" message there.  '((' could
15805 # trigger a bug in pdksh 5.2.14.
15806 for as_var in BASH_ENV ENV MAIL MAILPATH
15807 do eval test x\${$as_var+set} = xset \
15808   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15809 done
15810 PS1='$ '
15811 PS2='> '
15812 PS4='+ '
15813
15814 # NLS nuisances.
15815 LC_ALL=C
15816 export LC_ALL
15817 LANGUAGE=C
15818 export LANGUAGE
15819
15820 # CDPATH.
15821 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15822
15823
15824 # as_fn_error ERROR [LINENO LOG_FD]
15825 # ---------------------------------
15826 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15827 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15828 # script with status $?, using 1 if that was 0.
15829 as_fn_error ()
15830 {
15831   as_status=$?; test $as_status -eq 0 && as_status=1
15832   if test "$3"; then
15833     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15834     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15835   fi
15836   $as_echo "$as_me: error: $1" >&2
15837   as_fn_exit $as_status
15838 } # as_fn_error
15839
15840
15841 # as_fn_set_status STATUS
15842 # -----------------------
15843 # Set $? to STATUS, without forking.
15844 as_fn_set_status ()
15845 {
15846   return $1
15847 } # as_fn_set_status
15848
15849 # as_fn_exit STATUS
15850 # -----------------
15851 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15852 as_fn_exit ()
15853 {
15854   set +e
15855   as_fn_set_status $1
15856   exit $1
15857 } # as_fn_exit
15858
15859 # as_fn_unset VAR
15860 # ---------------
15861 # Portably unset VAR.
15862 as_fn_unset ()
15863 {
15864   { eval $1=; unset $1;}
15865 }
15866 as_unset=as_fn_unset
15867 # as_fn_append VAR VALUE
15868 # ----------------------
15869 # Append the text in VALUE to the end of the definition contained in VAR. Take
15870 # advantage of any shell optimizations that allow amortized linear growth over
15871 # repeated appends, instead of the typical quadratic growth present in naive
15872 # implementations.
15873 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15874   eval 'as_fn_append ()
15875   {
15876     eval $1+=\$2
15877   }'
15878 else
15879   as_fn_append ()
15880   {
15881     eval $1=\$$1\$2
15882   }
15883 fi # as_fn_append
15884
15885 # as_fn_arith ARG...
15886 # ------------------
15887 # Perform arithmetic evaluation on the ARGs, and store the result in the
15888 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15889 # must be portable across $(()) and expr.
15890 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15891   eval 'as_fn_arith ()
15892   {
15893     as_val=$(( $* ))
15894   }'
15895 else
15896   as_fn_arith ()
15897   {
15898     as_val=`expr "$@" || test $? -eq 1`
15899   }
15900 fi # as_fn_arith
15901
15902
15903 if expr a : '\(a\)' >/dev/null 2>&1 &&
15904    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15905   as_expr=expr
15906 else
15907   as_expr=false
15908 fi
15909
15910 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15911   as_basename=basename
15912 else
15913   as_basename=false
15914 fi
15915
15916 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15917   as_dirname=dirname
15918 else
15919   as_dirname=false
15920 fi
15921
15922 as_me=`$as_basename -- "$0" ||
15923 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15924          X"$0" : 'X\(//\)$' \| \
15925          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15926 $as_echo X/"$0" |
15927     sed '/^.*\/\([^/][^/]*\)\/*$/{
15928             s//\1/
15929             q
15930           }
15931           /^X\/\(\/\/\)$/{
15932             s//\1/
15933             q
15934           }
15935           /^X\/\(\/\).*/{
15936             s//\1/
15937             q
15938           }
15939           s/.*/./; q'`
15940
15941 # Avoid depending upon Character Ranges.
15942 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15943 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15944 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15945 as_cr_digits='0123456789'
15946 as_cr_alnum=$as_cr_Letters$as_cr_digits
15947
15948 ECHO_C= ECHO_N= ECHO_T=
15949 case `echo -n x` in #(((((
15950 -n*)
15951   case `echo 'xy\c'` in
15952   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15953   xy)  ECHO_C='\c';;
15954   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15955        ECHO_T=' ';;
15956   esac;;
15957 *)
15958   ECHO_N='-n';;
15959 esac
15960
15961 rm -f conf$$ conf$$.exe conf$$.file
15962 if test -d conf$$.dir; then
15963   rm -f conf$$.dir/conf$$.file
15964 else
15965   rm -f conf$$.dir
15966   mkdir conf$$.dir 2>/dev/null
15967 fi
15968 if (echo >conf$$.file) 2>/dev/null; then
15969   if ln -s conf$$.file conf$$ 2>/dev/null; then
15970     as_ln_s='ln -s'
15971     # ... but there are two gotchas:
15972     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15973     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15974     # In both cases, we have to default to `cp -p'.
15975     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15976       as_ln_s='cp -p'
15977   elif ln conf$$.file conf$$ 2>/dev/null; then
15978     as_ln_s=ln
15979   else
15980     as_ln_s='cp -p'
15981   fi
15982 else
15983   as_ln_s='cp -p'
15984 fi
15985 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15986 rmdir conf$$.dir 2>/dev/null
15987
15988
15989 # as_fn_mkdir_p
15990 # -------------
15991 # Create "$as_dir" as a directory, including parents if necessary.
15992 as_fn_mkdir_p ()
15993 {
15994
15995   case $as_dir in #(
15996   -*) as_dir=./$as_dir;;
15997   esac
15998   test -d "$as_dir" || eval $as_mkdir_p || {
15999     as_dirs=
16000     while :; do
16001       case $as_dir in #(
16002       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16003       *) as_qdir=$as_dir;;
16004       esac
16005       as_dirs="'$as_qdir' $as_dirs"
16006       as_dir=`$as_dirname -- "$as_dir" ||
16007 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16008          X"$as_dir" : 'X\(//\)[^/]' \| \
16009          X"$as_dir" : 'X\(//\)$' \| \
16010          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16011 $as_echo X"$as_dir" |
16012     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16013             s//\1/
16014             q
16015           }
16016           /^X\(\/\/\)[^/].*/{
16017             s//\1/
16018             q
16019           }
16020           /^X\(\/\/\)$/{
16021             s//\1/
16022             q
16023           }
16024           /^X\(\/\).*/{
16025             s//\1/
16026             q
16027           }
16028           s/.*/./; q'`
16029       test -d "$as_dir" && break
16030     done
16031     test -z "$as_dirs" || eval "mkdir $as_dirs"
16032   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16033
16034
16035 } # as_fn_mkdir_p
16036 if mkdir -p . 2>/dev/null; then
16037   as_mkdir_p='mkdir -p "$as_dir"'
16038 else
16039   test -d ./-p && rmdir ./-p
16040   as_mkdir_p=false
16041 fi
16042
16043 if test -x / >/dev/null 2>&1; then
16044   as_test_x='test -x'
16045 else
16046   if ls -dL / >/dev/null 2>&1; then
16047     as_ls_L_option=L
16048   else
16049     as_ls_L_option=
16050   fi
16051   as_test_x='
16052     eval sh -c '\''
16053       if test -d "$1"; then
16054         test -d "$1/.";
16055       else
16056         case $1 in #(
16057         -*)set "./$1";;
16058         esac;
16059         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16060         ???[sx]*):;;*)false;;esac;fi
16061     '\'' sh
16062   '
16063 fi
16064 as_executable_p=$as_test_x
16065
16066 # Sed expression to map a string onto a valid CPP name.
16067 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16068
16069 # Sed expression to map a string onto a valid variable name.
16070 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16071
16072
16073 exec 6>&1
16074 ## ----------------------------------- ##
16075 ## Main body of $CONFIG_STATUS script. ##
16076 ## ----------------------------------- ##
16077 _ASEOF
16078 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16079
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 # Save the log message, to keep $0 and so on meaningful, and to
16082 # report actual input values of CONFIG_FILES etc. instead of their
16083 # values after options handling.
16084 ac_log="
16085 This file was extended by $as_me, which was
16086 generated by GNU Autoconf 2.64.  Invocation command line was
16087
16088   CONFIG_FILES    = $CONFIG_FILES
16089   CONFIG_HEADERS  = $CONFIG_HEADERS
16090   CONFIG_LINKS    = $CONFIG_LINKS
16091   CONFIG_COMMANDS = $CONFIG_COMMANDS
16092   $ $0 $@
16093
16094 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16095 "
16096
16097 _ACEOF
16098
16099 case $ac_config_files in *"
16100 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16101 esac
16102
16103 case $ac_config_headers in *"
16104 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16105 esac
16106
16107
16108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16109 # Files that config.status was made for.
16110 config_files="$ac_config_files"
16111 config_headers="$ac_config_headers"
16112 config_links="$ac_config_links"
16113 config_commands="$ac_config_commands"
16114
16115 _ACEOF
16116
16117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16118 ac_cs_usage="\
16119 \`$as_me' instantiates files and other configuration actions
16120 from templates according to the current configuration.  Unless the files
16121 and actions are specified as TAGs, all are instantiated by default.
16122
16123 Usage: $0 [OPTION]... [TAG]...
16124
16125   -h, --help       print this help, then exit
16126   -V, --version    print version number and configuration settings, then exit
16127   -q, --quiet, --silent
16128                    do not print progress messages
16129   -d, --debug      don't remove temporary files
16130       --recheck    update $as_me by reconfiguring in the same conditions
16131       --file=FILE[:TEMPLATE]
16132                    instantiate the configuration file FILE
16133       --header=FILE[:TEMPLATE]
16134                    instantiate the configuration header FILE
16135
16136 Configuration files:
16137 $config_files
16138
16139 Configuration headers:
16140 $config_headers
16141
16142 Configuration links:
16143 $config_links
16144
16145 Configuration commands:
16146 $config_commands
16147
16148 Report bugs to the package provider."
16149
16150 _ACEOF
16151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16152 ac_cs_version="\\
16153 config.status
16154 configured by $0, generated by GNU Autoconf 2.64,
16155   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16156
16157 Copyright (C) 2009 Free Software Foundation, Inc.
16158 This config.status script is free software; the Free Software Foundation
16159 gives unlimited permission to copy, distribute and modify it."
16160
16161 ac_pwd='$ac_pwd'
16162 srcdir='$srcdir'
16163 INSTALL='$INSTALL'
16164 MKDIR_P='$MKDIR_P'
16165 AWK='$AWK'
16166 test -n "\$AWK" || AWK=awk
16167 _ACEOF
16168
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16170 # The default lists apply if the user does not specify any file.
16171 ac_need_defaults=:
16172 while test $# != 0
16173 do
16174   case $1 in
16175   --*=*)
16176     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16177     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16178     ac_shift=:
16179     ;;
16180   *)
16181     ac_option=$1
16182     ac_optarg=$2
16183     ac_shift=shift
16184     ;;
16185   esac
16186
16187   case $ac_option in
16188   # Handling of the options.
16189   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16190     ac_cs_recheck=: ;;
16191   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16192     $as_echo "$ac_cs_version"; exit ;;
16193   --debug | --debu | --deb | --de | --d | -d )
16194     debug=: ;;
16195   --file | --fil | --fi | --f )
16196     $ac_shift
16197     case $ac_optarg in
16198     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16199     esac
16200     as_fn_append CONFIG_FILES " '$ac_optarg'"
16201     ac_need_defaults=false;;
16202   --header | --heade | --head | --hea )
16203     $ac_shift
16204     case $ac_optarg in
16205     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16206     esac
16207     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16208     ac_need_defaults=false;;
16209   --he | --h)
16210     # Conflict between --help and --header
16211     as_fn_error "ambiguous option: \`$1'
16212 Try \`$0 --help' for more information.";;
16213   --help | --hel | -h )
16214     $as_echo "$ac_cs_usage"; exit ;;
16215   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16216   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16217     ac_cs_silent=: ;;
16218
16219   # This is an error.
16220   -*) as_fn_error "unrecognized option: \`$1'
16221 Try \`$0 --help' for more information." ;;
16222
16223   *) as_fn_append ac_config_targets " $1"
16224      ac_need_defaults=false ;;
16225
16226   esac
16227   shift
16228 done
16229
16230 ac_configure_extra_args=
16231
16232 if $ac_cs_silent; then
16233   exec 6>/dev/null
16234   ac_configure_extra_args="$ac_configure_extra_args --silent"
16235 fi
16236
16237 _ACEOF
16238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16239 if \$ac_cs_recheck; then
16240   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16241   shift
16242   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16243   CONFIG_SHELL='$SHELL'
16244   export CONFIG_SHELL
16245   exec "\$@"
16246 fi
16247
16248 _ACEOF
16249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16250 exec 5>>config.log
16251 {
16252   echo
16253   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16254 ## Running $as_me. ##
16255 _ASBOX
16256   $as_echo "$ac_log"
16257 } >&5
16258
16259 _ACEOF
16260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16261 #
16262 # INIT-COMMANDS
16263 #
16264 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16265 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16266
16267 _ACEOF
16268
16269 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16270
16271 # Handling of arguments.
16272 for ac_config_target in $ac_config_targets
16273 do
16274   case $ac_config_target in
16275     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16276     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16277     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16278     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16279     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16280     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16281     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16282     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16283
16284   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16285   esac
16286 done
16287
16288
16289 # If the user did not use the arguments to specify the items to instantiate,
16290 # then the envvar interface is used.  Set only those that are not.
16291 # We use the long form for the default assignment because of an extremely
16292 # bizarre bug on SunOS 4.1.3.
16293 if $ac_need_defaults; then
16294   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16295   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16296   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16297   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16298 fi
16299
16300 # Have a temporary directory for convenience.  Make it in the build tree
16301 # simply because there is no reason against having it here, and in addition,
16302 # creating and moving files from /tmp can sometimes cause problems.
16303 # Hook for its removal unless debugging.
16304 # Note that there is a small window in which the directory will not be cleaned:
16305 # after its creation but before its name has been assigned to `$tmp'.
16306 $debug ||
16307 {
16308   tmp=
16309   trap 'exit_status=$?
16310   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16311 ' 0
16312   trap 'as_fn_exit 1' 1 2 13 15
16313 }
16314 # Create a (secure) tmp directory for tmp files.
16315
16316 {
16317   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16318   test -n "$tmp" && test -d "$tmp"
16319 }  ||
16320 {
16321   tmp=./conf$$-$RANDOM
16322   (umask 077 && mkdir "$tmp")
16323 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16324
16325 # Set up the scripts for CONFIG_FILES section.
16326 # No need to generate them if there are no CONFIG_FILES.
16327 # This happens for instance with `./config.status config.h'.
16328 if test -n "$CONFIG_FILES"; then
16329
16330 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16331   ac_cs_awk_getline=:
16332   ac_cs_awk_pipe_init=
16333   ac_cs_awk_read_file='
16334       while ((getline aline < (F[key])) > 0)
16335         print(aline)
16336       close(F[key])'
16337   ac_cs_awk_pipe_fini=
16338 else
16339   ac_cs_awk_getline=false
16340   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16341   ac_cs_awk_read_file='
16342       print "|#_!!_#|"
16343       print "cat " F[key] " &&"
16344       '$ac_cs_awk_pipe_init
16345   # The final `:' finishes the AND list.
16346   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16347 fi
16348 ac_cr=`echo X | tr X '\015'`
16349 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16350 # But we know of no other shell where ac_cr would be empty at this
16351 # point, so we can use a bashism as a fallback.
16352 if test "x$ac_cr" = x; then
16353   eval ac_cr=\$\'\\r\'
16354 fi
16355 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16356 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16357   ac_cs_awk_cr='\r'
16358 else
16359   ac_cs_awk_cr=$ac_cr
16360 fi
16361
16362 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16363 _ACEOF
16364
16365 # Create commands to substitute file output variables.
16366 {
16367   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16368   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16369   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16370   echo "_ACAWK" &&
16371   echo "_ACEOF"
16372 } >conf$$files.sh &&
16373 . ./conf$$files.sh ||
16374   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16375 rm -f conf$$files.sh
16376
16377 {
16378   echo "cat >conf$$subs.awk <<_ACEOF" &&
16379   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16380   echo "_ACEOF"
16381 } >conf$$subs.sh ||
16382   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16383 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16384 ac_delim='%!_!# '
16385 for ac_last_try in false false false false false :; do
16386   . ./conf$$subs.sh ||
16387     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16388
16389   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16390   if test $ac_delim_n = $ac_delim_num; then
16391     break
16392   elif $ac_last_try; then
16393     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16394   else
16395     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16396   fi
16397 done
16398 rm -f conf$$subs.sh
16399
16400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16401 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16402 _ACEOF
16403 sed -n '
16404 h
16405 s/^/S["/; s/!.*/"]=/
16406 p
16407 g
16408 s/^[^!]*!//
16409 :repl
16410 t repl
16411 s/'"$ac_delim"'$//
16412 t delim
16413 :nl
16414 h
16415 s/\(.\{148\}\).*/\1/
16416 t more1
16417 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16418 p
16419 n
16420 b repl
16421 :more1
16422 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16423 p
16424 g
16425 s/.\{148\}//
16426 t nl
16427 :delim
16428 h
16429 s/\(.\{148\}\).*/\1/
16430 t more2
16431 s/["\\]/\\&/g; s/^/"/; s/$/"/
16432 p
16433 b
16434 :more2
16435 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16436 p
16437 g
16438 s/.\{148\}//
16439 t delim
16440 ' <conf$$subs.awk | sed '
16441 /^[^""]/{
16442   N
16443   s/\n//
16444 }
16445 ' >>$CONFIG_STATUS || ac_write_fail=1
16446 rm -f conf$$subs.awk
16447 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16448 _ACAWK
16449 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16450   for (key in S) S_is_set[key] = 1
16451   FS = "\a"
16452   \$ac_cs_awk_pipe_init
16453 }
16454 {
16455   line = $ 0
16456   nfields = split(line, field, "@")
16457   substed = 0
16458   len = length(field[1])
16459   for (i = 2; i < nfields; i++) {
16460     key = field[i]
16461     keylen = length(key)
16462     if (S_is_set[key]) {
16463       value = S[key]
16464       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16465       len += length(value) + length(field[++i])
16466       substed = 1
16467     } else
16468       len += 1 + keylen
16469   }
16470   if (nfields == 3 && !substed) {
16471     key = field[2]
16472     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16473       \$ac_cs_awk_read_file
16474       next
16475     }
16476   }
16477   print line
16478 }
16479 \$ac_cs_awk_pipe_fini
16480 _ACAWK
16481 _ACEOF
16482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16483 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16484   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16485 else
16486   cat
16487 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16488   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16489 _ACEOF
16490
16491 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16492 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16493 # trailing colons and then remove the whole line if VPATH becomes empty
16494 # (actually we leave an empty line to preserve line numbers).
16495 if test "x$srcdir" = x.; then
16496   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16497 s/:*\$(srcdir):*/:/
16498 s/:*\${srcdir}:*/:/
16499 s/:*@srcdir@:*/:/
16500 s/^\([^=]*=[     ]*\):*/\1/
16501 s/:*$//
16502 s/^[^=]*=[       ]*$//
16503 }'
16504 fi
16505
16506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16507 fi # test -n "$CONFIG_FILES"
16508
16509 # Set up the scripts for CONFIG_HEADERS section.
16510 # No need to generate them if there are no CONFIG_HEADERS.
16511 # This happens for instance with `./config.status Makefile'.
16512 if test -n "$CONFIG_HEADERS"; then
16513 cat >"$tmp/defines.awk" <<\_ACAWK ||
16514 BEGIN {
16515 _ACEOF
16516
16517 # Transform confdefs.h into an awk script `defines.awk', embedded as
16518 # here-document in config.status, that substitutes the proper values into
16519 # config.h.in to produce config.h.
16520
16521 # Create a delimiter string that does not exist in confdefs.h, to ease
16522 # handling of long lines.
16523 ac_delim='%!_!# '
16524 for ac_last_try in false false :; do
16525   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16526   if test -z "$ac_t"; then
16527     break
16528   elif $ac_last_try; then
16529     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16530   else
16531     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16532   fi
16533 done
16534
16535 # For the awk script, D is an array of macro values keyed by name,
16536 # likewise P contains macro parameters if any.  Preserve backslash
16537 # newline sequences.
16538
16539 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16540 sed -n '
16541 s/.\{148\}/&'"$ac_delim"'/g
16542 t rset
16543 :rset
16544 s/^[     ]*#[    ]*define[       ][      ]*/ /
16545 t def
16546 d
16547 :def
16548 s/\\$//
16549 t bsnl
16550 s/["\\]/\\&/g
16551 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16552 D["\1"]=" \3"/p
16553 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16554 d
16555 :bsnl
16556 s/["\\]/\\&/g
16557 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16558 D["\1"]=" \3\\\\\\n"\\/p
16559 t cont
16560 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16561 t cont
16562 d
16563 :cont
16564 n
16565 s/.\{148\}/&'"$ac_delim"'/g
16566 t clear
16567 :clear
16568 s/\\$//
16569 t bsnlc
16570 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16571 d
16572 :bsnlc
16573 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16574 b cont
16575 ' <confdefs.h | sed '
16576 s/'"$ac_delim"'/"\\\
16577 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16578
16579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16580   for (key in D) D_is_set[key] = 1
16581   FS = "\a"
16582 }
16583 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16584   line = \$ 0
16585   split(line, arg, " ")
16586   if (arg[1] == "#") {
16587     defundef = arg[2]
16588     mac1 = arg[3]
16589   } else {
16590     defundef = substr(arg[1], 2)
16591     mac1 = arg[2]
16592   }
16593   split(mac1, mac2, "(") #)
16594   macro = mac2[1]
16595   prefix = substr(line, 1, index(line, defundef) - 1)
16596   if (D_is_set[macro]) {
16597     # Preserve the white space surrounding the "#".
16598     print prefix "define", macro P[macro] D[macro]
16599     next
16600   } else {
16601     # Replace #undef with comments.  This is necessary, for example,
16602     # in the case of _POSIX_SOURCE, which is predefined and required
16603     # on some systems where configure will not decide to define it.
16604     if (defundef == "undef") {
16605       print "/*", prefix defundef, macro, "*/"
16606       next
16607     }
16608   }
16609 }
16610 { print }
16611 _ACAWK
16612 _ACEOF
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16614   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16615 fi # test -n "$CONFIG_HEADERS"
16616
16617
16618 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16619 shift
16620 for ac_tag
16621 do
16622   case $ac_tag in
16623   :[FHLC]) ac_mode=$ac_tag; continue;;
16624   esac
16625   case $ac_mode$ac_tag in
16626   :[FHL]*:*);;
16627   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16628   :[FH]-) ac_tag=-:-;;
16629   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16630   esac
16631   ac_save_IFS=$IFS
16632   IFS=:
16633   set x $ac_tag
16634   IFS=$ac_save_IFS
16635   shift
16636   ac_file=$1
16637   shift
16638
16639   case $ac_mode in
16640   :L) ac_source=$1;;
16641   :[FH])
16642     ac_file_inputs=
16643     for ac_f
16644     do
16645       case $ac_f in
16646       -) ac_f="$tmp/stdin";;
16647       *) # Look for the file first in the build tree, then in the source tree
16648          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16649          # because $ac_f cannot contain `:'.
16650          test -f "$ac_f" ||
16651            case $ac_f in
16652            [\\/$]*) false;;
16653            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16654            esac ||
16655            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16656       esac
16657       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16658       as_fn_append ac_file_inputs " '$ac_f'"
16659     done
16660
16661     # Let's still pretend it is `configure' which instantiates (i.e., don't
16662     # use $as_me), people would be surprised to read:
16663     #    /* config.h.  Generated by config.status.  */
16664     configure_input='Generated from '`
16665           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16666         `' by configure.'
16667     if test x"$ac_file" != x-; then
16668       configure_input="$ac_file.  $configure_input"
16669       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16670 $as_echo "$as_me: creating $ac_file" >&6;}
16671     fi
16672     # Neutralize special characters interpreted by sed in replacement strings.
16673     case $configure_input in #(
16674     *\&* | *\|* | *\\* )
16675        ac_sed_conf_input=`$as_echo "$configure_input" |
16676        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16677     *) ac_sed_conf_input=$configure_input;;
16678     esac
16679
16680     case $ac_tag in
16681     *:-:* | *:-) cat >"$tmp/stdin" \
16682       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16683     esac
16684     ;;
16685   esac
16686
16687   ac_dir=`$as_dirname -- "$ac_file" ||
16688 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16689          X"$ac_file" : 'X\(//\)[^/]' \| \
16690          X"$ac_file" : 'X\(//\)$' \| \
16691          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16692 $as_echo X"$ac_file" |
16693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16694             s//\1/
16695             q
16696           }
16697           /^X\(\/\/\)[^/].*/{
16698             s//\1/
16699             q
16700           }
16701           /^X\(\/\/\)$/{
16702             s//\1/
16703             q
16704           }
16705           /^X\(\/\).*/{
16706             s//\1/
16707             q
16708           }
16709           s/.*/./; q'`
16710   as_dir="$ac_dir"; as_fn_mkdir_p
16711   ac_builddir=.
16712
16713 case "$ac_dir" in
16714 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16715 *)
16716   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16717   # A ".." for each directory in $ac_dir_suffix.
16718   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16719   case $ac_top_builddir_sub in
16720   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16721   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16722   esac ;;
16723 esac
16724 ac_abs_top_builddir=$ac_pwd
16725 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16726 # for backward compatibility:
16727 ac_top_builddir=$ac_top_build_prefix
16728
16729 case $srcdir in
16730   .)  # We are building in place.
16731     ac_srcdir=.
16732     ac_top_srcdir=$ac_top_builddir_sub
16733     ac_abs_top_srcdir=$ac_pwd ;;
16734   [\\/]* | ?:[\\/]* )  # Absolute name.
16735     ac_srcdir=$srcdir$ac_dir_suffix;
16736     ac_top_srcdir=$srcdir
16737     ac_abs_top_srcdir=$srcdir ;;
16738   *) # Relative name.
16739     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16740     ac_top_srcdir=$ac_top_build_prefix$srcdir
16741     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16742 esac
16743 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16744
16745
16746   case $ac_mode in
16747   :F)
16748   #
16749   # CONFIG_FILE
16750   #
16751
16752   case $INSTALL in
16753   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16754   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16755   esac
16756   ac_MKDIR_P=$MKDIR_P
16757   case $MKDIR_P in
16758   [\\/$]* | ?:[\\/]* ) ;;
16759   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16760   esac
16761 _ACEOF
16762
16763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16764 # If the template does not know about datarootdir, expand it.
16765 # FIXME: This hack should be removed a few years after 2.60.
16766 ac_datarootdir_hack=; ac_datarootdir_seen=
16767 ac_sed_dataroot='
16768 /datarootdir/ {
16769   p
16770   q
16771 }
16772 /@datadir@/p
16773 /@docdir@/p
16774 /@infodir@/p
16775 /@localedir@/p
16776 /@mandir@/p'
16777 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16778 *datarootdir*) ac_datarootdir_seen=yes;;
16779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16780   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16781 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16782 _ACEOF
16783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16784   ac_datarootdir_hack='
16785   s&@datadir@&$datadir&g
16786   s&@docdir@&$docdir&g
16787   s&@infodir@&$infodir&g
16788   s&@localedir@&$localedir&g
16789   s&@mandir@&$mandir&g
16790   s&\\\${datarootdir}&$datarootdir&g' ;;
16791 esac
16792 _ACEOF
16793
16794 # Neutralize VPATH when `$srcdir' = `.'.
16795 # Shell code in configure.ac might set extrasub.
16796 # FIXME: do we really want to maintain this feature?
16797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16798 ac_sed_extra="$ac_vpsub
16799 $extrasub
16800 _ACEOF
16801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16802 :t
16803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16804 s|@configure_input@|$ac_sed_conf_input|;t t
16805 s&@top_builddir@&$ac_top_builddir_sub&;t t
16806 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16807 s&@srcdir@&$ac_srcdir&;t t
16808 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16809 s&@top_srcdir@&$ac_top_srcdir&;t t
16810 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16811 s&@builddir@&$ac_builddir&;t t
16812 s&@abs_builddir@&$ac_abs_builddir&;t t
16813 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16814 s&@INSTALL@&$ac_INSTALL&;t t
16815 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16816 $ac_datarootdir_hack
16817 "
16818 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16819 if $ac_cs_awk_getline; then
16820   $AWK -f "$tmp/subs.awk"
16821 else
16822   $AWK -f "$tmp/subs.awk" | $SHELL
16823 fi >$tmp/out \
16824   || as_fn_error "could not create $ac_file" "$LINENO" 5
16825
16826 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16827   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16828   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16829   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16830 which seems to be undefined.  Please make sure it is defined." >&5
16831 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16832 which seems to be undefined.  Please make sure it is defined." >&2;}
16833
16834   rm -f "$tmp/stdin"
16835   case $ac_file in
16836   -) cat "$tmp/out" && rm -f "$tmp/out";;
16837   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16838   esac \
16839   || as_fn_error "could not create $ac_file" "$LINENO" 5
16840  ;;
16841   :H)
16842   #
16843   # CONFIG_HEADER
16844   #
16845   if test x"$ac_file" != x-; then
16846     {
16847       $as_echo "/* $configure_input  */" \
16848       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16849     } >"$tmp/config.h" \
16850       || as_fn_error "could not create $ac_file" "$LINENO" 5
16851     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16852       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16853 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16854     else
16855       rm -f "$ac_file"
16856       mv "$tmp/config.h" "$ac_file" \
16857         || as_fn_error "could not create $ac_file" "$LINENO" 5
16858     fi
16859   else
16860     $as_echo "/* $configure_input  */" \
16861       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16862       || as_fn_error "could not create -" "$LINENO" 5
16863   fi
16864 # Compute "$ac_file"'s index in $config_headers.
16865 _am_arg="$ac_file"
16866 _am_stamp_count=1
16867 for _am_header in $config_headers :; do
16868   case $_am_header in
16869     $_am_arg | $_am_arg:* )
16870       break ;;
16871     * )
16872       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16873   esac
16874 done
16875 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16876 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16877          X"$_am_arg" : 'X\(//\)[^/]' \| \
16878          X"$_am_arg" : 'X\(//\)$' \| \
16879          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16880 $as_echo X"$_am_arg" |
16881     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16882             s//\1/
16883             q
16884           }
16885           /^X\(\/\/\)[^/].*/{
16886             s//\1/
16887             q
16888           }
16889           /^X\(\/\/\)$/{
16890             s//\1/
16891             q
16892           }
16893           /^X\(\/\).*/{
16894             s//\1/
16895             q
16896           }
16897           s/.*/./; q'`/stamp-h$_am_stamp_count
16898  ;;
16899   :L)
16900   #
16901   # CONFIG_LINK
16902   #
16903
16904   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16905     :
16906   else
16907     # Prefer the file from the source tree if names are identical.
16908     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16909       ac_source=$srcdir/$ac_source
16910     fi
16911
16912     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16913 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16914
16915     if test ! -r "$ac_source"; then
16916       as_fn_error "$ac_source: file not found" "$LINENO" 5
16917     fi
16918     rm -f "$ac_file"
16919
16920     # Try a relative symlink, then a hard link, then a copy.
16921     case $srcdir in
16922     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16923         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16924     esac
16925     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16926       ln "$ac_source" "$ac_file" 2>/dev/null ||
16927       cp -p "$ac_source" "$ac_file" ||
16928       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16929   fi
16930  ;;
16931   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16932 $as_echo "$as_me: executing $ac_file commands" >&6;}
16933  ;;
16934   esac
16935
16936
16937   case $ac_file$ac_mode in
16938     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
16939     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16940   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16941   # are listed without --file.  Let's play safe and only enable the eval
16942   # if we detect the quoting.
16943   case $CONFIG_FILES in
16944   *\'*) eval set x "$CONFIG_FILES" ;;
16945   *)   set x $CONFIG_FILES ;;
16946   esac
16947   shift
16948   for mf
16949   do
16950     # Strip MF so we end up with the name of the file.
16951     mf=`echo "$mf" | sed -e 's/:.*$//'`
16952     # Check whether this is an Automake generated Makefile or not.
16953     # We used to match only the files named `Makefile.in', but
16954     # some people rename them; so instead we look at the file content.
16955     # Grep'ing the first line is not enough: some people post-process
16956     # each Makefile.in and add a new line on top of each file to say so.
16957     # Grep'ing the whole file is not good either: AIX grep has a line
16958     # limit of 2048, but all sed's we know have understand at least 4000.
16959     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16960       dirpart=`$as_dirname -- "$mf" ||
16961 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16962          X"$mf" : 'X\(//\)[^/]' \| \
16963          X"$mf" : 'X\(//\)$' \| \
16964          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16965 $as_echo X"$mf" |
16966     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16967             s//\1/
16968             q
16969           }
16970           /^X\(\/\/\)[^/].*/{
16971             s//\1/
16972             q
16973           }
16974           /^X\(\/\/\)$/{
16975             s//\1/
16976             q
16977           }
16978           /^X\(\/\).*/{
16979             s//\1/
16980             q
16981           }
16982           s/.*/./; q'`
16983     else
16984       continue
16985     fi
16986     # Extract the definition of DEPDIR, am__include, and am__quote
16987     # from the Makefile without running `make'.
16988     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16989     test -z "$DEPDIR" && continue
16990     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16991     test -z "am__include" && continue
16992     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16993     # When using ansi2knr, U may be empty or an underscore; expand it
16994     U=`sed -n 's/^U = //p' < "$mf"`
16995     # Find all dependency output files, they are included files with
16996     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16997     # simplest approach to changing $(DEPDIR) to its actual value in the
16998     # expansion.
16999     for file in `sed -n "
17000       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17001          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17002       # Make sure the directory exists.
17003       test -f "$dirpart/$file" && continue
17004       fdir=`$as_dirname -- "$file" ||
17005 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17006          X"$file" : 'X\(//\)[^/]' \| \
17007          X"$file" : 'X\(//\)$' \| \
17008          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17009 $as_echo X"$file" |
17010     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17011             s//\1/
17012             q
17013           }
17014           /^X\(\/\/\)[^/].*/{
17015             s//\1/
17016             q
17017           }
17018           /^X\(\/\/\)$/{
17019             s//\1/
17020             q
17021           }
17022           /^X\(\/\).*/{
17023             s//\1/
17024             q
17025           }
17026           s/.*/./; q'`
17027       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17028       # echo "creating $dirpart/$file"
17029       echo '# dummy' > "$dirpart/$file"
17030     done
17031   done
17032 }
17033  ;;
17034     "default":C)
17035 case x$CONFIG_HEADERS in
17036 xconfig.h:config.in)
17037 echo > stamp-h ;;
17038 esac
17039  ;;
17040
17041   esac
17042 done # for ac_tag
17043
17044
17045 as_fn_exit 0
17046 _ACEOF
17047 ac_clean_files=$ac_clean_files_save
17048
17049 test $ac_write_fail = 0 ||
17050   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17051
17052
17053 # configure is writing to config.log, and then calls config.status.
17054 # config.status does its own redirection, appending to config.log.
17055 # Unfortunately, on DOS this fails, as config.log is still kept open
17056 # by configure, so config.status won't be able to write to it; its
17057 # output is simply discarded.  So we exec the FD to /dev/null,
17058 # effectively closing config.log, so it can be properly (re)opened and
17059 # appended to by config.status.  When coming back to configure, we
17060 # need to make the FD available again.
17061 if test "$no_create" != yes; then
17062   ac_cs_success=:
17063   ac_config_status_args=
17064   test "$silent" = yes &&
17065     ac_config_status_args="$ac_config_status_args --quiet"
17066   exec 5>/dev/null
17067   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17068   exec 5>>config.log
17069   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17070   # would make configure fail if this is the last instruction.
17071   $ac_cs_success || as_fn_exit $?
17072 fi
17073
17074 #
17075 # CONFIG_SUBDIRS section.
17076 #
17077 if test "$no_recursion" != yes; then
17078
17079   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17080   # so they do not pile up.
17081   ac_sub_configure_args=
17082   ac_prev=
17083   eval "set x $ac_configure_args"
17084   shift
17085   for ac_arg
17086   do
17087     if test -n "$ac_prev"; then
17088       ac_prev=
17089       continue
17090     fi
17091     case $ac_arg in
17092     -cache-file | --cache-file | --cache-fil | --cache-fi \
17093     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17094       ac_prev=cache_file ;;
17095     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17096     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17097     | --c=*)
17098       ;;
17099     --config-cache | -C)
17100       ;;
17101     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17102       ac_prev=srcdir ;;
17103     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17104       ;;
17105     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17106       ac_prev=prefix ;;
17107     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17108       ;;
17109     --disable-option-checking)
17110       ;;
17111     *)
17112       case $ac_arg in
17113       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17114       esac
17115       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17116     esac
17117   done
17118
17119   # Always prepend --prefix to ensure using the same prefix
17120   # in subdir configurations.
17121   ac_arg="--prefix=$prefix"
17122   case $ac_arg in
17123   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17124   esac
17125   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17126
17127   # Pass --silent
17128   if test "$silent" = yes; then
17129     ac_sub_configure_args="--silent $ac_sub_configure_args"
17130   fi
17131
17132   # Always prepend --disable-option-checking to silence warnings, since
17133   # different subdirs can have different --enable and --with options.
17134   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17135
17136   ac_popdir=`pwd`
17137   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17138
17139     # Do not complain, so a configure script can configure whichever
17140     # parts of a large source tree are present.
17141     test -d "$srcdir/$ac_dir" || continue
17142
17143     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17144     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17145     $as_echo "$ac_msg" >&6
17146     as_dir="$ac_dir"; as_fn_mkdir_p
17147     ac_builddir=.
17148
17149 case "$ac_dir" in
17150 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17151 *)
17152   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17153   # A ".." for each directory in $ac_dir_suffix.
17154   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17155   case $ac_top_builddir_sub in
17156   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17157   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17158   esac ;;
17159 esac
17160 ac_abs_top_builddir=$ac_pwd
17161 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17162 # for backward compatibility:
17163 ac_top_builddir=$ac_top_build_prefix
17164
17165 case $srcdir in
17166   .)  # We are building in place.
17167     ac_srcdir=.
17168     ac_top_srcdir=$ac_top_builddir_sub
17169     ac_abs_top_srcdir=$ac_pwd ;;
17170   [\\/]* | ?:[\\/]* )  # Absolute name.
17171     ac_srcdir=$srcdir$ac_dir_suffix;
17172     ac_top_srcdir=$srcdir
17173     ac_abs_top_srcdir=$srcdir ;;
17174   *) # Relative name.
17175     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17176     ac_top_srcdir=$ac_top_build_prefix$srcdir
17177     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17178 esac
17179 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17180
17181
17182     cd "$ac_dir"
17183
17184     # Check for guested configure; otherwise get Cygnus style configure.
17185     if test -f "$ac_srcdir/configure.gnu"; then
17186       ac_sub_configure=$ac_srcdir/configure.gnu
17187     elif test -f "$ac_srcdir/configure"; then
17188       ac_sub_configure=$ac_srcdir/configure
17189     elif test -f "$ac_srcdir/configure.in"; then
17190       # This should be Cygnus configure.
17191       ac_sub_configure=$ac_aux_dir/configure
17192     else
17193       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17194 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17195       ac_sub_configure=
17196     fi
17197
17198     # The recursion is here.
17199     if test -n "$ac_sub_configure"; then
17200       # Make the cache file name correct relative to the subdirectory.
17201       case $cache_file in
17202       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17203       *) # Relative name.
17204         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17205       esac
17206
17207       { $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
17208 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17209       # The eval makes quoting arguments work.
17210       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17211            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17212         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17213     fi
17214
17215     cd "$ac_popdir"
17216   done
17217 fi
17218 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17219   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17220 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17221 fi
17222
17223
17224 exit 0