f557aa1f217a661f6ace63f4d25df61fb308ba7d
[external/binutils.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173   if (eval "$as_required") 2>/dev/null; then :
174   as_have_required=yes
175 else
176   as_have_required=no
177 fi
178   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185   IFS=$as_save_IFS
186   test -z "$as_dir" && as_dir=.
187   as_found=:
188   case $as_dir in #(
189          /*)
190            for as_base in sh bash ksh sh5; do
191              # Try only shells that exist, to save several forks.
192              as_shell=$as_dir/$as_base
193              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195   CONFIG_SHELL=$as_shell as_have_required=yes
196                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   break 2
198 fi
199 fi
200            done;;
201        esac
202   as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206   CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211       if test "x$CONFIG_SHELL" != x; then :
212   # We cannot yet assume a decent shell, so we have to provide a
213         # neutralization value for shells without unset; and this also
214         # works around shells that cannot unset nonexistent variables.
215         BASH_ENV=/dev/null
216         ENV=/dev/null
217         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218         export CONFIG_SHELL
219         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222     if test x$as_have_required = xno; then :
223   $as_echo "$0: This script requires a shell more modern than all"
224   $as_echo "$0: the shells that I found on your system."
225   if test x${ZSH_VERSION+set} = xset ; then
226     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228   else
229     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233   fi
234   exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252   { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261   return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269   set +e
270   as_fn_set_status $1
271   exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280   case $as_dir in #(
281   -*) as_dir=./$as_dir;;
282   esac
283   test -d "$as_dir" || eval $as_mkdir_p || {
284     as_dirs=
285     while :; do
286       case $as_dir in #(
287       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288       *) as_qdir=$as_dir;;
289       esac
290       as_dirs="'$as_qdir' $as_dirs"
291       as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293          X"$as_dir" : 'X\(//\)[^/]' \| \
294          X"$as_dir" : 'X\(//\)$' \| \
295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298             s//\1/
299             q
300           }
301           /^X\(\/\/\)[^/].*/{
302             s//\1/
303             q
304           }
305           /^X\(\/\/\)$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\).*/{
310             s//\1/
311             q
312           }
313           s/.*/./; q'`
314       test -d "$as_dir" && break
315     done
316     test -z "$as_dirs" || eval "mkdir $as_dirs"
317   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328   eval 'as_fn_append ()
329   {
330     eval $1+=\$2
331   }'
332 else
333   as_fn_append ()
334   {
335     eval $1=\$$1\$2
336   }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345   eval 'as_fn_arith ()
346   {
347     as_val=$(( $* ))
348   }'
349 else
350   as_fn_arith ()
351   {
352     as_val=`expr "$@" || test $? -eq 1`
353   }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364   as_status=$?; test $as_status -eq 0 && as_status=1
365   if test "$3"; then
366     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368   fi
369   $as_echo "$as_me: error: $1" >&2
370   as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374    test "X`expr 00001 : '.*\(...\)'`" = X001; then
375   as_expr=expr
376 else
377   as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381   as_basename=basename
382 else
383   as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387   as_dirname=dirname
388 else
389   as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394          X"$0" : 'X\(//\)$' \| \
395          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397     sed '/^.*\/\([^/][^/]*\)\/*$/{
398             s//\1/
399             q
400           }
401           /^X\/\(\/\/\)$/{
402             s//\1/
403             q
404           }
405           /^X\/\(\/\).*/{
406             s//\1/
407             q
408           }
409           s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419   as_lineno_1=$LINENO as_lineno_1a=$LINENO
420   as_lineno_2=$LINENO as_lineno_2a=$LINENO
421   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424   sed -n '
425     p
426     /[$]LINENO/=
427   ' <$as_myself |
428     sed '
429       s/[$]LINENO.*/&-/
430       t lineno
431       b
432       :lineno
433       N
434       :loop
435       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436       t loop
437       s/-\n.*//
438     ' >$as_me.lineno &&
439   chmod +x "$as_me.lineno" ||
440     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442   # Don't try to exec as it changes $[0], causing all sort of problems
443   # (the dirname of $[0] is not the place where we might find the
444   # original and so on.  Autoconf is especially sensitive to this).
445   . "./$as_me.lineno"
446   # Exit status is that of the last command.
447   exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453   case `echo 'xy\c'` in
454   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
455   xy)  ECHO_C='\c';;
456   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457        ECHO_T=' ';;
458   esac;;
459 *)
460   ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465   rm -f conf$$.dir/conf$$.file
466 else
467   rm -f conf$$.dir
468   mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471   if ln -s conf$$.file conf$$ 2>/dev/null; then
472     as_ln_s='ln -s'
473     # ... but there are two gotchas:
474     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476     # In both cases, we have to default to `cp -p'.
477     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478       as_ln_s='cp -p'
479   elif ln conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s=ln
481   else
482     as_ln_s='cp -p'
483   fi
484 else
485   as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491   as_mkdir_p='mkdir -p "$as_dir"'
492 else
493   test -d ./-p && rmdir ./-p
494   as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498   as_test_x='test -x'
499 else
500   if ls -dL / >/dev/null 2>&1; then
501     as_ls_L_option=L
502   else
503     as_ls_L_option=
504   fi
505   as_test_x='
506     eval sh -c '\''
507       if test -d "$1"; then
508         test -d "$1/.";
509       else
510         case $1 in #(
511         -*)set "./$1";;
512         esac;
513         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514         ???[sx]*):;;*)false;;esac;fi
515     '\'' sh
516   '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="main.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 #  include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 #  include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 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 RDYNAMIC
661 ALLOCA
662 PYTHON_CFLAGS
663 python_prog_path
664 LTLIBEXPAT
665 LIBEXPAT
666 HAVE_LIBEXPAT
667 READLINE_CFLAGS
668 READLINE_DEPS
669 READLINE
670 MIG
671 WINDRES
672 DLLTOOL
673 AR
674 YFLAGS
675 YACC
676 LN_S
677 REPORT_BUGS_TEXI
678 REPORT_BUGS_TO
679 PKGVERSION
680 TARGET_OBS
681 subdirs
682 GDB_DATADIR
683 DEBUGDIR
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 am__untar
692 am__tar
693 AMTAR
694 AWK
695 mkdir_p
696 MKDIR_P
697 INSTALL_STRIP_PROGRAM
698 STRIP
699 install_sh
700 MAKEINFO
701 AUTOHEADER
702 AUTOMAKE
703 AUTOCONF
704 ACLOCAL
705 VERSION
706 CYGPATH_W
707 am__isrc
708 INSTALL_DATA
709 INSTALL_SCRIPT
710 INSTALL_PROGRAM
711 PACKAGE
712 GNULIB_STDINT_H
713 LIBGNU_LTLIBDEPS
714 LIBGNU_LIBDEPS
715 gltests_WITNESS
716 HAVE_WINT_T
717 HAVE_WCHAR_H
718 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
719 NEXT_WCHAR_H
720 REPLACE_WCWIDTH
721 REPLACE_WCSNRTOMBS
722 REPLACE_WCSRTOMBS
723 REPLACE_WCRTOMB
724 REPLACE_MBSNRTOWCS
725 REPLACE_MBSRTOWCS
726 REPLACE_MBRLEN
727 REPLACE_MBRTOWC
728 REPLACE_MBSINIT
729 REPLACE_WCTOB
730 REPLACE_BTOWC
731 REPLACE_MBSTATE_T
732 HAVE_DECL_WCWIDTH
733 HAVE_DECL_WCTOB
734 HAVE_WCSNRTOMBS
735 HAVE_WCSRTOMBS
736 HAVE_WCRTOMB
737 HAVE_MBSNRTOWCS
738 HAVE_MBSRTOWCS
739 HAVE_MBRLEN
740 HAVE_MBRTOWC
741 HAVE_MBSINIT
742 HAVE_BTOWC
743 GNULIB_WCWIDTH
744 GNULIB_WCSNRTOMBS
745 GNULIB_WCSRTOMBS
746 GNULIB_WCRTOMB
747 GNULIB_MBSNRTOWCS
748 GNULIB_MBSRTOWCS
749 GNULIB_MBRLEN
750 GNULIB_MBRTOWC
751 GNULIB_MBSINIT
752 GNULIB_WCTOB
753 GNULIB_BTOWC
754 NEXT_AS_FIRST_DIRECTIVE_STRING_H
755 NEXT_STRING_H
756 STDINT_H
757 WINT_T_SUFFIX
758 WCHAR_T_SUFFIX
759 SIG_ATOMIC_T_SUFFIX
760 SIZE_T_SUFFIX
761 PTRDIFF_T_SUFFIX
762 HAVE_SIGNED_WINT_T
763 HAVE_SIGNED_WCHAR_T
764 HAVE_SIGNED_SIG_ATOMIC_T
765 BITSIZEOF_WINT_T
766 BITSIZEOF_WCHAR_T
767 BITSIZEOF_SIG_ATOMIC_T
768 BITSIZEOF_SIZE_T
769 BITSIZEOF_PTRDIFF_T
770 HAVE_SYS_BITYPES_H
771 HAVE_SYS_INTTYPES_H
772 HAVE_STDINT_H
773 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
774 NEXT_STDINT_H
775 HAVE_SYS_TYPES_H
776 HAVE_INTTYPES_H
777 HAVE_UNSIGNED_LONG_LONG_INT
778 HAVE_LONG_LONG_INT
779 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
780 NEXT_STDDEF_H
781 PRAGMA_SYSTEM_HEADER
782 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
783 INCLUDE_NEXT
784 STDDEF_H
785 HAVE_WCHAR_T
786 REPLACE_NULL
787 APPLE_UNIVERSAL_BUILD
788 UNDEFINE_STRTOK_R
789 REPLACE_STRTOK_R
790 REPLACE_STRSIGNAL
791 REPLACE_STRNLEN
792 REPLACE_STRNDUP
793 REPLACE_STRNCAT
794 REPLACE_STRERROR
795 REPLACE_STRCASESTR
796 REPLACE_STRSTR
797 REPLACE_STRDUP
798 REPLACE_STPNCPY
799 REPLACE_MEMMEM
800 REPLACE_MEMCHR
801 HAVE_STRVERSCMP
802 HAVE_DECL_STRSIGNAL
803 HAVE_DECL_STRTOK_R
804 HAVE_STRCASESTR
805 HAVE_STRSEP
806 HAVE_STRPBRK
807 HAVE_DECL_STRNLEN
808 HAVE_DECL_STRNDUP
809 HAVE_DECL_STRDUP
810 HAVE_STRCHRNUL
811 HAVE_STPNCPY
812 HAVE_STPCPY
813 HAVE_RAWMEMCHR
814 HAVE_DECL_MEMRCHR
815 HAVE_MEMPCPY
816 HAVE_DECL_MEMMEM
817 HAVE_MEMCHR
818 HAVE_MBSLEN
819 GNULIB_STRVERSCMP
820 GNULIB_STRSIGNAL
821 GNULIB_STRERROR
822 GNULIB_MBSTOK_R
823 GNULIB_MBSSEP
824 GNULIB_MBSSPN
825 GNULIB_MBSPBRK
826 GNULIB_MBSCSPN
827 GNULIB_MBSCASESTR
828 GNULIB_MBSPCASECMP
829 GNULIB_MBSNCASECMP
830 GNULIB_MBSCASECMP
831 GNULIB_MBSSTR
832 GNULIB_MBSRCHR
833 GNULIB_MBSCHR
834 GNULIB_MBSNLEN
835 GNULIB_MBSLEN
836 GNULIB_STRTOK_R
837 GNULIB_STRCASESTR
838 GNULIB_STRSTR
839 GNULIB_STRSEP
840 GNULIB_STRPBRK
841 GNULIB_STRNLEN
842 GNULIB_STRNDUP
843 GNULIB_STRNCAT
844 GNULIB_STRDUP
845 GNULIB_STRCHRNUL
846 GNULIB_STPNCPY
847 GNULIB_STPCPY
848 GNULIB_RAWMEMCHR
849 GNULIB_MEMRCHR
850 GNULIB_MEMPCPY
851 GNULIB_MEMMEM
852 GNULIB_MEMCHR
853 GL_COND_LIBTOOL_FALSE
854 GL_COND_LIBTOOL_TRUE
855 CATOBJEXT
856 GENCAT
857 INSTOBJEXT
858 DATADIRNAME
859 CATALOGS
860 POSUB
861 GMSGFMT
862 XGETTEXT
863 INCINTL
864 LIBINTL_DEP
865 LIBINTL
866 USE_NLS
867 SET_MAKE
868 GMAKE_FALSE
869 GMAKE_TRUE
870 MAKE
871 CCDEPMODE
872 DEPDIR
873 am__leading_dot
874 target_os
875 target_vendor
876 target_cpu
877 target
878 RANLIB
879 EGREP
880 GREP
881 CPP
882 host_os
883 host_vendor
884 host_cpu
885 host
886 build_os
887 build_vendor
888 build_cpu
889 build
890 OBJEXT
891 EXEEXT
892 ac_ct_CC
893 CPPFLAGS
894 LDFLAGS
895 CFLAGS
896 CC
897 MAINT
898 MAINTAINER_MODE_FALSE
899 MAINTAINER_MODE_TRUE
900 target_alias
901 host_alias
902 build_alias
903 LIBS
904 ECHO_T
905 ECHO_N
906 ECHO_C
907 DEFS
908 mandir
909 localedir
910 libdir
911 psdir
912 pdfdir
913 dvidir
914 htmldir
915 infodir
916 docdir
917 oldincludedir
918 includedir
919 localstatedir
920 sharedstatedir
921 sysconfdir
922 datadir
923 datarootdir
924 libexecdir
925 sbindir
926 bindir
927 program_transform_name
928 prefix
929 exec_prefix
930 PACKAGE_URL
931 PACKAGE_BUGREPORT
932 PACKAGE_STRING
933 PACKAGE_VERSION
934 PACKAGE_TARNAME
935 PACKAGE_NAME
936 PATH_SEPARATOR
937 SHELL'
938 ac_subst_files='host_makefile_frag'
939 ac_user_opts='
940 enable_option_checking
941 enable_maintainer_mode
942 enable_plugins
943 enable_largefile
944 enable_dependency_tracking
945 with_separate_debug_dir
946 with_gdb_datadir
947 with_relocated_sources
948 enable_targets
949 enable_64_bit_bfd
950 enable_gdbcli
951 enable_gdbmi
952 enable_tui
953 enable_gdbtk
954 with_libunwind
955 with_curses
956 enable_profiling
957 with_pkgversion
958 with_bugurl
959 with_zlib
960 with_libiconv_prefix
961 with_system_readline
962 with_expat
963 with_gnu_ld
964 enable_rpath
965 with_libexpat_prefix
966 with_python
967 with_included_regex
968 with_sysroot
969 with_system_gdbinit
970 enable_werror
971 enable_build_warnings
972 enable_gdb_build_warnings
973 with_tcl
974 with_tk
975 with_x
976 enable_sim
977 enable_multi_ice
978 '
979       ac_precious_vars='build_alias
980 host_alias
981 target_alias
982 CC
983 CFLAGS
984 LDFLAGS
985 LIBS
986 CPPFLAGS
987 CPP
988 YACC
989 YFLAGS
990 XMKMF'
991 ac_subdirs_all='doc testsuite
992 gdbtk
993 multi-ice
994 gdbserver'
995
996 # Initialize some variables set by options.
997 ac_init_help=
998 ac_init_version=false
999 ac_unrecognized_opts=
1000 ac_unrecognized_sep=
1001 # The variables have the same names as the options, with
1002 # dashes changed to underlines.
1003 cache_file=/dev/null
1004 exec_prefix=NONE
1005 no_create=
1006 no_recursion=
1007 prefix=NONE
1008 program_prefix=NONE
1009 program_suffix=NONE
1010 program_transform_name=s,x,x,
1011 silent=
1012 site=
1013 srcdir=
1014 verbose=
1015 x_includes=NONE
1016 x_libraries=NONE
1017
1018 # Installation directory options.
1019 # These are left unexpanded so users can "make install exec_prefix=/foo"
1020 # and all the variables that are supposed to be based on exec_prefix
1021 # by default will actually change.
1022 # Use braces instead of parens because sh, perl, etc. also accept them.
1023 # (The list follows the same order as the GNU Coding Standards.)
1024 bindir='${exec_prefix}/bin'
1025 sbindir='${exec_prefix}/sbin'
1026 libexecdir='${exec_prefix}/libexec'
1027 datarootdir='${prefix}/share'
1028 datadir='${datarootdir}'
1029 sysconfdir='${prefix}/etc'
1030 sharedstatedir='${prefix}/com'
1031 localstatedir='${prefix}/var'
1032 includedir='${prefix}/include'
1033 oldincludedir='/usr/include'
1034 docdir='${datarootdir}/doc/${PACKAGE}'
1035 infodir='${datarootdir}/info'
1036 htmldir='${docdir}'
1037 dvidir='${docdir}'
1038 pdfdir='${docdir}'
1039 psdir='${docdir}'
1040 libdir='${exec_prefix}/lib'
1041 localedir='${datarootdir}/locale'
1042 mandir='${datarootdir}/man'
1043
1044 ac_prev=
1045 ac_dashdash=
1046 for ac_option
1047 do
1048   # If the previous option needs an argument, assign it.
1049   if test -n "$ac_prev"; then
1050     eval $ac_prev=\$ac_option
1051     ac_prev=
1052     continue
1053   fi
1054
1055   case $ac_option in
1056   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1057   *)    ac_optarg=yes ;;
1058   esac
1059
1060   # Accept the important Cygnus configure options, so we can diagnose typos.
1061
1062   case $ac_dashdash$ac_option in
1063   --)
1064     ac_dashdash=yes ;;
1065
1066   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1067     ac_prev=bindir ;;
1068   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1069     bindir=$ac_optarg ;;
1070
1071   -build | --build | --buil | --bui | --bu)
1072     ac_prev=build_alias ;;
1073   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1074     build_alias=$ac_optarg ;;
1075
1076   -cache-file | --cache-file | --cache-fil | --cache-fi \
1077   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1078     ac_prev=cache_file ;;
1079   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1080   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1081     cache_file=$ac_optarg ;;
1082
1083   --config-cache | -C)
1084     cache_file=config.cache ;;
1085
1086   -datadir | --datadir | --datadi | --datad)
1087     ac_prev=datadir ;;
1088   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1089     datadir=$ac_optarg ;;
1090
1091   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1092   | --dataroo | --dataro | --datar)
1093     ac_prev=datarootdir ;;
1094   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1095   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1096     datarootdir=$ac_optarg ;;
1097
1098   -disable-* | --disable-*)
1099     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102       as_fn_error "invalid feature name: $ac_useropt"
1103     ac_useropt_orig=$ac_useropt
1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105     case $ac_user_opts in
1106       *"
1107 "enable_$ac_useropt"
1108 "*) ;;
1109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1110          ac_unrecognized_sep=', ';;
1111     esac
1112     eval enable_$ac_useropt=no ;;
1113
1114   -docdir | --docdir | --docdi | --doc | --do)
1115     ac_prev=docdir ;;
1116   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1117     docdir=$ac_optarg ;;
1118
1119   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1120     ac_prev=dvidir ;;
1121   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1122     dvidir=$ac_optarg ;;
1123
1124   -enable-* | --enable-*)
1125     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1126     # Reject names that are not valid shell variable names.
1127     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128       as_fn_error "invalid feature name: $ac_useropt"
1129     ac_useropt_orig=$ac_useropt
1130     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131     case $ac_user_opts in
1132       *"
1133 "enable_$ac_useropt"
1134 "*) ;;
1135       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1136          ac_unrecognized_sep=', ';;
1137     esac
1138     eval enable_$ac_useropt=\$ac_optarg ;;
1139
1140   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1141   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1142   | --exec | --exe | --ex)
1143     ac_prev=exec_prefix ;;
1144   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1145   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1146   | --exec=* | --exe=* | --ex=*)
1147     exec_prefix=$ac_optarg ;;
1148
1149   -gas | --gas | --ga | --g)
1150     # Obsolete; use --with-gas.
1151     with_gas=yes ;;
1152
1153   -help | --help | --hel | --he | -h)
1154     ac_init_help=long ;;
1155   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1156     ac_init_help=recursive ;;
1157   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1158     ac_init_help=short ;;
1159
1160   -host | --host | --hos | --ho)
1161     ac_prev=host_alias ;;
1162   -host=* | --host=* | --hos=* | --ho=*)
1163     host_alias=$ac_optarg ;;
1164
1165   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1166     ac_prev=htmldir ;;
1167   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1168   | --ht=*)
1169     htmldir=$ac_optarg ;;
1170
1171   -includedir | --includedir | --includedi | --included | --include \
1172   | --includ | --inclu | --incl | --inc)
1173     ac_prev=includedir ;;
1174   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1175   | --includ=* | --inclu=* | --incl=* | --inc=*)
1176     includedir=$ac_optarg ;;
1177
1178   -infodir | --infodir | --infodi | --infod | --info | --inf)
1179     ac_prev=infodir ;;
1180   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1181     infodir=$ac_optarg ;;
1182
1183   -libdir | --libdir | --libdi | --libd)
1184     ac_prev=libdir ;;
1185   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1186     libdir=$ac_optarg ;;
1187
1188   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1189   | --libexe | --libex | --libe)
1190     ac_prev=libexecdir ;;
1191   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1192   | --libexe=* | --libex=* | --libe=*)
1193     libexecdir=$ac_optarg ;;
1194
1195   -localedir | --localedir | --localedi | --localed | --locale)
1196     ac_prev=localedir ;;
1197   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1198     localedir=$ac_optarg ;;
1199
1200   -localstatedir | --localstatedir | --localstatedi | --localstated \
1201   | --localstate | --localstat | --localsta | --localst | --locals)
1202     ac_prev=localstatedir ;;
1203   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1204   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1205     localstatedir=$ac_optarg ;;
1206
1207   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1208     ac_prev=mandir ;;
1209   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1210     mandir=$ac_optarg ;;
1211
1212   -nfp | --nfp | --nf)
1213     # Obsolete; use --without-fp.
1214     with_fp=no ;;
1215
1216   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1217   | --no-cr | --no-c | -n)
1218     no_create=yes ;;
1219
1220   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1221   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1222     no_recursion=yes ;;
1223
1224   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1225   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1226   | --oldin | --oldi | --old | --ol | --o)
1227     ac_prev=oldincludedir ;;
1228   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1229   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1230   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1231     oldincludedir=$ac_optarg ;;
1232
1233   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1234     ac_prev=prefix ;;
1235   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1236     prefix=$ac_optarg ;;
1237
1238   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1239   | --program-pre | --program-pr | --program-p)
1240     ac_prev=program_prefix ;;
1241   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1242   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1243     program_prefix=$ac_optarg ;;
1244
1245   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1246   | --program-suf | --program-su | --program-s)
1247     ac_prev=program_suffix ;;
1248   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1249   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1250     program_suffix=$ac_optarg ;;
1251
1252   -program-transform-name | --program-transform-name \
1253   | --program-transform-nam | --program-transform-na \
1254   | --program-transform-n | --program-transform- \
1255   | --program-transform | --program-transfor \
1256   | --program-transfo | --program-transf \
1257   | --program-trans | --program-tran \
1258   | --progr-tra | --program-tr | --program-t)
1259     ac_prev=program_transform_name ;;
1260   -program-transform-name=* | --program-transform-name=* \
1261   | --program-transform-nam=* | --program-transform-na=* \
1262   | --program-transform-n=* | --program-transform-=* \
1263   | --program-transform=* | --program-transfor=* \
1264   | --program-transfo=* | --program-transf=* \
1265   | --program-trans=* | --program-tran=* \
1266   | --progr-tra=* | --program-tr=* | --program-t=*)
1267     program_transform_name=$ac_optarg ;;
1268
1269   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1270     ac_prev=pdfdir ;;
1271   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1272     pdfdir=$ac_optarg ;;
1273
1274   -psdir | --psdir | --psdi | --psd | --ps)
1275     ac_prev=psdir ;;
1276   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1277     psdir=$ac_optarg ;;
1278
1279   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1280   | -silent | --silent | --silen | --sile | --sil)
1281     silent=yes ;;
1282
1283   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1284     ac_prev=sbindir ;;
1285   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1286   | --sbi=* | --sb=*)
1287     sbindir=$ac_optarg ;;
1288
1289   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1290   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1291   | --sharedst | --shareds | --shared | --share | --shar \
1292   | --sha | --sh)
1293     ac_prev=sharedstatedir ;;
1294   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1295   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1296   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1297   | --sha=* | --sh=*)
1298     sharedstatedir=$ac_optarg ;;
1299
1300   -site | --site | --sit)
1301     ac_prev=site ;;
1302   -site=* | --site=* | --sit=*)
1303     site=$ac_optarg ;;
1304
1305   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1306     ac_prev=srcdir ;;
1307   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1308     srcdir=$ac_optarg ;;
1309
1310   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1311   | --syscon | --sysco | --sysc | --sys | --sy)
1312     ac_prev=sysconfdir ;;
1313   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1314   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1315     sysconfdir=$ac_optarg ;;
1316
1317   -target | --target | --targe | --targ | --tar | --ta | --t)
1318     ac_prev=target_alias ;;
1319   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1320     target_alias=$ac_optarg ;;
1321
1322   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1323     verbose=yes ;;
1324
1325   -version | --version | --versio | --versi | --vers | -V)
1326     ac_init_version=: ;;
1327
1328   -with-* | --with-*)
1329     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1330     # Reject names that are not valid shell variable names.
1331     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332       as_fn_error "invalid package name: $ac_useropt"
1333     ac_useropt_orig=$ac_useropt
1334     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335     case $ac_user_opts in
1336       *"
1337 "with_$ac_useropt"
1338 "*) ;;
1339       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1340          ac_unrecognized_sep=', ';;
1341     esac
1342     eval with_$ac_useropt=\$ac_optarg ;;
1343
1344   -without-* | --without-*)
1345     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1346     # Reject names that are not valid shell variable names.
1347     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1348       as_fn_error "invalid package name: $ac_useropt"
1349     ac_useropt_orig=$ac_useropt
1350     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351     case $ac_user_opts in
1352       *"
1353 "with_$ac_useropt"
1354 "*) ;;
1355       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1356          ac_unrecognized_sep=', ';;
1357     esac
1358     eval with_$ac_useropt=no ;;
1359
1360   --x)
1361     # Obsolete; use --with-x.
1362     with_x=yes ;;
1363
1364   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1365   | --x-incl | --x-inc | --x-in | --x-i)
1366     ac_prev=x_includes ;;
1367   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1368   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1369     x_includes=$ac_optarg ;;
1370
1371   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1372   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1373     ac_prev=x_libraries ;;
1374   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1375   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1376     x_libraries=$ac_optarg ;;
1377
1378   -*) as_fn_error "unrecognized option: \`$ac_option'
1379 Try \`$0 --help' for more information."
1380     ;;
1381
1382   *=*)
1383     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1384     # Reject names that are not valid shell variable names.
1385     case $ac_envvar in #(
1386       '' | [0-9]* | *[!_$as_cr_alnum]* )
1387       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1388     esac
1389     eval $ac_envvar=\$ac_optarg
1390     export $ac_envvar ;;
1391
1392   *)
1393     # FIXME: should be removed in autoconf 3.0.
1394     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1395     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1397     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1398     ;;
1399
1400   esac
1401 done
1402
1403 if test -n "$ac_prev"; then
1404   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1405   as_fn_error "missing argument to $ac_option"
1406 fi
1407
1408 if test -n "$ac_unrecognized_opts"; then
1409   case $enable_option_checking in
1410     no) ;;
1411     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1412     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1413   esac
1414 fi
1415
1416 # Check all directory arguments for consistency.
1417 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1418                 datadir sysconfdir sharedstatedir localstatedir includedir \
1419                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1420                 libdir localedir mandir
1421 do
1422   eval ac_val=\$$ac_var
1423   # Remove trailing slashes.
1424   case $ac_val in
1425     */ )
1426       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1427       eval $ac_var=\$ac_val;;
1428   esac
1429   # Be sure to have absolute directory names.
1430   case $ac_val in
1431     [\\/$]* | ?:[\\/]* )  continue;;
1432     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1433   esac
1434   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1435 done
1436
1437 # There might be people who depend on the old broken behavior: `$host'
1438 # used to hold the argument of --host etc.
1439 # FIXME: To remove some day.
1440 build=$build_alias
1441 host=$host_alias
1442 target=$target_alias
1443
1444 # FIXME: To remove some day.
1445 if test "x$host_alias" != x; then
1446   if test "x$build_alias" = x; then
1447     cross_compiling=maybe
1448     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1449     If a cross compiler is detected then cross compile mode will be used." >&2
1450   elif test "x$build_alias" != "x$host_alias"; then
1451     cross_compiling=yes
1452   fi
1453 fi
1454
1455 ac_tool_prefix=
1456 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1457
1458 test "$silent" = yes && exec 6>/dev/null
1459
1460
1461 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1462 ac_ls_di=`ls -di .` &&
1463 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1464   as_fn_error "working directory cannot be determined"
1465 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1466   as_fn_error "pwd does not report name of working directory"
1467
1468
1469 # Find the source files, if location was not specified.
1470 if test -z "$srcdir"; then
1471   ac_srcdir_defaulted=yes
1472   # Try the directory containing this script, then the parent directory.
1473   ac_confdir=`$as_dirname -- "$as_myself" ||
1474 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1475          X"$as_myself" : 'X\(//\)[^/]' \| \
1476          X"$as_myself" : 'X\(//\)$' \| \
1477          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1478 $as_echo X"$as_myself" |
1479     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1480             s//\1/
1481             q
1482           }
1483           /^X\(\/\/\)[^/].*/{
1484             s//\1/
1485             q
1486           }
1487           /^X\(\/\/\)$/{
1488             s//\1/
1489             q
1490           }
1491           /^X\(\/\).*/{
1492             s//\1/
1493             q
1494           }
1495           s/.*/./; q'`
1496   srcdir=$ac_confdir
1497   if test ! -r "$srcdir/$ac_unique_file"; then
1498     srcdir=..
1499   fi
1500 else
1501   ac_srcdir_defaulted=no
1502 fi
1503 if test ! -r "$srcdir/$ac_unique_file"; then
1504   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1505   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1506 fi
1507 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1508 ac_abs_confdir=`(
1509         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1510         pwd)`
1511 # When building in place, set srcdir=.
1512 if test "$ac_abs_confdir" = "$ac_pwd"; then
1513   srcdir=.
1514 fi
1515 # Remove unnecessary trailing slashes from srcdir.
1516 # Double slashes in file names in object file debugging info
1517 # mess up M-x gdb in Emacs.
1518 case $srcdir in
1519 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1520 esac
1521 for ac_var in $ac_precious_vars; do
1522   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1523   eval ac_env_${ac_var}_value=\$${ac_var}
1524   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1525   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1526 done
1527
1528 #
1529 # Report the --help message.
1530 #
1531 if test "$ac_init_help" = "long"; then
1532   # Omit some internal or obsolete options to make the list less imposing.
1533   # This message is too long to be a string in the A/UX 3.1 sh.
1534   cat <<_ACEOF
1535 \`configure' configures this package to adapt to many kinds of systems.
1536
1537 Usage: $0 [OPTION]... [VAR=VALUE]...
1538
1539 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1540 VAR=VALUE.  See below for descriptions of some of the useful variables.
1541
1542 Defaults for the options are specified in brackets.
1543
1544 Configuration:
1545   -h, --help              display this help and exit
1546       --help=short        display options specific to this package
1547       --help=recursive    display the short help of all the included packages
1548   -V, --version           display version information and exit
1549   -q, --quiet, --silent   do not print \`checking...' messages
1550       --cache-file=FILE   cache test results in FILE [disabled]
1551   -C, --config-cache      alias for \`--cache-file=config.cache'
1552   -n, --no-create         do not create output files
1553       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1554
1555 Installation directories:
1556   --prefix=PREFIX         install architecture-independent files in PREFIX
1557                           [$ac_default_prefix]
1558   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1559                           [PREFIX]
1560
1561 By default, \`make install' will install all the files in
1562 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1563 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1564 for instance \`--prefix=\$HOME'.
1565
1566 For better control, use the options below.
1567
1568 Fine tuning of the installation directories:
1569   --bindir=DIR            user executables [EPREFIX/bin]
1570   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1571   --libexecdir=DIR        program executables [EPREFIX/libexec]
1572   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1573   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1574   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1575   --libdir=DIR            object code libraries [EPREFIX/lib]
1576   --includedir=DIR        C header files [PREFIX/include]
1577   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1578   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1579   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1580   --infodir=DIR           info documentation [DATAROOTDIR/info]
1581   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1582   --mandir=DIR            man documentation [DATAROOTDIR/man]
1583   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1584   --htmldir=DIR           html documentation [DOCDIR]
1585   --dvidir=DIR            dvi documentation [DOCDIR]
1586   --pdfdir=DIR            pdf documentation [DOCDIR]
1587   --psdir=DIR             ps documentation [DOCDIR]
1588 _ACEOF
1589
1590   cat <<\_ACEOF
1591
1592 Program names:
1593   --program-prefix=PREFIX            prepend PREFIX to installed program names
1594   --program-suffix=SUFFIX            append SUFFIX to installed program names
1595   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1596
1597 X features:
1598   --x-includes=DIR    X include files are in DIR
1599   --x-libraries=DIR   X library files are in DIR
1600
1601 System types:
1602   --build=BUILD     configure for building on BUILD [guessed]
1603   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1604   --target=TARGET   configure for building compilers for TARGET [HOST]
1605 _ACEOF
1606 fi
1607
1608 if test -n "$ac_init_help"; then
1609
1610   cat <<\_ACEOF
1611
1612 Optional Features:
1613   --disable-option-checking  ignore unrecognized --enable/--with options
1614   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1615   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1616   --enable-maintainer-mode  enable make rules and dependencies not useful
1617                           (and sometimes confusing) to the casual installer
1618   --enable-plugins        Enable support for plugins (defaults no)
1619   --disable-largefile     omit support for large files
1620   --disable-dependency-tracking  speeds up one-time build
1621   --enable-dependency-tracking   do not reject slow dependency extractors
1622   --enable-targets=TARGETS
1623                           alternative target configurations
1624   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1625   --disable-gdbcli        disable command-line interface (CLI)
1626   --disable-gdbmi         disable machine-interface (MI)
1627   --enable-tui            enable full-screen terminal user interface (TUI)
1628   --enable-gdbtk          enable gdbtk graphical user interface (GUI)
1629   --enable-profiling      enable profiling of GDB
1630   --disable-rpath         do not hardcode runtime library paths
1631   --enable-werror         treat compile warnings as errors
1632   --enable-build-warnings enable build-time compiler warnings if gcc is used
1633   --enable-gdb-build-warnings
1634                           enable GDB specific build-time compiler warnings if
1635                           gcc is used
1636   --enable-sim            link gdb with simulator
1637   --enable-multi-ice      build the multi-ice-gdb-server
1638
1639 Optional Packages:
1640   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1641   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1642   --with-separate-debug-dir=PATH
1643                           look for global separate debug info in this path
1644                           [LIBDIR/debug]
1645   --with-gdb-datadir=PATH look for global separate data files in this path
1646                           [DATADIR/gdb]
1647   --with-relocated-sources=PATH
1648                           automatically relocate this path for source files
1649   --with-libunwind        use libunwind frame unwinding support
1650   --with-curses           use the curses library instead of the termcap
1651                           library
1652   --with-pkgversion=PKG   Use PKG in the version string in place of "GDB"
1653   --with-bugurl=URL       Direct users to URL to report a bug
1654   --with-zlib             include zlib support (auto/yes/no) default=auto
1655   --with-libiconv-prefix=DIR
1656                           search for libiconv in DIR/include and DIR/lib
1657   --with-system-readline  use installed readline library
1658   --with-expat            include expat support (auto/yes/no)
1659   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1660   --with-libexpat-prefix[=DIR]  search for libexpat in DIR/include and DIR/lib
1661   --without-libexpat-prefix     don't search for libexpat in includedir and libdir
1662   --with-python[=PYTHON]  include python support
1663                           (auto/yes/no/<python-program>)
1664   --without-included-regex
1665                           don't use included regex; this is the default on
1666                           systems with version 2 of the GNU C library (use
1667                           with caution on other system)
1668   --with-sysroot[=DIR]    search for usr/lib et al within DIR
1669   --with-system-gdbinit=PATH
1670                           automatically load a system-wide gdbinit file
1671   --with-tcl              directory containing tcl configuration (tclConfig.sh)
1672   --with-tk               directory containing tk configuration (tkConfig.sh)
1673   --with-x                use the X Window System
1674
1675 Some influential environment variables:
1676   CC          C compiler command
1677   CFLAGS      C compiler flags
1678   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1679               nonstandard directory <lib dir>
1680   LIBS        libraries to pass to the linker, e.g. -l<library>
1681   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1682               you have headers in a nonstandard directory <include dir>
1683   CPP         C preprocessor
1684   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1685               the first program found out of: `bison -y', `byacc', `yacc'.
1686   YFLAGS      The list of arguments that will be passed by default to $YACC.
1687               This script will default YFLAGS to the empty string to avoid a
1688               default value of `-d' given by some make applications.
1689   XMKMF       Path to xmkmf, Makefile generator for X Window System
1690
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1693
1694 Report bugs to the package provider.
1695 _ACEOF
1696 ac_status=$?
1697 fi
1698
1699 if test "$ac_init_help" = "recursive"; then
1700   # If there are subdirs, report their specific --help.
1701   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702     test -d "$ac_dir" ||
1703       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704       continue
1705     ac_builddir=.
1706
1707 case "$ac_dir" in
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *)
1710   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711   # A ".." for each directory in $ac_dir_suffix.
1712   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713   case $ac_top_builddir_sub in
1714   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716   esac ;;
1717 esac
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1722
1723 case $srcdir in
1724   .)  # We are building in place.
1725     ac_srcdir=.
1726     ac_top_srcdir=$ac_top_builddir_sub
1727     ac_abs_top_srcdir=$ac_pwd ;;
1728   [\\/]* | ?:[\\/]* )  # Absolute name.
1729     ac_srcdir=$srcdir$ac_dir_suffix;
1730     ac_top_srcdir=$srcdir
1731     ac_abs_top_srcdir=$srcdir ;;
1732   *) # Relative name.
1733     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734     ac_top_srcdir=$ac_top_build_prefix$srcdir
1735     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1736 esac
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738
1739     cd "$ac_dir" || { ac_status=$?; continue; }
1740     # Check for guested configure.
1741     if test -f "$ac_srcdir/configure.gnu"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744     elif test -f "$ac_srcdir/configure"; then
1745       echo &&
1746       $SHELL "$ac_srcdir/configure" --help=recursive
1747     else
1748       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749     fi || ac_status=$?
1750     cd "$ac_pwd" || { ac_status=$?; break; }
1751   done
1752 fi
1753
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1756   cat <<\_ACEOF
1757 configure
1758 generated by GNU Autoconf 2.64
1759
1760 Copyright (C) 2009 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1763 _ACEOF
1764   exit
1765 fi
1766
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1770
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   rm -f conftest.$ac_objext
1778   if { { ac_try="$ac_compile"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_compile") 2>conftest.err
1786   ac_status=$?
1787   if test -s conftest.err; then
1788     grep -v '^ *+' conftest.err >conftest.er1
1789     cat conftest.er1 >&5
1790     mv -f conftest.er1 conftest.err
1791   fi
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && {
1794          test -z "$ac_c_werror_flag" ||
1795          test ! -s conftest.err
1796        } && test -s conftest.$ac_objext; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802         ac_retval=1
1803 fi
1804   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805   return $ac_retval
1806
1807 } # ac_fn_c_try_compile
1808
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_cpp ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   if { { ac_try="$ac_cpp conftest.$ac_ext"
1816 case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823   ac_status=$?
1824   if test -s conftest.err; then
1825     grep -v '^ *+' conftest.err >conftest.er1
1826     cat conftest.er1 >&5
1827     mv -f conftest.er1 conftest.err
1828   fi
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; } >/dev/null && {
1831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832          test ! -s conftest.err
1833        }; then :
1834   ac_retval=0
1835 else
1836   $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839     ac_retval=1
1840 fi
1841   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842   return $ac_retval
1843
1844 } # ac_fn_c_try_cpp
1845
1846 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1847 # -------------------------------------------------------
1848 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1849 # the include files in INCLUDES and setting the cache variable VAR
1850 # accordingly.
1851 ac_fn_c_check_header_mongrel ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1856 $as_echo_n "checking for $2... " >&6; }
1857 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1858   $as_echo_n "(cached) " >&6
1859 fi
1860 eval ac_res=\$$3
1861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1862 $as_echo "$ac_res" >&6; }
1863 else
1864   # Is the header compilable?
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1866 $as_echo_n "checking $2 usability... " >&6; }
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h.  */
1869 $4
1870 #include <$2>
1871 _ACEOF
1872 if ac_fn_c_try_compile "$LINENO"; then :
1873   ac_header_compiler=yes
1874 else
1875   ac_header_compiler=no
1876 fi
1877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1879 $as_echo "$ac_header_compiler" >&6; }
1880
1881 # Is the header present?
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1883 $as_echo_n "checking $2 presence... " >&6; }
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h.  */
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_cpp "$LINENO"; then :
1889   ac_header_preproc=yes
1890 else
1891   ac_header_preproc=no
1892 fi
1893 rm -f conftest.err conftest.$ac_ext
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1895 $as_echo "$ac_header_preproc" >&6; }
1896
1897 # So?  What about this header?
1898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1899   yes:no: )
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1901 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1903 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904     ;;
1905   no:yes:* )
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1907 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1909 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1911 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1913 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1916     ;;
1917 esac
1918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1921   $as_echo_n "(cached) " >&6
1922 else
1923   eval "$3=\$ac_header_compiler"
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 fi
1929   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930
1931 } # ac_fn_c_check_header_mongrel
1932
1933 # ac_fn_c_try_run LINENO
1934 # ----------------------
1935 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1936 # that executables *can* be run.
1937 ac_fn_c_try_run ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   if { { ac_try="$ac_link"
1941 case "(($ac_try" in
1942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943   *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947   (eval "$ac_link") 2>&5
1948   ac_status=$?
1949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1951   { { case "(($ac_try" in
1952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953   *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957   (eval "$ac_try") 2>&5
1958   ac_status=$?
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; }; }; then :
1961   ac_retval=0
1962 else
1963   $as_echo "$as_me: program exited with status $ac_status" >&5
1964        $as_echo "$as_me: failed program was:" >&5
1965 sed 's/^/| /' conftest.$ac_ext >&5
1966
1967        ac_retval=$ac_status
1968 fi
1969   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1970   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1971   return $ac_retval
1972
1973 } # ac_fn_c_try_run
1974
1975 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists and can be compiled using the include files in
1978 # INCLUDES, setting the cache variable VAR accordingly.
1979 ac_fn_c_check_header_compile ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1983 $as_echo_n "checking for $2... " >&6; }
1984 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1985   $as_echo_n "(cached) " >&6
1986 else
1987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   eval "$3=yes"
1994 else
1995   eval "$3=no"
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 fi
1999 eval ac_res=\$$3
2000                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2001 $as_echo "$ac_res" >&6; }
2002   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2003
2004 } # ac_fn_c_check_header_compile
2005
2006 # ac_fn_c_try_link LINENO
2007 # -----------------------
2008 # Try to link conftest.$ac_ext, and return whether this succeeded.
2009 ac_fn_c_try_link ()
2010 {
2011   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012   rm -f conftest.$ac_objext conftest$ac_exeext
2013   if { { ac_try="$ac_link"
2014 case "(($ac_try" in
2015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2016   *) ac_try_echo=$ac_try;;
2017 esac
2018 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2019 $as_echo "$ac_try_echo"; } >&5
2020   (eval "$ac_link") 2>conftest.err
2021   ac_status=$?
2022   if test -s conftest.err; then
2023     grep -v '^ *+' conftest.err >conftest.er1
2024     cat conftest.er1 >&5
2025     mv -f conftest.er1 conftest.err
2026   fi
2027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028   test $ac_status = 0; } && {
2029          test -z "$ac_c_werror_flag" ||
2030          test ! -s conftest.err
2031        } && test -s conftest$ac_exeext && {
2032          test "$cross_compiling" = yes ||
2033          $as_test_x conftest$ac_exeext
2034        }; then :
2035   ac_retval=0
2036 else
2037   $as_echo "$as_me: failed program was:" >&5
2038 sed 's/^/| /' conftest.$ac_ext >&5
2039
2040         ac_retval=1
2041 fi
2042   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044   # interfere with the next link command; also delete a directory that is
2045   # left behind by Apple's compiler.  We do this before executing the actions.
2046   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048   return $ac_retval
2049
2050 } # ac_fn_c_try_link
2051
2052 # ac_fn_c_check_func LINENO FUNC VAR
2053 # ----------------------------------
2054 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2055 ac_fn_c_check_func ()
2056 {
2057   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 $as_echo_n "checking for $2... " >&6; }
2060 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2061   $as_echo_n "(cached) " >&6
2062 else
2063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h.  */
2065 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2067 #define $2 innocuous_$2
2068
2069 /* System header to define __stub macros and hopefully few prototypes,
2070     which can conflict with char $2 (); below.
2071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2072     <limits.h> exists even on freestanding compilers.  */
2073
2074 #ifdef __STDC__
2075 # include <limits.h>
2076 #else
2077 # include <assert.h>
2078 #endif
2079
2080 #undef $2
2081
2082 /* Override any GCC internal prototype to avoid an error.
2083    Use char because int might match the return type of a GCC
2084    builtin and then its argument prototype would still apply.  */
2085 #ifdef __cplusplus
2086 extern "C"
2087 #endif
2088 char $2 ();
2089 /* The GNU C library defines this for functions which it implements
2090     to always fail with ENOSYS.  Some functions are actually named
2091     something starting with __ and the normal name is an alias.  */
2092 #if defined __stub_$2 || defined __stub___$2
2093 choke me
2094 #endif
2095
2096 int
2097 main ()
2098 {
2099 return $2 ();
2100   ;
2101   return 0;
2102 }
2103 _ACEOF
2104 if ac_fn_c_try_link "$LINENO"; then :
2105   eval "$3=yes"
2106 else
2107   eval "$3=no"
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext \
2110     conftest$ac_exeext conftest.$ac_ext
2111 fi
2112 eval ac_res=\$$3
2113                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116
2117 } # ac_fn_c_check_func
2118
2119 # ac_fn_c_check_decl LINENO SYMBOL VAR
2120 # ------------------------------------
2121 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2122 ac_fn_c_check_decl ()
2123 {
2124   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125   as_decl_name=`echo $2|sed 's/ *(.*//'`
2126   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2128 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2129 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2130   $as_echo_n "(cached) " >&6
2131 else
2132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h.  */
2134 $4
2135 int
2136 main ()
2137 {
2138 #ifndef $as_decl_name
2139 #ifdef __cplusplus
2140   (void) $as_decl_use;
2141 #else
2142   (void) $as_decl_name;
2143 #endif
2144 #endif
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_compile "$LINENO"; then :
2151   eval "$3=yes"
2152 else
2153   eval "$3=no"
2154 fi
2155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 fi
2157 eval ac_res=\$$3
2158                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2161
2162 } # ac_fn_c_check_decl
2163
2164 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2165 # --------------------------------------------
2166 # Tries to find the compile-time value of EXPR in a program that includes
2167 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2168 # computed
2169 ac_fn_c_compute_int ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   if test "$cross_compiling" = yes; then
2173     # Depending upon the size, compute the lo and hi bounds.
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 int
2178 main ()
2179 {
2180 static int test_array [1 - 2 * !(($2) >= 0)];
2181 test_array [0] = 0
2182
2183   ;
2184   return 0;
2185 }
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188   ac_lo=0 ac_mid=0
2189   while :; do
2190     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191 /* end confdefs.h.  */
2192 $4
2193 int
2194 main ()
2195 {
2196 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2197 test_array [0] = 0
2198
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204   ac_hi=$ac_mid; break
2205 else
2206   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2207                         if test $ac_lo -le $ac_mid; then
2208                           ac_lo= ac_hi=
2209                           break
2210                         fi
2211                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214   done
2215 else
2216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h.  */
2218 $4
2219 int
2220 main ()
2221 {
2222 static int test_array [1 - 2 * !(($2) < 0)];
2223 test_array [0] = 0
2224
2225   ;
2226   return 0;
2227 }
2228 _ACEOF
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230   ac_hi=-1 ac_mid=-1
2231   while :; do
2232     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h.  */
2234 $4
2235 int
2236 main ()
2237 {
2238 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2239 test_array [0] = 0
2240
2241   ;
2242   return 0;
2243 }
2244 _ACEOF
2245 if ac_fn_c_try_compile "$LINENO"; then :
2246   ac_lo=$ac_mid; break
2247 else
2248   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2249                         if test $ac_mid -le $ac_hi; then
2250                           ac_lo= ac_hi=
2251                           break
2252                         fi
2253                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256   done
2257 else
2258   ac_lo= ac_hi=
2259 fi
2260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2261 fi
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 # Binary search between lo and hi bounds.
2264 while test "x$ac_lo" != "x$ac_hi"; do
2265   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $4
2269 int
2270 main ()
2271 {
2272 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2273 test_array [0] = 0
2274
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280   ac_hi=$ac_mid
2281 else
2282   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2283 fi
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2285 done
2286 case $ac_lo in #((
2287 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2288 '') ac_retval=1 ;;
2289 esac
2290   else
2291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h.  */
2293 $4
2294 static long int longval () { return $2; }
2295 static unsigned long int ulongval () { return $2; }
2296 #include <stdio.h>
2297 #include <stdlib.h>
2298 int
2299 main ()
2300 {
2301
2302   FILE *f = fopen ("conftest.val", "w");
2303   if (! f)
2304     return 1;
2305   if (($2) < 0)
2306     {
2307       long int i = longval ();
2308       if (i != ($2))
2309         return 1;
2310       fprintf (f, "%ld", i);
2311     }
2312   else
2313     {
2314       unsigned long int i = ulongval ();
2315       if (i != ($2))
2316         return 1;
2317       fprintf (f, "%lu", i);
2318     }
2319   /* Do not output a trailing newline, as this causes \r\n confusion
2320      on some platforms.  */
2321   return ferror (f) || fclose (f) != 0;
2322
2323   ;
2324   return 0;
2325 }
2326 _ACEOF
2327 if ac_fn_c_try_run "$LINENO"; then :
2328   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2329 else
2330   ac_retval=1
2331 fi
2332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2333   conftest.$ac_objext conftest.beam conftest.$ac_ext
2334 rm -f conftest.val
2335
2336   fi
2337   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2338   return $ac_retval
2339
2340 } # ac_fn_c_compute_int
2341
2342 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2343 # ----------------------------------------------------
2344 # Tries to find if the field MEMBER exists in type AGGR, after including
2345 # INCLUDES, setting cache variable VAR accordingly.
2346 ac_fn_c_check_member ()
2347 {
2348   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2350 $as_echo_n "checking for $2.$3... " >&6; }
2351 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2352   $as_echo_n "(cached) " >&6
2353 else
2354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $5
2357 int
2358 main ()
2359 {
2360 static $2 ac_aggr;
2361 if (ac_aggr.$3)
2362 return 0;
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368   eval "$4=yes"
2369 else
2370   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 $5
2373 int
2374 main ()
2375 {
2376 static $2 ac_aggr;
2377 if (sizeof ac_aggr.$3)
2378 return 0;
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_c_try_compile "$LINENO"; then :
2384   eval "$4=yes"
2385 else
2386   eval "$4=no"
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 fi
2390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2391 fi
2392 eval ac_res=\$$4
2393                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2394 $as_echo "$ac_res" >&6; }
2395   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2396
2397 } # ac_fn_c_check_member
2398
2399 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2400 # -------------------------------------------
2401 # Tests whether TYPE exists after having included INCLUDES, setting cache
2402 # variable VAR accordingly.
2403 ac_fn_c_check_type ()
2404 {
2405   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2406   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2407 $as_echo_n "checking for $2... " >&6; }
2408 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2409   $as_echo_n "(cached) " >&6
2410 else
2411   eval "$3=no"
2412   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h.  */
2414 $4
2415 int
2416 main ()
2417 {
2418 if (sizeof ($2))
2419          return 0;
2420   ;
2421   return 0;
2422 }
2423 _ACEOF
2424 if ac_fn_c_try_compile "$LINENO"; then :
2425   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h.  */
2427 $4
2428 int
2429 main ()
2430 {
2431 if (sizeof (($2)))
2432             return 0;
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 if ac_fn_c_try_compile "$LINENO"; then :
2438
2439 else
2440   eval "$3=yes"
2441 fi
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 fi
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445 fi
2446 eval ac_res=\$$3
2447                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2448 $as_echo "$ac_res" >&6; }
2449   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2450
2451 } # ac_fn_c_check_type
2452 cat >config.log <<_ACEOF
2453 This file contains any messages produced by compilers while
2454 running configure, to aid debugging if configure makes a mistake.
2455
2456 It was created by $as_me, which was
2457 generated by GNU Autoconf 2.64.  Invocation command line was
2458
2459   $ $0 $@
2460
2461 _ACEOF
2462 exec 5>>config.log
2463 {
2464 cat <<_ASUNAME
2465 ## --------- ##
2466 ## Platform. ##
2467 ## --------- ##
2468
2469 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2470 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2471 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2472 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2473 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2474
2475 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2476 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2477
2478 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2479 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2480 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2481 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2482 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2483 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2484 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2485
2486 _ASUNAME
2487
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493     $as_echo "PATH: $as_dir"
2494   done
2495 IFS=$as_save_IFS
2496
2497 } >&5
2498
2499 cat >&5 <<_ACEOF
2500
2501
2502 ## ----------- ##
2503 ## Core tests. ##
2504 ## ----------- ##
2505
2506 _ACEOF
2507
2508
2509 # Keep a trace of the command line.
2510 # Strip out --no-create and --no-recursion so they do not pile up.
2511 # Strip out --silent because we don't want to record it for future runs.
2512 # Also quote any args containing shell meta-characters.
2513 # Make two passes to allow for proper duplicate-argument suppression.
2514 ac_configure_args=
2515 ac_configure_args0=
2516 ac_configure_args1=
2517 ac_must_keep_next=false
2518 for ac_pass in 1 2
2519 do
2520   for ac_arg
2521   do
2522     case $ac_arg in
2523     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2524     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2525     | -silent | --silent | --silen | --sile | --sil)
2526       continue ;;
2527     *\'*)
2528       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2529     esac
2530     case $ac_pass in
2531     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2532     2)
2533       as_fn_append ac_configure_args1 " '$ac_arg'"
2534       if test $ac_must_keep_next = true; then
2535         ac_must_keep_next=false # Got value, back to normal.
2536       else
2537         case $ac_arg in
2538           *=* | --config-cache | -C | -disable-* | --disable-* \
2539           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2540           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2541           | -with-* | --with-* | -without-* | --without-* | --x)
2542             case "$ac_configure_args0 " in
2543               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2544             esac
2545             ;;
2546           -* ) ac_must_keep_next=true ;;
2547         esac
2548       fi
2549       as_fn_append ac_configure_args " '$ac_arg'"
2550       ;;
2551     esac
2552   done
2553 done
2554 { ac_configure_args0=; unset ac_configure_args0;}
2555 { ac_configure_args1=; unset ac_configure_args1;}
2556
2557 # When interrupted or exit'd, cleanup temporary files, and complete
2558 # config.log.  We remove comments because anyway the quotes in there
2559 # would cause problems or look ugly.
2560 # WARNING: Use '\'' to represent an apostrophe within the trap.
2561 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2562 trap 'exit_status=$?
2563   # Save into config.log some information that might help in debugging.
2564   {
2565     echo
2566
2567     cat <<\_ASBOX
2568 ## ---------------- ##
2569 ## Cache variables. ##
2570 ## ---------------- ##
2571 _ASBOX
2572     echo
2573     # The following way of writing the cache mishandles newlines in values,
2574 (
2575   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2576     eval ac_val=\$$ac_var
2577     case $ac_val in #(
2578     *${as_nl}*)
2579       case $ac_var in #(
2580       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2582       esac
2583       case $ac_var in #(
2584       _ | IFS | as_nl) ;; #(
2585       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2586       *) { eval $ac_var=; unset $ac_var;} ;;
2587       esac ;;
2588     esac
2589   done
2590   (set) 2>&1 |
2591     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2592     *${as_nl}ac_space=\ *)
2593       sed -n \
2594         "s/'\''/'\''\\\\'\'''\''/g;
2595           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2596       ;; #(
2597     *)
2598       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2599       ;;
2600     esac |
2601     sort
2602 )
2603     echo
2604
2605     cat <<\_ASBOX
2606 ## ----------------- ##
2607 ## Output variables. ##
2608 ## ----------------- ##
2609 _ASBOX
2610     echo
2611     for ac_var in $ac_subst_vars
2612     do
2613       eval ac_val=\$$ac_var
2614       case $ac_val in
2615       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2616       esac
2617       $as_echo "$ac_var='\''$ac_val'\''"
2618     done | sort
2619     echo
2620
2621     if test -n "$ac_subst_files"; then
2622       cat <<\_ASBOX
2623 ## ------------------- ##
2624 ## File substitutions. ##
2625 ## ------------------- ##
2626 _ASBOX
2627       echo
2628       for ac_var in $ac_subst_files
2629       do
2630         eval ac_val=\$$ac_var
2631         case $ac_val in
2632         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2633         esac
2634         $as_echo "$ac_var='\''$ac_val'\''"
2635       done | sort
2636       echo
2637     fi
2638
2639     if test -s confdefs.h; then
2640       cat <<\_ASBOX
2641 ## ----------- ##
2642 ## confdefs.h. ##
2643 ## ----------- ##
2644 _ASBOX
2645       echo
2646       cat confdefs.h
2647       echo
2648     fi
2649     test "$ac_signal" != 0 &&
2650       $as_echo "$as_me: caught signal $ac_signal"
2651     $as_echo "$as_me: exit $exit_status"
2652   } >&5
2653   rm -f core *.core core.conftest.* &&
2654     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2655     exit $exit_status
2656 ' 0
2657 for ac_signal in 1 2 13 15; do
2658   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2659 done
2660 ac_signal=0
2661
2662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2663 rm -f -r conftest* confdefs.h
2664
2665 $as_echo "/* confdefs.h */" > confdefs.h
2666
2667 # Predefined preprocessor variables.
2668
2669 cat >>confdefs.h <<_ACEOF
2670 #define PACKAGE_NAME "$PACKAGE_NAME"
2671 _ACEOF
2672
2673 cat >>confdefs.h <<_ACEOF
2674 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2675 _ACEOF
2676
2677 cat >>confdefs.h <<_ACEOF
2678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2679 _ACEOF
2680
2681 cat >>confdefs.h <<_ACEOF
2682 #define PACKAGE_STRING "$PACKAGE_STRING"
2683 _ACEOF
2684
2685 cat >>confdefs.h <<_ACEOF
2686 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2687 _ACEOF
2688
2689 cat >>confdefs.h <<_ACEOF
2690 #define PACKAGE_URL "$PACKAGE_URL"
2691 _ACEOF
2692
2693
2694 # Let the site file select an alternate cache file if it wants to.
2695 # Prefer an explicitly selected file to automatically selected ones.
2696 ac_site_file1=NONE
2697 ac_site_file2=NONE
2698 if test -n "$CONFIG_SITE"; then
2699   ac_site_file1=$CONFIG_SITE
2700 elif test "x$prefix" != xNONE; then
2701   ac_site_file1=$prefix/share/config.site
2702   ac_site_file2=$prefix/etc/config.site
2703 else
2704   ac_site_file1=$ac_default_prefix/share/config.site
2705   ac_site_file2=$ac_default_prefix/etc/config.site
2706 fi
2707 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2708 do
2709   test "x$ac_site_file" = xNONE && continue
2710   if test -r "$ac_site_file"; then
2711     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2712 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2713     sed 's/^/| /' "$ac_site_file" >&5
2714     . "$ac_site_file"
2715   fi
2716 done
2717
2718 if test -r "$cache_file"; then
2719   # Some versions of bash will fail to source /dev/null (special
2720   # files actually), so we avoid doing that.
2721   if test -f "$cache_file"; then
2722     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2723 $as_echo "$as_me: loading cache $cache_file" >&6;}
2724     case $cache_file in
2725       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2726       *)                      . "./$cache_file";;
2727     esac
2728   fi
2729 else
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2731 $as_echo "$as_me: creating cache $cache_file" >&6;}
2732   >$cache_file
2733 fi
2734
2735 gl_header_list="$gl_header_list sys/mman.h"
2736 gl_func_list="$gl_func_list mprotect"
2737 gl_func_list="$gl_func_list memchr"
2738 gl_header_list="$gl_header_list stddef.h"
2739 gl_header_list="$gl_header_list stdint.h"
2740 gl_header_list="$gl_header_list wchar.h"
2741 gl_header_list="$gl_header_list string.h"
2742 # Check that the precious variables saved in the cache have kept the same
2743 # value.
2744 ac_cache_corrupted=false
2745 for ac_var in $ac_precious_vars; do
2746   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2747   eval ac_new_set=\$ac_env_${ac_var}_set
2748   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2749   eval ac_new_val=\$ac_env_${ac_var}_value
2750   case $ac_old_set,$ac_new_set in
2751     set,)
2752       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2753 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2754       ac_cache_corrupted=: ;;
2755     ,set)
2756       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2757 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2758       ac_cache_corrupted=: ;;
2759     ,);;
2760     *)
2761       if test "x$ac_old_val" != "x$ac_new_val"; then
2762         # differences in whitespace do not lead to failure.
2763         ac_old_val_w=`echo x $ac_old_val`
2764         ac_new_val_w=`echo x $ac_new_val`
2765         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2766           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2767 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2768           ac_cache_corrupted=:
2769         else
2770           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2771 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2772           eval $ac_var=\$ac_old_val
2773         fi
2774         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2775 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2776         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2777 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2778       fi;;
2779   esac
2780   # Pass precious variables to config.status.
2781   if test "$ac_new_set" = set; then
2782     case $ac_new_val in
2783     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2784     *) ac_arg=$ac_var=$ac_new_val ;;
2785     esac
2786     case " $ac_configure_args " in
2787       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2788       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2789     esac
2790   fi
2791 done
2792 if $ac_cache_corrupted; then
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2794 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2796 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2797   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2798 fi
2799 ## -------------------- ##
2800 ## Main body of script. ##
2801 ## -------------------- ##
2802
2803 ac_ext=c
2804 ac_cpp='$CPP $CPPFLAGS'
2805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
2809
2810
2811
2812
2813 ac_config_headers="$ac_config_headers config.h:config.in"
2814
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2817 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2818     # Check whether --enable-maintainer-mode was given.
2819 if test "${enable_maintainer_mode+set}" = set; then :
2820   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2821 else
2822   USE_MAINTAINER_MODE=no
2823 fi
2824
2825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2826 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2827    if test $USE_MAINTAINER_MODE = yes; then
2828   MAINTAINER_MODE_TRUE=
2829   MAINTAINER_MODE_FALSE='#'
2830 else
2831   MAINTAINER_MODE_TRUE='#'
2832   MAINTAINER_MODE_FALSE=
2833 fi
2834
2835   MAINT=$MAINTAINER_MODE_TRUE
2836
2837
2838
2839 ac_ext=c
2840 ac_cpp='$CPP $CPPFLAGS'
2841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2844 if test -n "$ac_tool_prefix"; then
2845   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2846 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_CC+set}" = set; then :
2850   $as_echo_n "(cached) " >&6
2851 else
2852   if test -n "$CC"; then
2853   ac_cv_prog_CC="$CC" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858   IFS=$as_save_IFS
2859   test -z "$as_dir" && as_dir=.
2860     for ac_exec_ext in '' $ac_executable_extensions; do
2861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864     break 2
2865   fi
2866 done
2867   done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 CC=$ac_cv_prog_CC
2873 if test -n "$CC"; then
2874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2875 $as_echo "$CC" >&6; }
2876 else
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881
2882 fi
2883 if test -z "$ac_cv_prog_CC"; then
2884   ac_ct_CC=$CC
2885   # Extract the first word of "gcc", so it can be a program name with args.
2886 set dummy gcc; ac_word=$2
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888 $as_echo_n "checking for $ac_word... " >&6; }
2889 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2890   $as_echo_n "(cached) " >&6
2891 else
2892   if test -n "$ac_ct_CC"; then
2893   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898   IFS=$as_save_IFS
2899   test -z "$as_dir" && as_dir=.
2900     for ac_exec_ext in '' $ac_executable_extensions; do
2901   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2902     ac_cv_prog_ac_ct_CC="gcc"
2903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904     break 2
2905   fi
2906 done
2907   done
2908 IFS=$as_save_IFS
2909
2910 fi
2911 fi
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915 $as_echo "$ac_ct_CC" >&6; }
2916 else
2917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 $as_echo "no" >&6; }
2919 fi
2920
2921   if test "x$ac_ct_CC" = x; then
2922     CC=""
2923   else
2924     case $cross_compiling:$ac_tool_warned in
2925 yes:)
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928 ac_tool_warned=yes ;;
2929 esac
2930     CC=$ac_ct_CC
2931   fi
2932 else
2933   CC="$ac_cv_prog_CC"
2934 fi
2935
2936 if test -z "$CC"; then
2937           if test -n "$ac_tool_prefix"; then
2938     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}cc; ac_word=$2
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then :
2943   $as_echo_n "(cached) " >&6
2944 else
2945   if test -n "$CC"; then
2946   ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953     for ac_exec_ext in '' $ac_executable_extensions; do
2954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955     ac_cv_prog_CC="${ac_tool_prefix}cc"
2956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960   done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975   fi
2976 fi
2977 if test -z "$CC"; then
2978   # Extract the first word of "cc", so it can be a program name with args.
2979 set dummy cc; ac_word=$2
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_CC+set}" = set; then :
2983   $as_echo_n "(cached) " >&6
2984 else
2985   if test -n "$CC"; then
2986   ac_cv_prog_CC="$CC" # Let the user override the test.
2987 else
2988   ac_prog_rejected=no
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 for as_dir in $PATH
2991 do
2992   IFS=$as_save_IFS
2993   test -z "$as_dir" && as_dir=.
2994     for ac_exec_ext in '' $ac_executable_extensions; do
2995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2997        ac_prog_rejected=yes
2998        continue
2999      fi
3000     ac_cv_prog_CC="cc"
3001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002     break 2
3003   fi
3004 done
3005   done
3006 IFS=$as_save_IFS
3007
3008 if test $ac_prog_rejected = yes; then
3009   # We found a bogon in the path, so make sure we never use it.
3010   set dummy $ac_cv_prog_CC
3011   shift
3012   if test $# != 0; then
3013     # We chose a different compiler from the bogus one.
3014     # However, it has the same basename, so the bogon will be chosen
3015     # first if we set CC to just the basename; use the full file name.
3016     shift
3017     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3018   fi
3019 fi
3020 fi
3021 fi
3022 CC=$ac_cv_prog_CC
3023 if test -n "$CC"; then
3024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3025 $as_echo "$CC" >&6; }
3026 else
3027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3029 fi
3030
3031
3032 fi
3033 if test -z "$CC"; then
3034   if test -n "$ac_tool_prefix"; then
3035   for ac_prog in cl.exe
3036   do
3037     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3038 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3040 $as_echo_n "checking for $ac_word... " >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then :
3042   $as_echo_n "(cached) " >&6
3043 else
3044   if test -n "$CC"; then
3045   ac_cv_prog_CC="$CC" # Let the user override the test.
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH
3049 do
3050   IFS=$as_save_IFS
3051   test -z "$as_dir" && as_dir=.
3052     for ac_exec_ext in '' $ac_executable_extensions; do
3053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3054     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3056     break 2
3057   fi
3058 done
3059   done
3060 IFS=$as_save_IFS
3061
3062 fi
3063 fi
3064 CC=$ac_cv_prog_CC
3065 if test -n "$CC"; then
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067 $as_echo "$CC" >&6; }
3068 else
3069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070 $as_echo "no" >&6; }
3071 fi
3072
3073
3074     test -n "$CC" && break
3075   done
3076 fi
3077 if test -z "$CC"; then
3078   ac_ct_CC=$CC
3079   for ac_prog in cl.exe
3080 do
3081   # Extract the first word of "$ac_prog", so it can be a program name with args.
3082 set dummy $ac_prog; ac_word=$2
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3084 $as_echo_n "checking for $ac_word... " >&6; }
3085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3086   $as_echo_n "(cached) " >&6
3087 else
3088   if test -n "$ac_ct_CC"; then
3089   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094   IFS=$as_save_IFS
3095   test -z "$as_dir" && as_dir=.
3096     for ac_exec_ext in '' $ac_executable_extensions; do
3097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3098     ac_cv_prog_ac_ct_CC="$ac_prog"
3099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3100     break 2
3101   fi
3102 done
3103   done
3104 IFS=$as_save_IFS
3105
3106 fi
3107 fi
3108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3109 if test -n "$ac_ct_CC"; then
3110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3111 $as_echo "$ac_ct_CC" >&6; }
3112 else
3113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 fi
3116
3117
3118   test -n "$ac_ct_CC" && break
3119 done
3120
3121   if test "x$ac_ct_CC" = x; then
3122     CC=""
3123   else
3124     case $cross_compiling:$ac_tool_warned in
3125 yes:)
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3128 ac_tool_warned=yes ;;
3129 esac
3130     CC=$ac_ct_CC
3131   fi
3132 fi
3133
3134 fi
3135
3136
3137 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3139 as_fn_error "no acceptable C compiler found in \$PATH
3140 See \`config.log' for more details." "$LINENO" 5; }
3141
3142 # Provide some information about the compiler.
3143 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3144 set X $ac_compile
3145 ac_compiler=$2
3146 for ac_option in --version -v -V -qversion; do
3147   { { ac_try="$ac_compiler $ac_option >&5"
3148 case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3153 $as_echo "$ac_try_echo"; } >&5
3154   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3155   ac_status=$?
3156   if test -s conftest.err; then
3157     sed '10a\
3158 ... rest of stderr output deleted ...
3159          10q' conftest.err >conftest.er1
3160     cat conftest.er1 >&5
3161     rm -f conftest.er1 conftest.err
3162   fi
3163   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3164   test $ac_status = 0; }
3165 done
3166
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h.  */
3169
3170 int
3171 main ()
3172 {
3173
3174   ;
3175   return 0;
3176 }
3177 _ACEOF
3178 ac_clean_files_save=$ac_clean_files
3179 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3180 # Try to create an executable without -o first, disregard a.out.
3181 # It will help us diagnose broken compilers, and finding out an intuition
3182 # of exeext.
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3184 $as_echo_n "checking for C compiler default output file name... " >&6; }
3185 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3186
3187 # The possible output files:
3188 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3189
3190 ac_rmfiles=
3191 for ac_file in $ac_files
3192 do
3193   case $ac_file in
3194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3196   esac
3197 done
3198 rm -f $ac_rmfiles
3199
3200 if { { ac_try="$ac_link_default"
3201 case "(($ac_try" in
3202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203   *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207   (eval "$ac_link_default") 2>&5
3208   ac_status=$?
3209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210   test $ac_status = 0; }; then :
3211   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3212 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3213 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3214 # so that the user can short-circuit this test for compilers unknown to
3215 # Autoconf.
3216 for ac_file in $ac_files ''
3217 do
3218   test -f "$ac_file" || continue
3219   case $ac_file in
3220     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3221         ;;
3222     [ab].out )
3223         # We found the default executable, but exeext='' is most
3224         # certainly right.
3225         break;;
3226     *.* )
3227         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3228         then :; else
3229            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3230         fi
3231         # We set ac_cv_exeext here because the later test for it is not
3232         # safe: cross compilers may not add the suffix if given an `-o'
3233         # argument, so we may need to know it at that point already.
3234         # Even if this section looks crufty: it has the advantage of
3235         # actually working.
3236         break;;
3237     * )
3238         break;;
3239   esac
3240 done
3241 test "$ac_cv_exeext" = no && ac_cv_exeext=
3242
3243 else
3244   ac_file=''
3245 fi
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3247 $as_echo "$ac_file" >&6; }
3248 if test -z "$ac_file"; then :
3249   $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3253 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3254 { as_fn_set_status 77
3255 as_fn_error "C compiler cannot create executables
3256 See \`config.log' for more details." "$LINENO" 5; }; }
3257 fi
3258 ac_exeext=$ac_cv_exeext
3259
3260 # Check that the compiler produces executables we can run.  If not, either
3261 # the compiler is broken, or we cross compile.
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3263 $as_echo_n "checking whether the C compiler works... " >&6; }
3264 # If not cross compiling, check that we can run a simple program.
3265 if test "$cross_compiling" != yes; then
3266   if { ac_try='./$ac_file'
3267   { { case "(($ac_try" in
3268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269   *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273   (eval "$ac_try") 2>&5
3274   ac_status=$?
3275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276   test $ac_status = 0; }; }; then
3277     cross_compiling=no
3278   else
3279     if test "$cross_compiling" = maybe; then
3280         cross_compiling=yes
3281     else
3282         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 as_fn_error "cannot run C compiled programs.
3285 If you meant to cross compile, use \`--host'.
3286 See \`config.log' for more details." "$LINENO" 5; }
3287     fi
3288   fi
3289 fi
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3292
3293 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3294 ac_clean_files=$ac_clean_files_save
3295 # Check that the compiler produces executables we can run.  If not, either
3296 # the compiler is broken, or we cross compile.
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3298 $as_echo_n "checking whether we are cross compiling... " >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300 $as_echo "$cross_compiling" >&6; }
3301
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3303 $as_echo_n "checking for suffix of executables... " >&6; }
3304 if { { ac_try="$ac_link"
3305 case "(($ac_try" in
3306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307   *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311   (eval "$ac_link") 2>&5
3312   ac_status=$?
3313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314   test $ac_status = 0; }; then :
3315   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3316 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3317 # work properly (i.e., refer to `conftest.exe'), while it won't with
3318 # `rm'.
3319 for ac_file in conftest.exe conftest conftest.*; do
3320   test -f "$ac_file" || continue
3321   case $ac_file in
3322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3323     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324           break;;
3325     * ) break;;
3326   esac
3327 done
3328 else
3329   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error "cannot compute suffix of executables: cannot compile and link
3332 See \`config.log' for more details." "$LINENO" 5; }
3333 fi
3334 rm -f conftest$ac_cv_exeext
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3336 $as_echo "$ac_cv_exeext" >&6; }
3337
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3340 ac_exeext=$EXEEXT
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3342 $as_echo_n "checking for suffix of object files... " >&6; }
3343 if test "${ac_cv_objext+set}" = set; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h.  */
3348
3349 int
3350 main ()
3351 {
3352
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 rm -f conftest.o conftest.obj
3358 if { { ac_try="$ac_compile"
3359 case "(($ac_try" in
3360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361   *) ac_try_echo=$ac_try;;
3362 esac
3363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364 $as_echo "$ac_try_echo"; } >&5
3365   (eval "$ac_compile") 2>&5
3366   ac_status=$?
3367   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368   test $ac_status = 0; }; then :
3369   for ac_file in conftest.o conftest.obj conftest.*; do
3370   test -f "$ac_file" || continue;
3371   case $ac_file in
3372     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3373     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3374        break;;
3375   esac
3376 done
3377 else
3378   $as_echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 as_fn_error "cannot compute suffix of object files: cannot compile
3384 See \`config.log' for more details." "$LINENO" 5; }
3385 fi
3386 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3387 fi
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3389 $as_echo "$ac_cv_objext" >&6; }
3390 OBJEXT=$ac_cv_objext
3391 ac_objext=$OBJEXT
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3393 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3394 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3395   $as_echo_n "(cached) " >&6
3396 else
3397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h.  */
3399
3400 int
3401 main ()
3402 {
3403 #ifndef __GNUC__
3404        choke me
3405 #endif
3406
3407   ;
3408   return 0;
3409 }
3410 _ACEOF
3411 if ac_fn_c_try_compile "$LINENO"; then :
3412   ac_compiler_gnu=yes
3413 else
3414   ac_compiler_gnu=no
3415 fi
3416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3418
3419 fi
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3421 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3422 if test $ac_compiler_gnu = yes; then
3423   GCC=yes
3424 else
3425   GCC=
3426 fi
3427 ac_test_CFLAGS=${CFLAGS+set}
3428 ac_save_CFLAGS=$CFLAGS
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3430 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3431 if test "${ac_cv_prog_cc_g+set}" = set; then :
3432   $as_echo_n "(cached) " >&6
3433 else
3434   ac_save_c_werror_flag=$ac_c_werror_flag
3435    ac_c_werror_flag=yes
3436    ac_cv_prog_cc_g=no
3437    CFLAGS="-g"
3438    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h.  */
3440
3441 int
3442 main ()
3443 {
3444
3445   ;
3446   return 0;
3447 }
3448 _ACEOF
3449 if ac_fn_c_try_compile "$LINENO"; then :
3450   ac_cv_prog_cc_g=yes
3451 else
3452   CFLAGS=""
3453       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h.  */
3455
3456 int
3457 main ()
3458 {
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 if ac_fn_c_try_compile "$LINENO"; then :
3465
3466 else
3467   ac_c_werror_flag=$ac_save_c_werror_flag
3468          CFLAGS="-g"
3469          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 if ac_fn_c_try_compile "$LINENO"; then :
3481   ac_cv_prog_cc_g=yes
3482 fi
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 fi
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 fi
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488    ac_c_werror_flag=$ac_save_c_werror_flag
3489 fi
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3491 $as_echo "$ac_cv_prog_cc_g" >&6; }
3492 if test "$ac_test_CFLAGS" = set; then
3493   CFLAGS=$ac_save_CFLAGS
3494 elif test $ac_cv_prog_cc_g = yes; then
3495   if test "$GCC" = yes; then
3496     CFLAGS="-g -O2"
3497   else
3498     CFLAGS="-g"
3499   fi
3500 else
3501   if test "$GCC" = yes; then
3502     CFLAGS="-O2"
3503   else
3504     CFLAGS=
3505   fi
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3508 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3509 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3510   $as_echo_n "(cached) " >&6
3511 else
3512   ac_cv_prog_cc_c89=no
3513 ac_save_CC=$CC
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h.  */
3516 #include <stdarg.h>
3517 #include <stdio.h>
3518 #include <sys/types.h>
3519 #include <sys/stat.h>
3520 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3521 struct buf { int x; };
3522 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3523 static char *e (p, i)
3524      char **p;
3525      int i;
3526 {
3527   return p[i];
3528 }
3529 static char *f (char * (*g) (char **, int), char **p, ...)
3530 {
3531   char *s;
3532   va_list v;
3533   va_start (v,p);
3534   s = g (p, va_arg (v,int));
3535   va_end (v);
3536   return s;
3537 }
3538
3539 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3540    function prototypes and stuff, but not '\xHH' hex character constants.
3541    These don't provoke an error unfortunately, instead are silently treated
3542    as 'x'.  The following induces an error, until -std is added to get
3543    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3544    array size at least.  It's necessary to write '\x00'==0 to get something
3545    that's true only with -std.  */
3546 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3547
3548 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3549    inside strings and character constants.  */
3550 #define FOO(x) 'x'
3551 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3552
3553 int test (int i, double x);
3554 struct s1 {int (*f) (int a);};
3555 struct s2 {int (*f) (double a);};
3556 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3557 int argc;
3558 char **argv;
3559 int
3560 main ()
3561 {
3562 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3568         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3569 do
3570   CC="$ac_save_CC $ac_arg"
3571   if ac_fn_c_try_compile "$LINENO"; then :
3572   ac_cv_prog_cc_c89=$ac_arg
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext
3575   test "x$ac_cv_prog_cc_c89" != "xno" && break
3576 done
3577 rm -f conftest.$ac_ext
3578 CC=$ac_save_CC
3579
3580 fi
3581 # AC_CACHE_VAL
3582 case "x$ac_cv_prog_cc_c89" in
3583   x)
3584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3585 $as_echo "none needed" >&6; } ;;
3586   xno)
3587     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3588 $as_echo "unsupported" >&6; } ;;
3589   *)
3590     CC="$CC $ac_cv_prog_cc_c89"
3591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3592 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3593 esac
3594 if test "x$ac_cv_prog_cc_c89" != xno; then :
3595
3596 fi
3597
3598 ac_ext=c
3599 ac_cpp='$CPP $CPPFLAGS'
3600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3603
3604 ac_aux_dir=
3605 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3606   for ac_t in install-sh install.sh shtool; do
3607     if test -f "$ac_dir/$ac_t"; then
3608       ac_aux_dir=$ac_dir
3609       ac_install_sh="$ac_aux_dir/$ac_t -c"
3610       break 2
3611     fi
3612   done
3613 done
3614 if test -z "$ac_aux_dir"; then
3615   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3616 fi
3617
3618 # These three variables are undocumented and unsupported,
3619 # and are intended to be withdrawn in a future Autoconf release.
3620 # They can cause serious problems if a builder's source tree is in a directory
3621 # whose full name contains unusual characters.
3622 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3623 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3624 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3625
3626
3627 # Make sure we can run config.sub.
3628 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3629   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3630
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3632 $as_echo_n "checking build system type... " >&6; }
3633 if test "${ac_cv_build+set}" = set; then :
3634   $as_echo_n "(cached) " >&6
3635 else
3636   ac_build_alias=$build_alias
3637 test "x$ac_build_alias" = x &&
3638   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3639 test "x$ac_build_alias" = x &&
3640   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3641 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3642   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3643
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3646 $as_echo "$ac_cv_build" >&6; }
3647 case $ac_cv_build in
3648 *-*-*) ;;
3649 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3650 esac
3651 build=$ac_cv_build
3652 ac_save_IFS=$IFS; IFS='-'
3653 set x $ac_cv_build
3654 shift
3655 build_cpu=$1
3656 build_vendor=$2
3657 shift; shift
3658 # Remember, the first character of IFS is used to create $*,
3659 # except with old shells:
3660 build_os=$*
3661 IFS=$ac_save_IFS
3662 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3663
3664
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3666 $as_echo_n "checking host system type... " >&6; }
3667 if test "${ac_cv_host+set}" = set; then :
3668   $as_echo_n "(cached) " >&6
3669 else
3670   if test "x$host_alias" = x; then
3671   ac_cv_host=$ac_cv_build
3672 else
3673   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3674     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3675 fi
3676
3677 fi
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3679 $as_echo "$ac_cv_host" >&6; }
3680 case $ac_cv_host in
3681 *-*-*) ;;
3682 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3683 esac
3684 host=$ac_cv_host
3685 ac_save_IFS=$IFS; IFS='-'
3686 set x $ac_cv_host
3687 shift
3688 host_cpu=$1
3689 host_vendor=$2
3690 shift; shift
3691 # Remember, the first character of IFS is used to create $*,
3692 # except with old shells:
3693 host_os=$*
3694 IFS=$ac_save_IFS
3695 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3696
3697
3698
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3705 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3706 # On Suns, sometimes $CPP names a directory.
3707 if test -n "$CPP" && test -d "$CPP"; then
3708   CPP=
3709 fi
3710 if test -z "$CPP"; then
3711   if test "${ac_cv_prog_CPP+set}" = set; then :
3712   $as_echo_n "(cached) " >&6
3713 else
3714       # Double quotes because CPP needs to be expanded
3715     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3716     do
3717       ac_preproc_ok=false
3718 for ac_c_preproc_warn_flag in '' yes
3719 do
3720   # Use a header file that comes with gcc, so configuring glibc
3721   # with a fresh cross-compiler works.
3722   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3723   # <limits.h> exists even on freestanding compilers.
3724   # On the NeXT, cc -E runs the code through the compiler's parser,
3725   # not just through cpp. "Syntax error" is here to catch this case.
3726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h.  */
3728 #ifdef __STDC__
3729 # include <limits.h>
3730 #else
3731 # include <assert.h>
3732 #endif
3733                      Syntax error
3734 _ACEOF
3735 if ac_fn_c_try_cpp "$LINENO"; then :
3736
3737 else
3738   # Broken: fails on valid input.
3739 continue
3740 fi
3741 rm -f conftest.err conftest.$ac_ext
3742
3743   # OK, works on sane cases.  Now check whether nonexistent headers
3744   # can be detected and how.
3745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h.  */
3747 #include <ac_nonexistent.h>
3748 _ACEOF
3749 if ac_fn_c_try_cpp "$LINENO"; then :
3750   # Broken: success on invalid input.
3751 continue
3752 else
3753   # Passes both tests.
3754 ac_preproc_ok=:
3755 break
3756 fi
3757 rm -f conftest.err conftest.$ac_ext
3758
3759 done
3760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3761 rm -f conftest.err conftest.$ac_ext
3762 if $ac_preproc_ok; then :
3763   break
3764 fi
3765
3766     done
3767     ac_cv_prog_CPP=$CPP
3768
3769 fi
3770   CPP=$ac_cv_prog_CPP
3771 else
3772   ac_cv_prog_CPP=$CPP
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3775 $as_echo "$CPP" >&6; }
3776 ac_preproc_ok=false
3777 for ac_c_preproc_warn_flag in '' yes
3778 do
3779   # Use a header file that comes with gcc, so configuring glibc
3780   # with a fresh cross-compiler works.
3781   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3782   # <limits.h> exists even on freestanding compilers.
3783   # On the NeXT, cc -E runs the code through the compiler's parser,
3784   # not just through cpp. "Syntax error" is here to catch this case.
3785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h.  */
3787 #ifdef __STDC__
3788 # include <limits.h>
3789 #else
3790 # include <assert.h>
3791 #endif
3792                      Syntax error
3793 _ACEOF
3794 if ac_fn_c_try_cpp "$LINENO"; then :
3795
3796 else
3797   # Broken: fails on valid input.
3798 continue
3799 fi
3800 rm -f conftest.err conftest.$ac_ext
3801
3802   # OK, works on sane cases.  Now check whether nonexistent headers
3803   # can be detected and how.
3804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h.  */
3806 #include <ac_nonexistent.h>
3807 _ACEOF
3808 if ac_fn_c_try_cpp "$LINENO"; then :
3809   # Broken: success on invalid input.
3810 continue
3811 else
3812   # Passes both tests.
3813 ac_preproc_ok=:
3814 break
3815 fi
3816 rm -f conftest.err conftest.$ac_ext
3817
3818 done
3819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3820 rm -f conftest.err conftest.$ac_ext
3821 if $ac_preproc_ok; then :
3822
3823 else
3824   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3826 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3827 See \`config.log' for more details." "$LINENO" 5; }
3828 fi
3829
3830 ac_ext=c
3831 ac_cpp='$CPP $CPPFLAGS'
3832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3838 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3839 if test "${ac_cv_path_GREP+set}" = set; then :
3840   $as_echo_n "(cached) " >&6
3841 else
3842   if test -z "$GREP"; then
3843   ac_path_GREP_found=false
3844   # Loop through the user's path and test for each of PROGNAME-LIST
3845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850     for ac_prog in grep ggrep; do
3851     for ac_exec_ext in '' $ac_executable_extensions; do
3852       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3853       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3854 # Check for GNU ac_path_GREP and select it if it is found.
3855   # Check for GNU $ac_path_GREP
3856 case `"$ac_path_GREP" --version 2>&1` in
3857 *GNU*)
3858   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3859 *)
3860   ac_count=0
3861   $as_echo_n 0123456789 >"conftest.in"
3862   while :
3863   do
3864     cat "conftest.in" "conftest.in" >"conftest.tmp"
3865     mv "conftest.tmp" "conftest.in"
3866     cp "conftest.in" "conftest.nl"
3867     $as_echo 'GREP' >> "conftest.nl"
3868     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870     as_fn_arith $ac_count + 1 && ac_count=$as_val
3871     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3872       # Best one so far, save it but keep looking for a better one
3873       ac_cv_path_GREP="$ac_path_GREP"
3874       ac_path_GREP_max=$ac_count
3875     fi
3876     # 10*(2^10) chars as input seems more than enough
3877     test $ac_count -gt 10 && break
3878   done
3879   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880 esac
3881
3882       $ac_path_GREP_found && break 3
3883     done
3884   done
3885   done
3886 IFS=$as_save_IFS
3887   if test -z "$ac_cv_path_GREP"; then
3888     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3889   fi
3890 else
3891   ac_cv_path_GREP=$GREP
3892 fi
3893
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3896 $as_echo "$ac_cv_path_GREP" >&6; }
3897  GREP="$ac_cv_path_GREP"
3898
3899
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3901 $as_echo_n "checking for egrep... " >&6; }
3902 if test "${ac_cv_path_EGREP+set}" = set; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3906    then ac_cv_path_EGREP="$GREP -E"
3907    else
3908      if test -z "$EGREP"; then
3909   ac_path_EGREP_found=false
3910   # Loop through the user's path and test for each of PROGNAME-LIST
3911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916     for ac_prog in egrep; do
3917     for ac_exec_ext in '' $ac_executable_extensions; do
3918       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3919       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3920 # Check for GNU ac_path_EGREP and select it if it is found.
3921   # Check for GNU $ac_path_EGREP
3922 case `"$ac_path_EGREP" --version 2>&1` in
3923 *GNU*)
3924   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3925 *)
3926   ac_count=0
3927   $as_echo_n 0123456789 >"conftest.in"
3928   while :
3929   do
3930     cat "conftest.in" "conftest.in" >"conftest.tmp"
3931     mv "conftest.tmp" "conftest.in"
3932     cp "conftest.in" "conftest.nl"
3933     $as_echo 'EGREP' >> "conftest.nl"
3934     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936     as_fn_arith $ac_count + 1 && ac_count=$as_val
3937     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3938       # Best one so far, save it but keep looking for a better one
3939       ac_cv_path_EGREP="$ac_path_EGREP"
3940       ac_path_EGREP_max=$ac_count
3941     fi
3942     # 10*(2^10) chars as input seems more than enough
3943     test $ac_count -gt 10 && break
3944   done
3945   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946 esac
3947
3948       $ac_path_EGREP_found && break 3
3949     done
3950   done
3951   done
3952 IFS=$as_save_IFS
3953   if test -z "$ac_cv_path_EGREP"; then
3954     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3955   fi
3956 else
3957   ac_cv_path_EGREP=$EGREP
3958 fi
3959
3960    fi
3961 fi
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3963 $as_echo "$ac_cv_path_EGREP" >&6; }
3964  EGREP="$ac_cv_path_EGREP"
3965
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3968 $as_echo_n "checking for ANSI C header files... " >&6; }
3969 if test "${ac_cv_header_stdc+set}" = set; then :
3970   $as_echo_n "(cached) " >&6
3971 else
3972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h.  */
3974 #include <stdlib.h>
3975 #include <stdarg.h>
3976 #include <string.h>
3977 #include <float.h>
3978
3979 int
3980 main ()
3981 {
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988   ac_cv_header_stdc=yes
3989 else
3990   ac_cv_header_stdc=no
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993
3994 if test $ac_cv_header_stdc = yes; then
3995   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h.  */
3998 #include <string.h>
3999
4000 _ACEOF
4001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4002   $EGREP "memchr" >/dev/null 2>&1; then :
4003
4004 else
4005   ac_cv_header_stdc=no
4006 fi
4007 rm -f conftest*
4008
4009 fi
4010
4011 if test $ac_cv_header_stdc = yes; then
4012   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h.  */
4015 #include <stdlib.h>
4016
4017 _ACEOF
4018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4019   $EGREP "free" >/dev/null 2>&1; then :
4020
4021 else
4022   ac_cv_header_stdc=no
4023 fi
4024 rm -f conftest*
4025
4026 fi
4027
4028 if test $ac_cv_header_stdc = yes; then
4029   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4030   if test "$cross_compiling" = yes; then :
4031   :
4032 else
4033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h.  */
4035 #include <ctype.h>
4036 #include <stdlib.h>
4037 #if ((' ' & 0x0FF) == 0x020)
4038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4040 #else
4041 # define ISLOWER(c) \
4042                    (('a' <= (c) && (c) <= 'i') \
4043                      || ('j' <= (c) && (c) <= 'r') \
4044                      || ('s' <= (c) && (c) <= 'z'))
4045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4046 #endif
4047
4048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4049 int
4050 main ()
4051 {
4052   int i;
4053   for (i = 0; i < 256; i++)
4054     if (XOR (islower (i), ISLOWER (i))
4055         || toupper (i) != TOUPPER (i))
4056       return 2;
4057   return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_run "$LINENO"; then :
4061
4062 else
4063   ac_cv_header_stdc=no
4064 fi
4065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4066   conftest.$ac_objext conftest.beam conftest.$ac_ext
4067 fi
4068
4069 fi
4070 fi
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4072 $as_echo "$ac_cv_header_stdc" >&6; }
4073 if test $ac_cv_header_stdc = yes; then
4074
4075 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4076
4077 fi
4078
4079 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4080 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4081                   inttypes.h stdint.h unistd.h
4082 do :
4083   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4084 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4085 "
4086 eval as_val=\$$as_ac_Header
4087    if test "x$as_val" = x""yes; then :
4088   cat >>confdefs.h <<_ACEOF
4089 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4090 _ACEOF
4091
4092 fi
4093
4094 done
4095
4096
4097
4098
4099
4100   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4101 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4102   MINIX=yes
4103 else
4104   MINIX=
4105 fi
4106
4107
4108   if test "$MINIX" = yes; then
4109
4110 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4111
4112
4113 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4114
4115
4116 $as_echo "#define _MINIX 1" >>confdefs.h
4117
4118   fi
4119
4120         case "$host_os" in
4121     hpux*)
4122
4123 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4124
4125       ;;
4126   esac
4127
4128
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4130 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4131 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4132   $as_echo_n "(cached) " >&6
4133 else
4134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4135 /* end confdefs.h.  */
4136
4137 #         define __EXTENSIONS__ 1
4138           $ac_includes_default
4139 int
4140 main ()
4141 {
4142
4143   ;
4144   return 0;
4145 }
4146 _ACEOF
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148   ac_cv_safe_to_define___extensions__=yes
4149 else
4150   ac_cv_safe_to_define___extensions__=no
4151 fi
4152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4155 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4156   test $ac_cv_safe_to_define___extensions__ = yes &&
4157     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4158
4159   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4160
4161   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4162
4163   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4164
4165   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4166
4167
4168 if test -n "$ac_tool_prefix"; then
4169   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172 $as_echo_n "checking for $ac_word... " >&6; }
4173 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4174   $as_echo_n "(cached) " >&6
4175 else
4176   if test -n "$RANLIB"; then
4177   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182   IFS=$as_save_IFS
4183   test -z "$as_dir" && as_dir=.
4184     for ac_exec_ext in '' $ac_executable_extensions; do
4185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4186     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4188     break 2
4189   fi
4190 done
4191   done
4192 IFS=$as_save_IFS
4193
4194 fi
4195 fi
4196 RANLIB=$ac_cv_prog_RANLIB
4197 if test -n "$RANLIB"; then
4198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4199 $as_echo "$RANLIB" >&6; }
4200 else
4201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202 $as_echo "no" >&6; }
4203 fi
4204
4205
4206 fi
4207 if test -z "$ac_cv_prog_RANLIB"; then
4208   ac_ct_RANLIB=$RANLIB
4209   # Extract the first word of "ranlib", so it can be a program name with args.
4210 set dummy ranlib; ac_word=$2
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212 $as_echo_n "checking for $ac_word... " >&6; }
4213 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   if test -n "$ac_ct_RANLIB"; then
4217   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4218 else
4219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220 for as_dir in $PATH
4221 do
4222   IFS=$as_save_IFS
4223   test -z "$as_dir" && as_dir=.
4224     for ac_exec_ext in '' $ac_executable_extensions; do
4225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4226     ac_cv_prog_ac_ct_RANLIB="ranlib"
4227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228     break 2
4229   fi
4230 done
4231   done
4232 IFS=$as_save_IFS
4233
4234 fi
4235 fi
4236 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4237 if test -n "$ac_ct_RANLIB"; then
4238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4239 $as_echo "$ac_ct_RANLIB" >&6; }
4240 else
4241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242 $as_echo "no" >&6; }
4243 fi
4244
4245   if test "x$ac_ct_RANLIB" = x; then
4246     RANLIB=":"
4247   else
4248     case $cross_compiling:$ac_tool_warned in
4249 yes:)
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4252 ac_tool_warned=yes ;;
4253 esac
4254     RANLIB=$ac_ct_RANLIB
4255   fi
4256 else
4257   RANLIB="$ac_cv_prog_RANLIB"
4258 fi
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268   # Code from module arg-nonnull:
4269   # Code from module c++defs:
4270   # Code from module extensions:
4271
4272   # Code from module include_next:
4273   # Code from module memchr:
4274   # Code from module memmem:
4275   # Code from module memmem-simple:
4276   # Code from module multiarch:
4277   # Code from module stddef:
4278   # Code from module stdint:
4279   # Code from module string:
4280   # Code from module warn-on-use:
4281   # Code from module wchar:
4282
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4284 $as_echo_n "checking target system type... " >&6; }
4285 if test "${ac_cv_target+set}" = set; then :
4286   $as_echo_n "(cached) " >&6
4287 else
4288   if test "x$target_alias" = x; then
4289   ac_cv_target=$ac_cv_host
4290 else
4291   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4292     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4293 fi
4294
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4297 $as_echo "$ac_cv_target" >&6; }
4298 case $ac_cv_target in
4299 *-*-*) ;;
4300 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4301 esac
4302 target=$ac_cv_target
4303 ac_save_IFS=$IFS; IFS='-'
4304 set x $ac_cv_target
4305 shift
4306 target_cpu=$1
4307 target_vendor=$2
4308 shift; shift
4309 # Remember, the first character of IFS is used to create $*,
4310 # except with old shells:
4311 target_os=$*
4312 IFS=$ac_save_IFS
4313 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4314
4315
4316 # The aliases save the names the user supplied, while $host etc.
4317 # will get canonicalized.
4318 test -n "$target_alias" &&
4319   test "$program_prefix$program_suffix$program_transform_name" = \
4320     NONENONEs,x,x, &&
4321   program_prefix=${target_alias}-
4322
4323 # The tests for host and target for $enable_largefile require
4324 # canonical names.
4325
4326
4327
4328 # As the $enable_largefile decision depends on --enable-plugins we must set it
4329 # even in directories otherwise not depending on the $plugins option.
4330
4331
4332 # Check whether --enable-plugins was given.
4333 if test "${enable_plugins+set}" = set; then :
4334   enableval=$enable_plugins; case "${enableval}" in
4335   yes | "") plugins=yes ;;
4336   no) plugins=no ;;
4337   *) plugins=yes ;;
4338  esac
4339 else
4340   plugins=no
4341 fi
4342
4343
4344
4345 case "${host}" in
4346   sparc-*-solaris*|i[3-7]86-*-solaris*)
4347     # On native 32bit sparc and ia32 solaris, large-file and procfs support
4348     # are mutually exclusive; and without procfs support, the bfd/ elf module
4349     # cannot provide certain routines such as elfcore_write_prpsinfo
4350     # or elfcore_write_prstatus.  So unless the user explicitly requested
4351     # large-file support through the --enable-largefile switch, disable
4352     # large-file support in favor of procfs support.
4353     test "${target}" = "${host}" -a "x$plugins" = xno \
4354       && : ${enable_largefile="no"}
4355     ;;
4356 esac
4357
4358 # Check whether --enable-largefile was given.
4359 if test "${enable_largefile+set}" = set; then :
4360   enableval=$enable_largefile;
4361 fi
4362
4363 if test "$enable_largefile" != no; then
4364
4365   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4366 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4367 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4368   $as_echo_n "(cached) " >&6
4369 else
4370   ac_cv_sys_largefile_CC=no
4371      if test "$GCC" != yes; then
4372        ac_save_CC=$CC
4373        while :; do
4374          # IRIX 6.2 and later do not support large files by default,
4375          # so use the C compiler's -n32 option if that helps.
4376          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h.  */
4378 #include <sys/types.h>
4379  /* Check that off_t can represent 2**63 - 1 correctly.
4380     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4381     since some C++ compilers masquerading as C compilers
4382     incorrectly reject 9223372036854775807.  */
4383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4384   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4385                        && LARGE_OFF_T % 2147483647 == 1)
4386                       ? 1 : -1];
4387 int
4388 main ()
4389 {
4390
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395          if ac_fn_c_try_compile "$LINENO"; then :
4396   break
4397 fi
4398 rm -f core conftest.err conftest.$ac_objext
4399          CC="$CC -n32"
4400          if ac_fn_c_try_compile "$LINENO"; then :
4401   ac_cv_sys_largefile_CC=' -n32'; break
4402 fi
4403 rm -f core conftest.err conftest.$ac_objext
4404          break
4405        done
4406        CC=$ac_save_CC
4407        rm -f conftest.$ac_ext
4408     fi
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4411 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4412   if test "$ac_cv_sys_largefile_CC" != no; then
4413     CC=$CC$ac_cv_sys_largefile_CC
4414   fi
4415
4416   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4417 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4418 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   while :; do
4422   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h.  */
4424 #include <sys/types.h>
4425  /* Check that off_t can represent 2**63 - 1 correctly.
4426     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4427     since some C++ compilers masquerading as C compilers
4428     incorrectly reject 9223372036854775807.  */
4429 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4430   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4431                        && LARGE_OFF_T % 2147483647 == 1)
4432                       ? 1 : -1];
4433 int
4434 main ()
4435 {
4436
4437   ;
4438   return 0;
4439 }
4440 _ACEOF
4441 if ac_fn_c_try_compile "$LINENO"; then :
4442   ac_cv_sys_file_offset_bits=no; break
4443 fi
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h.  */
4447 #define _FILE_OFFSET_BITS 64
4448 #include <sys/types.h>
4449  /* Check that off_t can represent 2**63 - 1 correctly.
4450     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4451     since some C++ compilers masquerading as C compilers
4452     incorrectly reject 9223372036854775807.  */
4453 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4454   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4455                        && LARGE_OFF_T % 2147483647 == 1)
4456                       ? 1 : -1];
4457 int
4458 main ()
4459 {
4460
4461   ;
4462   return 0;
4463 }
4464 _ACEOF
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466   ac_cv_sys_file_offset_bits=64; break
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469   ac_cv_sys_file_offset_bits=unknown
4470   break
4471 done
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4474 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4475 case $ac_cv_sys_file_offset_bits in #(
4476   no | unknown) ;;
4477   *)
4478 cat >>confdefs.h <<_ACEOF
4479 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4480 _ACEOF
4481 ;;
4482 esac
4483 rm -rf conftest*
4484   if test $ac_cv_sys_file_offset_bits = unknown; then
4485     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4486 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4487 if test "${ac_cv_sys_large_files+set}" = set; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   while :; do
4491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492 /* end confdefs.h.  */
4493 #include <sys/types.h>
4494  /* Check that off_t can represent 2**63 - 1 correctly.
4495     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4496     since some C++ compilers masquerading as C compilers
4497     incorrectly reject 9223372036854775807.  */
4498 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4499   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4500                        && LARGE_OFF_T % 2147483647 == 1)
4501                       ? 1 : -1];
4502 int
4503 main ()
4504 {
4505
4506   ;
4507   return 0;
4508 }
4509 _ACEOF
4510 if ac_fn_c_try_compile "$LINENO"; then :
4511   ac_cv_sys_large_files=no; break
4512 fi
4513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h.  */
4516 #define _LARGE_FILES 1
4517 #include <sys/types.h>
4518  /* Check that off_t can represent 2**63 - 1 correctly.
4519     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4520     since some C++ compilers masquerading as C compilers
4521     incorrectly reject 9223372036854775807.  */
4522 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4523   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4524                        && LARGE_OFF_T % 2147483647 == 1)
4525                       ? 1 : -1];
4526 int
4527 main ()
4528 {
4529
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 if ac_fn_c_try_compile "$LINENO"; then :
4535   ac_cv_sys_large_files=1; break
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538   ac_cv_sys_large_files=unknown
4539   break
4540 done
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4543 $as_echo "$ac_cv_sys_large_files" >&6; }
4544 case $ac_cv_sys_large_files in #(
4545   no | unknown) ;;
4546   *)
4547 cat >>confdefs.h <<_ACEOF
4548 #define _LARGE_FILES $ac_cv_sys_large_files
4549 _ACEOF
4550 ;;
4551 esac
4552 rm -rf conftest*
4553   fi
4554 fi
4555
4556
4557
4558
4559
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4561 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4562 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4563   $as_echo_n "(cached) " >&6
4564 else
4565   am_cv_prog_cc_stdc=no
4566 ac_save_CC="$CC"
4567 # Don't try gcc -ansi; that turns off useful extensions and
4568 # breaks some systems' header files.
4569 # AIX                   -qlanglvl=ansi
4570 # Ultrix and OSF/1      -std1
4571 # HP-UX 10.20 and later -Ae
4572 # HP-UX older versions  -Aa -D_HPUX_SOURCE
4573 # SVR4                  -Xc -D__EXTENSIONS__
4574 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4575 do
4576   CC="$ac_save_CC $ac_arg"
4577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h.  */
4579 #include <stdarg.h>
4580 #include <stdio.h>
4581 #include <sys/types.h>
4582 #include <sys/stat.h>
4583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4584 struct buf { int x; };
4585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4586 static char *e (p, i)
4587      char **p;
4588      int i;
4589 {
4590   return p[i];
4591 }
4592 static char *f (char * (*g) (char **, int), char **p, ...)
4593 {
4594   char *s;
4595   va_list v;
4596   va_start (v,p);
4597   s = g (p, va_arg (v,int));
4598   va_end (v);
4599   return s;
4600 }
4601 int test (int i, double x);
4602 struct s1 {int (*f) (int a);};
4603 struct s2 {int (*f) (double a);};
4604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4605 int argc;
4606 char **argv;
4607
4608 int
4609 main ()
4610 {
4611
4612 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4613
4614   ;
4615   return 0;
4616 }
4617 _ACEOF
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619   am_cv_prog_cc_stdc="$ac_arg"; break
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 done
4623 CC="$ac_save_CC"
4624
4625 fi
4626
4627 if test -z "$am_cv_prog_cc_stdc"; then
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4629 $as_echo "none needed" >&6; }
4630 else
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4632 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4633 fi
4634 case "x$am_cv_prog_cc_stdc" in
4635   x|xno) ;;
4636   *) CC="$CC $am_cv_prog_cc_stdc" ;;
4637 esac
4638
4639
4640 ac_aux_dir=
4641 for ac_dir in .. "$srcdir"/..; do
4642   for ac_t in install-sh install.sh shtool; do
4643     if test -f "$ac_dir/$ac_t"; then
4644       ac_aux_dir=$ac_dir
4645       ac_install_sh="$ac_aux_dir/$ac_t -c"
4646       break 2
4647     fi
4648   done
4649 done
4650 if test -z "$ac_aux_dir"; then
4651   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4652 fi
4653
4654 # These three variables are undocumented and unsupported,
4655 # and are intended to be withdrawn in a future Autoconf release.
4656 # They can cause serious problems if a builder's source tree is in a directory
4657 # whose full name contains unusual characters.
4658 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
4659 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
4660 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
4661
4662
4663
4664
4665 # Dependency checking.
4666 rm -rf .tst 2>/dev/null
4667 mkdir .tst 2>/dev/null
4668 if test -d .tst; then
4669   am__leading_dot=.
4670 else
4671   am__leading_dot=_
4672 fi
4673 rmdir .tst 2>/dev/null
4674
4675 DEPDIR="${am__leading_dot}deps"
4676
4677 ac_config_commands="$ac_config_commands depdir"
4678
4679
4680 depcc="$CC"   am_compiler_list=
4681
4682 am_depcomp=$ac_aux_dir/depcomp
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4684 $as_echo_n "checking dependency style of $depcc... " >&6; }
4685 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4686   $as_echo_n "(cached) " >&6
4687 else
4688   if test -f "$am_depcomp"; then
4689   # We make a subdir and do the tests there.  Otherwise we can end up
4690   # making bogus files that we don't know about and never remove.  For
4691   # instance it was reported that on HP-UX the gcc test will end up
4692   # making a dummy file named `D' -- because `-MD' means `put the output
4693   # in D'.
4694   mkdir conftest.dir
4695   # Copy depcomp to subdir because otherwise we won't find it if we're
4696   # using a relative directory.
4697   cp "$am_depcomp" conftest.dir
4698   cd conftest.dir
4699   # We will build objects and dependencies in a subdirectory because
4700   # it helps to detect inapplicable dependency modes.  For instance
4701   # both Tru64's cc and ICC support -MD to output dependencies as a
4702   # side effect of compilation, but ICC will put the dependencies in
4703   # the current directory while Tru64 will put them in the object
4704   # directory.
4705   mkdir sub
4706
4707   am_cv_CC_dependencies_compiler_type=none
4708   if test "$am_compiler_list" = ""; then
4709      am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4710   fi
4711   for depmode in $am_compiler_list; do
4712     if test $depmode = none; then break; fi
4713
4714     $as_echo "$as_me:$LINENO: trying $depmode" >&5
4715     # Setup a source with many dependencies, because some compilers
4716     # like to wrap large dependency lists on column 80 (with \), and
4717     # we should not choose a depcomp mode which is confused by this.
4718     #
4719     # We need to recreate these files for each test, as the compiler may
4720     # overwrite some of them when testing with obscure command lines.
4721     # This happens at least with the AIX C compiler.
4722     : > sub/conftest.c
4723     for i in 1 2 3 4 5 6; do
4724       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4725       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4726       # Solaris 8's {/usr,}/bin/sh.
4727       touch sub/conftst$i.h
4728     done
4729     echo "include sub/conftest.Po" > confmf
4730
4731     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4732     # mode.  It turns out that the SunPro C++ compiler does not properly
4733     # handle `-M -o', and we need to detect this.
4734     depcmd="depmode=$depmode \
4735        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4736        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4737        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4738     echo "| $depcmd" | sed -e 's/  */ /g' >&5
4739     if env $depcmd > conftest.err 2>&1 &&
4740        grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4741        grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4742        ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4743       # icc doesn't choke on unknown options, it will just issue warnings
4744       # or remarks (even with -Werror).  So we grep stderr for any message
4745       # that says an option was ignored or not supported.
4746       # When given -MP, icc 7.0 and 7.1 complain thusly:
4747       #   icc: Command line warning: ignoring option '-M'; no argument required
4748       # The diagnosis changed in icc 8.0:
4749       #   icc: Command line remark: option '-MP' not supported
4750       if (grep 'ignoring option' conftest.err ||
4751           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4752         am_cv_CC_dependencies_compiler_type=$depmode
4753         $as_echo "$as_me:$LINENO: success" >&5
4754         break
4755       fi
4756     fi
4757     $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4758     sed -e 's/^/| /' < conftest.err >&5
4759   done
4760
4761   cd ..
4762   rm -rf conftest.dir
4763 else
4764   am_cv_CC_dependencies_compiler_type=none
4765 fi
4766
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4769 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4770 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4771 then as_fn_error "no usable dependency style found" "$LINENO" 5
4772 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4773
4774 fi
4775
4776
4777 # Check for the 'make' the user wants to use.
4778 for ac_prog in make
4779 do
4780   # Extract the first word of "$ac_prog", so it can be a program name with args.
4781 set dummy $ac_prog; ac_word=$2
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783 $as_echo_n "checking for $ac_word... " >&6; }
4784 if test "${ac_cv_prog_MAKE+set}" = set; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   if test -n "$MAKE"; then
4788   ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4789 else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH
4792 do
4793   IFS=$as_save_IFS
4794   test -z "$as_dir" && as_dir=.
4795     for ac_exec_ext in '' $ac_executable_extensions; do
4796   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797     ac_cv_prog_MAKE="$ac_prog"
4798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799     break 2
4800   fi
4801 done
4802   done
4803 IFS=$as_save_IFS
4804
4805 fi
4806 fi
4807 MAKE=$ac_cv_prog_MAKE
4808 if test -n "$MAKE"; then
4809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4810 $as_echo "$MAKE" >&6; }
4811 else
4812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 fi
4815
4816
4817   test -n "$MAKE" && break
4818 done
4819
4820 MAKE_IS_GNU=
4821 case "`$MAKE --version 2>&1 | sed 1q`" in
4822   *GNU*)
4823     MAKE_IS_GNU=yes
4824     ;;
4825 esac
4826  if test "$MAKE_IS_GNU" = yes; then
4827   GMAKE_TRUE=
4828   GMAKE_FALSE='#'
4829 else
4830   GMAKE_TRUE='#'
4831   GMAKE_FALSE=
4832 fi
4833
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4835 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4836 set x ${MAKE-make}
4837 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4838 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4839   $as_echo_n "(cached) " >&6
4840 else
4841   cat >conftest.make <<\_ACEOF
4842 SHELL = /bin/sh
4843 all:
4844         @echo '@@@%%%=$(MAKE)=@@@%%%'
4845 _ACEOF
4846 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4847 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4848   *@@@%%%=?*=@@@%%%*)
4849     eval ac_cv_prog_make_${ac_make}_set=yes;;
4850   *)
4851     eval ac_cv_prog_make_${ac_make}_set=no;;
4852 esac
4853 rm -f conftest.make
4854 fi
4855 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4857 $as_echo "yes" >&6; }
4858   SET_MAKE=
4859 else
4860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861 $as_echo "no" >&6; }
4862   SET_MAKE="MAKE=${MAKE-make}"
4863 fi
4864
4865
4866
4867 CONFIG_OBS=
4868 CONFIG_DEPS=
4869 CONFIG_SRCS=
4870 ENABLE_CFLAGS=
4871
4872 CONFIG_ALL=
4873 CONFIG_CLEAN=
4874 CONFIG_INSTALL=
4875 CONFIG_UNINSTALL=
4876
4877 # If we haven't got the data from the intl directory,
4878 # assume NLS is disabled.
4879 USE_NLS=no
4880 LIBINTL=
4881 LIBINTL_DEP=
4882 INCINTL=
4883 XGETTEXT=
4884 GMSGFMT=
4885 POSUB=
4886
4887 if test -f  ../intl/config.intl; then
4888   .  ../intl/config.intl
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4891 $as_echo_n "checking whether NLS is requested... " >&6; }
4892 if test x"$USE_NLS" != xyes; then
4893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4894 $as_echo "no" >&6; }
4895 else
4896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4897 $as_echo "yes" >&6; }
4898
4899 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4900
4901
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4903 $as_echo_n "checking for catalogs to be installed... " >&6; }
4904   # Look for .po and .gmo files in the source directory.
4905   CATALOGS=
4906   XLINGUAS=
4907   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4908     # If there aren't any .gmo files the shell will give us the
4909     # literal string "../path/to/srcdir/po/*.gmo" which has to be
4910     # weeded out.
4911     case "$cat" in *\**)
4912       continue;;
4913     esac
4914     # The quadruple backslash is collapsed to a double backslash
4915     # by the backticks, then collapsed again by the double quotes,
4916     # leaving us with one backslash in the sed expression (right
4917     # before the dot that mustn't act as a wildcard).
4918     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4919     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4920     # The user is allowed to set LINGUAS to a list of languages to
4921     # install catalogs for.  If it's empty that means "all of them."
4922     if test "x$LINGUAS" = x; then
4923       CATALOGS="$CATALOGS $cat"
4924       XLINGUAS="$XLINGUAS $lang"
4925     else
4926       case "$LINGUAS" in *$lang*)
4927         CATALOGS="$CATALOGS $cat"
4928         XLINGUAS="$XLINGUAS $lang"
4929         ;;
4930       esac
4931     fi
4932   done
4933   LINGUAS="$XLINGUAS"
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4935 $as_echo "$LINGUAS" >&6; }
4936
4937
4938     DATADIRNAME=share
4939
4940   INSTOBJEXT=.mo
4941
4942   GENCAT=gencat
4943
4944   CATOBJEXT=.gmo
4945
4946 fi
4947
4948 localedir='${datadir}/locale'
4949
4950
4951 if test x"$USE_NLS" = xyes; then
4952    CONFIG_ALL="$CONFIG_ALL all-po"
4953    CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4954    CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4955    CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4956 fi
4957
4958
4959
4960
4961
4962           LIBC_FATAL_STDERR_=1
4963   export LIBC_FATAL_STDERR_
4964
4965
4966
4967
4968
4969   for ac_header in $gl_header_list
4970 do :
4971   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4973 eval as_val=\$$as_ac_Header
4974    if test "x$as_val" = x""yes; then :
4975   cat >>confdefs.h <<_ACEOF
4976 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977 _ACEOF
4978
4979 fi
4980
4981 done
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991   for ac_func in $gl_func_list
4992 do :
4993   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4994 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4995 eval as_val=\$$as_ac_var
4996    if test "x$as_val" = x""yes; then :
4997   cat >>confdefs.h <<_ACEOF
4998 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4999 _ACEOF
5000
5001 fi
5002 done
5003
5004
5005
5006
5007
5008
5009   GNULIB_MEMCHR=0;
5010   GNULIB_MEMMEM=0;
5011   GNULIB_MEMPCPY=0;
5012   GNULIB_MEMRCHR=0;
5013   GNULIB_RAWMEMCHR=0;
5014   GNULIB_STPCPY=0;
5015   GNULIB_STPNCPY=0;
5016   GNULIB_STRCHRNUL=0;
5017   GNULIB_STRDUP=0;
5018   GNULIB_STRNCAT=0;
5019   GNULIB_STRNDUP=0;
5020   GNULIB_STRNLEN=0;
5021   GNULIB_STRPBRK=0;
5022   GNULIB_STRSEP=0;
5023   GNULIB_STRSTR=0;
5024   GNULIB_STRCASESTR=0;
5025   GNULIB_STRTOK_R=0;
5026   GNULIB_MBSLEN=0;
5027   GNULIB_MBSNLEN=0;
5028   GNULIB_MBSCHR=0;
5029   GNULIB_MBSRCHR=0;
5030   GNULIB_MBSSTR=0;
5031   GNULIB_MBSCASECMP=0;
5032   GNULIB_MBSNCASECMP=0;
5033   GNULIB_MBSPCASECMP=0;
5034   GNULIB_MBSCASESTR=0;
5035   GNULIB_MBSCSPN=0;
5036   GNULIB_MBSPBRK=0;
5037   GNULIB_MBSSPN=0;
5038   GNULIB_MBSSEP=0;
5039   GNULIB_MBSTOK_R=0;
5040   GNULIB_STRERROR=0;
5041   GNULIB_STRSIGNAL=0;
5042   GNULIB_STRVERSCMP=0;
5043   HAVE_MBSLEN=0;
5044     HAVE_MEMCHR=1;
5045   HAVE_DECL_MEMMEM=1;
5046   HAVE_MEMPCPY=1;
5047   HAVE_DECL_MEMRCHR=1;
5048   HAVE_RAWMEMCHR=1;
5049   HAVE_STPCPY=1;
5050   HAVE_STPNCPY=1;
5051   HAVE_STRCHRNUL=1;
5052   HAVE_DECL_STRDUP=1;
5053   HAVE_DECL_STRNDUP=1;
5054   HAVE_DECL_STRNLEN=1;
5055   HAVE_STRPBRK=1;
5056   HAVE_STRSEP=1;
5057   HAVE_STRCASESTR=1;
5058   HAVE_DECL_STRTOK_R=1;
5059   HAVE_DECL_STRSIGNAL=1;
5060   HAVE_STRVERSCMP=1;
5061   REPLACE_MEMCHR=0;
5062   REPLACE_MEMMEM=0;
5063   REPLACE_STPNCPY=0;
5064   REPLACE_STRDUP=0;
5065   REPLACE_STRSTR=0;
5066   REPLACE_STRCASESTR=0;
5067   REPLACE_STRERROR=0;
5068   REPLACE_STRNCAT=0;
5069   REPLACE_STRNDUP=0;
5070   REPLACE_STRNLEN=0;
5071   REPLACE_STRSIGNAL=0;
5072   REPLACE_STRTOK_R=0;
5073   UNDEFINE_STRTOK_R=0;
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5088   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5089   # irrelevant for anonymous mappings.
5090   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5091 if test "x$ac_cv_func_mmap" = x""yes; then :
5092   gl_have_mmap=yes
5093 else
5094   gl_have_mmap=no
5095 fi
5096
5097
5098   # Try to allow MAP_ANONYMOUS.
5099   gl_have_mmap_anonymous=no
5100   if test $gl_have_mmap = yes; then
5101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5102 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h.  */
5105
5106 #include <sys/mman.h>
5107 #ifdef MAP_ANONYMOUS
5108     I cant identify this map.
5109 #endif
5110
5111 _ACEOF
5112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5113   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5114   gl_have_mmap_anonymous=yes
5115 fi
5116 rm -f conftest*
5117
5118     if test $gl_have_mmap_anonymous != yes; then
5119       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h.  */
5121
5122 #include <sys/mman.h>
5123 #ifdef MAP_ANON
5124     I cant identify this map.
5125 #endif
5126
5127 _ACEOF
5128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5129   $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5130
5131 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5132
5133          gl_have_mmap_anonymous=yes
5134 fi
5135 rm -f conftest*
5136
5137     fi
5138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5139 $as_echo "$gl_have_mmap_anonymous" >&6; }
5140     if test $gl_have_mmap_anonymous = yes; then
5141
5142 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5143
5144     fi
5145   fi
5146
5147
5148   :
5149
5150
5151
5152
5153
5154
5155   :
5156
5157
5158
5159
5160
5161
5162
5163
5164   :
5165
5166
5167
5168
5169
5170   if test $ac_cv_func_memchr = yes; then
5171     # Detect platform-specific bugs in some versions of glibc:
5172     # memchr should not dereference anything with length 0
5173     #   http://bugzilla.redhat.com/499689
5174     # memchr should not dereference overestimated length after a match
5175     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5176     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5177     # Assume that memchr works on platforms that lack mprotect.
5178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5179 $as_echo_n "checking whether memchr works... " >&6; }
5180 if test "${gl_cv_func_memchr_works+set}" = set; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if test "$cross_compiling" = yes; then :
5184          gl_cv_func_memchr_works="guessing no"
5185 else
5186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h.  */
5188
5189 #include <string.h>
5190 #if HAVE_SYS_MMAN_H
5191 # include <fcntl.h>
5192 # include <unistd.h>
5193 # include <sys/types.h>
5194 # include <sys/mman.h>
5195 # ifndef MAP_FILE
5196 #  define MAP_FILE 0
5197 # endif
5198 #endif
5199
5200 int
5201 main ()
5202 {
5203
5204   char *fence = NULL;
5205 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5206 # if HAVE_MAP_ANONYMOUS
5207   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5208   const int fd = -1;
5209 # else /* !HAVE_MAP_ANONYMOUS */
5210   const int flags = MAP_FILE | MAP_PRIVATE;
5211   int fd = open ("/dev/zero", O_RDONLY, 0666);
5212   if (fd >= 0)
5213 # endif
5214     {
5215       int pagesize = getpagesize ();
5216       char *two_pages =
5217         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5218                        flags, fd, 0);
5219       if (two_pages != (char *)(-1)
5220           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5221         fence = two_pages + pagesize;
5222     }
5223 #endif
5224   if (fence)
5225     {
5226       if (memchr (fence, 0, 0))
5227         return 1;
5228       strcpy (fence - 9, "12345678");
5229       if (memchr (fence - 9, 0, 79) != fence - 1)
5230         return 2;
5231     }
5232   return 0;
5233
5234   ;
5235   return 0;
5236 }
5237 _ACEOF
5238 if ac_fn_c_try_run "$LINENO"; then :
5239   gl_cv_func_memchr_works=yes
5240 else
5241   gl_cv_func_memchr_works=no
5242 fi
5243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5244   conftest.$ac_objext conftest.beam conftest.$ac_ext
5245 fi
5246
5247 fi
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5249 $as_echo "$gl_cv_func_memchr_works" >&6; }
5250     if test "$gl_cv_func_memchr_works" != yes; then
5251       REPLACE_MEMCHR=1
5252     fi
5253   else
5254     HAVE_MEMCHR=0
5255   fi
5256   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5257
5258
5259
5260
5261
5262
5263
5264
5265   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5266
5267
5268   for ac_header in bp-sym.h
5269 do :
5270   ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5271 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5272   cat >>confdefs.h <<_ACEOF
5273 #define HAVE_BP_SYM_H 1
5274 _ACEOF
5275
5276 fi
5277
5278 done
5279
5280
5281   fi
5282
5283
5284       ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5285 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5286   ac_have_decl=1
5287 else
5288   ac_have_decl=0
5289 fi
5290
5291 cat >>confdefs.h <<_ACEOF
5292 #define HAVE_DECL_MEMMEM $ac_have_decl
5293 _ACEOF
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308   for ac_func in memmem
5309 do :
5310   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5311 if test "x$ac_cv_func_memmem" = x""yes; then :
5312   cat >>confdefs.h <<_ACEOF
5313 #define HAVE_MEMMEM 1
5314 _ACEOF
5315
5316 else
5317
5318     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5319
5320 fi
5321 done
5322
5323
5324
5325   :
5326
5327
5328
5329
5330
5331   if test $ac_cv_have_decl_memmem = no; then
5332     HAVE_DECL_MEMMEM=0
5333   fi
5334   :
5335
5336
5337     gl_cv_c_multiarch=no
5338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5339 /* end confdefs.h.  */
5340 #ifndef __APPLE_CC__
5341          not a universal capable compiler
5342         #endif
5343         typedef int dummy;
5344
5345 _ACEOF
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347
5348                arch=
5349      prev=
5350      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5351        if test -n "$prev"; then
5352          case $word in
5353            i?86 | x86_64 | ppc | ppc64)
5354              if test -z "$arch" || test "$arch" = "$word"; then
5355                arch="$word"
5356              else
5357                gl_cv_c_multiarch=yes
5358              fi
5359              ;;
5360          esac
5361          prev=
5362        else
5363          if test "x$word" = "x-arch"; then
5364            prev=arch
5365          fi
5366        fi
5367      done
5368
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371   if test $gl_cv_c_multiarch = yes; then
5372
5373 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5374
5375     APPLE_UNIVERSAL_BUILD=1
5376   else
5377     APPLE_UNIVERSAL_BUILD=0
5378   fi
5379
5380
5381
5382     REPLACE_NULL=0;
5383   HAVE_WCHAR_T=1;
5384   STDDEF_H='';
5385
5386
5387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5388 $as_echo_n "checking for wchar_t... " >&6; }
5389 if test "${gt_cv_c_wchar_t+set}" = set; then :
5390   $as_echo_n "(cached) " >&6
5391 else
5392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h.  */
5394 #include <stddef.h>
5395        wchar_t foo = (wchar_t)'\0';
5396 int
5397 main ()
5398 {
5399
5400   ;
5401   return 0;
5402 }
5403 _ACEOF
5404 if ac_fn_c_try_compile "$LINENO"; then :
5405   gt_cv_c_wchar_t=yes
5406 else
5407   gt_cv_c_wchar_t=no
5408 fi
5409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5410 fi
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5412 $as_echo "$gt_cv_c_wchar_t" >&6; }
5413   if test $gt_cv_c_wchar_t = yes; then
5414
5415 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5416
5417   fi
5418
5419
5420
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5422 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5423 if test "${gl_cv_have_include_next+set}" = set; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   rm -rf conftestd1a conftestd1b conftestd2
5427      mkdir conftestd1a conftestd1b conftestd2
5428                                                   cat <<EOF > conftestd1a/conftest.h
5429 #define DEFINED_IN_CONFTESTD1
5430 #include_next <conftest.h>
5431 #ifdef DEFINED_IN_CONFTESTD2
5432 int foo;
5433 #else
5434 #error "include_next doesn't work"
5435 #endif
5436 EOF
5437      cat <<EOF > conftestd1b/conftest.h
5438 #define DEFINED_IN_CONFTESTD1
5439 #include <stdio.h>
5440 #include_next <conftest.h>
5441 #ifdef DEFINED_IN_CONFTESTD2
5442 int foo;
5443 #else
5444 #error "include_next doesn't work"
5445 #endif
5446 EOF
5447      cat <<EOF > conftestd2/conftest.h
5448 #ifndef DEFINED_IN_CONFTESTD1
5449 #error "include_next test doesn't work"
5450 #endif
5451 #define DEFINED_IN_CONFTESTD2
5452 EOF
5453      gl_save_CPPFLAGS="$CPPFLAGS"
5454      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5455      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h.  */
5457 #include <conftest.h>
5458 _ACEOF
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460   gl_cv_have_include_next=yes
5461 else
5462   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5463         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h.  */
5465 #include <conftest.h>
5466 _ACEOF
5467 if ac_fn_c_try_compile "$LINENO"; then :
5468   gl_cv_have_include_next=buggy
5469 else
5470   gl_cv_have_include_next=no
5471 fi
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5473
5474 fi
5475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476      CPPFLAGS="$gl_save_CPPFLAGS"
5477      rm -rf conftestd1a conftestd1b conftestd2
5478
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5481 $as_echo "$gl_cv_have_include_next" >&6; }
5482   PRAGMA_SYSTEM_HEADER=
5483   if test $gl_cv_have_include_next = yes; then
5484     INCLUDE_NEXT=include_next
5485     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5486     if test -n "$GCC"; then
5487       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5488     fi
5489   else
5490     if test $gl_cv_have_include_next = buggy; then
5491       INCLUDE_NEXT=include
5492       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5493     else
5494       INCLUDE_NEXT=include
5495       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5496     fi
5497   fi
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5509 $as_echo_n "checking for long long int... " >&6; }
5510 if test "${ac_cv_type_long_long_int+set}" = set; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h.  */
5515
5516   /* For now, do not test the preprocessor; as of 2007 there are too many
5517          implementations with broken preprocessors.  Perhaps this can
5518          be revisited in 2012.  In the meantime, code should not expect
5519          #if to work with literals wider than 32 bits.  */
5520       /* Test literals.  */
5521       long long int ll = 9223372036854775807ll;
5522       long long int nll = -9223372036854775807LL;
5523       unsigned long long int ull = 18446744073709551615ULL;
5524       /* Test constant expressions.   */
5525       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5526                      ? 1 : -1)];
5527       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5528                      ? 1 : -1)];
5529       int i = 63;
5530 int
5531 main ()
5532 {
5533 /* Test availability of runtime routines for shift and division.  */
5534       long long int llmax = 9223372036854775807ll;
5535       unsigned long long int ullmax = 18446744073709551615ull;
5536       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5537               | (llmax / ll) | (llmax % ll)
5538               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5539               | (ullmax / ull) | (ullmax % ull));
5540   ;
5541   return 0;
5542 }
5543
5544 _ACEOF
5545 if ac_fn_c_try_link "$LINENO"; then :
5546                           if test "$cross_compiling" = yes; then :
5547   ac_cv_type_long_long_int=yes
5548 else
5549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h.  */
5551 #include <limits.h>
5552                #ifndef LLONG_MAX
5553                # define HALF \
5554                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5555                # define LLONG_MAX (HALF - 1 + HALF)
5556                #endif
5557 int
5558 main ()
5559 {
5560 long long int n = 1;
5561                int i;
5562                for (i = 0; ; i++)
5563                  {
5564                    long long int m = n << i;
5565                    if (m >> i != n)
5566                      return 1;
5567                    if (LLONG_MAX / 2 < m)
5568                      break;
5569                  }
5570                return 0;
5571   ;
5572   return 0;
5573 }
5574 _ACEOF
5575 if ac_fn_c_try_run "$LINENO"; then :
5576   ac_cv_type_long_long_int=yes
5577 else
5578   ac_cv_type_long_long_int=no
5579 fi
5580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5581   conftest.$ac_objext conftest.beam conftest.$ac_ext
5582 fi
5583
5584 else
5585   ac_cv_type_long_long_int=no
5586 fi
5587 rm -f core conftest.err conftest.$ac_objext \
5588     conftest$ac_exeext conftest.$ac_ext
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5591 $as_echo "$ac_cv_type_long_long_int" >&6; }
5592   if test $ac_cv_type_long_long_int = yes; then
5593
5594 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5595
5596   fi
5597
5598
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5600 $as_echo_n "checking for unsigned long long int... " >&6; }
5601 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5602   $as_echo_n "(cached) " >&6
5603 else
5604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5605 /* end confdefs.h.  */
5606
5607   /* For now, do not test the preprocessor; as of 2007 there are too many
5608          implementations with broken preprocessors.  Perhaps this can
5609          be revisited in 2012.  In the meantime, code should not expect
5610          #if to work with literals wider than 32 bits.  */
5611       /* Test literals.  */
5612       long long int ll = 9223372036854775807ll;
5613       long long int nll = -9223372036854775807LL;
5614       unsigned long long int ull = 18446744073709551615ULL;
5615       /* Test constant expressions.   */
5616       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5617                      ? 1 : -1)];
5618       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5619                      ? 1 : -1)];
5620       int i = 63;
5621 int
5622 main ()
5623 {
5624 /* Test availability of runtime routines for shift and division.  */
5625       long long int llmax = 9223372036854775807ll;
5626       unsigned long long int ullmax = 18446744073709551615ull;
5627       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5628               | (llmax / ll) | (llmax % ll)
5629               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5630               | (ullmax / ull) | (ullmax % ull));
5631   ;
5632   return 0;
5633 }
5634
5635 _ACEOF
5636 if ac_fn_c_try_link "$LINENO"; then :
5637   ac_cv_type_unsigned_long_long_int=yes
5638 else
5639   ac_cv_type_unsigned_long_long_int=no
5640 fi
5641 rm -f core conftest.err conftest.$ac_objext \
5642     conftest$ac_exeext conftest.$ac_ext
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5645 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5646   if test $ac_cv_type_unsigned_long_long_int = yes; then
5647
5648 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5649
5650   fi
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5663 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5664 if test "${ac_cv_c_restrict+set}" = set; then :
5665   $as_echo_n "(cached) " >&6
5666 else
5667   ac_cv_c_restrict=no
5668    # The order here caters to the fact that C++ does not require restrict.
5669    for ac_kw in __restrict __restrict__ _Restrict restrict; do
5670      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h.  */
5672 typedef int * int_ptr;
5673         int foo (int_ptr $ac_kw ip) {
5674         return ip[0];
5675        }
5676 int
5677 main ()
5678 {
5679 int s[1];
5680         int * $ac_kw t = s;
5681         t[0] = 0;
5682         return foo(t)
5683   ;
5684   return 0;
5685 }
5686 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then :
5688   ac_cv_c_restrict=$ac_kw
5689 fi
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691      test "$ac_cv_c_restrict" != no && break
5692    done
5693
5694 fi
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5696 $as_echo "$ac_cv_c_restrict" >&6; }
5697
5698  case $ac_cv_c_restrict in
5699    restrict) ;;
5700    no) $as_echo "#define restrict /**/" >>confdefs.h
5701  ;;
5702    *)  cat >>confdefs.h <<_ACEOF
5703 #define restrict $ac_cv_c_restrict
5704 _ACEOF
5705  ;;
5706  esac
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720   :
5721
5722
5723
5724
5725
5726
5727
5728      if test $gl_cv_have_include_next = yes; then
5729        gl_cv_next_string_h='<'string.h'>'
5730      else
5731        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5732 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5733 if test "${gl_cv_next_string_h+set}" = set; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736
5737           if test $ac_cv_header_string_h = yes; then
5738             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h.  */
5740 #include <string.h>
5741
5742 _ACEOF
5743                                                                                                 case "$host_os" in
5744               aix*) gl_absname_cpp="$ac_cpp -C" ;;
5745               *)    gl_absname_cpp="$ac_cpp" ;;
5746             esac
5747                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5748                sed -n '\#/string.h#{
5749                  s#.*"\(.*/string.h\)".*#\1#
5750                  s#^/[^/]#//&#
5751                  p
5752                  q
5753                }'`'"'
5754           else
5755             gl_cv_next_string_h='<'string.h'>'
5756           fi
5757
5758 fi
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5760 $as_echo "$gl_cv_next_string_h" >&6; }
5761      fi
5762      NEXT_STRING_H=$gl_cv_next_string_h
5763
5764      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5765        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5766        gl_next_as_first_directive='<'string.h'>'
5767      else
5768        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5769        gl_next_as_first_directive=$gl_cv_next_string_h
5770      fi
5771      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5772
5773
5774
5775
5776
5777     for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal      strverscmp; do
5778     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5780 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5781 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5782   $as_echo_n "(cached) " >&6
5783 else
5784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h.  */
5786 #include <string.h>
5787
5788 int
5789 main ()
5790 {
5791 #undef $gl_func
5792   (void) $gl_func;
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 if ac_fn_c_try_compile "$LINENO"; then :
5798   eval "$as_gl_Symbol=yes"
5799 else
5800   eval "$as_gl_Symbol=no"
5801 fi
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 fi
5804 eval ac_res=\$$as_gl_Symbol
5805                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5806 $as_echo "$ac_res" >&6; }
5807      eval as_val=\$$as_gl_Symbol
5808    if test "x$as_val" = x""yes; then :
5809   cat >>confdefs.h <<_ACEOF
5810 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5811 _ACEOF
5812
5813                      eval ac_cv_have_decl_$gl_func=yes
5814 fi
5815       done
5816
5817
5818
5819   GNULIB_BTOWC=0;
5820   GNULIB_WCTOB=0;
5821   GNULIB_MBSINIT=0;
5822   GNULIB_MBRTOWC=0;
5823   GNULIB_MBRLEN=0;
5824   GNULIB_MBSRTOWCS=0;
5825   GNULIB_MBSNRTOWCS=0;
5826   GNULIB_WCRTOMB=0;
5827   GNULIB_WCSRTOMBS=0;
5828   GNULIB_WCSNRTOMBS=0;
5829   GNULIB_WCWIDTH=0;
5830     HAVE_BTOWC=1;
5831   HAVE_MBSINIT=1;
5832   HAVE_MBRTOWC=1;
5833   HAVE_MBRLEN=1;
5834   HAVE_MBSRTOWCS=1;
5835   HAVE_MBSNRTOWCS=1;
5836   HAVE_WCRTOMB=1;
5837   HAVE_WCSRTOMBS=1;
5838   HAVE_WCSNRTOMBS=1;
5839   HAVE_DECL_WCTOB=1;
5840   HAVE_DECL_WCWIDTH=1;
5841   REPLACE_MBSTATE_T=0;
5842   REPLACE_BTOWC=0;
5843   REPLACE_WCTOB=0;
5844   REPLACE_MBSINIT=0;
5845   REPLACE_MBRTOWC=0;
5846   REPLACE_MBRLEN=0;
5847   REPLACE_MBSRTOWCS=0;
5848   REPLACE_MBSNRTOWCS=0;
5849   REPLACE_WCRTOMB=0;
5850   REPLACE_WCSRTOMBS=0;
5851   REPLACE_WCSNRTOMBS=0;
5852   REPLACE_WCWIDTH=0;
5853
5854
5855             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5856 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5857 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5858   $as_echo_n "(cached) " >&6
5859 else
5860   gl_cv_header_wchar_h_correct_inline=yes
5861      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862 /* end confdefs.h.  */
5863
5864        #define wcstod renamed_wcstod
5865 #include <wchar.h>
5866 extern int zero (void);
5867 int main () { return zero(); }
5868
5869 _ACEOF
5870      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5871   (eval $ac_compile) 2>&5
5872   ac_status=$?
5873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5874   test $ac_status = 0; }; then
5875        mv conftest.$ac_objext conftest1.$ac_objext
5876        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h.  */
5878
5879          #define wcstod renamed_wcstod
5880 #include <wchar.h>
5881 int zero (void) { return 0; }
5882
5883 _ACEOF
5884        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5885   (eval $ac_compile) 2>&5
5886   ac_status=$?
5887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5888   test $ac_status = 0; }; then
5889          mv conftest.$ac_objext conftest2.$ac_objext
5890          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5891            :
5892          else
5893            gl_cv_header_wchar_h_correct_inline=no
5894          fi
5895        fi
5896      fi
5897      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5898
5899 fi
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5901 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5902   if test $gl_cv_header_wchar_h_correct_inline = no; then
5903     as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5904 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5905 C99 mode. You have four options:
5906   - Add the flag -fgnu89-inline to CC and reconfigure, or
5907   - Fix your include files, using parts of
5908     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5909   - Use a gcc version older than 4.3, or
5910   - Don't use the flags -std=c99 or -std=gnu99.
5911 Configuration aborted." "$LINENO" 5
5912   fi
5913
5914
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5916 $as_echo_n "checking for wint_t... " >&6; }
5917 if test "${gt_cv_c_wint_t+set}" = set; then :
5918   $as_echo_n "(cached) " >&6
5919 else
5920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h.  */
5922
5923 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5924    <wchar.h>.
5925    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5926    before <wchar.h>.  */
5927 #include <stddef.h>
5928 #include <stdio.h>
5929 #include <time.h>
5930 #include <wchar.h>
5931        wint_t foo = (wchar_t)'\0';
5932 int
5933 main ()
5934 {
5935
5936   ;
5937   return 0;
5938 }
5939 _ACEOF
5940 if ac_fn_c_try_compile "$LINENO"; then :
5941   gt_cv_c_wint_t=yes
5942 else
5943   gt_cv_c_wint_t=no
5944 fi
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5948 $as_echo "$gt_cv_c_wint_t" >&6; }
5949   if test $gt_cv_c_wint_t = yes; then
5950
5951 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5952
5953   fi
5954
5955
5956    if false; then
5957   GL_COND_LIBTOOL_TRUE=
5958   GL_COND_LIBTOOL_FALSE='#'
5959 else
5960   GL_COND_LIBTOOL_TRUE='#'
5961   GL_COND_LIBTOOL_FALSE=
5962 fi
5963
5964   gl_cond_libtool=false
5965   gl_libdeps=
5966   gl_ltlibdeps=
5967   gl_m4_base='gnulib/m4'
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977   gl_source_base='gnulib'
5978   # Code from module arg-nonnull:
5979   # Code from module c++defs:
5980   # Code from module extensions:
5981   # Code from module include_next:
5982   # Code from module memchr:
5983
5984
5985
5986
5987   GNULIB_MEMCHR=1
5988
5989
5990
5991 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
5992
5993
5994
5995   # Code from module memmem:
5996
5997
5998   if test $ac_cv_have_decl_memmem = yes; then
5999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6000 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6001 if test "${gl_cv_func_memmem_works+set}" = set; then :
6002   $as_echo_n "(cached) " >&6
6003 else
6004   if test "$cross_compiling" = yes; then :
6005                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6006 /* end confdefs.h.  */
6007
6008 #include <features.h>
6009 #ifdef __GNU_LIBRARY__
6010  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6011   Lucky user
6012  #endif
6013 #endif
6014 #ifdef __CYGWIN__
6015  #include <cygwin/version.h>
6016  #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6017   Lucky user
6018  #endif
6019 #endif
6020
6021 _ACEOF
6022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023   $EGREP "Lucky user" >/dev/null 2>&1; then :
6024   gl_cv_func_memmem_works=yes
6025 else
6026   gl_cv_func_memmem_works="guessing no"
6027 fi
6028 rm -f conftest*
6029
6030
6031 else
6032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h.  */
6034
6035 #include <signal.h> /* for signal */
6036 #include <string.h> /* for memmem */
6037 #include <stdlib.h> /* for malloc */
6038 #include <unistd.h> /* for alarm */
6039
6040 int
6041 main ()
6042 {
6043 size_t m = 1000000;
6044     char *haystack = (char *) malloc (2 * m + 1);
6045     char *needle = (char *) malloc (m + 1);
6046     void *result = 0;
6047     /* Failure to compile this test due to missing alarm is okay,
6048        since all such platforms (mingw) also lack memmem.  */
6049     signal (SIGALRM, SIG_DFL);
6050     alarm (5);
6051     /* Check for quadratic performance.  */
6052     if (haystack && needle)
6053       {
6054         memset (haystack, 'A', 2 * m);
6055         haystack[2 * m] = 'B';
6056         memset (needle, 'A', m);
6057         needle[m] = 'B';
6058         result = memmem (haystack, 2 * m + 1, needle, m + 1);
6059       }
6060     /* Check for empty needle behavior.  */
6061     return !result || !memmem ("a", 1, 0, 0);
6062   ;
6063   return 0;
6064 }
6065 _ACEOF
6066 if ac_fn_c_try_run "$LINENO"; then :
6067   gl_cv_func_memmem_works=yes
6068 else
6069   gl_cv_func_memmem_works=no
6070 fi
6071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6072   conftest.$ac_objext conftest.beam conftest.$ac_ext
6073 fi
6074
6075
6076 fi
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6078 $as_echo "$gl_cv_func_memmem_works" >&6; }
6079     if test "$gl_cv_func_memmem_works" != yes; then
6080       REPLACE_MEMMEM=1
6081
6082
6083
6084
6085
6086
6087
6088
6089   gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6090
6091     fi
6092   fi
6093
6094   # Code from module memmem-simple:
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107   for ac_func in memmem
6108 do :
6109   ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6110 if test "x$ac_cv_func_memmem" = x""yes; then :
6111   cat >>confdefs.h <<_ACEOF
6112 #define HAVE_MEMMEM 1
6113 _ACEOF
6114
6115 else
6116
6117     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6118
6119 fi
6120 done
6121
6122
6123
6124   :
6125
6126
6127
6128
6129
6130   if test $ac_cv_have_decl_memmem = no; then
6131     HAVE_DECL_MEMMEM=0
6132   fi
6133   :
6134
6135
6136
6137
6138   GNULIB_MEMMEM=1
6139
6140
6141
6142 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6143
6144
6145
6146   # Code from module multiarch:
6147
6148   # Code from module stddef:
6149
6150
6151
6152   if test $gt_cv_c_wchar_t = no; then
6153     HAVE_WCHAR_T=0
6154     STDDEF_H=stddef.h
6155   fi
6156   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6157 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6158 if test "${gl_cv_decl_null_works+set}" = set; then :
6159   $as_echo_n "(cached) " >&6
6160 else
6161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h.  */
6163 #include <stddef.h>
6164       int test[2 * (sizeof NULL == sizeof (void *)) -1];
6165
6166 int
6167 main ()
6168 {
6169
6170   ;
6171   return 0;
6172 }
6173 _ACEOF
6174 if ac_fn_c_try_compile "$LINENO"; then :
6175   gl_cv_decl_null_works=yes
6176 else
6177   gl_cv_decl_null_works=no
6178 fi
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6182 $as_echo "$gl_cv_decl_null_works" >&6; }
6183   if test $gl_cv_decl_null_works = no; then
6184     REPLACE_NULL=1
6185     STDDEF_H=stddef.h
6186   fi
6187   if test -n "$STDDEF_H"; then
6188
6189
6190
6191
6192   :
6193
6194
6195
6196
6197
6198
6199
6200      if test $gl_cv_have_include_next = yes; then
6201        gl_cv_next_stddef_h='<'stddef.h'>'
6202      else
6203        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6204 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6205 if test "${gl_cv_next_stddef_h+set}" = set; then :
6206   $as_echo_n "(cached) " >&6
6207 else
6208
6209           if test $ac_cv_header_stddef_h = yes; then
6210             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h.  */
6212 #include <stddef.h>
6213
6214 _ACEOF
6215                                                                                                 case "$host_os" in
6216               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6217               *)    gl_absname_cpp="$ac_cpp" ;;
6218             esac
6219                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6220                sed -n '\#/stddef.h#{
6221                  s#.*"\(.*/stddef.h\)".*#\1#
6222                  s#^/[^/]#//&#
6223                  p
6224                  q
6225                }'`'"'
6226           else
6227             gl_cv_next_stddef_h='<'stddef.h'>'
6228           fi
6229
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6232 $as_echo "$gl_cv_next_stddef_h" >&6; }
6233      fi
6234      NEXT_STDDEF_H=$gl_cv_next_stddef_h
6235
6236      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6237        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6238        gl_next_as_first_directive='<'stddef.h'>'
6239      else
6240        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6241        gl_next_as_first_directive=$gl_cv_next_stddef_h
6242      fi
6243      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6244
6245
6246
6247   fi
6248
6249   # Code from module stdint:
6250
6251
6252
6253   if test $ac_cv_type_long_long_int = yes; then
6254     HAVE_LONG_LONG_INT=1
6255   else
6256     HAVE_LONG_LONG_INT=0
6257   fi
6258
6259
6260   if test $ac_cv_type_unsigned_long_long_int = yes; then
6261     HAVE_UNSIGNED_LONG_LONG_INT=1
6262   else
6263     HAVE_UNSIGNED_LONG_LONG_INT=0
6264   fi
6265
6266
6267       if test $ac_cv_header_inttypes_h = yes; then
6268     HAVE_INTTYPES_H=1
6269   else
6270     HAVE_INTTYPES_H=0
6271   fi
6272
6273
6274       if test $ac_cv_header_sys_types_h = yes; then
6275     HAVE_SYS_TYPES_H=1
6276   else
6277     HAVE_SYS_TYPES_H=0
6278   fi
6279
6280
6281
6282
6283
6284
6285   :
6286
6287
6288
6289
6290
6291
6292
6293      if test $gl_cv_have_include_next = yes; then
6294        gl_cv_next_stdint_h='<'stdint.h'>'
6295      else
6296        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6297 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6298 if test "${gl_cv_next_stdint_h+set}" = set; then :
6299   $as_echo_n "(cached) " >&6
6300 else
6301
6302           if test $ac_cv_header_stdint_h = yes; then
6303             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h.  */
6305 #include <stdint.h>
6306
6307 _ACEOF
6308                                                                                                 case "$host_os" in
6309               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6310               *)    gl_absname_cpp="$ac_cpp" ;;
6311             esac
6312                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6313                sed -n '\#/stdint.h#{
6314                  s#.*"\(.*/stdint.h\)".*#\1#
6315                  s#^/[^/]#//&#
6316                  p
6317                  q
6318                }'`'"'
6319           else
6320             gl_cv_next_stdint_h='<'stdint.h'>'
6321           fi
6322
6323 fi
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6325 $as_echo "$gl_cv_next_stdint_h" >&6; }
6326      fi
6327      NEXT_STDINT_H=$gl_cv_next_stdint_h
6328
6329      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6330        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6331        gl_next_as_first_directive='<'stdint.h'>'
6332      else
6333        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6334        gl_next_as_first_directive=$gl_cv_next_stdint_h
6335      fi
6336      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6337
6338
6339
6340   if test $ac_cv_header_stdint_h = yes; then
6341     HAVE_STDINT_H=1
6342   else
6343     HAVE_STDINT_H=0
6344   fi
6345
6346
6347     if test $ac_cv_header_stdint_h = yes; then
6348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6349 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6350 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353   gl_cv_header_working_stdint_h=no
6354        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h.  */
6356
6357
6358 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6359 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6360 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6361 #include <stdint.h>
6362 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
6363 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6364 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6365 #endif
6366
6367
6368   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6369      included before <wchar.h>.  */
6370   #include <stddef.h>
6371   #include <signal.h>
6372   #if HAVE_WCHAR_H
6373   # include <stdio.h>
6374   # include <time.h>
6375   # include <wchar.h>
6376   #endif
6377
6378
6379 #ifdef INT8_MAX
6380 int8_t a1 = INT8_MAX;
6381 int8_t a1min = INT8_MIN;
6382 #endif
6383 #ifdef INT16_MAX
6384 int16_t a2 = INT16_MAX;
6385 int16_t a2min = INT16_MIN;
6386 #endif
6387 #ifdef INT32_MAX
6388 int32_t a3 = INT32_MAX;
6389 int32_t a3min = INT32_MIN;
6390 #endif
6391 #ifdef INT64_MAX
6392 int64_t a4 = INT64_MAX;
6393 int64_t a4min = INT64_MIN;
6394 #endif
6395 #ifdef UINT8_MAX
6396 uint8_t b1 = UINT8_MAX;
6397 #else
6398 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6399 #endif
6400 #ifdef UINT16_MAX
6401 uint16_t b2 = UINT16_MAX;
6402 #endif
6403 #ifdef UINT32_MAX
6404 uint32_t b3 = UINT32_MAX;
6405 #endif
6406 #ifdef UINT64_MAX
6407 uint64_t b4 = UINT64_MAX;
6408 #endif
6409 int_least8_t c1 = INT8_C (0x7f);
6410 int_least8_t c1max = INT_LEAST8_MAX;
6411 int_least8_t c1min = INT_LEAST8_MIN;
6412 int_least16_t c2 = INT16_C (0x7fff);
6413 int_least16_t c2max = INT_LEAST16_MAX;
6414 int_least16_t c2min = INT_LEAST16_MIN;
6415 int_least32_t c3 = INT32_C (0x7fffffff);
6416 int_least32_t c3max = INT_LEAST32_MAX;
6417 int_least32_t c3min = INT_LEAST32_MIN;
6418 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6419 int_least64_t c4max = INT_LEAST64_MAX;
6420 int_least64_t c4min = INT_LEAST64_MIN;
6421 uint_least8_t d1 = UINT8_C (0xff);
6422 uint_least8_t d1max = UINT_LEAST8_MAX;
6423 uint_least16_t d2 = UINT16_C (0xffff);
6424 uint_least16_t d2max = UINT_LEAST16_MAX;
6425 uint_least32_t d3 = UINT32_C (0xffffffff);
6426 uint_least32_t d3max = UINT_LEAST32_MAX;
6427 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6428 uint_least64_t d4max = UINT_LEAST64_MAX;
6429 int_fast8_t e1 = INT_FAST8_MAX;
6430 int_fast8_t e1min = INT_FAST8_MIN;
6431 int_fast16_t e2 = INT_FAST16_MAX;
6432 int_fast16_t e2min = INT_FAST16_MIN;
6433 int_fast32_t e3 = INT_FAST32_MAX;
6434 int_fast32_t e3min = INT_FAST32_MIN;
6435 int_fast64_t e4 = INT_FAST64_MAX;
6436 int_fast64_t e4min = INT_FAST64_MIN;
6437 uint_fast8_t f1 = UINT_FAST8_MAX;
6438 uint_fast16_t f2 = UINT_FAST16_MAX;
6439 uint_fast32_t f3 = UINT_FAST32_MAX;
6440 uint_fast64_t f4 = UINT_FAST64_MAX;
6441 #ifdef INTPTR_MAX
6442 intptr_t g = INTPTR_MAX;
6443 intptr_t gmin = INTPTR_MIN;
6444 #endif
6445 #ifdef UINTPTR_MAX
6446 uintptr_t h = UINTPTR_MAX;
6447 #endif
6448 intmax_t i = INTMAX_MAX;
6449 uintmax_t j = UINTMAX_MAX;
6450
6451 #include <limits.h> /* for CHAR_BIT */
6452 #define TYPE_MINIMUM(t) \
6453   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6454 #define TYPE_MAXIMUM(t) \
6455   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6456 struct s {
6457   int check_PTRDIFF:
6458       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6459       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6460       ? 1 : -1;
6461   /* Detect bug in FreeBSD 6.0 / ia64.  */
6462   int check_SIG_ATOMIC:
6463       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6464       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6465       ? 1 : -1;
6466   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6467   int check_WCHAR:
6468       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6469       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6470       ? 1 : -1;
6471   /* Detect bug in mingw.  */
6472   int check_WINT:
6473       WINT_MIN == TYPE_MINIMUM (wint_t)
6474       && WINT_MAX == TYPE_MAXIMUM (wint_t)
6475       ? 1 : -1;
6476
6477   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
6478   int check_UINT8_C:
6479         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6480   int check_UINT16_C:
6481         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6482
6483   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
6484 #ifdef UINT8_MAX
6485   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6486 #endif
6487 #ifdef UINT16_MAX
6488   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6489 #endif
6490 #ifdef UINT32_MAX
6491   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6492 #endif
6493 #ifdef UINT64_MAX
6494   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6495 #endif
6496   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6497   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6498   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6499   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6500   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6501   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6502   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6503   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6504   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6505   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6506   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6507 };
6508
6509 int
6510 main ()
6511 {
6512
6513   ;
6514   return 0;
6515 }
6516 _ACEOF
6517 if ac_fn_c_try_compile "$LINENO"; then :
6518                                                     if test "$cross_compiling" = yes; then :
6519                  gl_cv_header_working_stdint_h=yes
6520
6521 else
6522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h.  */
6524
6525
6526 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6527 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6528 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6529 #include <stdint.h>
6530
6531
6532   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6533      included before <wchar.h>.  */
6534   #include <stddef.h>
6535   #include <signal.h>
6536   #if HAVE_WCHAR_H
6537   # include <stdio.h>
6538   # include <time.h>
6539   # include <wchar.h>
6540   #endif
6541
6542
6543 #include <stdio.h>
6544 #include <string.h>
6545 #define MVAL(macro) MVAL1(macro)
6546 #define MVAL1(expression) #expression
6547 static const char *macro_values[] =
6548   {
6549 #ifdef INT8_MAX
6550     MVAL (INT8_MAX),
6551 #endif
6552 #ifdef INT16_MAX
6553     MVAL (INT16_MAX),
6554 #endif
6555 #ifdef INT32_MAX
6556     MVAL (INT32_MAX),
6557 #endif
6558 #ifdef INT64_MAX
6559     MVAL (INT64_MAX),
6560 #endif
6561 #ifdef UINT8_MAX
6562     MVAL (UINT8_MAX),
6563 #endif
6564 #ifdef UINT16_MAX
6565     MVAL (UINT16_MAX),
6566 #endif
6567 #ifdef UINT32_MAX
6568     MVAL (UINT32_MAX),
6569 #endif
6570 #ifdef UINT64_MAX
6571     MVAL (UINT64_MAX),
6572 #endif
6573     NULL
6574   };
6575
6576 int
6577 main ()
6578 {
6579
6580   const char **mv;
6581   for (mv = macro_values; *mv != NULL; mv++)
6582     {
6583       const char *value = *mv;
6584       /* Test whether it looks like a cast expression.  */
6585       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6586           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6587           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6588           || strncmp (value, "((int)"/*)*/, 6) == 0
6589           || strncmp (value, "((signed short)"/*)*/, 15) == 0
6590           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6591         return 1;
6592     }
6593   return 0;
6594
6595   ;
6596   return 0;
6597 }
6598 _ACEOF
6599 if ac_fn_c_try_run "$LINENO"; then :
6600   gl_cv_header_working_stdint_h=yes
6601 fi
6602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6603   conftest.$ac_objext conftest.beam conftest.$ac_ext
6604 fi
6605
6606
6607 fi
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609
6610 fi
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6612 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6613   fi
6614   if test "$gl_cv_header_working_stdint_h" = yes; then
6615     STDINT_H=
6616   else
6617             for ac_header in sys/inttypes.h sys/bitypes.h
6618 do :
6619   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6620 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6621 eval as_val=\$$as_ac_Header
6622    if test "x$as_val" = x""yes; then :
6623   cat >>confdefs.h <<_ACEOF
6624 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6625 _ACEOF
6626
6627 fi
6628
6629 done
6630
6631     if test $ac_cv_header_sys_inttypes_h = yes; then
6632       HAVE_SYS_INTTYPES_H=1
6633     else
6634       HAVE_SYS_INTTYPES_H=0
6635     fi
6636
6637     if test $ac_cv_header_sys_bitypes_h = yes; then
6638       HAVE_SYS_BITYPES_H=1
6639     else
6640       HAVE_SYS_BITYPES_H=0
6641     fi
6642
6643
6644
6645   :
6646
6647
6648
6649
6650
6651
6652
6653
6654   if test $APPLE_UNIVERSAL_BUILD = 0; then
6655
6656
6657   for gltype in ptrdiff_t size_t ; do
6658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6659 $as_echo_n "checking for bit size of $gltype... " >&6; }
6660 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6661   $as_echo_n "(cached) " >&6
6662 else
6663   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6664   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6665      included before <wchar.h>.  */
6666   #include <stddef.h>
6667   #include <signal.h>
6668   #if HAVE_WCHAR_H
6669   # include <stdio.h>
6670   # include <time.h>
6671   # include <wchar.h>
6672   #endif
6673
6674 #include <limits.h>"; then :
6675
6676 else
6677   result=unknown
6678 fi
6679
6680        eval gl_cv_bitsizeof_${gltype}=\$result
6681
6682 fi
6683 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6684                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6685 $as_echo "$ac_res" >&6; }
6686     eval result=\$gl_cv_bitsizeof_${gltype}
6687     if test $result = unknown; then
6688                                                 result=0
6689     fi
6690     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6691     cat >>confdefs.h <<_ACEOF
6692 #define BITSIZEOF_${GLTYPE} $result
6693 _ACEOF
6694
6695     eval BITSIZEOF_${GLTYPE}=\$result
6696   done
6697
6698
6699   fi
6700
6701
6702   for gltype in sig_atomic_t wchar_t wint_t ; do
6703     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6704 $as_echo_n "checking for bit size of $gltype... " >&6; }
6705 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
6709   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6710      included before <wchar.h>.  */
6711   #include <stddef.h>
6712   #include <signal.h>
6713   #if HAVE_WCHAR_H
6714   # include <stdio.h>
6715   # include <time.h>
6716   # include <wchar.h>
6717   #endif
6718
6719 #include <limits.h>"; then :
6720
6721 else
6722   result=unknown
6723 fi
6724
6725        eval gl_cv_bitsizeof_${gltype}=\$result
6726
6727 fi
6728 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6729                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6730 $as_echo "$ac_res" >&6; }
6731     eval result=\$gl_cv_bitsizeof_${gltype}
6732     if test $result = unknown; then
6733                                                 result=0
6734     fi
6735     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6736     cat >>confdefs.h <<_ACEOF
6737 #define BITSIZEOF_${GLTYPE} $result
6738 _ACEOF
6739
6740     eval BITSIZEOF_${GLTYPE}=\$result
6741   done
6742
6743
6744
6745
6746   for gltype in sig_atomic_t wchar_t wint_t ; do
6747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6748 $as_echo_n "checking whether $gltype is signed... " >&6; }
6749 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6750   $as_echo_n "(cached) " >&6
6751 else
6752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h.  */
6754
6755   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6756      included before <wchar.h>.  */
6757   #include <stddef.h>
6758   #include <signal.h>
6759   #if HAVE_WCHAR_H
6760   # include <stdio.h>
6761   # include <time.h>
6762   # include <wchar.h>
6763   #endif
6764
6765             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6766 int
6767 main ()
6768 {
6769
6770   ;
6771   return 0;
6772 }
6773 _ACEOF
6774 if ac_fn_c_try_compile "$LINENO"; then :
6775   result=yes
6776 else
6777   result=no
6778 fi
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780        eval gl_cv_type_${gltype}_signed=\$result
6781
6782 fi
6783 eval ac_res=\$gl_cv_type_${gltype}_signed
6784                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6785 $as_echo "$ac_res" >&6; }
6786     eval result=\$gl_cv_type_${gltype}_signed
6787     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6788     if test "$result" = yes; then
6789       cat >>confdefs.h <<_ACEOF
6790 #define HAVE_SIGNED_${GLTYPE} 1
6791 _ACEOF
6792
6793       eval HAVE_SIGNED_${GLTYPE}=1
6794     else
6795       eval HAVE_SIGNED_${GLTYPE}=0
6796     fi
6797   done
6798
6799
6800   gl_cv_type_ptrdiff_t_signed=yes
6801   gl_cv_type_size_t_signed=no
6802   if test $APPLE_UNIVERSAL_BUILD = 0; then
6803
6804
6805   for gltype in ptrdiff_t size_t ; do
6806     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6807 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6808 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   eval gl_cv_type_${gltype}_suffix=no
6812        eval result=\$gl_cv_type_${gltype}_signed
6813        if test "$result" = yes; then
6814          glsufu=
6815        else
6816          glsufu=u
6817        fi
6818        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6819          case $glsuf in
6820            '')  gltype1='int';;
6821            l)   gltype1='long int';;
6822            ll)  gltype1='long long int';;
6823            i64) gltype1='__int64';;
6824            u)   gltype1='unsigned int';;
6825            ul)  gltype1='unsigned long int';;
6826            ull) gltype1='unsigned long long int';;
6827            ui64)gltype1='unsigned __int64';;
6828          esac
6829          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h.  */
6831
6832   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6833      included before <wchar.h>.  */
6834   #include <stddef.h>
6835   #include <signal.h>
6836   #if HAVE_WCHAR_H
6837   # include <stdio.h>
6838   # include <time.h>
6839   # include <wchar.h>
6840   #endif
6841
6842               extern $gltype foo;
6843               extern $gltype1 foo;
6844 int
6845 main ()
6846 {
6847
6848   ;
6849   return 0;
6850 }
6851 _ACEOF
6852 if ac_fn_c_try_compile "$LINENO"; then :
6853   eval gl_cv_type_${gltype}_suffix=\$glsuf
6854 fi
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856          eval result=\$gl_cv_type_${gltype}_suffix
6857          test "$result" != no && break
6858        done
6859 fi
6860 eval ac_res=\$gl_cv_type_${gltype}_suffix
6861                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6862 $as_echo "$ac_res" >&6; }
6863     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6864     eval result=\$gl_cv_type_${gltype}_suffix
6865     test "$result" = no && result=
6866     eval ${GLTYPE}_SUFFIX=\$result
6867     cat >>confdefs.h <<_ACEOF
6868 #define ${GLTYPE}_SUFFIX $result
6869 _ACEOF
6870
6871   done
6872
6873
6874   fi
6875
6876
6877   for gltype in sig_atomic_t wchar_t wint_t ; do
6878     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6879 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6880 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6881   $as_echo_n "(cached) " >&6
6882 else
6883   eval gl_cv_type_${gltype}_suffix=no
6884        eval result=\$gl_cv_type_${gltype}_signed
6885        if test "$result" = yes; then
6886          glsufu=
6887        else
6888          glsufu=u
6889        fi
6890        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6891          case $glsuf in
6892            '')  gltype1='int';;
6893            l)   gltype1='long int';;
6894            ll)  gltype1='long long int';;
6895            i64) gltype1='__int64';;
6896            u)   gltype1='unsigned int';;
6897            ul)  gltype1='unsigned long int';;
6898            ull) gltype1='unsigned long long int';;
6899            ui64)gltype1='unsigned __int64';;
6900          esac
6901          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h.  */
6903
6904   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6905      included before <wchar.h>.  */
6906   #include <stddef.h>
6907   #include <signal.h>
6908   #if HAVE_WCHAR_H
6909   # include <stdio.h>
6910   # include <time.h>
6911   # include <wchar.h>
6912   #endif
6913
6914               extern $gltype foo;
6915               extern $gltype1 foo;
6916 int
6917 main ()
6918 {
6919
6920   ;
6921   return 0;
6922 }
6923 _ACEOF
6924 if ac_fn_c_try_compile "$LINENO"; then :
6925   eval gl_cv_type_${gltype}_suffix=\$glsuf
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928          eval result=\$gl_cv_type_${gltype}_suffix
6929          test "$result" != no && break
6930        done
6931 fi
6932 eval ac_res=\$gl_cv_type_${gltype}_suffix
6933                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6934 $as_echo "$ac_res" >&6; }
6935     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6936     eval result=\$gl_cv_type_${gltype}_suffix
6937     test "$result" = no && result=
6938     eval ${GLTYPE}_SUFFIX=\$result
6939     cat >>confdefs.h <<_ACEOF
6940 #define ${GLTYPE}_SUFFIX $result
6941 _ACEOF
6942
6943   done
6944
6945
6946
6947     STDINT_H=stdint.h
6948   fi
6949
6950
6951   # Code from module string:
6952
6953
6954
6955   # Code from module warn-on-use:
6956   # Code from module wchar:
6957
6958
6959
6960
6961   :
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971   :
6972
6973
6974
6975
6976
6977
6978
6979      if test $gl_cv_have_include_next = yes; then
6980        gl_cv_next_wchar_h='<'wchar.h'>'
6981      else
6982        { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6983 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6984 if test "${gl_cv_next_wchar_h+set}" = set; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987
6988           if test $ac_cv_header_wchar_h = yes; then
6989             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h.  */
6991 #include <wchar.h>
6992
6993 _ACEOF
6994                                                                                                 case "$host_os" in
6995               aix*) gl_absname_cpp="$ac_cpp -C" ;;
6996               *)    gl_absname_cpp="$ac_cpp" ;;
6997             esac
6998                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6999                sed -n '\#/wchar.h#{
7000                  s#.*"\(.*/wchar.h\)".*#\1#
7001                  s#^/[^/]#//&#
7002                  p
7003                  q
7004                }'`'"'
7005           else
7006             gl_cv_next_wchar_h='<'wchar.h'>'
7007           fi
7008
7009 fi
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7011 $as_echo "$gl_cv_next_wchar_h" >&6; }
7012      fi
7013      NEXT_WCHAR_H=$gl_cv_next_wchar_h
7014
7015      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7016        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7017        gl_next_as_first_directive='<'wchar.h'>'
7018      else
7019        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7020        gl_next_as_first_directive=$gl_cv_next_wchar_h
7021      fi
7022      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7023
7024
7025
7026   if test $ac_cv_header_wchar_h = yes; then
7027     HAVE_WCHAR_H=1
7028   else
7029     HAVE_WCHAR_H=0
7030   fi
7031
7032
7033
7034   if test $gt_cv_c_wint_t = yes; then
7035     HAVE_WINT_T=1
7036   else
7037     HAVE_WINT_T=0
7038   fi
7039
7040
7041
7042     for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
7043     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7044     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7045 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7046 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h.  */
7051
7052 /* Some systems require additional headers.  */
7053 #ifndef __GLIBC__
7054 # include <stddef.h>
7055 # include <stdio.h>
7056 # include <time.h>
7057 #endif
7058 #include <wchar.h>
7059
7060 int
7061 main ()
7062 {
7063 #undef $gl_func
7064   (void) $gl_func;
7065   ;
7066   return 0;
7067 }
7068 _ACEOF
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070   eval "$as_gl_Symbol=yes"
7071 else
7072   eval "$as_gl_Symbol=no"
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 fi
7076 eval ac_res=\$$as_gl_Symbol
7077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7078 $as_echo "$ac_res" >&6; }
7079      eval as_val=\$$as_gl_Symbol
7080    if test "x$as_val" = x""yes; then :
7081   cat >>confdefs.h <<_ACEOF
7082 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7083 _ACEOF
7084
7085                      eval ac_cv_have_decl_$gl_func=yes
7086 fi
7087       done
7088
7089
7090   # Code from module dummy:
7091   # End of code from modules
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101   gltests_libdeps=
7102   gltests_ltlibdeps=
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112   gl_source_base='tests'
7113   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
7114
7115   gl_module_indicator_condition=$gltests_WITNESS
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125   LIBGNU_LIBDEPS="$gl_libdeps"
7126
7127   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7128
7129
7130
7131 # For Makefile dependencies.
7132 GNULIB_STDINT_H=
7133 if test x"$STDINT_H" != x; then
7134   GNULIB_STDINT_H=gnulib/$STDINT_H
7135 fi
7136
7137
7138 PACKAGE=gdb
7139
7140 cat >>confdefs.h <<_ACEOF
7141 #define PACKAGE "$PACKAGE"
7142 _ACEOF
7143
7144
7145
7146 # GDB does not use automake, but gnulib does.  This line lets us
7147 # generate its Makefile.in.
7148 am__api_version='1.11'
7149
7150 # Find a good install program.  We prefer a C program (faster),
7151 # so one script is as good as another.  But avoid the broken or
7152 # incompatible versions:
7153 # SysV /etc/install, /usr/sbin/install
7154 # SunOS /usr/etc/install
7155 # IRIX /sbin/install
7156 # AIX /bin/install
7157 # AmigaOS /C/install, which installs bootblocks on floppy discs
7158 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7159 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7160 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7161 # OS/2's system install, which has a completely different semantic
7162 # ./install, which can be erroneously created by make from ./install.sh.
7163 # Reject install programs that cannot install multiple files.
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7165 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7166 if test -z "$INSTALL"; then
7167 if test "${ac_cv_path_install+set}" = set; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175     # Account for people who put trailing slashes in PATH elements.
7176 case $as_dir/ in #((
7177   ./ | .// | /[cC]/* | \
7178   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7179   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7180   /usr/ucb/* ) ;;
7181   *)
7182     # OSF1 and SCO ODT 3.0 have their own names for install.
7183     # Don't use installbsd from OSF since it installs stuff as root
7184     # by default.
7185     for ac_prog in ginstall scoinst install; do
7186       for ac_exec_ext in '' $ac_executable_extensions; do
7187         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7188           if test $ac_prog = install &&
7189             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7190             # AIX install.  It has an incompatible calling convention.
7191             :
7192           elif test $ac_prog = install &&
7193             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7194             # program-specific install script used by HP pwplus--don't use.
7195             :
7196           else
7197             rm -rf conftest.one conftest.two conftest.dir
7198             echo one > conftest.one
7199             echo two > conftest.two
7200             mkdir conftest.dir
7201             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7202               test -s conftest.one && test -s conftest.two &&
7203               test -s conftest.dir/conftest.one &&
7204               test -s conftest.dir/conftest.two
7205             then
7206               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7207               break 3
7208             fi
7209           fi
7210         fi
7211       done
7212     done
7213     ;;
7214 esac
7215
7216   done
7217 IFS=$as_save_IFS
7218
7219 rm -rf conftest.one conftest.two conftest.dir
7220
7221 fi
7222   if test "${ac_cv_path_install+set}" = set; then
7223     INSTALL=$ac_cv_path_install
7224   else
7225     # As a last resort, use the slow shell script.  Don't cache a
7226     # value for INSTALL within a source directory, because that will
7227     # break other packages using the cache if that directory is
7228     # removed, or if the value is a relative name.
7229     INSTALL=$ac_install_sh
7230   fi
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7233 $as_echo "$INSTALL" >&6; }
7234
7235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7236 # It thinks the first close brace ends the variable substitution.
7237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7238
7239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7240
7241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7242
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7244 $as_echo_n "checking whether build environment is sane... " >&6; }
7245 # Just in case
7246 sleep 1
7247 echo timestamp > conftest.file
7248 # Reject unsafe characters in $srcdir or the absolute working directory
7249 # name.  Accept space and tab only in the latter.
7250 am_lf='
7251 '
7252 case `pwd` in
7253   *[\\\"\#\$\&\'\`$am_lf]*)
7254     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7255 esac
7256 case $srcdir in
7257   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
7258     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7259 esac
7260
7261 # Do `set' in a subshell so we don't clobber the current shell's
7262 # arguments.  Must try -L first in case configure is actually a
7263 # symlink; some systems play weird games with the mod time of symlinks
7264 # (eg FreeBSD returns the mod time of the symlink's containing
7265 # directory).
7266 if (
7267    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7268    if test "$*" = "X"; then
7269       # -L didn't work.
7270       set X `ls -t "$srcdir/configure" conftest.file`
7271    fi
7272    rm -f conftest.file
7273    if test "$*" != "X $srcdir/configure conftest.file" \
7274       && test "$*" != "X conftest.file $srcdir/configure"; then
7275
7276       # If neither matched, then we have a broken ls.  This can happen
7277       # if, for instance, CONFIG_SHELL is bash and it inherits a
7278       # broken ls alias from the environment.  This has actually
7279       # happened.  Such a system could not be considered "sane".
7280       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
7281 alias in your environment" "$LINENO" 5
7282    fi
7283
7284    test "$2" = conftest.file
7285    )
7286 then
7287    # Ok.
7288    :
7289 else
7290    as_fn_error "newly created file is older than distributed files!
7291 Check your system clock" "$LINENO" 5
7292 fi
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7294 $as_echo "yes" >&6; }
7295 test "$program_prefix" != NONE &&
7296   program_transform_name="s&^&$program_prefix&;$program_transform_name"
7297 # Use a double $ so make ignores it.
7298 test "$program_suffix" != NONE &&
7299   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7300 # Double any \ or $.
7301 # By default was `s,x,x', remove it if useless.
7302 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7303 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7304
7305 # expand $ac_aux_dir to an absolute path
7306 am_aux_dir=`cd $ac_aux_dir && pwd`
7307
7308 if test x"${MISSING+set}" != xset; then
7309   case $am_aux_dir in
7310   *\ * | *\     *)
7311     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7312   *)
7313     MISSING="\${SHELL} $am_aux_dir/missing" ;;
7314   esac
7315 fi
7316 # Use eval to expand $SHELL
7317 if eval "$MISSING --run true"; then
7318   am_missing_run="$MISSING --run "
7319 else
7320   am_missing_run=
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7322 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7323 fi
7324
7325 if test x"${install_sh}" != xset; then
7326   case $am_aux_dir in
7327   *\ * | *\     *)
7328     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7329   *)
7330     install_sh="\${SHELL} $am_aux_dir/install-sh"
7331   esac
7332 fi
7333
7334 # Installed binaries are usually stripped using `strip' when the user
7335 # run `make install-strip'.  However `strip' might not be the right
7336 # tool to use in cross-compilation environments, therefore Automake
7337 # will honor the `STRIP' environment variable to overrule this program.
7338 if test "$cross_compiling" != no; then
7339   if test -n "$ac_tool_prefix"; then
7340   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}strip; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if test "${ac_cv_prog_STRIP+set}" = set; then :
7345   $as_echo_n "(cached) " >&6
7346 else
7347   if test -n "$STRIP"; then
7348   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353   IFS=$as_save_IFS
7354   test -z "$as_dir" && as_dir=.
7355     for ac_exec_ext in '' $ac_executable_extensions; do
7356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359     break 2
7360   fi
7361 done
7362   done
7363 IFS=$as_save_IFS
7364
7365 fi
7366 fi
7367 STRIP=$ac_cv_prog_STRIP
7368 if test -n "$STRIP"; then
7369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7370 $as_echo "$STRIP" >&6; }
7371 else
7372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7374 fi
7375
7376
7377 fi
7378 if test -z "$ac_cv_prog_STRIP"; then
7379   ac_ct_STRIP=$STRIP
7380   # Extract the first word of "strip", so it can be a program name with args.
7381 set dummy strip; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   if test -n "$ac_ct_STRIP"; then
7388   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393   IFS=$as_save_IFS
7394   test -z "$as_dir" && as_dir=.
7395     for ac_exec_ext in '' $ac_executable_extensions; do
7396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397     ac_cv_prog_ac_ct_STRIP="strip"
7398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399     break 2
7400   fi
7401 done
7402   done
7403 IFS=$as_save_IFS
7404
7405 fi
7406 fi
7407 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7408 if test -n "$ac_ct_STRIP"; then
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7410 $as_echo "$ac_ct_STRIP" >&6; }
7411 else
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414 fi
7415
7416   if test "x$ac_ct_STRIP" = x; then
7417     STRIP=":"
7418   else
7419     case $cross_compiling:$ac_tool_warned in
7420 yes:)
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7423 ac_tool_warned=yes ;;
7424 esac
7425     STRIP=$ac_ct_STRIP
7426   fi
7427 else
7428   STRIP="$ac_cv_prog_STRIP"
7429 fi
7430
7431 fi
7432 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7435 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7436 if test -z "$MKDIR_P"; then
7437   if test "${ac_cv_path_mkdir+set}" = set; then :
7438   $as_echo_n "(cached) " >&6
7439 else
7440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7442 do
7443   IFS=$as_save_IFS
7444   test -z "$as_dir" && as_dir=.
7445     for ac_prog in mkdir gmkdir; do
7446          for ac_exec_ext in '' $ac_executable_extensions; do
7447            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7448            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7449              'mkdir (GNU coreutils) '* | \
7450              'mkdir (coreutils) '* | \
7451              'mkdir (fileutils) '4.1*)
7452                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7453                break 3;;
7454            esac
7455          done
7456        done
7457   done
7458 IFS=$as_save_IFS
7459
7460 fi
7461
7462   if test "${ac_cv_path_mkdir+set}" = set; then
7463     MKDIR_P="$ac_cv_path_mkdir -p"
7464   else
7465     # As a last resort, use the slow shell script.  Don't cache a
7466     # value for MKDIR_P within a source directory, because that will
7467     # break other packages using the cache if that directory is
7468     # removed, or if the value is a relative name.
7469     test -d ./--version && rmdir ./--version
7470     MKDIR_P="$ac_install_sh -d"
7471   fi
7472 fi
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7474 $as_echo "$MKDIR_P" >&6; }
7475
7476
7477 mkdir_p="$MKDIR_P"
7478 case $mkdir_p in
7479   [\\/$]* | ?:[\\/]*) ;;
7480   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7481 esac
7482
7483 for ac_prog in gawk mawk nawk awk
7484 do
7485   # Extract the first word of "$ac_prog", so it can be a program name with args.
7486 set dummy $ac_prog; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if test "${ac_cv_prog_AWK+set}" = set; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   if test -n "$AWK"; then
7493   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500     for ac_exec_ext in '' $ac_executable_extensions; do
7501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502     ac_cv_prog_AWK="$ac_prog"
7503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507   done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 AWK=$ac_cv_prog_AWK
7513 if test -n "$AWK"; then
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7515 $as_echo "$AWK" >&6; }
7516 else
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521
7522   test -n "$AWK" && break
7523 done
7524
7525 ac_config_commands="$ac_config_commands depfiles"
7526
7527
7528 am_make=${MAKE-make}
7529 cat > confinc << 'END'
7530 am__doit:
7531         @echo this is the am__doit target
7532 .PHONY: am__doit
7533 END
7534 # If we don't find an include directive, just comment out the code.
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7536 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7537 am__include="#"
7538 am__quote=
7539 _am_result=none
7540 # First try GNU make style include.
7541 echo "include confinc" > confmf
7542 # Ignore all kinds of additional output from `make'.
7543 case `$am_make -s -f confmf 2> /dev/null` in #(
7544 *the\ am__doit\ target*)
7545   am__include=include
7546   am__quote=
7547   _am_result=GNU
7548   ;;
7549 esac
7550 # Now try BSD make style include.
7551 if test "$am__include" = "#"; then
7552    echo '.include "confinc"' > confmf
7553    case `$am_make -s -f confmf 2> /dev/null` in #(
7554    *the\ am__doit\ target*)
7555      am__include=.include
7556      am__quote="\""
7557      _am_result=BSD
7558      ;;
7559    esac
7560 fi
7561
7562
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7564 $as_echo "$_am_result" >&6; }
7565 rm -f confinc confmf
7566
7567 # Check whether --enable-dependency-tracking was given.
7568 if test "${enable_dependency_tracking+set}" = set; then :
7569   enableval=$enable_dependency_tracking;
7570 fi
7571
7572 if test "x$enable_dependency_tracking" != xno; then
7573   am_depcomp="$ac_aux_dir/depcomp"
7574   AMDEPBACKSLASH='\'
7575 fi
7576  if test "x$enable_dependency_tracking" != xno; then
7577   AMDEP_TRUE=
7578   AMDEP_FALSE='#'
7579 else
7580   AMDEP_TRUE='#'
7581   AMDEP_FALSE=
7582 fi
7583
7584
7585 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7586   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7587   # is not polluted with repeated "-I."
7588   am__isrc=' -I$(srcdir)'
7589   # test to see if srcdir already configured
7590   if test -f $srcdir/config.status; then
7591     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7592   fi
7593 fi
7594
7595 # test whether we have cygpath
7596 if test -z "$CYGPATH_W"; then
7597   if (cygpath --version) >/dev/null 2>/dev/null; then
7598     CYGPATH_W='cygpath -w'
7599   else
7600     CYGPATH_W=echo
7601   fi
7602 fi
7603
7604
7605 # Define the identity of the package.
7606  PACKAGE=gdb
7607  VERSION=UNUSED-VERSION
7608
7609
7610 # Some tools Automake needs.
7611
7612 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7613
7614
7615 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7616
7617
7618 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7619
7620
7621 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7622
7623
7624 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7625
7626 # We need awk for the "check" target.  The system "awk" is bad on
7627 # some platforms.
7628 # Always define AMTAR for backward compatibility.
7629
7630 AMTAR=${AMTAR-"${am_missing_run}tar"}
7631
7632 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7633
7634
7635
7636
7637 depcc="$CC"   am_compiler_list=
7638
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7640 $as_echo_n "checking dependency style of $depcc... " >&6; }
7641 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7642   $as_echo_n "(cached) " >&6
7643 else
7644   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7645   # We make a subdir and do the tests there.  Otherwise we can end up
7646   # making bogus files that we don't know about and never remove.  For
7647   # instance it was reported that on HP-UX the gcc test will end up
7648   # making a dummy file named `D' -- because `-MD' means `put the output
7649   # in D'.
7650   mkdir conftest.dir
7651   # Copy depcomp to subdir because otherwise we won't find it if we're
7652   # using a relative directory.
7653   cp "$am_depcomp" conftest.dir
7654   cd conftest.dir
7655   # We will build objects and dependencies in a subdirectory because
7656   # it helps to detect inapplicable dependency modes.  For instance
7657   # both Tru64's cc and ICC support -MD to output dependencies as a
7658   # side effect of compilation, but ICC will put the dependencies in
7659   # the current directory while Tru64 will put them in the object
7660   # directory.
7661   mkdir sub
7662
7663   am_cv_CC_dependencies_compiler_type=none
7664   if test "$am_compiler_list" = ""; then
7665      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7666   fi
7667   am__universal=false
7668   case " $depcc " in #(
7669      *\ -arch\ *\ -arch\ *) am__universal=true ;;
7670      esac
7671
7672   for depmode in $am_compiler_list; do
7673     # Setup a source with many dependencies, because some compilers
7674     # like to wrap large dependency lists on column 80 (with \), and
7675     # we should not choose a depcomp mode which is confused by this.
7676     #
7677     # We need to recreate these files for each test, as the compiler may
7678     # overwrite some of them when testing with obscure command lines.
7679     # This happens at least with the AIX C compiler.
7680     : > sub/conftest.c
7681     for i in 1 2 3 4 5 6; do
7682       echo '#include "conftst'$i'.h"' >> sub/conftest.c
7683       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7684       # Solaris 8's {/usr,}/bin/sh.
7685       touch sub/conftst$i.h
7686     done
7687     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7688
7689     # We check with `-c' and `-o' for the sake of the "dashmstdout"
7690     # mode.  It turns out that the SunPro C++ compiler does not properly
7691     # handle `-M -o', and we need to detect this.  Also, some Intel
7692     # versions had trouble with output in subdirs
7693     am__obj=sub/conftest.${OBJEXT-o}
7694     am__minus_obj="-o $am__obj"
7695     case $depmode in
7696     gcc)
7697       # This depmode causes a compiler race in universal mode.
7698       test "$am__universal" = false || continue
7699       ;;
7700     nosideeffect)
7701       # after this tag, mechanisms are not by side-effect, so they'll
7702       # only be used when explicitly requested
7703       if test "x$enable_dependency_tracking" = xyes; then
7704         continue
7705       else
7706         break
7707       fi
7708       ;;
7709     msvisualcpp | msvcmsys)
7710       # This compiler won't grok `-c -o', but also, the minuso test has
7711       # not run yet.  These depmodes are late enough in the game, and
7712       # so weak that their functioning should not be impacted.
7713       am__obj=conftest.${OBJEXT-o}
7714       am__minus_obj=
7715       ;;
7716     none) break ;;
7717     esac
7718     if depmode=$depmode \
7719        source=sub/conftest.c object=$am__obj \
7720        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7721        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7722          >/dev/null 2>conftest.err &&
7723        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7724        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7725        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7726        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7727       # icc doesn't choke on unknown options, it will just issue warnings
7728       # or remarks (even with -Werror).  So we grep stderr for any message
7729       # that says an option was ignored or not supported.
7730       # When given -MP, icc 7.0 and 7.1 complain thusly:
7731       #   icc: Command line warning: ignoring option '-M'; no argument required
7732       # The diagnosis changed in icc 8.0:
7733       #   icc: Command line remark: option '-MP' not supported
7734       if (grep 'ignoring option' conftest.err ||
7735           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7736         am_cv_CC_dependencies_compiler_type=$depmode
7737         break
7738       fi
7739     fi
7740   done
7741
7742   cd ..
7743   rm -rf conftest.dir
7744 else
7745   am_cv_CC_dependencies_compiler_type=none
7746 fi
7747
7748 fi
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7750 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7751 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7752
7753  if
7754   test "x$enable_dependency_tracking" != xno \
7755   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7756   am__fastdepCC_TRUE=
7757   am__fastdepCC_FALSE='#'
7758 else
7759   am__fastdepCC_TRUE='#'
7760   am__fastdepCC_FALSE=
7761 fi
7762
7763
7764
7765
7766
7767
7768 # Check whether --with-separate-debug-dir was given.
7769 if test "${with_separate_debug_dir+set}" = set; then :
7770   withval=$with_separate_debug_dir;
7771     DEBUGDIR=$withval
7772 else
7773   DEBUGDIR=${libdir}/debug
7774 fi
7775
7776
7777   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7778   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7779   ac_define_dir=`eval echo $DEBUGDIR`
7780   ac_define_dir=`eval echo $ac_define_dir`
7781
7782 cat >>confdefs.h <<_ACEOF
7783 #define DEBUGDIR "$ac_define_dir"
7784 _ACEOF
7785
7786
7787
7788
7789   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7790      if test "x$prefix" = xNONE; then
7791         test_prefix=/usr/local
7792      else
7793         test_prefix=$prefix
7794      fi
7795   else
7796      test_prefix=$exec_prefix
7797   fi
7798   value=0
7799   case ${ac_define_dir} in
7800      "${test_prefix}"|"${test_prefix}/"*|\
7801         '${exec_prefix}'|'${exec_prefix}/'*)
7802      value=1
7803      ;;
7804   esac
7805
7806 cat >>confdefs.h <<_ACEOF
7807 #define DEBUGDIR_RELOCATABLE $value
7808 _ACEOF
7809
7810
7811
7812
7813 # GDB's datadir relocation
7814
7815
7816
7817 # Check whether --with-gdb-datadir was given.
7818 if test "${with_gdb_datadir+set}" = set; then :
7819   withval=$with_gdb_datadir;
7820     GDB_DATADIR=$withval
7821 else
7822   GDB_DATADIR=${datadir}/gdb
7823 fi
7824
7825
7826   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7827   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7828   ac_define_dir=`eval echo $GDB_DATADIR`
7829   ac_define_dir=`eval echo $ac_define_dir`
7830
7831 cat >>confdefs.h <<_ACEOF
7832 #define GDB_DATADIR "$ac_define_dir"
7833 _ACEOF
7834
7835
7836
7837
7838   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7839      if test "x$prefix" = xNONE; then
7840         test_prefix=/usr/local
7841      else
7842         test_prefix=$prefix
7843      fi
7844   else
7845      test_prefix=$exec_prefix
7846   fi
7847   value=0
7848   case ${ac_define_dir} in
7849      "${test_prefix}"|"${test_prefix}/"*|\
7850         '${exec_prefix}'|'${exec_prefix}/'*)
7851      value=1
7852      ;;
7853   esac
7854
7855 cat >>confdefs.h <<_ACEOF
7856 #define GDB_DATADIR_RELOCATABLE $value
7857 _ACEOF
7858
7859
7860
7861
7862
7863 # Check whether --with-relocated-sources was given.
7864 if test "${with_relocated_sources+set}" = set; then :
7865   withval=$with_relocated_sources; reloc_srcdir="${withval}"
7866
7867   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7868   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7869   ac_define_dir=`eval echo $reloc_srcdir`
7870   ac_define_dir=`eval echo $ac_define_dir`
7871
7872 cat >>confdefs.h <<_ACEOF
7873 #define RELOC_SRCDIR "$ac_define_dir"
7874 _ACEOF
7875
7876
7877
7878 fi
7879
7880
7881
7882
7883 subdirs="$subdirs doc testsuite"
7884
7885
7886 # Check whether to support alternative target configurations
7887 # Check whether --enable-targets was given.
7888 if test "${enable_targets+set}" = set; then :
7889   enableval=$enable_targets; case "${enableval}" in
7890   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7891             ;;
7892   no)       enable_targets= ;;
7893   *)        enable_targets=$enableval ;;
7894 esac
7895 fi
7896
7897
7898 # Check whether to enable 64-bit support on 32-bit hosts
7899 # Check whether --enable-64-bit-bfd was given.
7900 if test "${enable_64_bit_bfd+set}" = set; then :
7901   enableval=$enable_64_bit_bfd; case "${enableval}" in
7902   yes)  want64=true  ;;
7903   no)   want64=false ;;
7904   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7905 esac
7906 else
7907   want64=false
7908 fi
7909
7910 # Provide defaults for some variables set by the per-host and per-target
7911 # configuration.
7912 gdb_host_obs=posix-hdep.o
7913
7914 if test "${target}" = "${host}"; then
7915   gdb_native=yes
7916 else
7917   gdb_native=no
7918 fi
7919
7920 . $srcdir/configure.host
7921
7922 # Accumulate some settings from configure.tgt over all enabled targets
7923
7924 TARGET_OBS=
7925 all_targets=
7926
7927 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7928 do
7929   if test "$targ_alias" = "all"; then
7930     all_targets=true
7931   else
7932     # Canonicalize the secondary target names.
7933     result=`$ac_config_sub $targ_alias 2>/dev/null`
7934     if test -n "$result"; then
7935         targ=$result
7936     else
7937         targ=$targ_alias
7938     fi
7939
7940     . ${srcdir}/configure.tgt
7941
7942     if test -z "${gdb_target_obs}"; then :
7943   as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
7944 fi
7945
7946     # Target-specific object files
7947     for i in ${gdb_target_obs}; do
7948         case " $TARGET_OBS " in
7949         *" ${i} "*) ;;
7950         *)
7951           TARGET_OBS="$TARGET_OBS ${i}"
7952           ;;
7953         esac
7954     done
7955
7956     # Check whether this target needs 64-bit CORE_ADDR
7957     if test x${want64} = xfalse; then
7958       . ${srcdir}/../bfd/config.bfd
7959     fi
7960   fi
7961 done
7962
7963 if test x${all_targets} = xtrue; then
7964
7965   # We want all 64-bit targets if we either:
7966   #  - run on a 64-bit host  or
7967   #  - already require 64-bit support for some other target  or
7968   #  - the --enable-64-bit-bfd option was supplied
7969   # Otherwise we only support all 32-bit targets.
7970   #
7971   # NOTE: This test must be in sync with the corresponding
7972   #       tests in BFD!
7973
7974   if test x${want64} = xfalse; then
7975     # The cast to long int works around a bug in the HP C Compiler
7976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7978 # This bug is HP SR number 8606223364.
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
7980 $as_echo_n "checking size of long... " >&6; }
7981 if test "${ac_cv_sizeof_long+set}" = set; then :
7982   $as_echo_n "(cached) " >&6
7983 else
7984   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
7985
7986 else
7987   if test "$ac_cv_type_long" = yes; then
7988      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7990 { as_fn_set_status 77
7991 as_fn_error "cannot compute sizeof (long)
7992 See \`config.log' for more details." "$LINENO" 5; }; }
7993    else
7994      ac_cv_sizeof_long=0
7995    fi
7996 fi
7997
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8000 $as_echo "$ac_cv_sizeof_long" >&6; }
8001
8002
8003
8004 cat >>confdefs.h <<_ACEOF
8005 #define SIZEOF_LONG $ac_cv_sizeof_long
8006 _ACEOF
8007
8008
8009     if test "x${ac_cv_sizeof_long}" = "x8"; then
8010       want64=true
8011     fi
8012   fi
8013   if test x${want64} = xtrue; then
8014     TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8015   else
8016     TARGET_OBS='$(ALL_TARGET_OBS)'
8017   fi
8018 fi
8019
8020
8021
8022 # For other settings, only the main target counts.
8023 gdb_sim=
8024 gdb_osabi=
8025 build_gdbserver=
8026 targ=$target; . ${srcdir}/configure.tgt
8027
8028 # Fetch the default architecture and default target vector from BFD.
8029 targ=$target; . $srcdir/../bfd/config.bfd
8030
8031 # We only want the first architecture, so strip off the others if
8032 # there is more than one.
8033 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8034
8035 if test "x$targ_archs" != x; then
8036
8037 cat >>confdefs.h <<_ACEOF
8038 #define DEFAULT_BFD_ARCH $targ_archs
8039 _ACEOF
8040
8041 fi
8042 if test "x$targ_defvec" != x; then
8043
8044 cat >>confdefs.h <<_ACEOF
8045 #define DEFAULT_BFD_VEC $targ_defvec
8046 _ACEOF
8047
8048 fi
8049
8050 # The CLI cannot be disabled yet, but may be in the future.
8051
8052 # Enable CLI.
8053 # Check whether --enable-gdbcli was given.
8054 if test "${enable_gdbcli+set}" = set; then :
8055   enableval=$enable_gdbcli; case $enableval in
8056     yes)
8057       ;;
8058     no)
8059       as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8060     *)
8061       as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8062   esac
8063 else
8064   enable_gdbcli=yes
8065 fi
8066
8067 if test x"$enable_gdbcli" = xyes; then
8068   if test -d $srcdir/cli; then
8069     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8070     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8071     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8072     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8073   fi
8074 fi
8075
8076 # Enable MI.
8077 # Check whether --enable-gdbmi was given.
8078 if test "${enable_gdbmi+set}" = set; then :
8079   enableval=$enable_gdbmi; case $enableval in
8080     yes | no)
8081       ;;
8082     *)
8083       as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8084   esac
8085 else
8086   enable_gdbmi=yes
8087 fi
8088
8089 if test x"$enable_gdbmi" = xyes; then
8090   if test -d $srcdir/mi; then
8091     CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8092     CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8093     CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8094     ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8095   fi
8096 fi
8097
8098 # Enable TUI.
8099 # Check whether --enable-tui was given.
8100 if test "${enable_tui+set}" = set; then :
8101   enableval=$enable_tui; case $enableval in
8102     yes | no | auto)
8103       ;;
8104     *)
8105       as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8106   esac
8107 else
8108   enable_tui=auto
8109 fi
8110
8111
8112 # Enable gdbtk.
8113 # Check whether --enable-gdbtk was given.
8114 if test "${enable_gdbtk+set}" = set; then :
8115   enableval=$enable_gdbtk; case $enableval in
8116     yes | no)
8117       ;;
8118     *)
8119       as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8120   esac
8121 else
8122   if test -d $srcdir/gdbtk; then
8123     enable_gdbtk=yes
8124   else
8125     enable_gdbtk=no
8126   fi
8127 fi
8128
8129 # We unconditionally disable gdbtk tests on selected platforms.
8130 case $host_os in
8131   go32* | windows*)
8132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8133 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8134     enable_gdbtk=no ;;
8135 esac
8136
8137 # Libunwind support.
8138
8139 # Check whether --with-libunwind was given.
8140 if test "${with_libunwind+set}" = set; then :
8141   withval=$with_libunwind; case "${withval}" in
8142   yes)  enable_libunwind=yes ;;
8143   no)   enable_libunwind=no ;;
8144   *)    as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8145 esac
8146 else
8147
8148   for ac_header in libunwind.h libunwind-ia64.h
8149 do :
8150   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8151 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8152 eval as_val=\$$as_ac_Header
8153    if test "x$as_val" = x""yes; then :
8154   cat >>confdefs.h <<_ACEOF
8155 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8156 _ACEOF
8157
8158 fi
8159
8160 done
8161
8162   if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8163     enable_libunwind=yes;
8164   fi
8165
8166 fi
8167
8168
8169 if test x"$enable_libunwind" = xyes; then
8170   for ac_header in libunwind.h libunwind-ia64.h
8171 do :
8172   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8173 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8174 eval as_val=\$$as_ac_Header
8175    if test "x$as_val" = x""yes; then :
8176   cat >>confdefs.h <<_ACEOF
8177 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8178 _ACEOF
8179
8180 fi
8181
8182 done
8183
8184
8185 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8186
8187   CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8188   CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8189   CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8190 fi
8191
8192 opt_curses=no
8193
8194 # Check whether --with-curses was given.
8195 if test "${with_curses+set}" = set; then :
8196   withval=$with_curses; opt_curses=$withval
8197 fi
8198
8199
8200 prefer_curses=no
8201 if test "$opt_curses" = "yes"; then
8202   prefer_curses=yes
8203 fi
8204
8205 # Profiling support.
8206 # Check whether --enable-profiling was given.
8207 if test "${enable_profiling+set}" = set; then :
8208   enableval=$enable_profiling; case $enableval in
8209     yes | no)
8210       ;;
8211     *)
8212       as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8213   esac
8214 else
8215   enable_profiling=no
8216 fi
8217
8218
8219 for ac_func in monstartup _mcleanup
8220 do :
8221   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8223 eval as_val=\$$as_ac_var
8224    if test "x$as_val" = x""yes; then :
8225   cat >>confdefs.h <<_ACEOF
8226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8227 _ACEOF
8228
8229 fi
8230 done
8231
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8233 $as_echo_n "checking for _etext... " >&6; }
8234 if test "${ac_cv_var__etext+set}" = set; then :
8235   $as_echo_n "(cached) " >&6
8236 else
8237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h.  */
8239 #include <stdlib.h>
8240 extern char _etext;
8241
8242 int
8243 main ()
8244 {
8245 free (&_etext);
8246   ;
8247   return 0;
8248 }
8249 _ACEOF
8250 if ac_fn_c_try_link "$LINENO"; then :
8251   ac_cv_var__etext=yes
8252 else
8253   ac_cv_var__etext=no
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext \
8256     conftest$ac_exeext conftest.$ac_ext
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8259 $as_echo "$ac_cv_var__etext" >&6; }
8260 if test $ac_cv_var__etext = yes; then
8261
8262 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8263
8264 fi
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8266 $as_echo_n "checking for etext... " >&6; }
8267 if test "${ac_cv_var_etext+set}" = set; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h.  */
8272 #include <stdlib.h>
8273 extern char etext;
8274
8275 int
8276 main ()
8277 {
8278 free (&etext);
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 if ac_fn_c_try_link "$LINENO"; then :
8284   ac_cv_var_etext=yes
8285 else
8286   ac_cv_var_etext=no
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext \
8289     conftest$ac_exeext conftest.$ac_ext
8290 fi
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8292 $as_echo "$ac_cv_var_etext" >&6; }
8293 if test $ac_cv_var_etext = yes; then
8294
8295 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8296
8297 fi
8298 if test "$enable_profiling" = yes ; then
8299   if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8300     as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8301   fi
8302   PROFILE_CFLAGS=-pg
8303   OLD_CFLAGS="$CFLAGS"
8304   CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8305
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8307 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8308 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8312 /* end confdefs.h.  */
8313
8314 int
8315 main ()
8316 {
8317 int x;
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 if ac_fn_c_try_compile "$LINENO"; then :
8323   ac_cv_cc_supports_pg=yes
8324 else
8325   ac_cv_cc_supports_pg=no
8326 fi
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 fi
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8330 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8331
8332   if test $ac_cv_cc_supports_pg = no; then
8333     as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8334   fi
8335
8336   CFLAGS="$OLD_CFLAGS"
8337 fi
8338
8339
8340
8341 # Check whether --with-pkgversion was given.
8342 if test "${with_pkgversion+set}" = set; then :
8343   withval=$with_pkgversion; case "$withval" in
8344       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8345       no)  PKGVERSION= ;;
8346       *)   PKGVERSION="($withval) " ;;
8347      esac
8348 else
8349   PKGVERSION="(GDB) "
8350
8351 fi
8352
8353
8354
8355
8356
8357 # Check whether --with-bugurl was given.
8358 if test "${with_bugurl+set}" = set; then :
8359   withval=$with_bugurl; case "$withval" in
8360       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8361       no)  BUGURL=
8362            ;;
8363       *)   BUGURL="$withval"
8364            ;;
8365      esac
8366 else
8367   BUGURL="http://www.gnu.org/software/gdb/bugs/"
8368
8369 fi
8370
8371   case ${BUGURL} in
8372   "")
8373     REPORT_BUGS_TO=
8374     REPORT_BUGS_TEXI=
8375     ;;
8376   *)
8377     REPORT_BUGS_TO="<$BUGURL>"
8378     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8379     ;;
8380   esac;
8381
8382
8383
8384
8385 cat >>confdefs.h <<_ACEOF
8386 #define PKGVERSION "$PKGVERSION"
8387 _ACEOF
8388
8389
8390 cat >>confdefs.h <<_ACEOF
8391 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8392 _ACEOF
8393
8394
8395 # --------------------- #
8396 # Checks for programs.  #
8397 # --------------------- #
8398
8399 for ac_prog in gawk mawk nawk awk
8400 do
8401   # Extract the first word of "$ac_prog", so it can be a program name with args.
8402 set dummy $ac_prog; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if test "${ac_cv_prog_AWK+set}" = set; then :
8406   $as_echo_n "(cached) " >&6
8407 else
8408   if test -n "$AWK"; then
8409   ac_cv_prog_AWK="$AWK" # Let the user override the test.
8410 else
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8412 for as_dir in $PATH
8413 do
8414   IFS=$as_save_IFS
8415   test -z "$as_dir" && as_dir=.
8416     for ac_exec_ext in '' $ac_executable_extensions; do
8417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418     ac_cv_prog_AWK="$ac_prog"
8419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8420     break 2
8421   fi
8422 done
8423   done
8424 IFS=$as_save_IFS
8425
8426 fi
8427 fi
8428 AWK=$ac_cv_prog_AWK
8429 if test -n "$AWK"; then
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8431 $as_echo "$AWK" >&6; }
8432 else
8433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8434 $as_echo "no" >&6; }
8435 fi
8436
8437
8438   test -n "$AWK" && break
8439 done
8440
8441
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8443 $as_echo_n "checking whether ln -s works... " >&6; }
8444 LN_S=$as_ln_s
8445 if test "$LN_S" = "ln -s"; then
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8447 $as_echo "yes" >&6; }
8448 else
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8450 $as_echo "no, using $LN_S" >&6; }
8451 fi
8452
8453 if test -n "$ac_tool_prefix"; then
8454   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8455 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8459   $as_echo_n "(cached) " >&6
8460 else
8461   if test -n "$RANLIB"; then
8462   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8463 else
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8466 do
8467   IFS=$as_save_IFS
8468   test -z "$as_dir" && as_dir=.
8469     for ac_exec_ext in '' $ac_executable_extensions; do
8470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8471     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473     break 2
8474   fi
8475 done
8476   done
8477 IFS=$as_save_IFS
8478
8479 fi
8480 fi
8481 RANLIB=$ac_cv_prog_RANLIB
8482 if test -n "$RANLIB"; then
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8484 $as_echo "$RANLIB" >&6; }
8485 else
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 fi
8489
8490
8491 fi
8492 if test -z "$ac_cv_prog_RANLIB"; then
8493   ac_ct_RANLIB=$RANLIB
8494   # Extract the first word of "ranlib", so it can be a program name with args.
8495 set dummy ranlib; ac_word=$2
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497 $as_echo_n "checking for $ac_word... " >&6; }
8498 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8499   $as_echo_n "(cached) " >&6
8500 else
8501   if test -n "$ac_ct_RANLIB"; then
8502   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8503 else
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8506 do
8507   IFS=$as_save_IFS
8508   test -z "$as_dir" && as_dir=.
8509     for ac_exec_ext in '' $ac_executable_extensions; do
8510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8511     ac_cv_prog_ac_ct_RANLIB="ranlib"
8512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513     break 2
8514   fi
8515 done
8516   done
8517 IFS=$as_save_IFS
8518
8519 fi
8520 fi
8521 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8522 if test -n "$ac_ct_RANLIB"; then
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8524 $as_echo "$ac_ct_RANLIB" >&6; }
8525 else
8526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527 $as_echo "no" >&6; }
8528 fi
8529
8530   if test "x$ac_ct_RANLIB" = x; then
8531     RANLIB=":"
8532   else
8533     case $cross_compiling:$ac_tool_warned in
8534 yes:)
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8537 ac_tool_warned=yes ;;
8538 esac
8539     RANLIB=$ac_ct_RANLIB
8540   fi
8541 else
8542   RANLIB="$ac_cv_prog_RANLIB"
8543 fi
8544
8545 for ac_prog in 'bison -y' byacc
8546 do
8547   # Extract the first word of "$ac_prog", so it can be a program name with args.
8548 set dummy $ac_prog; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if test "${ac_cv_prog_YACC+set}" = set; then :
8552   $as_echo_n "(cached) " >&6
8553 else
8554   if test -n "$YACC"; then
8555   ac_cv_prog_YACC="$YACC" # Let the user override the test.
8556 else
8557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558 for as_dir in $PATH
8559 do
8560   IFS=$as_save_IFS
8561   test -z "$as_dir" && as_dir=.
8562     for ac_exec_ext in '' $ac_executable_extensions; do
8563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8564     ac_cv_prog_YACC="$ac_prog"
8565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8566     break 2
8567   fi
8568 done
8569   done
8570 IFS=$as_save_IFS
8571
8572 fi
8573 fi
8574 YACC=$ac_cv_prog_YACC
8575 if test -n "$YACC"; then
8576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8577 $as_echo "$YACC" >&6; }
8578 else
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8581 fi
8582
8583
8584   test -n "$YACC" && break
8585 done
8586 test -n "$YACC" || YACC="yacc"
8587
8588
8589 if test -n "$ac_tool_prefix"; then
8590   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8591 set dummy ${ac_tool_prefix}ar; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if test "${ac_cv_prog_AR+set}" = set; then :
8595   $as_echo_n "(cached) " >&6
8596 else
8597   if test -n "$AR"; then
8598   ac_cv_prog_AR="$AR" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8602 do
8603   IFS=$as_save_IFS
8604   test -z "$as_dir" && as_dir=.
8605     for ac_exec_ext in '' $ac_executable_extensions; do
8606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607     ac_cv_prog_AR="${ac_tool_prefix}ar"
8608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609     break 2
8610   fi
8611 done
8612   done
8613 IFS=$as_save_IFS
8614
8615 fi
8616 fi
8617 AR=$ac_cv_prog_AR
8618 if test -n "$AR"; then
8619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8620 $as_echo "$AR" >&6; }
8621 else
8622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8624 fi
8625
8626
8627 fi
8628 if test -z "$ac_cv_prog_AR"; then
8629   ac_ct_AR=$AR
8630   # Extract the first word of "ar", so it can be a program name with args.
8631 set dummy ar; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8635   $as_echo_n "(cached) " >&6
8636 else
8637   if test -n "$ac_ct_AR"; then
8638   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8639 else
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8642 do
8643   IFS=$as_save_IFS
8644   test -z "$as_dir" && as_dir=.
8645     for ac_exec_ext in '' $ac_executable_extensions; do
8646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647     ac_cv_prog_ac_ct_AR="ar"
8648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649     break 2
8650   fi
8651 done
8652   done
8653 IFS=$as_save_IFS
8654
8655 fi
8656 fi
8657 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8658 if test -n "$ac_ct_AR"; then
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8660 $as_echo "$ac_ct_AR" >&6; }
8661 else
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8664 fi
8665
8666   if test "x$ac_ct_AR" = x; then
8667     AR=""
8668   else
8669     case $cross_compiling:$ac_tool_warned in
8670 yes:)
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8674 esac
8675     AR=$ac_ct_AR
8676   fi
8677 else
8678   AR="$ac_cv_prog_AR"
8679 fi
8680
8681 if test -n "$ac_tool_prefix"; then
8682   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8683 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   if test -n "$DLLTOOL"; then
8690   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8691 else
8692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693 for as_dir in $PATH
8694 do
8695   IFS=$as_save_IFS
8696   test -z "$as_dir" && as_dir=.
8697     for ac_exec_ext in '' $ac_executable_extensions; do
8698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8699     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8701     break 2
8702   fi
8703 done
8704   done
8705 IFS=$as_save_IFS
8706
8707 fi
8708 fi
8709 DLLTOOL=$ac_cv_prog_DLLTOOL
8710 if test -n "$DLLTOOL"; then
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8712 $as_echo "$DLLTOOL" >&6; }
8713 else
8714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 $as_echo "no" >&6; }
8716 fi
8717
8718
8719 fi
8720 if test -z "$ac_cv_prog_DLLTOOL"; then
8721   ac_ct_DLLTOOL=$DLLTOOL
8722   # Extract the first word of "dlltool", so it can be a program name with args.
8723 set dummy dlltool; ac_word=$2
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 $as_echo_n "checking for $ac_word... " >&6; }
8726 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8727   $as_echo_n "(cached) " >&6
8728 else
8729   if test -n "$ac_ct_DLLTOOL"; then
8730   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8731 else
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8734 do
8735   IFS=$as_save_IFS
8736   test -z "$as_dir" && as_dir=.
8737     for ac_exec_ext in '' $ac_executable_extensions; do
8738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741     break 2
8742   fi
8743 done
8744   done
8745 IFS=$as_save_IFS
8746
8747 fi
8748 fi
8749 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8750 if test -n "$ac_ct_DLLTOOL"; then
8751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8752 $as_echo "$ac_ct_DLLTOOL" >&6; }
8753 else
8754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8756 fi
8757
8758   if test "x$ac_ct_DLLTOOL" = x; then
8759     DLLTOOL=""
8760   else
8761     case $cross_compiling:$ac_tool_warned in
8762 yes:)
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8766 esac
8767     DLLTOOL=$ac_ct_DLLTOOL
8768   fi
8769 else
8770   DLLTOOL="$ac_cv_prog_DLLTOOL"
8771 fi
8772
8773 if test -n "$ac_tool_prefix"; then
8774   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8775 set dummy ${ac_tool_prefix}windres; ac_word=$2
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8777 $as_echo_n "checking for $ac_word... " >&6; }
8778 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8779   $as_echo_n "(cached) " >&6
8780 else
8781   if test -n "$WINDRES"; then
8782   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8783 else
8784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8785 for as_dir in $PATH
8786 do
8787   IFS=$as_save_IFS
8788   test -z "$as_dir" && as_dir=.
8789     for ac_exec_ext in '' $ac_executable_extensions; do
8790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8791     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8793     break 2
8794   fi
8795 done
8796   done
8797 IFS=$as_save_IFS
8798
8799 fi
8800 fi
8801 WINDRES=$ac_cv_prog_WINDRES
8802 if test -n "$WINDRES"; then
8803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8804 $as_echo "$WINDRES" >&6; }
8805 else
8806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8807 $as_echo "no" >&6; }
8808 fi
8809
8810
8811 fi
8812 if test -z "$ac_cv_prog_WINDRES"; then
8813   ac_ct_WINDRES=$WINDRES
8814   # Extract the first word of "windres", so it can be a program name with args.
8815 set dummy windres; ac_word=$2
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8817 $as_echo_n "checking for $ac_word... " >&6; }
8818 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8819   $as_echo_n "(cached) " >&6
8820 else
8821   if test -n "$ac_ct_WINDRES"; then
8822   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8823 else
8824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8825 for as_dir in $PATH
8826 do
8827   IFS=$as_save_IFS
8828   test -z "$as_dir" && as_dir=.
8829     for ac_exec_ext in '' $ac_executable_extensions; do
8830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8831     ac_cv_prog_ac_ct_WINDRES="windres"
8832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8833     break 2
8834   fi
8835 done
8836   done
8837 IFS=$as_save_IFS
8838
8839 fi
8840 fi
8841 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8842 if test -n "$ac_ct_WINDRES"; then
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8844 $as_echo "$ac_ct_WINDRES" >&6; }
8845 else
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8848 fi
8849
8850   if test "x$ac_ct_WINDRES" = x; then
8851     WINDRES=""
8852   else
8853     case $cross_compiling:$ac_tool_warned in
8854 yes:)
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857 ac_tool_warned=yes ;;
8858 esac
8859     WINDRES=$ac_ct_WINDRES
8860   fi
8861 else
8862   WINDRES="$ac_cv_prog_WINDRES"
8863 fi
8864
8865
8866 # Needed for GNU/Hurd.
8867 if test -n "$ac_tool_prefix"; then
8868   # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8869 set dummy ${ac_tool_prefix}mig; ac_word=$2
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 $as_echo_n "checking for $ac_word... " >&6; }
8872 if test "${ac_cv_prog_MIG+set}" = set; then :
8873   $as_echo_n "(cached) " >&6
8874 else
8875   if test -n "$MIG"; then
8876   ac_cv_prog_MIG="$MIG" # Let the user override the test.
8877 else
8878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8879 for as_dir in $PATH
8880 do
8881   IFS=$as_save_IFS
8882   test -z "$as_dir" && as_dir=.
8883     for ac_exec_ext in '' $ac_executable_extensions; do
8884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8885     ac_cv_prog_MIG="${ac_tool_prefix}mig"
8886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887     break 2
8888   fi
8889 done
8890   done
8891 IFS=$as_save_IFS
8892
8893 fi
8894 fi
8895 MIG=$ac_cv_prog_MIG
8896 if test -n "$MIG"; then
8897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8898 $as_echo "$MIG" >&6; }
8899 else
8900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8902 fi
8903
8904
8905 fi
8906 if test -z "$ac_cv_prog_MIG"; then
8907   ac_ct_MIG=$MIG
8908   # Extract the first word of "mig", so it can be a program name with args.
8909 set dummy mig; ac_word=$2
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911 $as_echo_n "checking for $ac_word... " >&6; }
8912 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8913   $as_echo_n "(cached) " >&6
8914 else
8915   if test -n "$ac_ct_MIG"; then
8916   ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8917 else
8918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8919 for as_dir in $PATH
8920 do
8921   IFS=$as_save_IFS
8922   test -z "$as_dir" && as_dir=.
8923     for ac_exec_ext in '' $ac_executable_extensions; do
8924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8925     ac_cv_prog_ac_ct_MIG="mig"
8926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927     break 2
8928   fi
8929 done
8930   done
8931 IFS=$as_save_IFS
8932
8933 fi
8934 fi
8935 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8936 if test -n "$ac_ct_MIG"; then
8937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8938 $as_echo "$ac_ct_MIG" >&6; }
8939 else
8940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8941 $as_echo "no" >&6; }
8942 fi
8943
8944   if test "x$ac_ct_MIG" = x; then
8945     MIG=""
8946   else
8947     case $cross_compiling:$ac_tool_warned in
8948 yes:)
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8951 ac_tool_warned=yes ;;
8952 esac
8953     MIG=$ac_ct_MIG
8954   fi
8955 else
8956   MIG="$ac_cv_prog_MIG"
8957 fi
8958
8959
8960 # ---------------------- #
8961 # Checks for libraries.  #
8962 # ---------------------- #
8963
8964 # We might need to link with -lm; most simulators need it.
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
8966 $as_echo_n "checking for main in -lm... " >&6; }
8967 if test "${ac_cv_lib_m_main+set}" = set; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   ac_check_lib_save_LIBS=$LIBS
8971 LIBS="-lm  $LIBS"
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h.  */
8974
8975
8976 int
8977 main ()
8978 {
8979 return main ();
8980   ;
8981   return 0;
8982 }
8983 _ACEOF
8984 if ac_fn_c_try_link "$LINENO"; then :
8985   ac_cv_lib_m_main=yes
8986 else
8987   ac_cv_lib_m_main=no
8988 fi
8989 rm -f core conftest.err conftest.$ac_objext \
8990     conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
8994 $as_echo "$ac_cv_lib_m_main" >&6; }
8995 if test "x$ac_cv_lib_m_main" = x""yes; then :
8996   cat >>confdefs.h <<_ACEOF
8997 #define HAVE_LIBM 1
8998 _ACEOF
8999
9000   LIBS="-lm $LIBS"
9001
9002 fi
9003
9004
9005 # We need to link with -lw to get `wctype' on Solaris before Solaris
9006 # 2.6.  Solaris 2.6 and beyond have this function in libc, and have a
9007 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9008 # is known to have this problem).  Therefore we avoid libw if we can.
9009 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9010 if test "x$ac_cv_func_wctype" = x""yes; then :
9011
9012 else
9013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9014 $as_echo_n "checking for wctype in -lw... " >&6; }
9015 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9016   $as_echo_n "(cached) " >&6
9017 else
9018   ac_check_lib_save_LIBS=$LIBS
9019 LIBS="-lw  $LIBS"
9020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9021 /* end confdefs.h.  */
9022
9023 /* Override any GCC internal prototype to avoid an error.
9024    Use char because int might match the return type of a GCC
9025    builtin and then its argument prototype would still apply.  */
9026 #ifdef __cplusplus
9027 extern "C"
9028 #endif
9029 char wctype ();
9030 int
9031 main ()
9032 {
9033 return wctype ();
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 if ac_fn_c_try_link "$LINENO"; then :
9039   ac_cv_lib_w_wctype=yes
9040 else
9041   ac_cv_lib_w_wctype=no
9042 fi
9043 rm -f core conftest.err conftest.$ac_objext \
9044     conftest$ac_exeext conftest.$ac_ext
9045 LIBS=$ac_check_lib_save_LIBS
9046 fi
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9048 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9049 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9050   cat >>confdefs.h <<_ACEOF
9051 #define HAVE_LIBW 1
9052 _ACEOF
9053
9054   LIBS="-lw $LIBS"
9055
9056 fi
9057
9058 fi
9059
9060
9061 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9063 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9064 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9065   $as_echo_n "(cached) " >&6
9066 else
9067   ac_func_search_save_LIBS=$LIBS
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h.  */
9070
9071 /* Override any GCC internal prototype to avoid an error.
9072    Use char because int might match the return type of a GCC
9073    builtin and then its argument prototype would still apply.  */
9074 #ifdef __cplusplus
9075 extern "C"
9076 #endif
9077 char gethostbyname ();
9078 int
9079 main ()
9080 {
9081 return gethostbyname ();
9082   ;
9083   return 0;
9084 }
9085 _ACEOF
9086 for ac_lib in '' nsl; do
9087   if test -z "$ac_lib"; then
9088     ac_res="none required"
9089   else
9090     ac_res=-l$ac_lib
9091     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9092   fi
9093   if ac_fn_c_try_link "$LINENO"; then :
9094   ac_cv_search_gethostbyname=$ac_res
9095 fi
9096 rm -f core conftest.err conftest.$ac_objext \
9097     conftest$ac_exeext
9098   if test "${ac_cv_search_gethostbyname+set}" = set; then :
9099   break
9100 fi
9101 done
9102 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9103
9104 else
9105   ac_cv_search_gethostbyname=no
9106 fi
9107 rm conftest.$ac_ext
9108 LIBS=$ac_func_search_save_LIBS
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9111 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9112 ac_res=$ac_cv_search_gethostbyname
9113 if test "$ac_res" != no; then :
9114   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9115
9116 fi
9117
9118
9119 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9121 $as_echo_n "checking for library containing socketpair... " >&6; }
9122 if test "${ac_cv_search_socketpair+set}" = set; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   ac_func_search_save_LIBS=$LIBS
9126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h.  */
9128
9129 /* Override any GCC internal prototype to avoid an error.
9130    Use char because int might match the return type of a GCC
9131    builtin and then its argument prototype would still apply.  */
9132 #ifdef __cplusplus
9133 extern "C"
9134 #endif
9135 char socketpair ();
9136 int
9137 main ()
9138 {
9139 return socketpair ();
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 for ac_lib in '' socket; do
9145   if test -z "$ac_lib"; then
9146     ac_res="none required"
9147   else
9148     ac_res=-l$ac_lib
9149     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9150   fi
9151   if ac_fn_c_try_link "$LINENO"; then :
9152   ac_cv_search_socketpair=$ac_res
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext \
9155     conftest$ac_exeext
9156   if test "${ac_cv_search_socketpair+set}" = set; then :
9157   break
9158 fi
9159 done
9160 if test "${ac_cv_search_socketpair+set}" = set; then :
9161
9162 else
9163   ac_cv_search_socketpair=no
9164 fi
9165 rm conftest.$ac_ext
9166 LIBS=$ac_func_search_save_LIBS
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9169 $as_echo "$ac_cv_search_socketpair" >&6; }
9170 ac_res=$ac_cv_search_socketpair
9171 if test "$ac_res" != no; then :
9172   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9173
9174 fi
9175
9176
9177 # Link in zlib if we can.  This allows us to read compressed debug sections.
9178
9179   # See if the user specified whether he wants zlib support or not.
9180
9181 # Check whether --with-zlib was given.
9182 if test "${with_zlib+set}" = set; then :
9183   withval=$with_zlib;
9184 else
9185   with_zlib=auto
9186 fi
9187
9188
9189   if test "$with_zlib" != "no"; then
9190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9191 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9192 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9193   $as_echo_n "(cached) " >&6
9194 else
9195   ac_func_search_save_LIBS=$LIBS
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h.  */
9198
9199 /* Override any GCC internal prototype to avoid an error.
9200    Use char because int might match the return type of a GCC
9201    builtin and then its argument prototype would still apply.  */
9202 #ifdef __cplusplus
9203 extern "C"
9204 #endif
9205 char zlibVersion ();
9206 int
9207 main ()
9208 {
9209 return zlibVersion ();
9210   ;
9211   return 0;
9212 }
9213 _ACEOF
9214 for ac_lib in '' z; do
9215   if test -z "$ac_lib"; then
9216     ac_res="none required"
9217   else
9218     ac_res=-l$ac_lib
9219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9220   fi
9221   if ac_fn_c_try_link "$LINENO"; then :
9222   ac_cv_search_zlibVersion=$ac_res
9223 fi
9224 rm -f core conftest.err conftest.$ac_objext \
9225     conftest$ac_exeext
9226   if test "${ac_cv_search_zlibVersion+set}" = set; then :
9227   break
9228 fi
9229 done
9230 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9231
9232 else
9233   ac_cv_search_zlibVersion=no
9234 fi
9235 rm conftest.$ac_ext
9236 LIBS=$ac_func_search_save_LIBS
9237 fi
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9239 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9240 ac_res=$ac_cv_search_zlibVersion
9241 if test "$ac_res" != no; then :
9242   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9243   for ac_header in zlib.h
9244 do :
9245   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9246 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9247   cat >>confdefs.h <<_ACEOF
9248 #define HAVE_ZLIB_H 1
9249 _ACEOF
9250
9251 fi
9252
9253 done
9254
9255 fi
9256
9257     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9258       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9259     fi
9260   fi
9261
9262
9263 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9265 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9266 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9267   $as_echo_n "(cached) " >&6
9268 else
9269   ac_func_search_save_LIBS=$LIBS
9270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h.  */
9272
9273 /* Override any GCC internal prototype to avoid an error.
9274    Use char because int might match the return type of a GCC
9275    builtin and then its argument prototype would still apply.  */
9276 #ifdef __cplusplus
9277 extern "C"
9278 #endif
9279 char dlgetmodinfo ();
9280 int
9281 main ()
9282 {
9283 return dlgetmodinfo ();
9284   ;
9285   return 0;
9286 }
9287 _ACEOF
9288 for ac_lib in '' dl xpdl; do
9289   if test -z "$ac_lib"; then
9290     ac_res="none required"
9291   else
9292     ac_res=-l$ac_lib
9293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9294   fi
9295   if ac_fn_c_try_link "$LINENO"; then :
9296   ac_cv_search_dlgetmodinfo=$ac_res
9297 fi
9298 rm -f core conftest.err conftest.$ac_objext \
9299     conftest$ac_exeext
9300   if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9301   break
9302 fi
9303 done
9304 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9305
9306 else
9307   ac_cv_search_dlgetmodinfo=no
9308 fi
9309 rm conftest.$ac_ext
9310 LIBS=$ac_func_search_save_LIBS
9311 fi
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9313 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9314 ac_res=$ac_cv_search_dlgetmodinfo
9315 if test "$ac_res" != no; then :
9316   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9317
9318 fi
9319
9320
9321
9322
9323
9324 # Check whether --with-libiconv-prefix was given.
9325 if test "${with_libiconv_prefix+set}" = set; then :
9326   withval=$with_libiconv_prefix;
9327     for dir in `echo "$withval" | tr : ' '`; do
9328       if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9329       if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9330     done
9331
9332 fi
9333
9334
9335   BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9336   BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9337
9338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9339 $as_echo_n "checking for iconv... " >&6; }
9340 if test "${am_cv_func_iconv+set}" = set; then :
9341   $as_echo_n "(cached) " >&6
9342 else
9343
9344     am_cv_func_iconv="no, consider installing GNU libiconv"
9345     am_cv_lib_iconv=no
9346     am_cv_use_build_libiconv=no
9347     am_cv_build_libiconv_path=
9348
9349     # If libiconv is part of the build tree, then try using it over
9350     # any system iconv.
9351     if test -d ../libiconv; then
9352       for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9353         am_save_LIBS="$LIBS"
9354         am_save_CPPFLAGS="$CPPFLAGS"
9355         LIBS="$LIBS $lib_dir/libiconv.a"
9356         CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9357         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h.  */
9359 #include <stdlib.h>
9360 #include <iconv.h>
9361 int
9362 main ()
9363 {
9364 iconv_t cd = iconv_open("","");
9365            iconv(cd,NULL,NULL,NULL,NULL);
9366            iconv_close(cd);
9367   ;
9368   return 0;
9369 }
9370 _ACEOF
9371 if ac_fn_c_try_link "$LINENO"; then :
9372   am_cv_use_build_libiconv=yes
9373           am_cv_build_libiconv_path=$lib_dir/libiconv.a
9374           am_cv_lib_iconv=yes
9375           am_cv_func_iconv=yes
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext \
9378     conftest$ac_exeext conftest.$ac_ext
9379         LIBS="$am_save_LIBS"
9380         CPPFLAGS="$am_save_CPPFLAGS"
9381         if test "$am_cv_use_build_libiconv" = "yes"; then
9382           break
9383         fi
9384       done
9385     fi
9386
9387     # Next, try to find iconv in libc.
9388     if test "$am_cv_func_iconv" != yes; then
9389       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h.  */
9391 #include <stdlib.h>
9392 #include <iconv.h>
9393 int
9394 main ()
9395 {
9396 iconv_t cd = iconv_open("","");
9397          iconv(cd,NULL,NULL,NULL,NULL);
9398          iconv_close(cd);
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403 if ac_fn_c_try_link "$LINENO"; then :
9404   am_cv_func_iconv=yes
9405 fi
9406 rm -f core conftest.err conftest.$ac_objext \
9407     conftest$ac_exeext conftest.$ac_ext
9408     fi
9409
9410     # If iconv was not in libc, try -liconv.  In this case, arrange to
9411     # look in the libiconv prefix, if it was specified by the user.
9412     if test "$am_cv_func_iconv" != yes; then
9413       am_save_CPPFLAGS="$CPPFLAGS"
9414       am_save_LIBS="$LIBS"
9415       if test -n "$LIBICONV_INCLUDE"; then
9416         CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9417         LIBS="$LIBS $LIBICONV_LIBDIR"
9418       fi
9419       LIBS="$LIBS -liconv"
9420       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h.  */
9422 #include <stdlib.h>
9423 #include <iconv.h>
9424 int
9425 main ()
9426 {
9427 iconv_t cd = iconv_open("","");
9428          iconv(cd,NULL,NULL,NULL,NULL);
9429          iconv_close(cd);
9430   ;
9431   return 0;
9432 }
9433 _ACEOF
9434 if ac_fn_c_try_link "$LINENO"; then :
9435   am_cv_lib_iconv=yes
9436         am_cv_func_iconv=yes
9437 fi
9438 rm -f core conftest.err conftest.$ac_objext \
9439     conftest$ac_exeext conftest.$ac_ext
9440       LIBS="$am_save_LIBS"
9441       CPPFLAGS="$am_save_CPPFLAGS"
9442     fi
9443
9444 fi
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9446 $as_echo "$am_cv_func_iconv" >&6; }
9447
9448   # Set the various flags based on the cache variables.  We can't rely
9449   # on the flags to remain set from the above code, due to caching.
9450   LIBICONV=
9451   if test "$am_cv_lib_iconv" = yes; then
9452     LIBICONV="-liconv"
9453   else
9454     LIBICONV_LIBDIR=
9455     LIBICONV_INCLUDE=
9456   fi
9457   if test "$am_cv_use_build_libiconv" = yes; then
9458     LIBICONV="$am_cv_build_libiconv_path"
9459     LIBICONV_LIBDIR=""
9460     LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9461   fi
9462   CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9463   LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9464
9465   if test "$am_cv_func_iconv" = yes; then
9466
9467 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9468
9469     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9470 $as_echo_n "checking for iconv declaration... " >&6; }
9471     if test "${am_cv_proto_iconv+set}" = set; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474
9475       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h.  */
9477
9478 #include <stdlib.h>
9479 #include <iconv.h>
9480 extern
9481 #ifdef __cplusplus
9482 "C"
9483 #endif
9484 #if defined(__STDC__) || defined(__cplusplus)
9485 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9486 #else
9487 size_t iconv();
9488 #endif
9489
9490 int
9491 main ()
9492 {
9493
9494   ;
9495   return 0;
9496 }
9497 _ACEOF
9498 if ac_fn_c_try_compile "$LINENO"; then :
9499   am_cv_proto_iconv_arg1=""
9500 else
9501   am_cv_proto_iconv_arg1="const"
9502 fi
9503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504       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);"
9505 fi
9506
9507     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9508     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9509          }$am_cv_proto_iconv" >&5
9510 $as_echo "${ac_t:-
9511          }$am_cv_proto_iconv" >&6; }
9512
9513 cat >>confdefs.h <<_ACEOF
9514 #define ICONV_CONST $am_cv_proto_iconv_arg1
9515 _ACEOF
9516
9517   fi
9518
9519
9520 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9521 # There is a very specific comment in /usr/include/curses.h explaining that
9522 # termcap routines built into libcurses must not be used.
9523 #
9524 # The symptoms we observed so far is GDB unexpectedly changing
9525 # the terminal settings when tgetent is called - this is particularly
9526 # visible as the output is missing carriage returns, and so rapidly
9527 # becomes very hard to read.
9528 #
9529 # The readline configure script has already decided that libtermcap
9530 # was enough for its purposes, and so decided to build readline using
9531 # libtermcap.  Since the TUI mode requires curses, building GDB with
9532 # TUI enabled results in both libraries to be used at the same time,
9533 # which is not allowed.  This basically means that GDB with TUI is
9534 # broken on alpha-osf.
9535
9536 case $host_os in
9537   osf* )
9538     if test x"$enable_tui" = xyes; then
9539       as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9540     fi
9541     if test x"$enable_tui" = xauto; then
9542       enable_tui=no
9543     fi
9544     ;;
9545 esac
9546
9547 # For the TUI, we need enhanced curses functionality.
9548 if test x"$enable_tui" != xno; then
9549   prefer_curses=yes
9550 fi
9551
9552 curses_found=no
9553 if test x"$prefer_curses" = xyes; then
9554   # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9555   # curses library because the latter might not provide all the
9556   # functionality we need.  However, this leads to problems on systems
9557   # where the linker searches /usr/local/lib, but the compiler doesn't
9558   # search /usr/local/include, if ncurses is installed in /usr/local.  A
9559   # default installation of ncurses on alpha*-dec-osf* will lead to such
9560   # a situation.
9561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9562 $as_echo_n "checking for library containing waddstr... " >&6; }
9563 if test "${ac_cv_search_waddstr+set}" = set; then :
9564   $as_echo_n "(cached) " >&6
9565 else
9566   ac_func_search_save_LIBS=$LIBS
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h.  */
9569
9570 /* Override any GCC internal prototype to avoid an error.
9571    Use char because int might match the return type of a GCC
9572    builtin and then its argument prototype would still apply.  */
9573 #ifdef __cplusplus
9574 extern "C"
9575 #endif
9576 char waddstr ();
9577 int
9578 main ()
9579 {
9580 return waddstr ();
9581   ;
9582   return 0;
9583 }
9584 _ACEOF
9585 for ac_lib in '' ncurses cursesX curses; do
9586   if test -z "$ac_lib"; then
9587     ac_res="none required"
9588   else
9589     ac_res=-l$ac_lib
9590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9591   fi
9592   if ac_fn_c_try_link "$LINENO"; then :
9593   ac_cv_search_waddstr=$ac_res
9594 fi
9595 rm -f core conftest.err conftest.$ac_objext \
9596     conftest$ac_exeext
9597   if test "${ac_cv_search_waddstr+set}" = set; then :
9598   break
9599 fi
9600 done
9601 if test "${ac_cv_search_waddstr+set}" = set; then :
9602
9603 else
9604   ac_cv_search_waddstr=no
9605 fi
9606 rm conftest.$ac_ext
9607 LIBS=$ac_func_search_save_LIBS
9608 fi
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9610 $as_echo "$ac_cv_search_waddstr" >&6; }
9611 ac_res=$ac_cv_search_waddstr
9612 if test "$ac_res" != no; then :
9613   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9614
9615 fi
9616
9617
9618   if test "$ac_cv_search_waddstr" != no; then
9619     curses_found=yes
9620   fi
9621 fi
9622
9623 # Check whether we should enable the TUI, but only do so if we really
9624 # can.
9625 if test x"$enable_tui" != xno; then
9626   if test -d $srcdir/tui; then
9627     if test "$curses_found" != no; then
9628       CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9629       CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9630       CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9631       ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9632       CONFIG_ALL="${CONFIG_ALL} all-tui"
9633       CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9634       CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9635       CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9636     else
9637       if test x"$enable_tui" = xyes; then
9638         as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9639       else
9640         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9641 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9642       fi
9643     fi
9644   fi
9645 fi
9646
9647 # Since GDB uses Readline, we need termcap functionality.  In many
9648 # cases this will be provided by the curses library, but some systems
9649 # have a seperate termcap library, or no curses library at all.
9650
9651 case $host_os in
9652   cygwin*)
9653     if test -d $srcdir/libtermcap; then
9654       LIBS="../libtermcap/libtermcap.a $LIBS"
9655       ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9656     fi ;;
9657   go32* | *djgpp*)
9658     ac_cv_search_tgetent="none required"
9659     ;;
9660   *mingw32*)
9661     ac_cv_search_tgetent="none required"
9662     CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9663     ;;
9664 esac
9665
9666 # These are the libraries checked by Readline.
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9668 $as_echo_n "checking for library containing tgetent... " >&6; }
9669 if test "${ac_cv_search_tgetent+set}" = set; then :
9670   $as_echo_n "(cached) " >&6
9671 else
9672   ac_func_search_save_LIBS=$LIBS
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h.  */
9675
9676 /* Override any GCC internal prototype to avoid an error.
9677    Use char because int might match the return type of a GCC
9678    builtin and then its argument prototype would still apply.  */
9679 #ifdef __cplusplus
9680 extern "C"
9681 #endif
9682 char tgetent ();
9683 int
9684 main ()
9685 {
9686 return tgetent ();
9687   ;
9688   return 0;
9689 }
9690 _ACEOF
9691 for ac_lib in '' termcap tinfo curses ncurses; do
9692   if test -z "$ac_lib"; then
9693     ac_res="none required"
9694   else
9695     ac_res=-l$ac_lib
9696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9697   fi
9698   if ac_fn_c_try_link "$LINENO"; then :
9699   ac_cv_search_tgetent=$ac_res
9700 fi
9701 rm -f core conftest.err conftest.$ac_objext \
9702     conftest$ac_exeext
9703   if test "${ac_cv_search_tgetent+set}" = set; then :
9704   break
9705 fi
9706 done
9707 if test "${ac_cv_search_tgetent+set}" = set; then :
9708
9709 else
9710   ac_cv_search_tgetent=no
9711 fi
9712 rm conftest.$ac_ext
9713 LIBS=$ac_func_search_save_LIBS
9714 fi
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9716 $as_echo "$ac_cv_search_tgetent" >&6; }
9717 ac_res=$ac_cv_search_tgetent
9718 if test "$ac_res" != no; then :
9719   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9720
9721 fi
9722
9723
9724 if test "$ac_cv_search_tgetent" = no; then
9725   as_fn_error "no termcap library found" "$LINENO" 5
9726 fi
9727
9728
9729 # Check whether --with-system-readline was given.
9730 if test "${with_system_readline+set}" = set; then :
9731   withval=$with_system_readline;
9732 fi
9733
9734
9735 if test "$with_system_readline" = yes; then
9736   READLINE=-lreadline
9737   READLINE_DEPS=
9738   READLINE_CFLAGS=
9739
9740   # readline-6.0 started to use the name `_rl_echoing_p'.
9741   # `$(READLINE_DIR)/' of bundled readline would not resolve in configure.
9742
9743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline_echoing_p" >&5
9744 $as_echo_n "checking for readline_echoing_p... " >&6; }
9745   save_LIBS=$LIBS
9746   LIBS="$LIBS $READLINE"
9747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h.  */
9749
9750 int
9751 main ()
9752 {
9753 extern int readline_echoing_p;
9754                                     return readline_echoing_p;
9755   ;
9756   return 0;
9757 }
9758 _ACEOF
9759 if ac_fn_c_try_link "$LINENO"; then :
9760   READLINE_ECHOING_P=yes
9761 else
9762   READLINE_ECHOING_P=no
9763
9764 $as_echo "#define readline_echoing_p _rl_echoing_p" >>confdefs.h
9765
9766 fi
9767 rm -f core conftest.err conftest.$ac_objext \
9768     conftest$ac_exeext conftest.$ac_ext
9769   LIBS="$save_LIBS"
9770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_ECHOING_P" >&5
9771 $as_echo "$READLINE_ECHOING_P" >&6; }
9772 else
9773   READLINE='$(READLINE_DIR)/libreadline.a'
9774   READLINE_DEPS='$(READLINE)'
9775   READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9776 fi
9777
9778
9779
9780
9781
9782 # Check whether --with-expat was given.
9783 if test "${with_expat+set}" = set; then :
9784   withval=$with_expat;
9785 else
9786   with_expat=auto
9787 fi
9788
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9790 $as_echo_n "checking whether to use expat... " >&6; }
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9792 $as_echo "$with_expat" >&6; }
9793
9794 if test "${with_expat}" = no; then
9795   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9796 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9797   HAVE_LIBEXPAT=no
9798 else
9799
9800       if test "X$prefix" = "XNONE"; then
9801     acl_final_prefix="$ac_default_prefix"
9802   else
9803     acl_final_prefix="$prefix"
9804   fi
9805   if test "X$exec_prefix" = "XNONE"; then
9806     acl_final_exec_prefix='${prefix}'
9807   else
9808     acl_final_exec_prefix="$exec_prefix"
9809   fi
9810   acl_save_prefix="$prefix"
9811   prefix="$acl_final_prefix"
9812   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9813   prefix="$acl_save_prefix"
9814
9815
9816 # Check whether --with-gnu-ld was given.
9817 if test "${with_gnu_ld+set}" = set; then :
9818   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9819 else
9820   with_gnu_ld=no
9821 fi
9822
9823 # Prepare PATH_SEPARATOR.
9824 # The user is always right.
9825 if test "${PATH_SEPARATOR+set}" != set; then
9826   echo "#! /bin/sh" >conf$$.sh
9827   echo  "exit 0"   >>conf$$.sh
9828   chmod +x conf$$.sh
9829   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9830     PATH_SEPARATOR=';'
9831   else
9832     PATH_SEPARATOR=:
9833   fi
9834   rm -f conf$$.sh
9835 fi
9836 ac_prog=ld
9837 if test "$GCC" = yes; then
9838   # Check if gcc -print-prog-name=ld gives a path.
9839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
9840 $as_echo_n "checking for ld used by GCC... " >&6; }
9841   case $host in
9842   *-*-mingw*)
9843     # gcc leaves a trailing carriage return which upsets mingw
9844     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9845   *)
9846     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9847   esac
9848   case $ac_prog in
9849     # Accept absolute paths.
9850     [\\/]* | [A-Za-z]:[\\/]*)
9851       re_direlt='/[^/][^/]*/\.\./'
9852       # Canonicalize the path of ld
9853       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9854       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9855         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9856       done
9857       test -z "$LD" && LD="$ac_prog"
9858       ;;
9859   "")
9860     # If it fails, then pretend we aren't using GCC.
9861     ac_prog=ld
9862     ;;
9863   *)
9864     # If it is relative, then search for the first ld in PATH.
9865     with_gnu_ld=unknown
9866     ;;
9867   esac
9868 elif test "$with_gnu_ld" = yes; then
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9870 $as_echo_n "checking for GNU ld... " >&6; }
9871 else
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9873 $as_echo_n "checking for non-GNU ld... " >&6; }
9874 fi
9875 if test "${acl_cv_path_LD+set}" = set; then :
9876   $as_echo_n "(cached) " >&6
9877 else
9878   if test -z "$LD"; then
9879   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9880   for ac_dir in $PATH; do
9881     test -z "$ac_dir" && ac_dir=.
9882     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9883       acl_cv_path_LD="$ac_dir/$ac_prog"
9884       # Check to see if the program is GNU ld.  I'd rather use --version,
9885       # but apparently some GNU ld's only accept -v.
9886       # Break only if it was the GNU/non-GNU ld that we prefer.
9887       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9888         test "$with_gnu_ld" != no && break
9889       else
9890         test "$with_gnu_ld" != yes && break
9891       fi
9892     fi
9893   done
9894   IFS="$ac_save_ifs"
9895 else
9896   acl_cv_path_LD="$LD" # Let the user override the test with a path.
9897 fi
9898 fi
9899
9900 LD="$acl_cv_path_LD"
9901 if test -n "$LD"; then
9902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9903 $as_echo "$LD" >&6; }
9904 else
9905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906 $as_echo "no" >&6; }
9907 fi
9908 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9911 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
9912   $as_echo_n "(cached) " >&6
9913 else
9914   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9915 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9916   acl_cv_prog_gnu_ld=yes
9917 else
9918   acl_cv_prog_gnu_ld=no
9919 fi
9920 fi
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
9922 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9923 with_gnu_ld=$acl_cv_prog_gnu_ld
9924
9925
9926
9927                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
9928 $as_echo_n "checking for shared library run path origin... " >&6; }
9929 if test "${acl_cv_rpath+set}" = set; then :
9930   $as_echo_n "(cached) " >&6
9931 else
9932
9933     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9934     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9935     . ./conftest.sh
9936     rm -f ./conftest.sh
9937     acl_cv_rpath=done
9938
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
9941 $as_echo "$acl_cv_rpath" >&6; }
9942   wl="$acl_cv_wl"
9943   libext="$acl_cv_libext"
9944   shlibext="$acl_cv_shlibext"
9945   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9946   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9947   hardcode_direct="$acl_cv_hardcode_direct"
9948   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9949     # Check whether --enable-rpath was given.
9950 if test "${enable_rpath+set}" = set; then :
9951   enableval=$enable_rpath; :
9952 else
9953   enable_rpath=yes
9954 fi
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965     use_additional=yes
9966
9967   acl_save_prefix="$prefix"
9968   prefix="$acl_final_prefix"
9969   acl_save_exec_prefix="$exec_prefix"
9970   exec_prefix="$acl_final_exec_prefix"
9971
9972     eval additional_includedir=\"$includedir\"
9973     eval additional_libdir=\"$libdir\"
9974
9975   exec_prefix="$acl_save_exec_prefix"
9976   prefix="$acl_save_prefix"
9977
9978
9979 # Check whether --with-libexpat-prefix was given.
9980 if test "${with_libexpat_prefix+set}" = set; then :
9981   withval=$with_libexpat_prefix;
9982     if test "X$withval" = "Xno"; then
9983       use_additional=no
9984     else
9985       if test "X$withval" = "X"; then
9986
9987   acl_save_prefix="$prefix"
9988   prefix="$acl_final_prefix"
9989   acl_save_exec_prefix="$exec_prefix"
9990   exec_prefix="$acl_final_exec_prefix"
9991
9992           eval additional_includedir=\"$includedir\"
9993           eval additional_libdir=\"$libdir\"
9994
9995   exec_prefix="$acl_save_exec_prefix"
9996   prefix="$acl_save_prefix"
9997
9998       else
9999         additional_includedir="$withval/include"
10000         additional_libdir="$withval/lib"
10001       fi
10002     fi
10003
10004 fi
10005
10006       LIBEXPAT=
10007   LTLIBEXPAT=
10008   INCEXPAT=
10009   rpathdirs=
10010   ltrpathdirs=
10011   names_already_handled=
10012   names_next_round='expat '
10013   while test -n "$names_next_round"; do
10014     names_this_round="$names_next_round"
10015     names_next_round=
10016     for name in $names_this_round; do
10017       already_handled=
10018       for n in $names_already_handled; do
10019         if test "$n" = "$name"; then
10020           already_handled=yes
10021           break
10022         fi
10023       done
10024       if test -z "$already_handled"; then
10025         names_already_handled="$names_already_handled $name"
10026                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10027         eval value=\"\$HAVE_LIB$uppername\"
10028         if test -n "$value"; then
10029           if test "$value" = yes; then
10030             eval value=\"\$LIB$uppername\"
10031             test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10032             eval value=\"\$LTLIB$uppername\"
10033             test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10034           else
10035                                     :
10036           fi
10037         else
10038                               found_dir=
10039           found_la=
10040           found_so=
10041           found_a=
10042           if test $use_additional = yes; then
10043             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10044               found_dir="$additional_libdir"
10045               found_so="$additional_libdir/lib$name.$shlibext"
10046               if test -f "$additional_libdir/lib$name.la"; then
10047                 found_la="$additional_libdir/lib$name.la"
10048               fi
10049             else
10050               if test -f "$additional_libdir/lib$name.$libext"; then
10051                 found_dir="$additional_libdir"
10052                 found_a="$additional_libdir/lib$name.$libext"
10053                 if test -f "$additional_libdir/lib$name.la"; then
10054                   found_la="$additional_libdir/lib$name.la"
10055                 fi
10056               fi
10057             fi
10058           fi
10059           if test "X$found_dir" = "X"; then
10060             for x in $LDFLAGS $LTLIBEXPAT; do
10061
10062   acl_save_prefix="$prefix"
10063   prefix="$acl_final_prefix"
10064   acl_save_exec_prefix="$exec_prefix"
10065   exec_prefix="$acl_final_exec_prefix"
10066   eval x=\"$x\"
10067   exec_prefix="$acl_save_exec_prefix"
10068   prefix="$acl_save_prefix"
10069
10070               case "$x" in
10071                 -L*)
10072                   dir=`echo "X$x" | sed -e 's/^X-L//'`
10073                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10074                     found_dir="$dir"
10075                     found_so="$dir/lib$name.$shlibext"
10076                     if test -f "$dir/lib$name.la"; then
10077                       found_la="$dir/lib$name.la"
10078                     fi
10079                   else
10080                     if test -f "$dir/lib$name.$libext"; then
10081                       found_dir="$dir"
10082                       found_a="$dir/lib$name.$libext"
10083                       if test -f "$dir/lib$name.la"; then
10084                         found_la="$dir/lib$name.la"
10085                       fi
10086                     fi
10087                   fi
10088                   ;;
10089               esac
10090               if test "X$found_dir" != "X"; then
10091                 break
10092               fi
10093             done
10094           fi
10095           if test "X$found_dir" != "X"; then
10096                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10097             if test "X$found_so" != "X"; then
10098                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10099                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10100               else
10101                                                                                 haveit=
10102                 for x in $ltrpathdirs; do
10103                   if test "X$x" = "X$found_dir"; then
10104                     haveit=yes
10105                     break
10106                   fi
10107                 done
10108                 if test -z "$haveit"; then
10109                   ltrpathdirs="$ltrpathdirs $found_dir"
10110                 fi
10111                                 if test "$hardcode_direct" = yes; then
10112                                                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10113                 else
10114                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10115                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10116                                                             haveit=
10117                     for x in $rpathdirs; do
10118                       if test "X$x" = "X$found_dir"; then
10119                         haveit=yes
10120                         break
10121                       fi
10122                     done
10123                     if test -z "$haveit"; then
10124                       rpathdirs="$rpathdirs $found_dir"
10125                     fi
10126                   else
10127                                                                                 haveit=
10128                     for x in $LDFLAGS $LIBEXPAT; do
10129
10130   acl_save_prefix="$prefix"
10131   prefix="$acl_final_prefix"
10132   acl_save_exec_prefix="$exec_prefix"
10133   exec_prefix="$acl_final_exec_prefix"
10134   eval x=\"$x\"
10135   exec_prefix="$acl_save_exec_prefix"
10136   prefix="$acl_save_prefix"
10137
10138                       if test "X$x" = "X-L$found_dir"; then
10139                         haveit=yes
10140                         break
10141                       fi
10142                     done
10143                     if test -z "$haveit"; then
10144                       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10145                     fi
10146                     if test "$hardcode_minus_L" != no; then
10147                                                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10148                     else
10149                                                                                                                                                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10150                     fi
10151                   fi
10152                 fi
10153               fi
10154             else
10155               if test "X$found_a" != "X"; then
10156                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10157               else
10158                                                 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10159               fi
10160             fi
10161                         additional_includedir=
10162             case "$found_dir" in
10163               */lib | */lib/)
10164                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10165                 additional_includedir="$basedir/include"
10166                 ;;
10167             esac
10168             if test "X$additional_includedir" != "X"; then
10169                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
10170                 haveit=
10171                 if test "X$additional_includedir" = "X/usr/local/include"; then
10172                   if test -n "$GCC"; then
10173                     case $host_os in
10174                       linux*) haveit=yes;;
10175                     esac
10176                   fi
10177                 fi
10178                 if test -z "$haveit"; then
10179                   for x in $CPPFLAGS $INCEXPAT; do
10180
10181   acl_save_prefix="$prefix"
10182   prefix="$acl_final_prefix"
10183   acl_save_exec_prefix="$exec_prefix"
10184   exec_prefix="$acl_final_exec_prefix"
10185   eval x=\"$x\"
10186   exec_prefix="$acl_save_exec_prefix"
10187   prefix="$acl_save_prefix"
10188
10189                     if test "X$x" = "X-I$additional_includedir"; then
10190                       haveit=yes
10191                       break
10192                     fi
10193                   done
10194                   if test -z "$haveit"; then
10195                     if test -d "$additional_includedir"; then
10196                                             INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10197                     fi
10198                   fi
10199                 fi
10200               fi
10201             fi
10202                         if test -n "$found_la"; then
10203                                                         save_libdir="$libdir"
10204               case "$found_la" in
10205                 */* | *\\*) . "$found_la" ;;
10206                 *) . "./$found_la" ;;
10207               esac
10208               libdir="$save_libdir"
10209                             for dep in $dependency_libs; do
10210                 case "$dep" in
10211                   -L*)
10212                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10213                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
10214                       haveit=
10215                       if test "X$additional_libdir" = "X/usr/local/lib"; then
10216                         if test -n "$GCC"; then
10217                           case $host_os in
10218                             linux*) haveit=yes;;
10219                           esac
10220                         fi
10221                       fi
10222                       if test -z "$haveit"; then
10223                         haveit=
10224                         for x in $LDFLAGS $LIBEXPAT; do
10225
10226   acl_save_prefix="$prefix"
10227   prefix="$acl_final_prefix"
10228   acl_save_exec_prefix="$exec_prefix"
10229   exec_prefix="$acl_final_exec_prefix"
10230   eval x=\"$x\"
10231   exec_prefix="$acl_save_exec_prefix"
10232   prefix="$acl_save_prefix"
10233
10234                           if test "X$x" = "X-L$additional_libdir"; then
10235                             haveit=yes
10236                             break
10237                           fi
10238                         done
10239                         if test -z "$haveit"; then
10240                           if test -d "$additional_libdir"; then
10241                                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10242                           fi
10243                         fi
10244                         haveit=
10245                         for x in $LDFLAGS $LTLIBEXPAT; do
10246
10247   acl_save_prefix="$prefix"
10248   prefix="$acl_final_prefix"
10249   acl_save_exec_prefix="$exec_prefix"
10250   exec_prefix="$acl_final_exec_prefix"
10251   eval x=\"$x\"
10252   exec_prefix="$acl_save_exec_prefix"
10253   prefix="$acl_save_prefix"
10254
10255                           if test "X$x" = "X-L$additional_libdir"; then
10256                             haveit=yes
10257                             break
10258                           fi
10259                         done
10260                         if test -z "$haveit"; then
10261                           if test -d "$additional_libdir"; then
10262                                                         LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10263                           fi
10264                         fi
10265                       fi
10266                     fi
10267                     ;;
10268                   -R*)
10269                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
10270                     if test "$enable_rpath" != no; then
10271                                                                   haveit=
10272                       for x in $rpathdirs; do
10273                         if test "X$x" = "X$dir"; then
10274                           haveit=yes
10275                           break
10276                         fi
10277                       done
10278                       if test -z "$haveit"; then
10279                         rpathdirs="$rpathdirs $dir"
10280                       fi
10281                                                                   haveit=
10282                       for x in $ltrpathdirs; do
10283                         if test "X$x" = "X$dir"; then
10284                           haveit=yes
10285                           break
10286                         fi
10287                       done
10288                       if test -z "$haveit"; then
10289                         ltrpathdirs="$ltrpathdirs $dir"
10290                       fi
10291                     fi
10292                     ;;
10293                   -l*)
10294                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10295                     ;;
10296                   *.la)
10297                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10298                     ;;
10299                   *)
10300                                         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10301                     LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10302                     ;;
10303                 esac
10304               done
10305             fi
10306           else
10307                                                             LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10308             LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10309           fi
10310         fi
10311       fi
10312     done
10313   done
10314   if test "X$rpathdirs" != "X"; then
10315     if test -n "$hardcode_libdir_separator"; then
10316                         alldirs=
10317       for found_dir in $rpathdirs; do
10318         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10319       done
10320             acl_save_libdir="$libdir"
10321       libdir="$alldirs"
10322       eval flag=\"$hardcode_libdir_flag_spec\"
10323       libdir="$acl_save_libdir"
10324       LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10325     else
10326             for found_dir in $rpathdirs; do
10327         acl_save_libdir="$libdir"
10328         libdir="$found_dir"
10329         eval flag=\"$hardcode_libdir_flag_spec\"
10330         libdir="$acl_save_libdir"
10331         LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10332       done
10333     fi
10334   fi
10335   if test "X$ltrpathdirs" != "X"; then
10336             for found_dir in $ltrpathdirs; do
10337       LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10338     done
10339   fi
10340
10341
10342         ac_save_CPPFLAGS="$CPPFLAGS"
10343
10344   for element in $INCEXPAT; do
10345     haveit=
10346     for x in $CPPFLAGS; do
10347
10348   acl_save_prefix="$prefix"
10349   prefix="$acl_final_prefix"
10350   acl_save_exec_prefix="$exec_prefix"
10351   exec_prefix="$acl_final_exec_prefix"
10352   eval x=\"$x\"
10353   exec_prefix="$acl_save_exec_prefix"
10354   prefix="$acl_save_prefix"
10355
10356       if test "X$x" = "X$element"; then
10357         haveit=yes
10358         break
10359       fi
10360     done
10361     if test -z "$haveit"; then
10362       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10363     fi
10364   done
10365
10366
10367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10368 $as_echo_n "checking for libexpat... " >&6; }
10369 if test "${ac_cv_libexpat+set}" = set; then :
10370   $as_echo_n "(cached) " >&6
10371 else
10372
10373     ac_save_LIBS="$LIBS"
10374     LIBS="$LIBS $LIBEXPAT"
10375     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10376 /* end confdefs.h.  */
10377 #include "expat.h"
10378 int
10379 main ()
10380 {
10381 XML_Parser p = XML_ParserCreate (0);
10382   ;
10383   return 0;
10384 }
10385 _ACEOF
10386 if ac_fn_c_try_link "$LINENO"; then :
10387   ac_cv_libexpat=yes
10388 else
10389   ac_cv_libexpat=no
10390 fi
10391 rm -f core conftest.err conftest.$ac_objext \
10392     conftest$ac_exeext conftest.$ac_ext
10393     LIBS="$ac_save_LIBS"
10394
10395 fi
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10397 $as_echo "$ac_cv_libexpat" >&6; }
10398   if test "$ac_cv_libexpat" = yes; then
10399     HAVE_LIBEXPAT=yes
10400
10401 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10402
10403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10404 $as_echo_n "checking how to link with libexpat... " >&6; }
10405     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10406 $as_echo "$LIBEXPAT" >&6; }
10407   else
10408     HAVE_LIBEXPAT=no
10409             CPPFLAGS="$ac_save_CPPFLAGS"
10410     LIBEXPAT=
10411     LTLIBEXPAT=
10412   fi
10413
10414
10415
10416
10417
10418
10419   if test "$HAVE_LIBEXPAT" != yes; then
10420     if test "$with_expat" = yes; then
10421       as_fn_error "expat is missing or unusable" "$LINENO" 5
10422     else
10423       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10424 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10425     fi
10426   else
10427     save_LIBS=$LIBS
10428     LIBS="$LIBS $LIBEXPAT"
10429     for ac_func in XML_StopParser
10430 do :
10431   ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10432 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10433   cat >>confdefs.h <<_ACEOF
10434 #define HAVE_XML_STOPPARSER 1
10435 _ACEOF
10436
10437 fi
10438 done
10439
10440     LIBS=$save_LIBS
10441   fi
10442 fi
10443
10444
10445
10446
10447
10448
10449 # Check whether --with-python was given.
10450 if test "${with_python+set}" = set; then :
10451   withval=$with_python;
10452 else
10453   with_python=auto
10454 fi
10455
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10457 $as_echo_n "checking whether to use python... " >&6; }
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10459 $as_echo "$with_python" >&6; }
10460
10461 if test "${with_python}" = no; then
10462   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10463 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10464   have_libpython=no
10465 else
10466   case "${with_python}" in
10467   /*)
10468     if test -d ${with_python}; then
10469       # Assume the python binary is ${with_python}/bin/python.
10470       python_prog="${with_python}/bin/python"
10471       python_prefix=
10472       if test ! -x "${python_prog}"; then
10473         # Fall back to gdb 7.0/7.1 behaviour.
10474         python_prog=missing
10475         python_prefix=${with_python}
10476       fi
10477     elif test -x "${with_python}"; then
10478       # While we can't run python compiled for $host (unless host == build),
10479       # the user could write a script that provides the needed information,
10480       # so we support that.
10481       python_prog=${with_python}
10482       python_prefix=
10483     else
10484       as_fn_error "invalid value for --with-python" "$LINENO" 5
10485     fi
10486     ;;
10487   */*)
10488     # Disallow --with-python=foo/bar.
10489     as_fn_error "invalid value for --with-python" "$LINENO" 5
10490     ;;
10491   *)
10492     # The user has either specified auto, yes, or the name of the python
10493     # program assumed to be in $PATH.
10494     python_prefix=
10495     case "${with_python}" in
10496     yes | auto)
10497       if test ${build} = ${host}; then
10498         # Extract the first word of "python", so it can be a program name with args.
10499 set dummy python; ac_word=$2
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501 $as_echo_n "checking for $ac_word... " >&6; }
10502 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10503   $as_echo_n "(cached) " >&6
10504 else
10505   case $python_prog_path in
10506   [\\/]* | ?:[\\/]*)
10507   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10508   ;;
10509   *)
10510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511 for as_dir in $PATH
10512 do
10513   IFS=$as_save_IFS
10514   test -z "$as_dir" && as_dir=.
10515     for ac_exec_ext in '' $ac_executable_extensions; do
10516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519     break 2
10520   fi
10521 done
10522   done
10523 IFS=$as_save_IFS
10524
10525   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10526   ;;
10527 esac
10528 fi
10529 python_prog_path=$ac_cv_path_python_prog_path
10530 if test -n "$python_prog_path"; then
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10532 $as_echo "$python_prog_path" >&6; }
10533 else
10534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535 $as_echo "no" >&6; }
10536 fi
10537
10538
10539         if test "${python_prog_path}" = missing; then
10540           python_prog=missing
10541         else
10542           python_prog=${python_prog_path}
10543         fi
10544       else
10545         # Not much we can do except assume the cross-compiler will find the
10546         # right files.
10547         python_prog=missing
10548       fi
10549       ;;
10550     *)
10551       # While we can't run python compiled for $host (unless host == build),
10552       # the user could write a script that provides the needed information,
10553       # so we support that.
10554       python_prog="${with_python}"
10555       # Extract the first word of "${python_prog}", so it can be a program name with args.
10556 set dummy ${python_prog}; ac_word=$2
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10558 $as_echo_n "checking for $ac_word... " >&6; }
10559 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10560   $as_echo_n "(cached) " >&6
10561 else
10562   case $python_prog_path in
10563   [\\/]* | ?:[\\/]*)
10564   ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10565   ;;
10566   *)
10567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10568 for as_dir in $PATH
10569 do
10570   IFS=$as_save_IFS
10571   test -z "$as_dir" && as_dir=.
10572     for ac_exec_ext in '' $ac_executable_extensions; do
10573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10574     ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10576     break 2
10577   fi
10578 done
10579   done
10580 IFS=$as_save_IFS
10581
10582   test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10583   ;;
10584 esac
10585 fi
10586 python_prog_path=$ac_cv_path_python_prog_path
10587 if test -n "$python_prog_path"; then
10588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10589 $as_echo "$python_prog_path" >&6; }
10590 else
10591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10593 fi
10594
10595
10596       if test "${python_prog_path}" = missing; then
10597         as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10598       fi
10599       ;;
10600     esac
10601   esac
10602
10603   if test "${python_prog}" != missing; then
10604     # We have a python program to use, but it may be too old.
10605     # Don't flag an error for --with-python=auto (the default).
10606     have_python_config=yes
10607     python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10608     if test $? != 0; then
10609       have_python_config=failed
10610       if test "${with_python}" != auto; then
10611         as_fn_error "failure running python-config --includes" "$LINENO" 5
10612       fi
10613     fi
10614     python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10615     if test $? != 0; then
10616       have_python_config=failed
10617       if test "${with_python}" != auto; then
10618         as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10619       fi
10620     fi
10621     python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10622     if test $? != 0; then
10623       have_python_config=failed
10624       if test "${with_python}" != auto; then
10625         as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10626       fi
10627     fi
10628   else
10629     # Fall back to gdb 7.0/7.1 behaviour.
10630     if test -z ${python_prefix}; then
10631       python_includes=
10632       python_libs=
10633     else
10634       python_includes="-I${python_prefix}/include"
10635       python_libs="-L${python_prefix}/lib"
10636     fi
10637     have_python_config=no
10638   fi
10639
10640   # Having "/pythonX.Y" in the include path is awkward.
10641   # All those python headers get bubbled up to the top inviting lots
10642   # of random collisions.  GDB originally didn't use python-config to
10643   # find the compilation parameters and includes "pythonX.Y/" in the
10644   # path of the, umm, include file.  So strip away this part of the
10645   # output of python-config --includes.
10646   python_includes=`echo "${python_includes} " \
10647                         | sed -e 's,/python[0-9]*[.][0-9]* , ,g'`
10648
10649   # If we have python-config, only try the configuration it provides.
10650   # Otherwise fallback on the old way of trying different versions of
10651   # python in turn.
10652
10653   have_libpython=no
10654   if test "${have_python_config}" = yes; then
10655     python_version=`echo " ${python_libs} " \
10656                          | sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\) .*$,\1,'`
10657     case "${python_version}" in
10658     python*)
10659
10660   version=${python_version}
10661
10662   new_CPPFLAGS=${python_includes}
10663   new_LIBS=${python_libs}
10664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10665 $as_echo_n "checking for ${version}... " >&6; }
10666   save_CPPFLAGS=$CPPFLAGS
10667   save_LIBS=$LIBS
10668   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10669   LIBS="$LIBS $new_LIBS"
10670   found_usable_python=no
10671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672 /* end confdefs.h.  */
10673 #include "${version}/Python.h"
10674 int
10675 main ()
10676 {
10677 Py_Initialize ();
10678   ;
10679   return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_link "$LINENO"; then :
10683   have_libpython=${version}
10684                   found_usable_python=yes
10685 else
10686   CPPFLAGS=$save_CPPFLAGS
10687                   LIBS=$save_LIBS
10688 fi
10689 rm -f core conftest.err conftest.$ac_objext \
10690     conftest$ac_exeext conftest.$ac_ext
10691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10692 $as_echo "${found_usable_python}" >&6; }
10693
10694       ;;
10695     *)
10696       as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10697       ;;
10698     esac
10699   elif test "${have_python_config}" != failed; then
10700     if test "${have_libpython}" = no; then
10701
10702   version=python2.6
10703
10704   new_CPPFLAGS=${python_includes}
10705   new_LIBS="${python_libs} -lpython2.6"
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10707 $as_echo_n "checking for ${version}... " >&6; }
10708   save_CPPFLAGS=$CPPFLAGS
10709   save_LIBS=$LIBS
10710   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10711   LIBS="$LIBS $new_LIBS"
10712   found_usable_python=no
10713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h.  */
10715 #include "${version}/Python.h"
10716 int
10717 main ()
10718 {
10719 Py_Initialize ();
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 if ac_fn_c_try_link "$LINENO"; then :
10725   have_libpython=${version}
10726                   found_usable_python=yes
10727 else
10728   CPPFLAGS=$save_CPPFLAGS
10729                   LIBS=$save_LIBS
10730 fi
10731 rm -f core conftest.err conftest.$ac_objext \
10732     conftest$ac_exeext conftest.$ac_ext
10733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10734 $as_echo "${found_usable_python}" >&6; }
10735
10736     fi
10737     if test ${have_libpython} = no; then
10738
10739   version=python2.5
10740
10741   new_CPPFLAGS=${python_includes}
10742   new_LIBS="${python_libs} -lpython2.5"
10743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10744 $as_echo_n "checking for ${version}... " >&6; }
10745   save_CPPFLAGS=$CPPFLAGS
10746   save_LIBS=$LIBS
10747   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10748   LIBS="$LIBS $new_LIBS"
10749   found_usable_python=no
10750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10751 /* end confdefs.h.  */
10752 #include "${version}/Python.h"
10753 int
10754 main ()
10755 {
10756 Py_Initialize ();
10757   ;
10758   return 0;
10759 }
10760 _ACEOF
10761 if ac_fn_c_try_link "$LINENO"; then :
10762   have_libpython=${version}
10763                   found_usable_python=yes
10764 else
10765   CPPFLAGS=$save_CPPFLAGS
10766                   LIBS=$save_LIBS
10767 fi
10768 rm -f core conftest.err conftest.$ac_objext \
10769     conftest$ac_exeext conftest.$ac_ext
10770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10771 $as_echo "${found_usable_python}" >&6; }
10772
10773     fi
10774     if test ${have_libpython} = no; then
10775
10776   version=python2.4
10777
10778   new_CPPFLAGS=${python_includes}
10779   new_LIBS="${python_libs} -lpython2.4"
10780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10781 $as_echo_n "checking for ${version}... " >&6; }
10782   save_CPPFLAGS=$CPPFLAGS
10783   save_LIBS=$LIBS
10784   CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10785   LIBS="$LIBS $new_LIBS"
10786   found_usable_python=no
10787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h.  */
10789 #include "${version}/Python.h"
10790 int
10791 main ()
10792 {
10793 Py_Initialize ();
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_link "$LINENO"; then :
10799   have_libpython=${version}
10800                   found_usable_python=yes
10801 else
10802   CPPFLAGS=$save_CPPFLAGS
10803                   LIBS=$save_LIBS
10804 fi
10805 rm -f core conftest.err conftest.$ac_objext \
10806     conftest$ac_exeext conftest.$ac_ext
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10808 $as_echo "${found_usable_python}" >&6; }
10809
10810     fi
10811   fi
10812   if test "${have_libpython}" = python2.6; then
10813
10814 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10815
10816   elif test "${have_libpython}" = python2.5; then
10817
10818 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10819
10820   elif test "${have_libpython}" = python2.4; then
10821
10822 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10823
10824   fi
10825
10826   if test "${have_libpython}" = no; then
10827     case "${with_python}" in
10828     yes)
10829       as_fn_error "python is missing or unusable" "$LINENO" 5
10830       ;;
10831     auto)
10832       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10833 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10834       ;;
10835     *)
10836       as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
10837       ;;
10838     esac
10839   else
10840     if test -n "${python_prefix}"; then
10841
10842 cat >>confdefs.h <<_ACEOF
10843 #define WITH_PYTHON_PATH "${python_prefix}"
10844 _ACEOF
10845
10846
10847   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10848      if test "x$prefix" = xNONE; then
10849         test_prefix=/usr/local
10850      else
10851         test_prefix=$prefix
10852      fi
10853   else
10854      test_prefix=$exec_prefix
10855   fi
10856   value=0
10857   case ${python_prefix} in
10858      "${test_prefix}"|"${test_prefix}/"*|\
10859         '${exec_prefix}'|'${exec_prefix}/'*)
10860      value=1
10861      ;;
10862   esac
10863
10864 cat >>confdefs.h <<_ACEOF
10865 #define PYTHON_PATH_RELOCATABLE $value
10866 _ACEOF
10867
10868
10869     fi
10870   fi
10871 fi
10872
10873 if test "${have_libpython}" != no; then
10874
10875 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10876
10877   CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10878   CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10879   CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10880   ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10881
10882   # Flags needed to compile Python code (taken from python-config --cflags).
10883   # We cannot call python-config directly because it will output whatever was
10884   # used when compiling the Python interpreter itself, including flags which
10885   # would make the python-related objects be compiled differently from the
10886   # rest of GDB (e.g., -O2 and -fPIC).
10887   if test "${GCC}" = yes; then
10888     tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
10889   fi
10890
10891   if test "x${tentative_python_cflags}" != x; then
10892     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10893 $as_echo_n "checking compiler flags for python code... " >&6; }
10894     for flag in ${tentative_python_cflags}; do
10895       # Check that the compiler accepts it
10896       saved_CFLAGS="$CFLAGS"
10897       CFLAGS="$CFLAGS $flag"
10898       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10899 /* end confdefs.h.  */
10900
10901 int
10902 main ()
10903 {
10904
10905   ;
10906   return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_compile "$LINENO"; then :
10910   PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10911 fi
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913       CFLAGS="$saved_CFLAGS"
10914     done
10915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10916 $as_echo "${PYTHON_CFLAGS}" >&6; }
10917   fi
10918 else
10919   # Even if Python support is not compiled in, we need to have these files
10920   # included.
10921   CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
10922   CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
10923         python/py-prettyprint.c python/py-auto-load.c"
10924 fi
10925
10926
10927 # ------------------------- #
10928 # Checks for header files.  #
10929 # ------------------------- #
10930
10931 ac_header_dirent=no
10932 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10933   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
10935 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
10936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
10937   $as_echo_n "(cached) " >&6
10938 else
10939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h.  */
10941 #include <sys/types.h>
10942 #include <$ac_hdr>
10943
10944 int
10945 main ()
10946 {
10947 if ((DIR *) 0)
10948 return 0;
10949   ;
10950   return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_compile "$LINENO"; then :
10954   eval "$as_ac_Header=yes"
10955 else
10956   eval "$as_ac_Header=no"
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 fi
10960 eval ac_res=\$$as_ac_Header
10961                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10962 $as_echo "$ac_res" >&6; }
10963 eval as_val=\$$as_ac_Header
10964    if test "x$as_val" = x""yes; then :
10965   cat >>confdefs.h <<_ACEOF
10966 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10967 _ACEOF
10968
10969 ac_header_dirent=$ac_hdr; break
10970 fi
10971
10972 done
10973 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10974 if test $ac_header_dirent = dirent.h; then
10975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
10976 $as_echo_n "checking for library containing opendir... " >&6; }
10977 if test "${ac_cv_search_opendir+set}" = set; then :
10978   $as_echo_n "(cached) " >&6
10979 else
10980   ac_func_search_save_LIBS=$LIBS
10981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h.  */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985    Use char because int might match the return type of a GCC
10986    builtin and then its argument prototype would still apply.  */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char opendir ();
10991 int
10992 main ()
10993 {
10994 return opendir ();
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 for ac_lib in '' dir; do
11000   if test -z "$ac_lib"; then
11001     ac_res="none required"
11002   else
11003     ac_res=-l$ac_lib
11004     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11005   fi
11006   if ac_fn_c_try_link "$LINENO"; then :
11007   ac_cv_search_opendir=$ac_res
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext \
11010     conftest$ac_exeext
11011   if test "${ac_cv_search_opendir+set}" = set; then :
11012   break
11013 fi
11014 done
11015 if test "${ac_cv_search_opendir+set}" = set; then :
11016
11017 else
11018   ac_cv_search_opendir=no
11019 fi
11020 rm conftest.$ac_ext
11021 LIBS=$ac_func_search_save_LIBS
11022 fi
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11024 $as_echo "$ac_cv_search_opendir" >&6; }
11025 ac_res=$ac_cv_search_opendir
11026 if test "$ac_res" != no; then :
11027   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11028
11029 fi
11030
11031 else
11032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11033 $as_echo_n "checking for library containing opendir... " >&6; }
11034 if test "${ac_cv_search_opendir+set}" = set; then :
11035   $as_echo_n "(cached) " >&6
11036 else
11037   ac_func_search_save_LIBS=$LIBS
11038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h.  */
11040
11041 /* Override any GCC internal prototype to avoid an error.
11042    Use char because int might match the return type of a GCC
11043    builtin and then its argument prototype would still apply.  */
11044 #ifdef __cplusplus
11045 extern "C"
11046 #endif
11047 char opendir ();
11048 int
11049 main ()
11050 {
11051 return opendir ();
11052   ;
11053   return 0;
11054 }
11055 _ACEOF
11056 for ac_lib in '' x; do
11057   if test -z "$ac_lib"; then
11058     ac_res="none required"
11059   else
11060     ac_res=-l$ac_lib
11061     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11062   fi
11063   if ac_fn_c_try_link "$LINENO"; then :
11064   ac_cv_search_opendir=$ac_res
11065 fi
11066 rm -f core conftest.err conftest.$ac_objext \
11067     conftest$ac_exeext
11068   if test "${ac_cv_search_opendir+set}" = set; then :
11069   break
11070 fi
11071 done
11072 if test "${ac_cv_search_opendir+set}" = set; then :
11073
11074 else
11075   ac_cv_search_opendir=no
11076 fi
11077 rm conftest.$ac_ext
11078 LIBS=$ac_func_search_save_LIBS
11079 fi
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11081 $as_echo "$ac_cv_search_opendir" >&6; }
11082 ac_res=$ac_cv_search_opendir
11083 if test "$ac_res" != no; then :
11084   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11085
11086 fi
11087
11088 fi
11089
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11091 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11092 if test "${ac_cv_header_stat_broken+set}" = set; then :
11093   $as_echo_n "(cached) " >&6
11094 else
11095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11096 /* end confdefs.h.  */
11097 #include <sys/types.h>
11098 #include <sys/stat.h>
11099
11100 #if defined S_ISBLK && defined S_IFDIR
11101 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11102 #endif
11103
11104 #if defined S_ISBLK && defined S_IFCHR
11105 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11106 #endif
11107
11108 #if defined S_ISLNK && defined S_IFREG
11109 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11110 #endif
11111
11112 #if defined S_ISSOCK && defined S_IFREG
11113 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11114 #endif
11115
11116 _ACEOF
11117 if ac_fn_c_try_compile "$LINENO"; then :
11118   ac_cv_header_stat_broken=no
11119 else
11120   ac_cv_header_stat_broken=yes
11121 fi
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 fi
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11125 $as_echo "$ac_cv_header_stat_broken" >&6; }
11126 if test $ac_cv_header_stat_broken = yes; then
11127
11128 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11129
11130 fi
11131
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11133 $as_echo_n "checking for ANSI C header files... " >&6; }
11134 if test "${ac_cv_header_stdc+set}" = set; then :
11135   $as_echo_n "(cached) " >&6
11136 else
11137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h.  */
11139 #include <stdlib.h>
11140 #include <stdarg.h>
11141 #include <string.h>
11142 #include <float.h>
11143
11144 int
11145 main ()
11146 {
11147
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 if ac_fn_c_try_compile "$LINENO"; then :
11153   ac_cv_header_stdc=yes
11154 else
11155   ac_cv_header_stdc=no
11156 fi
11157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158
11159 if test $ac_cv_header_stdc = yes; then
11160   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h.  */
11163 #include <string.h>
11164
11165 _ACEOF
11166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11167   $EGREP "memchr" >/dev/null 2>&1; then :
11168
11169 else
11170   ac_cv_header_stdc=no
11171 fi
11172 rm -f conftest*
11173
11174 fi
11175
11176 if test $ac_cv_header_stdc = yes; then
11177   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h.  */
11180 #include <stdlib.h>
11181
11182 _ACEOF
11183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11184   $EGREP "free" >/dev/null 2>&1; then :
11185
11186 else
11187   ac_cv_header_stdc=no
11188 fi
11189 rm -f conftest*
11190
11191 fi
11192
11193 if test $ac_cv_header_stdc = yes; then
11194   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11195   if test "$cross_compiling" = yes; then :
11196   :
11197 else
11198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11199 /* end confdefs.h.  */
11200 #include <ctype.h>
11201 #include <stdlib.h>
11202 #if ((' ' & 0x0FF) == 0x020)
11203 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11204 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11205 #else
11206 # define ISLOWER(c) \
11207                    (('a' <= (c) && (c) <= 'i') \
11208                      || ('j' <= (c) && (c) <= 'r') \
11209                      || ('s' <= (c) && (c) <= 'z'))
11210 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11211 #endif
11212
11213 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11214 int
11215 main ()
11216 {
11217   int i;
11218   for (i = 0; i < 256; i++)
11219     if (XOR (islower (i), ISLOWER (i))
11220         || toupper (i) != TOUPPER (i))
11221       return 2;
11222   return 0;
11223 }
11224 _ACEOF
11225 if ac_fn_c_try_run "$LINENO"; then :
11226
11227 else
11228   ac_cv_header_stdc=no
11229 fi
11230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11231   conftest.$ac_objext conftest.beam conftest.$ac_ext
11232 fi
11233
11234 fi
11235 fi
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11237 $as_echo "$ac_cv_header_stdc" >&6; }
11238 if test $ac_cv_header_stdc = yes; then
11239
11240 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11241
11242 fi
11243
11244 # elf_hp.h is for HP/UX 64-bit shared library support.
11245 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11246 # unconditionally, so what's the point in checking these?
11247 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11248                   thread_db.h gnu/libc-version.h signal.h stddef.h \
11249                   stdlib.h string.h memory.h strings.h sys/fault.h \
11250                   sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11251                   sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11252                   sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11253                   sys/types.h sys/wait.h wait.h termios.h termio.h \
11254                   sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11255 do :
11256   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11257 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11258 eval as_val=\$$as_ac_Header
11259    if test "x$as_val" = x""yes; then :
11260   cat >>confdefs.h <<_ACEOF
11261 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11262 _ACEOF
11263
11264 fi
11265
11266 done
11267
11268 for ac_header in link.h
11269 do :
11270   ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11271 # include <sys/types.h>
11272 #endif
11273 #if HAVE_NLIST_H
11274 # include <nlist.h>
11275 #endif
11276
11277 "
11278 if test "x$ac_cv_header_link_h" = x""yes; then :
11279   cat >>confdefs.h <<_ACEOF
11280 #define HAVE_LINK_H 1
11281 _ACEOF
11282
11283 fi
11284
11285 done
11286
11287 for ac_header in sys/proc.h
11288 do :
11289   ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11290 # include <sys/param.h>
11291 #endif
11292
11293 "
11294 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11295   cat >>confdefs.h <<_ACEOF
11296 #define HAVE_SYS_PROC_H 1
11297 _ACEOF
11298
11299 fi
11300
11301 done
11302
11303 for ac_header in sys/user.h
11304 do :
11305   ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11306 # include <sys/param.h>
11307 #endif
11308
11309 "
11310 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11311   cat >>confdefs.h <<_ACEOF
11312 #define HAVE_SYS_USER_H 1
11313 _ACEOF
11314
11315 fi
11316
11317 done
11318
11319
11320 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11321 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11322 # think that we don't have <curses.h> if we're using GCC.
11323 case $host_os in
11324   solaris2.[789])
11325     if test "$GCC" = yes; then
11326
11327 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11328
11329     fi ;;
11330 esac
11331 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11332 do :
11333   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11334 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11335 eval as_val=\$$as_ac_Header
11336    if test "x$as_val" = x""yes; then :
11337   cat >>confdefs.h <<_ACEOF
11338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11339 _ACEOF
11340
11341 fi
11342
11343 done
11344
11345 for ac_header in term.h
11346 do :
11347   ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11348 # include <curses.h>
11349 #endif
11350
11351 "
11352 if test "x$ac_cv_header_term_h" = x""yes; then :
11353   cat >>confdefs.h <<_ACEOF
11354 #define HAVE_TERM_H 1
11355 _ACEOF
11356
11357 fi
11358
11359 done
11360
11361
11362 # ------------------------- #
11363 # Checks for declarations.  #
11364 # ------------------------- #
11365
11366 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11367 if test "x$ac_cv_have_decl_free" = x""yes; then :
11368   ac_have_decl=1
11369 else
11370   ac_have_decl=0
11371 fi
11372
11373 cat >>confdefs.h <<_ACEOF
11374 #define HAVE_DECL_FREE $ac_have_decl
11375 _ACEOF
11376 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11377 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11378   ac_have_decl=1
11379 else
11380   ac_have_decl=0
11381 fi
11382
11383 cat >>confdefs.h <<_ACEOF
11384 #define HAVE_DECL_MALLOC $ac_have_decl
11385 _ACEOF
11386 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11387 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11388   ac_have_decl=1
11389 else
11390   ac_have_decl=0
11391 fi
11392
11393 cat >>confdefs.h <<_ACEOF
11394 #define HAVE_DECL_REALLOC $ac_have_decl
11395 _ACEOF
11396 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11397 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11398   ac_have_decl=1
11399 else
11400   ac_have_decl=0
11401 fi
11402
11403 cat >>confdefs.h <<_ACEOF
11404 #define HAVE_DECL_STRERROR $ac_have_decl
11405 _ACEOF
11406 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11407 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11408   ac_have_decl=1
11409 else
11410   ac_have_decl=0
11411 fi
11412
11413 cat >>confdefs.h <<_ACEOF
11414 #define HAVE_DECL_STRSTR $ac_have_decl
11415 _ACEOF
11416 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11417 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11418   ac_have_decl=1
11419 else
11420   ac_have_decl=0
11421 fi
11422
11423 cat >>confdefs.h <<_ACEOF
11424 #define HAVE_DECL_GETOPT $ac_have_decl
11425 _ACEOF
11426 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11427 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11428   ac_have_decl=1
11429 else
11430   ac_have_decl=0
11431 fi
11432
11433 cat >>confdefs.h <<_ACEOF
11434 #define HAVE_DECL_SNPRINTF $ac_have_decl
11435 _ACEOF
11436 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11437 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11438   ac_have_decl=1
11439 else
11440   ac_have_decl=0
11441 fi
11442
11443 cat >>confdefs.h <<_ACEOF
11444 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11445 _ACEOF
11446
11447
11448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11449 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11450 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11451   $as_echo_n "(cached) " >&6
11452 else
11453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h.  */
11455 #include <locale.h>
11456 int
11457 main ()
11458 {
11459 return LC_MESSAGES
11460   ;
11461   return 0;
11462 }
11463 _ACEOF
11464 if ac_fn_c_try_link "$LINENO"; then :
11465   am_cv_val_LC_MESSAGES=yes
11466 else
11467   am_cv_val_LC_MESSAGES=no
11468 fi
11469 rm -f core conftest.err conftest.$ac_objext \
11470     conftest$ac_exeext conftest.$ac_ext
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11473 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11474   if test $am_cv_val_LC_MESSAGES = yes; then
11475
11476 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11477
11478   fi
11479
11480
11481 # ----------------------- #
11482 # Checks for structures.  #
11483 # ----------------------- #
11484
11485 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11486 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11487
11488 cat >>confdefs.h <<_ACEOF
11489 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11490 _ACEOF
11491
11492
11493 fi
11494 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11495 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11496
11497 cat >>confdefs.h <<_ACEOF
11498 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11499 _ACEOF
11500
11501
11502 fi
11503
11504
11505 # ------------------ #
11506 # Checks for types.  #
11507 # ------------------ #
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11510 $as_echo_n "checking return type of signal handlers... " >&6; }
11511 if test "${ac_cv_type_signal+set}" = set; then :
11512   $as_echo_n "(cached) " >&6
11513 else
11514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h.  */
11516 #include <sys/types.h>
11517 #include <signal.h>
11518
11519 int
11520 main ()
11521 {
11522 return *(signal (0, 0)) (0) == 1;
11523   ;
11524   return 0;
11525 }
11526 _ACEOF
11527 if ac_fn_c_try_compile "$LINENO"; then :
11528   ac_cv_type_signal=int
11529 else
11530   ac_cv_type_signal=void
11531 fi
11532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11533 fi
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11535 $as_echo "$ac_cv_type_signal" >&6; }
11536
11537 cat >>confdefs.h <<_ACEOF
11538 #define RETSIGTYPE $ac_cv_type_signal
11539 _ACEOF
11540
11541
11542 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11543 #include <sys/socket.h>
11544
11545 "
11546 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11547
11548 cat >>confdefs.h <<_ACEOF
11549 #define HAVE_SOCKLEN_T 1
11550 _ACEOF
11551
11552
11553 fi
11554
11555
11556 # ------------------------------------- #
11557 # Checks for compiler characteristics.  #
11558 # ------------------------------------- #
11559
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11561 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11562 if test "${ac_cv_c_const+set}" = set; then :
11563   $as_echo_n "(cached) " >&6
11564 else
11565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h.  */
11567
11568 int
11569 main ()
11570 {
11571 /* FIXME: Include the comments suggested by Paul. */
11572 #ifndef __cplusplus
11573   /* Ultrix mips cc rejects this.  */
11574   typedef int charset[2];
11575   const charset cs;
11576   /* SunOS 4.1.1 cc rejects this.  */
11577   char const *const *pcpcc;
11578   char **ppc;
11579   /* NEC SVR4.0.2 mips cc rejects this.  */
11580   struct point {int x, y;};
11581   static struct point const zero = {0,0};
11582   /* AIX XL C 1.02.0.0 rejects this.
11583      It does not let you subtract one const X* pointer from another in
11584      an arm of an if-expression whose if-part is not a constant
11585      expression */
11586   const char *g = "string";
11587   pcpcc = &g + (g ? g-g : 0);
11588   /* HPUX 7.0 cc rejects these. */
11589   ++pcpcc;
11590   ppc = (char**) pcpcc;
11591   pcpcc = (char const *const *) ppc;
11592   { /* SCO 3.2v4 cc rejects this.  */
11593     char *t;
11594     char const *s = 0 ? (char *) 0 : (char const *) 0;
11595
11596     *t++ = 0;
11597     if (s) return 0;
11598   }
11599   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11600     int x[] = {25, 17};
11601     const int *foo = &x[0];
11602     ++foo;
11603   }
11604   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11605     typedef const int *iptr;
11606     iptr p = 0;
11607     ++p;
11608   }
11609   { /* AIX XL C 1.02.0.0 rejects this saying
11610        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11611     struct s { int j; const int *ap[3]; };
11612     struct s *b; b->j = 5;
11613   }
11614   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11615     const int foo = 10;
11616     if (!foo) return 0;
11617   }
11618   return !cs[0] && !zero.x;
11619 #endif
11620
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 if ac_fn_c_try_compile "$LINENO"; then :
11626   ac_cv_c_const=yes
11627 else
11628   ac_cv_c_const=no
11629 fi
11630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11633 $as_echo "$ac_cv_c_const" >&6; }
11634 if test $ac_cv_c_const = no; then
11635
11636 $as_echo "#define const /**/" >>confdefs.h
11637
11638 fi
11639
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11641 $as_echo_n "checking for inline... " >&6; }
11642 if test "${ac_cv_c_inline+set}" = set; then :
11643   $as_echo_n "(cached) " >&6
11644 else
11645   ac_cv_c_inline=no
11646 for ac_kw in inline __inline__ __inline; do
11647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11648 /* end confdefs.h.  */
11649 #ifndef __cplusplus
11650 typedef int foo_t;
11651 static $ac_kw foo_t static_foo () {return 0; }
11652 $ac_kw foo_t foo () {return 0; }
11653 #endif
11654
11655 _ACEOF
11656 if ac_fn_c_try_compile "$LINENO"; then :
11657   ac_cv_c_inline=$ac_kw
11658 fi
11659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11660   test "$ac_cv_c_inline" != no && break
11661 done
11662
11663 fi
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11665 $as_echo "$ac_cv_c_inline" >&6; }
11666
11667 case $ac_cv_c_inline in
11668   inline | yes) ;;
11669   *)
11670     case $ac_cv_c_inline in
11671       no) ac_val=;;
11672       *) ac_val=$ac_cv_c_inline;;
11673     esac
11674     cat >>confdefs.h <<_ACEOF
11675 #ifndef __cplusplus
11676 #define inline $ac_val
11677 #endif
11678 _ACEOF
11679     ;;
11680 esac
11681
11682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11683 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11684 if test "${ac_cv_c_bigendian+set}" = set; then :
11685   $as_echo_n "(cached) " >&6
11686 else
11687   ac_cv_c_bigendian=unknown
11688     # See if we're dealing with a universal compiler.
11689     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11690 /* end confdefs.h.  */
11691 #ifndef __APPLE_CC__
11692                not a universal capable compiler
11693              #endif
11694              typedef int dummy;
11695
11696 _ACEOF
11697 if ac_fn_c_try_compile "$LINENO"; then :
11698
11699         # Check for potential -arch flags.  It is not universal unless
11700         # there are at least two -arch flags with different values.
11701         ac_arch=
11702         ac_prev=
11703         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11704          if test -n "$ac_prev"; then
11705            case $ac_word in
11706              i?86 | x86_64 | ppc | ppc64)
11707                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11708                  ac_arch=$ac_word
11709                else
11710                  ac_cv_c_bigendian=universal
11711                  break
11712                fi
11713                ;;
11714            esac
11715            ac_prev=
11716          elif test "x$ac_word" = "x-arch"; then
11717            ac_prev=arch
11718          fi
11719        done
11720 fi
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722     if test $ac_cv_c_bigendian = unknown; then
11723       # See if sys/param.h defines the BYTE_ORDER macro.
11724       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h.  */
11726 #include <sys/types.h>
11727              #include <sys/param.h>
11728
11729 int
11730 main ()
11731 {
11732 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11733                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11734                      && LITTLE_ENDIAN)
11735               bogus endian macros
11736              #endif
11737
11738   ;
11739   return 0;
11740 }
11741 _ACEOF
11742 if ac_fn_c_try_compile "$LINENO"; then :
11743   # It does; now see whether it defined to BIG_ENDIAN or not.
11744          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h.  */
11746 #include <sys/types.h>
11747                 #include <sys/param.h>
11748
11749 int
11750 main ()
11751 {
11752 #if BYTE_ORDER != BIG_ENDIAN
11753                  not big endian
11754                 #endif
11755
11756   ;
11757   return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_c_try_compile "$LINENO"; then :
11761   ac_cv_c_bigendian=yes
11762 else
11763   ac_cv_c_bigendian=no
11764 fi
11765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11766 fi
11767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768     fi
11769     if test $ac_cv_c_bigendian = unknown; then
11770       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11771       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11772 /* end confdefs.h.  */
11773 #include <limits.h>
11774
11775 int
11776 main ()
11777 {
11778 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11779               bogus endian macros
11780              #endif
11781
11782   ;
11783   return 0;
11784 }
11785 _ACEOF
11786 if ac_fn_c_try_compile "$LINENO"; then :
11787   # It does; now see whether it defined to _BIG_ENDIAN or not.
11788          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h.  */
11790 #include <limits.h>
11791
11792 int
11793 main ()
11794 {
11795 #ifndef _BIG_ENDIAN
11796                  not big endian
11797                 #endif
11798
11799   ;
11800   return 0;
11801 }
11802 _ACEOF
11803 if ac_fn_c_try_compile "$LINENO"; then :
11804   ac_cv_c_bigendian=yes
11805 else
11806   ac_cv_c_bigendian=no
11807 fi
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 fi
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11811     fi
11812     if test $ac_cv_c_bigendian = unknown; then
11813       # Compile a test program.
11814       if test "$cross_compiling" = yes; then :
11815   # Try to guess by grepping values from an object file.
11816          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h.  */
11818 short int ascii_mm[] =
11819                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11820                 short int ascii_ii[] =
11821                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11822                 int use_ascii (int i) {
11823                   return ascii_mm[i] + ascii_ii[i];
11824                 }
11825                 short int ebcdic_ii[] =
11826                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11827                 short int ebcdic_mm[] =
11828                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11829                 int use_ebcdic (int i) {
11830                   return ebcdic_mm[i] + ebcdic_ii[i];
11831                 }
11832                 extern int foo;
11833
11834 int
11835 main ()
11836 {
11837 return use_ascii (foo) == use_ebcdic (foo);
11838   ;
11839   return 0;
11840 }
11841 _ACEOF
11842 if ac_fn_c_try_compile "$LINENO"; then :
11843   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11844               ac_cv_c_bigendian=yes
11845             fi
11846             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11847               if test "$ac_cv_c_bigendian" = unknown; then
11848                 ac_cv_c_bigendian=no
11849               else
11850                 # finding both strings is unlikely to happen, but who knows?
11851                 ac_cv_c_bigendian=unknown
11852               fi
11853             fi
11854 fi
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 else
11857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h.  */
11859 $ac_includes_default
11860 int
11861 main ()
11862 {
11863
11864              /* Are we little or big endian?  From Harbison&Steele.  */
11865              union
11866              {
11867                long int l;
11868                char c[sizeof (long int)];
11869              } u;
11870              u.l = 1;
11871              return u.c[sizeof (long int) - 1] == 1;
11872
11873   ;
11874   return 0;
11875 }
11876 _ACEOF
11877 if ac_fn_c_try_run "$LINENO"; then :
11878   ac_cv_c_bigendian=no
11879 else
11880   ac_cv_c_bigendian=yes
11881 fi
11882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11883   conftest.$ac_objext conftest.beam conftest.$ac_ext
11884 fi
11885
11886     fi
11887 fi
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11889 $as_echo "$ac_cv_c_bigendian" >&6; }
11890  case $ac_cv_c_bigendian in #(
11891    yes)
11892      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
11893 ;; #(
11894    no)
11895       ;; #(
11896    universal)
11897
11898 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11899
11900      ;; #(
11901    *)
11902      as_fn_error "unknown endianness
11903  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
11904  esac
11905
11906
11907 # ------------------------------ #
11908 # Checks for library functions.  #
11909 # ------------------------------ #
11910
11911 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11912 # for constant arguments.  Useless!
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11914 $as_echo_n "checking for working alloca.h... " >&6; }
11915 if test "${ac_cv_working_alloca_h+set}" = set; then :
11916   $as_echo_n "(cached) " >&6
11917 else
11918   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11919 /* end confdefs.h.  */
11920 #include <alloca.h>
11921 int
11922 main ()
11923 {
11924 char *p = (char *) alloca (2 * sizeof (int));
11925                           if (p) return 0;
11926   ;
11927   return 0;
11928 }
11929 _ACEOF
11930 if ac_fn_c_try_link "$LINENO"; then :
11931   ac_cv_working_alloca_h=yes
11932 else
11933   ac_cv_working_alloca_h=no
11934 fi
11935 rm -f core conftest.err conftest.$ac_objext \
11936     conftest$ac_exeext conftest.$ac_ext
11937 fi
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11939 $as_echo "$ac_cv_working_alloca_h" >&6; }
11940 if test $ac_cv_working_alloca_h = yes; then
11941
11942 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11943
11944 fi
11945
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11947 $as_echo_n "checking for alloca... " >&6; }
11948 if test "${ac_cv_func_alloca_works+set}" = set; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h.  */
11953 #ifdef __GNUC__
11954 # define alloca __builtin_alloca
11955 #else
11956 # ifdef _MSC_VER
11957 #  include <malloc.h>
11958 #  define alloca _alloca
11959 # else
11960 #  ifdef HAVE_ALLOCA_H
11961 #   include <alloca.h>
11962 #  else
11963 #   ifdef _AIX
11964  #pragma alloca
11965 #   else
11966 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11967 char *alloca ();
11968 #    endif
11969 #   endif
11970 #  endif
11971 # endif
11972 #endif
11973
11974 int
11975 main ()
11976 {
11977 char *p = (char *) alloca (1);
11978                                     if (p) return 0;
11979   ;
11980   return 0;
11981 }
11982 _ACEOF
11983 if ac_fn_c_try_link "$LINENO"; then :
11984   ac_cv_func_alloca_works=yes
11985 else
11986   ac_cv_func_alloca_works=no
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext \
11989     conftest$ac_exeext conftest.$ac_ext
11990 fi
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11992 $as_echo "$ac_cv_func_alloca_works" >&6; }
11993
11994 if test $ac_cv_func_alloca_works = yes; then
11995
11996 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11997
11998 else
11999   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12000 # that cause trouble.  Some versions do not even contain alloca or
12001 # contain a buggy version.  If you still want to use their alloca,
12002 # use ar to extract alloca.o from them instead of compiling alloca.c.
12003
12004 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12005
12006 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12007
12008
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12010 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12011 if test "${ac_cv_os_cray+set}" = set; then :
12012   $as_echo_n "(cached) " >&6
12013 else
12014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h.  */
12016 #if defined CRAY && ! defined CRAY2
12017 webecray
12018 #else
12019 wenotbecray
12020 #endif
12021
12022 _ACEOF
12023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12024   $EGREP "webecray" >/dev/null 2>&1; then :
12025   ac_cv_os_cray=yes
12026 else
12027   ac_cv_os_cray=no
12028 fi
12029 rm -f conftest*
12030
12031 fi
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12033 $as_echo "$ac_cv_os_cray" >&6; }
12034 if test $ac_cv_os_cray = yes; then
12035   for ac_func in _getb67 GETB67 getb67; do
12036     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12037 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12038 eval as_val=\$$as_ac_var
12039    if test "x$as_val" = x""yes; then :
12040
12041 cat >>confdefs.h <<_ACEOF
12042 #define CRAY_STACKSEG_END $ac_func
12043 _ACEOF
12044
12045     break
12046 fi
12047
12048   done
12049 fi
12050
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12052 $as_echo_n "checking stack direction for C alloca... " >&6; }
12053 if test "${ac_cv_c_stack_direction+set}" = set; then :
12054   $as_echo_n "(cached) " >&6
12055 else
12056   if test "$cross_compiling" = yes; then :
12057   ac_cv_c_stack_direction=0
12058 else
12059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h.  */
12061 $ac_includes_default
12062 int
12063 find_stack_direction ()
12064 {
12065   static char *addr = 0;
12066   auto char dummy;
12067   if (addr == 0)
12068     {
12069       addr = &dummy;
12070       return find_stack_direction ();
12071     }
12072   else
12073     return (&dummy > addr) ? 1 : -1;
12074 }
12075
12076 int
12077 main ()
12078 {
12079   return find_stack_direction () < 0;
12080 }
12081 _ACEOF
12082 if ac_fn_c_try_run "$LINENO"; then :
12083   ac_cv_c_stack_direction=1
12084 else
12085   ac_cv_c_stack_direction=-1
12086 fi
12087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12088   conftest.$ac_objext conftest.beam conftest.$ac_ext
12089 fi
12090
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12093 $as_echo "$ac_cv_c_stack_direction" >&6; }
12094 cat >>confdefs.h <<_ACEOF
12095 #define STACK_DIRECTION $ac_cv_c_stack_direction
12096 _ACEOF
12097
12098
12099 fi
12100
12101 for ac_header in stdlib.h unistd.h
12102 do :
12103   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12104 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12105 eval as_val=\$$as_ac_Header
12106    if test "x$as_val" = x""yes; then :
12107   cat >>confdefs.h <<_ACEOF
12108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12109 _ACEOF
12110
12111 fi
12112
12113 done
12114
12115 for ac_func in getpagesize
12116 do :
12117   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12118 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12119   cat >>confdefs.h <<_ACEOF
12120 #define HAVE_GETPAGESIZE 1
12121 _ACEOF
12122
12123 fi
12124 done
12125
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12127 $as_echo_n "checking for working mmap... " >&6; }
12128 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12129   $as_echo_n "(cached) " >&6
12130 else
12131   if test "$cross_compiling" = yes; then :
12132   ac_cv_func_mmap_fixed_mapped=no
12133 else
12134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h.  */
12136 $ac_includes_default
12137 /* malloc might have been renamed as rpl_malloc. */
12138 #undef malloc
12139
12140 /* Thanks to Mike Haertel and Jim Avera for this test.
12141    Here is a matrix of mmap possibilities:
12142         mmap private not fixed
12143         mmap private fixed at somewhere currently unmapped
12144         mmap private fixed at somewhere already mapped
12145         mmap shared not fixed
12146         mmap shared fixed at somewhere currently unmapped
12147         mmap shared fixed at somewhere already mapped
12148    For private mappings, we should verify that changes cannot be read()
12149    back from the file, nor mmap's back from the file at a different
12150    address.  (There have been systems where private was not correctly
12151    implemented like the infamous i386 svr4.0, and systems where the
12152    VM page cache was not coherent with the file system buffer cache
12153    like early versions of FreeBSD and possibly contemporary NetBSD.)
12154    For shared mappings, we should conversely verify that changes get
12155    propagated back to all the places they're supposed to be.
12156
12157    Grep wants private fixed already mapped.
12158    The main things grep needs to know about mmap are:
12159    * does it exist and is it safe to write into the mmap'd area
12160    * how to use it (BSD variants)  */
12161
12162 #include <fcntl.h>
12163 #include <sys/mman.h>
12164
12165 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12166 char *malloc ();
12167 #endif
12168
12169 /* This mess was copied from the GNU getpagesize.h.  */
12170 #ifndef HAVE_GETPAGESIZE
12171 /* Assume that all systems that can run configure have sys/param.h.  */
12172 # ifndef HAVE_SYS_PARAM_H
12173 #  define HAVE_SYS_PARAM_H 1
12174 # endif
12175
12176 # ifdef _SC_PAGESIZE
12177 #  define getpagesize() sysconf(_SC_PAGESIZE)
12178 # else /* no _SC_PAGESIZE */
12179 #  ifdef HAVE_SYS_PARAM_H
12180 #   include <sys/param.h>
12181 #   ifdef EXEC_PAGESIZE
12182 #    define getpagesize() EXEC_PAGESIZE
12183 #   else /* no EXEC_PAGESIZE */
12184 #    ifdef NBPG
12185 #     define getpagesize() NBPG * CLSIZE
12186 #     ifndef CLSIZE
12187 #      define CLSIZE 1
12188 #     endif /* no CLSIZE */
12189 #    else /* no NBPG */
12190 #     ifdef NBPC
12191 #      define getpagesize() NBPC
12192 #     else /* no NBPC */
12193 #      ifdef PAGESIZE
12194 #       define getpagesize() PAGESIZE
12195 #      endif /* PAGESIZE */
12196 #     endif /* no NBPC */
12197 #    endif /* no NBPG */
12198 #   endif /* no EXEC_PAGESIZE */
12199 #  else /* no HAVE_SYS_PARAM_H */
12200 #   define getpagesize() 8192   /* punt totally */
12201 #  endif /* no HAVE_SYS_PARAM_H */
12202 # endif /* no _SC_PAGESIZE */
12203
12204 #endif /* no HAVE_GETPAGESIZE */
12205
12206 int
12207 main ()
12208 {
12209   char *data, *data2, *data3;
12210   int i, pagesize;
12211   int fd;
12212
12213   pagesize = getpagesize ();
12214
12215   /* First, make a file with some known garbage in it. */
12216   data = (char *) malloc (pagesize);
12217   if (!data)
12218     return 1;
12219   for (i = 0; i < pagesize; ++i)
12220     *(data + i) = rand ();
12221   umask (0);
12222   fd = creat ("conftest.mmap", 0600);
12223   if (fd < 0)
12224     return 1;
12225   if (write (fd, data, pagesize) != pagesize)
12226     return 1;
12227   close (fd);
12228
12229   /* Next, try to mmap the file at a fixed address which already has
12230      something else allocated at it.  If we can, also make sure that
12231      we see the same garbage.  */
12232   fd = open ("conftest.mmap", O_RDWR);
12233   if (fd < 0)
12234     return 1;
12235   data2 = (char *) malloc (2 * pagesize);
12236   if (!data2)
12237     return 1;
12238   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12239   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12240                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12241     return 1;
12242   for (i = 0; i < pagesize; ++i)
12243     if (*(data + i) != *(data2 + i))
12244       return 1;
12245
12246   /* Finally, make sure that changes to the mapped area do not
12247      percolate back to the file as seen by read().  (This is a bug on
12248      some variants of i386 svr4.0.)  */
12249   for (i = 0; i < pagesize; ++i)
12250     *(data2 + i) = *(data2 + i) + 1;
12251   data3 = (char *) malloc (pagesize);
12252   if (!data3)
12253     return 1;
12254   if (read (fd, data3, pagesize) != pagesize)
12255     return 1;
12256   for (i = 0; i < pagesize; ++i)
12257     if (*(data + i) != *(data3 + i))
12258       return 1;
12259   close (fd);
12260   return 0;
12261 }
12262 _ACEOF
12263 if ac_fn_c_try_run "$LINENO"; then :
12264   ac_cv_func_mmap_fixed_mapped=yes
12265 else
12266   ac_cv_func_mmap_fixed_mapped=no
12267 fi
12268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12269   conftest.$ac_objext conftest.beam conftest.$ac_ext
12270 fi
12271
12272 fi
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12274 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12275 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12276
12277 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12278
12279 fi
12280 rm -f conftest.mmap
12281
12282 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12283 if test "x$ac_cv_type_pid_t" = x""yes; then :
12284
12285 else
12286
12287 cat >>confdefs.h <<_ACEOF
12288 #define pid_t int
12289 _ACEOF
12290
12291 fi
12292
12293 for ac_header in vfork.h
12294 do :
12295   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12296 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12297   cat >>confdefs.h <<_ACEOF
12298 #define HAVE_VFORK_H 1
12299 _ACEOF
12300
12301 fi
12302
12303 done
12304
12305 for ac_func in fork vfork
12306 do :
12307   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12308 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12309 eval as_val=\$$as_ac_var
12310    if test "x$as_val" = x""yes; then :
12311   cat >>confdefs.h <<_ACEOF
12312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12313 _ACEOF
12314
12315 fi
12316 done
12317
12318 if test "x$ac_cv_func_fork" = xyes; then
12319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12320 $as_echo_n "checking for working fork... " >&6; }
12321 if test "${ac_cv_func_fork_works+set}" = set; then :
12322   $as_echo_n "(cached) " >&6
12323 else
12324   if test "$cross_compiling" = yes; then :
12325   ac_cv_func_fork_works=cross
12326 else
12327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h.  */
12329 $ac_includes_default
12330 int
12331 main ()
12332 {
12333
12334           /* By Ruediger Kuhlmann. */
12335           return fork () < 0;
12336
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 if ac_fn_c_try_run "$LINENO"; then :
12342   ac_cv_func_fork_works=yes
12343 else
12344   ac_cv_func_fork_works=no
12345 fi
12346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12347   conftest.$ac_objext conftest.beam conftest.$ac_ext
12348 fi
12349
12350 fi
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12352 $as_echo "$ac_cv_func_fork_works" >&6; }
12353
12354 else
12355   ac_cv_func_fork_works=$ac_cv_func_fork
12356 fi
12357 if test "x$ac_cv_func_fork_works" = xcross; then
12358   case $host in
12359     *-*-amigaos* | *-*-msdosdjgpp*)
12360       # Override, as these systems have only a dummy fork() stub
12361       ac_cv_func_fork_works=no
12362       ;;
12363     *)
12364       ac_cv_func_fork_works=yes
12365       ;;
12366   esac
12367   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12368 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12369 fi
12370 ac_cv_func_vfork_works=$ac_cv_func_vfork
12371 if test "x$ac_cv_func_vfork" = xyes; then
12372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12373 $as_echo_n "checking for working vfork... " >&6; }
12374 if test "${ac_cv_func_vfork_works+set}" = set; then :
12375   $as_echo_n "(cached) " >&6
12376 else
12377   if test "$cross_compiling" = yes; then :
12378   ac_cv_func_vfork_works=cross
12379 else
12380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381 /* end confdefs.h.  */
12382 /* Thanks to Paul Eggert for this test.  */
12383 $ac_includes_default
12384 #include <sys/wait.h>
12385 #ifdef HAVE_VFORK_H
12386 # include <vfork.h>
12387 #endif
12388 /* On some sparc systems, changes by the child to local and incoming
12389    argument registers are propagated back to the parent.  The compiler
12390    is told about this with #include <vfork.h>, but some compilers
12391    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
12392    static variable whose address is put into a register that is
12393    clobbered by the vfork.  */
12394 static void
12395 #ifdef __cplusplus
12396 sparc_address_test (int arg)
12397 # else
12398 sparc_address_test (arg) int arg;
12399 #endif
12400 {
12401   static pid_t child;
12402   if (!child) {
12403     child = vfork ();
12404     if (child < 0) {
12405       perror ("vfork");
12406       _exit(2);
12407     }
12408     if (!child) {
12409       arg = getpid();
12410       write(-1, "", 0);
12411       _exit (arg);
12412     }
12413   }
12414 }
12415
12416 int
12417 main ()
12418 {
12419   pid_t parent = getpid ();
12420   pid_t child;
12421
12422   sparc_address_test (0);
12423
12424   child = vfork ();
12425
12426   if (child == 0) {
12427     /* Here is another test for sparc vfork register problems.  This
12428        test uses lots of local variables, at least as many local
12429        variables as main has allocated so far including compiler
12430        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
12431        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
12432        reuse the register of parent for one of the local variables,
12433        since it will think that parent can't possibly be used any more
12434        in this routine.  Assigning to the local variable will thus
12435        munge parent in the parent process.  */
12436     pid_t
12437       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12438       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12439     /* Convince the compiler that p..p7 are live; otherwise, it might
12440        use the same hardware register for all 8 local variables.  */
12441     if (p != p1 || p != p2 || p != p3 || p != p4
12442         || p != p5 || p != p6 || p != p7)
12443       _exit(1);
12444
12445     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12446        from child file descriptors.  If the child closes a descriptor
12447        before it execs or exits, this munges the parent's descriptor
12448        as well.  Test for this by closing stdout in the child.  */
12449     _exit(close(fileno(stdout)) != 0);
12450   } else {
12451     int status;
12452     struct stat st;
12453
12454     while (wait(&status) != child)
12455       ;
12456     return (
12457          /* Was there some problem with vforking?  */
12458          child < 0
12459
12460          /* Did the child fail?  (This shouldn't happen.)  */
12461          || status
12462
12463          /* Did the vfork/compiler bug occur?  */
12464          || parent != getpid()
12465
12466          /* Did the file descriptor bug occur?  */
12467          || fstat(fileno(stdout), &st) != 0
12468          );
12469   }
12470 }
12471 _ACEOF
12472 if ac_fn_c_try_run "$LINENO"; then :
12473   ac_cv_func_vfork_works=yes
12474 else
12475   ac_cv_func_vfork_works=no
12476 fi
12477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12478   conftest.$ac_objext conftest.beam conftest.$ac_ext
12479 fi
12480
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12483 $as_echo "$ac_cv_func_vfork_works" >&6; }
12484
12485 fi;
12486 if test "x$ac_cv_func_fork_works" = xcross; then
12487   ac_cv_func_vfork_works=$ac_cv_func_vfork
12488   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12489 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12490 fi
12491
12492 if test "x$ac_cv_func_vfork_works" = xyes; then
12493
12494 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12495
12496 else
12497
12498 $as_echo "#define vfork fork" >>confdefs.h
12499
12500 fi
12501 if test "x$ac_cv_func_fork_works" = xyes; then
12502
12503 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12504
12505 fi
12506
12507 for ac_func in canonicalize_file_name realpath getrusage getuid \
12508                 getgid pipe poll pread64 sbrk setpgid setpgrp setsid \
12509                 sigaction sigprocmask sigsetmask socketpair syscall \
12510                 ttrace wborder setlocale iconvlist libiconvlist btowc \
12511                 setrlimit getrlimit posix_madvise
12512 do :
12513   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12515 eval as_val=\$$as_ac_var
12516    if test "x$as_val" = x""yes; then :
12517   cat >>confdefs.h <<_ACEOF
12518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12519 _ACEOF
12520
12521 fi
12522 done
12523
12524
12525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12526 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12527 if test "${am_cv_langinfo_codeset+set}" = set; then :
12528   $as_echo_n "(cached) " >&6
12529 else
12530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 /* end confdefs.h.  */
12532 #include <langinfo.h>
12533 int
12534 main ()
12535 {
12536 char* cs = nl_langinfo(CODESET);
12537   ;
12538   return 0;
12539 }
12540 _ACEOF
12541 if ac_fn_c_try_link "$LINENO"; then :
12542   am_cv_langinfo_codeset=yes
12543 else
12544   am_cv_langinfo_codeset=no
12545 fi
12546 rm -f core conftest.err conftest.$ac_objext \
12547     conftest$ac_exeext conftest.$ac_ext
12548
12549 fi
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12551 $as_echo "$am_cv_langinfo_codeset" >&6; }
12552   if test $am_cv_langinfo_codeset = yes; then
12553
12554 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12555
12556   fi
12557
12558
12559 # Check the return and argument types of ptrace.  No canned test for
12560 # this, so roll our own.
12561 gdb_ptrace_headers='
12562 #if HAVE_SYS_TYPES_H
12563 # include <sys/types.h>
12564 #endif
12565 #if HAVE_SYS_PTRACE_H
12566 # include <sys/ptrace.h>
12567 #endif
12568 #if HAVE_UNISTD_H
12569 # include <unistd.h>
12570 #endif
12571 '
12572 # There is no point in checking if we don't have a prototype.
12573 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12574 "
12575 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12576   ac_have_decl=1
12577 else
12578   ac_have_decl=0
12579 fi
12580
12581 cat >>confdefs.h <<_ACEOF
12582 #define HAVE_DECL_PTRACE $ac_have_decl
12583 _ACEOF
12584 if test $ac_have_decl = 1; then :
12585
12586 else
12587
12588   : ${gdb_cv_func_ptrace_ret='int'}
12589   : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12590
12591 fi
12592
12593 # Check return type.  Varargs (used on GNU/Linux) conflict with the
12594 # empty argument list, so check for that explicitly.
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12596 $as_echo_n "checking return type of ptrace... " >&6; }
12597 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12598   $as_echo_n "(cached) " >&6
12599 else
12600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12601 /* end confdefs.h.  */
12602 $gdb_ptrace_headers
12603 int
12604 main ()
12605 {
12606 extern long ptrace (enum __ptrace_request, ...);
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 if ac_fn_c_try_compile "$LINENO"; then :
12612   gdb_cv_func_ptrace_ret='long'
12613 else
12614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h.  */
12616 $gdb_ptrace_headers
12617 int
12618 main ()
12619 {
12620 extern int ptrace ();
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 if ac_fn_c_try_compile "$LINENO"; then :
12626   gdb_cv_func_ptrace_ret='int'
12627 else
12628   gdb_cv_func_ptrace_ret='long'
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12635 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12636
12637 cat >>confdefs.h <<_ACEOF
12638 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12639 _ACEOF
12640
12641 # Check argument types.
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12643 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12644 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647
12648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649 /* end confdefs.h.  */
12650 $gdb_ptrace_headers
12651 int
12652 main ()
12653 {
12654 extern long ptrace (enum __ptrace_request, ...);
12655   ;
12656   return 0;
12657 }
12658 _ACEOF
12659 if ac_fn_c_try_compile "$LINENO"; then :
12660   gdb_cv_func_ptrace_args='int,int,long,long'
12661 else
12662
12663 for gdb_arg1 in 'int' 'long'; do
12664  for gdb_arg2 in 'pid_t' 'int' 'long'; do
12665   for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12666    for gdb_arg4 in 'int' 'long'; do
12667      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h.  */
12669 $gdb_ptrace_headers
12670 int
12671 main ()
12672 {
12673
12674 extern $gdb_cv_func_ptrace_ret
12675   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12676
12677   ;
12678   return 0;
12679 }
12680 _ACEOF
12681 if ac_fn_c_try_compile "$LINENO"; then :
12682   gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12683     break 4;
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686     for gdb_arg5 in 'int *' 'int' 'long'; do
12687      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12688 /* end confdefs.h.  */
12689 $gdb_ptrace_headers
12690 int
12691 main ()
12692 {
12693
12694 extern $gdb_cv_func_ptrace_ret
12695   ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
12696
12697   ;
12698   return 0;
12699 }
12700 _ACEOF
12701 if ac_fn_c_try_compile "$LINENO"; then :
12702
12703 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
12704     break 5;
12705 fi
12706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12707     done
12708    done
12709   done
12710  done
12711 done
12712 # Provide a safe default value.
12713 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12714
12715 fi
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 fi
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
12719 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
12720 ac_save_IFS=$IFS; IFS=','
12721 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
12722 IFS=$ac_save_IFS
12723 shift
12724
12725 cat >>confdefs.h <<_ACEOF
12726 #define PTRACE_TYPE_ARG3 $3
12727 _ACEOF
12728
12729 if test -n "$5"; then
12730
12731 cat >>confdefs.h <<_ACEOF
12732 #define PTRACE_TYPE_ARG5 $5
12733 _ACEOF
12734
12735 fi
12736
12737 if test "$cross_compiling" = no; then
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12739 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12740 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12741   $as_echo_n "(cached) " >&6
12742 else
12743   if test "$cross_compiling" = yes; then :
12744   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
12745 else
12746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h.  */
12748 $ac_includes_default
12749 int
12750 main ()
12751 {
12752 /* If this system has a BSD-style setpgrp which takes arguments,
12753   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
12754   exit successfully. */
12755   return setpgrp (1,1) != -1;
12756   ;
12757   return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_run "$LINENO"; then :
12761   ac_cv_func_setpgrp_void=no
12762 else
12763   ac_cv_func_setpgrp_void=yes
12764 fi
12765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12766   conftest.$ac_objext conftest.beam conftest.$ac_ext
12767 fi
12768
12769 fi
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12771 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12772 if test $ac_cv_func_setpgrp_void = yes; then
12773
12774 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12775
12776 fi
12777
12778 else
12779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
12780 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
12781 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
12782   $as_echo_n "(cached) " >&6
12783 else
12784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h.  */
12786
12787 #include <unistd.h>
12788
12789 int
12790 main ()
12791 {
12792
12793   if (setpgrp(1,1) == -1)
12794     exit (0);
12795   else
12796     exit (1);
12797
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 if ac_fn_c_try_compile "$LINENO"; then :
12803   ac_cv_func_setpgrp_void=no
12804 else
12805   ac_cv_func_setpgrp_void=yes
12806 fi
12807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12808 fi
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
12810 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
12811 if test $ac_cv_func_setpgrp_void = yes; then
12812   $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
12813
12814 fi
12815 fi
12816
12817 # Check if sigsetjmp is available.  Using AC_CHECK_FUNCS won't do
12818 # since sigsetjmp might only be defined as a macro.
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
12820 $as_echo_n "checking for sigsetjmp... " >&6; }
12821 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
12822   $as_echo_n "(cached) " >&6
12823 else
12824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12825 /* end confdefs.h.  */
12826
12827 #include <setjmp.h>
12828
12829 int
12830 main ()
12831 {
12832 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
12833   ;
12834   return 0;
12835 }
12836 _ACEOF
12837 if ac_fn_c_try_compile "$LINENO"; then :
12838   gdb_cv_func_sigsetjmp=yes
12839 else
12840   gdb_cv_func_sigsetjmp=no
12841 fi
12842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
12845 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
12846 if test $gdb_cv_func_sigsetjmp = yes; then
12847
12848 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
12849
12850 fi
12851
12852 # Assume we'll default to using the included libiberty regex.
12853 gdb_use_included_regex=yes
12854
12855 # However, if the system regex is GNU regex, then default to *not*
12856 # using the included regex.
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
12858 $as_echo_n "checking for GNU regex... " >&6; }
12859 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h.  */
12864 #include <gnu-versions.h>
12865 int
12866 main ()
12867 {
12868 #define REGEX_INTERFACE_VERSION 1
12869 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
12870 # error "Version mismatch"
12871 #endif
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 if ac_fn_c_try_compile "$LINENO"; then :
12877   gdb_cv_have_gnu_regex=yes
12878 else
12879   gdb_cv_have_gnu_regex=no
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
12884 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
12885 if test $gdb_cv_have_gnu_regex = yes; then
12886   gdb_use_included_regex=no
12887 fi
12888
12889
12890 # Check whether --with-included-regex was given.
12891 if test "${with_included_regex+set}" = set; then :
12892   withval=$with_included_regex; gdb_with_regex=$withval
12893 else
12894   gdb_with_regex=$gdb_use_included_regex
12895 fi
12896
12897 if test "$gdb_with_regex" = yes; then
12898
12899 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
12900
12901 fi
12902
12903 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
12904 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
12905 #include <sys/proc.h>
12906
12907 "
12908 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
12909
12910 cat >>confdefs.h <<_ACEOF
12911 #define HAVE_STRUCT_THREAD_TD_PCB 1
12912 _ACEOF
12913
12914
12915 fi
12916
12917
12918 # See if <sys/lwp.h> defines `struct lwp`.
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
12920 $as_echo_n "checking for struct lwp... " >&6; }
12921 if test "${gdb_cv_struct_lwp+set}" = set; then :
12922   $as_echo_n "(cached) " >&6
12923 else
12924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h.  */
12926 #include <sys/param.h>
12927 #include <sys/lwp.h>
12928 int
12929 main ()
12930 {
12931 struct lwp l;
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_compile "$LINENO"; then :
12937   gdb_cv_struct_lwp=yes
12938 else
12939   gdb_cv_struct_lwp=no
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942 fi
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
12944 $as_echo "$gdb_cv_struct_lwp" >&6; }
12945 if test $gdb_cv_struct_lwp = yes; then
12946
12947 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
12948
12949 fi
12950
12951 # See if <machine/reg.h> degines `struct reg'.
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
12953 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
12954 if test "${gdb_cv_struct_reg+set}" = set; then :
12955   $as_echo_n "(cached) " >&6
12956 else
12957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h.  */
12959 #include <sys/types.h>
12960 #include <machine/reg.h>
12961 int
12962 main ()
12963 {
12964 struct reg r;
12965   ;
12966   return 0;
12967 }
12968 _ACEOF
12969 if ac_fn_c_try_compile "$LINENO"; then :
12970   gdb_cv_struct_reg=yes
12971 else
12972   gdb_cv_struct_reg=no
12973 fi
12974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12975 fi
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
12977 $as_echo "$gdb_cv_struct_reg" >&6; }
12978 if test $gdb_cv_struct_reg = yes; then
12979
12980 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
12981
12982 fi
12983
12984 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
12985 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
12986 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
12987 "
12988 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
12989
12990 cat >>confdefs.h <<_ACEOF
12991 #define HAVE_STRUCT_REG_R_FS 1
12992 _ACEOF
12993
12994
12995 fi
12996 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
12997 "
12998 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
12999
13000 cat >>confdefs.h <<_ACEOF
13001 #define HAVE_STRUCT_REG_R_GS 1
13002 _ACEOF
13003
13004
13005 fi
13006
13007
13008 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13010 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13011 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13012   $as_echo_n "(cached) " >&6
13013 else
13014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13015 /* end confdefs.h.  */
13016 #include <sys/ptrace.h>
13017 int
13018 main ()
13019 {
13020 PTRACE_GETREGS;
13021   ;
13022   return 0;
13023 }
13024 _ACEOF
13025 if ac_fn_c_try_compile "$LINENO"; then :
13026   gdb_cv_have_ptrace_getregs=yes
13027 else
13028   gdb_cv_have_ptrace_getregs=no
13029 fi
13030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13031 fi
13032
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13034 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13035 if test $gdb_cv_have_ptrace_getregs = yes; then
13036
13037 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13038
13039 fi
13040
13041 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13043 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13044 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h.  */
13049 #include <sys/ptrace.h>
13050 int
13051 main ()
13052 {
13053 PTRACE_GETFPXREGS;
13054   ;
13055   return 0;
13056 }
13057 _ACEOF
13058 if ac_fn_c_try_compile "$LINENO"; then :
13059   gdb_cv_have_ptrace_getfpxregs=yes
13060 else
13061   gdb_cv_have_ptrace_getfpxregs=no
13062 fi
13063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13064 fi
13065
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13067 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13068 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13069
13070 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13071
13072 fi
13073
13074 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13076 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13077 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13081 /* end confdefs.h.  */
13082 #include <sys/types.h>
13083 #include <sys/ptrace.h>
13084 int
13085 main ()
13086 {
13087 PT_GETDBREGS;
13088   ;
13089   return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093   gdb_cv_have_pt_getdbregs=yes
13094 else
13095   gdb_cv_have_pt_getdbregs=no
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 fi
13099
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13101 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13102 if test $gdb_cv_have_pt_getdbregs = yes; then
13103
13104 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13105
13106 fi
13107
13108 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13110 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13111 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13112   $as_echo_n "(cached) " >&6
13113 else
13114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h.  */
13116 #include <sys/types.h>
13117 #include <sys/ptrace.h>
13118 int
13119 main ()
13120 {
13121 PT_GETXMMREGS;
13122   ;
13123   return 0;
13124 }
13125 _ACEOF
13126 if ac_fn_c_try_compile "$LINENO"; then :
13127   gdb_cv_have_pt_getxmmregs=yes
13128 else
13129   gdb_cv_have_pt_getxmmregs=no
13130 fi
13131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13132 fi
13133
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13135 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13136 if test $gdb_cv_have_pt_getxmmregs = yes; then
13137
13138 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13139
13140 fi
13141
13142 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13143
13144 if test "${target}" = "${host}"; then
13145   case "${host}" in
13146   *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13147
13148 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13149
13150       ;;
13151   *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13152
13153 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13154
13155       ;;
13156   mips-sgi-irix5*)
13157       # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13158
13159 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13160
13161       ;;
13162   esac
13163 fi
13164
13165 if test "$ac_cv_header_sys_procfs_h" = yes; then
13166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13167 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13168  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13169   $as_echo_n "(cached) " >&6
13170 else
13171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172 /* end confdefs.h.  */
13173
13174 #define _SYSCALL32
13175 /* Needed for new procfs interface on sparc-solaris.  */
13176 #define _STRUCTURED_PROC 1
13177 #include <sys/procfs.h>
13178 int
13179 main ()
13180 {
13181 pstatus_t avar
13182   ;
13183   return 0;
13184 }
13185 _ACEOF
13186 if ac_fn_c_try_compile "$LINENO"; then :
13187   bfd_cv_have_sys_procfs_type_pstatus_t=yes
13188 else
13189   bfd_cv_have_sys_procfs_type_pstatus_t=no
13190
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193 fi
13194
13195  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13196
13197 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13198
13199  fi
13200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13201 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13202
13203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13204 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13205  if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13206   $as_echo_n "(cached) " >&6
13207 else
13208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h.  */
13210
13211 #define _SYSCALL32
13212 /* Needed for new procfs interface on sparc-solaris.  */
13213 #define _STRUCTURED_PROC 1
13214 #include <sys/procfs.h>
13215 int
13216 main ()
13217 {
13218 prrun_t avar
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 if ac_fn_c_try_compile "$LINENO"; then :
13224   bfd_cv_have_sys_procfs_type_prrun_t=yes
13225 else
13226   bfd_cv_have_sys_procfs_type_prrun_t=no
13227
13228 fi
13229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13230 fi
13231
13232  if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13233
13234 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13235
13236  fi
13237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13238 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13239
13240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13241 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13242  if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13243   $as_echo_n "(cached) " >&6
13244 else
13245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h.  */
13247
13248 #define _SYSCALL32
13249 /* Needed for new procfs interface on sparc-solaris.  */
13250 #define _STRUCTURED_PROC 1
13251 #include <sys/procfs.h>
13252 int
13253 main ()
13254 {
13255 gregset_t avar
13256   ;
13257   return 0;
13258 }
13259 _ACEOF
13260 if ac_fn_c_try_compile "$LINENO"; then :
13261   bfd_cv_have_sys_procfs_type_gregset_t=yes
13262 else
13263   bfd_cv_have_sys_procfs_type_gregset_t=no
13264
13265 fi
13266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267 fi
13268
13269  if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13270
13271 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13272
13273  fi
13274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13275 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13276
13277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13278 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13279  if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13280   $as_echo_n "(cached) " >&6
13281 else
13282   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h.  */
13284
13285 #define _SYSCALL32
13286 /* Needed for new procfs interface on sparc-solaris.  */
13287 #define _STRUCTURED_PROC 1
13288 #include <sys/procfs.h>
13289 int
13290 main ()
13291 {
13292 fpregset_t avar
13293   ;
13294   return 0;
13295 }
13296 _ACEOF
13297 if ac_fn_c_try_compile "$LINENO"; then :
13298   bfd_cv_have_sys_procfs_type_fpregset_t=yes
13299 else
13300   bfd_cv_have_sys_procfs_type_fpregset_t=no
13301
13302 fi
13303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 fi
13305
13306  if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13307
13308 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13309
13310  fi
13311  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13312 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13313
13314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13315 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13316  if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13317   $as_echo_n "(cached) " >&6
13318 else
13319   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h.  */
13321
13322 #define _SYSCALL32
13323 /* Needed for new procfs interface on sparc-solaris.  */
13324 #define _STRUCTURED_PROC 1
13325 #include <sys/procfs.h>
13326 int
13327 main ()
13328 {
13329 prgregset_t avar
13330   ;
13331   return 0;
13332 }
13333 _ACEOF
13334 if ac_fn_c_try_compile "$LINENO"; then :
13335   bfd_cv_have_sys_procfs_type_prgregset_t=yes
13336 else
13337   bfd_cv_have_sys_procfs_type_prgregset_t=no
13338
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 fi
13342
13343  if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13344
13345 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13346
13347  fi
13348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13349 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13350
13351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13352 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13353  if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13354   $as_echo_n "(cached) " >&6
13355 else
13356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h.  */
13358
13359 #define _SYSCALL32
13360 /* Needed for new procfs interface on sparc-solaris.  */
13361 #define _STRUCTURED_PROC 1
13362 #include <sys/procfs.h>
13363 int
13364 main ()
13365 {
13366 prfpregset_t avar
13367   ;
13368   return 0;
13369 }
13370 _ACEOF
13371 if ac_fn_c_try_compile "$LINENO"; then :
13372   bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13373 else
13374   bfd_cv_have_sys_procfs_type_prfpregset_t=no
13375
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 fi
13379
13380  if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13381
13382 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13383
13384  fi
13385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13386 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13387
13388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13389 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13390  if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13391   $as_echo_n "(cached) " >&6
13392 else
13393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h.  */
13395
13396 #define _SYSCALL32
13397 /* Needed for new procfs interface on sparc-solaris.  */
13398 #define _STRUCTURED_PROC 1
13399 #include <sys/procfs.h>
13400 int
13401 main ()
13402 {
13403 prgregset32_t avar
13404   ;
13405   return 0;
13406 }
13407 _ACEOF
13408 if ac_fn_c_try_compile "$LINENO"; then :
13409   bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13410 else
13411   bfd_cv_have_sys_procfs_type_prgregset32_t=no
13412
13413 fi
13414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13415 fi
13416
13417  if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13418
13419 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13420
13421  fi
13422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13423 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13424
13425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13426 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13427  if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13428   $as_echo_n "(cached) " >&6
13429 else
13430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h.  */
13432
13433 #define _SYSCALL32
13434 /* Needed for new procfs interface on sparc-solaris.  */
13435 #define _STRUCTURED_PROC 1
13436 #include <sys/procfs.h>
13437 int
13438 main ()
13439 {
13440 prfpregset32_t avar
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 if ac_fn_c_try_compile "$LINENO"; then :
13446   bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13447 else
13448   bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13449
13450 fi
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 fi
13453
13454  if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13455
13456 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13457
13458  fi
13459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13460 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13461
13462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13463 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13464  if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13465   $as_echo_n "(cached) " >&6
13466 else
13467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h.  */
13469
13470 #define _SYSCALL32
13471 /* Needed for new procfs interface on sparc-solaris.  */
13472 #define _STRUCTURED_PROC 1
13473 #include <sys/procfs.h>
13474 int
13475 main ()
13476 {
13477 lwpid_t avar
13478   ;
13479   return 0;
13480 }
13481 _ACEOF
13482 if ac_fn_c_try_compile "$LINENO"; then :
13483   bfd_cv_have_sys_procfs_type_lwpid_t=yes
13484 else
13485   bfd_cv_have_sys_procfs_type_lwpid_t=no
13486
13487 fi
13488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13489 fi
13490
13491  if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13492
13493 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13494
13495  fi
13496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13497 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13498
13499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13500 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13501  if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13502   $as_echo_n "(cached) " >&6
13503 else
13504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h.  */
13506
13507 #define _SYSCALL32
13508 /* Needed for new procfs interface on sparc-solaris.  */
13509 #define _STRUCTURED_PROC 1
13510 #include <sys/procfs.h>
13511 int
13512 main ()
13513 {
13514 psaddr_t avar
13515   ;
13516   return 0;
13517 }
13518 _ACEOF
13519 if ac_fn_c_try_compile "$LINENO"; then :
13520   bfd_cv_have_sys_procfs_type_psaddr_t=yes
13521 else
13522   bfd_cv_have_sys_procfs_type_psaddr_t=no
13523
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 fi
13527
13528  if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13529
13530 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13531
13532  fi
13533  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13534 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13535
13536   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13537 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13538  if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h.  */
13543
13544 #define _SYSCALL32
13545 /* Needed for new procfs interface on sparc-solaris.  */
13546 #define _STRUCTURED_PROC 1
13547 #include <sys/procfs.h>
13548 int
13549 main ()
13550 {
13551 prsysent_t avar
13552   ;
13553   return 0;
13554 }
13555 _ACEOF
13556 if ac_fn_c_try_compile "$LINENO"; then :
13557   bfd_cv_have_sys_procfs_type_prsysent_t=yes
13558 else
13559   bfd_cv_have_sys_procfs_type_prsysent_t=no
13560
13561 fi
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13563 fi
13564
13565  if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13566
13567 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13568
13569  fi
13570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13571 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13572
13573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13574 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13575  if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13576   $as_echo_n "(cached) " >&6
13577 else
13578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13579 /* end confdefs.h.  */
13580
13581 #define _SYSCALL32
13582 /* Needed for new procfs interface on sparc-solaris.  */
13583 #define _STRUCTURED_PROC 1
13584 #include <sys/procfs.h>
13585 int
13586 main ()
13587 {
13588 pr_sigset_t avar
13589   ;
13590   return 0;
13591 }
13592 _ACEOF
13593 if ac_fn_c_try_compile "$LINENO"; then :
13594   bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13595 else
13596   bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13597
13598 fi
13599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13600 fi
13601
13602  if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13603
13604 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13605
13606  fi
13607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13608 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13609
13610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13611 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13612  if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13613   $as_echo_n "(cached) " >&6
13614 else
13615   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h.  */
13617
13618 #define _SYSCALL32
13619 /* Needed for new procfs interface on sparc-solaris.  */
13620 #define _STRUCTURED_PROC 1
13621 #include <sys/procfs.h>
13622 int
13623 main ()
13624 {
13625 pr_sigaction64_t avar
13626   ;
13627   return 0;
13628 }
13629 _ACEOF
13630 if ac_fn_c_try_compile "$LINENO"; then :
13631   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
13632 else
13633   bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
13634
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 fi
13638
13639  if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
13640
13641 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13642
13643  fi
13644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13645 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13646
13647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13648 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13649  if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
13650   $as_echo_n "(cached) " >&6
13651 else
13652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13653 /* end confdefs.h.  */
13654
13655 #define _SYSCALL32
13656 /* Needed for new procfs interface on sparc-solaris.  */
13657 #define _STRUCTURED_PROC 1
13658 #include <sys/procfs.h>
13659 int
13660 main ()
13661 {
13662 pr_siginfo64_t avar
13663   ;
13664   return 0;
13665 }
13666 _ACEOF
13667 if ac_fn_c_try_compile "$LINENO"; then :
13668   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
13669 else
13670   bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
13671
13672 fi
13673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13674 fi
13675
13676  if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
13677
13678 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13679
13680  fi
13681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13682 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13683
13684
13685
13686
13687
13688   if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13690 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13691     if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13692   $as_echo_n "(cached) " >&6
13693 else
13694   if test "$cross_compiling" = yes; then :
13695   gdb_cv_prfpregset_t_broken=yes
13696 else
13697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h.  */
13699 #include <sys/procfs.h>
13700        int main ()
13701        {
13702          if (sizeof (prfpregset_t) == sizeof (void *))
13703            return 1;
13704          return 0;
13705        }
13706 _ACEOF
13707 if ac_fn_c_try_run "$LINENO"; then :
13708   gdb_cv_prfpregset_t_broken=no
13709 else
13710   gdb_cv_prfpregset_t_broken=yes
13711 fi
13712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13713   conftest.$ac_objext conftest.beam conftest.$ac_ext
13714 fi
13715
13716 fi
13717
13718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
13719 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
13720     if test $gdb_cv_prfpregset_t_broken = yes; then
13721
13722 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
13723
13724     fi
13725   fi
13726
13727
13728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
13729 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
13730   if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
13731   $as_echo_n "(cached) " >&6
13732 else
13733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13734 /* end confdefs.h.  */
13735 #include <unistd.h>
13736 #include <sys/types.h>
13737 #include <sys/procfs.h>
13738
13739 int
13740 main ()
13741 {
13742
13743     int dummy;;
13744     dummy = ioctl(0, PIOCSET, &dummy);
13745
13746   ;
13747   return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_compile "$LINENO"; then :
13751   gdb_cv_have_procfs_piocset=yes
13752 else
13753   gdb_cv_have_procfs_piocset=no
13754 fi
13755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13756 fi
13757
13758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
13759 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
13760   if test $gdb_cv_have_procfs_piocset = yes; then
13761
13762 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
13763
13764   fi
13765 fi
13766
13767 if test ${host} = ${target} ; then
13768
13769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
13770 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
13771   if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
13772   $as_echo_n "(cached) " >&6
13773 else
13774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h.  */
13776 #include <link.h>
13777 int
13778 main ()
13779 {
13780 struct link_map lm; (void) lm.l_addr;
13781   ;
13782   return 0;
13783 }
13784 _ACEOF
13785 if ac_fn_c_try_compile "$LINENO"; then :
13786   gdb_cv_have_struct_link_map_with_l_members=yes
13787 else
13788   gdb_cv_have_struct_link_map_with_l_members=no
13789 fi
13790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13791 fi
13792
13793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
13794 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
13795   if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
13796
13797 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
13798
13799   fi
13800
13801
13802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
13803 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
13804   if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
13805   $as_echo_n "(cached) " >&6
13806 else
13807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13808 /* end confdefs.h.  */
13809 #include <sys/types.h>
13810 #include <link.h>
13811 int
13812 main ()
13813 {
13814 struct link_map lm; (void) lm.lm_addr;
13815   ;
13816   return 0;
13817 }
13818 _ACEOF
13819 if ac_fn_c_try_compile "$LINENO"; then :
13820   gdb_cv_have_struct_link_map_with_lm_members=yes
13821 else
13822   gdb_cv_have_struct_link_map_with_lm_members=no
13823 fi
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 fi
13826
13827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
13828 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
13829   if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
13830
13831 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
13832
13833   fi
13834
13835
13836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
13837 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
13838   if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
13839   $as_echo_n "(cached) " >&6
13840 else
13841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h.  */
13843 #include <sys/types.h>
13844 #ifdef HAVE_NLIST_H
13845 #include <nlist.h>
13846 #endif
13847 #include <link.h>
13848 int
13849 main ()
13850 {
13851 struct so_map lm; (void) lm.som_addr;
13852   ;
13853   return 0;
13854 }
13855 _ACEOF
13856 if ac_fn_c_try_compile "$LINENO"; then :
13857   gdb_cv_have_struct_so_map_with_som_members=yes
13858 else
13859   gdb_cv_have_struct_so_map_with_som_members=no
13860 fi
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13862 fi
13863
13864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
13865 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
13866   if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
13867
13868 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
13869
13870   fi
13871
13872
13873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
13874 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
13875   if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
13876   $as_echo_n "(cached) " >&6
13877 else
13878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h.  */
13880 #define _SYSCALL32
13881 #include <sys/link.h>
13882 int
13883 main ()
13884 {
13885 struct link_map32 l;
13886   ;
13887   return 0;
13888 }
13889 _ACEOF
13890 if ac_fn_c_try_compile "$LINENO"; then :
13891   gdb_cv_have_struct_link_map32=yes
13892 else
13893   gdb_cv_have_struct_link_map32=no
13894 fi
13895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13896 fi
13897
13898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
13899 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
13900   if test $gdb_cv_have_struct_link_map32 = yes; then
13901
13902 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
13903
13904
13905 $as_echo "#define _SYSCALL32 1" >>confdefs.h
13906
13907   fi
13908 fi
13909
13910 # Check if the compiler supports the `long long' type.
13911
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
13913 $as_echo_n "checking for long long support in compiler... " >&6; }
13914 if test "${gdb_cv_c_long_long+set}" = set; then :
13915   $as_echo_n "(cached) " >&6
13916 else
13917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13918 /* end confdefs.h.  */
13919 extern long long foo;
13920 int
13921 main ()
13922 {
13923 switch (foo & 2) { case 0: return 1; }
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 if ac_fn_c_try_compile "$LINENO"; then :
13929   gdb_cv_c_long_long=yes
13930 else
13931   gdb_cv_c_long_long=no
13932 fi
13933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13934 fi
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
13936 $as_echo "$gdb_cv_c_long_long" >&6; }
13937 if test $gdb_cv_c_long_long = yes; then
13938
13939 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
13940
13941 fi
13942
13943 # Check if the compiler and runtime support printing long longs.
13944
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
13946 $as_echo_n "checking for long long support in printf... " >&6; }
13947 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
13948   $as_echo_n "(cached) " >&6
13949 else
13950   if test "$cross_compiling" = yes; then :
13951   gdb_cv_printf_has_long_long=no
13952 else
13953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13954 /* end confdefs.h.  */
13955 $ac_includes_default
13956 int
13957 main ()
13958 {
13959 char buf[32];
13960   long long l = 0;
13961   l = (l << 16) + 0x0123;
13962   l = (l << 16) + 0x4567;
13963   l = (l << 16) + 0x89ab;
13964   l = (l << 16) + 0xcdef;
13965   sprintf (buf, "0x%016llx", l);
13966   return (strcmp ("0x0123456789abcdef", buf));
13967   ;
13968   return 0;
13969 }
13970 _ACEOF
13971 if ac_fn_c_try_run "$LINENO"; then :
13972   gdb_cv_printf_has_long_long=yes
13973 else
13974   gdb_cv_printf_has_long_long=no
13975 fi
13976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13977   conftest.$ac_objext conftest.beam conftest.$ac_ext
13978 fi
13979
13980 fi
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
13982 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
13983 if test $gdb_cv_printf_has_long_long = yes; then
13984
13985 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
13986
13987 fi
13988
13989 # Check if the compiler and runtime support printing decfloats.
13990
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
13992 $as_echo_n "checking for decfloat support in printf... " >&6; }
13993 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
13994   $as_echo_n "(cached) " >&6
13995 else
13996   if test "$cross_compiling" = yes; then :
13997   gdb_cv_printf_has_decfloat=no
13998 else
13999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h.  */
14001 $ac_includes_default
14002 int
14003 main ()
14004 {
14005 char buf[64];
14006   _Decimal32 d32 = 1.2345df;
14007   _Decimal64 d64 = 1.2345dd;
14008   _Decimal128 d128 = 1.2345dl;
14009   sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14010   return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14011   ;
14012   return 0;
14013 }
14014 _ACEOF
14015 if ac_fn_c_try_run "$LINENO"; then :
14016   gdb_cv_printf_has_decfloat=yes
14017 else
14018   gdb_cv_printf_has_decfloat=no
14019 fi
14020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14021   conftest.$ac_objext conftest.beam conftest.$ac_ext
14022 fi
14023
14024 fi
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14026 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14027 if test $gdb_cv_printf_has_decfloat = yes; then
14028
14029 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14030
14031 fi
14032
14033 # Check if the compiler supports the `long double' type.  We can't use
14034 # AC_C_LONG_DOUBLE because that one does additional checks on the
14035 # constants defined in <float.h> that fail on some systems,
14036 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14037
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14039 $as_echo_n "checking for long double support in compiler... " >&6; }
14040 if test "${gdb_cv_c_long_double+set}" = set; then :
14041   $as_echo_n "(cached) " >&6
14042 else
14043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h.  */
14045 long double foo;
14046 _ACEOF
14047 if ac_fn_c_try_compile "$LINENO"; then :
14048   gdb_cv_c_long_double=yes
14049 else
14050   gdb_cv_c_long_double=no
14051 fi
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 fi
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14055 $as_echo "$gdb_cv_c_long_double" >&6; }
14056 if test $gdb_cv_c_long_double = yes; then
14057
14058 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14059
14060 fi
14061
14062 # Check if the compiler and runtime support printing long doubles.
14063
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14065 $as_echo_n "checking for long double support in printf... " >&6; }
14066 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14067   $as_echo_n "(cached) " >&6
14068 else
14069   if test "$cross_compiling" = yes; then :
14070   gdb_cv_printf_has_long_double=no
14071 else
14072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h.  */
14074 $ac_includes_default
14075 int
14076 main ()
14077 {
14078 char buf[16];
14079   long double f = 3.141592653;
14080   sprintf (buf, "%Lg", f);
14081   return (strncmp ("3.14159", buf, 7));
14082   ;
14083   return 0;
14084 }
14085 _ACEOF
14086 if ac_fn_c_try_run "$LINENO"; then :
14087   gdb_cv_printf_has_long_double=yes
14088 else
14089   gdb_cv_printf_has_long_double=no
14090 fi
14091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14092   conftest.$ac_objext conftest.beam conftest.$ac_ext
14093 fi
14094
14095 fi
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14097 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14098 if test $gdb_cv_printf_has_long_double = yes; then
14099
14100 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14101
14102 fi
14103
14104 # Check if the compiler and runtime support scanning long doubles.
14105
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14107 $as_echo_n "checking for long double support in scanf... " >&6; }
14108 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14109   $as_echo_n "(cached) " >&6
14110 else
14111   if test "$cross_compiling" = yes; then :
14112   gdb_cv_scanf_has_long_double=no
14113 else
14114   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h.  */
14116 #include <stdio.h>
14117 int
14118 main ()
14119 {
14120 char *buf = "3.141592653";
14121   long double f = 0;
14122   sscanf (buf, "%Lg", &f);
14123   return !(f > 3.14159 && f < 3.14160);
14124   ;
14125   return 0;
14126 }
14127 _ACEOF
14128 if ac_fn_c_try_run "$LINENO"; then :
14129   gdb_cv_scanf_has_long_double=yes
14130 else
14131   gdb_cv_scanf_has_long_double=no
14132 fi
14133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14134   conftest.$ac_objext conftest.beam conftest.$ac_ext
14135 fi
14136
14137 fi
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14139 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14140 if test $gdb_cv_scanf_has_long_double = yes; then
14141
14142 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14143
14144 fi
14145
14146 case ${host_os} in
14147 aix*)
14148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14149 $as_echo_n "checking for -bbigtoc option... " >&6; }
14150 if test "${gdb_cv_bigtoc+set}" = set; then :
14151   $as_echo_n "(cached) " >&6
14152 else
14153
14154     SAVE_LDFLAGS=$LDFLAGS
14155
14156     case $GCC in
14157     yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14158     *) gdb_cv_bigtoc=-bbigtoc ;;
14159     esac
14160
14161     LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14162     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h.  */
14164
14165 int
14166 main ()
14167 {
14168 int i;
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 if ac_fn_c_try_link "$LINENO"; then :
14174
14175 else
14176   gdb_cv_bigtoc=
14177 fi
14178 rm -f core conftest.err conftest.$ac_objext \
14179     conftest$ac_exeext conftest.$ac_ext
14180     LDFLAGS="${SAVE_LDFLAGS}"
14181
14182 fi
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14184 $as_echo "$gdb_cv_bigtoc" >&6; }
14185   CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14186   ;;
14187 esac
14188
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14190 $as_echo_n "checking for the dynamic export flag... " >&6; }
14191 dynamic_list=false
14192 if test "${gdb_native}" = yes; then
14193    # The dynamically loaded libthread_db needs access to symbols in the gdb
14194    # executable.  Older GNU ld supports --export-dynamic but --dynamic-list
14195    # may not be supported there.
14196    old_LDFLAGS="$LDFLAGS"
14197    # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14198    RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14199    LDFLAGS="$LDFLAGS $RDYNAMIC"
14200    if test "${have_libpython}" = no; then
14201      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h.  */
14203
14204 int
14205 main ()
14206 {
14207
14208   ;
14209   return 0;
14210 }
14211 _ACEOF
14212 if ac_fn_c_try_link "$LINENO"; then :
14213   dynamic_list=true
14214 fi
14215 rm -f core conftest.err conftest.$ac_objext \
14216     conftest$ac_exeext conftest.$ac_ext
14217    else
14218      # Workaround http://bugs.python.org/issue4434 where static
14219      # libpythonX.Y.a would get its symbols required for
14220      # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14221      # Problem does not happen for the recommended libpythonX.Y.so linkage.
14222      old_CFLAGS="$CFLAGS"
14223      CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14224      if test "$cross_compiling" = yes; then :
14225   true
14226 else
14227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h.  */
14229 #include "${have_libpython}/Python.h"
14230 int
14231 main ()
14232 {
14233 int err;
14234           Py_Initialize ();
14235           err = PyRun_SimpleString ("import itertools\n");
14236           Py_Finalize ();
14237           return err == 0 ? 0 : 1;
14238   ;
14239   return 0;
14240 }
14241 _ACEOF
14242 if ac_fn_c_try_run "$LINENO"; then :
14243   dynamic_list=true
14244 fi
14245 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14246   conftest.$ac_objext conftest.beam conftest.$ac_ext
14247 fi
14248
14249      CFLAGS="$old_CFLAGS"
14250    fi
14251    LDFLAGS="$old_LDFLAGS"
14252 fi
14253 if $dynamic_list; then
14254   found="-Wl,--dynamic-list"
14255   RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14256 else
14257   found="-rdynamic"
14258   RDYNAMIC="-rdynamic"
14259 fi
14260
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14262 $as_echo "$found" >&6; }
14263
14264
14265 if test ${build} = ${host} -a ${host} = ${target} ; then
14266    case ${host_os} in
14267    hpux*)
14268       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPUX/OSF thread support" >&5
14269 $as_echo_n "checking for HPUX/OSF thread support... " >&6; }
14270       if test -f /usr/include/dce/cma_config.h ; then
14271          if test "$GCC" = "yes" ; then
14272             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14273 $as_echo "yes" >&6; }
14274
14275 $as_echo "#define HAVE_HPUX_THREAD_SUPPORT 1" >>confdefs.h
14276
14277             CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
14278             CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
14279          else
14280             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (suppressed because you are not using GCC)" >&5
14281 $as_echo "no (suppressed because you are not using GCC)" >&6; }
14282          fi
14283       else
14284          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14285 $as_echo "no" >&6; }
14286       fi
14287       ;;
14288    solaris*)
14289       # See if thread_db library is around for Solaris thread debugging.
14290       # Note that we must explicitly test for version 1 of the library
14291       # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14292       # the same API.
14293       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14294 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14295       if test -f /usr/lib/libthread_db.so.1 ; then
14296          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14297 $as_echo "yes" >&6; }
14298
14299 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14300
14301          CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14302          CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14303          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14304 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14305 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14306   $as_echo_n "(cached) " >&6
14307 else
14308   ac_check_lib_save_LIBS=$LIBS
14309 LIBS="-ldl  $LIBS"
14310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h.  */
14312
14313 /* Override any GCC internal prototype to avoid an error.
14314    Use char because int might match the return type of a GCC
14315    builtin and then its argument prototype would still apply.  */
14316 #ifdef __cplusplus
14317 extern "C"
14318 #endif
14319 char dlopen ();
14320 int
14321 main ()
14322 {
14323 return dlopen ();
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 if ac_fn_c_try_link "$LINENO"; then :
14329   ac_cv_lib_dl_dlopen=yes
14330 else
14331   ac_cv_lib_dl_dlopen=no
14332 fi
14333 rm -f core conftest.err conftest.$ac_objext \
14334     conftest$ac_exeext conftest.$ac_ext
14335 LIBS=$ac_check_lib_save_LIBS
14336 fi
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14338 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14339 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14340   cat >>confdefs.h <<_ACEOF
14341 #define HAVE_LIBDL 1
14342 _ACEOF
14343
14344   LIBS="-ldl $LIBS"
14345
14346 fi
14347
14348          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14349          # Sun randomly tweaked the prototypes in <proc_service.h>
14350          # at one point.
14351          { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14352 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14353          if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14354   $as_echo_n "(cached) " >&6
14355 else
14356
14357             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h.  */
14359
14360                 #include <proc_service.h>
14361                 ps_err_e ps_pdwrite
14362                     (struct ps_prochandle*, psaddr_t, const void*, size_t);
14363
14364 int
14365 main ()
14366 {
14367
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_compile "$LINENO"; then :
14373   gdb_cv_proc_service_is_old=no
14374 else
14375   gdb_cv_proc_service_is_old=yes
14376 fi
14377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378
14379 fi
14380
14381          { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14382 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14383          if test $gdb_cv_proc_service_is_old = yes; then
14384
14385 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14386
14387          fi
14388       else
14389          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14390 $as_echo "no" >&6; }
14391       fi
14392       ;;
14393    aix*)
14394       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14395 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14396       if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14397   $as_echo_n "(cached) " >&6
14398 else
14399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h.  */
14401 #include <sys/pthdebug.h>
14402 int
14403 main ()
14404 {
14405 #ifndef PTHDB_VERSION_3
14406                                     #error
14407                                     #endif
14408   ;
14409   return 0;
14410 }
14411 _ACEOF
14412 if ac_fn_c_try_compile "$LINENO"; then :
14413   gdb_cv_have_aix_thread_debug=yes
14414 else
14415   gdb_cv_have_aix_thread_debug=no
14416 fi
14417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14418 fi
14419
14420       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14421 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14422       if test $gdb_cv_have_aix_thread_debug = yes; then
14423          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14424          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14425          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14426       fi
14427       ;;
14428    esac
14429
14430 fi
14431
14432 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14433    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14434 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14435 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14436   $as_echo_n "(cached) " >&6
14437 else
14438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14439 /* end confdefs.h.  */
14440 #include <thread_db.h>
14441 int
14442 main ()
14443 {
14444 int i = TD_NOTALLOC;
14445   ;
14446   return 0;
14447 }
14448 _ACEOF
14449 if ac_fn_c_try_compile "$LINENO"; then :
14450   gdb_cv_thread_db_h_has_td_notalloc=yes
14451 else
14452   gdb_cv_thread_db_h_has_td_notalloc=no
14453
14454 fi
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14456
14457 fi
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14459 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14461 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14462 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14463   $as_echo_n "(cached) " >&6
14464 else
14465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h.  */
14467 #include <thread_db.h>
14468 int
14469 main ()
14470 {
14471 int i = TD_VERSION;
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 if ac_fn_c_try_compile "$LINENO"; then :
14477   gdb_cv_thread_db_h_has_td_version=yes
14478 else
14479   gdb_cv_thread_db_h_has_td_version=no
14480
14481 fi
14482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483
14484 fi
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14486 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14487    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14488 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14489 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14490   $as_echo_n "(cached) " >&6
14491 else
14492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14493 /* end confdefs.h.  */
14494 #include <thread_db.h>
14495 int
14496 main ()
14497 {
14498 int i = TD_NOTLS;
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 if ac_fn_c_try_compile "$LINENO"; then :
14504   gdb_cv_thread_db_h_has_td_notls=yes
14505 else
14506   gdb_cv_thread_db_h_has_td_notls=no
14507
14508 fi
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510
14511 fi
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14513 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14514 fi
14515 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14516
14517 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14518
14519 fi
14520 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14521
14522 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14523
14524 fi
14525 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14526
14527 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14528
14529 fi
14530
14531 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14532    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14533 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14534 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14535   $as_echo_n "(cached) " >&6
14536 else
14537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h.  */
14539 #include <sys/syscall.h>
14540 int
14541 main ()
14542 {
14543 int i = __NR_tkill;
14544   ;
14545   return 0;
14546 }
14547 _ACEOF
14548 if ac_fn_c_try_compile "$LINENO"; then :
14549   gdb_cv_sys_syscall_h_has_tkill=yes
14550 else
14551   gdb_cv_sys_syscall_h_has_tkill=no
14552
14553 fi
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555
14556 fi
14557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14558 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14559 fi
14560 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14561
14562 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14563
14564 fi
14565
14566 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14567 "
14568 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14569   ac_have_decl=1
14570 else
14571   ac_have_decl=0
14572 fi
14573
14574 cat >>confdefs.h <<_ACEOF
14575 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14576 _ACEOF
14577
14578
14579 if test "$cross_compiling" = yes; then :
14580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h.  */
14582 #include <sys/personality.h>
14583 int
14584 main ()
14585 {
14586
14587 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
14588 #       define ADDR_NO_RANDOMIZE 0x0040000
14589 #      endif
14590        /* Test the flag could be set and stays set.  */
14591        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14592        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14593            return 1
14594   ;
14595   return 0;
14596 }
14597 _ACEOF
14598 if ac_fn_c_try_link "$LINENO"; then :
14599   have_personality=true
14600 else
14601   have_personality=false
14602 fi
14603 rm -f core conftest.err conftest.$ac_objext \
14604     conftest$ac_exeext conftest.$ac_ext
14605 else
14606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h.  */
14608 #include <sys/personality.h>
14609 int
14610 main ()
14611 {
14612
14613 #      if !HAVE_DECL_ADDR_NO_RANDOMIZE
14614 #       define ADDR_NO_RANDOMIZE 0x0040000
14615 #      endif
14616        /* Test the flag could be set and stays set.  */
14617        personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14618        if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14619            return 1
14620   ;
14621   return 0;
14622 }
14623 _ACEOF
14624 if ac_fn_c_try_run "$LINENO"; then :
14625   have_personality=true
14626 else
14627   have_personality=false
14628 fi
14629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14630   conftest.$ac_objext conftest.beam conftest.$ac_ext
14631 fi
14632
14633 if $have_personality
14634 then
14635
14636 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14637
14638 fi
14639
14640
14641 target_sysroot_reloc=0
14642
14643 # Check whether --with-sysroot was given.
14644 if test "${with_sysroot+set}" = set; then :
14645   withval=$with_sysroot;
14646  case ${with_sysroot} in
14647  yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14648  *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14649  esac
14650
14651  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14652
14653  if test "x$prefix" = xNONE; then
14654   test_prefix=/usr/local
14655  else
14656   test_prefix=$prefix
14657  fi
14658  if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14659   test_exec_prefix=$test_prefix
14660  else
14661   test_exec_prefix=$exec_prefix
14662  fi
14663  case ${TARGET_SYSTEM_ROOT} in
14664  "${test_prefix}"|"${test_prefix}/"*|\
14665  "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14666  '${prefix}'|'${prefix}/'*|\
14667  '${exec_prefix}'|'${exec_prefix}/'*)
14668    target_sysroot_reloc=1
14669    ;;
14670  esac
14671
14672 else
14673
14674  TARGET_SYSTEM_ROOT=
14675  TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14676
14677 fi
14678
14679 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14680
14681
14682
14683
14684
14685 # Check whether --with-system-gdbinit was given.
14686 if test "${with_system_gdbinit+set}" = set; then :
14687   withval=$with_system_gdbinit;
14688     SYSTEM_GDBINIT=$withval
14689 else
14690   SYSTEM_GDBINIT=
14691 fi
14692
14693
14694   test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14695   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14696   ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14697   ac_define_dir=`eval echo $ac_define_dir`
14698
14699 cat >>confdefs.h <<_ACEOF
14700 #define SYSTEM_GDBINIT "$ac_define_dir"
14701 _ACEOF
14702
14703
14704
14705
14706   if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14707      if test "x$prefix" = xNONE; then
14708         test_prefix=/usr/local
14709      else
14710         test_prefix=$prefix
14711      fi
14712   else
14713      test_prefix=$exec_prefix
14714   fi
14715   value=0
14716   case ${ac_define_dir} in
14717      "${test_prefix}"|"${test_prefix}/"*|\
14718         '${exec_prefix}'|'${exec_prefix}/'*)
14719      value=1
14720      ;;
14721   esac
14722
14723 cat >>confdefs.h <<_ACEOF
14724 #define SYSTEM_GDBINIT_RELOCATABLE $value
14725 _ACEOF
14726
14727
14728
14729
14730 # Check whether --enable-werror was given.
14731 if test "${enable_werror+set}" = set; then :
14732   enableval=$enable_werror; case "${enableval}" in
14733      yes | y) ERROR_ON_WARNING="yes" ;;
14734      no | n)  ERROR_ON_WARNING="no" ;;
14735      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
14736    esac
14737 fi
14738
14739
14740 # Enable -Werror by default when using gcc
14741 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
14742     ERROR_ON_WARNING=yes
14743 fi
14744
14745 WERROR_CFLAGS=""
14746 if test "${ERROR_ON_WARNING}" = yes ; then
14747     WERROR_CFLAGS="-Werror"
14748 fi
14749
14750 # The entries after -Wno-pointer-sign are disabled warnings which may
14751 # be enabled in the future, which can not currently be used to build
14752 # GDB.
14753 # NOTE: If you change this list, remember to update
14754 # gdb/doc/gdbint.texinfo.
14755 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
14756 -Wformat-nonliteral -Wno-pointer-sign \
14757 -Wno-unused -Wunused-value -Wunused-function \
14758 -Wno-switch -Wno-char-subscripts"
14759
14760 # Enable -Wno-format by default when using gcc on mingw since many
14761 # GCC versions complain about %I64.
14762 case "${host}" in
14763   *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
14764 esac
14765
14766 # Check whether --enable-build-warnings was given.
14767 if test "${enable_build_warnings+set}" = set; then :
14768   enableval=$enable_build_warnings; case "${enableval}" in
14769   yes)  ;;
14770   no)   build_warnings="-w";;
14771   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14772         build_warnings="${build_warnings} ${t}";;
14773   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14774         build_warnings="${t} ${build_warnings}";;
14775   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14776 esac
14777 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14778   echo "Setting compiler warning flags = $build_warnings" 6>&1
14779 fi
14780 fi
14781 # Check whether --enable-gdb-build-warnings was given.
14782 if test "${enable_gdb_build_warnings+set}" = set; then :
14783   enableval=$enable_gdb_build_warnings; case "${enableval}" in
14784   yes)  ;;
14785   no)   build_warnings="-w";;
14786   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14787         build_warnings="${build_warnings} ${t}";;
14788   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
14789         build_warnings="${t} ${build_warnings}";;
14790   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
14791 esac
14792 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
14793   echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
14794 fi
14795 fi
14796 WARN_CFLAGS=""
14797 if test "x${build_warnings}" != x -a "x$GCC" = xyes
14798 then
14799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
14800 $as_echo_n "checking compiler warning flags... " >&6; }
14801     # Separate out the -Werror flag as some files just cannot be
14802     # compiled with it enabled.
14803     for w in ${build_warnings}; do
14804         case $w in
14805         -Werr*) WERROR_CFLAGS=-Werror ;;
14806         *) # Check that GCC accepts it
14807             saved_CFLAGS="$CFLAGS"
14808             CFLAGS="$CFLAGS $w"
14809             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h.  */
14811
14812 int
14813 main ()
14814 {
14815
14816   ;
14817   return 0;
14818 }
14819 _ACEOF
14820 if ac_fn_c_try_compile "$LINENO"; then :
14821   WARN_CFLAGS="${WARN_CFLAGS} $w"
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824             CFLAGS="$saved_CFLAGS"
14825         esac
14826     done
14827     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
14828 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
14829 fi
14830
14831
14832
14833 # In the Cygwin environment, we need some additional flags.
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
14835 $as_echo_n "checking for cygwin... " >&6; }
14836 if test "${gdb_cv_os_cygwin+set}" = set; then :
14837   $as_echo_n "(cached) " >&6
14838 else
14839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h.  */
14841
14842 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
14843 lose
14844 #endif
14845 _ACEOF
14846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14847   $EGREP "lose" >/dev/null 2>&1; then :
14848   gdb_cv_os_cygwin=yes
14849 else
14850   gdb_cv_os_cygwin=no
14851 fi
14852 rm -f conftest*
14853
14854 fi
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
14856 $as_echo "$gdb_cv_os_cygwin" >&6; }
14857
14858
14859 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
14860 case ${host} in
14861   *go32* ) SER_HARDWIRE=ser-go32.o ;;
14862   *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
14863   *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
14864 esac
14865
14866
14867 # libreadline needs libuser32.a in a cygwin environment
14868 WIN32LIBS=
14869 if test x$gdb_cv_os_cygwin = xyes; then
14870     WIN32LIBS="-luser32"
14871     case "${target}" in
14872         *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
14873         ;;
14874     esac
14875 fi
14876
14877 # The ser-tcp.c module requires sockets.
14878 case ${host} in
14879   *mingw32*)
14880
14881 $as_echo "#define USE_WIN32API 1" >>confdefs.h
14882
14883     WIN32LIBS="$WIN32LIBS -lws2_32"
14884     ;;
14885 esac
14886
14887
14888 # Add ELF support to GDB, but only if BFD includes ELF support.
14889 OLD_CFLAGS=$CFLAGS
14890 OLD_LDFLAGS=$LDFLAGS
14891 OLD_LIBS=$LIBS
14892 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
14893 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
14894 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
14895 LIBS="-lbfd -liberty $intl $LIBS"
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
14897 $as_echo_n "checking for ELF support in BFD... " >&6; }
14898 if test "${gdb_cv_var_elf+set}" = set; then :
14899   $as_echo_n "(cached) " >&6
14900 else
14901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h.  */
14903 #include <stdlib.h>
14904 #include "bfd.h"
14905 #include "elf-bfd.h"
14906
14907 int
14908 main ()
14909 {
14910 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
14911   ;
14912   return 0;
14913 }
14914 _ACEOF
14915 if ac_fn_c_try_link "$LINENO"; then :
14916   gdb_cv_var_elf=yes
14917 else
14918   gdb_cv_var_elf=no
14919 fi
14920 rm -f core conftest.err conftest.$ac_objext \
14921     conftest$ac_exeext conftest.$ac_ext
14922 fi
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
14924 $as_echo "$gdb_cv_var_elf" >&6; }
14925 if test $gdb_cv_var_elf = yes; then
14926   CONFIG_OBS="$CONFIG_OBS elfread.o"
14927
14928 $as_echo "#define HAVE_ELF 1" >>confdefs.h
14929
14930 fi
14931 CFLAGS=$OLD_CFLAGS
14932 LDFLAGS=$OLD_LDFLAGS
14933 LIBS=$OLD_LIBS
14934
14935 # Add any host-specific objects to GDB.
14936 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
14937
14938 LIBGUI="../libgui/src/libgui.a"
14939 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
14940
14941
14942
14943 WIN32LDAPP=
14944
14945
14946
14947 case "${host}" in
14948 *-*-cygwin* | *-*-mingw* )
14949     configdir="win"
14950     ;;
14951 *)
14952     configdir="unix"
14953     ;;
14954 esac
14955
14956 GDBTKLIBS=
14957 if test "${enable_gdbtk}" = "yes"; then
14958
14959     # Gdbtk must have an absolute path to srcdir in order to run
14960     # properly when not installed.
14961     here=`pwd`
14962     cd ${srcdir}
14963     GDBTK_SRC_DIR=`pwd`
14964     cd $here
14965
14966
14967     #
14968     # Ok, lets find the tcl configuration
14969     # First, look for one uninstalled.
14970     # the alternative search directory is invoked by --with-tcl
14971     #
14972
14973     if test x"${no_tcl}" = x ; then
14974         # we reset no_tcl in case something fails here
14975         no_tcl=true
14976
14977 # Check whether --with-tcl was given.
14978 if test "${with_tcl+set}" = set; then :
14979   withval=$with_tcl; with_tclconfig=${withval}
14980 fi
14981
14982         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
14983 $as_echo_n "checking for Tcl configuration... " >&6; }
14984         if test "${ac_cv_c_tclconfig+set}" = set; then :
14985   $as_echo_n "(cached) " >&6
14986 else
14987
14988
14989             # First check to see if --with-tcl was specified.
14990             case "${host}" in
14991                 *-*-cygwin*) platDir="win" ;;
14992                 *) platDir="unix" ;;
14993             esac
14994             if test x"${with_tclconfig}" != x ; then
14995                 if test -f "${with_tclconfig}/tclConfig.sh" ; then
14996                     ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
14997                 else
14998                     as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
14999                 fi
15000             fi
15001
15002             # then check for a private Tcl installation
15003             if test x"${ac_cv_c_tclconfig}" = x ; then
15004                 for i in \
15005                         ../tcl \
15006                         `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15007                         `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15008                         `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15009                         ../../tcl \
15010                         `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15011                         `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15012                         `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15013                         ../../../tcl \
15014                         `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15015                         `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15016                         `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15017                     if test -f "$i/$platDir/tclConfig.sh" ; then
15018                         ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15019                         break
15020                     fi
15021                 done
15022             fi
15023
15024             # on Darwin, check in Framework installation locations
15025             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15026                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15027                         `ls -d /Library/Frameworks 2>/dev/null` \
15028                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
15029                         `ls -d /System/Library/Frameworks 2>/dev/null` \
15030                         ; do
15031                     if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15032                         ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15033                         break
15034                     fi
15035                 done
15036             fi
15037
15038             # check in a few common install locations
15039             if test x"${ac_cv_c_tclconfig}" = x ; then
15040                 for i in `ls -d ${libdir} 2>/dev/null` \
15041                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
15042                         `ls -d ${prefix}/lib 2>/dev/null` \
15043                         `ls -d /usr/local/lib 2>/dev/null` \
15044                         `ls -d /usr/contrib/lib 2>/dev/null` \
15045                         `ls -d /usr/lib 2>/dev/null` \
15046                         ; do
15047                     if test -f "$i/tclConfig.sh" ; then
15048                         ac_cv_c_tclconfig=`(cd $i; pwd)`
15049                         break
15050                     fi
15051                 done
15052             fi
15053
15054             # check in a few other private locations
15055             if test x"${ac_cv_c_tclconfig}" = x ; then
15056                 for i in \
15057                         ${srcdir}/../tcl \
15058                         `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15059                         `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15060                         `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15061                     if test -f "$i/$platDir/tclConfig.sh" ; then
15062                     ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15063                     break
15064                 fi
15065                 done
15066             fi
15067
15068 fi
15069
15070
15071         if test x"${ac_cv_c_tclconfig}" = x ; then
15072             TCL_BIN_DIR="# no Tcl configs found"
15073             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15074 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15075         else
15076             no_tcl=
15077             TCL_BIN_DIR=${ac_cv_c_tclconfig}
15078             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15079 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15080         fi
15081     fi
15082
15083
15084     # If $no_tk is nonempty, then we can't do Tk, and there is no
15085     # point to doing Tcl.
15086
15087     #
15088     # Ok, lets find the tk configuration
15089     # First, look for one uninstalled.
15090     # the alternative search directory is invoked by --with-tk
15091     #
15092
15093     if test x"${no_tk}" = x ; then
15094         # we reset no_tk in case something fails here
15095         no_tk=true
15096
15097 # Check whether --with-tk was given.
15098 if test "${with_tk+set}" = set; then :
15099   withval=$with_tk; with_tkconfig=${withval}
15100 fi
15101
15102         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15103 $as_echo_n "checking for Tk configuration... " >&6; }
15104         if test "${ac_cv_c_tkconfig+set}" = set; then :
15105   $as_echo_n "(cached) " >&6
15106 else
15107
15108
15109             # First check to see if --with-tkconfig was specified.
15110             if test x"${with_tkconfig}" != x ; then
15111                 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15112                     ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15113                 else
15114                     as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15115                 fi
15116             fi
15117
15118             # then check for a private Tk library
15119             case "${host}" in
15120                 *-*-cygwin*) platDir="win" ;;
15121                 *) platDir="unix" ;;
15122             esac
15123             if test x"${ac_cv_c_tkconfig}" = x ; then
15124                 for i in \
15125                         ../tk \
15126                         `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15127                         `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15128                         `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15129                         ../../tk \
15130                         `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15131                         `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15132                         `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15133                         ../../../tk \
15134                         `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15135                         `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15136                         `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15137                     if test -f "$i/$platDir/tkConfig.sh" ; then
15138                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15139                         break
15140                     fi
15141                 done
15142             fi
15143
15144             # on Darwin, check in Framework installation locations
15145             if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15146                 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15147                         `ls -d /Library/Frameworks 2>/dev/null` \
15148                         `ls -d /Network/Library/Frameworks 2>/dev/null` \
15149                         `ls -d /System/Library/Frameworks 2>/dev/null` \
15150                         ; do
15151                     if test -f "$i/Tk.framework/tkConfig.sh" ; then
15152                         ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15153                         break
15154                     fi
15155                 done
15156             fi
15157
15158             # check in a few common install locations
15159             if test x"${ac_cv_c_tkconfig}" = x ; then
15160                 for i in `ls -d ${libdir} 2>/dev/null` \
15161                         `ls -d ${exec_prefix}/lib 2>/dev/null` \
15162                         `ls -d ${prefix}/lib 2>/dev/null` \
15163                         `ls -d /usr/local/lib 2>/dev/null` \
15164                         `ls -d /usr/contrib/lib 2>/dev/null` \
15165                         `ls -d /usr/lib 2>/dev/null` \
15166                         ; do
15167                     if test -f "$i/tkConfig.sh" ; then
15168                         ac_cv_c_tkconfig=`(cd $i; pwd)`
15169                         break
15170                     fi
15171                 done
15172             fi
15173             # check in a few other private locations
15174             if test x"${ac_cv_c_tkconfig}" = x ; then
15175                 for i in \
15176                         ${srcdir}/../tk \
15177                         `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15178                         `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15179                         `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15180                     if test -f "$i/$platDir/tkConfig.sh" ; then
15181                         ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15182                         break
15183                     fi
15184                 done
15185             fi
15186
15187 fi
15188
15189
15190         if test x"${ac_cv_c_tkconfig}" = x ; then
15191             TK_BIN_DIR="# no Tk configs found"
15192             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15193 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15194         else
15195             no_tk=
15196             TK_BIN_DIR=${ac_cv_c_tkconfig}
15197             { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15198 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15199         fi
15200     fi
15201
15202
15203     if test -z "${no_tcl}" -a -z "${no_tk}"; then
15204
15205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15206 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15207
15208     if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15209         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15210 $as_echo "loading" >&6; }
15211         . ${TCL_BIN_DIR}/tclConfig.sh
15212     else
15213         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15214 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15215     fi
15216
15217     # eval is required to do the TCL_DBGX substitution
15218     eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15219     eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15220
15221     # If the TCL_BIN_DIR is the build directory (not the install directory),
15222     # then set the common variable name to the value of the build variables.
15223     # For example, the variable TCL_LIB_SPEC will be set to the value
15224     # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15225     # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15226     # installed and uninstalled version of Tcl.
15227     if test -f "${TCL_BIN_DIR}/Makefile" ; then
15228         TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15229         TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15230         TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15231     elif test "`uname -s`" = "Darwin"; then
15232         # If Tcl was built as a framework, attempt to use the libraries
15233         # from the framework at the given location so that linking works
15234         # against Tcl.framework installed in an arbitary location.
15235         case ${TCL_DEFS} in
15236             *TCL_FRAMEWORK*)
15237                 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15238                     for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15239                              "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15240                         if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15241                             TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15242                             break
15243                         fi
15244                     done
15245                 fi
15246                 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15247                     TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15248                     TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15249                 fi
15250                 ;;
15251         esac
15252     fi
15253
15254     # eval is required to do the TCL_DBGX substitution
15255     eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15256     eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15257     eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15258     eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274         # Check for in-tree tcl
15275         here=`pwd`
15276         cd ${srcdir}/..
15277         topdir=`pwd`
15278         cd ${here}
15279
15280         intree="no"
15281         if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15282           intree="yes"
15283         fi
15284
15285         # Find Tcl private headers
15286         if test x"${intree}" = xno; then
15287
15288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15289 $as_echo_n "checking for Tcl private headers... " >&6; }
15290   private_dir=""
15291   dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15292   if test -f ${dir}/tclInt.h ; then
15293     private_dir=${dir}
15294   fi
15295
15296   if test x"${private_dir}" = x; then
15297     as_fn_error "could not find private Tcl headers" "$LINENO" 5
15298   else
15299     TCL_PRIVATE_INCLUDE="-I${private_dir}"
15300     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15301 $as_echo "${private_dir}" >&6; }
15302   fi
15303
15304           TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15305           TCL_LIBRARY="${TCL_LIB_SPEC}"
15306           TCL_DEPS=""
15307         else
15308           # If building tcl in the same src tree, private headers
15309           # are not needed, but we need to be sure to use the right
15310           # headers library
15311           TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15312           TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15313           TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15314         fi
15315
15316
15317
15318
15319
15320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15321 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15322
15323     if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15325 $as_echo "loading" >&6; }
15326         . ${TK_BIN_DIR}/tkConfig.sh
15327     else
15328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15329 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15330     fi
15331
15332     # eval is required to do the TK_DBGX substitution
15333     eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15334     eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15335
15336     # If the TK_BIN_DIR is the build directory (not the install directory),
15337     # then set the common variable name to the value of the build variables.
15338     # For example, the variable TK_LIB_SPEC will be set to the value
15339     # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15340     # instead of TK_BUILD_LIB_SPEC since it will work with both an
15341     # installed and uninstalled version of Tcl.
15342     if test -f "${TK_BIN_DIR}/Makefile" ; then
15343         TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15344         TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15345         TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15346     elif test "`uname -s`" = "Darwin"; then
15347         # If Tk was built as a framework, attempt to use the libraries
15348         # from the framework at the given location so that linking works
15349         # against Tk.framework installed in an arbitary location.
15350         case ${TK_DEFS} in
15351             *TK_FRAMEWORK*)
15352                 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15353                     for i in "`cd ${TK_BIN_DIR}; pwd`" \
15354                              "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15355                         if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15356                             TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15357                             break
15358                         fi
15359                     done
15360                 fi
15361                 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15362                     TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15363                     TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15364                 fi
15365                 ;;
15366         esac
15367     fi
15368
15369     # eval is required to do the TK_DBGX substitution
15370     eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15371     eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15372     eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15373     eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388         # Check for in-tree Tk
15389         intree="no"
15390         if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15391           intree="yes"
15392         fi
15393
15394         # Find Tk private headers
15395         if test x"${intree}" = xno; then
15396
15397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15398 $as_echo_n "checking for Tk private headers... " >&6; }
15399   private_dir=""
15400   dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15401   if test -f ${dir}/tkInt.h; then
15402     private_dir=${dir}
15403   fi
15404
15405   if test x"${private_dir}" = x; then
15406     as_fn_error "could not find Tk private headers" "$LINENO" 5
15407   else
15408     TK_PRIVATE_INCLUDE="-I${private_dir}"
15409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15410 $as_echo "${private_dir}" >&6; }
15411   fi
15412
15413           TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15414           TK_LIBRARY=${TK_LIB_SPEC}
15415           TK_DEPS=""
15416         else
15417           TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15418           TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15419           TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15420         fi
15421
15422
15423
15424
15425
15426         ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15427
15428         # Include some libraries that Tcl and Tk want.
15429         TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15430         # Yes, the ordering seems wrong here.  But it isn't.
15431         # TK_LIBS is the list of libraries that need to be linked
15432         # after Tcl/Tk.  Note that this isn't put into LIBS.  If it
15433         # were in LIBS then any link tests after this point would
15434         # try to include things like `$(LIBGUI)', which wouldn't work.
15435         GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15436
15437         CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15438         CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15439         CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15440         CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15441         CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15442         CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15443         CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15444
15445         if test x$gdb_cv_os_cygwin = xyes; then
15446           WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15447           WIN32LDAPP="-Wl,--subsystem,console"
15448           CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15449         fi
15450
15451         subdirs="$subdirs gdbtk"
15452
15453     fi
15454 fi
15455
15456
15457
15458
15459
15460
15461
15462
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15464 $as_echo_n "checking for X... " >&6; }
15465
15466
15467 # Check whether --with-x was given.
15468 if test "${with_x+set}" = set; then :
15469   withval=$with_x;
15470 fi
15471
15472 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15473 if test "x$with_x" = xno; then
15474   # The user explicitly disabled X.
15475   have_x=disabled
15476 else
15477   case $x_includes,$x_libraries in #(
15478     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15479     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15480   $as_echo_n "(cached) " >&6
15481 else
15482   # One or both of the vars are not set, and there is no cached value.
15483 ac_x_includes=no ac_x_libraries=no
15484 rm -f -r conftest.dir
15485 if mkdir conftest.dir; then
15486   cd conftest.dir
15487   cat >Imakefile <<'_ACEOF'
15488 incroot:
15489         @echo incroot='${INCROOT}'
15490 usrlibdir:
15491         @echo usrlibdir='${USRLIBDIR}'
15492 libdir:
15493         @echo libdir='${LIBDIR}'
15494 _ACEOF
15495   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15496     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15497     for ac_var in incroot usrlibdir libdir; do
15498       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15499     done
15500     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15501     for ac_extension in a so sl dylib la dll; do
15502       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15503          test -f "$ac_im_libdir/libX11.$ac_extension"; then
15504         ac_im_usrlibdir=$ac_im_libdir; break
15505       fi
15506     done
15507     # Screen out bogus values from the imake configuration.  They are
15508     # bogus both because they are the default anyway, and because
15509     # using them would break gcc on systems where it needs fixed includes.
15510     case $ac_im_incroot in
15511         /usr/include) ac_x_includes= ;;
15512         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15513     esac
15514     case $ac_im_usrlibdir in
15515         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15516         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15517     esac
15518   fi
15519   cd ..
15520   rm -f -r conftest.dir
15521 fi
15522
15523 # Standard set of common directories for X headers.
15524 # Check X11 before X11Rn because it is often a symlink to the current release.
15525 ac_x_header_dirs='
15526 /usr/X11/include
15527 /usr/X11R7/include
15528 /usr/X11R6/include
15529 /usr/X11R5/include
15530 /usr/X11R4/include
15531
15532 /usr/include/X11
15533 /usr/include/X11R7
15534 /usr/include/X11R6
15535 /usr/include/X11R5
15536 /usr/include/X11R4
15537
15538 /usr/local/X11/include
15539 /usr/local/X11R7/include
15540 /usr/local/X11R6/include
15541 /usr/local/X11R5/include
15542 /usr/local/X11R4/include
15543
15544 /usr/local/include/X11
15545 /usr/local/include/X11R7
15546 /usr/local/include/X11R6
15547 /usr/local/include/X11R5
15548 /usr/local/include/X11R4
15549
15550 /usr/X386/include
15551 /usr/x386/include
15552 /usr/XFree86/include/X11
15553
15554 /usr/include
15555 /usr/local/include
15556 /usr/unsupported/include
15557 /usr/athena/include
15558 /usr/local/x11r5/include
15559 /usr/lpp/Xamples/include
15560
15561 /usr/openwin/include
15562 /usr/openwin/share/include'
15563
15564 if test "$ac_x_includes" = no; then
15565   # Guess where to find include files, by looking for Xlib.h.
15566   # First, try using that file with no special directory specified.
15567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15568 /* end confdefs.h.  */
15569 #include <X11/Xlib.h>
15570 _ACEOF
15571 if ac_fn_c_try_cpp "$LINENO"; then :
15572   # We can compile using X headers with no special include directory.
15573 ac_x_includes=
15574 else
15575   for ac_dir in $ac_x_header_dirs; do
15576   if test -r "$ac_dir/X11/Xlib.h"; then
15577     ac_x_includes=$ac_dir
15578     break
15579   fi
15580 done
15581 fi
15582 rm -f conftest.err conftest.$ac_ext
15583 fi # $ac_x_includes = no
15584
15585 if test "$ac_x_libraries" = no; then
15586   # Check for the libraries.
15587   # See if we find them without any special options.
15588   # Don't add to $LIBS permanently.
15589   ac_save_LIBS=$LIBS
15590   LIBS="-lX11 $LIBS"
15591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h.  */
15593 #include <X11/Xlib.h>
15594 int
15595 main ()
15596 {
15597 XrmInitialize ()
15598   ;
15599   return 0;
15600 }
15601 _ACEOF
15602 if ac_fn_c_try_link "$LINENO"; then :
15603   LIBS=$ac_save_LIBS
15604 # We can link X programs with no special library path.
15605 ac_x_libraries=
15606 else
15607   LIBS=$ac_save_LIBS
15608 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15609 do
15610   # Don't even attempt the hair of trying to link an X program!
15611   for ac_extension in a so sl dylib la dll; do
15612     if test -r "$ac_dir/libX11.$ac_extension"; then
15613       ac_x_libraries=$ac_dir
15614       break 2
15615     fi
15616   done
15617 done
15618 fi
15619 rm -f core conftest.err conftest.$ac_objext \
15620     conftest$ac_exeext conftest.$ac_ext
15621 fi # $ac_x_libraries = no
15622
15623 case $ac_x_includes,$ac_x_libraries in #(
15624   no,* | *,no | *\'*)
15625     # Didn't find X, or a directory has "'" in its name.
15626     ac_cv_have_x="have_x=no";; #(
15627   *)
15628     # Record where we found X for the cache.
15629     ac_cv_have_x="have_x=yes\
15630         ac_x_includes='$ac_x_includes'\
15631         ac_x_libraries='$ac_x_libraries'"
15632 esac
15633 fi
15634 ;; #(
15635     *) have_x=yes;;
15636   esac
15637   eval "$ac_cv_have_x"
15638 fi # $with_x != no
15639
15640 if test "$have_x" != yes; then
15641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15642 $as_echo "$have_x" >&6; }
15643   no_x=yes
15644 else
15645   # If each of the values was on the command line, it overrides each guess.
15646   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15647   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15648   # Update the cache value to reflect the command line values.
15649   ac_cv_have_x="have_x=yes\
15650         ac_x_includes='$x_includes'\
15651         ac_x_libraries='$x_libraries'"
15652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15653 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15654 fi
15655
15656
15657 # Unlike the sim directory, whether a simulator is linked is controlled by
15658 # presence of a gdb_sim definition in the target configure.tgt entry.
15659 # This code just checks for a few cases where we'd like to ignore those
15660 # definitions, even when they're present in the '.mt' file.  These cases
15661 # are when --disable-sim is specified, or if the simulator directory is
15662 # not part of the source tree.
15663 #
15664 # Check whether --enable-sim was given.
15665 if test "${enable_sim+set}" = set; then :
15666   enableval=$enable_sim; echo "enable_sim = $enable_sim";
15667  echo "enableval = ${enableval}";
15668  case "${enableval}" in
15669   yes) ignore_sim=false ;;
15670   no)  ignore_sim=true ;;
15671   *)   ignore_sim=false ;;
15672  esac
15673 else
15674   ignore_sim=false
15675 fi
15676
15677
15678 if test ! -d "${srcdir}/../sim"; then
15679   ignore_sim=true
15680 fi
15681
15682 SIM=
15683 SIM_OBS=
15684 if test "${ignore_sim}" = "false"; then
15685   if test x"${gdb_sim}" != x ; then
15686     SIM="${gdb_sim}"
15687     SIM_OBS="remote-sim.o"
15688
15689 $as_echo "#define WITH_SIM 1" >>confdefs.h
15690
15691   fi
15692 fi
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707 # List of host floatformats.
15708
15709 cat >>confdefs.h <<_ACEOF
15710 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
15711 _ACEOF
15712
15713
15714 cat >>confdefs.h <<_ACEOF
15715 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
15716 _ACEOF
15717
15718
15719 cat >>confdefs.h <<_ACEOF
15720 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
15721 _ACEOF
15722
15723
15724 # target_subdir is used by the testsuite to find the target libraries.
15725 target_subdir=
15726 if test "${host}" != "${target}"; then
15727     target_subdir="${target_alias}/"
15728 fi
15729
15730
15731 frags=
15732 if test "${gdb_native}" = "yes"; then
15733   host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
15734   if test ! -f ${host_makefile_frag}; then
15735     as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
15736   fi
15737   frags="$frags $host_makefile_frag"
15738 else
15739   host_makefile_frag=/dev/null
15740 fi
15741
15742
15743
15744
15745 if test "${gdb_native}" = "yes"; then
15746 # We pick this up from the host configuration file (.mh) because we
15747 # do not have a native configuration Makefile fragment.
15748 nativefile=`sed -n '
15749 s/NAT_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
15750 ' ${host_makefile_frag}`
15751 fi
15752
15753
15754 if test x"${gdb_osabi}" != x ; then
15755
15756 cat >>confdefs.h <<_ACEOF
15757 #define GDB_OSABI_DEFAULT $gdb_osabi
15758 _ACEOF
15759
15760 fi
15761
15762 # Enable multi-ice-gdb-server.
15763 # Check whether --enable-multi-ice was given.
15764 if test "${enable_multi_ice+set}" = set; then :
15765   enableval=$enable_multi_ice; case $enableval in
15766     yes | no)
15767       ;;
15768     *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
15769   esac
15770 fi
15771
15772 if test "x$enable_multi_ice" = xyes; then
15773    subdirs="$subdirs multi-ice"
15774
15775 fi
15776
15777 # We only build gdbserver automatically in a native configuration.
15778 if test "$gdb_native" = "yes"; then
15779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
15780 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
15781   if test "x$build_gdbserver" = xyes; then
15782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15783 $as_echo "yes" >&6; }
15784     subdirs="$subdirs gdbserver"
15785
15786   else
15787     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15788 $as_echo "no" >&6; }
15789   fi
15790 fi
15791
15792 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
15793 # to an empty version.
15794
15795 files=
15796 links=
15797
15798 rm -f nm.h
15799 if test "${nativefile}" != ""; then
15800     case "${nativefile}" in
15801       nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
15802       * ) GDB_NM_FILE="${nativefile}"
15803     esac
15804     files="${files} ${GDB_NM_FILE}"
15805     links="${links} nm.h"
15806
15807 cat >>confdefs.h <<_ACEOF
15808 #define GDB_NM_FILE "${GDB_NM_FILE}"
15809 _ACEOF
15810
15811 fi
15812
15813
15814 ac_sources="$files"
15815 ac_dests="$links"
15816 while test -n "$ac_sources"; do
15817   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
15818   set $ac_sources; ac_source=$1; shift; ac_sources=$*
15819   ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
15820 done
15821 ac_config_links="$ac_config_links $ac_config_links_1"
15822
15823
15824
15825
15826
15827 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
15828
15829
15830 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
15831
15832 ac_config_commands="$ac_config_commands default"
15833
15834 cat >confcache <<\_ACEOF
15835 # This file is a shell script that caches the results of configure
15836 # tests run on this system so they can be shared between configure
15837 # scripts and configure runs, see configure's option --config-cache.
15838 # It is not useful on other systems.  If it contains results you don't
15839 # want to keep, you may remove or edit it.
15840 #
15841 # config.status only pays attention to the cache file if you give it
15842 # the --recheck option to rerun configure.
15843 #
15844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15846 # following values.
15847
15848 _ACEOF
15849
15850 # The following way of writing the cache mishandles newlines in values,
15851 # but we know of no workaround that is simple, portable, and efficient.
15852 # So, we kill variables containing newlines.
15853 # Ultrix sh set writes to stderr and can't be redirected directly,
15854 # and sets the high bit in the cache file unless we assign to the vars.
15855 (
15856   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15857     eval ac_val=\$$ac_var
15858     case $ac_val in #(
15859     *${as_nl}*)
15860       case $ac_var in #(
15861       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15863       esac
15864       case $ac_var in #(
15865       _ | IFS | as_nl) ;; #(
15866       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15867       *) { eval $ac_var=; unset $ac_var;} ;;
15868       esac ;;
15869     esac
15870   done
15871
15872   (set) 2>&1 |
15873     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15874     *${as_nl}ac_space=\ *)
15875       # `set' does not quote correctly, so add quotes: double-quote
15876       # substitution turns \\\\ into \\, and sed turns \\ into \.
15877       sed -n \
15878         "s/'/'\\\\''/g;
15879           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15880       ;; #(
15881     *)
15882       # `set' quotes correctly as required by POSIX, so do not add quotes.
15883       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15884       ;;
15885     esac |
15886     sort
15887 ) |
15888   sed '
15889      /^ac_cv_env_/b end
15890      t clear
15891      :clear
15892      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15893      t end
15894      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15895      :end' >>confcache
15896 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15897   if test -w "$cache_file"; then
15898     test "x$cache_file" != "x/dev/null" &&
15899       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15900 $as_echo "$as_me: updating cache $cache_file" >&6;}
15901     cat confcache >$cache_file
15902   else
15903     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15905   fi
15906 fi
15907 rm -f confcache
15908
15909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15910 # Let make expand exec_prefix.
15911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15912
15913 DEFS=-DHAVE_CONFIG_H
15914
15915 ac_libobjs=
15916 ac_ltlibobjs=
15917 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15918   # 1. Remove the extension, and $U if already installed.
15919   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15920   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15921   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15922   #    will be set to the directory where LIBOBJS objects are built.
15923   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15924   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15925 done
15926 LIBOBJS=$ac_libobjs
15927
15928 LTLIBOBJS=$ac_ltlibobjs
15929
15930
15931 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15932   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15934 fi
15935 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
15936   as_fn_error "conditional \"GMAKE\" was never defined.
15937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15938 fi
15939 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15940   as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15942 fi
15943
15944     gl_libobjs=
15945     gl_ltlibobjs=
15946     if test -n "$gl_LIBOBJS"; then
15947       # Remove the extension.
15948       sed_drop_objext='s/\.o$//;s/\.obj$//'
15949       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15950         gl_libobjs="$gl_libobjs $i.$ac_objext"
15951         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15952       done
15953     fi
15954     gl_LIBOBJS=$gl_libobjs
15955
15956     gl_LTLIBOBJS=$gl_ltlibobjs
15957
15958
15959
15960     gltests_libobjs=
15961     gltests_ltlibobjs=
15962     if test -n "$gltests_LIBOBJS"; then
15963       # Remove the extension.
15964       sed_drop_objext='s/\.o$//;s/\.obj$//'
15965       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15966         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15967         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15968       done
15969     fi
15970     gltests_LIBOBJS=$gltests_libobjs
15971
15972     gltests_LTLIBOBJS=$gltests_ltlibobjs
15973
15974
15975 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15976   as_fn_error "conditional \"AMDEP\" was never defined.
15977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15978 fi
15979 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15980   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15982 fi
15983  if test -n "$EXEEXT"; then
15984   am__EXEEXT_TRUE=
15985   am__EXEEXT_FALSE='#'
15986 else
15987   am__EXEEXT_TRUE='#'
15988   am__EXEEXT_FALSE=
15989 fi
15990
15991
15992
15993 : ${CONFIG_STATUS=./config.status}
15994 ac_write_fail=0
15995 ac_clean_files_save=$ac_clean_files
15996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15998 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15999 as_write_fail=0
16000 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16001 #! $SHELL
16002 # Generated by $as_me.
16003 # Run this file to recreate the current configuration.
16004 # Compiler output produced by configure, useful for debugging
16005 # configure, is in config.log if it exists.
16006
16007 debug=false
16008 ac_cs_recheck=false
16009 ac_cs_silent=false
16010
16011 SHELL=\${CONFIG_SHELL-$SHELL}
16012 export SHELL
16013 _ASEOF
16014 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16015 ## -------------------- ##
16016 ## M4sh Initialization. ##
16017 ## -------------------- ##
16018
16019 # Be more Bourne compatible
16020 DUALCASE=1; export DUALCASE # for MKS sh
16021 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16022   emulate sh
16023   NULLCMD=:
16024   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16025   # is contrary to our usage.  Disable this feature.
16026   alias -g '${1+"$@"}'='"$@"'
16027   setopt NO_GLOB_SUBST
16028 else
16029   case `(set -o) 2>/dev/null` in #(
16030   *posix*) :
16031     set -o posix ;; #(
16032   *) :
16033      ;;
16034 esac
16035 fi
16036
16037
16038 as_nl='
16039 '
16040 export as_nl
16041 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16042 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16044 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16045 # Prefer a ksh shell builtin over an external printf program on Solaris,
16046 # but without wasting forks for bash or zsh.
16047 if test -z "$BASH_VERSION$ZSH_VERSION" \
16048     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16049   as_echo='print -r --'
16050   as_echo_n='print -rn --'
16051 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16052   as_echo='printf %s\n'
16053   as_echo_n='printf %s'
16054 else
16055   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16056     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16057     as_echo_n='/usr/ucb/echo -n'
16058   else
16059     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16060     as_echo_n_body='eval
16061       arg=$1;
16062       case $arg in #(
16063       *"$as_nl"*)
16064         expr "X$arg" : "X\\(.*\\)$as_nl";
16065         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16066       esac;
16067       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16068     '
16069     export as_echo_n_body
16070     as_echo_n='sh -c $as_echo_n_body as_echo'
16071   fi
16072   export as_echo_body
16073   as_echo='sh -c $as_echo_body as_echo'
16074 fi
16075
16076 # The user is always right.
16077 if test "${PATH_SEPARATOR+set}" != set; then
16078   PATH_SEPARATOR=:
16079   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16080     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16081       PATH_SEPARATOR=';'
16082   }
16083 fi
16084
16085
16086 # IFS
16087 # We need space, tab and new line, in precisely that order.  Quoting is
16088 # there to prevent editors from complaining about space-tab.
16089 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16090 # splitting by setting IFS to empty value.)
16091 IFS=" ""        $as_nl"
16092
16093 # Find who we are.  Look in the path if we contain no directory separator.
16094 case $0 in #((
16095   *[\\/]* ) as_myself=$0 ;;
16096   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16097 for as_dir in $PATH
16098 do
16099   IFS=$as_save_IFS
16100   test -z "$as_dir" && as_dir=.
16101     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16102   done
16103 IFS=$as_save_IFS
16104
16105      ;;
16106 esac
16107 # We did not find ourselves, most probably we were run as `sh COMMAND'
16108 # in which case we are not to be found in the path.
16109 if test "x$as_myself" = x; then
16110   as_myself=$0
16111 fi
16112 if test ! -f "$as_myself"; then
16113   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16114   exit 1
16115 fi
16116
16117 # Unset variables that we do not need and which cause bugs (e.g. in
16118 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16119 # suppresses any "Segmentation fault" message there.  '((' could
16120 # trigger a bug in pdksh 5.2.14.
16121 for as_var in BASH_ENV ENV MAIL MAILPATH
16122 do eval test x\${$as_var+set} = xset \
16123   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16124 done
16125 PS1='$ '
16126 PS2='> '
16127 PS4='+ '
16128
16129 # NLS nuisances.
16130 LC_ALL=C
16131 export LC_ALL
16132 LANGUAGE=C
16133 export LANGUAGE
16134
16135 # CDPATH.
16136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16137
16138
16139 # as_fn_error ERROR [LINENO LOG_FD]
16140 # ---------------------------------
16141 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16142 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16143 # script with status $?, using 1 if that was 0.
16144 as_fn_error ()
16145 {
16146   as_status=$?; test $as_status -eq 0 && as_status=1
16147   if test "$3"; then
16148     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16149     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16150   fi
16151   $as_echo "$as_me: error: $1" >&2
16152   as_fn_exit $as_status
16153 } # as_fn_error
16154
16155
16156 # as_fn_set_status STATUS
16157 # -----------------------
16158 # Set $? to STATUS, without forking.
16159 as_fn_set_status ()
16160 {
16161   return $1
16162 } # as_fn_set_status
16163
16164 # as_fn_exit STATUS
16165 # -----------------
16166 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16167 as_fn_exit ()
16168 {
16169   set +e
16170   as_fn_set_status $1
16171   exit $1
16172 } # as_fn_exit
16173
16174 # as_fn_unset VAR
16175 # ---------------
16176 # Portably unset VAR.
16177 as_fn_unset ()
16178 {
16179   { eval $1=; unset $1;}
16180 }
16181 as_unset=as_fn_unset
16182 # as_fn_append VAR VALUE
16183 # ----------------------
16184 # Append the text in VALUE to the end of the definition contained in VAR. Take
16185 # advantage of any shell optimizations that allow amortized linear growth over
16186 # repeated appends, instead of the typical quadratic growth present in naive
16187 # implementations.
16188 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16189   eval 'as_fn_append ()
16190   {
16191     eval $1+=\$2
16192   }'
16193 else
16194   as_fn_append ()
16195   {
16196     eval $1=\$$1\$2
16197   }
16198 fi # as_fn_append
16199
16200 # as_fn_arith ARG...
16201 # ------------------
16202 # Perform arithmetic evaluation on the ARGs, and store the result in the
16203 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16204 # must be portable across $(()) and expr.
16205 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16206   eval 'as_fn_arith ()
16207   {
16208     as_val=$(( $* ))
16209   }'
16210 else
16211   as_fn_arith ()
16212   {
16213     as_val=`expr "$@" || test $? -eq 1`
16214   }
16215 fi # as_fn_arith
16216
16217
16218 if expr a : '\(a\)' >/dev/null 2>&1 &&
16219    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16220   as_expr=expr
16221 else
16222   as_expr=false
16223 fi
16224
16225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16226   as_basename=basename
16227 else
16228   as_basename=false
16229 fi
16230
16231 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16232   as_dirname=dirname
16233 else
16234   as_dirname=false
16235 fi
16236
16237 as_me=`$as_basename -- "$0" ||
16238 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16239          X"$0" : 'X\(//\)$' \| \
16240          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16241 $as_echo X/"$0" |
16242     sed '/^.*\/\([^/][^/]*\)\/*$/{
16243             s//\1/
16244             q
16245           }
16246           /^X\/\(\/\/\)$/{
16247             s//\1/
16248             q
16249           }
16250           /^X\/\(\/\).*/{
16251             s//\1/
16252             q
16253           }
16254           s/.*/./; q'`
16255
16256 # Avoid depending upon Character Ranges.
16257 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16258 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16259 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16260 as_cr_digits='0123456789'
16261 as_cr_alnum=$as_cr_Letters$as_cr_digits
16262
16263 ECHO_C= ECHO_N= ECHO_T=
16264 case `echo -n x` in #(((((
16265 -n*)
16266   case `echo 'xy\c'` in
16267   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16268   xy)  ECHO_C='\c';;
16269   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16270        ECHO_T=' ';;
16271   esac;;
16272 *)
16273   ECHO_N='-n';;
16274 esac
16275
16276 rm -f conf$$ conf$$.exe conf$$.file
16277 if test -d conf$$.dir; then
16278   rm -f conf$$.dir/conf$$.file
16279 else
16280   rm -f conf$$.dir
16281   mkdir conf$$.dir 2>/dev/null
16282 fi
16283 if (echo >conf$$.file) 2>/dev/null; then
16284   if ln -s conf$$.file conf$$ 2>/dev/null; then
16285     as_ln_s='ln -s'
16286     # ... but there are two gotchas:
16287     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16288     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16289     # In both cases, we have to default to `cp -p'.
16290     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16291       as_ln_s='cp -p'
16292   elif ln conf$$.file conf$$ 2>/dev/null; then
16293     as_ln_s=ln
16294   else
16295     as_ln_s='cp -p'
16296   fi
16297 else
16298   as_ln_s='cp -p'
16299 fi
16300 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16301 rmdir conf$$.dir 2>/dev/null
16302
16303
16304 # as_fn_mkdir_p
16305 # -------------
16306 # Create "$as_dir" as a directory, including parents if necessary.
16307 as_fn_mkdir_p ()
16308 {
16309
16310   case $as_dir in #(
16311   -*) as_dir=./$as_dir;;
16312   esac
16313   test -d "$as_dir" || eval $as_mkdir_p || {
16314     as_dirs=
16315     while :; do
16316       case $as_dir in #(
16317       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16318       *) as_qdir=$as_dir;;
16319       esac
16320       as_dirs="'$as_qdir' $as_dirs"
16321       as_dir=`$as_dirname -- "$as_dir" ||
16322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16323          X"$as_dir" : 'X\(//\)[^/]' \| \
16324          X"$as_dir" : 'X\(//\)$' \| \
16325          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16326 $as_echo X"$as_dir" |
16327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16328             s//\1/
16329             q
16330           }
16331           /^X\(\/\/\)[^/].*/{
16332             s//\1/
16333             q
16334           }
16335           /^X\(\/\/\)$/{
16336             s//\1/
16337             q
16338           }
16339           /^X\(\/\).*/{
16340             s//\1/
16341             q
16342           }
16343           s/.*/./; q'`
16344       test -d "$as_dir" && break
16345     done
16346     test -z "$as_dirs" || eval "mkdir $as_dirs"
16347   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16348
16349
16350 } # as_fn_mkdir_p
16351 if mkdir -p . 2>/dev/null; then
16352   as_mkdir_p='mkdir -p "$as_dir"'
16353 else
16354   test -d ./-p && rmdir ./-p
16355   as_mkdir_p=false
16356 fi
16357
16358 if test -x / >/dev/null 2>&1; then
16359   as_test_x='test -x'
16360 else
16361   if ls -dL / >/dev/null 2>&1; then
16362     as_ls_L_option=L
16363   else
16364     as_ls_L_option=
16365   fi
16366   as_test_x='
16367     eval sh -c '\''
16368       if test -d "$1"; then
16369         test -d "$1/.";
16370       else
16371         case $1 in #(
16372         -*)set "./$1";;
16373         esac;
16374         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16375         ???[sx]*):;;*)false;;esac;fi
16376     '\'' sh
16377   '
16378 fi
16379 as_executable_p=$as_test_x
16380
16381 # Sed expression to map a string onto a valid CPP name.
16382 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16383
16384 # Sed expression to map a string onto a valid variable name.
16385 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16386
16387
16388 exec 6>&1
16389 ## ----------------------------------- ##
16390 ## Main body of $CONFIG_STATUS script. ##
16391 ## ----------------------------------- ##
16392 _ASEOF
16393 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16394
16395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16396 # Save the log message, to keep $0 and so on meaningful, and to
16397 # report actual input values of CONFIG_FILES etc. instead of their
16398 # values after options handling.
16399 ac_log="
16400 This file was extended by $as_me, which was
16401 generated by GNU Autoconf 2.64.  Invocation command line was
16402
16403   CONFIG_FILES    = $CONFIG_FILES
16404   CONFIG_HEADERS  = $CONFIG_HEADERS
16405   CONFIG_LINKS    = $CONFIG_LINKS
16406   CONFIG_COMMANDS = $CONFIG_COMMANDS
16407   $ $0 $@
16408
16409 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16410 "
16411
16412 _ACEOF
16413
16414 case $ac_config_files in *"
16415 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16416 esac
16417
16418 case $ac_config_headers in *"
16419 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16420 esac
16421
16422
16423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16424 # Files that config.status was made for.
16425 config_files="$ac_config_files"
16426 config_headers="$ac_config_headers"
16427 config_links="$ac_config_links"
16428 config_commands="$ac_config_commands"
16429
16430 _ACEOF
16431
16432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16433 ac_cs_usage="\
16434 \`$as_me' instantiates files and other configuration actions
16435 from templates according to the current configuration.  Unless the files
16436 and actions are specified as TAGs, all are instantiated by default.
16437
16438 Usage: $0 [OPTION]... [TAG]...
16439
16440   -h, --help       print this help, then exit
16441   -V, --version    print version number and configuration settings, then exit
16442   -q, --quiet, --silent
16443                    do not print progress messages
16444   -d, --debug      don't remove temporary files
16445       --recheck    update $as_me by reconfiguring in the same conditions
16446       --file=FILE[:TEMPLATE]
16447                    instantiate the configuration file FILE
16448       --header=FILE[:TEMPLATE]
16449                    instantiate the configuration header FILE
16450
16451 Configuration files:
16452 $config_files
16453
16454 Configuration headers:
16455 $config_headers
16456
16457 Configuration links:
16458 $config_links
16459
16460 Configuration commands:
16461 $config_commands
16462
16463 Report bugs to the package provider."
16464
16465 _ACEOF
16466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16467 ac_cs_version="\\
16468 config.status
16469 configured by $0, generated by GNU Autoconf 2.64,
16470   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16471
16472 Copyright (C) 2009 Free Software Foundation, Inc.
16473 This config.status script is free software; the Free Software Foundation
16474 gives unlimited permission to copy, distribute and modify it."
16475
16476 ac_pwd='$ac_pwd'
16477 srcdir='$srcdir'
16478 INSTALL='$INSTALL'
16479 MKDIR_P='$MKDIR_P'
16480 AWK='$AWK'
16481 test -n "\$AWK" || AWK=awk
16482 _ACEOF
16483
16484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16485 # The default lists apply if the user does not specify any file.
16486 ac_need_defaults=:
16487 while test $# != 0
16488 do
16489   case $1 in
16490   --*=*)
16491     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16492     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16493     ac_shift=:
16494     ;;
16495   *)
16496     ac_option=$1
16497     ac_optarg=$2
16498     ac_shift=shift
16499     ;;
16500   esac
16501
16502   case $ac_option in
16503   # Handling of the options.
16504   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16505     ac_cs_recheck=: ;;
16506   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16507     $as_echo "$ac_cs_version"; exit ;;
16508   --debug | --debu | --deb | --de | --d | -d )
16509     debug=: ;;
16510   --file | --fil | --fi | --f )
16511     $ac_shift
16512     case $ac_optarg in
16513     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16514     esac
16515     as_fn_append CONFIG_FILES " '$ac_optarg'"
16516     ac_need_defaults=false;;
16517   --header | --heade | --head | --hea )
16518     $ac_shift
16519     case $ac_optarg in
16520     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16521     esac
16522     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16523     ac_need_defaults=false;;
16524   --he | --h)
16525     # Conflict between --help and --header
16526     as_fn_error "ambiguous option: \`$1'
16527 Try \`$0 --help' for more information.";;
16528   --help | --hel | -h )
16529     $as_echo "$ac_cs_usage"; exit ;;
16530   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16531   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16532     ac_cs_silent=: ;;
16533
16534   # This is an error.
16535   -*) as_fn_error "unrecognized option: \`$1'
16536 Try \`$0 --help' for more information." ;;
16537
16538   *) as_fn_append ac_config_targets " $1"
16539      ac_need_defaults=false ;;
16540
16541   esac
16542   shift
16543 done
16544
16545 ac_configure_extra_args=
16546
16547 if $ac_cs_silent; then
16548   exec 6>/dev/null
16549   ac_configure_extra_args="$ac_configure_extra_args --silent"
16550 fi
16551
16552 _ACEOF
16553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16554 if \$ac_cs_recheck; then
16555   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16556   shift
16557   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16558   CONFIG_SHELL='$SHELL'
16559   export CONFIG_SHELL
16560   exec "\$@"
16561 fi
16562
16563 _ACEOF
16564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16565 exec 5>>config.log
16566 {
16567   echo
16568   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16569 ## Running $as_me. ##
16570 _ASBOX
16571   $as_echo "$ac_log"
16572 } >&5
16573
16574 _ACEOF
16575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16576 #
16577 # INIT-COMMANDS
16578 #
16579 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16580 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16581
16582 _ACEOF
16583
16584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16585
16586 # Handling of arguments.
16587 for ac_config_target in $ac_config_targets
16588 do
16589   case $ac_config_target in
16590     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16591     "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16592     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16593     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16594     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16595     ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16596     "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16597     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16598
16599   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16600   esac
16601 done
16602
16603
16604 # If the user did not use the arguments to specify the items to instantiate,
16605 # then the envvar interface is used.  Set only those that are not.
16606 # We use the long form for the default assignment because of an extremely
16607 # bizarre bug on SunOS 4.1.3.
16608 if $ac_need_defaults; then
16609   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16610   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16611   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16612   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16613 fi
16614
16615 # Have a temporary directory for convenience.  Make it in the build tree
16616 # simply because there is no reason against having it here, and in addition,
16617 # creating and moving files from /tmp can sometimes cause problems.
16618 # Hook for its removal unless debugging.
16619 # Note that there is a small window in which the directory will not be cleaned:
16620 # after its creation but before its name has been assigned to `$tmp'.
16621 $debug ||
16622 {
16623   tmp=
16624   trap 'exit_status=$?
16625   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16626 ' 0
16627   trap 'as_fn_exit 1' 1 2 13 15
16628 }
16629 # Create a (secure) tmp directory for tmp files.
16630
16631 {
16632   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16633   test -n "$tmp" && test -d "$tmp"
16634 }  ||
16635 {
16636   tmp=./conf$$-$RANDOM
16637   (umask 077 && mkdir "$tmp")
16638 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16639
16640 # Set up the scripts for CONFIG_FILES section.
16641 # No need to generate them if there are no CONFIG_FILES.
16642 # This happens for instance with `./config.status config.h'.
16643 if test -n "$CONFIG_FILES"; then
16644
16645 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16646   ac_cs_awk_getline=:
16647   ac_cs_awk_pipe_init=
16648   ac_cs_awk_read_file='
16649       while ((getline aline < (F[key])) > 0)
16650         print(aline)
16651       close(F[key])'
16652   ac_cs_awk_pipe_fini=
16653 else
16654   ac_cs_awk_getline=false
16655   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16656   ac_cs_awk_read_file='
16657       print "|#_!!_#|"
16658       print "cat " F[key] " &&"
16659       '$ac_cs_awk_pipe_init
16660   # The final `:' finishes the AND list.
16661   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16662 fi
16663 ac_cr=`echo X | tr X '\015'`
16664 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16665 # But we know of no other shell where ac_cr would be empty at this
16666 # point, so we can use a bashism as a fallback.
16667 if test "x$ac_cr" = x; then
16668   eval ac_cr=\$\'\\r\'
16669 fi
16670 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16671 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16672   ac_cs_awk_cr='\r'
16673 else
16674   ac_cs_awk_cr=$ac_cr
16675 fi
16676
16677 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16678 _ACEOF
16679
16680 # Create commands to substitute file output variables.
16681 {
16682   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16683   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16684   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16685   echo "_ACAWK" &&
16686   echo "_ACEOF"
16687 } >conf$$files.sh &&
16688 . ./conf$$files.sh ||
16689   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16690 rm -f conf$$files.sh
16691
16692 {
16693   echo "cat >conf$$subs.awk <<_ACEOF" &&
16694   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16695   echo "_ACEOF"
16696 } >conf$$subs.sh ||
16697   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16698 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16699 ac_delim='%!_!# '
16700 for ac_last_try in false false false false false :; do
16701   . ./conf$$subs.sh ||
16702     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16703
16704   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16705   if test $ac_delim_n = $ac_delim_num; then
16706     break
16707   elif $ac_last_try; then
16708     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16709   else
16710     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16711   fi
16712 done
16713 rm -f conf$$subs.sh
16714
16715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16716 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16717 _ACEOF
16718 sed -n '
16719 h
16720 s/^/S["/; s/!.*/"]=/
16721 p
16722 g
16723 s/^[^!]*!//
16724 :repl
16725 t repl
16726 s/'"$ac_delim"'$//
16727 t delim
16728 :nl
16729 h
16730 s/\(.\{148\}\).*/\1/
16731 t more1
16732 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16733 p
16734 n
16735 b repl
16736 :more1
16737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16738 p
16739 g
16740 s/.\{148\}//
16741 t nl
16742 :delim
16743 h
16744 s/\(.\{148\}\).*/\1/
16745 t more2
16746 s/["\\]/\\&/g; s/^/"/; s/$/"/
16747 p
16748 b
16749 :more2
16750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16751 p
16752 g
16753 s/.\{148\}//
16754 t delim
16755 ' <conf$$subs.awk | sed '
16756 /^[^""]/{
16757   N
16758   s/\n//
16759 }
16760 ' >>$CONFIG_STATUS || ac_write_fail=1
16761 rm -f conf$$subs.awk
16762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16763 _ACAWK
16764 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16765   for (key in S) S_is_set[key] = 1
16766   FS = "\a"
16767   \$ac_cs_awk_pipe_init
16768 }
16769 {
16770   line = $ 0
16771   nfields = split(line, field, "@")
16772   substed = 0
16773   len = length(field[1])
16774   for (i = 2; i < nfields; i++) {
16775     key = field[i]
16776     keylen = length(key)
16777     if (S_is_set[key]) {
16778       value = S[key]
16779       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16780       len += length(value) + length(field[++i])
16781       substed = 1
16782     } else
16783       len += 1 + keylen
16784   }
16785   if (nfields == 3 && !substed) {
16786     key = field[2]
16787     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
16788       \$ac_cs_awk_read_file
16789       next
16790     }
16791   }
16792   print line
16793 }
16794 \$ac_cs_awk_pipe_fini
16795 _ACAWK
16796 _ACEOF
16797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16798 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16799   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16800 else
16801   cat
16802 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16803   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16804 _ACEOF
16805
16806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16808 # trailing colons and then remove the whole line if VPATH becomes empty
16809 # (actually we leave an empty line to preserve line numbers).
16810 if test "x$srcdir" = x.; then
16811   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16812 s/:*\$(srcdir):*/:/
16813 s/:*\${srcdir}:*/:/
16814 s/:*@srcdir@:*/:/
16815 s/^\([^=]*=[     ]*\):*/\1/
16816 s/:*$//
16817 s/^[^=]*=[       ]*$//
16818 }'
16819 fi
16820
16821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16822 fi # test -n "$CONFIG_FILES"
16823
16824 # Set up the scripts for CONFIG_HEADERS section.
16825 # No need to generate them if there are no CONFIG_HEADERS.
16826 # This happens for instance with `./config.status Makefile'.
16827 if test -n "$CONFIG_HEADERS"; then
16828 cat >"$tmp/defines.awk" <<\_ACAWK ||
16829 BEGIN {
16830 _ACEOF
16831
16832 # Transform confdefs.h into an awk script `defines.awk', embedded as
16833 # here-document in config.status, that substitutes the proper values into
16834 # config.h.in to produce config.h.
16835
16836 # Create a delimiter string that does not exist in confdefs.h, to ease
16837 # handling of long lines.
16838 ac_delim='%!_!# '
16839 for ac_last_try in false false :; do
16840   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16841   if test -z "$ac_t"; then
16842     break
16843   elif $ac_last_try; then
16844     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16845   else
16846     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16847   fi
16848 done
16849
16850 # For the awk script, D is an array of macro values keyed by name,
16851 # likewise P contains macro parameters if any.  Preserve backslash
16852 # newline sequences.
16853
16854 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16855 sed -n '
16856 s/.\{148\}/&'"$ac_delim"'/g
16857 t rset
16858 :rset
16859 s/^[     ]*#[    ]*define[       ][      ]*/ /
16860 t def
16861 d
16862 :def
16863 s/\\$//
16864 t bsnl
16865 s/["\\]/\\&/g
16866 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16867 D["\1"]=" \3"/p
16868 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16869 d
16870 :bsnl
16871 s/["\\]/\\&/g
16872 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16873 D["\1"]=" \3\\\\\\n"\\/p
16874 t cont
16875 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16876 t cont
16877 d
16878 :cont
16879 n
16880 s/.\{148\}/&'"$ac_delim"'/g
16881 t clear
16882 :clear
16883 s/\\$//
16884 t bsnlc
16885 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16886 d
16887 :bsnlc
16888 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16889 b cont
16890 ' <confdefs.h | sed '
16891 s/'"$ac_delim"'/"\\\
16892 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16893
16894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16895   for (key in D) D_is_set[key] = 1
16896   FS = "\a"
16897 }
16898 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16899   line = \$ 0
16900   split(line, arg, " ")
16901   if (arg[1] == "#") {
16902     defundef = arg[2]
16903     mac1 = arg[3]
16904   } else {
16905     defundef = substr(arg[1], 2)
16906     mac1 = arg[2]
16907   }
16908   split(mac1, mac2, "(") #)
16909   macro = mac2[1]
16910   prefix = substr(line, 1, index(line, defundef) - 1)
16911   if (D_is_set[macro]) {
16912     # Preserve the white space surrounding the "#".
16913     print prefix "define", macro P[macro] D[macro]
16914     next
16915   } else {
16916     # Replace #undef with comments.  This is necessary, for example,
16917     # in the case of _POSIX_SOURCE, which is predefined and required
16918     # on some systems where configure will not decide to define it.
16919     if (defundef == "undef") {
16920       print "/*", prefix defundef, macro, "*/"
16921       next
16922     }
16923   }
16924 }
16925 { print }
16926 _ACAWK
16927 _ACEOF
16928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16929   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16930 fi # test -n "$CONFIG_HEADERS"
16931
16932
16933 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16934 shift
16935 for ac_tag
16936 do
16937   case $ac_tag in
16938   :[FHLC]) ac_mode=$ac_tag; continue;;
16939   esac
16940   case $ac_mode$ac_tag in
16941   :[FHL]*:*);;
16942   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16943   :[FH]-) ac_tag=-:-;;
16944   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16945   esac
16946   ac_save_IFS=$IFS
16947   IFS=:
16948   set x $ac_tag
16949   IFS=$ac_save_IFS
16950   shift
16951   ac_file=$1
16952   shift
16953
16954   case $ac_mode in
16955   :L) ac_source=$1;;
16956   :[FH])
16957     ac_file_inputs=
16958     for ac_f
16959     do
16960       case $ac_f in
16961       -) ac_f="$tmp/stdin";;
16962       *) # Look for the file first in the build tree, then in the source tree
16963          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16964          # because $ac_f cannot contain `:'.
16965          test -f "$ac_f" ||
16966            case $ac_f in
16967            [\\/$]*) false;;
16968            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16969            esac ||
16970            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16971       esac
16972       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16973       as_fn_append ac_file_inputs " '$ac_f'"
16974     done
16975
16976     # Let's still pretend it is `configure' which instantiates (i.e., don't
16977     # use $as_me), people would be surprised to read:
16978     #    /* config.h.  Generated by config.status.  */
16979     configure_input='Generated from '`
16980           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16981         `' by configure.'
16982     if test x"$ac_file" != x-; then
16983       configure_input="$ac_file.  $configure_input"
16984       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16985 $as_echo "$as_me: creating $ac_file" >&6;}
16986     fi
16987     # Neutralize special characters interpreted by sed in replacement strings.
16988     case $configure_input in #(
16989     *\&* | *\|* | *\\* )
16990        ac_sed_conf_input=`$as_echo "$configure_input" |
16991        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16992     *) ac_sed_conf_input=$configure_input;;
16993     esac
16994
16995     case $ac_tag in
16996     *:-:* | *:-) cat >"$tmp/stdin" \
16997       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16998     esac
16999     ;;
17000   esac
17001
17002   ac_dir=`$as_dirname -- "$ac_file" ||
17003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17004          X"$ac_file" : 'X\(//\)[^/]' \| \
17005          X"$ac_file" : 'X\(//\)$' \| \
17006          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17007 $as_echo X"$ac_file" |
17008     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17009             s//\1/
17010             q
17011           }
17012           /^X\(\/\/\)[^/].*/{
17013             s//\1/
17014             q
17015           }
17016           /^X\(\/\/\)$/{
17017             s//\1/
17018             q
17019           }
17020           /^X\(\/\).*/{
17021             s//\1/
17022             q
17023           }
17024           s/.*/./; q'`
17025   as_dir="$ac_dir"; as_fn_mkdir_p
17026   ac_builddir=.
17027
17028 case "$ac_dir" in
17029 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17030 *)
17031   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17032   # A ".." for each directory in $ac_dir_suffix.
17033   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17034   case $ac_top_builddir_sub in
17035   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17036   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17037   esac ;;
17038 esac
17039 ac_abs_top_builddir=$ac_pwd
17040 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17041 # for backward compatibility:
17042 ac_top_builddir=$ac_top_build_prefix
17043
17044 case $srcdir in
17045   .)  # We are building in place.
17046     ac_srcdir=.
17047     ac_top_srcdir=$ac_top_builddir_sub
17048     ac_abs_top_srcdir=$ac_pwd ;;
17049   [\\/]* | ?:[\\/]* )  # Absolute name.
17050     ac_srcdir=$srcdir$ac_dir_suffix;
17051     ac_top_srcdir=$srcdir
17052     ac_abs_top_srcdir=$srcdir ;;
17053   *) # Relative name.
17054     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17055     ac_top_srcdir=$ac_top_build_prefix$srcdir
17056     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17057 esac
17058 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17059
17060
17061   case $ac_mode in
17062   :F)
17063   #
17064   # CONFIG_FILE
17065   #
17066
17067   case $INSTALL in
17068   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17069   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17070   esac
17071   ac_MKDIR_P=$MKDIR_P
17072   case $MKDIR_P in
17073   [\\/$]* | ?:[\\/]* ) ;;
17074   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17075   esac
17076 _ACEOF
17077
17078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17079 # If the template does not know about datarootdir, expand it.
17080 # FIXME: This hack should be removed a few years after 2.60.
17081 ac_datarootdir_hack=; ac_datarootdir_seen=
17082 ac_sed_dataroot='
17083 /datarootdir/ {
17084   p
17085   q
17086 }
17087 /@datadir@/p
17088 /@docdir@/p
17089 /@infodir@/p
17090 /@localedir@/p
17091 /@mandir@/p'
17092 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17093 *datarootdir*) ac_datarootdir_seen=yes;;
17094 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17095   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17096 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17097 _ACEOF
17098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17099   ac_datarootdir_hack='
17100   s&@datadir@&$datadir&g
17101   s&@docdir@&$docdir&g
17102   s&@infodir@&$infodir&g
17103   s&@localedir@&$localedir&g
17104   s&@mandir@&$mandir&g
17105   s&\\\${datarootdir}&$datarootdir&g' ;;
17106 esac
17107 _ACEOF
17108
17109 # Neutralize VPATH when `$srcdir' = `.'.
17110 # Shell code in configure.ac might set extrasub.
17111 # FIXME: do we really want to maintain this feature?
17112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17113 ac_sed_extra="$ac_vpsub
17114 $extrasub
17115 _ACEOF
17116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17117 :t
17118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17119 s|@configure_input@|$ac_sed_conf_input|;t t
17120 s&@top_builddir@&$ac_top_builddir_sub&;t t
17121 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17122 s&@srcdir@&$ac_srcdir&;t t
17123 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17124 s&@top_srcdir@&$ac_top_srcdir&;t t
17125 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17126 s&@builddir@&$ac_builddir&;t t
17127 s&@abs_builddir@&$ac_abs_builddir&;t t
17128 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17129 s&@INSTALL@&$ac_INSTALL&;t t
17130 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17131 $ac_datarootdir_hack
17132 "
17133 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17134 if $ac_cs_awk_getline; then
17135   $AWK -f "$tmp/subs.awk"
17136 else
17137   $AWK -f "$tmp/subs.awk" | $SHELL
17138 fi >$tmp/out \
17139   || as_fn_error "could not create $ac_file" "$LINENO" 5
17140
17141 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17142   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17143   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17144   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17145 which seems to be undefined.  Please make sure it is defined." >&5
17146 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17147 which seems to be undefined.  Please make sure it is defined." >&2;}
17148
17149   rm -f "$tmp/stdin"
17150   case $ac_file in
17151   -) cat "$tmp/out" && rm -f "$tmp/out";;
17152   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17153   esac \
17154   || as_fn_error "could not create $ac_file" "$LINENO" 5
17155  ;;
17156   :H)
17157   #
17158   # CONFIG_HEADER
17159   #
17160   if test x"$ac_file" != x-; then
17161     {
17162       $as_echo "/* $configure_input  */" \
17163       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17164     } >"$tmp/config.h" \
17165       || as_fn_error "could not create $ac_file" "$LINENO" 5
17166     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17167       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17168 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17169     else
17170       rm -f "$ac_file"
17171       mv "$tmp/config.h" "$ac_file" \
17172         || as_fn_error "could not create $ac_file" "$LINENO" 5
17173     fi
17174   else
17175     $as_echo "/* $configure_input  */" \
17176       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17177       || as_fn_error "could not create -" "$LINENO" 5
17178   fi
17179 # Compute "$ac_file"'s index in $config_headers.
17180 _am_arg="$ac_file"
17181 _am_stamp_count=1
17182 for _am_header in $config_headers :; do
17183   case $_am_header in
17184     $_am_arg | $_am_arg:* )
17185       break ;;
17186     * )
17187       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17188   esac
17189 done
17190 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17191 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17192          X"$_am_arg" : 'X\(//\)[^/]' \| \
17193          X"$_am_arg" : 'X\(//\)$' \| \
17194          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17195 $as_echo X"$_am_arg" |
17196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17197             s//\1/
17198             q
17199           }
17200           /^X\(\/\/\)[^/].*/{
17201             s//\1/
17202             q
17203           }
17204           /^X\(\/\/\)$/{
17205             s//\1/
17206             q
17207           }
17208           /^X\(\/\).*/{
17209             s//\1/
17210             q
17211           }
17212           s/.*/./; q'`/stamp-h$_am_stamp_count
17213  ;;
17214   :L)
17215   #
17216   # CONFIG_LINK
17217   #
17218
17219   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17220     :
17221   else
17222     # Prefer the file from the source tree if names are identical.
17223     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17224       ac_source=$srcdir/$ac_source
17225     fi
17226
17227     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17228 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17229
17230     if test ! -r "$ac_source"; then
17231       as_fn_error "$ac_source: file not found" "$LINENO" 5
17232     fi
17233     rm -f "$ac_file"
17234
17235     # Try a relative symlink, then a hard link, then a copy.
17236     case $srcdir in
17237     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17238         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17239     esac
17240     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17241       ln "$ac_source" "$ac_file" 2>/dev/null ||
17242       cp -p "$ac_source" "$ac_file" ||
17243       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17244   fi
17245  ;;
17246   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17247 $as_echo "$as_me: executing $ac_file commands" >&6;}
17248  ;;
17249   esac
17250
17251
17252   case $ac_file$ac_mode in
17253     "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17254     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17255   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17256   # are listed without --file.  Let's play safe and only enable the eval
17257   # if we detect the quoting.
17258   case $CONFIG_FILES in
17259   *\'*) eval set x "$CONFIG_FILES" ;;
17260   *)   set x $CONFIG_FILES ;;
17261   esac
17262   shift
17263   for mf
17264   do
17265     # Strip MF so we end up with the name of the file.
17266     mf=`echo "$mf" | sed -e 's/:.*$//'`
17267     # Check whether this is an Automake generated Makefile or not.
17268     # We used to match only the files named `Makefile.in', but
17269     # some people rename them; so instead we look at the file content.
17270     # Grep'ing the first line is not enough: some people post-process
17271     # each Makefile.in and add a new line on top of each file to say so.
17272     # Grep'ing the whole file is not good either: AIX grep has a line
17273     # limit of 2048, but all sed's we know have understand at least 4000.
17274     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17275       dirpart=`$as_dirname -- "$mf" ||
17276 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17277          X"$mf" : 'X\(//\)[^/]' \| \
17278          X"$mf" : 'X\(//\)$' \| \
17279          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17280 $as_echo X"$mf" |
17281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17282             s//\1/
17283             q
17284           }
17285           /^X\(\/\/\)[^/].*/{
17286             s//\1/
17287             q
17288           }
17289           /^X\(\/\/\)$/{
17290             s//\1/
17291             q
17292           }
17293           /^X\(\/\).*/{
17294             s//\1/
17295             q
17296           }
17297           s/.*/./; q'`
17298     else
17299       continue
17300     fi
17301     # Extract the definition of DEPDIR, am__include, and am__quote
17302     # from the Makefile without running `make'.
17303     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17304     test -z "$DEPDIR" && continue
17305     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17306     test -z "am__include" && continue
17307     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17308     # When using ansi2knr, U may be empty or an underscore; expand it
17309     U=`sed -n 's/^U = //p' < "$mf"`
17310     # Find all dependency output files, they are included files with
17311     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17312     # simplest approach to changing $(DEPDIR) to its actual value in the
17313     # expansion.
17314     for file in `sed -n "
17315       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17316          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17317       # Make sure the directory exists.
17318       test -f "$dirpart/$file" && continue
17319       fdir=`$as_dirname -- "$file" ||
17320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17321          X"$file" : 'X\(//\)[^/]' \| \
17322          X"$file" : 'X\(//\)$' \| \
17323          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17324 $as_echo X"$file" |
17325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17326             s//\1/
17327             q
17328           }
17329           /^X\(\/\/\)[^/].*/{
17330             s//\1/
17331             q
17332           }
17333           /^X\(\/\/\)$/{
17334             s//\1/
17335             q
17336           }
17337           /^X\(\/\).*/{
17338             s//\1/
17339             q
17340           }
17341           s/.*/./; q'`
17342       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17343       # echo "creating $dirpart/$file"
17344       echo '# dummy' > "$dirpart/$file"
17345     done
17346   done
17347 }
17348  ;;
17349     "default":C)
17350 case x$CONFIG_HEADERS in
17351 xconfig.h:config.in)
17352 echo > stamp-h ;;
17353 esac
17354  ;;
17355
17356   esac
17357 done # for ac_tag
17358
17359
17360 as_fn_exit 0
17361 _ACEOF
17362 ac_clean_files=$ac_clean_files_save
17363
17364 test $ac_write_fail = 0 ||
17365   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17366
17367
17368 # configure is writing to config.log, and then calls config.status.
17369 # config.status does its own redirection, appending to config.log.
17370 # Unfortunately, on DOS this fails, as config.log is still kept open
17371 # by configure, so config.status won't be able to write to it; its
17372 # output is simply discarded.  So we exec the FD to /dev/null,
17373 # effectively closing config.log, so it can be properly (re)opened and
17374 # appended to by config.status.  When coming back to configure, we
17375 # need to make the FD available again.
17376 if test "$no_create" != yes; then
17377   ac_cs_success=:
17378   ac_config_status_args=
17379   test "$silent" = yes &&
17380     ac_config_status_args="$ac_config_status_args --quiet"
17381   exec 5>/dev/null
17382   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17383   exec 5>>config.log
17384   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17385   # would make configure fail if this is the last instruction.
17386   $ac_cs_success || as_fn_exit $?
17387 fi
17388
17389 #
17390 # CONFIG_SUBDIRS section.
17391 #
17392 if test "$no_recursion" != yes; then
17393
17394   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17395   # so they do not pile up.
17396   ac_sub_configure_args=
17397   ac_prev=
17398   eval "set x $ac_configure_args"
17399   shift
17400   for ac_arg
17401   do
17402     if test -n "$ac_prev"; then
17403       ac_prev=
17404       continue
17405     fi
17406     case $ac_arg in
17407     -cache-file | --cache-file | --cache-fil | --cache-fi \
17408     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17409       ac_prev=cache_file ;;
17410     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17411     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17412     | --c=*)
17413       ;;
17414     --config-cache | -C)
17415       ;;
17416     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17417       ac_prev=srcdir ;;
17418     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17419       ;;
17420     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17421       ac_prev=prefix ;;
17422     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17423       ;;
17424     --disable-option-checking)
17425       ;;
17426     *)
17427       case $ac_arg in
17428       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17429       esac
17430       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17431     esac
17432   done
17433
17434   # Always prepend --prefix to ensure using the same prefix
17435   # in subdir configurations.
17436   ac_arg="--prefix=$prefix"
17437   case $ac_arg in
17438   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17439   esac
17440   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17441
17442   # Pass --silent
17443   if test "$silent" = yes; then
17444     ac_sub_configure_args="--silent $ac_sub_configure_args"
17445   fi
17446
17447   # Always prepend --disable-option-checking to silence warnings, since
17448   # different subdirs can have different --enable and --with options.
17449   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17450
17451   ac_popdir=`pwd`
17452   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17453
17454     # Do not complain, so a configure script can configure whichever
17455     # parts of a large source tree are present.
17456     test -d "$srcdir/$ac_dir" || continue
17457
17458     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17459     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17460     $as_echo "$ac_msg" >&6
17461     as_dir="$ac_dir"; as_fn_mkdir_p
17462     ac_builddir=.
17463
17464 case "$ac_dir" in
17465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17466 *)
17467   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17468   # A ".." for each directory in $ac_dir_suffix.
17469   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17470   case $ac_top_builddir_sub in
17471   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17472   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17473   esac ;;
17474 esac
17475 ac_abs_top_builddir=$ac_pwd
17476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17477 # for backward compatibility:
17478 ac_top_builddir=$ac_top_build_prefix
17479
17480 case $srcdir in
17481   .)  # We are building in place.
17482     ac_srcdir=.
17483     ac_top_srcdir=$ac_top_builddir_sub
17484     ac_abs_top_srcdir=$ac_pwd ;;
17485   [\\/]* | ?:[\\/]* )  # Absolute name.
17486     ac_srcdir=$srcdir$ac_dir_suffix;
17487     ac_top_srcdir=$srcdir
17488     ac_abs_top_srcdir=$srcdir ;;
17489   *) # Relative name.
17490     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17491     ac_top_srcdir=$ac_top_build_prefix$srcdir
17492     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17493 esac
17494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17495
17496
17497     cd "$ac_dir"
17498
17499     # Check for guested configure; otherwise get Cygnus style configure.
17500     if test -f "$ac_srcdir/configure.gnu"; then
17501       ac_sub_configure=$ac_srcdir/configure.gnu
17502     elif test -f "$ac_srcdir/configure"; then
17503       ac_sub_configure=$ac_srcdir/configure
17504     elif test -f "$ac_srcdir/configure.in"; then
17505       # This should be Cygnus configure.
17506       ac_sub_configure=$ac_aux_dir/configure
17507     else
17508       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17510       ac_sub_configure=
17511     fi
17512
17513     # The recursion is here.
17514     if test -n "$ac_sub_configure"; then
17515       # Make the cache file name correct relative to the subdirectory.
17516       case $cache_file in
17517       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17518       *) # Relative name.
17519         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17520       esac
17521
17522       { $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
17523 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17524       # The eval makes quoting arguments work.
17525       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17526            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17527         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17528     fi
17529
17530     cd "$ac_popdir"
17531   done
17532 fi
17533 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17534   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17535 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17536 fi
17537
17538
17539 exit 0