22343f58c28f7f1b59b2e973c3382618fa460422
[deliverable/binutils-gdb.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
658 CONFIG_LDFLAGS
659 RDYNAMIC
660 ALLOCA
661 PYTHON_LIBS
662 PYTHON_CPPFLAGS
663 PYTHON_CFLAGS
664 python_prog_path
665 LTLIBEXPAT
666 LIBEXPAT
667 HAVE_LIBEXPAT
668 JIT_READER_DIR
669 TARGET_PTR
670 READLINE_TEXI_INCFLAG
671 READLINE_CFLAGS
672 READLINE_DEPS
673 READLINE
674 MIG
675 WINDRES
676 DLLTOOL
677 AR
678 YFLAGS
679 YACC
680 LN_S
681 REPORT_BUGS_TEXI
682 REPORT_BUGS_TO
683 PKGVERSION
684 TARGET_OBS
685 subdirs
686 GDB_DATADIR
687 DEBUGDIR
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 AMDEPBACKSLASH
691 AMDEP_FALSE
692 AMDEP_TRUE
693 am__quote
694 am__include
695 am__untar
696 am__tar
697 AMTAR
698 AWK
699 mkdir_p
700 MKDIR_P
701 INSTALL_STRIP_PROGRAM
702 STRIP
703 install_sh
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 MAKEINFO_EXTRA_FLAGS
715 MAKEINFOFLAGS
716 MAKEINFO
717 PACKAGE
718 GNULIB_STDINT_H
719 LIBGNU_LTLIBDEPS
720 LIBGNU_LIBDEPS
721 gltests_WITNESS
722 HAVE_WINT_T
723 HAVE_WCHAR_H
724 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
725 NEXT_WCHAR_H
726 REPLACE_WCWIDTH
727 REPLACE_WCSNRTOMBS
728 REPLACE_WCSRTOMBS
729 REPLACE_WCRTOMB
730 REPLACE_MBSNRTOWCS
731 REPLACE_MBSRTOWCS
732 REPLACE_MBRLEN
733 REPLACE_MBRTOWC
734 REPLACE_MBSINIT
735 REPLACE_WCTOB
736 REPLACE_BTOWC
737 REPLACE_MBSTATE_T
738 HAVE_DECL_WCWIDTH
739 HAVE_DECL_WCTOB
740 HAVE_WCSNRTOMBS
741 HAVE_WCSRTOMBS
742 HAVE_WCRTOMB
743 HAVE_MBSNRTOWCS
744 HAVE_MBSRTOWCS
745 HAVE_MBRLEN
746 HAVE_MBRTOWC
747 HAVE_MBSINIT
748 HAVE_BTOWC
749 GNULIB_WCWIDTH
750 GNULIB_WCSNRTOMBS
751 GNULIB_WCSRTOMBS
752 GNULIB_WCRTOMB
753 GNULIB_MBSNRTOWCS
754 GNULIB_MBSRTOWCS
755 GNULIB_MBRLEN
756 GNULIB_MBRTOWC
757 GNULIB_MBSINIT
758 GNULIB_WCTOB
759 GNULIB_BTOWC
760 NEXT_AS_FIRST_DIRECTIVE_STRING_H
761 NEXT_STRING_H
762 STDINT_H
763 WINT_T_SUFFIX
764 WCHAR_T_SUFFIX
765 SIG_ATOMIC_T_SUFFIX
766 SIZE_T_SUFFIX
767 PTRDIFF_T_SUFFIX
768 HAVE_SIGNED_WINT_T
769 HAVE_SIGNED_WCHAR_T
770 HAVE_SIGNED_SIG_ATOMIC_T
771 BITSIZEOF_WINT_T
772 BITSIZEOF_WCHAR_T
773 BITSIZEOF_SIG_ATOMIC_T
774 BITSIZEOF_SIZE_T
775 BITSIZEOF_PTRDIFF_T
776 HAVE_SYS_BITYPES_H
777 HAVE_SYS_INTTYPES_H
778 HAVE_STDINT_H
779 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
780 NEXT_STDINT_H
781 HAVE_SYS_TYPES_H
782 HAVE_INTTYPES_H
783 HAVE_UNSIGNED_LONG_LONG_INT
784 HAVE_LONG_LONG_INT
785 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
786 NEXT_STDDEF_H
787 PRAGMA_SYSTEM_HEADER
788 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
789 INCLUDE_NEXT
790 STDDEF_H
791 HAVE_WCHAR_T
792 REPLACE_NULL
793 APPLE_UNIVERSAL_BUILD
794 UNDEFINE_STRTOK_R
795 REPLACE_STRTOK_R
796 REPLACE_STRSIGNAL
797 REPLACE_STRNLEN
798 REPLACE_STRNDUP
799 REPLACE_STRNCAT
800 REPLACE_STRERROR
801 REPLACE_STRCASESTR
802 REPLACE_STRSTR
803 REPLACE_STRDUP
804 REPLACE_STPNCPY
805 REPLACE_MEMMEM
806 REPLACE_MEMCHR
807 HAVE_STRVERSCMP
808 HAVE_DECL_STRSIGNAL
809 HAVE_DECL_STRTOK_R
810 HAVE_STRCASESTR
811 HAVE_STRSEP
812 HAVE_STRPBRK
813 HAVE_DECL_STRNLEN
814 HAVE_DECL_STRNDUP
815 HAVE_DECL_STRDUP
816 HAVE_STRCHRNUL
817 HAVE_STPNCPY
818 HAVE_STPCPY
819 HAVE_RAWMEMCHR
820 HAVE_DECL_MEMRCHR
821 HAVE_MEMPCPY
822 HAVE_DECL_MEMMEM
823 HAVE_MEMCHR
824 HAVE_MBSLEN
825 GNULIB_STRVERSCMP
826 GNULIB_STRSIGNAL
827 GNULIB_STRERROR
828 GNULIB_MBSTOK_R
829 GNULIB_MBSSEP
830 GNULIB_MBSSPN
831 GNULIB_MBSPBRK
832 GNULIB_MBSCSPN
833 GNULIB_MBSCASESTR
834 GNULIB_MBSPCASECMP
835 GNULIB_MBSNCASECMP
836 GNULIB_MBSCASECMP
837 GNULIB_MBSSTR
838 GNULIB_MBSRCHR
839 GNULIB_MBSCHR
840 GNULIB_MBSNLEN
841 GNULIB_MBSLEN
842 GNULIB_STRTOK_R
843 GNULIB_STRCASESTR
844 GNULIB_STRSTR
845 GNULIB_STRSEP
846 GNULIB_STRPBRK
847 GNULIB_STRNLEN
848 GNULIB_STRNDUP
849 GNULIB_STRNCAT
850 GNULIB_STRDUP
851 GNULIB_STRCHRNUL
852 GNULIB_STPNCPY
853 GNULIB_STPCPY
854 GNULIB_RAWMEMCHR
855 GNULIB_MEMRCHR
856 GNULIB_MEMPCPY
857 GNULIB_MEMMEM
858 GNULIB_MEMCHR
859 GL_COND_LIBTOOL_FALSE
860 GL_COND_LIBTOOL_TRUE
861 CATOBJEXT
862 GENCAT
863 INSTOBJEXT
864 DATADIRNAME
865 CATALOGS
866 POSUB
867 GMSGFMT
868 XGETTEXT
869 INCINTL
870 LIBINTL_DEP
871 LIBINTL
872 USE_NLS
873 SET_MAKE
874 GMAKE_FALSE
875 GMAKE_TRUE
876 MAKE
877 CCDEPMODE
878 DEPDIR
879 am__leading_dot
880 target_os
881 target_vendor
882 target_cpu
883 target
884 RANLIB
885 EGREP
886 GREP
887 CPP
888 host_os
889 host_vendor
890 host_cpu
891 host
892 build_os
893 build_vendor
894 build_cpu
895 build
896 OBJEXT
897 EXEEXT
898 ac_ct_CC
899 CPPFLAGS
900 LDFLAGS
901 CFLAGS
902 CC
903 MAINT
904 MAINTAINER_MODE_FALSE
905 MAINTAINER_MODE_TRUE
906 target_alias
907 host_alias
908 build_alias
909 LIBS
910 ECHO_T
911 ECHO_N
912 ECHO_C
913 DEFS
914 mandir
915 localedir
916 libdir
917 psdir
918 pdfdir
919 dvidir
920 htmldir
921 infodir
922 docdir
923 oldincludedir
924 includedir
925 localstatedir
926 sharedstatedir
927 sysconfdir
928 datadir
929 datarootdir
930 libexecdir
931 sbindir
932 bindir
933 program_transform_name
934 prefix
935 exec_prefix
936 PACKAGE_URL
937 PACKAGE_BUGREPORT
938 PACKAGE_STRING
939 PACKAGE_VERSION
940 PACKAGE_TARNAME
941 PACKAGE_NAME
942 PATH_SEPARATOR
943 SHELL'
944 ac_subst_files='host_makefile_frag'
945 ac_user_opts='
946 enable_option_checking
947 enable_maintainer_mode
948 enable_plugins
949 enable_largefile
950 enable_dependency_tracking
951 with_separate_debug_dir
952 with_gdb_datadir
953 with_relocated_sources
954 enable_targets
955 enable_64_bit_bfd
956 enable_gdbcli
957 enable_gdbmi
958 enable_tui
959 enable_gdbtk
960 with_libunwind
961 with_curses
962 enable_profiling
963 with_pkgversion
964 with_bugurl
965 with_zlib
966 with_libiconv_prefix
967 with_iconv_bin
968 with_system_readline
969 with_jit_reader_dir
970 with_expat
971 with_gnu_ld
972 enable_rpath
973 with_libexpat_prefix
974 with_python
975 with_included_regex
976 with_sysroot
977 with_system_gdbinit
978 enable_werror
979 enable_build_warnings
980 enable_gdb_build_warnings
981 with_tcl
982 with_tk
983 with_x
984 enable_sim
985 enable_multi_ice
986 enable_gdbserver
987 '
988 ac_precious_vars='build_alias
989 host_alias
990 target_alias
991 CC
992 CFLAGS
993 LDFLAGS
994 LIBS
995 CPPFLAGS
996 CPP
997 MAKEINFO
998 MAKEINFOFLAGS
999 YACC
1000 YFLAGS
1001 XMKMF'
1002 ac_subdirs_all='testsuite
1003 gdbtk
1004 multi-ice
1005 gdbserver'
1006
1007 # Initialize some variables set by options.
1008 ac_init_help=
1009 ac_init_version=false
1010 ac_unrecognized_opts=
1011 ac_unrecognized_sep=
1012 # The variables have the same names as the options, with
1013 # dashes changed to underlines.
1014 cache_file=/dev/null
1015 exec_prefix=NONE
1016 no_create=
1017 no_recursion=
1018 prefix=NONE
1019 program_prefix=NONE
1020 program_suffix=NONE
1021 program_transform_name=s,x,x,
1022 silent=
1023 site=
1024 srcdir=
1025 verbose=
1026 x_includes=NONE
1027 x_libraries=NONE
1028
1029 # Installation directory options.
1030 # These are left unexpanded so users can "make install exec_prefix=/foo"
1031 # and all the variables that are supposed to be based on exec_prefix
1032 # by default will actually change.
1033 # Use braces instead of parens because sh, perl, etc. also accept them.
1034 # (The list follows the same order as the GNU Coding Standards.)
1035 bindir='${exec_prefix}/bin'
1036 sbindir='${exec_prefix}/sbin'
1037 libexecdir='${exec_prefix}/libexec'
1038 datarootdir='${prefix}/share'
1039 datadir='${datarootdir}'
1040 sysconfdir='${prefix}/etc'
1041 sharedstatedir='${prefix}/com'
1042 localstatedir='${prefix}/var'
1043 includedir='${prefix}/include'
1044 oldincludedir='/usr/include'
1045 docdir='${datarootdir}/doc/${PACKAGE}'
1046 infodir='${datarootdir}/info'
1047 htmldir='${docdir}'
1048 dvidir='${docdir}'
1049 pdfdir='${docdir}'
1050 psdir='${docdir}'
1051 libdir='${exec_prefix}/lib'
1052 localedir='${datarootdir}/locale'
1053 mandir='${datarootdir}/man'
1054
1055 ac_prev=
1056 ac_dashdash=
1057 for ac_option
1058 do
1059 # If the previous option needs an argument, assign it.
1060 if test -n "$ac_prev"; then
1061 eval $ac_prev=\$ac_option
1062 ac_prev=
1063 continue
1064 fi
1065
1066 case $ac_option in
1067 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1068 *) ac_optarg=yes ;;
1069 esac
1070
1071 # Accept the important Cygnus configure options, so we can diagnose typos.
1072
1073 case $ac_dashdash$ac_option in
1074 --)
1075 ac_dashdash=yes ;;
1076
1077 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1078 ac_prev=bindir ;;
1079 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1080 bindir=$ac_optarg ;;
1081
1082 -build | --build | --buil | --bui | --bu)
1083 ac_prev=build_alias ;;
1084 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1085 build_alias=$ac_optarg ;;
1086
1087 -cache-file | --cache-file | --cache-fil | --cache-fi \
1088 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1089 ac_prev=cache_file ;;
1090 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1091 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1092 cache_file=$ac_optarg ;;
1093
1094 --config-cache | -C)
1095 cache_file=config.cache ;;
1096
1097 -datadir | --datadir | --datadi | --datad)
1098 ac_prev=datadir ;;
1099 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1100 datadir=$ac_optarg ;;
1101
1102 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1103 | --dataroo | --dataro | --datar)
1104 ac_prev=datarootdir ;;
1105 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1106 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1107 datarootdir=$ac_optarg ;;
1108
1109 -disable-* | --disable-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error "invalid feature name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1117 *"
1118 "enable_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval enable_$ac_useropt=no ;;
1124
1125 -docdir | --docdir | --docdi | --doc | --do)
1126 ac_prev=docdir ;;
1127 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1128 docdir=$ac_optarg ;;
1129
1130 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1131 ac_prev=dvidir ;;
1132 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1133 dvidir=$ac_optarg ;;
1134
1135 -enable-* | --enable-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error "invalid feature name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "enable_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval enable_$ac_useropt=\$ac_optarg ;;
1150
1151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1153 | --exec | --exe | --ex)
1154 ac_prev=exec_prefix ;;
1155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1157 | --exec=* | --exe=* | --ex=*)
1158 exec_prefix=$ac_optarg ;;
1159
1160 -gas | --gas | --ga | --g)
1161 # Obsolete; use --with-gas.
1162 with_gas=yes ;;
1163
1164 -help | --help | --hel | --he | -h)
1165 ac_init_help=long ;;
1166 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1167 ac_init_help=recursive ;;
1168 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1169 ac_init_help=short ;;
1170
1171 -host | --host | --hos | --ho)
1172 ac_prev=host_alias ;;
1173 -host=* | --host=* | --hos=* | --ho=*)
1174 host_alias=$ac_optarg ;;
1175
1176 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1177 ac_prev=htmldir ;;
1178 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1179 | --ht=*)
1180 htmldir=$ac_optarg ;;
1181
1182 -includedir | --includedir | --includedi | --included | --include \
1183 | --includ | --inclu | --incl | --inc)
1184 ac_prev=includedir ;;
1185 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1186 | --includ=* | --inclu=* | --incl=* | --inc=*)
1187 includedir=$ac_optarg ;;
1188
1189 -infodir | --infodir | --infodi | --infod | --info | --inf)
1190 ac_prev=infodir ;;
1191 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1192 infodir=$ac_optarg ;;
1193
1194 -libdir | --libdir | --libdi | --libd)
1195 ac_prev=libdir ;;
1196 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1197 libdir=$ac_optarg ;;
1198
1199 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1200 | --libexe | --libex | --libe)
1201 ac_prev=libexecdir ;;
1202 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1203 | --libexe=* | --libex=* | --libe=*)
1204 libexecdir=$ac_optarg ;;
1205
1206 -localedir | --localedir | --localedi | --localed | --locale)
1207 ac_prev=localedir ;;
1208 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1209 localedir=$ac_optarg ;;
1210
1211 -localstatedir | --localstatedir | --localstatedi | --localstated \
1212 | --localstate | --localstat | --localsta | --localst | --locals)
1213 ac_prev=localstatedir ;;
1214 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1215 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1216 localstatedir=$ac_optarg ;;
1217
1218 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1219 ac_prev=mandir ;;
1220 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1221 mandir=$ac_optarg ;;
1222
1223 -nfp | --nfp | --nf)
1224 # Obsolete; use --without-fp.
1225 with_fp=no ;;
1226
1227 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1228 | --no-cr | --no-c | -n)
1229 no_create=yes ;;
1230
1231 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1232 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1233 no_recursion=yes ;;
1234
1235 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1236 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1237 | --oldin | --oldi | --old | --ol | --o)
1238 ac_prev=oldincludedir ;;
1239 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1240 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1241 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1242 oldincludedir=$ac_optarg ;;
1243
1244 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1245 ac_prev=prefix ;;
1246 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1247 prefix=$ac_optarg ;;
1248
1249 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1250 | --program-pre | --program-pr | --program-p)
1251 ac_prev=program_prefix ;;
1252 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1253 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1254 program_prefix=$ac_optarg ;;
1255
1256 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1257 | --program-suf | --program-su | --program-s)
1258 ac_prev=program_suffix ;;
1259 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1260 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1261 program_suffix=$ac_optarg ;;
1262
1263 -program-transform-name | --program-transform-name \
1264 | --program-transform-nam | --program-transform-na \
1265 | --program-transform-n | --program-transform- \
1266 | --program-transform | --program-transfor \
1267 | --program-transfo | --program-transf \
1268 | --program-trans | --program-tran \
1269 | --progr-tra | --program-tr | --program-t)
1270 ac_prev=program_transform_name ;;
1271 -program-transform-name=* | --program-transform-name=* \
1272 | --program-transform-nam=* | --program-transform-na=* \
1273 | --program-transform-n=* | --program-transform-=* \
1274 | --program-transform=* | --program-transfor=* \
1275 | --program-transfo=* | --program-transf=* \
1276 | --program-trans=* | --program-tran=* \
1277 | --progr-tra=* | --program-tr=* | --program-t=*)
1278 program_transform_name=$ac_optarg ;;
1279
1280 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1281 ac_prev=pdfdir ;;
1282 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1283 pdfdir=$ac_optarg ;;
1284
1285 -psdir | --psdir | --psdi | --psd | --ps)
1286 ac_prev=psdir ;;
1287 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1288 psdir=$ac_optarg ;;
1289
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1292 silent=yes ;;
1293
1294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1295 ac_prev=sbindir ;;
1296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1297 | --sbi=* | --sb=*)
1298 sbindir=$ac_optarg ;;
1299
1300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1302 | --sharedst | --shareds | --shared | --share | --shar \
1303 | --sha | --sh)
1304 ac_prev=sharedstatedir ;;
1305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1308 | --sha=* | --sh=*)
1309 sharedstatedir=$ac_optarg ;;
1310
1311 -site | --site | --sit)
1312 ac_prev=site ;;
1313 -site=* | --site=* | --sit=*)
1314 site=$ac_optarg ;;
1315
1316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1317 ac_prev=srcdir ;;
1318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1319 srcdir=$ac_optarg ;;
1320
1321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1322 | --syscon | --sysco | --sysc | --sys | --sy)
1323 ac_prev=sysconfdir ;;
1324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1326 sysconfdir=$ac_optarg ;;
1327
1328 -target | --target | --targe | --targ | --tar | --ta | --t)
1329 ac_prev=target_alias ;;
1330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1331 target_alias=$ac_optarg ;;
1332
1333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1334 verbose=yes ;;
1335
1336 -version | --version | --versio | --versi | --vers | -V)
1337 ac_init_version=: ;;
1338
1339 -with-* | --with-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 as_fn_error "invalid package name: $ac_useropt"
1344 ac_useropt_orig=$ac_useropt
1345 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346 case $ac_user_opts in
1347 *"
1348 "with_$ac_useropt"
1349 "*) ;;
1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1351 ac_unrecognized_sep=', ';;
1352 esac
1353 eval with_$ac_useropt=\$ac_optarg ;;
1354
1355 -without-* | --without-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359 as_fn_error "invalid package name: $ac_useropt"
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364 "with_$ac_useropt"
1365 "*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval with_$ac_useropt=no ;;
1370
1371 --x)
1372 # Obsolete; use --with-x.
1373 with_x=yes ;;
1374
1375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1376 | --x-incl | --x-inc | --x-in | --x-i)
1377 ac_prev=x_includes ;;
1378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1380 x_includes=$ac_optarg ;;
1381
1382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1384 ac_prev=x_libraries ;;
1385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1387 x_libraries=$ac_optarg ;;
1388
1389 -*) as_fn_error "unrecognized option: \`$ac_option'
1390 Try \`$0 --help' for more information."
1391 ;;
1392
1393 *=*)
1394 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1395 # Reject names that are not valid shell variable names.
1396 case $ac_envvar in #(
1397 '' | [0-9]* | *[!_$as_cr_alnum]* )
1398 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1399 esac
1400 eval $ac_envvar=\$ac_optarg
1401 export $ac_envvar ;;
1402
1403 *)
1404 # FIXME: should be removed in autoconf 3.0.
1405 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1406 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1407 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1408 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1409 ;;
1410
1411 esac
1412 done
1413
1414 if test -n "$ac_prev"; then
1415 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1416 as_fn_error "missing argument to $ac_option"
1417 fi
1418
1419 if test -n "$ac_unrecognized_opts"; then
1420 case $enable_option_checking in
1421 no) ;;
1422 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1423 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1424 esac
1425 fi
1426
1427 # Check all directory arguments for consistency.
1428 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429 datadir sysconfdir sharedstatedir localstatedir includedir \
1430 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431 libdir localedir mandir
1432 do
1433 eval ac_val=\$$ac_var
1434 # Remove trailing slashes.
1435 case $ac_val in
1436 */ )
1437 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1438 eval $ac_var=\$ac_val;;
1439 esac
1440 # Be sure to have absolute directory names.
1441 case $ac_val in
1442 [\\/$]* | ?:[\\/]* ) continue;;
1443 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1444 esac
1445 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1446 done
1447
1448 # There might be people who depend on the old broken behavior: `$host'
1449 # used to hold the argument of --host etc.
1450 # FIXME: To remove some day.
1451 build=$build_alias
1452 host=$host_alias
1453 target=$target_alias
1454
1455 # FIXME: To remove some day.
1456 if test "x$host_alias" != x; then
1457 if test "x$build_alias" = x; then
1458 cross_compiling=maybe
1459 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1460 If a cross compiler is detected then cross compile mode will be used." >&2
1461 elif test "x$build_alias" != "x$host_alias"; then
1462 cross_compiling=yes
1463 fi
1464 fi
1465
1466 ac_tool_prefix=
1467 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1468
1469 test "$silent" = yes && exec 6>/dev/null
1470
1471
1472 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1473 ac_ls_di=`ls -di .` &&
1474 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1475 as_fn_error "working directory cannot be determined"
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477 as_fn_error "pwd does not report name of working directory"
1478
1479
1480 # Find the source files, if location was not specified.
1481 if test -z "$srcdir"; then
1482 ac_srcdir_defaulted=yes
1483 # Try the directory containing this script, then the parent directory.
1484 ac_confdir=`$as_dirname -- "$as_myself" ||
1485 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1486 X"$as_myself" : 'X\(//\)[^/]' \| \
1487 X"$as_myself" : 'X\(//\)$' \| \
1488 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1489 $as_echo X"$as_myself" |
1490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1491 s//\1/
1492 q
1493 }
1494 /^X\(\/\/\)[^/].*/{
1495 s//\1/
1496 q
1497 }
1498 /^X\(\/\/\)$/{
1499 s//\1/
1500 q
1501 }
1502 /^X\(\/\).*/{
1503 s//\1/
1504 q
1505 }
1506 s/.*/./; q'`
1507 srcdir=$ac_confdir
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 srcdir=..
1510 fi
1511 else
1512 ac_srcdir_defaulted=no
1513 fi
1514 if test ! -r "$srcdir/$ac_unique_file"; then
1515 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1516 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1517 fi
1518 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1519 ac_abs_confdir=`(
1520 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1521 pwd)`
1522 # When building in place, set srcdir=.
1523 if test "$ac_abs_confdir" = "$ac_pwd"; then
1524 srcdir=.
1525 fi
1526 # Remove unnecessary trailing slashes from srcdir.
1527 # Double slashes in file names in object file debugging info
1528 # mess up M-x gdb in Emacs.
1529 case $srcdir in
1530 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1531 esac
1532 for ac_var in $ac_precious_vars; do
1533 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1534 eval ac_env_${ac_var}_value=\$${ac_var}
1535 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1536 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1537 done
1538
1539 #
1540 # Report the --help message.
1541 #
1542 if test "$ac_init_help" = "long"; then
1543 # Omit some internal or obsolete options to make the list less imposing.
1544 # This message is too long to be a string in the A/UX 3.1 sh.
1545 cat <<_ACEOF
1546 \`configure' configures this package to adapt to many kinds of systems.
1547
1548 Usage: $0 [OPTION]... [VAR=VALUE]...
1549
1550 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1551 VAR=VALUE. See below for descriptions of some of the useful variables.
1552
1553 Defaults for the options are specified in brackets.
1554
1555 Configuration:
1556 -h, --help display this help and exit
1557 --help=short display options specific to this package
1558 --help=recursive display the short help of all the included packages
1559 -V, --version display version information and exit
1560 -q, --quiet, --silent do not print \`checking...' messages
1561 --cache-file=FILE cache test results in FILE [disabled]
1562 -C, --config-cache alias for \`--cache-file=config.cache'
1563 -n, --no-create do not create output files
1564 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1565
1566 Installation directories:
1567 --prefix=PREFIX install architecture-independent files in PREFIX
1568 [$ac_default_prefix]
1569 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1570 [PREFIX]
1571
1572 By default, \`make install' will install all the files in
1573 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1574 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1575 for instance \`--prefix=\$HOME'.
1576
1577 For better control, use the options below.
1578
1579 Fine tuning of the installation directories:
1580 --bindir=DIR user executables [EPREFIX/bin]
1581 --sbindir=DIR system admin executables [EPREFIX/sbin]
1582 --libexecdir=DIR program executables [EPREFIX/libexec]
1583 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1584 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1585 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1586 --libdir=DIR object code libraries [EPREFIX/lib]
1587 --includedir=DIR C header files [PREFIX/include]
1588 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1589 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1590 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1591 --infodir=DIR info documentation [DATAROOTDIR/info]
1592 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1593 --mandir=DIR man documentation [DATAROOTDIR/man]
1594 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1595 --htmldir=DIR html documentation [DOCDIR]
1596 --dvidir=DIR dvi documentation [DOCDIR]
1597 --pdfdir=DIR pdf documentation [DOCDIR]
1598 --psdir=DIR ps documentation [DOCDIR]
1599 _ACEOF
1600
1601 cat <<\_ACEOF
1602
1603 Program names:
1604 --program-prefix=PREFIX prepend PREFIX to installed program names
1605 --program-suffix=SUFFIX append SUFFIX to installed program names
1606 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1607
1608 X features:
1609 --x-includes=DIR X include files are in DIR
1610 --x-libraries=DIR X library files are in DIR
1611
1612 System types:
1613 --build=BUILD configure for building on BUILD [guessed]
1614 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1615 --target=TARGET configure for building compilers for TARGET [HOST]
1616 _ACEOF
1617 fi
1618
1619 if test -n "$ac_init_help"; then
1620
1621 cat <<\_ACEOF
1622
1623 Optional Features:
1624 --disable-option-checking ignore unrecognized --enable/--with options
1625 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1626 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1627 --enable-maintainer-mode enable make rules and dependencies not useful
1628 (and sometimes confusing) to the casual installer
1629 --enable-plugins Enable support for plugins (defaults no)
1630 --disable-largefile omit support for large files
1631 --disable-dependency-tracking speeds up one-time build
1632 --enable-dependency-tracking do not reject slow dependency extractors
1633 --enable-targets=TARGETS
1634 alternative target configurations
1635 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1636 --disable-gdbcli disable command-line interface (CLI)
1637 --disable-gdbmi disable machine-interface (MI)
1638 --enable-tui enable full-screen terminal user interface (TUI)
1639 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1640 --enable-profiling enable profiling of GDB
1641 --disable-rpath do not hardcode runtime library paths
1642 --enable-werror treat compile warnings as errors
1643 --enable-build-warnings enable build-time compiler warnings if gcc is used
1644 --enable-gdb-build-warnings
1645 enable GDB specific build-time compiler warnings if
1646 gcc is used
1647 --enable-sim link gdb with simulator
1648 --enable-multi-ice build the multi-ice-gdb-server
1649 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1650 is auto)
1651
1652 Optional Packages:
1653 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1654 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1655 --with-separate-debug-dir=PATH
1656 look for global separate debug info in this path
1657 [LIBDIR/debug]
1658 --with-gdb-datadir=PATH look for global separate data files in this path
1659 [DATADIR/gdb]
1660 --with-relocated-sources=PATH
1661 automatically relocate this path for source files
1662 --with-libunwind use libunwind frame unwinding support
1663 --with-curses use the curses library instead of the termcap
1664 library
1665 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1666 --with-bugurl=URL Direct users to URL to report a bug
1667 --with-zlib include zlib support (auto/yes/no) default=auto
1668 --with-libiconv-prefix=DIR
1669 search for libiconv in DIR/include and DIR/lib
1670 --with-iconv-bin=PATH specify where to find the iconv program
1671 --with-system-readline use installed readline library
1672 --with-jit-reader-dir=PATH
1673 directory to load the JIT readers from
1674 --with-expat include expat support (auto/yes/no)
1675 --with-gnu-ld assume the C compiler uses GNU ld default=no
1676 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1677 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1678 --with-python[=PYTHON] include python support
1679 (auto/yes/no/<python-program>)
1680 --without-included-regex
1681 don't use included regex; this is the default on
1682 systems with version 2 of the GNU C library (use
1683 with caution on other system)
1684 --with-sysroot[=DIR] search for usr/lib et al within DIR
1685 --with-system-gdbinit=PATH
1686 automatically load a system-wide gdbinit file
1687 --with-tcl directory containing tcl configuration (tclConfig.sh)
1688 --with-tk directory containing tk configuration (tkConfig.sh)
1689 --with-x use the X Window System
1690
1691 Some influential environment variables:
1692 CC C compiler command
1693 CFLAGS C compiler flags
1694 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1695 nonstandard directory <lib dir>
1696 LIBS libraries to pass to the linker, e.g. -l<library>
1697 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1698 you have headers in a nonstandard directory <include dir>
1699 CPP C preprocessor
1700 MAKEINFO Parent configure detects if it is of sufficient version.
1701 MAKEINFOFLAGS
1702 Parameters for MAKEINFO.
1703 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1704 the first program found out of: `bison -y', `byacc', `yacc'.
1705 YFLAGS The list of arguments that will be passed by default to $YACC.
1706 This script will default YFLAGS to the empty string to avoid a
1707 default value of `-d' given by some make applications.
1708 XMKMF Path to xmkmf, Makefile generator for X Window System
1709
1710 Use these variables to override the choices made by `configure' or to help
1711 it to find libraries and programs with nonstandard names/locations.
1712
1713 Report bugs to the package provider.
1714 _ACEOF
1715 ac_status=$?
1716 fi
1717
1718 if test "$ac_init_help" = "recursive"; then
1719 # If there are subdirs, report their specific --help.
1720 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1721 test -d "$ac_dir" ||
1722 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1723 continue
1724 ac_builddir=.
1725
1726 case "$ac_dir" in
1727 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1728 *)
1729 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1730 # A ".." for each directory in $ac_dir_suffix.
1731 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1732 case $ac_top_builddir_sub in
1733 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1734 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1735 esac ;;
1736 esac
1737 ac_abs_top_builddir=$ac_pwd
1738 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1739 # for backward compatibility:
1740 ac_top_builddir=$ac_top_build_prefix
1741
1742 case $srcdir in
1743 .) # We are building in place.
1744 ac_srcdir=.
1745 ac_top_srcdir=$ac_top_builddir_sub
1746 ac_abs_top_srcdir=$ac_pwd ;;
1747 [\\/]* | ?:[\\/]* ) # Absolute name.
1748 ac_srcdir=$srcdir$ac_dir_suffix;
1749 ac_top_srcdir=$srcdir
1750 ac_abs_top_srcdir=$srcdir ;;
1751 *) # Relative name.
1752 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1753 ac_top_srcdir=$ac_top_build_prefix$srcdir
1754 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1755 esac
1756 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1757
1758 cd "$ac_dir" || { ac_status=$?; continue; }
1759 # Check for guested configure.
1760 if test -f "$ac_srcdir/configure.gnu"; then
1761 echo &&
1762 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1763 elif test -f "$ac_srcdir/configure"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure" --help=recursive
1766 else
1767 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1768 fi || ac_status=$?
1769 cd "$ac_pwd" || { ac_status=$?; break; }
1770 done
1771 fi
1772
1773 test -n "$ac_init_help" && exit $ac_status
1774 if $ac_init_version; then
1775 cat <<\_ACEOF
1776 configure
1777 generated by GNU Autoconf 2.64
1778
1779 Copyright (C) 2009 Free Software Foundation, Inc.
1780 This configure script is free software; the Free Software Foundation
1781 gives unlimited permission to copy, distribute and modify it.
1782 _ACEOF
1783 exit
1784 fi
1785
1786 ## ------------------------ ##
1787 ## Autoconf initialization. ##
1788 ## ------------------------ ##
1789
1790 # ac_fn_c_try_compile LINENO
1791 # --------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_c_try_compile ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext
1797 if { { ac_try="$ac_compile"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1810 fi
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.$ac_objext; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=1
1822 fi
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 return $ac_retval
1825
1826 } # ac_fn_c_try_compile
1827
1828 # ac_fn_c_try_cpp LINENO
1829 # ----------------------
1830 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_cpp ()
1832 {
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 if { { ac_try="$ac_cpp conftest.$ac_ext"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1847 fi
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } >/dev/null && {
1850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 }; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=1
1859 fi
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 return $ac_retval
1862
1863 } # ac_fn_c_try_cpp
1864
1865 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868 # the include files in INCLUDES and setting the cache variable VAR
1869 # accordingly.
1870 ac_fn_c_check_header_mongrel ()
1871 {
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1877 $as_echo_n "(cached) " >&6
1878 fi
1879 eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1882 else
1883 # Is the header compilable?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885 $as_echo_n "checking $2 usability... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 $4
1889 #include <$2>
1890 _ACEOF
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_header_compiler=yes
1893 else
1894 ac_header_compiler=no
1895 fi
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898 $as_echo "$ac_header_compiler" >&6; }
1899
1900 # Is the header present?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902 $as_echo_n "checking $2 presence... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1905 #include <$2>
1906 _ACEOF
1907 if ac_fn_c_try_cpp "$LINENO"; then :
1908 ac_header_preproc=yes
1909 else
1910 ac_header_preproc=no
1911 fi
1912 rm -f conftest.err conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914 $as_echo "$ac_header_preproc" >&6; }
1915
1916 # So? What about this header?
1917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1918 yes:no: )
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923 ;;
1924 no:yes:* )
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1928 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1932 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935 ;;
1936 esac
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 eval "$3=\$ac_header_compiler"
1943 fi
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 fi
1948 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949
1950 } # ac_fn_c_check_header_mongrel
1951
1952 # ac_fn_c_try_run LINENO
1953 # ----------------------
1954 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1955 # that executables *can* be run.
1956 ac_fn_c_try_run ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_link"
1960 case "(($ac_try" in
1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962 *) ac_try_echo=$ac_try;;
1963 esac
1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_link") 2>&5
1967 ac_status=$?
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1970 { { case "(($ac_try" in
1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1973 esac
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_try") 2>&5
1977 ac_status=$?
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; }; }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: program exited with status $ac_status" >&5
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1985
1986 ac_retval=$ac_status
1987 fi
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990 return $ac_retval
1991
1992 } # ac_fn_c_try_run
1993
1994 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1995 # -------------------------------------------------------
1996 # Tests whether HEADER exists and can be compiled using the include files in
1997 # INCLUDES, setting the cache variable VAR accordingly.
1998 ac_fn_c_check_header_compile ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 #include <$2>
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012 eval "$3=yes"
2013 else
2014 eval "$3=no"
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 fi
2018 eval ac_res=\$$3
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022
2023 } # ac_fn_c_check_header_compile
2024
2025 # ac_fn_c_try_link LINENO
2026 # -----------------------
2027 # Try to link conftest.$ac_ext, and return whether this succeeded.
2028 ac_fn_c_try_link ()
2029 {
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 rm -f conftest.$ac_objext conftest$ac_exeext
2032 if { { ac_try="$ac_link"
2033 case "(($ac_try" in
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2036 esac
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_link") 2>conftest.err
2040 ac_status=$?
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2045 fi
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } && {
2048 test -z "$ac_c_werror_flag" ||
2049 test ! -s conftest.err
2050 } && test -s conftest$ac_exeext && {
2051 test "$cross_compiling" = yes ||
2052 $as_test_x conftest$ac_exeext
2053 }; then :
2054 ac_retval=0
2055 else
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2058
2059 ac_retval=1
2060 fi
2061 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063 # interfere with the next link command; also delete a directory that is
2064 # left behind by Apple's compiler. We do this before executing the actions.
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067 return $ac_retval
2068
2069 } # ac_fn_c_try_link
2070
2071 # ac_fn_c_check_func LINENO FUNC VAR
2072 # ----------------------------------
2073 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2074 ac_fn_c_check_func ()
2075 {
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2078 $as_echo_n "checking for $2... " >&6; }
2079 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2080 $as_echo_n "(cached) " >&6
2081 else
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2084 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2086 #define $2 innocuous_$2
2087
2088 /* System header to define __stub macros and hopefully few prototypes,
2089 which can conflict with char $2 (); below.
2090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2091 <limits.h> exists even on freestanding compilers. */
2092
2093 #ifdef __STDC__
2094 # include <limits.h>
2095 #else
2096 # include <assert.h>
2097 #endif
2098
2099 #undef $2
2100
2101 /* Override any GCC internal prototype to avoid an error.
2102 Use char because int might match the return type of a GCC
2103 builtin and then its argument prototype would still apply. */
2104 #ifdef __cplusplus
2105 extern "C"
2106 #endif
2107 char $2 ();
2108 /* The GNU C library defines this for functions which it implements
2109 to always fail with ENOSYS. Some functions are actually named
2110 something starting with __ and the normal name is an alias. */
2111 #if defined __stub_$2 || defined __stub___$2
2112 choke me
2113 #endif
2114
2115 int
2116 main ()
2117 {
2118 return $2 ();
2119 ;
2120 return 0;
2121 }
2122 _ACEOF
2123 if ac_fn_c_try_link "$LINENO"; then :
2124 eval "$3=yes"
2125 else
2126 eval "$3=no"
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext \
2129 conftest$ac_exeext conftest.$ac_ext
2130 fi
2131 eval ac_res=\$$3
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133 $as_echo "$ac_res" >&6; }
2134 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2135
2136 } # ac_fn_c_check_func
2137
2138 # ac_fn_c_check_decl LINENO SYMBOL VAR
2139 # ------------------------------------
2140 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2141 ac_fn_c_check_decl ()
2142 {
2143 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2144 as_decl_name=`echo $2|sed 's/ *(.*//'`
2145 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2147 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2148 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2149 $as_echo_n "(cached) " >&6
2150 else
2151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2153 $4
2154 int
2155 main ()
2156 {
2157 #ifndef $as_decl_name
2158 #ifdef __cplusplus
2159 (void) $as_decl_use;
2160 #else
2161 (void) $as_decl_name;
2162 #endif
2163 #endif
2164
2165 ;
2166 return 0;
2167 }
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2170 eval "$3=yes"
2171 else
2172 eval "$3=no"
2173 fi
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 fi
2176 eval ac_res=\$$3
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180
2181 } # ac_fn_c_check_decl
2182
2183 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2184 # --------------------------------------------
2185 # Tries to find the compile-time value of EXPR in a program that includes
2186 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2187 # computed
2188 ac_fn_c_compute_int ()
2189 {
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 if test "$cross_compiling" = yes; then
2192 # Depending upon the size, compute the lo and hi bounds.
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 $4
2196 int
2197 main ()
2198 {
2199 static int test_array [1 - 2 * !(($2) >= 0)];
2200 test_array [0] = 0
2201
2202 ;
2203 return 0;
2204 }
2205 _ACEOF
2206 if ac_fn_c_try_compile "$LINENO"; then :
2207 ac_lo=0 ac_mid=0
2208 while :; do
2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2210 /* end confdefs.h. */
2211 $4
2212 int
2213 main ()
2214 {
2215 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2216 test_array [0] = 0
2217
2218 ;
2219 return 0;
2220 }
2221 _ACEOF
2222 if ac_fn_c_try_compile "$LINENO"; then :
2223 ac_hi=$ac_mid; break
2224 else
2225 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2226 if test $ac_lo -le $ac_mid; then
2227 ac_lo= ac_hi=
2228 break
2229 fi
2230 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2231 fi
2232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2233 done
2234 else
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2237 $4
2238 int
2239 main ()
2240 {
2241 static int test_array [1 - 2 * !(($2) < 0)];
2242 test_array [0] = 0
2243
2244 ;
2245 return 0;
2246 }
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_hi=-1 ac_mid=-1
2250 while :; do
2251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2252 /* end confdefs.h. */
2253 $4
2254 int
2255 main ()
2256 {
2257 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2258 test_array [0] = 0
2259
2260 ;
2261 return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265 ac_lo=$ac_mid; break
2266 else
2267 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2268 if test $ac_mid -le $ac_hi; then
2269 ac_lo= ac_hi=
2270 break
2271 fi
2272 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 done
2276 else
2277 ac_lo= ac_hi=
2278 fi
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 # Binary search between lo and hi bounds.
2283 while test "x$ac_lo" != "x$ac_hi"; do
2284 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2287 $4
2288 int
2289 main ()
2290 {
2291 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2292 test_array [0] = 0
2293
2294 ;
2295 return 0;
2296 }
2297 _ACEOF
2298 if ac_fn_c_try_compile "$LINENO"; then :
2299 ac_hi=$ac_mid
2300 else
2301 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 done
2305 case $ac_lo in #((
2306 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2307 '') ac_retval=1 ;;
2308 esac
2309 else
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $4
2313 static long int longval () { return $2; }
2314 static unsigned long int ulongval () { return $2; }
2315 #include <stdio.h>
2316 #include <stdlib.h>
2317 int
2318 main ()
2319 {
2320
2321 FILE *f = fopen ("conftest.val", "w");
2322 if (! f)
2323 return 1;
2324 if (($2) < 0)
2325 {
2326 long int i = longval ();
2327 if (i != ($2))
2328 return 1;
2329 fprintf (f, "%ld", i);
2330 }
2331 else
2332 {
2333 unsigned long int i = ulongval ();
2334 if (i != ($2))
2335 return 1;
2336 fprintf (f, "%lu", i);
2337 }
2338 /* Do not output a trailing newline, as this causes \r\n confusion
2339 on some platforms. */
2340 return ferror (f) || fclose (f) != 0;
2341
2342 ;
2343 return 0;
2344 }
2345 _ACEOF
2346 if ac_fn_c_try_run "$LINENO"; then :
2347 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2348 else
2349 ac_retval=1
2350 fi
2351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2352 conftest.$ac_objext conftest.beam conftest.$ac_ext
2353 rm -f conftest.val
2354
2355 fi
2356 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2357 return $ac_retval
2358
2359 } # ac_fn_c_compute_int
2360
2361 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2362 # ----------------------------------------------------
2363 # Tries to find if the field MEMBER exists in type AGGR, after including
2364 # INCLUDES, setting cache variable VAR accordingly.
2365 ac_fn_c_check_member ()
2366 {
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2369 $as_echo_n "checking for $2.$3... " >&6; }
2370 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2371 $as_echo_n "(cached) " >&6
2372 else
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h. */
2375 $5
2376 int
2377 main ()
2378 {
2379 static $2 ac_aggr;
2380 if (ac_aggr.$3)
2381 return 0;
2382 ;
2383 return 0;
2384 }
2385 _ACEOF
2386 if ac_fn_c_try_compile "$LINENO"; then :
2387 eval "$4=yes"
2388 else
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2391 $5
2392 int
2393 main ()
2394 {
2395 static $2 ac_aggr;
2396 if (sizeof ac_aggr.$3)
2397 return 0;
2398 ;
2399 return 0;
2400 }
2401 _ACEOF
2402 if ac_fn_c_try_compile "$LINENO"; then :
2403 eval "$4=yes"
2404 else
2405 eval "$4=no"
2406 fi
2407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 fi
2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 fi
2411 eval ac_res=\$$4
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415
2416 } # ac_fn_c_check_member
2417
2418 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2419 # -------------------------------------------
2420 # Tests whether TYPE exists after having included INCLUDES, setting cache
2421 # variable VAR accordingly.
2422 ac_fn_c_check_type ()
2423 {
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2426 $as_echo_n "checking for $2... " >&6; }
2427 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 eval "$3=no"
2431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2432 /* end confdefs.h. */
2433 $4
2434 int
2435 main ()
2436 {
2437 if (sizeof ($2))
2438 return 0;
2439 ;
2440 return 0;
2441 }
2442 _ACEOF
2443 if ac_fn_c_try_compile "$LINENO"; then :
2444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h. */
2446 $4
2447 int
2448 main ()
2449 {
2450 if (sizeof (($2)))
2451 return 0;
2452 ;
2453 return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457
2458 else
2459 eval "$3=yes"
2460 fi
2461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2462 fi
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2464 fi
2465 eval ac_res=\$$3
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2469
2470 } # ac_fn_c_check_type
2471 cat >config.log <<_ACEOF
2472 This file contains any messages produced by compilers while
2473 running configure, to aid debugging if configure makes a mistake.
2474
2475 It was created by $as_me, which was
2476 generated by GNU Autoconf 2.64. Invocation command line was
2477
2478 $ $0 $@
2479
2480 _ACEOF
2481 exec 5>>config.log
2482 {
2483 cat <<_ASUNAME
2484 ## --------- ##
2485 ## Platform. ##
2486 ## --------- ##
2487
2488 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2489 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2490 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2491 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2492 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2493
2494 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2495 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2496
2497 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2498 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2499 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2500 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2501 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2502 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2503 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2504
2505 _ASUNAME
2506
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 $as_echo "PATH: $as_dir"
2513 done
2514 IFS=$as_save_IFS
2515
2516 } >&5
2517
2518 cat >&5 <<_ACEOF
2519
2520
2521 ## ----------- ##
2522 ## Core tests. ##
2523 ## ----------- ##
2524
2525 _ACEOF
2526
2527
2528 # Keep a trace of the command line.
2529 # Strip out --no-create and --no-recursion so they do not pile up.
2530 # Strip out --silent because we don't want to record it for future runs.
2531 # Also quote any args containing shell meta-characters.
2532 # Make two passes to allow for proper duplicate-argument suppression.
2533 ac_configure_args=
2534 ac_configure_args0=
2535 ac_configure_args1=
2536 ac_must_keep_next=false
2537 for ac_pass in 1 2
2538 do
2539 for ac_arg
2540 do
2541 case $ac_arg in
2542 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2544 | -silent | --silent | --silen | --sile | --sil)
2545 continue ;;
2546 *\'*)
2547 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2548 esac
2549 case $ac_pass in
2550 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2551 2)
2552 as_fn_append ac_configure_args1 " '$ac_arg'"
2553 if test $ac_must_keep_next = true; then
2554 ac_must_keep_next=false # Got value, back to normal.
2555 else
2556 case $ac_arg in
2557 *=* | --config-cache | -C | -disable-* | --disable-* \
2558 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2559 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2560 | -with-* | --with-* | -without-* | --without-* | --x)
2561 case "$ac_configure_args0 " in
2562 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2563 esac
2564 ;;
2565 -* ) ac_must_keep_next=true ;;
2566 esac
2567 fi
2568 as_fn_append ac_configure_args " '$ac_arg'"
2569 ;;
2570 esac
2571 done
2572 done
2573 { ac_configure_args0=; unset ac_configure_args0;}
2574 { ac_configure_args1=; unset ac_configure_args1;}
2575
2576 # When interrupted or exit'd, cleanup temporary files, and complete
2577 # config.log. We remove comments because anyway the quotes in there
2578 # would cause problems or look ugly.
2579 # WARNING: Use '\'' to represent an apostrophe within the trap.
2580 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2581 trap 'exit_status=$?
2582 # Save into config.log some information that might help in debugging.
2583 {
2584 echo
2585
2586 cat <<\_ASBOX
2587 ## ---------------- ##
2588 ## Cache variables. ##
2589 ## ---------------- ##
2590 _ASBOX
2591 echo
2592 # The following way of writing the cache mishandles newlines in values,
2593 (
2594 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2595 eval ac_val=\$$ac_var
2596 case $ac_val in #(
2597 *${as_nl}*)
2598 case $ac_var in #(
2599 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2600 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2601 esac
2602 case $ac_var in #(
2603 _ | IFS | as_nl) ;; #(
2604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2605 *) { eval $ac_var=; unset $ac_var;} ;;
2606 esac ;;
2607 esac
2608 done
2609 (set) 2>&1 |
2610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2611 *${as_nl}ac_space=\ *)
2612 sed -n \
2613 "s/'\''/'\''\\\\'\'''\''/g;
2614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2615 ;; #(
2616 *)
2617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2618 ;;
2619 esac |
2620 sort
2621 )
2622 echo
2623
2624 cat <<\_ASBOX
2625 ## ----------------- ##
2626 ## Output variables. ##
2627 ## ----------------- ##
2628 _ASBOX
2629 echo
2630 for ac_var in $ac_subst_vars
2631 do
2632 eval ac_val=\$$ac_var
2633 case $ac_val in
2634 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2635 esac
2636 $as_echo "$ac_var='\''$ac_val'\''"
2637 done | sort
2638 echo
2639
2640 if test -n "$ac_subst_files"; then
2641 cat <<\_ASBOX
2642 ## ------------------- ##
2643 ## File substitutions. ##
2644 ## ------------------- ##
2645 _ASBOX
2646 echo
2647 for ac_var in $ac_subst_files
2648 do
2649 eval ac_val=\$$ac_var
2650 case $ac_val in
2651 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2652 esac
2653 $as_echo "$ac_var='\''$ac_val'\''"
2654 done | sort
2655 echo
2656 fi
2657
2658 if test -s confdefs.h; then
2659 cat <<\_ASBOX
2660 ## ----------- ##
2661 ## confdefs.h. ##
2662 ## ----------- ##
2663 _ASBOX
2664 echo
2665 cat confdefs.h
2666 echo
2667 fi
2668 test "$ac_signal" != 0 &&
2669 $as_echo "$as_me: caught signal $ac_signal"
2670 $as_echo "$as_me: exit $exit_status"
2671 } >&5
2672 rm -f core *.core core.conftest.* &&
2673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2674 exit $exit_status
2675 ' 0
2676 for ac_signal in 1 2 13 15; do
2677 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2678 done
2679 ac_signal=0
2680
2681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2682 rm -f -r conftest* confdefs.h
2683
2684 $as_echo "/* confdefs.h */" > confdefs.h
2685
2686 # Predefined preprocessor variables.
2687
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_NAME "$PACKAGE_NAME"
2690 _ACEOF
2691
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2694 _ACEOF
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2698 _ACEOF
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_STRING "$PACKAGE_STRING"
2702 _ACEOF
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2706 _ACEOF
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_URL "$PACKAGE_URL"
2710 _ACEOF
2711
2712
2713 # Let the site file select an alternate cache file if it wants to.
2714 # Prefer an explicitly selected file to automatically selected ones.
2715 ac_site_file1=NONE
2716 ac_site_file2=NONE
2717 if test -n "$CONFIG_SITE"; then
2718 ac_site_file1=$CONFIG_SITE
2719 elif test "x$prefix" != xNONE; then
2720 ac_site_file1=$prefix/share/config.site
2721 ac_site_file2=$prefix/etc/config.site
2722 else
2723 ac_site_file1=$ac_default_prefix/share/config.site
2724 ac_site_file2=$ac_default_prefix/etc/config.site
2725 fi
2726 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2727 do
2728 test "x$ac_site_file" = xNONE && continue
2729 if test -r "$ac_site_file"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2731 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2732 sed 's/^/| /' "$ac_site_file" >&5
2733 . "$ac_site_file"
2734 fi
2735 done
2736
2737 if test -r "$cache_file"; then
2738 # Some versions of bash will fail to source /dev/null (special
2739 # files actually), so we avoid doing that.
2740 if test -f "$cache_file"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2742 $as_echo "$as_me: loading cache $cache_file" >&6;}
2743 case $cache_file in
2744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2745 *) . "./$cache_file";;
2746 esac
2747 fi
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2750 $as_echo "$as_me: creating cache $cache_file" >&6;}
2751 >$cache_file
2752 fi
2753
2754 gl_header_list="$gl_header_list sys/mman.h"
2755 gl_func_list="$gl_func_list mprotect"
2756 gl_func_list="$gl_func_list memchr"
2757 gl_header_list="$gl_header_list stddef.h"
2758 gl_header_list="$gl_header_list stdint.h"
2759 gl_header_list="$gl_header_list wchar.h"
2760 gl_header_list="$gl_header_list string.h"
2761 # Check that the precious variables saved in the cache have kept the same
2762 # value.
2763 ac_cache_corrupted=false
2764 for ac_var in $ac_precious_vars; do
2765 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2766 eval ac_new_set=\$ac_env_${ac_var}_set
2767 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2768 eval ac_new_val=\$ac_env_${ac_var}_value
2769 case $ac_old_set,$ac_new_set in
2770 set,)
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2772 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2773 ac_cache_corrupted=: ;;
2774 ,set)
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2776 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2777 ac_cache_corrupted=: ;;
2778 ,);;
2779 *)
2780 if test "x$ac_old_val" != "x$ac_new_val"; then
2781 # differences in whitespace do not lead to failure.
2782 ac_old_val_w=`echo x $ac_old_val`
2783 ac_new_val_w=`echo x $ac_new_val`
2784 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2786 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2787 ac_cache_corrupted=:
2788 else
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2790 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2791 eval $ac_var=\$ac_old_val
2792 fi
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2794 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2796 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2797 fi;;
2798 esac
2799 # Pass precious variables to config.status.
2800 if test "$ac_new_set" = set; then
2801 case $ac_new_val in
2802 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2803 *) ac_arg=$ac_var=$ac_new_val ;;
2804 esac
2805 case " $ac_configure_args " in
2806 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2807 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2808 esac
2809 fi
2810 done
2811 if $ac_cache_corrupted; then
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2815 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2816 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2817 fi
2818 ## -------------------- ##
2819 ## Main body of script. ##
2820 ## -------------------- ##
2821
2822 ac_ext=c
2823 ac_cpp='$CPP $CPPFLAGS'
2824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827
2828
2829
2830
2831
2832 ac_config_headers="$ac_config_headers config.h:config.in"
2833
2834
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2836 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2837 # Check whether --enable-maintainer-mode was given.
2838 if test "${enable_maintainer_mode+set}" = set; then :
2839 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2840 else
2841 USE_MAINTAINER_MODE=no
2842 fi
2843
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2845 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2846 if test $USE_MAINTAINER_MODE = yes; then
2847 MAINTAINER_MODE_TRUE=
2848 MAINTAINER_MODE_FALSE='#'
2849 else
2850 MAINTAINER_MODE_TRUE='#'
2851 MAINTAINER_MODE_FALSE=
2852 fi
2853
2854 MAINT=$MAINTAINER_MODE_TRUE
2855
2856
2857
2858 ac_ext=c
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900
2901 fi
2902 if test -z "$ac_cv_prog_CC"; then
2903 ac_ct_CC=$CC
2904 # Extract the first word of "gcc", so it can be a program name with args.
2905 set dummy gcc; ac_word=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2910 else
2911 if test -n "$ac_ct_CC"; then
2912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_ac_ct_CC="gcc"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2932 if test -n "$ac_ct_CC"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2934 $as_echo "$ac_ct_CC" >&6; }
2935 else
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 fi
2939
2940 if test "x$ac_ct_CC" = x; then
2941 CC=""
2942 else
2943 case $cross_compiling:$ac_tool_warned in
2944 yes:)
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2947 ac_tool_warned=yes ;;
2948 esac
2949 CC=$ac_ct_CC
2950 fi
2951 else
2952 CC="$ac_cv_prog_CC"
2953 fi
2954
2955 if test -z "$CC"; then
2956 if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2958 set dummy ${ac_tool_prefix}cc; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_CC+set}" = set; then :
2962 $as_echo_n "(cached) " >&6
2963 else
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968 for as_dir in $PATH
2969 do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_CC="${ac_tool_prefix}cc"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978 done
2979 done
2980 IFS=$as_save_IFS
2981
2982 fi
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 $as_echo "$CC" >&6; }
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2991 fi
2992
2993
2994 fi
2995 fi
2996 if test -z "$CC"; then
2997 # Extract the first word of "cc", so it can be a program name with args.
2998 set dummy cc; ac_word=$2
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000 $as_echo_n "checking for $ac_word... " >&6; }
3001 if test "${ac_cv_prog_CC+set}" = set; then :
3002 $as_echo_n "(cached) " >&6
3003 else
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 else
3007 ac_prog_rejected=no
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3016 ac_prog_rejected=yes
3017 continue
3018 fi
3019 ac_cv_prog_CC="cc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3022 fi
3023 done
3024 done
3025 IFS=$as_save_IFS
3026
3027 if test $ac_prog_rejected = yes; then
3028 # We found a bogon in the path, so make sure we never use it.
3029 set dummy $ac_cv_prog_CC
3030 shift
3031 if test $# != 0; then
3032 # We chose a different compiler from the bogus one.
3033 # However, it has the same basename, so the bogon will be chosen
3034 # first if we set CC to just the basename; use the full file name.
3035 shift
3036 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3037 fi
3038 fi
3039 fi
3040 fi
3041 CC=$ac_cv_prog_CC
3042 if test -n "$CC"; then
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3044 $as_echo "$CC" >&6; }
3045 else
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3047 $as_echo "no" >&6; }
3048 fi
3049
3050
3051 fi
3052 if test -z "$CC"; then
3053 if test -n "$ac_tool_prefix"; then
3054 for ac_prog in cl.exe
3055 do
3056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059 $as_echo_n "checking for $ac_word... " >&6; }
3060 if test "${ac_cv_prog_CC+set}" = set; then :
3061 $as_echo_n "(cached) " >&6
3062 else
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC="$CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 break 2
3076 fi
3077 done
3078 done
3079 IFS=$as_save_IFS
3080
3081 fi
3082 fi
3083 CC=$ac_cv_prog_CC
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3087 else
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3090 fi
3091
3092
3093 test -n "$CC" && break
3094 done
3095 fi
3096 if test -z "$CC"; then
3097 ac_ct_CC=$CC
3098 for ac_prog in cl.exe
3099 do
3100 # Extract the first word of "$ac_prog", so it can be a program name with args.
3101 set dummy $ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$ac_ct_CC"; then
3108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117 ac_cv_prog_ac_ct_CC="$ac_prog"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3120 fi
3121 done
3122 done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3128 if test -n "$ac_ct_CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3130 $as_echo "$ac_ct_CC" >&6; }
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137 test -n "$ac_ct_CC" && break
3138 done
3139
3140 if test "x$ac_ct_CC" = x; then
3141 CC=""
3142 else
3143 case $cross_compiling:$ac_tool_warned in
3144 yes:)
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3146 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3147 ac_tool_warned=yes ;;
3148 esac
3149 CC=$ac_ct_CC
3150 fi
3151 fi
3152
3153 fi
3154
3155
3156 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 as_fn_error "no acceptable C compiler found in \$PATH
3159 See \`config.log' for more details." "$LINENO" 5; }
3160
3161 # Provide some information about the compiler.
3162 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3163 set X $ac_compile
3164 ac_compiler=$2
3165 for ac_option in --version -v -V -qversion; do
3166 { { ac_try="$ac_compiler $ac_option >&5"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3174 ac_status=$?
3175 if test -s conftest.err; then
3176 sed '10a\
3177 ... rest of stderr output deleted ...
3178 10q' conftest.err >conftest.er1
3179 cat conftest.er1 >&5
3180 rm -f conftest.er1 conftest.err
3181 fi
3182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3183 test $ac_status = 0; }
3184 done
3185
3186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187 /* end confdefs.h. */
3188
3189 int
3190 main ()
3191 {
3192
3193 ;
3194 return 0;
3195 }
3196 _ACEOF
3197 ac_clean_files_save=$ac_clean_files
3198 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3199 # Try to create an executable without -o first, disregard a.out.
3200 # It will help us diagnose broken compilers, and finding out an intuition
3201 # of exeext.
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3205
3206 # The possible output files:
3207 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3208
3209 ac_rmfiles=
3210 for ac_file in $ac_files
3211 do
3212 case $ac_file in
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3214 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3215 esac
3216 done
3217 rm -f $ac_rmfiles
3218
3219 if { { ac_try="$ac_link_default"
3220 case "(($ac_try" in
3221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3223 esac
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_link_default") 2>&5
3227 ac_status=$?
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }; then :
3230 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3231 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3232 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3233 # so that the user can short-circuit this test for compilers unknown to
3234 # Autoconf.
3235 for ac_file in $ac_files ''
3236 do
3237 test -f "$ac_file" || continue
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3240 ;;
3241 [ab].out )
3242 # We found the default executable, but exeext='' is most
3243 # certainly right.
3244 break;;
3245 *.* )
3246 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3247 then :; else
3248 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3249 fi
3250 # We set ac_cv_exeext here because the later test for it is not
3251 # safe: cross compilers may not add the suffix if given an `-o'
3252 # argument, so we may need to know it at that point already.
3253 # Even if this section looks crufty: it has the advantage of
3254 # actually working.
3255 break;;
3256 * )
3257 break;;
3258 esac
3259 done
3260 test "$ac_cv_exeext" = no && ac_cv_exeext=
3261
3262 else
3263 ac_file=''
3264 fi
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3266 $as_echo "$ac_file" >&6; }
3267 if test -z "$ac_file"; then :
3268 $as_echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3270
3271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 { as_fn_set_status 77
3274 as_fn_error "C compiler cannot create executables
3275 See \`config.log' for more details." "$LINENO" 5; }; }
3276 fi
3277 ac_exeext=$ac_cv_exeext
3278
3279 # Check that the compiler produces executables we can run. If not, either
3280 # the compiler is broken, or we cross compile.
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3282 $as_echo_n "checking whether the C compiler works... " >&6; }
3283 # If not cross compiling, check that we can run a simple program.
3284 if test "$cross_compiling" != yes; then
3285 if { ac_try='./$ac_file'
3286 { { case "(($ac_try" in
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_try") 2>&5
3293 ac_status=$?
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }; }; then
3296 cross_compiling=no
3297 else
3298 if test "$cross_compiling" = maybe; then
3299 cross_compiling=yes
3300 else
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error "cannot run C compiled programs.
3304 If you meant to cross compile, use \`--host'.
3305 See \`config.log' for more details." "$LINENO" 5; }
3306 fi
3307 fi
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3311
3312 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3313 ac_clean_files=$ac_clean_files_save
3314 # Check that the compiler produces executables we can run. If not, either
3315 # the compiler is broken, or we cross compile.
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3317 $as_echo_n "checking whether we are cross compiling... " >&6; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3319 $as_echo "$cross_compiling" >&6; }
3320
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3322 $as_echo_n "checking for suffix of executables... " >&6; }
3323 if { { ac_try="$ac_link"
3324 case "(($ac_try" in
3325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3326 *) ac_try_echo=$ac_try;;
3327 esac
3328 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3329 $as_echo "$ac_try_echo"; } >&5
3330 (eval "$ac_link") 2>&5
3331 ac_status=$?
3332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3333 test $ac_status = 0; }; then :
3334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3335 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3336 # work properly (i.e., refer to `conftest.exe'), while it won't with
3337 # `rm'.
3338 for ac_file in conftest.exe conftest conftest.*; do
3339 test -f "$ac_file" || continue
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3343 break;;
3344 * ) break;;
3345 esac
3346 done
3347 else
3348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3349 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3350 as_fn_error "cannot compute suffix of executables: cannot compile and link
3351 See \`config.log' for more details." "$LINENO" 5; }
3352 fi
3353 rm -f conftest$ac_cv_exeext
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3355 $as_echo "$ac_cv_exeext" >&6; }
3356
3357 rm -f conftest.$ac_ext
3358 EXEEXT=$ac_cv_exeext
3359 ac_exeext=$EXEEXT
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361 $as_echo_n "checking for suffix of object files... " >&6; }
3362 if test "${ac_cv_objext+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3367
3368 int
3369 main ()
3370 {
3371
3372 ;
3373 return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.o conftest.obj
3377 if { { ac_try="$ac_compile"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_compile") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; then :
3388 for ac_file in conftest.o conftest.obj conftest.*; do
3389 test -f "$ac_file" || continue;
3390 case $ac_file in
3391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3393 break;;
3394 esac
3395 done
3396 else
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error "cannot compute suffix of object files: cannot compile
3403 See \`config.log' for more details." "$LINENO" 5; }
3404 fi
3405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408 $as_echo "$ac_cv_objext" >&6; }
3409 OBJEXT=$ac_cv_objext
3410 ac_objext=$OBJEXT
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418
3419 int
3420 main ()
3421 {
3422 #ifndef __GNUC__
3423 choke me
3424 #endif
3425
3426 ;
3427 return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431 ac_compiler_gnu=yes
3432 else
3433 ac_compiler_gnu=no
3434 fi
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441 if test $ac_compiler_gnu = yes; then
3442 GCC=yes
3443 else
3444 GCC=
3445 fi
3446 ac_test_CFLAGS=${CFLAGS+set}
3447 ac_save_CFLAGS=$CFLAGS
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3450 if test "${ac_cv_prog_cc_g+set}" = set; then :
3451 $as_echo_n "(cached) " >&6
3452 else
3453 ac_save_c_werror_flag=$ac_c_werror_flag
3454 ac_c_werror_flag=yes
3455 ac_cv_prog_cc_g=no
3456 CFLAGS="-g"
3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h. */
3459
3460 int
3461 main ()
3462 {
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_g=yes
3470 else
3471 CFLAGS=""
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474
3475 int
3476 main ()
3477 {
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484
3485 else
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 ac_c_werror_flag=$ac_save_c_werror_flag
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510 $as_echo "$ac_cv_prog_cc_g" >&6; }
3511 if test "$ac_test_CFLAGS" = set; then
3512 CFLAGS=$ac_save_CFLAGS
3513 elif test $ac_cv_prog_cc_g = yes; then
3514 if test "$GCC" = yes; then
3515 CFLAGS="-g -O2"
3516 else
3517 CFLAGS="-g"
3518 fi
3519 else
3520 if test "$GCC" = yes; then
3521 CFLAGS="-O2"
3522 else
3523 CFLAGS=
3524 fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 ac_cv_prog_cc_c89=no
3532 ac_save_CC=$CC
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535 #include <stdarg.h>
3536 #include <stdio.h>
3537 #include <sys/types.h>
3538 #include <sys/stat.h>
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3543 char **p;
3544 int i;
3545 {
3546 return p[i];
3547 }
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3549 {
3550 char *s;
3551 va_list v;
3552 va_start (v,p);
3553 s = g (p, va_arg (v,int));
3554 va_end (v);
3555 return s;
3556 }
3557
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3559 function prototypes and stuff, but not '\xHH' hex character constants.
3560 These don't provoke an error unfortunately, instead are silently treated
3561 as 'x'. The following induces an error, until -std is added to get
3562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3563 array size at least. It's necessary to write '\x00'==0 to get something
3564 that's true only with -std. */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
3567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568 inside strings and character constants. */
3569 #define FOO(x) 'x'
3570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571
3572 int test (int i, double x);
3573 struct s1 {int (*f) (int a);};
3574 struct s2 {int (*f) (double a);};
3575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 int argc;
3577 char **argv;
3578 int
3579 main ()
3580 {
3581 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3582 ;
3583 return 0;
3584 }
3585 _ACEOF
3586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3587 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588 do
3589 CC="$ac_save_CC $ac_arg"
3590 if ac_fn_c_try_compile "$LINENO"; then :
3591 ac_cv_prog_cc_c89=$ac_arg
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext
3594 test "x$ac_cv_prog_cc_c89" != "xno" && break
3595 done
3596 rm -f conftest.$ac_ext
3597 CC=$ac_save_CC
3598
3599 fi
3600 # AC_CACHE_VAL
3601 case "x$ac_cv_prog_cc_c89" in
3602 x)
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604 $as_echo "none needed" >&6; } ;;
3605 xno)
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607 $as_echo "unsupported" >&6; } ;;
3608 *)
3609 CC="$CC $ac_cv_prog_cc_c89"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3611 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3612 esac
3613 if test "x$ac_cv_prog_cc_c89" != xno; then :
3614
3615 fi
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623 ac_aux_dir=
3624 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3625 for ac_t in install-sh install.sh shtool; do
3626 if test -f "$ac_dir/$ac_t"; then
3627 ac_aux_dir=$ac_dir
3628 ac_install_sh="$ac_aux_dir/$ac_t -c"
3629 break 2
3630 fi
3631 done
3632 done
3633 if test -z "$ac_aux_dir"; then
3634 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3635 fi
3636
3637 # These three variables are undocumented and unsupported,
3638 # and are intended to be withdrawn in a future Autoconf release.
3639 # They can cause serious problems if a builder's source tree is in a directory
3640 # whose full name contains unusual characters.
3641 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3642 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3643 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3644
3645
3646 # Make sure we can run config.sub.
3647 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3648 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3649
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3651 $as_echo_n "checking build system type... " >&6; }
3652 if test "${ac_cv_build+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
3654 else
3655 ac_build_alias=$build_alias
3656 test "x$ac_build_alias" = x &&
3657 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3658 test "x$ac_build_alias" = x &&
3659 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3660 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3661 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3662
3663 fi
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3665 $as_echo "$ac_cv_build" >&6; }
3666 case $ac_cv_build in
3667 *-*-*) ;;
3668 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3669 esac
3670 build=$ac_cv_build
3671 ac_save_IFS=$IFS; IFS='-'
3672 set x $ac_cv_build
3673 shift
3674 build_cpu=$1
3675 build_vendor=$2
3676 shift; shift
3677 # Remember, the first character of IFS is used to create $*,
3678 # except with old shells:
3679 build_os=$*
3680 IFS=$ac_save_IFS
3681 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3682
3683
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3685 $as_echo_n "checking host system type... " >&6; }
3686 if test "${ac_cv_host+set}" = set; then :
3687 $as_echo_n "(cached) " >&6
3688 else
3689 if test "x$host_alias" = x; then
3690 ac_cv_host=$ac_cv_build
3691 else
3692 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3693 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3694 fi
3695
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3698 $as_echo "$ac_cv_host" >&6; }
3699 case $ac_cv_host in
3700 *-*-*) ;;
3701 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3702 esac
3703 host=$ac_cv_host
3704 ac_save_IFS=$IFS; IFS='-'
3705 set x $ac_cv_host
3706 shift
3707 host_cpu=$1
3708 host_vendor=$2
3709 shift; shift
3710 # Remember, the first character of IFS is used to create $*,
3711 # except with old shells:
3712 host_os=$*
3713 IFS=$ac_save_IFS
3714 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3715
3716
3717
3718 ac_ext=c
3719 ac_cpp='$CPP $CPPFLAGS'
3720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3724 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3725 # On Suns, sometimes $CPP names a directory.
3726 if test -n "$CPP" && test -d "$CPP"; then
3727 CPP=
3728 fi
3729 if test -z "$CPP"; then
3730 if test "${ac_cv_prog_CPP+set}" = set; then :
3731 $as_echo_n "(cached) " >&6
3732 else
3733 # Double quotes because CPP needs to be expanded
3734 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3735 do
3736 ac_preproc_ok=false
3737 for ac_c_preproc_warn_flag in '' yes
3738 do
3739 # Use a header file that comes with gcc, so configuring glibc
3740 # with a fresh cross-compiler works.
3741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3742 # <limits.h> exists even on freestanding compilers.
3743 # On the NeXT, cc -E runs the code through the compiler's parser,
3744 # not just through cpp. "Syntax error" is here to catch this case.
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747 #ifdef __STDC__
3748 # include <limits.h>
3749 #else
3750 # include <assert.h>
3751 #endif
3752 Syntax error
3753 _ACEOF
3754 if ac_fn_c_try_cpp "$LINENO"; then :
3755
3756 else
3757 # Broken: fails on valid input.
3758 continue
3759 fi
3760 rm -f conftest.err conftest.$ac_ext
3761
3762 # OK, works on sane cases. Now check whether nonexistent headers
3763 # can be detected and how.
3764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765 /* end confdefs.h. */
3766 #include <ac_nonexistent.h>
3767 _ACEOF
3768 if ac_fn_c_try_cpp "$LINENO"; then :
3769 # Broken: success on invalid input.
3770 continue
3771 else
3772 # Passes both tests.
3773 ac_preproc_ok=:
3774 break
3775 fi
3776 rm -f conftest.err conftest.$ac_ext
3777
3778 done
3779 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3780 rm -f conftest.err conftest.$ac_ext
3781 if $ac_preproc_ok; then :
3782 break
3783 fi
3784
3785 done
3786 ac_cv_prog_CPP=$CPP
3787
3788 fi
3789 CPP=$ac_cv_prog_CPP
3790 else
3791 ac_cv_prog_CPP=$CPP
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3794 $as_echo "$CPP" >&6; }
3795 ac_preproc_ok=false
3796 for ac_c_preproc_warn_flag in '' yes
3797 do
3798 # Use a header file that comes with gcc, so configuring glibc
3799 # with a fresh cross-compiler works.
3800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3801 # <limits.h> exists even on freestanding compilers.
3802 # On the NeXT, cc -E runs the code through the compiler's parser,
3803 # not just through cpp. "Syntax error" is here to catch this case.
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806 #ifdef __STDC__
3807 # include <limits.h>
3808 #else
3809 # include <assert.h>
3810 #endif
3811 Syntax error
3812 _ACEOF
3813 if ac_fn_c_try_cpp "$LINENO"; then :
3814
3815 else
3816 # Broken: fails on valid input.
3817 continue
3818 fi
3819 rm -f conftest.err conftest.$ac_ext
3820
3821 # OK, works on sane cases. Now check whether nonexistent headers
3822 # can be detected and how.
3823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3824 /* end confdefs.h. */
3825 #include <ac_nonexistent.h>
3826 _ACEOF
3827 if ac_fn_c_try_cpp "$LINENO"; then :
3828 # Broken: success on invalid input.
3829 continue
3830 else
3831 # Passes both tests.
3832 ac_preproc_ok=:
3833 break
3834 fi
3835 rm -f conftest.err conftest.$ac_ext
3836
3837 done
3838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839 rm -f conftest.err conftest.$ac_ext
3840 if $ac_preproc_ok; then :
3841
3842 else
3843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3846 See \`config.log' for more details." "$LINENO" 5; }
3847 fi
3848
3849 ac_ext=c
3850 ac_cpp='$CPP $CPPFLAGS'
3851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3857 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3858 if test "${ac_cv_path_GREP+set}" = set; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test -z "$GREP"; then
3862 ac_path_GREP_found=false
3863 # Loop through the user's path and test for each of PROGNAME-LIST
3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3866 do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
3869 for ac_prog in grep ggrep; do
3870 for ac_exec_ext in '' $ac_executable_extensions; do
3871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3872 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3873 # Check for GNU ac_path_GREP and select it if it is found.
3874 # Check for GNU $ac_path_GREP
3875 case `"$ac_path_GREP" --version 2>&1` in
3876 *GNU*)
3877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3878 *)
3879 ac_count=0
3880 $as_echo_n 0123456789 >"conftest.in"
3881 while :
3882 do
3883 cat "conftest.in" "conftest.in" >"conftest.tmp"
3884 mv "conftest.tmp" "conftest.in"
3885 cp "conftest.in" "conftest.nl"
3886 $as_echo 'GREP' >> "conftest.nl"
3887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3889 as_fn_arith $ac_count + 1 && ac_count=$as_val
3890 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3891 # Best one so far, save it but keep looking for a better one
3892 ac_cv_path_GREP="$ac_path_GREP"
3893 ac_path_GREP_max=$ac_count
3894 fi
3895 # 10*(2^10) chars as input seems more than enough
3896 test $ac_count -gt 10 && break
3897 done
3898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3899 esac
3900
3901 $ac_path_GREP_found && break 3
3902 done
3903 done
3904 done
3905 IFS=$as_save_IFS
3906 if test -z "$ac_cv_path_GREP"; then
3907 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3908 fi
3909 else
3910 ac_cv_path_GREP=$GREP
3911 fi
3912
3913 fi
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3915 $as_echo "$ac_cv_path_GREP" >&6; }
3916 GREP="$ac_cv_path_GREP"
3917
3918
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3920 $as_echo_n "checking for egrep... " >&6; }
3921 if test "${ac_cv_path_EGREP+set}" = set; then :
3922 $as_echo_n "(cached) " >&6
3923 else
3924 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3925 then ac_cv_path_EGREP="$GREP -E"
3926 else
3927 if test -z "$EGREP"; then
3928 ac_path_EGREP_found=false
3929 # Loop through the user's path and test for each of PROGNAME-LIST
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_prog in egrep; do
3936 for ac_exec_ext in '' $ac_executable_extensions; do
3937 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3938 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3939 # Check for GNU ac_path_EGREP and select it if it is found.
3940 # Check for GNU $ac_path_EGREP
3941 case `"$ac_path_EGREP" --version 2>&1` in
3942 *GNU*)
3943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3944 *)
3945 ac_count=0
3946 $as_echo_n 0123456789 >"conftest.in"
3947 while :
3948 do
3949 cat "conftest.in" "conftest.in" >"conftest.tmp"
3950 mv "conftest.tmp" "conftest.in"
3951 cp "conftest.in" "conftest.nl"
3952 $as_echo 'EGREP' >> "conftest.nl"
3953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3955 as_fn_arith $ac_count + 1 && ac_count=$as_val
3956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3957 # Best one so far, save it but keep looking for a better one
3958 ac_cv_path_EGREP="$ac_path_EGREP"
3959 ac_path_EGREP_max=$ac_count
3960 fi
3961 # 10*(2^10) chars as input seems more than enough
3962 test $ac_count -gt 10 && break
3963 done
3964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3965 esac
3966
3967 $ac_path_EGREP_found && break 3
3968 done
3969 done
3970 done
3971 IFS=$as_save_IFS
3972 if test -z "$ac_cv_path_EGREP"; then
3973 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3974 fi
3975 else
3976 ac_cv_path_EGREP=$EGREP
3977 fi
3978
3979 fi
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3982 $as_echo "$ac_cv_path_EGREP" >&6; }
3983 EGREP="$ac_cv_path_EGREP"
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3987 $as_echo_n "checking for ANSI C header files... " >&6; }
3988 if test "${ac_cv_header_stdc+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3990 else
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #include <stdlib.h>
3994 #include <stdarg.h>
3995 #include <string.h>
3996 #include <float.h>
3997
3998 int
3999 main ()
4000 {
4001
4002 ;
4003 return 0;
4004 }
4005 _ACEOF
4006 if ac_fn_c_try_compile "$LINENO"; then :
4007 ac_cv_header_stdc=yes
4008 else
4009 ac_cv_header_stdc=no
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012
4013 if test $ac_cv_header_stdc = yes; then
4014 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017 #include <string.h>
4018
4019 _ACEOF
4020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4021 $EGREP "memchr" >/dev/null 2>&1; then :
4022
4023 else
4024 ac_cv_header_stdc=no
4025 fi
4026 rm -f conftest*
4027
4028 fi
4029
4030 if test $ac_cv_header_stdc = yes; then
4031 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4034 #include <stdlib.h>
4035
4036 _ACEOF
4037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4038 $EGREP "free" >/dev/null 2>&1; then :
4039
4040 else
4041 ac_cv_header_stdc=no
4042 fi
4043 rm -f conftest*
4044
4045 fi
4046
4047 if test $ac_cv_header_stdc = yes; then
4048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4049 if test "$cross_compiling" = yes; then :
4050 :
4051 else
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4054 #include <ctype.h>
4055 #include <stdlib.h>
4056 #if ((' ' & 0x0FF) == 0x020)
4057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4059 #else
4060 # define ISLOWER(c) \
4061 (('a' <= (c) && (c) <= 'i') \
4062 || ('j' <= (c) && (c) <= 'r') \
4063 || ('s' <= (c) && (c) <= 'z'))
4064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4065 #endif
4066
4067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4068 int
4069 main ()
4070 {
4071 int i;
4072 for (i = 0; i < 256; i++)
4073 if (XOR (islower (i), ISLOWER (i))
4074 || toupper (i) != TOUPPER (i))
4075 return 2;
4076 return 0;
4077 }
4078 _ACEOF
4079 if ac_fn_c_try_run "$LINENO"; then :
4080
4081 else
4082 ac_cv_header_stdc=no
4083 fi
4084 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4085 conftest.$ac_objext conftest.beam conftest.$ac_ext
4086 fi
4087
4088 fi
4089 fi
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4091 $as_echo "$ac_cv_header_stdc" >&6; }
4092 if test $ac_cv_header_stdc = yes; then
4093
4094 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4095
4096 fi
4097
4098 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4099 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4100 inttypes.h stdint.h unistd.h
4101 do :
4102 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4103 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4104 "
4105 eval as_val=\$$as_ac_Header
4106 if test "x$as_val" = x""yes; then :
4107 cat >>confdefs.h <<_ACEOF
4108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4109 _ACEOF
4110
4111 fi
4112
4113 done
4114
4115
4116
4117
4118
4119 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4120 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4121 MINIX=yes
4122 else
4123 MINIX=
4124 fi
4125
4126
4127 if test "$MINIX" = yes; then
4128
4129 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4130
4131
4132 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4133
4134
4135 $as_echo "#define _MINIX 1" >>confdefs.h
4136
4137 fi
4138
4139 case "$host_os" in
4140 hpux*)
4141
4142 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4143
4144 ;;
4145 esac
4146
4147
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4149 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4150 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4151 $as_echo_n "(cached) " >&6
4152 else
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4155
4156 # define __EXTENSIONS__ 1
4157 $ac_includes_default
4158 int
4159 main ()
4160 {
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_cv_safe_to_define___extensions__=yes
4168 else
4169 ac_cv_safe_to_define___extensions__=no
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4174 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4175 test $ac_cv_safe_to_define___extensions__ = yes &&
4176 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4177
4178 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4179
4180 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4181
4182 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4183
4184 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4185
4186
4187 if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4189 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4193 $as_echo_n "(cached) " >&6
4194 else
4195 if test -n "$RANLIB"; then
4196 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4197 else
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199 for as_dir in $PATH
4200 do
4201 IFS=$as_save_IFS
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 fi
4214 fi
4215 RANLIB=$ac_cv_prog_RANLIB
4216 if test -n "$RANLIB"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4218 $as_echo "$RANLIB" >&6; }
4219 else
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4222 fi
4223
4224
4225 fi
4226 if test -z "$ac_cv_prog_RANLIB"; then
4227 ac_ct_RANLIB=$RANLIB
4228 # Extract the first word of "ranlib", so it can be a program name with args.
4229 set dummy ranlib; ac_word=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 if test -n "$ac_ct_RANLIB"; then
4236 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_ac_ct_RANLIB="ranlib"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4248 fi
4249 done
4250 done
4251 IFS=$as_save_IFS
4252
4253 fi
4254 fi
4255 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4256 if test -n "$ac_ct_RANLIB"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4258 $as_echo "$ac_ct_RANLIB" >&6; }
4259 else
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4262 fi
4263
4264 if test "x$ac_ct_RANLIB" = x; then
4265 RANLIB=":"
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268 yes:)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271 ac_tool_warned=yes ;;
4272 esac
4273 RANLIB=$ac_ct_RANLIB
4274 fi
4275 else
4276 RANLIB="$ac_cv_prog_RANLIB"
4277 fi
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287 # Code from module arg-nonnull:
4288 # Code from module c++defs:
4289 # Code from module extensions:
4290
4291 # Code from module include_next:
4292 # Code from module memchr:
4293 # Code from module memmem:
4294 # Code from module memmem-simple:
4295 # Code from module multiarch:
4296 # Code from module stddef:
4297 # Code from module stdint:
4298 # Code from module string:
4299 # Code from module warn-on-use:
4300 # Code from module wchar:
4301
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4303 $as_echo_n "checking target system type... " >&6; }
4304 if test "${ac_cv_target+set}" = set; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if test "x$target_alias" = x; then
4308 ac_cv_target=$ac_cv_host
4309 else
4310 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4311 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4312 fi
4313
4314 fi
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4316 $as_echo "$ac_cv_target" >&6; }
4317 case $ac_cv_target in
4318 *-*-*) ;;
4319 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4320 esac
4321 target=$ac_cv_target
4322 ac_save_IFS=$IFS; IFS='-'
4323 set x $ac_cv_target
4324 shift
4325 target_cpu=$1
4326 target_vendor=$2
4327 shift; shift
4328 # Remember, the first character of IFS is used to create $*,
4329 # except with old shells:
4330 target_os=$*
4331 IFS=$ac_save_IFS
4332 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4333
4334
4335 # The aliases save the names the user supplied, while $host etc.
4336 # will get canonicalized.
4337 test -n "$target_alias" &&
4338 test "$program_prefix$program_suffix$program_transform_name" = \
4339 NONENONEs,x,x, &&
4340 program_prefix=${target_alias}-
4341
4342 # The tests for host and target for $enable_largefile require
4343 # canonical names.
4344
4345
4346
4347 # As the $enable_largefile decision depends on --enable-plugins we must set it
4348 # even in directories otherwise not depending on the $plugins option.
4349
4350
4351 # Check whether --enable-plugins was given.
4352 if test "${enable_plugins+set}" = set; then :
4353 enableval=$enable_plugins; case "${enableval}" in
4354 yes | "") plugins=yes ;;
4355 no) plugins=no ;;
4356 *) plugins=yes ;;
4357 esac
4358 else
4359 plugins=no
4360 fi
4361
4362
4363
4364 case "${host}" in
4365 sparc-*-solaris*|i[3-7]86-*-solaris*)
4366 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4367 # are mutually exclusive; and without procfs support, the bfd/ elf module
4368 # cannot provide certain routines such as elfcore_write_prpsinfo
4369 # or elfcore_write_prstatus. So unless the user explicitly requested
4370 # large-file support through the --enable-largefile switch, disable
4371 # large-file support in favor of procfs support.
4372 test "${target}" = "${host}" -a "x$plugins" = xno \
4373 && : ${enable_largefile="no"}
4374 ;;
4375 esac
4376
4377 # Check whether --enable-largefile was given.
4378 if test "${enable_largefile+set}" = set; then :
4379 enableval=$enable_largefile;
4380 fi
4381
4382 if test "$enable_largefile" != no; then
4383
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4385 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4386 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4387 $as_echo_n "(cached) " >&6
4388 else
4389 ac_cv_sys_largefile_CC=no
4390 if test "$GCC" != yes; then
4391 ac_save_CC=$CC
4392 while :; do
4393 # IRIX 6.2 and later do not support large files by default,
4394 # so use the C compiler's -n32 option if that helps.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <sys/types.h>
4398 /* Check that off_t can represent 2**63 - 1 correctly.
4399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4400 since some C++ compilers masquerading as C compilers
4401 incorrectly reject 9223372036854775807. */
4402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4404 && LARGE_OFF_T % 2147483647 == 1)
4405 ? 1 : -1];
4406 int
4407 main ()
4408 {
4409
4410 ;
4411 return 0;
4412 }
4413 _ACEOF
4414 if ac_fn_c_try_compile "$LINENO"; then :
4415 break
4416 fi
4417 rm -f core conftest.err conftest.$ac_objext
4418 CC="$CC -n32"
4419 if ac_fn_c_try_compile "$LINENO"; then :
4420 ac_cv_sys_largefile_CC=' -n32'; break
4421 fi
4422 rm -f core conftest.err conftest.$ac_objext
4423 break
4424 done
4425 CC=$ac_save_CC
4426 rm -f conftest.$ac_ext
4427 fi
4428 fi
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4430 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4431 if test "$ac_cv_sys_largefile_CC" != no; then
4432 CC=$CC$ac_cv_sys_largefile_CC
4433 fi
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4436 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4437 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 while :; do
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #include <sys/types.h>
4444 /* Check that off_t can represent 2**63 - 1 correctly.
4445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4446 since some C++ compilers masquerading as C compilers
4447 incorrectly reject 9223372036854775807. */
4448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4450 && LARGE_OFF_T % 2147483647 == 1)
4451 ? 1 : -1];
4452 int
4453 main ()
4454 {
4455
4456 ;
4457 return 0;
4458 }
4459 _ACEOF
4460 if ac_fn_c_try_compile "$LINENO"; then :
4461 ac_cv_sys_file_offset_bits=no; break
4462 fi
4463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4466 #define _FILE_OFFSET_BITS 64
4467 #include <sys/types.h>
4468 /* Check that off_t can represent 2**63 - 1 correctly.
4469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4470 since some C++ compilers masquerading as C compilers
4471 incorrectly reject 9223372036854775807. */
4472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4474 && LARGE_OFF_T % 2147483647 == 1)
4475 ? 1 : -1];
4476 int
4477 main ()
4478 {
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 if ac_fn_c_try_compile "$LINENO"; then :
4485 ac_cv_sys_file_offset_bits=64; break
4486 fi
4487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 ac_cv_sys_file_offset_bits=unknown
4489 break
4490 done
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4493 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4494 case $ac_cv_sys_file_offset_bits in #(
4495 no | unknown) ;;
4496 *)
4497 cat >>confdefs.h <<_ACEOF
4498 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4499 _ACEOF
4500 ;;
4501 esac
4502 rm -rf conftest*
4503 if test $ac_cv_sys_file_offset_bits = unknown; then
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4505 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4506 if test "${ac_cv_sys_large_files+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 while :; do
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4512 #include <sys/types.h>
4513 /* Check that off_t can represent 2**63 - 1 correctly.
4514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4515 since some C++ compilers masquerading as C compilers
4516 incorrectly reject 9223372036854775807. */
4517 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4519 && LARGE_OFF_T % 2147483647 == 1)
4520 ? 1 : -1];
4521 int
4522 main ()
4523 {
4524
4525 ;
4526 return 0;
4527 }
4528 _ACEOF
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530 ac_cv_sys_large_files=no; break
4531 fi
4532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535 #define _LARGE_FILES 1
4536 #include <sys/types.h>
4537 /* Check that off_t can represent 2**63 - 1 correctly.
4538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4539 since some C++ compilers masquerading as C compilers
4540 incorrectly reject 9223372036854775807. */
4541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4543 && LARGE_OFF_T % 2147483647 == 1)
4544 ? 1 : -1];
4545 int
4546 main ()
4547 {
4548
4549 ;
4550 return 0;
4551 }
4552 _ACEOF
4553 if ac_fn_c_try_compile "$LINENO"; then :
4554 ac_cv_sys_large_files=1; break
4555 fi
4556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4557 ac_cv_sys_large_files=unknown
4558 break
4559 done
4560 fi
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4562 $as_echo "$ac_cv_sys_large_files" >&6; }
4563 case $ac_cv_sys_large_files in #(
4564 no | unknown) ;;
4565 *)
4566 cat >>confdefs.h <<_ACEOF
4567 #define _LARGE_FILES $ac_cv_sys_large_files
4568 _ACEOF
4569 ;;
4570 esac
4571 rm -rf conftest*
4572 fi
4573 fi
4574
4575
4576
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4580 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4581 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 am_cv_prog_cc_stdc=no
4585 ac_save_CC="$CC"
4586 # Don't try gcc -ansi; that turns off useful extensions and
4587 # breaks some systems' header files.
4588 # AIX -qlanglvl=ansi
4589 # Ultrix and OSF/1 -std1
4590 # HP-UX 10.20 and later -Ae
4591 # HP-UX older versions -Aa -D_HPUX_SOURCE
4592 # SVR4 -Xc -D__EXTENSIONS__
4593 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4594 do
4595 CC="$ac_save_CC $ac_arg"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4598 #include <stdarg.h>
4599 #include <stdio.h>
4600 #include <sys/types.h>
4601 #include <sys/stat.h>
4602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4603 struct buf { int x; };
4604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4605 static char *e (p, i)
4606 char **p;
4607 int i;
4608 {
4609 return p[i];
4610 }
4611 static char *f (char * (*g) (char **, int), char **p, ...)
4612 {
4613 char *s;
4614 va_list v;
4615 va_start (v,p);
4616 s = g (p, va_arg (v,int));
4617 va_end (v);
4618 return s;
4619 }
4620 int test (int i, double x);
4621 struct s1 {int (*f) (int a);};
4622 struct s2 {int (*f) (double a);};
4623 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4624 int argc;
4625 char **argv;
4626
4627 int
4628 main ()
4629 {
4630
4631 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4632
4633 ;
4634 return 0;
4635 }
4636 _ACEOF
4637 if ac_fn_c_try_compile "$LINENO"; then :
4638 am_cv_prog_cc_stdc="$ac_arg"; break
4639 fi
4640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4641 done
4642 CC="$ac_save_CC"
4643
4644 fi
4645
4646 if test -z "$am_cv_prog_cc_stdc"; then
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4648 $as_echo "none needed" >&6; }
4649 else
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4651 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4652 fi
4653 case "x$am_cv_prog_cc_stdc" in
4654 x|xno) ;;
4655 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4656 esac
4657
4658
4659 ac_aux_dir=
4660 for ac_dir in .. "$srcdir"/..; do
4661 for ac_t in install-sh install.sh shtool; do
4662 if test -f "$ac_dir/$ac_t"; then
4663 ac_aux_dir=$ac_dir
4664 ac_install_sh="$ac_aux_dir/$ac_t -c"
4665 break 2
4666 fi
4667 done
4668 done
4669 if test -z "$ac_aux_dir"; then
4670 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4671 fi
4672
4673 # These three variables are undocumented and unsupported,
4674 # and are intended to be withdrawn in a future Autoconf release.
4675 # They can cause serious problems if a builder's source tree is in a directory
4676 # whose full name contains unusual characters.
4677 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4678 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4679 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4680
4681
4682
4683
4684 # Dependency checking.
4685 rm -rf .tst 2>/dev/null
4686 mkdir .tst 2>/dev/null
4687 if test -d .tst; then
4688 am__leading_dot=.
4689 else
4690 am__leading_dot=_
4691 fi
4692 rmdir .tst 2>/dev/null
4693
4694 DEPDIR="${am__leading_dot}deps"
4695
4696 ac_config_commands="$ac_config_commands depdir"
4697
4698
4699 depcc="$CC" am_compiler_list=
4700
4701 am_depcomp=$ac_aux_dir/depcomp
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4703 $as_echo_n "checking dependency style of $depcc... " >&6; }
4704 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -f "$am_depcomp"; then
4708 # We make a subdir and do the tests there. Otherwise we can end up
4709 # making bogus files that we don't know about and never remove. For
4710 # instance it was reported that on HP-UX the gcc test will end up
4711 # making a dummy file named `D' -- because `-MD' means `put the output
4712 # in D'.
4713 mkdir conftest.dir
4714 # Copy depcomp to subdir because otherwise we won't find it if we're
4715 # using a relative directory.
4716 cp "$am_depcomp" conftest.dir
4717 cd conftest.dir
4718 # We will build objects and dependencies in a subdirectory because
4719 # it helps to detect inapplicable dependency modes. For instance
4720 # both Tru64's cc and ICC support -MD to output dependencies as a
4721 # side effect of compilation, but ICC will put the dependencies in
4722 # the current directory while Tru64 will put them in the object
4723 # directory.
4724 mkdir sub
4725
4726 am_cv_CC_dependencies_compiler_type=none
4727 if test "$am_compiler_list" = ""; then
4728 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4729 fi
4730 for depmode in $am_compiler_list; do
4731 if test $depmode = none; then break; fi
4732
4733 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4734 # Setup a source with many dependencies, because some compilers
4735 # like to wrap large dependency lists on column 80 (with \), and
4736 # we should not choose a depcomp mode which is confused by this.
4737 #
4738 # We need to recreate these files for each test, as the compiler may
4739 # overwrite some of them when testing with obscure command lines.
4740 # This happens at least with the AIX C compiler.
4741 : > sub/conftest.c
4742 for i in 1 2 3 4 5 6; do
4743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4745 # Solaris 8's {/usr,}/bin/sh.
4746 touch sub/conftst$i.h
4747 done
4748 echo "include sub/conftest.Po" > confmf
4749
4750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4751 # mode. It turns out that the SunPro C++ compiler does not properly
4752 # handle `-M -o', and we need to detect this.
4753 depcmd="depmode=$depmode \
4754 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4756 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4757 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4758 if env $depcmd > conftest.err 2>&1 &&
4759 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4760 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4761 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4762 # icc doesn't choke on unknown options, it will just issue warnings
4763 # or remarks (even with -Werror). So we grep stderr for any message
4764 # that says an option was ignored or not supported.
4765 # When given -MP, icc 7.0 and 7.1 complain thusly:
4766 # icc: Command line warning: ignoring option '-M'; no argument required
4767 # The diagnosis changed in icc 8.0:
4768 # icc: Command line remark: option '-MP' not supported
4769 if (grep 'ignoring option' conftest.err ||
4770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4771 am_cv_CC_dependencies_compiler_type=$depmode
4772 $as_echo "$as_me:$LINENO: success" >&5
4773 break
4774 fi
4775 fi
4776 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4777 sed -e 's/^/| /' < conftest.err >&5
4778 done
4779
4780 cd ..
4781 rm -rf conftest.dir
4782 else
4783 am_cv_CC_dependencies_compiler_type=none
4784 fi
4785
4786 fi
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4788 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4789 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4790 then as_fn_error "no usable dependency style found" "$LINENO" 5
4791 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4792
4793 fi
4794
4795
4796 # Check for the 'make' the user wants to use.
4797 for ac_prog in make
4798 do
4799 # Extract the first word of "$ac_prog", so it can be a program name with args.
4800 set dummy $ac_prog; ac_word=$2
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802 $as_echo_n "checking for $ac_word... " >&6; }
4803 if test "${ac_cv_prog_MAKE+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 if test -n "$MAKE"; then
4807 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_prog_MAKE="$ac_prog"
4817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 break 2
4819 fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824 fi
4825 fi
4826 MAKE=$ac_cv_prog_MAKE
4827 if test -n "$MAKE"; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4829 $as_echo "$MAKE" >&6; }
4830 else
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4832 $as_echo "no" >&6; }
4833 fi
4834
4835
4836 test -n "$MAKE" && break
4837 done
4838
4839 MAKE_IS_GNU=
4840 case "`$MAKE --version 2>&1 | sed 1q`" in
4841 *GNU*)
4842 MAKE_IS_GNU=yes
4843 ;;
4844 esac
4845 if test "$MAKE_IS_GNU" = yes; then
4846 GMAKE_TRUE=
4847 GMAKE_FALSE='#'
4848 else
4849 GMAKE_TRUE='#'
4850 GMAKE_FALSE=
4851 fi
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4854 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4855 set x ${MAKE-make}
4856 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4857 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4858 $as_echo_n "(cached) " >&6
4859 else
4860 cat >conftest.make <<\_ACEOF
4861 SHELL = /bin/sh
4862 all:
4863 @echo '@@@%%%=$(MAKE)=@@@%%%'
4864 _ACEOF
4865 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4866 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4867 *@@@%%%=?*=@@@%%%*)
4868 eval ac_cv_prog_make_${ac_make}_set=yes;;
4869 *)
4870 eval ac_cv_prog_make_${ac_make}_set=no;;
4871 esac
4872 rm -f conftest.make
4873 fi
4874 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4876 $as_echo "yes" >&6; }
4877 SET_MAKE=
4878 else
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880 $as_echo "no" >&6; }
4881 SET_MAKE="MAKE=${MAKE-make}"
4882 fi
4883
4884
4885
4886 CONFIG_OBS=
4887 CONFIG_DEPS=
4888 CONFIG_SRCS=
4889 ENABLE_CFLAGS=
4890
4891 CONFIG_ALL=
4892 CONFIG_CLEAN=
4893 CONFIG_INSTALL=
4894 CONFIG_UNINSTALL=
4895
4896 # If we haven't got the data from the intl directory,
4897 # assume NLS is disabled.
4898 USE_NLS=no
4899 LIBINTL=
4900 LIBINTL_DEP=
4901 INCINTL=
4902 XGETTEXT=
4903 GMSGFMT=
4904 POSUB=
4905
4906 if test -f ../intl/config.intl; then
4907 . ../intl/config.intl
4908 fi
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4910 $as_echo_n "checking whether NLS is requested... " >&6; }
4911 if test x"$USE_NLS" != xyes; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913 $as_echo "no" >&6; }
4914 else
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4916 $as_echo "yes" >&6; }
4917
4918 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4919
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4922 $as_echo_n "checking for catalogs to be installed... " >&6; }
4923 # Look for .po and .gmo files in the source directory.
4924 CATALOGS=
4925 XLINGUAS=
4926 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4927 # If there aren't any .gmo files the shell will give us the
4928 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4929 # weeded out.
4930 case "$cat" in *\**)
4931 continue;;
4932 esac
4933 # The quadruple backslash is collapsed to a double backslash
4934 # by the backticks, then collapsed again by the double quotes,
4935 # leaving us with one backslash in the sed expression (right
4936 # before the dot that mustn't act as a wildcard).
4937 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4938 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4939 # The user is allowed to set LINGUAS to a list of languages to
4940 # install catalogs for. If it's empty that means "all of them."
4941 if test "x$LINGUAS" = x; then
4942 CATALOGS="$CATALOGS $cat"
4943 XLINGUAS="$XLINGUAS $lang"
4944 else
4945 case "$LINGUAS" in *$lang*)
4946 CATALOGS="$CATALOGS $cat"
4947 XLINGUAS="$XLINGUAS $lang"
4948 ;;
4949 esac
4950 fi
4951 done
4952 LINGUAS="$XLINGUAS"
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4954 $as_echo "$LINGUAS" >&6; }
4955
4956
4957 DATADIRNAME=share
4958
4959 INSTOBJEXT=.mo
4960
4961 GENCAT=gencat
4962
4963 CATOBJEXT=.gmo
4964
4965 fi
4966
4967 localedir='${datadir}/locale'
4968
4969
4970 if test x"$USE_NLS" = xyes; then
4971 CONFIG_ALL="$CONFIG_ALL all-po"
4972 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4973 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4974 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4975 fi
4976
4977
4978
4979
4980
4981 LIBC_FATAL_STDERR_=1
4982 export LIBC_FATAL_STDERR_
4983
4984
4985
4986
4987
4988 for ac_header in $gl_header_list
4989 do :
4990 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4991 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4992 eval as_val=\$$as_ac_Header
4993 if test "x$as_val" = x""yes; then :
4994 cat >>confdefs.h <<_ACEOF
4995 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4996 _ACEOF
4997
4998 fi
4999
5000 done
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010 for ac_func in $gl_func_list
5011 do :
5012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5014 eval as_val=\$$as_ac_var
5015 if test "x$as_val" = x""yes; then :
5016 cat >>confdefs.h <<_ACEOF
5017 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5018 _ACEOF
5019
5020 fi
5021 done
5022
5023
5024
5025
5026
5027
5028 GNULIB_MEMCHR=0;
5029 GNULIB_MEMMEM=0;
5030 GNULIB_MEMPCPY=0;
5031 GNULIB_MEMRCHR=0;
5032 GNULIB_RAWMEMCHR=0;
5033 GNULIB_STPCPY=0;
5034 GNULIB_STPNCPY=0;
5035 GNULIB_STRCHRNUL=0;
5036 GNULIB_STRDUP=0;
5037 GNULIB_STRNCAT=0;
5038 GNULIB_STRNDUP=0;
5039 GNULIB_STRNLEN=0;
5040 GNULIB_STRPBRK=0;
5041 GNULIB_STRSEP=0;
5042 GNULIB_STRSTR=0;
5043 GNULIB_STRCASESTR=0;
5044 GNULIB_STRTOK_R=0;
5045 GNULIB_MBSLEN=0;
5046 GNULIB_MBSNLEN=0;
5047 GNULIB_MBSCHR=0;
5048 GNULIB_MBSRCHR=0;
5049 GNULIB_MBSSTR=0;
5050 GNULIB_MBSCASECMP=0;
5051 GNULIB_MBSNCASECMP=0;
5052 GNULIB_MBSPCASECMP=0;
5053 GNULIB_MBSCASESTR=0;
5054 GNULIB_MBSCSPN=0;
5055 GNULIB_MBSPBRK=0;
5056 GNULIB_MBSSPN=0;
5057 GNULIB_MBSSEP=0;
5058 GNULIB_MBSTOK_R=0;
5059 GNULIB_STRERROR=0;
5060 GNULIB_STRSIGNAL=0;
5061 GNULIB_STRVERSCMP=0;
5062 HAVE_MBSLEN=0;
5063 HAVE_MEMCHR=1;
5064 HAVE_DECL_MEMMEM=1;
5065 HAVE_MEMPCPY=1;
5066 HAVE_DECL_MEMRCHR=1;
5067 HAVE_RAWMEMCHR=1;
5068 HAVE_STPCPY=1;
5069 HAVE_STPNCPY=1;
5070 HAVE_STRCHRNUL=1;
5071 HAVE_DECL_STRDUP=1;
5072 HAVE_DECL_STRNDUP=1;
5073 HAVE_DECL_STRNLEN=1;
5074 HAVE_STRPBRK=1;
5075 HAVE_STRSEP=1;
5076 HAVE_STRCASESTR=1;
5077 HAVE_DECL_STRTOK_R=1;
5078 HAVE_DECL_STRSIGNAL=1;
5079 HAVE_STRVERSCMP=1;
5080 REPLACE_MEMCHR=0;
5081 REPLACE_MEMMEM=0;
5082 REPLACE_STPNCPY=0;
5083 REPLACE_STRDUP=0;
5084 REPLACE_STRSTR=0;
5085 REPLACE_STRCASESTR=0;
5086 REPLACE_STRERROR=0;
5087 REPLACE_STRNCAT=0;
5088 REPLACE_STRNDUP=0;
5089 REPLACE_STRNLEN=0;
5090 REPLACE_STRSIGNAL=0;
5091 REPLACE_STRTOK_R=0;
5092 UNDEFINE_STRTOK_R=0;
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5107 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5108 # irrelevant for anonymous mappings.
5109 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5110 if test "x$ac_cv_func_mmap" = x""yes; then :
5111 gl_have_mmap=yes
5112 else
5113 gl_have_mmap=no
5114 fi
5115
5116
5117 # Try to allow MAP_ANONYMOUS.
5118 gl_have_mmap_anonymous=no
5119 if test $gl_have_mmap = yes; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5121 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5124
5125 #include <sys/mman.h>
5126 #ifdef MAP_ANONYMOUS
5127 I cant identify this map.
5128 #endif
5129
5130 _ACEOF
5131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5133 gl_have_mmap_anonymous=yes
5134 fi
5135 rm -f conftest*
5136
5137 if test $gl_have_mmap_anonymous != yes; then
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140
5141 #include <sys/mman.h>
5142 #ifdef MAP_ANON
5143 I cant identify this map.
5144 #endif
5145
5146 _ACEOF
5147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5148 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5149
5150 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5151
5152 gl_have_mmap_anonymous=yes
5153 fi
5154 rm -f conftest*
5155
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5158 $as_echo "$gl_have_mmap_anonymous" >&6; }
5159 if test $gl_have_mmap_anonymous = yes; then
5160
5161 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5162
5163 fi
5164 fi
5165
5166
5167 :
5168
5169
5170
5171
5172
5173
5174 :
5175
5176
5177
5178
5179
5180
5181
5182
5183 :
5184
5185
5186
5187
5188
5189 if test $ac_cv_func_memchr = yes; then
5190 # Detect platform-specific bugs in some versions of glibc:
5191 # memchr should not dereference anything with length 0
5192 # http://bugzilla.redhat.com/499689
5193 # memchr should not dereference overestimated length after a match
5194 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5195 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5196 # Assume that memchr works on platforms that lack mprotect.
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5198 $as_echo_n "checking whether memchr works... " >&6; }
5199 if test "${gl_cv_func_memchr_works+set}" = set; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if test "$cross_compiling" = yes; then :
5203 gl_cv_func_memchr_works="guessing no"
5204 else
5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207
5208 #include <string.h>
5209 #if HAVE_SYS_MMAN_H
5210 # include <fcntl.h>
5211 # include <unistd.h>
5212 # include <sys/types.h>
5213 # include <sys/mman.h>
5214 # ifndef MAP_FILE
5215 # define MAP_FILE 0
5216 # endif
5217 #endif
5218
5219 int
5220 main ()
5221 {
5222
5223 char *fence = NULL;
5224 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5225 # if HAVE_MAP_ANONYMOUS
5226 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5227 const int fd = -1;
5228 # else /* !HAVE_MAP_ANONYMOUS */
5229 const int flags = MAP_FILE | MAP_PRIVATE;
5230 int fd = open ("/dev/zero", O_RDONLY, 0666);
5231 if (fd >= 0)
5232 # endif
5233 {
5234 int pagesize = getpagesize ();
5235 char *two_pages =
5236 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5237 flags, fd, 0);
5238 if (two_pages != (char *)(-1)
5239 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5240 fence = two_pages + pagesize;
5241 }
5242 #endif
5243 if (fence)
5244 {
5245 if (memchr (fence, 0, 0))
5246 return 1;
5247 strcpy (fence - 9, "12345678");
5248 if (memchr (fence - 9, 0, 79) != fence - 1)
5249 return 2;
5250 }
5251 return 0;
5252
5253 ;
5254 return 0;
5255 }
5256 _ACEOF
5257 if ac_fn_c_try_run "$LINENO"; then :
5258 gl_cv_func_memchr_works=yes
5259 else
5260 gl_cv_func_memchr_works=no
5261 fi
5262 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5263 conftest.$ac_objext conftest.beam conftest.$ac_ext
5264 fi
5265
5266 fi
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5268 $as_echo "$gl_cv_func_memchr_works" >&6; }
5269 if test "$gl_cv_func_memchr_works" != yes; then
5270 REPLACE_MEMCHR=1
5271 fi
5272 else
5273 HAVE_MEMCHR=0
5274 fi
5275 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5276
5277
5278
5279
5280
5281
5282
5283
5284 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5285
5286
5287 for ac_header in bp-sym.h
5288 do :
5289 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5290 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5291 cat >>confdefs.h <<_ACEOF
5292 #define HAVE_BP_SYM_H 1
5293 _ACEOF
5294
5295 fi
5296
5297 done
5298
5299
5300 fi
5301
5302
5303 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5304 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5305 ac_have_decl=1
5306 else
5307 ac_have_decl=0
5308 fi
5309
5310 cat >>confdefs.h <<_ACEOF
5311 #define HAVE_DECL_MEMMEM $ac_have_decl
5312 _ACEOF
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327 for ac_func in memmem
5328 do :
5329 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5330 if test "x$ac_cv_func_memmem" = x""yes; then :
5331 cat >>confdefs.h <<_ACEOF
5332 #define HAVE_MEMMEM 1
5333 _ACEOF
5334
5335 else
5336
5337 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5338
5339 fi
5340 done
5341
5342
5343
5344 :
5345
5346
5347
5348
5349
5350 if test $ac_cv_have_decl_memmem = no; then
5351 HAVE_DECL_MEMMEM=0
5352 fi
5353 :
5354
5355
5356 gl_cv_c_multiarch=no
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5359 #ifndef __APPLE_CC__
5360 not a universal capable compiler
5361 #endif
5362 typedef int dummy;
5363
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366
5367 arch=
5368 prev=
5369 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5370 if test -n "$prev"; then
5371 case $word in
5372 i?86 | x86_64 | ppc | ppc64)
5373 if test -z "$arch" || test "$arch" = "$word"; then
5374 arch="$word"
5375 else
5376 gl_cv_c_multiarch=yes
5377 fi
5378 ;;
5379 esac
5380 prev=
5381 else
5382 if test "x$word" = "x-arch"; then
5383 prev=arch
5384 fi
5385 fi
5386 done
5387
5388 fi
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 if test $gl_cv_c_multiarch = yes; then
5391
5392 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5393
5394 APPLE_UNIVERSAL_BUILD=1
5395 else
5396 APPLE_UNIVERSAL_BUILD=0
5397 fi
5398
5399
5400
5401 REPLACE_NULL=0;
5402 HAVE_WCHAR_T=1;
5403 STDDEF_H='';
5404
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5407 $as_echo_n "checking for wchar_t... " >&6; }
5408 if test "${gt_cv_c_wchar_t+set}" = set; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412 /* end confdefs.h. */
5413 #include <stddef.h>
5414 wchar_t foo = (wchar_t)'\0';
5415 int
5416 main ()
5417 {
5418
5419 ;
5420 return 0;
5421 }
5422 _ACEOF
5423 if ac_fn_c_try_compile "$LINENO"; then :
5424 gt_cv_c_wchar_t=yes
5425 else
5426 gt_cv_c_wchar_t=no
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 fi
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5431 $as_echo "$gt_cv_c_wchar_t" >&6; }
5432 if test $gt_cv_c_wchar_t = yes; then
5433
5434 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5435
5436 fi
5437
5438
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5441 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5442 if test "${gl_cv_have_include_next+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 rm -rf conftestd1a conftestd1b conftestd2
5446 mkdir conftestd1a conftestd1b conftestd2
5447 cat <<EOF > conftestd1a/conftest.h
5448 #define DEFINED_IN_CONFTESTD1
5449 #include_next <conftest.h>
5450 #ifdef DEFINED_IN_CONFTESTD2
5451 int foo;
5452 #else
5453 #error "include_next doesn't work"
5454 #endif
5455 EOF
5456 cat <<EOF > conftestd1b/conftest.h
5457 #define DEFINED_IN_CONFTESTD1
5458 #include <stdio.h>
5459 #include_next <conftest.h>
5460 #ifdef DEFINED_IN_CONFTESTD2
5461 int foo;
5462 #else
5463 #error "include_next doesn't work"
5464 #endif
5465 EOF
5466 cat <<EOF > conftestd2/conftest.h
5467 #ifndef DEFINED_IN_CONFTESTD1
5468 #error "include_next test doesn't work"
5469 #endif
5470 #define DEFINED_IN_CONFTESTD2
5471 EOF
5472 gl_save_CPPFLAGS="$CPPFLAGS"
5473 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5475 /* end confdefs.h. */
5476 #include <conftest.h>
5477 _ACEOF
5478 if ac_fn_c_try_compile "$LINENO"; then :
5479 gl_cv_have_include_next=yes
5480 else
5481 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 #include <conftest.h>
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 gl_cv_have_include_next=buggy
5488 else
5489 gl_cv_have_include_next=no
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492
5493 fi
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 CPPFLAGS="$gl_save_CPPFLAGS"
5496 rm -rf conftestd1a conftestd1b conftestd2
5497
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5500 $as_echo "$gl_cv_have_include_next" >&6; }
5501 PRAGMA_SYSTEM_HEADER=
5502 if test $gl_cv_have_include_next = yes; then
5503 INCLUDE_NEXT=include_next
5504 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5505 if test -n "$GCC"; then
5506 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5507 fi
5508 else
5509 if test $gl_cv_have_include_next = buggy; then
5510 INCLUDE_NEXT=include
5511 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5512 else
5513 INCLUDE_NEXT=include
5514 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5515 fi
5516 fi
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5528 $as_echo_n "checking for long long int... " >&6; }
5529 if test "${ac_cv_type_long_long_int+set}" = set; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534
5535 /* For now, do not test the preprocessor; as of 2007 there are too many
5536 implementations with broken preprocessors. Perhaps this can
5537 be revisited in 2012. In the meantime, code should not expect
5538 #if to work with literals wider than 32 bits. */
5539 /* Test literals. */
5540 long long int ll = 9223372036854775807ll;
5541 long long int nll = -9223372036854775807LL;
5542 unsigned long long int ull = 18446744073709551615ULL;
5543 /* Test constant expressions. */
5544 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5545 ? 1 : -1)];
5546 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5547 ? 1 : -1)];
5548 int i = 63;
5549 int
5550 main ()
5551 {
5552 /* Test availability of runtime routines for shift and division. */
5553 long long int llmax = 9223372036854775807ll;
5554 unsigned long long int ullmax = 18446744073709551615ull;
5555 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5556 | (llmax / ll) | (llmax % ll)
5557 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5558 | (ullmax / ull) | (ullmax % ull));
5559 ;
5560 return 0;
5561 }
5562
5563 _ACEOF
5564 if ac_fn_c_try_link "$LINENO"; then :
5565 if test "$cross_compiling" = yes; then :
5566 ac_cv_type_long_long_int=yes
5567 else
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 #include <limits.h>
5571 #ifndef LLONG_MAX
5572 # define HALF \
5573 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5574 # define LLONG_MAX (HALF - 1 + HALF)
5575 #endif
5576 int
5577 main ()
5578 {
5579 long long int n = 1;
5580 int i;
5581 for (i = 0; ; i++)
5582 {
5583 long long int m = n << i;
5584 if (m >> i != n)
5585 return 1;
5586 if (LLONG_MAX / 2 < m)
5587 break;
5588 }
5589 return 0;
5590 ;
5591 return 0;
5592 }
5593 _ACEOF
5594 if ac_fn_c_try_run "$LINENO"; then :
5595 ac_cv_type_long_long_int=yes
5596 else
5597 ac_cv_type_long_long_int=no
5598 fi
5599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5600 conftest.$ac_objext conftest.beam conftest.$ac_ext
5601 fi
5602
5603 else
5604 ac_cv_type_long_long_int=no
5605 fi
5606 rm -f core conftest.err conftest.$ac_objext \
5607 conftest$ac_exeext conftest.$ac_ext
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5610 $as_echo "$ac_cv_type_long_long_int" >&6; }
5611 if test $ac_cv_type_long_long_int = yes; then
5612
5613 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5614
5615 fi
5616
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5619 $as_echo_n "checking for unsigned long long int... " >&6; }
5620 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625
5626 /* For now, do not test the preprocessor; as of 2007 there are too many
5627 implementations with broken preprocessors. Perhaps this can
5628 be revisited in 2012. In the meantime, code should not expect
5629 #if to work with literals wider than 32 bits. */
5630 /* Test literals. */
5631 long long int ll = 9223372036854775807ll;
5632 long long int nll = -9223372036854775807LL;
5633 unsigned long long int ull = 18446744073709551615ULL;
5634 /* Test constant expressions. */
5635 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5636 ? 1 : -1)];
5637 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5638 ? 1 : -1)];
5639 int i = 63;
5640 int
5641 main ()
5642 {
5643 /* Test availability of runtime routines for shift and division. */
5644 long long int llmax = 9223372036854775807ll;
5645 unsigned long long int ullmax = 18446744073709551615ull;
5646 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5647 | (llmax / ll) | (llmax % ll)
5648 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5649 | (ullmax / ull) | (ullmax % ull));
5650 ;
5651 return 0;
5652 }
5653
5654 _ACEOF
5655 if ac_fn_c_try_link "$LINENO"; then :
5656 ac_cv_type_unsigned_long_long_int=yes
5657 else
5658 ac_cv_type_unsigned_long_long_int=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext \
5661 conftest$ac_exeext conftest.$ac_ext
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5664 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5665 if test $ac_cv_type_unsigned_long_long_int = yes; then
5666
5667 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5668
5669 fi
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5682 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5683 if test "${ac_cv_c_restrict+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 ac_cv_c_restrict=no
5687 # The order here caters to the fact that C++ does not require restrict.
5688 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 typedef int * int_ptr;
5692 int foo (int_ptr $ac_kw ip) {
5693 return ip[0];
5694 }
5695 int
5696 main ()
5697 {
5698 int s[1];
5699 int * $ac_kw t = s;
5700 t[0] = 0;
5701 return foo(t)
5702 ;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_compile "$LINENO"; then :
5707 ac_cv_c_restrict=$ac_kw
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 test "$ac_cv_c_restrict" != no && break
5711 done
5712
5713 fi
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5715 $as_echo "$ac_cv_c_restrict" >&6; }
5716
5717 case $ac_cv_c_restrict in
5718 restrict) ;;
5719 no) $as_echo "#define restrict /**/" >>confdefs.h
5720 ;;
5721 *) cat >>confdefs.h <<_ACEOF
5722 #define restrict $ac_cv_c_restrict
5723 _ACEOF
5724 ;;
5725 esac
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739 :
5740
5741
5742
5743
5744
5745
5746
5747 if test $gl_cv_have_include_next = yes; then
5748 gl_cv_next_string_h='<'string.h'>'
5749 else
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5751 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5752 if test "${gl_cv_next_string_h+set}" = set; then :
5753 $as_echo_n "(cached) " >&6
5754 else
5755
5756 if test $ac_cv_header_string_h = yes; then
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758 /* end confdefs.h. */
5759 #include <string.h>
5760
5761 _ACEOF
5762 case "$host_os" in
5763 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5764 *) gl_absname_cpp="$ac_cpp" ;;
5765 esac
5766 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5767 sed -n '\#/string.h#{
5768 s#.*"\(.*/string.h\)".*#\1#
5769 s#^/[^/]#//&#
5770 p
5771 q
5772 }'`'"'
5773 else
5774 gl_cv_next_string_h='<'string.h'>'
5775 fi
5776
5777 fi
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5779 $as_echo "$gl_cv_next_string_h" >&6; }
5780 fi
5781 NEXT_STRING_H=$gl_cv_next_string_h
5782
5783 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5784 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5785 gl_next_as_first_directive='<'string.h'>'
5786 else
5787 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5788 gl_next_as_first_directive=$gl_cv_next_string_h
5789 fi
5790 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5791
5792
5793
5794
5795
5796 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5797 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5799 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5800 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5804 /* end confdefs.h. */
5805 #include <string.h>
5806
5807 int
5808 main ()
5809 {
5810 #undef $gl_func
5811 (void) $gl_func;
5812 ;
5813 return 0;
5814 }
5815 _ACEOF
5816 if ac_fn_c_try_compile "$LINENO"; then :
5817 eval "$as_gl_Symbol=yes"
5818 else
5819 eval "$as_gl_Symbol=no"
5820 fi
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 fi
5823 eval ac_res=\$$as_gl_Symbol
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5825 $as_echo "$ac_res" >&6; }
5826 eval as_val=\$$as_gl_Symbol
5827 if test "x$as_val" = x""yes; then :
5828 cat >>confdefs.h <<_ACEOF
5829 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5830 _ACEOF
5831
5832 eval ac_cv_have_decl_$gl_func=yes
5833 fi
5834 done
5835
5836
5837
5838 GNULIB_BTOWC=0;
5839 GNULIB_WCTOB=0;
5840 GNULIB_MBSINIT=0;
5841 GNULIB_MBRTOWC=0;
5842 GNULIB_MBRLEN=0;
5843 GNULIB_MBSRTOWCS=0;
5844 GNULIB_MBSNRTOWCS=0;
5845 GNULIB_WCRTOMB=0;
5846 GNULIB_WCSRTOMBS=0;
5847 GNULIB_WCSNRTOMBS=0;
5848 GNULIB_WCWIDTH=0;
5849 HAVE_BTOWC=1;
5850 HAVE_MBSINIT=1;
5851 HAVE_MBRTOWC=1;
5852 HAVE_MBRLEN=1;
5853 HAVE_MBSRTOWCS=1;
5854 HAVE_MBSNRTOWCS=1;
5855 HAVE_WCRTOMB=1;
5856 HAVE_WCSRTOMBS=1;
5857 HAVE_WCSNRTOMBS=1;
5858 HAVE_DECL_WCTOB=1;
5859 HAVE_DECL_WCWIDTH=1;
5860 REPLACE_MBSTATE_T=0;
5861 REPLACE_BTOWC=0;
5862 REPLACE_WCTOB=0;
5863 REPLACE_MBSINIT=0;
5864 REPLACE_MBRTOWC=0;
5865 REPLACE_MBRLEN=0;
5866 REPLACE_MBSRTOWCS=0;
5867 REPLACE_MBSNRTOWCS=0;
5868 REPLACE_WCRTOMB=0;
5869 REPLACE_WCSRTOMBS=0;
5870 REPLACE_WCSNRTOMBS=0;
5871 REPLACE_WCWIDTH=0;
5872
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5875 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5876 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 gl_cv_header_wchar_h_correct_inline=yes
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881 /* end confdefs.h. */
5882
5883 #define wcstod renamed_wcstod
5884 #include <wchar.h>
5885 extern int zero (void);
5886 int main () { return zero(); }
5887
5888 _ACEOF
5889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5890 (eval $ac_compile) 2>&5
5891 ac_status=$?
5892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5893 test $ac_status = 0; }; then
5894 mv conftest.$ac_objext conftest1.$ac_objext
5895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5896 /* end confdefs.h. */
5897
5898 #define wcstod renamed_wcstod
5899 #include <wchar.h>
5900 int zero (void) { return 0; }
5901
5902 _ACEOF
5903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5904 (eval $ac_compile) 2>&5
5905 ac_status=$?
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; }; then
5908 mv conftest.$ac_objext conftest2.$ac_objext
5909 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5910 :
5911 else
5912 gl_cv_header_wchar_h_correct_inline=no
5913 fi
5914 fi
5915 fi
5916 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5917
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5920 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5921 if test $gl_cv_header_wchar_h_correct_inline = no; then
5922 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5923 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5924 C99 mode. You have four options:
5925 - Add the flag -fgnu89-inline to CC and reconfigure, or
5926 - Fix your include files, using parts of
5927 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5928 - Use a gcc version older than 4.3, or
5929 - Don't use the flags -std=c99 or -std=gnu99.
5930 Configuration aborted." "$LINENO" 5
5931 fi
5932
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5935 $as_echo_n "checking for wint_t... " >&6; }
5936 if test "${gt_cv_c_wint_t+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941
5942 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5943 <wchar.h>.
5944 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5945 before <wchar.h>. */
5946 #include <stddef.h>
5947 #include <stdio.h>
5948 #include <time.h>
5949 #include <wchar.h>
5950 wint_t foo = (wchar_t)'\0';
5951 int
5952 main ()
5953 {
5954
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960 gt_cv_c_wint_t=yes
5961 else
5962 gt_cv_c_wint_t=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5967 $as_echo "$gt_cv_c_wint_t" >&6; }
5968 if test $gt_cv_c_wint_t = yes; then
5969
5970 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5971
5972 fi
5973
5974
5975 if false; then
5976 GL_COND_LIBTOOL_TRUE=
5977 GL_COND_LIBTOOL_FALSE='#'
5978 else
5979 GL_COND_LIBTOOL_TRUE='#'
5980 GL_COND_LIBTOOL_FALSE=
5981 fi
5982
5983 gl_cond_libtool=false
5984 gl_libdeps=
5985 gl_ltlibdeps=
5986 gl_m4_base='gnulib/m4'
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996 gl_source_base='gnulib'
5997 # Code from module arg-nonnull:
5998 # Code from module c++defs:
5999 # Code from module extensions:
6000 # Code from module include_next:
6001 # Code from module memchr:
6002
6003
6004
6005
6006 GNULIB_MEMCHR=1
6007
6008
6009
6010 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6011
6012
6013
6014 # Code from module memmem:
6015
6016
6017 if test $ac_cv_have_decl_memmem = yes; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6019 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6020 if test "${gl_cv_func_memmem_works+set}" = set; then :
6021 $as_echo_n "(cached) " >&6
6022 else
6023 if test "$cross_compiling" = yes; then :
6024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6025 /* end confdefs.h. */
6026
6027 #include <features.h>
6028 #ifdef __GNU_LIBRARY__
6029 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6030 Lucky user
6031 #endif
6032 #endif
6033 #ifdef __CYGWIN__
6034 #include <cygwin/version.h>
6035 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6036 Lucky user
6037 #endif
6038 #endif
6039
6040 _ACEOF
6041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6042 $EGREP "Lucky user" >/dev/null 2>&1; then :
6043 gl_cv_func_memmem_works=yes
6044 else
6045 gl_cv_func_memmem_works="guessing no"
6046 fi
6047 rm -f conftest*
6048
6049
6050 else
6051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6053
6054 #include <signal.h> /* for signal */
6055 #include <string.h> /* for memmem */
6056 #include <stdlib.h> /* for malloc */
6057 #include <unistd.h> /* for alarm */
6058
6059 int
6060 main ()
6061 {
6062 size_t m = 1000000;
6063 char *haystack = (char *) malloc (2 * m + 1);
6064 char *needle = (char *) malloc (m + 1);
6065 void *result = 0;
6066 /* Failure to compile this test due to missing alarm is okay,
6067 since all such platforms (mingw) also lack memmem. */
6068 signal (SIGALRM, SIG_DFL);
6069 alarm (5);
6070 /* Check for quadratic performance. */
6071 if (haystack && needle)
6072 {
6073 memset (haystack, 'A', 2 * m);
6074 haystack[2 * m] = 'B';
6075 memset (needle, 'A', m);
6076 needle[m] = 'B';
6077 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6078 }
6079 /* Check for empty needle behavior. */
6080 return !result || !memmem ("a", 1, 0, 0);
6081 ;
6082 return 0;
6083 }
6084 _ACEOF
6085 if ac_fn_c_try_run "$LINENO"; then :
6086 gl_cv_func_memmem_works=yes
6087 else
6088 gl_cv_func_memmem_works=no
6089 fi
6090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6091 conftest.$ac_objext conftest.beam conftest.$ac_ext
6092 fi
6093
6094
6095 fi
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6097 $as_echo "$gl_cv_func_memmem_works" >&6; }
6098 if test "$gl_cv_func_memmem_works" != yes; then
6099 REPLACE_MEMMEM=1
6100
6101
6102
6103
6104
6105
6106
6107
6108 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6109
6110 fi
6111 fi
6112
6113 # Code from module memmem-simple:
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126 for ac_func in memmem
6127 do :
6128 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6129 if test "x$ac_cv_func_memmem" = x""yes; then :
6130 cat >>confdefs.h <<_ACEOF
6131 #define HAVE_MEMMEM 1
6132 _ACEOF
6133
6134 else
6135
6136 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6137
6138 fi
6139 done
6140
6141
6142
6143 :
6144
6145
6146
6147
6148
6149 if test $ac_cv_have_decl_memmem = no; then
6150 HAVE_DECL_MEMMEM=0
6151 fi
6152 :
6153
6154
6155
6156
6157 GNULIB_MEMMEM=1
6158
6159
6160
6161 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6162
6163
6164
6165 # Code from module multiarch:
6166
6167 # Code from module stddef:
6168
6169
6170
6171 if test $gt_cv_c_wchar_t = no; then
6172 HAVE_WCHAR_T=0
6173 STDDEF_H=stddef.h
6174 fi
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6176 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6177 if test "${gl_cv_decl_null_works+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182 #include <stddef.h>
6183 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6184
6185 int
6186 main ()
6187 {
6188
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194 gl_cv_decl_null_works=yes
6195 else
6196 gl_cv_decl_null_works=no
6197 fi
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 fi
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6201 $as_echo "$gl_cv_decl_null_works" >&6; }
6202 if test $gl_cv_decl_null_works = no; then
6203 REPLACE_NULL=1
6204 STDDEF_H=stddef.h
6205 fi
6206 if test -n "$STDDEF_H"; then
6207
6208
6209
6210
6211 :
6212
6213
6214
6215
6216
6217
6218
6219 if test $gl_cv_have_include_next = yes; then
6220 gl_cv_next_stddef_h='<'stddef.h'>'
6221 else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6223 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6224 if test "${gl_cv_next_stddef_h+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227
6228 if test $ac_cv_header_stddef_h = yes; then
6229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6231 #include <stddef.h>
6232
6233 _ACEOF
6234 case "$host_os" in
6235 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6236 *) gl_absname_cpp="$ac_cpp" ;;
6237 esac
6238 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6239 sed -n '\#/stddef.h#{
6240 s#.*"\(.*/stddef.h\)".*#\1#
6241 s#^/[^/]#//&#
6242 p
6243 q
6244 }'`'"'
6245 else
6246 gl_cv_next_stddef_h='<'stddef.h'>'
6247 fi
6248
6249 fi
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6251 $as_echo "$gl_cv_next_stddef_h" >&6; }
6252 fi
6253 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6254
6255 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6256 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6257 gl_next_as_first_directive='<'stddef.h'>'
6258 else
6259 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6260 gl_next_as_first_directive=$gl_cv_next_stddef_h
6261 fi
6262 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6263
6264
6265
6266 fi
6267
6268 # Code from module stdint:
6269
6270
6271
6272 if test $ac_cv_type_long_long_int = yes; then
6273 HAVE_LONG_LONG_INT=1
6274 else
6275 HAVE_LONG_LONG_INT=0
6276 fi
6277
6278
6279 if test $ac_cv_type_unsigned_long_long_int = yes; then
6280 HAVE_UNSIGNED_LONG_LONG_INT=1
6281 else
6282 HAVE_UNSIGNED_LONG_LONG_INT=0
6283 fi
6284
6285
6286 if test $ac_cv_header_inttypes_h = yes; then
6287 HAVE_INTTYPES_H=1
6288 else
6289 HAVE_INTTYPES_H=0
6290 fi
6291
6292
6293 if test $ac_cv_header_sys_types_h = yes; then
6294 HAVE_SYS_TYPES_H=1
6295 else
6296 HAVE_SYS_TYPES_H=0
6297 fi
6298
6299
6300
6301
6302
6303
6304 :
6305
6306
6307
6308
6309
6310
6311
6312 if test $gl_cv_have_include_next = yes; then
6313 gl_cv_next_stdint_h='<'stdint.h'>'
6314 else
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6316 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6317 if test "${gl_cv_next_stdint_h+set}" = set; then :
6318 $as_echo_n "(cached) " >&6
6319 else
6320
6321 if test $ac_cv_header_stdint_h = yes; then
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 #include <stdint.h>
6325
6326 _ACEOF
6327 case "$host_os" in
6328 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6329 *) gl_absname_cpp="$ac_cpp" ;;
6330 esac
6331 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6332 sed -n '\#/stdint.h#{
6333 s#.*"\(.*/stdint.h\)".*#\1#
6334 s#^/[^/]#//&#
6335 p
6336 q
6337 }'`'"'
6338 else
6339 gl_cv_next_stdint_h='<'stdint.h'>'
6340 fi
6341
6342 fi
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6344 $as_echo "$gl_cv_next_stdint_h" >&6; }
6345 fi
6346 NEXT_STDINT_H=$gl_cv_next_stdint_h
6347
6348 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6349 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6350 gl_next_as_first_directive='<'stdint.h'>'
6351 else
6352 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6353 gl_next_as_first_directive=$gl_cv_next_stdint_h
6354 fi
6355 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6356
6357
6358
6359 if test $ac_cv_header_stdint_h = yes; then
6360 HAVE_STDINT_H=1
6361 else
6362 HAVE_STDINT_H=0
6363 fi
6364
6365
6366 if test $ac_cv_header_stdint_h = yes; then
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6368 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6369 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 gl_cv_header_working_stdint_h=no
6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374 /* end confdefs.h. */
6375
6376
6377 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6378 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6379 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6380 #include <stdint.h>
6381 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6382 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6383 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6384 #endif
6385
6386
6387 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6388 included before <wchar.h>. */
6389 #include <stddef.h>
6390 #include <signal.h>
6391 #if HAVE_WCHAR_H
6392 # include <stdio.h>
6393 # include <time.h>
6394 # include <wchar.h>
6395 #endif
6396
6397
6398 #ifdef INT8_MAX
6399 int8_t a1 = INT8_MAX;
6400 int8_t a1min = INT8_MIN;
6401 #endif
6402 #ifdef INT16_MAX
6403 int16_t a2 = INT16_MAX;
6404 int16_t a2min = INT16_MIN;
6405 #endif
6406 #ifdef INT32_MAX
6407 int32_t a3 = INT32_MAX;
6408 int32_t a3min = INT32_MIN;
6409 #endif
6410 #ifdef INT64_MAX
6411 int64_t a4 = INT64_MAX;
6412 int64_t a4min = INT64_MIN;
6413 #endif
6414 #ifdef UINT8_MAX
6415 uint8_t b1 = UINT8_MAX;
6416 #else
6417 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6418 #endif
6419 #ifdef UINT16_MAX
6420 uint16_t b2 = UINT16_MAX;
6421 #endif
6422 #ifdef UINT32_MAX
6423 uint32_t b3 = UINT32_MAX;
6424 #endif
6425 #ifdef UINT64_MAX
6426 uint64_t b4 = UINT64_MAX;
6427 #endif
6428 int_least8_t c1 = INT8_C (0x7f);
6429 int_least8_t c1max = INT_LEAST8_MAX;
6430 int_least8_t c1min = INT_LEAST8_MIN;
6431 int_least16_t c2 = INT16_C (0x7fff);
6432 int_least16_t c2max = INT_LEAST16_MAX;
6433 int_least16_t c2min = INT_LEAST16_MIN;
6434 int_least32_t c3 = INT32_C (0x7fffffff);
6435 int_least32_t c3max = INT_LEAST32_MAX;
6436 int_least32_t c3min = INT_LEAST32_MIN;
6437 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6438 int_least64_t c4max = INT_LEAST64_MAX;
6439 int_least64_t c4min = INT_LEAST64_MIN;
6440 uint_least8_t d1 = UINT8_C (0xff);
6441 uint_least8_t d1max = UINT_LEAST8_MAX;
6442 uint_least16_t d2 = UINT16_C (0xffff);
6443 uint_least16_t d2max = UINT_LEAST16_MAX;
6444 uint_least32_t d3 = UINT32_C (0xffffffff);
6445 uint_least32_t d3max = UINT_LEAST32_MAX;
6446 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6447 uint_least64_t d4max = UINT_LEAST64_MAX;
6448 int_fast8_t e1 = INT_FAST8_MAX;
6449 int_fast8_t e1min = INT_FAST8_MIN;
6450 int_fast16_t e2 = INT_FAST16_MAX;
6451 int_fast16_t e2min = INT_FAST16_MIN;
6452 int_fast32_t e3 = INT_FAST32_MAX;
6453 int_fast32_t e3min = INT_FAST32_MIN;
6454 int_fast64_t e4 = INT_FAST64_MAX;
6455 int_fast64_t e4min = INT_FAST64_MIN;
6456 uint_fast8_t f1 = UINT_FAST8_MAX;
6457 uint_fast16_t f2 = UINT_FAST16_MAX;
6458 uint_fast32_t f3 = UINT_FAST32_MAX;
6459 uint_fast64_t f4 = UINT_FAST64_MAX;
6460 #ifdef INTPTR_MAX
6461 intptr_t g = INTPTR_MAX;
6462 intptr_t gmin = INTPTR_MIN;
6463 #endif
6464 #ifdef UINTPTR_MAX
6465 uintptr_t h = UINTPTR_MAX;
6466 #endif
6467 intmax_t i = INTMAX_MAX;
6468 uintmax_t j = UINTMAX_MAX;
6469
6470 #include <limits.h> /* for CHAR_BIT */
6471 #define TYPE_MINIMUM(t) \
6472 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6473 #define TYPE_MAXIMUM(t) \
6474 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6475 struct s {
6476 int check_PTRDIFF:
6477 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6478 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6479 ? 1 : -1;
6480 /* Detect bug in FreeBSD 6.0 / ia64. */
6481 int check_SIG_ATOMIC:
6482 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6483 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6484 ? 1 : -1;
6485 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6486 int check_WCHAR:
6487 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6488 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6489 ? 1 : -1;
6490 /* Detect bug in mingw. */
6491 int check_WINT:
6492 WINT_MIN == TYPE_MINIMUM (wint_t)
6493 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6494 ? 1 : -1;
6495
6496 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6497 int check_UINT8_C:
6498 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6499 int check_UINT16_C:
6500 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6501
6502 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6503 #ifdef UINT8_MAX
6504 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6505 #endif
6506 #ifdef UINT16_MAX
6507 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6508 #endif
6509 #ifdef UINT32_MAX
6510 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6511 #endif
6512 #ifdef UINT64_MAX
6513 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6514 #endif
6515 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6516 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6517 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6518 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6519 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6520 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6521 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6522 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6523 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6524 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6525 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6526 };
6527
6528 int
6529 main ()
6530 {
6531
6532 ;
6533 return 0;
6534 }
6535 _ACEOF
6536 if ac_fn_c_try_compile "$LINENO"; then :
6537 if test "$cross_compiling" = yes; then :
6538 gl_cv_header_working_stdint_h=yes
6539
6540 else
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543
6544
6545 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6546 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6547 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6548 #include <stdint.h>
6549
6550
6551 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6552 included before <wchar.h>. */
6553 #include <stddef.h>
6554 #include <signal.h>
6555 #if HAVE_WCHAR_H
6556 # include <stdio.h>
6557 # include <time.h>
6558 # include <wchar.h>
6559 #endif
6560
6561
6562 #include <stdio.h>
6563 #include <string.h>
6564 #define MVAL(macro) MVAL1(macro)
6565 #define MVAL1(expression) #expression
6566 static const char *macro_values[] =
6567 {
6568 #ifdef INT8_MAX
6569 MVAL (INT8_MAX),
6570 #endif
6571 #ifdef INT16_MAX
6572 MVAL (INT16_MAX),
6573 #endif
6574 #ifdef INT32_MAX
6575 MVAL (INT32_MAX),
6576 #endif
6577 #ifdef INT64_MAX
6578 MVAL (INT64_MAX),
6579 #endif
6580 #ifdef UINT8_MAX
6581 MVAL (UINT8_MAX),
6582 #endif
6583 #ifdef UINT16_MAX
6584 MVAL (UINT16_MAX),
6585 #endif
6586 #ifdef UINT32_MAX
6587 MVAL (UINT32_MAX),
6588 #endif
6589 #ifdef UINT64_MAX
6590 MVAL (UINT64_MAX),
6591 #endif
6592 NULL
6593 };
6594
6595 int
6596 main ()
6597 {
6598
6599 const char **mv;
6600 for (mv = macro_values; *mv != NULL; mv++)
6601 {
6602 const char *value = *mv;
6603 /* Test whether it looks like a cast expression. */
6604 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6605 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6606 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6607 || strncmp (value, "((int)"/*)*/, 6) == 0
6608 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6609 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6610 return 1;
6611 }
6612 return 0;
6613
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 if ac_fn_c_try_run "$LINENO"; then :
6619 gl_cv_header_working_stdint_h=yes
6620 fi
6621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6622 conftest.$ac_objext conftest.beam conftest.$ac_ext
6623 fi
6624
6625
6626 fi
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628
6629 fi
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6631 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6632 fi
6633 if test "$gl_cv_header_working_stdint_h" = yes; then
6634 STDINT_H=
6635 else
6636 for ac_header in sys/inttypes.h sys/bitypes.h
6637 do :
6638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6639 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6640 eval as_val=\$$as_ac_Header
6641 if test "x$as_val" = x""yes; then :
6642 cat >>confdefs.h <<_ACEOF
6643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6644 _ACEOF
6645
6646 fi
6647
6648 done
6649
6650 if test $ac_cv_header_sys_inttypes_h = yes; then
6651 HAVE_SYS_INTTYPES_H=1
6652 else
6653 HAVE_SYS_INTTYPES_H=0
6654 fi
6655
6656 if test $ac_cv_header_sys_bitypes_h = yes; then
6657 HAVE_SYS_BITYPES_H=1
6658 else
6659 HAVE_SYS_BITYPES_H=0
6660 fi
6661
6662
6663
6664 :
6665
6666
6667
6668
6669
6670
6671
6672
6673 if test $APPLE_UNIVERSAL_BUILD = 0; then
6674
6675
6676 for gltype in ptrdiff_t size_t ; do
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6678 $as_echo_n "checking for bit size of $gltype... " >&6; }
6679 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6683 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6684 included before <wchar.h>. */
6685 #include <stddef.h>
6686 #include <signal.h>
6687 #if HAVE_WCHAR_H
6688 # include <stdio.h>
6689 # include <time.h>
6690 # include <wchar.h>
6691 #endif
6692
6693 #include <limits.h>"; then :
6694
6695 else
6696 result=unknown
6697 fi
6698
6699 eval gl_cv_bitsizeof_${gltype}=\$result
6700
6701 fi
6702 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6704 $as_echo "$ac_res" >&6; }
6705 eval result=\$gl_cv_bitsizeof_${gltype}
6706 if test $result = unknown; then
6707 result=0
6708 fi
6709 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6710 cat >>confdefs.h <<_ACEOF
6711 #define BITSIZEOF_${GLTYPE} $result
6712 _ACEOF
6713
6714 eval BITSIZEOF_${GLTYPE}=\$result
6715 done
6716
6717
6718 fi
6719
6720
6721 for gltype in sig_atomic_t wchar_t wint_t ; do
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6723 $as_echo_n "checking for bit size of $gltype... " >&6; }
6724 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6725 $as_echo_n "(cached) " >&6
6726 else
6727 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6728 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6729 included before <wchar.h>. */
6730 #include <stddef.h>
6731 #include <signal.h>
6732 #if HAVE_WCHAR_H
6733 # include <stdio.h>
6734 # include <time.h>
6735 # include <wchar.h>
6736 #endif
6737
6738 #include <limits.h>"; then :
6739
6740 else
6741 result=unknown
6742 fi
6743
6744 eval gl_cv_bitsizeof_${gltype}=\$result
6745
6746 fi
6747 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6749 $as_echo "$ac_res" >&6; }
6750 eval result=\$gl_cv_bitsizeof_${gltype}
6751 if test $result = unknown; then
6752 result=0
6753 fi
6754 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6755 cat >>confdefs.h <<_ACEOF
6756 #define BITSIZEOF_${GLTYPE} $result
6757 _ACEOF
6758
6759 eval BITSIZEOF_${GLTYPE}=\$result
6760 done
6761
6762
6763
6764
6765 for gltype in sig_atomic_t wchar_t wint_t ; do
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6767 $as_echo_n "checking whether $gltype is signed... " >&6; }
6768 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6769 $as_echo_n "(cached) " >&6
6770 else
6771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6772 /* end confdefs.h. */
6773
6774 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6775 included before <wchar.h>. */
6776 #include <stddef.h>
6777 #include <signal.h>
6778 #if HAVE_WCHAR_H
6779 # include <stdio.h>
6780 # include <time.h>
6781 # include <wchar.h>
6782 #endif
6783
6784 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6785 int
6786 main ()
6787 {
6788
6789 ;
6790 return 0;
6791 }
6792 _ACEOF
6793 if ac_fn_c_try_compile "$LINENO"; then :
6794 result=yes
6795 else
6796 result=no
6797 fi
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 eval gl_cv_type_${gltype}_signed=\$result
6800
6801 fi
6802 eval ac_res=\$gl_cv_type_${gltype}_signed
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6804 $as_echo "$ac_res" >&6; }
6805 eval result=\$gl_cv_type_${gltype}_signed
6806 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6807 if test "$result" = yes; then
6808 cat >>confdefs.h <<_ACEOF
6809 #define HAVE_SIGNED_${GLTYPE} 1
6810 _ACEOF
6811
6812 eval HAVE_SIGNED_${GLTYPE}=1
6813 else
6814 eval HAVE_SIGNED_${GLTYPE}=0
6815 fi
6816 done
6817
6818
6819 gl_cv_type_ptrdiff_t_signed=yes
6820 gl_cv_type_size_t_signed=no
6821 if test $APPLE_UNIVERSAL_BUILD = 0; then
6822
6823
6824 for gltype in ptrdiff_t size_t ; do
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6826 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6827 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6828 $as_echo_n "(cached) " >&6
6829 else
6830 eval gl_cv_type_${gltype}_suffix=no
6831 eval result=\$gl_cv_type_${gltype}_signed
6832 if test "$result" = yes; then
6833 glsufu=
6834 else
6835 glsufu=u
6836 fi
6837 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6838 case $glsuf in
6839 '') gltype1='int';;
6840 l) gltype1='long int';;
6841 ll) gltype1='long long int';;
6842 i64) gltype1='__int64';;
6843 u) gltype1='unsigned int';;
6844 ul) gltype1='unsigned long int';;
6845 ull) gltype1='unsigned long long int';;
6846 ui64)gltype1='unsigned __int64';;
6847 esac
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6850
6851 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6852 included before <wchar.h>. */
6853 #include <stddef.h>
6854 #include <signal.h>
6855 #if HAVE_WCHAR_H
6856 # include <stdio.h>
6857 # include <time.h>
6858 # include <wchar.h>
6859 #endif
6860
6861 extern $gltype foo;
6862 extern $gltype1 foo;
6863 int
6864 main ()
6865 {
6866
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872 eval gl_cv_type_${gltype}_suffix=\$glsuf
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 eval result=\$gl_cv_type_${gltype}_suffix
6876 test "$result" != no && break
6877 done
6878 fi
6879 eval ac_res=\$gl_cv_type_${gltype}_suffix
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6881 $as_echo "$ac_res" >&6; }
6882 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6883 eval result=\$gl_cv_type_${gltype}_suffix
6884 test "$result" = no && result=
6885 eval ${GLTYPE}_SUFFIX=\$result
6886 cat >>confdefs.h <<_ACEOF
6887 #define ${GLTYPE}_SUFFIX $result
6888 _ACEOF
6889
6890 done
6891
6892
6893 fi
6894
6895
6896 for gltype in sig_atomic_t wchar_t wint_t ; do
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6898 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6899 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 eval gl_cv_type_${gltype}_suffix=no
6903 eval result=\$gl_cv_type_${gltype}_signed
6904 if test "$result" = yes; then
6905 glsufu=
6906 else
6907 glsufu=u
6908 fi
6909 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6910 case $glsuf in
6911 '') gltype1='int';;
6912 l) gltype1='long int';;
6913 ll) gltype1='long long int';;
6914 i64) gltype1='__int64';;
6915 u) gltype1='unsigned int';;
6916 ul) gltype1='unsigned long int';;
6917 ull) gltype1='unsigned long long int';;
6918 ui64)gltype1='unsigned __int64';;
6919 esac
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6922
6923 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6924 included before <wchar.h>. */
6925 #include <stddef.h>
6926 #include <signal.h>
6927 #if HAVE_WCHAR_H
6928 # include <stdio.h>
6929 # include <time.h>
6930 # include <wchar.h>
6931 #endif
6932
6933 extern $gltype foo;
6934 extern $gltype1 foo;
6935 int
6936 main ()
6937 {
6938
6939 ;
6940 return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_compile "$LINENO"; then :
6944 eval gl_cv_type_${gltype}_suffix=\$glsuf
6945 fi
6946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947 eval result=\$gl_cv_type_${gltype}_suffix
6948 test "$result" != no && break
6949 done
6950 fi
6951 eval ac_res=\$gl_cv_type_${gltype}_suffix
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6953 $as_echo "$ac_res" >&6; }
6954 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6955 eval result=\$gl_cv_type_${gltype}_suffix
6956 test "$result" = no && result=
6957 eval ${GLTYPE}_SUFFIX=\$result
6958 cat >>confdefs.h <<_ACEOF
6959 #define ${GLTYPE}_SUFFIX $result
6960 _ACEOF
6961
6962 done
6963
6964
6965
6966 STDINT_H=stdint.h
6967 fi
6968
6969
6970 # Code from module string:
6971
6972
6973
6974 # Code from module warn-on-use:
6975 # Code from module wchar:
6976
6977
6978
6979
6980 :
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990 :
6991
6992
6993
6994
6995
6996
6997
6998 if test $gl_cv_have_include_next = yes; then
6999 gl_cv_next_wchar_h='<'wchar.h'>'
7000 else
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
7002 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
7003 if test "${gl_cv_next_wchar_h+set}" = set; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006
7007 if test $ac_cv_header_wchar_h = yes; then
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7010 #include <wchar.h>
7011
7012 _ACEOF
7013 case "$host_os" in
7014 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7015 *) gl_absname_cpp="$ac_cpp" ;;
7016 esac
7017 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7018 sed -n '\#/wchar.h#{
7019 s#.*"\(.*/wchar.h\)".*#\1#
7020 s#^/[^/]#//&#
7021 p
7022 q
7023 }'`'"'
7024 else
7025 gl_cv_next_wchar_h='<'wchar.h'>'
7026 fi
7027
7028 fi
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7030 $as_echo "$gl_cv_next_wchar_h" >&6; }
7031 fi
7032 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7033
7034 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7035 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7036 gl_next_as_first_directive='<'wchar.h'>'
7037 else
7038 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7039 gl_next_as_first_directive=$gl_cv_next_wchar_h
7040 fi
7041 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7042
7043
7044
7045 if test $ac_cv_header_wchar_h = yes; then
7046 HAVE_WCHAR_H=1
7047 else
7048 HAVE_WCHAR_H=0
7049 fi
7050
7051
7052
7053 if test $gt_cv_c_wint_t = yes; then
7054 HAVE_WINT_T=1
7055 else
7056 HAVE_WINT_T=0
7057 fi
7058
7059
7060
7061 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7062 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7064 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7065 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070
7071 /* Some systems require additional headers. */
7072 #ifndef __GLIBC__
7073 # include <stddef.h>
7074 # include <stdio.h>
7075 # include <time.h>
7076 #endif
7077 #include <wchar.h>
7078
7079 int
7080 main ()
7081 {
7082 #undef $gl_func
7083 (void) $gl_func;
7084 ;
7085 return 0;
7086 }
7087 _ACEOF
7088 if ac_fn_c_try_compile "$LINENO"; then :
7089 eval "$as_gl_Symbol=yes"
7090 else
7091 eval "$as_gl_Symbol=no"
7092 fi
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 fi
7095 eval ac_res=\$$as_gl_Symbol
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7097 $as_echo "$ac_res" >&6; }
7098 eval as_val=\$$as_gl_Symbol
7099 if test "x$as_val" = x""yes; then :
7100 cat >>confdefs.h <<_ACEOF
7101 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7102 _ACEOF
7103
7104 eval ac_cv_have_decl_$gl_func=yes
7105 fi
7106 done
7107
7108
7109 # Code from module dummy:
7110 # End of code from modules
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120 gltests_libdeps=
7121 gltests_ltlibdeps=
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131 gl_source_base='tests'
7132 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
7133
7134 gl_module_indicator_condition=$gltests_WITNESS
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144 LIBGNU_LIBDEPS="$gl_libdeps"
7145
7146 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7147
7148
7149
7150 # For Makefile dependencies.
7151 GNULIB_STDINT_H=
7152 if test x"$STDINT_H" != x; then
7153 GNULIB_STDINT_H=gnulib/$STDINT_H
7154 fi
7155
7156
7157 PACKAGE=gdb
7158
7159 cat >>confdefs.h <<_ACEOF
7160 #define PACKAGE "$PACKAGE"
7161 _ACEOF
7162
7163
7164
7165 # We never need to detect it in this sub-configure.
7166 # But preserve it for config.status --recheck.
7167
7168
7169
7170 MAKEINFO_EXTRA_FLAGS=""
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
7172 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
7173 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 echo '@clicksequence{a @click{} b}' >conftest.texinfo
7177 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
7178 gdb_cv_have_makeinfo_click=yes
7179 else
7180 gdb_cv_have_makeinfo_click=no
7181 fi
7182 fi
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
7184 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
7185 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
7186 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
7187 fi
7188
7189
7190 # GDB does not use automake, but gnulib does. This line lets us
7191 # generate its Makefile.in.
7192 am__api_version='1.11'
7193
7194 # Find a good install program. We prefer a C program (faster),
7195 # so one script is as good as another. But avoid the broken or
7196 # incompatible versions:
7197 # SysV /etc/install, /usr/sbin/install
7198 # SunOS /usr/etc/install
7199 # IRIX /sbin/install
7200 # AIX /bin/install
7201 # AmigaOS /C/install, which installs bootblocks on floppy discs
7202 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7203 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7204 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7205 # OS/2's system install, which has a completely different semantic
7206 # ./install, which can be erroneously created by make from ./install.sh.
7207 # Reject install programs that cannot install multiple files.
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7209 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7210 if test -z "$INSTALL"; then
7211 if test "${ac_cv_path_install+set}" = set; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217 IFS=$as_save_IFS
7218 test -z "$as_dir" && as_dir=.
7219 # Account for people who put trailing slashes in PATH elements.
7220 case $as_dir/ in #((
7221 ./ | .// | /[cC]/* | \
7222 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7223 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7224 /usr/ucb/* ) ;;
7225 *)
7226 # OSF1 and SCO ODT 3.0 have their own names for install.
7227 # Don't use installbsd from OSF since it installs stuff as root
7228 # by default.
7229 for ac_prog in ginstall scoinst install; do
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7232 if test $ac_prog = install &&
7233 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7234 # AIX install. It has an incompatible calling convention.
7235 :
7236 elif test $ac_prog = install &&
7237 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7238 # program-specific install script used by HP pwplus--don't use.
7239 :
7240 else
7241 rm -rf conftest.one conftest.two conftest.dir
7242 echo one > conftest.one
7243 echo two > conftest.two
7244 mkdir conftest.dir
7245 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7246 test -s conftest.one && test -s conftest.two &&
7247 test -s conftest.dir/conftest.one &&
7248 test -s conftest.dir/conftest.two
7249 then
7250 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7251 break 3
7252 fi
7253 fi
7254 fi
7255 done
7256 done
7257 ;;
7258 esac
7259
7260 done
7261 IFS=$as_save_IFS
7262
7263 rm -rf conftest.one conftest.two conftest.dir
7264
7265 fi
7266 if test "${ac_cv_path_install+set}" = set; then
7267 INSTALL=$ac_cv_path_install
7268 else
7269 # As a last resort, use the slow shell script. Don't cache a
7270 # value for INSTALL within a source directory, because that will
7271 # break other packages using the cache if that directory is
7272 # removed, or if the value is a relative name.
7273 INSTALL=$ac_install_sh
7274 fi
7275 fi
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7277 $as_echo "$INSTALL" >&6; }
7278
7279 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7280 # It thinks the first close brace ends the variable substitution.
7281 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7282
7283 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7284
7285 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7286
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7288 $as_echo_n "checking whether build environment is sane... " >&6; }
7289 # Just in case
7290 sleep 1
7291 echo timestamp > conftest.file
7292 # Reject unsafe characters in $srcdir or the absolute working directory
7293 # name. Accept space and tab only in the latter.
7294 am_lf='
7295 '
7296 case `pwd` in
7297 *[\\\"\#\$\&\'\`$am_lf]*)
7298 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7299 esac
7300 case $srcdir in
7301 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7302 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7303 esac
7304
7305 # Do `set' in a subshell so we don't clobber the current shell's
7306 # arguments. Must try -L first in case configure is actually a
7307 # symlink; some systems play weird games with the mod time of symlinks
7308 # (eg FreeBSD returns the mod time of the symlink's containing
7309 # directory).
7310 if (
7311 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7312 if test "$*" = "X"; then
7313 # -L didn't work.
7314 set X `ls -t "$srcdir/configure" conftest.file`
7315 fi
7316 rm -f conftest.file
7317 if test "$*" != "X $srcdir/configure conftest.file" \
7318 && test "$*" != "X conftest.file $srcdir/configure"; then
7319
7320 # If neither matched, then we have a broken ls. This can happen
7321 # if, for instance, CONFIG_SHELL is bash and it inherits a
7322 # broken ls alias from the environment. This has actually
7323 # happened. Such a system could not be considered "sane".
7324 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7325 alias in your environment" "$LINENO" 5
7326 fi
7327
7328 test "$2" = conftest.file
7329 )
7330 then
7331 # Ok.
7332 :
7333 else
7334 as_fn_error "newly created file is older than distributed files!
7335 Check your system clock" "$LINENO" 5
7336 fi
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7338 $as_echo "yes" >&6; }
7339 test "$program_prefix" != NONE &&
7340 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7341 # Use a double $ so make ignores it.
7342 test "$program_suffix" != NONE &&
7343 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7344 # Double any \ or $.
7345 # By default was `s,x,x', remove it if useless.
7346 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7347 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7348
7349 # expand $ac_aux_dir to an absolute path
7350 am_aux_dir=`cd $ac_aux_dir && pwd`
7351
7352 if test x"${MISSING+set}" != xset; then
7353 case $am_aux_dir in
7354 *\ * | *\ *)
7355 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7356 *)
7357 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7358 esac
7359 fi
7360 # Use eval to expand $SHELL
7361 if eval "$MISSING --run true"; then
7362 am_missing_run="$MISSING --run "
7363 else
7364 am_missing_run=
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7366 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7367 fi
7368
7369 if test x"${install_sh}" != xset; then
7370 case $am_aux_dir in
7371 *\ * | *\ *)
7372 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7373 *)
7374 install_sh="\${SHELL} $am_aux_dir/install-sh"
7375 esac
7376 fi
7377
7378 # Installed binaries are usually stripped using `strip' when the user
7379 # run `make install-strip'. However `strip' might not be the right
7380 # tool to use in cross-compilation environments, therefore Automake
7381 # will honor the `STRIP' environment variable to overrule this program.
7382 if test "$cross_compiling" != no; then
7383 if test -n "$ac_tool_prefix"; then
7384 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7385 set dummy ${ac_tool_prefix}strip; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if test "${ac_cv_prog_STRIP+set}" = set; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 if test -n "$STRIP"; then
7392 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7401 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7404 fi
7405 done
7406 done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 STRIP=$ac_cv_prog_STRIP
7412 if test -n "$STRIP"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7414 $as_echo "$STRIP" >&6; }
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420
7421 fi
7422 if test -z "$ac_cv_prog_STRIP"; then
7423 ac_ct_STRIP=$STRIP
7424 # Extract the first word of "strip", so it can be a program name with args.
7425 set dummy strip; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 if test -n "$ac_ct_STRIP"; then
7432 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7441 ac_cv_prog_ac_ct_STRIP="strip"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7444 fi
7445 done
7446 done
7447 IFS=$as_save_IFS
7448
7449 fi
7450 fi
7451 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7452 if test -n "$ac_ct_STRIP"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7454 $as_echo "$ac_ct_STRIP" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459
7460 if test "x$ac_ct_STRIP" = x; then
7461 STRIP=":"
7462 else
7463 case $cross_compiling:$ac_tool_warned in
7464 yes:)
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7467 ac_tool_warned=yes ;;
7468 esac
7469 STRIP=$ac_ct_STRIP
7470 fi
7471 else
7472 STRIP="$ac_cv_prog_STRIP"
7473 fi
7474
7475 fi
7476 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7477
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7479 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7480 if test -z "$MKDIR_P"; then
7481 if test "${ac_cv_path_mkdir+set}" = set; then :
7482 $as_echo_n "(cached) " >&6
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7486 do
7487 IFS=$as_save_IFS
7488 test -z "$as_dir" && as_dir=.
7489 for ac_prog in mkdir gmkdir; do
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7492 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7493 'mkdir (GNU coreutils) '* | \
7494 'mkdir (coreutils) '* | \
7495 'mkdir (fileutils) '4.1*)
7496 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7497 break 3;;
7498 esac
7499 done
7500 done
7501 done
7502 IFS=$as_save_IFS
7503
7504 fi
7505
7506 if test "${ac_cv_path_mkdir+set}" = set; then
7507 MKDIR_P="$ac_cv_path_mkdir -p"
7508 else
7509 # As a last resort, use the slow shell script. Don't cache a
7510 # value for MKDIR_P within a source directory, because that will
7511 # break other packages using the cache if that directory is
7512 # removed, or if the value is a relative name.
7513 test -d ./--version && rmdir ./--version
7514 MKDIR_P="$ac_install_sh -d"
7515 fi
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7518 $as_echo "$MKDIR_P" >&6; }
7519
7520
7521 mkdir_p="$MKDIR_P"
7522 case $mkdir_p in
7523 [\\/$]* | ?:[\\/]*) ;;
7524 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7525 esac
7526
7527 for ac_prog in gawk mawk nawk awk
7528 do
7529 # Extract the first word of "$ac_prog", so it can be a program name with args.
7530 set dummy $ac_prog; ac_word=$2
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7532 $as_echo_n "checking for $ac_word... " >&6; }
7533 if test "${ac_cv_prog_AWK+set}" = set; then :
7534 $as_echo_n "(cached) " >&6
7535 else
7536 if test -n "$AWK"; then
7537 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7538 else
7539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7540 for as_dir in $PATH
7541 do
7542 IFS=$as_save_IFS
7543 test -z "$as_dir" && as_dir=.
7544 for ac_exec_ext in '' $ac_executable_extensions; do
7545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7546 ac_cv_prog_AWK="$ac_prog"
7547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 break 2
7549 fi
7550 done
7551 done
7552 IFS=$as_save_IFS
7553
7554 fi
7555 fi
7556 AWK=$ac_cv_prog_AWK
7557 if test -n "$AWK"; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7559 $as_echo "$AWK" >&6; }
7560 else
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7562 $as_echo "no" >&6; }
7563 fi
7564
7565
7566 test -n "$AWK" && break
7567 done
7568
7569 ac_config_commands="$ac_config_commands depfiles"
7570
7571
7572 am_make=${MAKE-make}
7573 cat > confinc << 'END'
7574 am__doit:
7575 @echo this is the am__doit target
7576 .PHONY: am__doit
7577 END
7578 # If we don't find an include directive, just comment out the code.
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7580 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7581 am__include="#"
7582 am__quote=
7583 _am_result=none
7584 # First try GNU make style include.
7585 echo "include confinc" > confmf
7586 # Ignore all kinds of additional output from `make'.
7587 case `$am_make -s -f confmf 2> /dev/null` in #(
7588 *the\ am__doit\ target*)
7589 am__include=include
7590 am__quote=
7591 _am_result=GNU
7592 ;;
7593 esac
7594 # Now try BSD make style include.
7595 if test "$am__include" = "#"; then
7596 echo '.include "confinc"' > confmf
7597 case `$am_make -s -f confmf 2> /dev/null` in #(
7598 *the\ am__doit\ target*)
7599 am__include=.include
7600 am__quote="\""
7601 _am_result=BSD
7602 ;;
7603 esac
7604 fi
7605
7606
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7608 $as_echo "$_am_result" >&6; }
7609 rm -f confinc confmf
7610
7611 # Check whether --enable-dependency-tracking was given.
7612 if test "${enable_dependency_tracking+set}" = set; then :
7613 enableval=$enable_dependency_tracking;
7614 fi
7615
7616 if test "x$enable_dependency_tracking" != xno; then
7617 am_depcomp="$ac_aux_dir/depcomp"
7618 AMDEPBACKSLASH='\'
7619 fi
7620 if test "x$enable_dependency_tracking" != xno; then
7621 AMDEP_TRUE=
7622 AMDEP_FALSE='#'
7623 else
7624 AMDEP_TRUE='#'
7625 AMDEP_FALSE=
7626 fi
7627
7628
7629 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7630 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7631 # is not polluted with repeated "-I."
7632 am__isrc=' -I$(srcdir)'
7633 # test to see if srcdir already configured
7634 if test -f $srcdir/config.status; then
7635 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7636 fi
7637 fi
7638
7639 # test whether we have cygpath
7640 if test -z "$CYGPATH_W"; then
7641 if (cygpath --version) >/dev/null 2>/dev/null; then
7642 CYGPATH_W='cygpath -w'
7643 else
7644 CYGPATH_W=echo
7645 fi
7646 fi
7647
7648
7649 # Define the identity of the package.
7650 PACKAGE=gdb
7651 VERSION=UNUSED-VERSION
7652
7653
7654 # Some tools Automake needs.
7655
7656 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7657
7658
7659 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7660
7661
7662 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7663
7664
7665 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7666
7667
7668 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7669
7670 # We need awk for the "check" target. The system "awk" is bad on
7671 # some platforms.
7672 # Always define AMTAR for backward compatibility.
7673
7674 AMTAR=${AMTAR-"${am_missing_run}tar"}
7675
7676 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7677
7678
7679
7680
7681 depcc="$CC" am_compiler_list=
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7684 $as_echo_n "checking dependency style of $depcc... " >&6; }
7685 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7689 # We make a subdir and do the tests there. Otherwise we can end up
7690 # making bogus files that we don't know about and never remove. For
7691 # instance it was reported that on HP-UX the gcc test will end up
7692 # making a dummy file named `D' -- because `-MD' means `put the output
7693 # in D'.
7694 mkdir conftest.dir
7695 # Copy depcomp to subdir because otherwise we won't find it if we're
7696 # using a relative directory.
7697 cp "$am_depcomp" conftest.dir
7698 cd conftest.dir
7699 # We will build objects and dependencies in a subdirectory because
7700 # it helps to detect inapplicable dependency modes. For instance
7701 # both Tru64's cc and ICC support -MD to output dependencies as a
7702 # side effect of compilation, but ICC will put the dependencies in
7703 # the current directory while Tru64 will put them in the object
7704 # directory.
7705 mkdir sub
7706
7707 am_cv_CC_dependencies_compiler_type=none
7708 if test "$am_compiler_list" = ""; then
7709 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7710 fi
7711 am__universal=false
7712 case " $depcc " in #(
7713 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7714 esac
7715
7716 for depmode in $am_compiler_list; do
7717 # Setup a source with many dependencies, because some compilers
7718 # like to wrap large dependency lists on column 80 (with \), and
7719 # we should not choose a depcomp mode which is confused by this.
7720 #
7721 # We need to recreate these files for each test, as the compiler may
7722 # overwrite some of them when testing with obscure command lines.
7723 # This happens at least with the AIX C compiler.
7724 : > sub/conftest.c
7725 for i in 1 2 3 4 5 6; do
7726 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7727 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7728 # Solaris 8's {/usr,}/bin/sh.
7729 touch sub/conftst$i.h
7730 done
7731 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7732
7733 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7734 # mode. It turns out that the SunPro C++ compiler does not properly
7735 # handle `-M -o', and we need to detect this. Also, some Intel
7736 # versions had trouble with output in subdirs
7737 am__obj=sub/conftest.${OBJEXT-o}
7738 am__minus_obj="-o $am__obj"
7739 case $depmode in
7740 gcc)
7741 # This depmode causes a compiler race in universal mode.
7742 test "$am__universal" = false || continue
7743 ;;
7744 nosideeffect)
7745 # after this tag, mechanisms are not by side-effect, so they'll
7746 # only be used when explicitly requested
7747 if test "x$enable_dependency_tracking" = xyes; then
7748 continue
7749 else
7750 break
7751 fi
7752 ;;
7753 msvisualcpp | msvcmsys)
7754 # This compiler won't grok `-c -o', but also, the minuso test has
7755 # not run yet. These depmodes are late enough in the game, and
7756 # so weak that their functioning should not be impacted.
7757 am__obj=conftest.${OBJEXT-o}
7758 am__minus_obj=
7759 ;;
7760 none) break ;;
7761 esac
7762 if depmode=$depmode \
7763 source=sub/conftest.c object=$am__obj \
7764 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7765 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7766 >/dev/null 2>conftest.err &&
7767 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7768 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7769 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7770 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7771 # icc doesn't choke on unknown options, it will just issue warnings
7772 # or remarks (even with -Werror). So we grep stderr for any message
7773 # that says an option was ignored or not supported.
7774 # When given -MP, icc 7.0 and 7.1 complain thusly:
7775 # icc: Command line warning: ignoring option '-M'; no argument required
7776 # The diagnosis changed in icc 8.0:
7777 # icc: Command line remark: option '-MP' not supported
7778 if (grep 'ignoring option' conftest.err ||
7779 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7780 am_cv_CC_dependencies_compiler_type=$depmode
7781 break
7782 fi
7783 fi
7784 done
7785
7786 cd ..
7787 rm -rf conftest.dir
7788 else
7789 am_cv_CC_dependencies_compiler_type=none
7790 fi
7791
7792 fi
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7794 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7795 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7796
7797 if
7798 test "x$enable_dependency_tracking" != xno \
7799 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7800 am__fastdepCC_TRUE=
7801 am__fastdepCC_FALSE='#'
7802 else
7803 am__fastdepCC_TRUE='#'
7804 am__fastdepCC_FALSE=
7805 fi
7806
7807
7808
7809
7810
7811
7812 # Check whether --with-separate-debug-dir was given.
7813 if test "${with_separate_debug_dir+set}" = set; then :
7814 withval=$with_separate_debug_dir;
7815 DEBUGDIR=$withval
7816 else
7817 DEBUGDIR=${libdir}/debug
7818 fi
7819
7820
7821 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7822 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7823 ac_define_dir=`eval echo $DEBUGDIR`
7824 ac_define_dir=`eval echo $ac_define_dir`
7825
7826 cat >>confdefs.h <<_ACEOF
7827 #define DEBUGDIR "$ac_define_dir"
7828 _ACEOF
7829
7830
7831
7832
7833 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7834 if test "x$prefix" = xNONE; then
7835 test_prefix=/usr/local
7836 else
7837 test_prefix=$prefix
7838 fi
7839 else
7840 test_prefix=$exec_prefix
7841 fi
7842 value=0
7843 case ${ac_define_dir} in
7844 "${test_prefix}"|"${test_prefix}/"*|\
7845 '${exec_prefix}'|'${exec_prefix}/'*)
7846 value=1
7847 ;;
7848 esac
7849
7850 cat >>confdefs.h <<_ACEOF
7851 #define DEBUGDIR_RELOCATABLE $value
7852 _ACEOF
7853
7854
7855
7856
7857 # We can't pass paths as command line arguments.
7858 # Mingw32 tries to be clever and will convert the paths for us.
7859 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
7860 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
7861 # This breaks GDB's relocatable path conversions since paths passed in
7862 # config.h would not get so translated, the path prefixes no longer match.
7863
7864 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7865 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7866 ac_define_dir=`eval echo $bindir`
7867 ac_define_dir=`eval echo $ac_define_dir`
7868
7869 cat >>confdefs.h <<_ACEOF
7870 #define BINDIR "$ac_define_dir"
7871 _ACEOF
7872
7873
7874
7875 # GDB's datadir relocation
7876
7877
7878
7879 # Check whether --with-gdb-datadir was given.
7880 if test "${with_gdb_datadir+set}" = set; then :
7881 withval=$with_gdb_datadir;
7882 GDB_DATADIR=$withval
7883 else
7884 GDB_DATADIR=${datadir}/gdb
7885 fi
7886
7887
7888 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7890 ac_define_dir=`eval echo $GDB_DATADIR`
7891 ac_define_dir=`eval echo $ac_define_dir`
7892
7893 cat >>confdefs.h <<_ACEOF
7894 #define GDB_DATADIR "$ac_define_dir"
7895 _ACEOF
7896
7897
7898
7899
7900 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7901 if test "x$prefix" = xNONE; then
7902 test_prefix=/usr/local
7903 else
7904 test_prefix=$prefix
7905 fi
7906 else
7907 test_prefix=$exec_prefix
7908 fi
7909 value=0
7910 case ${ac_define_dir} in
7911 "${test_prefix}"|"${test_prefix}/"*|\
7912 '${exec_prefix}'|'${exec_prefix}/'*)
7913 value=1
7914 ;;
7915 esac
7916
7917 cat >>confdefs.h <<_ACEOF
7918 #define GDB_DATADIR_RELOCATABLE $value
7919 _ACEOF
7920
7921
7922
7923
7924
7925 # Check whether --with-relocated-sources was given.
7926 if test "${with_relocated_sources+set}" = set; then :
7927 withval=$with_relocated_sources; reloc_srcdir="${withval}"
7928
7929 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7930 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7931 ac_define_dir=`eval echo $reloc_srcdir`
7932 ac_define_dir=`eval echo $ac_define_dir`
7933
7934 cat >>confdefs.h <<_ACEOF
7935 #define RELOC_SRCDIR "$ac_define_dir"
7936 _ACEOF
7937
7938
7939
7940 fi
7941
7942
7943
7944
7945 subdirs="$subdirs testsuite"
7946
7947
7948 # Check whether to support alternative target configurations
7949 # Check whether --enable-targets was given.
7950 if test "${enable_targets+set}" = set; then :
7951 enableval=$enable_targets; case "${enableval}" in
7952 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7953 ;;
7954 no) enable_targets= ;;
7955 *) enable_targets=$enableval ;;
7956 esac
7957 fi
7958
7959
7960 # Check whether to enable 64-bit support on 32-bit hosts
7961 # Check whether --enable-64-bit-bfd was given.
7962 if test "${enable_64_bit_bfd+set}" = set; then :
7963 enableval=$enable_64_bit_bfd; case "${enableval}" in
7964 yes) want64=true ;;
7965 no) want64=false ;;
7966 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7967 esac
7968 else
7969 want64=false
7970 fi
7971
7972 # Provide defaults for some variables set by the per-host and per-target
7973 # configuration.
7974 gdb_host_obs=posix-hdep.o
7975
7976 if test "${target}" = "${host}"; then
7977 gdb_native=yes
7978 else
7979 gdb_native=no
7980 fi
7981
7982 . $srcdir/configure.host
7983
7984 # Accumulate some settings from configure.tgt over all enabled targets
7985
7986 TARGET_OBS=
7987 all_targets=
7988
7989 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7990 do
7991 if test "$targ_alias" = "all"; then
7992 all_targets=true
7993 else
7994 # Canonicalize the secondary target names.
7995 result=`$ac_config_sub $targ_alias 2>/dev/null`
7996 if test -n "$result"; then
7997 targ=$result
7998 else
7999 targ=$targ_alias
8000 fi
8001
8002 . ${srcdir}/configure.tgt
8003
8004 if test -z "${gdb_target_obs}"; then :
8005 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
8006 fi
8007
8008 # Target-specific object files
8009 for i in ${gdb_target_obs}; do
8010 case " $TARGET_OBS " in
8011 *" ${i} "*) ;;
8012 *)
8013 TARGET_OBS="$TARGET_OBS ${i}"
8014 ;;
8015 esac
8016 done
8017
8018 # Check whether this target needs 64-bit CORE_ADDR
8019 if test x${want64} = xfalse; then
8020 . ${srcdir}/../bfd/config.bfd
8021 fi
8022 fi
8023 done
8024
8025 if test x${all_targets} = xtrue; then
8026
8027 # We want all 64-bit targets if we either:
8028 # - run on a 64-bit host or
8029 # - already require 64-bit support for some other target or
8030 # - the --enable-64-bit-bfd option was supplied
8031 # Otherwise we only support all 32-bit targets.
8032 #
8033 # NOTE: This test must be in sync with the corresponding
8034 # tests in BFD!
8035
8036 if test x${want64} = xfalse; then
8037 # The cast to long int works around a bug in the HP C Compiler
8038 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8039 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8040 # This bug is HP SR number 8606223364.
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8042 $as_echo_n "checking size of long... " >&6; }
8043 if test "${ac_cv_sizeof_long+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8045 else
8046 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8047
8048 else
8049 if test "$ac_cv_type_long" = yes; then
8050 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8052 { as_fn_set_status 77
8053 as_fn_error "cannot compute sizeof (long)
8054 See \`config.log' for more details." "$LINENO" 5; }; }
8055 else
8056 ac_cv_sizeof_long=0
8057 fi
8058 fi
8059
8060 fi
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8062 $as_echo "$ac_cv_sizeof_long" >&6; }
8063
8064
8065
8066 cat >>confdefs.h <<_ACEOF
8067 #define SIZEOF_LONG $ac_cv_sizeof_long
8068 _ACEOF
8069
8070
8071 if test "x${ac_cv_sizeof_long}" = "x8"; then
8072 want64=true
8073 fi
8074 fi
8075 if test x${want64} = xtrue; then
8076 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8077 else
8078 TARGET_OBS='$(ALL_TARGET_OBS)'
8079 fi
8080 fi
8081
8082
8083
8084 # For other settings, only the main target counts.
8085 gdb_sim=
8086 gdb_osabi=
8087 build_gdbserver=
8088 targ=$target; . ${srcdir}/configure.tgt
8089
8090 # Fetch the default architecture and default target vector from BFD.
8091 targ=$target; . $srcdir/../bfd/config.bfd
8092
8093 # We only want the first architecture, so strip off the others if
8094 # there is more than one.
8095 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8096
8097 if test "x$targ_archs" != x; then
8098
8099 cat >>confdefs.h <<_ACEOF
8100 #define DEFAULT_BFD_ARCH $targ_archs
8101 _ACEOF
8102
8103 fi
8104 if test "x$targ_defvec" != x; then
8105
8106 cat >>confdefs.h <<_ACEOF
8107 #define DEFAULT_BFD_VEC $targ_defvec
8108 _ACEOF
8109
8110 fi
8111
8112 # The CLI cannot be disabled yet, but may be in the future.
8113
8114 # Enable CLI.
8115 # Check whether --enable-gdbcli was given.
8116 if test "${enable_gdbcli+set}" = set; then :
8117 enableval=$enable_gdbcli; case $enableval in
8118 yes)
8119 ;;
8120 no)
8121 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8122 *)
8123 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8124 esac
8125 else
8126 enable_gdbcli=yes
8127 fi
8128
8129 if test x"$enable_gdbcli" = xyes; then
8130 if test -d $srcdir/cli; then
8131 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8132 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8133 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8134 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8135 fi
8136 fi
8137
8138 # Enable MI.
8139 # Check whether --enable-gdbmi was given.
8140 if test "${enable_gdbmi+set}" = set; then :
8141 enableval=$enable_gdbmi; case $enableval in
8142 yes | no)
8143 ;;
8144 *)
8145 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8146 esac
8147 else
8148 enable_gdbmi=yes
8149 fi
8150
8151 if test x"$enable_gdbmi" = xyes; then
8152 if test -d $srcdir/mi; then
8153 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8154 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8155 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8156 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8157 fi
8158 fi
8159
8160 # Enable TUI.
8161 # Check whether --enable-tui was given.
8162 if test "${enable_tui+set}" = set; then :
8163 enableval=$enable_tui; case $enableval in
8164 yes | no | auto)
8165 ;;
8166 *)
8167 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8168 esac
8169 else
8170 enable_tui=auto
8171 fi
8172
8173
8174 # Enable gdbtk.
8175 # Check whether --enable-gdbtk was given.
8176 if test "${enable_gdbtk+set}" = set; then :
8177 enableval=$enable_gdbtk; case $enableval in
8178 yes | no)
8179 ;;
8180 *)
8181 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8182 esac
8183 else
8184 if test -d $srcdir/gdbtk; then
8185 enable_gdbtk=yes
8186 else
8187 enable_gdbtk=no
8188 fi
8189 fi
8190
8191 # We unconditionally disable gdbtk tests on selected platforms.
8192 case $host_os in
8193 go32* | windows*)
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8195 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8196 enable_gdbtk=no ;;
8197 esac
8198
8199 # Libunwind support.
8200
8201 # Check whether --with-libunwind was given.
8202 if test "${with_libunwind+set}" = set; then :
8203 withval=$with_libunwind; case "${withval}" in
8204 yes) enable_libunwind=yes ;;
8205 no) enable_libunwind=no ;;
8206 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8207 esac
8208 else
8209
8210 for ac_header in libunwind-ia64.h
8211 do :
8212 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
8213 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
8214 cat >>confdefs.h <<_ACEOF
8215 #define HAVE_LIBUNWIND_IA64_H 1
8216 _ACEOF
8217
8218 fi
8219
8220 done
8221
8222 if test x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8223 enable_libunwind=yes;
8224 fi
8225
8226 fi
8227
8228
8229 if test x"$enable_libunwind" = xyes; then
8230 for ac_header in libunwind-ia64.h
8231 do :
8232 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
8233 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
8234 cat >>confdefs.h <<_ACEOF
8235 #define HAVE_LIBUNWIND_IA64_H 1
8236 _ACEOF
8237
8238 fi
8239
8240 done
8241
8242
8243 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8244
8245 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8246 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8247 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8248 fi
8249
8250 opt_curses=no
8251
8252 # Check whether --with-curses was given.
8253 if test "${with_curses+set}" = set; then :
8254 withval=$with_curses; opt_curses=$withval
8255 fi
8256
8257
8258 prefer_curses=no
8259 if test "$opt_curses" = "yes"; then
8260 prefer_curses=yes
8261 fi
8262
8263 # Profiling support.
8264 # Check whether --enable-profiling was given.
8265 if test "${enable_profiling+set}" = set; then :
8266 enableval=$enable_profiling; case $enableval in
8267 yes | no)
8268 ;;
8269 *)
8270 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8271 esac
8272 else
8273 enable_profiling=no
8274 fi
8275
8276
8277 for ac_func in monstartup _mcleanup
8278 do :
8279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8280 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8281 eval as_val=\$$as_ac_var
8282 if test "x$as_val" = x""yes; then :
8283 cat >>confdefs.h <<_ACEOF
8284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8285 _ACEOF
8286
8287 fi
8288 done
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8291 $as_echo_n "checking for _etext... " >&6; }
8292 if test "${ac_cv_var__etext+set}" = set; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8297 #include <stdlib.h>
8298 extern char _etext;
8299
8300 int
8301 main ()
8302 {
8303 free (&_etext);
8304 ;
8305 return 0;
8306 }
8307 _ACEOF
8308 if ac_fn_c_try_link "$LINENO"; then :
8309 ac_cv_var__etext=yes
8310 else
8311 ac_cv_var__etext=no
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 fi
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8317 $as_echo "$ac_cv_var__etext" >&6; }
8318 if test $ac_cv_var__etext = yes; then
8319
8320 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8324 $as_echo_n "checking for etext... " >&6; }
8325 if test "${ac_cv_var_etext+set}" = set; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 #include <stdlib.h>
8331 extern char etext;
8332
8333 int
8334 main ()
8335 {
8336 free (&etext);
8337 ;
8338 return 0;
8339 }
8340 _ACEOF
8341 if ac_fn_c_try_link "$LINENO"; then :
8342 ac_cv_var_etext=yes
8343 else
8344 ac_cv_var_etext=no
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext \
8347 conftest$ac_exeext conftest.$ac_ext
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8350 $as_echo "$ac_cv_var_etext" >&6; }
8351 if test $ac_cv_var_etext = yes; then
8352
8353 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8354
8355 fi
8356 if test "$enable_profiling" = yes ; then
8357 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8358 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8359 fi
8360 PROFILE_CFLAGS=-pg
8361 OLD_CFLAGS="$CFLAGS"
8362 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8363
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8365 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8366 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8367 $as_echo_n "(cached) " >&6
8368 else
8369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8370 /* end confdefs.h. */
8371
8372 int
8373 main ()
8374 {
8375 int x;
8376 ;
8377 return 0;
8378 }
8379 _ACEOF
8380 if ac_fn_c_try_compile "$LINENO"; then :
8381 ac_cv_cc_supports_pg=yes
8382 else
8383 ac_cv_cc_supports_pg=no
8384 fi
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8388 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8389
8390 if test $ac_cv_cc_supports_pg = no; then
8391 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8392 fi
8393
8394 CFLAGS="$OLD_CFLAGS"
8395 fi
8396
8397
8398
8399 # Check whether --with-pkgversion was given.
8400 if test "${with_pkgversion+set}" = set; then :
8401 withval=$with_pkgversion; case "$withval" in
8402 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8403 no) PKGVERSION= ;;
8404 *) PKGVERSION="($withval) " ;;
8405 esac
8406 else
8407 PKGVERSION="(GDB) "
8408
8409 fi
8410
8411
8412
8413
8414
8415 # Check whether --with-bugurl was given.
8416 if test "${with_bugurl+set}" = set; then :
8417 withval=$with_bugurl; case "$withval" in
8418 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8419 no) BUGURL=
8420 ;;
8421 *) BUGURL="$withval"
8422 ;;
8423 esac
8424 else
8425 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8426
8427 fi
8428
8429 case ${BUGURL} in
8430 "")
8431 REPORT_BUGS_TO=
8432 REPORT_BUGS_TEXI=
8433 ;;
8434 *)
8435 REPORT_BUGS_TO="<$BUGURL>"
8436 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8437 ;;
8438 esac;
8439
8440
8441
8442
8443 cat >>confdefs.h <<_ACEOF
8444 #define PKGVERSION "$PKGVERSION"
8445 _ACEOF
8446
8447
8448 cat >>confdefs.h <<_ACEOF
8449 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8450 _ACEOF
8451
8452
8453 # --------------------- #
8454 # Checks for programs. #
8455 # --------------------- #
8456
8457 for ac_prog in gawk mawk nawk awk
8458 do
8459 # Extract the first word of "$ac_prog", so it can be a program name with args.
8460 set dummy $ac_prog; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if test "${ac_cv_prog_AWK+set}" = set; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 if test -n "$AWK"; then
8467 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8468 else
8469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8470 for as_dir in $PATH
8471 do
8472 IFS=$as_save_IFS
8473 test -z "$as_dir" && as_dir=.
8474 for ac_exec_ext in '' $ac_executable_extensions; do
8475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8476 ac_cv_prog_AWK="$ac_prog"
8477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8478 break 2
8479 fi
8480 done
8481 done
8482 IFS=$as_save_IFS
8483
8484 fi
8485 fi
8486 AWK=$ac_cv_prog_AWK
8487 if test -n "$AWK"; then
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8489 $as_echo "$AWK" >&6; }
8490 else
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8492 $as_echo "no" >&6; }
8493 fi
8494
8495
8496 test -n "$AWK" && break
8497 done
8498
8499
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8501 $as_echo_n "checking whether ln -s works... " >&6; }
8502 LN_S=$as_ln_s
8503 if test "$LN_S" = "ln -s"; then
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8505 $as_echo "yes" >&6; }
8506 else
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8508 $as_echo "no, using $LN_S" >&6; }
8509 fi
8510
8511 if test -n "$ac_tool_prefix"; then
8512 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8513 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 if test -n "$RANLIB"; then
8520 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8529 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531 break 2
8532 fi
8533 done
8534 done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 RANLIB=$ac_cv_prog_RANLIB
8540 if test -n "$RANLIB"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8542 $as_echo "$RANLIB" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549 fi
8550 if test -z "$ac_cv_prog_RANLIB"; then
8551 ac_ct_RANLIB=$RANLIB
8552 # Extract the first word of "ranlib", so it can be a program name with args.
8553 set dummy ranlib; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 if test -n "$ac_ct_RANLIB"; then
8560 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_prog_ac_ct_RANLIB="ranlib"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8572 fi
8573 done
8574 done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8580 if test -n "$ac_ct_RANLIB"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8582 $as_echo "$ac_ct_RANLIB" >&6; }
8583 else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588 if test "x$ac_ct_RANLIB" = x; then
8589 RANLIB=":"
8590 else
8591 case $cross_compiling:$ac_tool_warned in
8592 yes:)
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8595 ac_tool_warned=yes ;;
8596 esac
8597 RANLIB=$ac_ct_RANLIB
8598 fi
8599 else
8600 RANLIB="$ac_cv_prog_RANLIB"
8601 fi
8602
8603 for ac_prog in 'bison -y' byacc
8604 do
8605 # Extract the first word of "$ac_prog", so it can be a program name with args.
8606 set dummy $ac_prog; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if test "${ac_cv_prog_YACC+set}" = set; then :
8610 $as_echo_n "(cached) " >&6
8611 else
8612 if test -n "$YACC"; then
8613 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8614 else
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8617 do
8618 IFS=$as_save_IFS
8619 test -z "$as_dir" && as_dir=.
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8622 ac_cv_prog_YACC="$ac_prog"
8623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624 break 2
8625 fi
8626 done
8627 done
8628 IFS=$as_save_IFS
8629
8630 fi
8631 fi
8632 YACC=$ac_cv_prog_YACC
8633 if test -n "$YACC"; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8635 $as_echo "$YACC" >&6; }
8636 else
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8639 fi
8640
8641
8642 test -n "$YACC" && break
8643 done
8644 test -n "$YACC" || YACC="yacc"
8645
8646
8647 if test -n "$ac_tool_prefix"; then
8648 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8649 set dummy ${ac_tool_prefix}ar; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if test "${ac_cv_prog_AR+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 if test -n "$AR"; then
8656 ac_cv_prog_AR="$AR" # Let the user override the test.
8657 else
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 for as_dir in $PATH
8660 do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_prog_AR="${ac_tool_prefix}ar"
8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 break 2
8668 fi
8669 done
8670 done
8671 IFS=$as_save_IFS
8672
8673 fi
8674 fi
8675 AR=$ac_cv_prog_AR
8676 if test -n "$AR"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8678 $as_echo "$AR" >&6; }
8679 else
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8682 fi
8683
8684
8685 fi
8686 if test -z "$ac_cv_prog_AR"; then
8687 ac_ct_AR=$AR
8688 # Extract the first word of "ar", so it can be a program name with args.
8689 set dummy ar; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 if test -n "$ac_ct_AR"; then
8696 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8697 else
8698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701 IFS=$as_save_IFS
8702 test -z "$as_dir" && as_dir=.
8703 for ac_exec_ext in '' $ac_executable_extensions; do
8704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8705 ac_cv_prog_ac_ct_AR="ar"
8706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707 break 2
8708 fi
8709 done
8710 done
8711 IFS=$as_save_IFS
8712
8713 fi
8714 fi
8715 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8716 if test -n "$ac_ct_AR"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8718 $as_echo "$ac_ct_AR" >&6; }
8719 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8722 fi
8723
8724 if test "x$ac_ct_AR" = x; then
8725 AR=""
8726 else
8727 case $cross_compiling:$ac_tool_warned in
8728 yes:)
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8730 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8731 ac_tool_warned=yes ;;
8732 esac
8733 AR=$ac_ct_AR
8734 fi
8735 else
8736 AR="$ac_cv_prog_AR"
8737 fi
8738
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8741 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 if test -n "$DLLTOOL"; then
8748 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8752 do
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8757 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 break 2
8760 fi
8761 done
8762 done
8763 IFS=$as_save_IFS
8764
8765 fi
8766 fi
8767 DLLTOOL=$ac_cv_prog_DLLTOOL
8768 if test -n "$DLLTOOL"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8770 $as_echo "$DLLTOOL" >&6; }
8771 else
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773 $as_echo "no" >&6; }
8774 fi
8775
8776
8777 fi
8778 if test -z "$ac_cv_prog_DLLTOOL"; then
8779 ac_ct_DLLTOOL=$DLLTOOL
8780 # Extract the first word of "dlltool", so it can be a program name with args.
8781 set dummy dlltool; ac_word=$2
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783 $as_echo_n "checking for $ac_word... " >&6; }
8784 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 if test -n "$ac_ct_DLLTOOL"; then
8788 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8789 else
8790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791 for as_dir in $PATH
8792 do
8793 IFS=$as_save_IFS
8794 test -z "$as_dir" && as_dir=.
8795 for ac_exec_ext in '' $ac_executable_extensions; do
8796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799 break 2
8800 fi
8801 done
8802 done
8803 IFS=$as_save_IFS
8804
8805 fi
8806 fi
8807 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8808 if test -n "$ac_ct_DLLTOOL"; then
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8810 $as_echo "$ac_ct_DLLTOOL" >&6; }
8811 else
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813 $as_echo "no" >&6; }
8814 fi
8815
8816 if test "x$ac_ct_DLLTOOL" = x; then
8817 DLLTOOL=""
8818 else
8819 case $cross_compiling:$ac_tool_warned in
8820 yes:)
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8823 ac_tool_warned=yes ;;
8824 esac
8825 DLLTOOL=$ac_ct_DLLTOOL
8826 fi
8827 else
8828 DLLTOOL="$ac_cv_prog_DLLTOOL"
8829 fi
8830
8831 if test -n "$ac_tool_prefix"; then
8832 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8833 set dummy ${ac_tool_prefix}windres; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 if test -n "$WINDRES"; then
8840 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8841 else
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8844 do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8852 fi
8853 done
8854 done
8855 IFS=$as_save_IFS
8856
8857 fi
8858 fi
8859 WINDRES=$ac_cv_prog_WINDRES
8860 if test -n "$WINDRES"; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8862 $as_echo "$WINDRES" >&6; }
8863 else
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865 $as_echo "no" >&6; }
8866 fi
8867
8868
8869 fi
8870 if test -z "$ac_cv_prog_WINDRES"; then
8871 ac_ct_WINDRES=$WINDRES
8872 # Extract the first word of "windres", so it can be a program name with args.
8873 set dummy windres; ac_word=$2
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8875 $as_echo_n "checking for $ac_word... " >&6; }
8876 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 if test -n "$ac_ct_WINDRES"; then
8880 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8881 else
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8884 do
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_prog_ac_ct_WINDRES="windres"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8892 fi
8893 done
8894 done
8895 IFS=$as_save_IFS
8896
8897 fi
8898 fi
8899 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8900 if test -n "$ac_ct_WINDRES"; then
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8902 $as_echo "$ac_ct_WINDRES" >&6; }
8903 else
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8906 fi
8907
8908 if test "x$ac_ct_WINDRES" = x; then
8909 WINDRES=""
8910 else
8911 case $cross_compiling:$ac_tool_warned in
8912 yes:)
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8915 ac_tool_warned=yes ;;
8916 esac
8917 WINDRES=$ac_ct_WINDRES
8918 fi
8919 else
8920 WINDRES="$ac_cv_prog_WINDRES"
8921 fi
8922
8923
8924 # Needed for GNU/Hurd.
8925 if test -n "$ac_tool_prefix"; then
8926 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8927 set dummy ${ac_tool_prefix}mig; ac_word=$2
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929 $as_echo_n "checking for $ac_word... " >&6; }
8930 if test "${ac_cv_prog_MIG+set}" = set; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 if test -n "$MIG"; then
8934 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8935 else
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8938 do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8943 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947 done
8948 done
8949 IFS=$as_save_IFS
8950
8951 fi
8952 fi
8953 MIG=$ac_cv_prog_MIG
8954 if test -n "$MIG"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8956 $as_echo "$MIG" >&6; }
8957 else
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8960 fi
8961
8962
8963 fi
8964 if test -z "$ac_cv_prog_MIG"; then
8965 ac_ct_MIG=$MIG
8966 # Extract the first word of "mig", so it can be a program name with args.
8967 set dummy mig; ac_word=$2
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969 $as_echo_n "checking for $ac_word... " >&6; }
8970 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 if test -n "$ac_ct_MIG"; then
8974 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
8975 else
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in $PATH
8978 do
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8983 ac_cv_prog_ac_ct_MIG="mig"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8986 fi
8987 done
8988 done
8989 IFS=$as_save_IFS
8990
8991 fi
8992 fi
8993 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
8994 if test -n "$ac_ct_MIG"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
8996 $as_echo "$ac_ct_MIG" >&6; }
8997 else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9000 fi
9001
9002 if test "x$ac_ct_MIG" = x; then
9003 MIG=""
9004 else
9005 case $cross_compiling:$ac_tool_warned in
9006 yes:)
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9009 ac_tool_warned=yes ;;
9010 esac
9011 MIG=$ac_ct_MIG
9012 fi
9013 else
9014 MIG="$ac_cv_prog_MIG"
9015 fi
9016
9017
9018 # ---------------------- #
9019 # Checks for libraries. #
9020 # ---------------------- #
9021
9022 # We might need to link with -lm; most simulators need it.
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9024 $as_echo_n "checking for main in -lm... " >&6; }
9025 if test "${ac_cv_lib_m_main+set}" = set; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 ac_check_lib_save_LIBS=$LIBS
9029 LIBS="-lm $LIBS"
9030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* end confdefs.h. */
9032
9033
9034 int
9035 main ()
9036 {
9037 return main ();
9038 ;
9039 return 0;
9040 }
9041 _ACEOF
9042 if ac_fn_c_try_link "$LINENO"; then :
9043 ac_cv_lib_m_main=yes
9044 else
9045 ac_cv_lib_m_main=no
9046 fi
9047 rm -f core conftest.err conftest.$ac_objext \
9048 conftest$ac_exeext conftest.$ac_ext
9049 LIBS=$ac_check_lib_save_LIBS
9050 fi
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9052 $as_echo "$ac_cv_lib_m_main" >&6; }
9053 if test "x$ac_cv_lib_m_main" = x""yes; then :
9054 cat >>confdefs.h <<_ACEOF
9055 #define HAVE_LIBM 1
9056 _ACEOF
9057
9058 LIBS="-lm $LIBS"
9059
9060 fi
9061
9062
9063 # We need to link with -lw to get `wctype' on Solaris before Solaris
9064 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9065 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9066 # is known to have this problem). Therefore we avoid libw if we can.
9067 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9068 if test "x$ac_cv_func_wctype" = x""yes; then :
9069
9070 else
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9072 $as_echo_n "checking for wctype in -lw... " >&6; }
9073 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 ac_check_lib_save_LIBS=$LIBS
9077 LIBS="-lw $LIBS"
9078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9084 #ifdef __cplusplus
9085 extern "C"
9086 #endif
9087 char wctype ();
9088 int
9089 main ()
9090 {
9091 return wctype ();
9092 ;
9093 return 0;
9094 }
9095 _ACEOF
9096 if ac_fn_c_try_link "$LINENO"; then :
9097 ac_cv_lib_w_wctype=yes
9098 else
9099 ac_cv_lib_w_wctype=no
9100 fi
9101 rm -f core conftest.err conftest.$ac_objext \
9102 conftest$ac_exeext conftest.$ac_ext
9103 LIBS=$ac_check_lib_save_LIBS
9104 fi
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9106 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9107 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9108 cat >>confdefs.h <<_ACEOF
9109 #define HAVE_LIBW 1
9110 _ACEOF
9111
9112 LIBS="-lw $LIBS"
9113
9114 fi
9115
9116 fi
9117
9118
9119 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9121 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9122 if test "${ac_cv_search_gethostbyname+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 gethostbyname ();
9136 int
9137 main ()
9138 {
9139 return gethostbyname ();
9140 ;
9141 return 0;
9142 }
9143 _ACEOF
9144 for ac_lib in '' nsl; 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_gethostbyname=$ac_res
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext \
9155 conftest$ac_exeext
9156 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9157 break
9158 fi
9159 done
9160 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9161
9162 else
9163 ac_cv_search_gethostbyname=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_gethostbyname" >&5
9169 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9170 ac_res=$ac_cv_search_gethostbyname
9171 if test "$ac_res" != no; then :
9172 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9173
9174 fi
9175
9176
9177 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9179 $as_echo_n "checking for library containing socketpair... " >&6; }
9180 if test "${ac_cv_search_socketpair+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9182 else
9183 ac_func_search_save_LIBS=$LIBS
9184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9185 /* end confdefs.h. */
9186
9187 /* Override any GCC internal prototype to avoid an error.
9188 Use char because int might match the return type of a GCC
9189 builtin and then its argument prototype would still apply. */
9190 #ifdef __cplusplus
9191 extern "C"
9192 #endif
9193 char socketpair ();
9194 int
9195 main ()
9196 {
9197 return socketpair ();
9198 ;
9199 return 0;
9200 }
9201 _ACEOF
9202 for ac_lib in '' socket; do
9203 if test -z "$ac_lib"; then
9204 ac_res="none required"
9205 else
9206 ac_res=-l$ac_lib
9207 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9208 fi
9209 if ac_fn_c_try_link "$LINENO"; then :
9210 ac_cv_search_socketpair=$ac_res
9211 fi
9212 rm -f core conftest.err conftest.$ac_objext \
9213 conftest$ac_exeext
9214 if test "${ac_cv_search_socketpair+set}" = set; then :
9215 break
9216 fi
9217 done
9218 if test "${ac_cv_search_socketpair+set}" = set; then :
9219
9220 else
9221 ac_cv_search_socketpair=no
9222 fi
9223 rm conftest.$ac_ext
9224 LIBS=$ac_func_search_save_LIBS
9225 fi
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9227 $as_echo "$ac_cv_search_socketpair" >&6; }
9228 ac_res=$ac_cv_search_socketpair
9229 if test "$ac_res" != no; then :
9230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9231
9232 fi
9233
9234
9235 # Link in zlib if we can. This allows us to read compressed debug sections.
9236
9237 # See if the user specified whether he wants zlib support or not.
9238
9239 # Check whether --with-zlib was given.
9240 if test "${with_zlib+set}" = set; then :
9241 withval=$with_zlib;
9242 else
9243 with_zlib=auto
9244 fi
9245
9246
9247 if test "$with_zlib" != "no"; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9249 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9250 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9251 $as_echo_n "(cached) " >&6
9252 else
9253 ac_func_search_save_LIBS=$LIBS
9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9255 /* end confdefs.h. */
9256
9257 /* Override any GCC internal prototype to avoid an error.
9258 Use char because int might match the return type of a GCC
9259 builtin and then its argument prototype would still apply. */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 char zlibVersion ();
9264 int
9265 main ()
9266 {
9267 return zlibVersion ();
9268 ;
9269 return 0;
9270 }
9271 _ACEOF
9272 for ac_lib in '' z; do
9273 if test -z "$ac_lib"; then
9274 ac_res="none required"
9275 else
9276 ac_res=-l$ac_lib
9277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9278 fi
9279 if ac_fn_c_try_link "$LINENO"; then :
9280 ac_cv_search_zlibVersion=$ac_res
9281 fi
9282 rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext
9284 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9285 break
9286 fi
9287 done
9288 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9289
9290 else
9291 ac_cv_search_zlibVersion=no
9292 fi
9293 rm conftest.$ac_ext
9294 LIBS=$ac_func_search_save_LIBS
9295 fi
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9297 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9298 ac_res=$ac_cv_search_zlibVersion
9299 if test "$ac_res" != no; then :
9300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9301 for ac_header in zlib.h
9302 do :
9303 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9304 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9305 cat >>confdefs.h <<_ACEOF
9306 #define HAVE_ZLIB_H 1
9307 _ACEOF
9308
9309 fi
9310
9311 done
9312
9313 fi
9314
9315 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9316 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9317 fi
9318 fi
9319
9320
9321 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9323 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9324 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327 ac_func_search_save_LIBS=$LIBS
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330
9331 /* Override any GCC internal prototype to avoid an error.
9332 Use char because int might match the return type of a GCC
9333 builtin and then its argument prototype would still apply. */
9334 #ifdef __cplusplus
9335 extern "C"
9336 #endif
9337 char dlgetmodinfo ();
9338 int
9339 main ()
9340 {
9341 return dlgetmodinfo ();
9342 ;
9343 return 0;
9344 }
9345 _ACEOF
9346 for ac_lib in '' dl xpdl; do
9347 if test -z "$ac_lib"; then
9348 ac_res="none required"
9349 else
9350 ac_res=-l$ac_lib
9351 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9352 fi
9353 if ac_fn_c_try_link "$LINENO"; then :
9354 ac_cv_search_dlgetmodinfo=$ac_res
9355 fi
9356 rm -f core conftest.err conftest.$ac_objext \
9357 conftest$ac_exeext
9358 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9359 break
9360 fi
9361 done
9362 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9363
9364 else
9365 ac_cv_search_dlgetmodinfo=no
9366 fi
9367 rm conftest.$ac_ext
9368 LIBS=$ac_func_search_save_LIBS
9369 fi
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9371 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9372 ac_res=$ac_cv_search_dlgetmodinfo
9373 if test "$ac_res" != no; then :
9374 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9375
9376 fi
9377
9378
9379
9380
9381
9382 # Check whether --with-libiconv-prefix was given.
9383 if test "${with_libiconv_prefix+set}" = set; then :
9384 withval=$with_libiconv_prefix;
9385 for dir in `echo "$withval" | tr : ' '`; do
9386 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9387 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9388 done
9389
9390 fi
9391
9392
9393 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9394 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9395
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9397 $as_echo_n "checking for iconv... " >&6; }
9398 if test "${am_cv_func_iconv+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401
9402 am_cv_func_iconv="no, consider installing GNU libiconv"
9403 am_cv_lib_iconv=no
9404 am_cv_use_build_libiconv=no
9405 am_cv_build_libiconv_path=
9406
9407 # If libiconv is part of the build tree, then try using it over
9408 # any system iconv.
9409 if test -d ../libiconv; then
9410 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9411 am_save_LIBS="$LIBS"
9412 am_save_CPPFLAGS="$CPPFLAGS"
9413 LIBS="$LIBS $lib_dir/libiconv.a"
9414 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 #include <stdlib.h>
9418 #include <iconv.h>
9419 int
9420 main ()
9421 {
9422 iconv_t cd = iconv_open("","");
9423 iconv(cd,NULL,NULL,NULL,NULL);
9424 iconv_close(cd);
9425 ;
9426 return 0;
9427 }
9428 _ACEOF
9429 if ac_fn_c_try_link "$LINENO"; then :
9430 am_cv_use_build_libiconv=yes
9431 am_cv_build_libiconv_path=$lib_dir/libiconv.a
9432 am_cv_lib_iconv=yes
9433 am_cv_func_iconv=yes
9434 fi
9435 rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
9437 LIBS="$am_save_LIBS"
9438 CPPFLAGS="$am_save_CPPFLAGS"
9439 if test "$am_cv_use_build_libiconv" = "yes"; then
9440 break
9441 fi
9442 done
9443 fi
9444
9445 # Next, try to find iconv in libc.
9446 if test "$am_cv_func_iconv" != yes; then
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449 #include <stdlib.h>
9450 #include <iconv.h>
9451 int
9452 main ()
9453 {
9454 iconv_t cd = iconv_open("","");
9455 iconv(cd,NULL,NULL,NULL,NULL);
9456 iconv_close(cd);
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"; then :
9462 am_cv_func_iconv=yes
9463 fi
9464 rm -f core conftest.err conftest.$ac_objext \
9465 conftest$ac_exeext conftest.$ac_ext
9466 fi
9467
9468 # If iconv was not in libc, try -liconv. In this case, arrange to
9469 # look in the libiconv prefix, if it was specified by the user.
9470 if test "$am_cv_func_iconv" != yes; then
9471 am_save_CPPFLAGS="$CPPFLAGS"
9472 am_save_LIBS="$LIBS"
9473 if test -n "$LIBICONV_INCLUDE"; then
9474 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9475 LIBS="$LIBS $LIBICONV_LIBDIR"
9476 fi
9477 LIBS="$LIBS -liconv"
9478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9479 /* end confdefs.h. */
9480 #include <stdlib.h>
9481 #include <iconv.h>
9482 int
9483 main ()
9484 {
9485 iconv_t cd = iconv_open("","");
9486 iconv(cd,NULL,NULL,NULL,NULL);
9487 iconv_close(cd);
9488 ;
9489 return 0;
9490 }
9491 _ACEOF
9492 if ac_fn_c_try_link "$LINENO"; then :
9493 am_cv_lib_iconv=yes
9494 am_cv_func_iconv=yes
9495 fi
9496 rm -f core conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9498 LIBS="$am_save_LIBS"
9499 CPPFLAGS="$am_save_CPPFLAGS"
9500 fi
9501
9502 fi
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9504 $as_echo "$am_cv_func_iconv" >&6; }
9505
9506 # Set the various flags based on the cache variables. We can't rely
9507 # on the flags to remain set from the above code, due to caching.
9508 LIBICONV=
9509 if test "$am_cv_lib_iconv" = yes; then
9510 LIBICONV="-liconv"
9511 else
9512 LIBICONV_LIBDIR=
9513 LIBICONV_INCLUDE=
9514 fi
9515 if test "$am_cv_use_build_libiconv" = yes; then
9516 LIBICONV="$am_cv_build_libiconv_path"
9517 LIBICONV_LIBDIR=""
9518 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9519 fi
9520 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9521 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9522
9523 if test "$am_cv_func_iconv" = yes; then
9524
9525 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9526
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9528 $as_echo_n "checking for iconv declaration... " >&6; }
9529 if test "${am_cv_proto_iconv+set}" = set; then :
9530 $as_echo_n "(cached) " >&6
9531 else
9532
9533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9534 /* end confdefs.h. */
9535
9536 #include <stdlib.h>
9537 #include <iconv.h>
9538 extern
9539 #ifdef __cplusplus
9540 "C"
9541 #endif
9542 #if defined(__STDC__) || defined(__cplusplus)
9543 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9544 #else
9545 size_t iconv();
9546 #endif
9547
9548 int
9549 main ()
9550 {
9551
9552 ;
9553 return 0;
9554 }
9555 _ACEOF
9556 if ac_fn_c_try_compile "$LINENO"; then :
9557 am_cv_proto_iconv_arg1=""
9558 else
9559 am_cv_proto_iconv_arg1="const"
9560 fi
9561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9562 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);"
9563 fi
9564
9565 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9567 }$am_cv_proto_iconv" >&5
9568 $as_echo "${ac_t:-
9569 }$am_cv_proto_iconv" >&6; }
9570
9571 cat >>confdefs.h <<_ACEOF
9572 #define ICONV_CONST $am_cv_proto_iconv_arg1
9573 _ACEOF
9574
9575 fi
9576
9577
9578 # GDB may fork/exec the iconv program to get the list of supported character
9579 # sets. Allow the user to specify where to find it.
9580 # There are several factors affecting the choice of option name:
9581 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9582 # the build-time location of libiconv files.
9583 # - The program we need to find is iconv, which comes with glibc. The user
9584 # doesn't necessarily have libiconv installed. Therefore naming this
9585 # --with-libiconv-foo feels wrong.
9586 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9587 # defined to work on directories not files (though it really doesn't know
9588 # the difference).
9589 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9590 # with --with-libiconv-prefix.
9591 # Putting these together is why the option name is --with-iconv-bin.
9592
9593
9594 # Check whether --with-iconv-bin was given.
9595 if test "${with_iconv_bin+set}" = set; then :
9596 withval=$with_iconv_bin; iconv_bin="${withval}"
9597
9598 cat >>confdefs.h <<_ACEOF
9599 #define ICONV_BIN "${iconv_bin}"
9600 _ACEOF
9601
9602
9603 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9604 if test "x$prefix" = xNONE; then
9605 test_prefix=/usr/local
9606 else
9607 test_prefix=$prefix
9608 fi
9609 else
9610 test_prefix=$exec_prefix
9611 fi
9612 value=0
9613 case ${iconv_bin} in
9614 "${test_prefix}"|"${test_prefix}/"*|\
9615 '${exec_prefix}'|'${exec_prefix}/'*)
9616 value=1
9617 ;;
9618 esac
9619
9620 cat >>confdefs.h <<_ACEOF
9621 #define ICONV_BIN_RELOCATABLE $value
9622 _ACEOF
9623
9624
9625
9626 fi
9627
9628
9629 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9630 # There is a very specific comment in /usr/include/curses.h explaining that
9631 # termcap routines built into libcurses must not be used.
9632 #
9633 # The symptoms we observed so far is GDB unexpectedly changing
9634 # the terminal settings when tgetent is called - this is particularly
9635 # visible as the output is missing carriage returns, and so rapidly
9636 # becomes very hard to read.
9637 #
9638 # The readline configure script has already decided that libtermcap
9639 # was enough for its purposes, and so decided to build readline using
9640 # libtermcap. Since the TUI mode requires curses, building GDB with
9641 # TUI enabled results in both libraries to be used at the same time,
9642 # which is not allowed. This basically means that GDB with TUI is
9643 # broken on alpha-osf.
9644
9645 case $host_os in
9646 osf* )
9647 if test x"$enable_tui" = xyes; then
9648 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9649 fi
9650 if test x"$enable_tui" = xauto; then
9651 enable_tui=no
9652 fi
9653 ;;
9654 esac
9655
9656 # For the TUI, we need enhanced curses functionality.
9657 if test x"$enable_tui" != xno; then
9658 prefer_curses=yes
9659 fi
9660
9661 curses_found=no
9662 if test x"$prefer_curses" = xyes; then
9663 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9664 # curses library because the latter might not provide all the
9665 # functionality we need. However, this leads to problems on systems
9666 # where the linker searches /usr/local/lib, but the compiler doesn't
9667 # search /usr/local/include, if ncurses is installed in /usr/local. A
9668 # default installation of ncurses on alpha*-dec-osf* will lead to such
9669 # a situation.
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9671 $as_echo_n "checking for library containing waddstr... " >&6; }
9672 if test "${ac_cv_search_waddstr+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
9674 else
9675 ac_func_search_save_LIBS=$LIBS
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677 /* end confdefs.h. */
9678
9679 /* Override any GCC internal prototype to avoid an error.
9680 Use char because int might match the return type of a GCC
9681 builtin and then its argument prototype would still apply. */
9682 #ifdef __cplusplus
9683 extern "C"
9684 #endif
9685 char waddstr ();
9686 int
9687 main ()
9688 {
9689 return waddstr ();
9690 ;
9691 return 0;
9692 }
9693 _ACEOF
9694 for ac_lib in '' ncurses cursesX curses; do
9695 if test -z "$ac_lib"; then
9696 ac_res="none required"
9697 else
9698 ac_res=-l$ac_lib
9699 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9700 fi
9701 if ac_fn_c_try_link "$LINENO"; then :
9702 ac_cv_search_waddstr=$ac_res
9703 fi
9704 rm -f core conftest.err conftest.$ac_objext \
9705 conftest$ac_exeext
9706 if test "${ac_cv_search_waddstr+set}" = set; then :
9707 break
9708 fi
9709 done
9710 if test "${ac_cv_search_waddstr+set}" = set; then :
9711
9712 else
9713 ac_cv_search_waddstr=no
9714 fi
9715 rm conftest.$ac_ext
9716 LIBS=$ac_func_search_save_LIBS
9717 fi
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9719 $as_echo "$ac_cv_search_waddstr" >&6; }
9720 ac_res=$ac_cv_search_waddstr
9721 if test "$ac_res" != no; then :
9722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9723
9724 fi
9725
9726
9727 if test "$ac_cv_search_waddstr" != no; then
9728 curses_found=yes
9729 fi
9730 fi
9731
9732 # Check whether we should enable the TUI, but only do so if we really
9733 # can.
9734 if test x"$enable_tui" != xno; then
9735 if test -d $srcdir/tui; then
9736 if test "$curses_found" != no; then
9737 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9738 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9739 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9740 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9741 else
9742 if test x"$enable_tui" = xyes; then
9743 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9744 else
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9746 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9747 fi
9748 fi
9749 fi
9750 fi
9751
9752 # Since GDB uses Readline, we need termcap functionality. In many
9753 # cases this will be provided by the curses library, but some systems
9754 # have a seperate termcap library, or no curses library at all.
9755
9756 case $host_os in
9757 cygwin*)
9758 if test -d $srcdir/libtermcap; then
9759 LIBS="../libtermcap/libtermcap.a $LIBS"
9760 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9761 fi ;;
9762 go32* | *djgpp*)
9763 ac_cv_search_tgetent="none required"
9764 ;;
9765 *mingw32*)
9766 ac_cv_search_tgetent="none required"
9767 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9768 ;;
9769 esac
9770
9771 # These are the libraries checked by Readline.
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9773 $as_echo_n "checking for library containing tgetent... " >&6; }
9774 if test "${ac_cv_search_tgetent+set}" = set; then :
9775 $as_echo_n "(cached) " >&6
9776 else
9777 ac_func_search_save_LIBS=$LIBS
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780
9781 /* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
9784 #ifdef __cplusplus
9785 extern "C"
9786 #endif
9787 char tgetent ();
9788 int
9789 main ()
9790 {
9791 return tgetent ();
9792 ;
9793 return 0;
9794 }
9795 _ACEOF
9796 for ac_lib in '' termcap tinfo curses ncurses; do
9797 if test -z "$ac_lib"; then
9798 ac_res="none required"
9799 else
9800 ac_res=-l$ac_lib
9801 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9802 fi
9803 if ac_fn_c_try_link "$LINENO"; then :
9804 ac_cv_search_tgetent=$ac_res
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext
9808 if test "${ac_cv_search_tgetent+set}" = set; then :
9809 break
9810 fi
9811 done
9812 if test "${ac_cv_search_tgetent+set}" = set; then :
9813
9814 else
9815 ac_cv_search_tgetent=no
9816 fi
9817 rm conftest.$ac_ext
9818 LIBS=$ac_func_search_save_LIBS
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9821 $as_echo "$ac_cv_search_tgetent" >&6; }
9822 ac_res=$ac_cv_search_tgetent
9823 if test "$ac_res" != no; then :
9824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9825
9826 fi
9827
9828
9829 if test "$ac_cv_search_tgetent" = no; then
9830 as_fn_error "no termcap library found" "$LINENO" 5
9831 fi
9832
9833
9834 # Check whether --with-system-readline was given.
9835 if test "${with_system_readline+set}" = set; then :
9836 withval=$with_system_readline;
9837 fi
9838
9839
9840 if test "$with_system_readline" = yes; then
9841 READLINE=-lreadline
9842 READLINE_DEPS=
9843 READLINE_CFLAGS=
9844 READLINE_TEXI_INCFLAG=
9845 else
9846 READLINE='$(READLINE_DIR)/libreadline.a'
9847 READLINE_DEPS='$(READLINE)'
9848 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9849 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9850 fi
9851
9852
9853
9854
9855
9856 # Generate jit-reader.h
9857
9858 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9859 TARGET_PTR=
9860
9861 # The cast to long int works around a bug in the HP C Compiler
9862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9864 # This bug is HP SR number 8606223364.
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9866 $as_echo_n "checking size of unsigned long long... " >&6; }
9867 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9869 else
9870 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9871
9872 else
9873 if test "$ac_cv_type_unsigned_long_long" = yes; then
9874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9876 { as_fn_set_status 77
9877 as_fn_error "cannot compute sizeof (unsigned long long)
9878 See \`config.log' for more details." "$LINENO" 5; }; }
9879 else
9880 ac_cv_sizeof_unsigned_long_long=0
9881 fi
9882 fi
9883
9884 fi
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9886 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9887
9888
9889
9890 cat >>confdefs.h <<_ACEOF
9891 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9892 _ACEOF
9893
9894
9895 # The cast to long int works around a bug in the HP C Compiler
9896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9898 # This bug is HP SR number 8606223364.
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9900 $as_echo_n "checking size of unsigned long... " >&6; }
9901 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
9902 $as_echo_n "(cached) " >&6
9903 else
9904 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9905
9906 else
9907 if test "$ac_cv_type_unsigned_long" = yes; then
9908 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9910 { as_fn_set_status 77
9911 as_fn_error "cannot compute sizeof (unsigned long)
9912 See \`config.log' for more details." "$LINENO" 5; }; }
9913 else
9914 ac_cv_sizeof_unsigned_long=0
9915 fi
9916 fi
9917
9918 fi
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9920 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9921
9922
9923
9924 cat >>confdefs.h <<_ACEOF
9925 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9926 _ACEOF
9927
9928
9929 # The cast to long int works around a bug in the HP C Compiler
9930 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9931 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9932 # This bug is HP SR number 8606223364.
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9934 $as_echo_n "checking size of unsigned __int128... " >&6; }
9935 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9939
9940 else
9941 if test "$ac_cv_type_unsigned___int128" = yes; then
9942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9944 { as_fn_set_status 77
9945 as_fn_error "cannot compute sizeof (unsigned __int128)
9946 See \`config.log' for more details." "$LINENO" 5; }; }
9947 else
9948 ac_cv_sizeof_unsigned___int128=0
9949 fi
9950 fi
9951
9952 fi
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9954 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9955
9956
9957
9958 cat >>confdefs.h <<_ACEOF
9959 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9960 _ACEOF
9961
9962
9963
9964 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9965 TARGET_PTR="unsigned long"
9966 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9967 TARGET_PTR="unsigned long long"
9968 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9969 TARGET_PTR="unsigned __int128"
9970 else
9971 TARGET_PTR="unsigned long"
9972 fi
9973
9974
9975 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
9976
9977
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9979 $as_echo_n "checking for library containing dlopen... " >&6; }
9980 if test "${ac_cv_search_dlopen+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983 ac_func_search_save_LIBS=$LIBS
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986
9987 /* Override any GCC internal prototype to avoid an error.
9988 Use char because int might match the return type of a GCC
9989 builtin and then its argument prototype would still apply. */
9990 #ifdef __cplusplus
9991 extern "C"
9992 #endif
9993 char dlopen ();
9994 int
9995 main ()
9996 {
9997 return dlopen ();
9998 ;
9999 return 0;
10000 }
10001 _ACEOF
10002 for ac_lib in '' dl; do
10003 if test -z "$ac_lib"; then
10004 ac_res="none required"
10005 else
10006 ac_res=-l$ac_lib
10007 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10008 fi
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 ac_cv_search_dlopen=$ac_res
10011 fi
10012 rm -f core conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext
10014 if test "${ac_cv_search_dlopen+set}" = set; then :
10015 break
10016 fi
10017 done
10018 if test "${ac_cv_search_dlopen+set}" = set; then :
10019
10020 else
10021 ac_cv_search_dlopen=no
10022 fi
10023 rm conftest.$ac_ext
10024 LIBS=$ac_func_search_save_LIBS
10025 fi
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10027 $as_echo "$ac_cv_search_dlopen" >&6; }
10028 ac_res=$ac_cv_search_dlopen
10029 if test "$ac_res" != no; then :
10030 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10031
10032 fi
10033
10034
10035
10036
10037 # Check whether --with-jit-reader-dir was given.
10038 if test "${with_jit_reader_dir+set}" = set; then :
10039 withval=$with_jit_reader_dir;
10040 JIT_READER_DIR=$withval
10041 else
10042 JIT_READER_DIR=${libdir}/gdb
10043 fi
10044
10045
10046 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
10047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10048 ac_define_dir=`eval echo $JIT_READER_DIR`
10049 ac_define_dir=`eval echo $ac_define_dir`
10050
10051 cat >>confdefs.h <<_ACEOF
10052 #define JIT_READER_DIR "$ac_define_dir"
10053 _ACEOF
10054
10055
10056
10057
10058 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10059 if test "x$prefix" = xNONE; then
10060 test_prefix=/usr/local
10061 else
10062 test_prefix=$prefix
10063 fi
10064 else
10065 test_prefix=$exec_prefix
10066 fi
10067 value=0
10068 case ${ac_define_dir} in
10069 "${test_prefix}"|"${test_prefix}/"*|\
10070 '${exec_prefix}'|'${exec_prefix}/'*)
10071 value=1
10072 ;;
10073 esac
10074
10075 cat >>confdefs.h <<_ACEOF
10076 #define JIT_READER_DIR_RELOCATABLE $value
10077 _ACEOF
10078
10079
10080
10081
10082
10083 # Check whether --with-expat was given.
10084 if test "${with_expat+set}" = set; then :
10085 withval=$with_expat;
10086 else
10087 with_expat=auto
10088 fi
10089
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
10091 $as_echo_n "checking whether to use expat... " >&6; }
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
10093 $as_echo "$with_expat" >&6; }
10094
10095 if test "${with_expat}" = no; then
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
10097 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10098 HAVE_LIBEXPAT=no
10099 else
10100
10101 if test "X$prefix" = "XNONE"; then
10102 acl_final_prefix="$ac_default_prefix"
10103 else
10104 acl_final_prefix="$prefix"
10105 fi
10106 if test "X$exec_prefix" = "XNONE"; then
10107 acl_final_exec_prefix='${prefix}'
10108 else
10109 acl_final_exec_prefix="$exec_prefix"
10110 fi
10111 acl_save_prefix="$prefix"
10112 prefix="$acl_final_prefix"
10113 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10114 prefix="$acl_save_prefix"
10115
10116
10117 # Check whether --with-gnu-ld was given.
10118 if test "${with_gnu_ld+set}" = set; then :
10119 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10120 else
10121 with_gnu_ld=no
10122 fi
10123
10124 # Prepare PATH_SEPARATOR.
10125 # The user is always right.
10126 if test "${PATH_SEPARATOR+set}" != set; then
10127 echo "#! /bin/sh" >conf$$.sh
10128 echo "exit 0" >>conf$$.sh
10129 chmod +x conf$$.sh
10130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10131 PATH_SEPARATOR=';'
10132 else
10133 PATH_SEPARATOR=:
10134 fi
10135 rm -f conf$$.sh
10136 fi
10137 ac_prog=ld
10138 if test "$GCC" = yes; then
10139 # Check if gcc -print-prog-name=ld gives a path.
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10141 $as_echo_n "checking for ld used by GCC... " >&6; }
10142 case $host in
10143 *-*-mingw*)
10144 # gcc leaves a trailing carriage return which upsets mingw
10145 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10146 *)
10147 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10148 esac
10149 case $ac_prog in
10150 # Accept absolute paths.
10151 [\\/]* | [A-Za-z]:[\\/]*)
10152 re_direlt='/[^/][^/]*/\.\./'
10153 # Canonicalize the path of ld
10154 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10155 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10156 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10157 done
10158 test -z "$LD" && LD="$ac_prog"
10159 ;;
10160 "")
10161 # If it fails, then pretend we aren't using GCC.
10162 ac_prog=ld
10163 ;;
10164 *)
10165 # If it is relative, then search for the first ld in PATH.
10166 with_gnu_ld=unknown
10167 ;;
10168 esac
10169 elif test "$with_gnu_ld" = yes; then
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10171 $as_echo_n "checking for GNU ld... " >&6; }
10172 else
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10174 $as_echo_n "checking for non-GNU ld... " >&6; }
10175 fi
10176 if test "${acl_cv_path_LD+set}" = set; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 if test -z "$LD"; then
10180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10181 for ac_dir in $PATH; do
10182 test -z "$ac_dir" && ac_dir=.
10183 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10184 acl_cv_path_LD="$ac_dir/$ac_prog"
10185 # Check to see if the program is GNU ld. I'd rather use --version,
10186 # but apparently some GNU ld's only accept -v.
10187 # Break only if it was the GNU/non-GNU ld that we prefer.
10188 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10189 test "$with_gnu_ld" != no && break
10190 else
10191 test "$with_gnu_ld" != yes && break
10192 fi
10193 fi
10194 done
10195 IFS="$ac_save_ifs"
10196 else
10197 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10198 fi
10199 fi
10200
10201 LD="$acl_cv_path_LD"
10202 if test -n "$LD"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10204 $as_echo "$LD" >&6; }
10205 else
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10208 fi
10209 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10211 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10212 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10216 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10217 acl_cv_prog_gnu_ld=yes
10218 else
10219 acl_cv_prog_gnu_ld=no
10220 fi
10221 fi
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10223 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10224 with_gnu_ld=$acl_cv_prog_gnu_ld
10225
10226
10227
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10229 $as_echo_n "checking for shared library run path origin... " >&6; }
10230 if test "${acl_cv_rpath+set}" = set; then :
10231 $as_echo_n "(cached) " >&6
10232 else
10233
10234 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10235 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10236 . ./conftest.sh
10237 rm -f ./conftest.sh
10238 acl_cv_rpath=done
10239
10240 fi
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10242 $as_echo "$acl_cv_rpath" >&6; }
10243 wl="$acl_cv_wl"
10244 libext="$acl_cv_libext"
10245 shlibext="$acl_cv_shlibext"
10246 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10247 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10248 hardcode_direct="$acl_cv_hardcode_direct"
10249 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10250 # Check whether --enable-rpath was given.
10251 if test "${enable_rpath+set}" = set; then :
10252 enableval=$enable_rpath; :
10253 else
10254 enable_rpath=yes
10255 fi
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 use_additional=yes
10267
10268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10272
10273 eval additional_includedir=\"$includedir\"
10274 eval additional_libdir=\"$libdir\"
10275
10276 exec_prefix="$acl_save_exec_prefix"
10277 prefix="$acl_save_prefix"
10278
10279
10280 # Check whether --with-libexpat-prefix was given.
10281 if test "${with_libexpat_prefix+set}" = set; then :
10282 withval=$with_libexpat_prefix;
10283 if test "X$withval" = "Xno"; then
10284 use_additional=no
10285 else
10286 if test "X$withval" = "X"; then
10287
10288 acl_save_prefix="$prefix"
10289 prefix="$acl_final_prefix"
10290 acl_save_exec_prefix="$exec_prefix"
10291 exec_prefix="$acl_final_exec_prefix"
10292
10293 eval additional_includedir=\"$includedir\"
10294 eval additional_libdir=\"$libdir\"
10295
10296 exec_prefix="$acl_save_exec_prefix"
10297 prefix="$acl_save_prefix"
10298
10299 else
10300 additional_includedir="$withval/include"
10301 additional_libdir="$withval/lib"
10302 fi
10303 fi
10304
10305 fi
10306
10307 LIBEXPAT=
10308 LTLIBEXPAT=
10309 INCEXPAT=
10310 rpathdirs=
10311 ltrpathdirs=
10312 names_already_handled=
10313 names_next_round='expat '
10314 while test -n "$names_next_round"; do
10315 names_this_round="$names_next_round"
10316 names_next_round=
10317 for name in $names_this_round; do
10318 already_handled=
10319 for n in $names_already_handled; do
10320 if test "$n" = "$name"; then
10321 already_handled=yes
10322 break
10323 fi
10324 done
10325 if test -z "$already_handled"; then
10326 names_already_handled="$names_already_handled $name"
10327 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10328 eval value=\"\$HAVE_LIB$uppername\"
10329 if test -n "$value"; then
10330 if test "$value" = yes; then
10331 eval value=\"\$LIB$uppername\"
10332 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10333 eval value=\"\$LTLIB$uppername\"
10334 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10335 else
10336 :
10337 fi
10338 else
10339 found_dir=
10340 found_la=
10341 found_so=
10342 found_a=
10343 if test $use_additional = yes; then
10344 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10345 found_dir="$additional_libdir"
10346 found_so="$additional_libdir/lib$name.$shlibext"
10347 if test -f "$additional_libdir/lib$name.la"; then
10348 found_la="$additional_libdir/lib$name.la"
10349 fi
10350 else
10351 if test -f "$additional_libdir/lib$name.$libext"; then
10352 found_dir="$additional_libdir"
10353 found_a="$additional_libdir/lib$name.$libext"
10354 if test -f "$additional_libdir/lib$name.la"; then
10355 found_la="$additional_libdir/lib$name.la"
10356 fi
10357 fi
10358 fi
10359 fi
10360 if test "X$found_dir" = "X"; then
10361 for x in $LDFLAGS $LTLIBEXPAT; do
10362
10363 acl_save_prefix="$prefix"
10364 prefix="$acl_final_prefix"
10365 acl_save_exec_prefix="$exec_prefix"
10366 exec_prefix="$acl_final_exec_prefix"
10367 eval x=\"$x\"
10368 exec_prefix="$acl_save_exec_prefix"
10369 prefix="$acl_save_prefix"
10370
10371 case "$x" in
10372 -L*)
10373 dir=`echo "X$x" | sed -e 's/^X-L//'`
10374 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10375 found_dir="$dir"
10376 found_so="$dir/lib$name.$shlibext"
10377 if test -f "$dir/lib$name.la"; then
10378 found_la="$dir/lib$name.la"
10379 fi
10380 else
10381 if test -f "$dir/lib$name.$libext"; then
10382 found_dir="$dir"
10383 found_a="$dir/lib$name.$libext"
10384 if test -f "$dir/lib$name.la"; then
10385 found_la="$dir/lib$name.la"
10386 fi
10387 fi
10388 fi
10389 ;;
10390 esac
10391 if test "X$found_dir" != "X"; then
10392 break
10393 fi
10394 done
10395 fi
10396 if test "X$found_dir" != "X"; then
10397 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10398 if test "X$found_so" != "X"; then
10399 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10400 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10401 else
10402 haveit=
10403 for x in $ltrpathdirs; do
10404 if test "X$x" = "X$found_dir"; then
10405 haveit=yes
10406 break
10407 fi
10408 done
10409 if test -z "$haveit"; then
10410 ltrpathdirs="$ltrpathdirs $found_dir"
10411 fi
10412 if test "$hardcode_direct" = yes; then
10413 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10414 else
10415 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10416 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10417 haveit=
10418 for x in $rpathdirs; do
10419 if test "X$x" = "X$found_dir"; then
10420 haveit=yes
10421 break
10422 fi
10423 done
10424 if test -z "$haveit"; then
10425 rpathdirs="$rpathdirs $found_dir"
10426 fi
10427 else
10428 haveit=
10429 for x in $LDFLAGS $LIBEXPAT; do
10430
10431 acl_save_prefix="$prefix"
10432 prefix="$acl_final_prefix"
10433 acl_save_exec_prefix="$exec_prefix"
10434 exec_prefix="$acl_final_exec_prefix"
10435 eval x=\"$x\"
10436 exec_prefix="$acl_save_exec_prefix"
10437 prefix="$acl_save_prefix"
10438
10439 if test "X$x" = "X-L$found_dir"; then
10440 haveit=yes
10441 break
10442 fi
10443 done
10444 if test -z "$haveit"; then
10445 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10446 fi
10447 if test "$hardcode_minus_L" != no; then
10448 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10449 else
10450 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10451 fi
10452 fi
10453 fi
10454 fi
10455 else
10456 if test "X$found_a" != "X"; then
10457 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10458 else
10459 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10460 fi
10461 fi
10462 additional_includedir=
10463 case "$found_dir" in
10464 */lib | */lib/)
10465 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10466 additional_includedir="$basedir/include"
10467 ;;
10468 esac
10469 if test "X$additional_includedir" != "X"; then
10470 if test "X$additional_includedir" != "X/usr/include"; then
10471 haveit=
10472 if test "X$additional_includedir" = "X/usr/local/include"; then
10473 if test -n "$GCC"; then
10474 case $host_os in
10475 linux*) haveit=yes;;
10476 esac
10477 fi
10478 fi
10479 if test -z "$haveit"; then
10480 for x in $CPPFLAGS $INCEXPAT; do
10481
10482 acl_save_prefix="$prefix"
10483 prefix="$acl_final_prefix"
10484 acl_save_exec_prefix="$exec_prefix"
10485 exec_prefix="$acl_final_exec_prefix"
10486 eval x=\"$x\"
10487 exec_prefix="$acl_save_exec_prefix"
10488 prefix="$acl_save_prefix"
10489
10490 if test "X$x" = "X-I$additional_includedir"; then
10491 haveit=yes
10492 break
10493 fi
10494 done
10495 if test -z "$haveit"; then
10496 if test -d "$additional_includedir"; then
10497 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10498 fi
10499 fi
10500 fi
10501 fi
10502 fi
10503 if test -n "$found_la"; then
10504 save_libdir="$libdir"
10505 case "$found_la" in
10506 */* | *\\*) . "$found_la" ;;
10507 *) . "./$found_la" ;;
10508 esac
10509 libdir="$save_libdir"
10510 for dep in $dependency_libs; do
10511 case "$dep" in
10512 -L*)
10513 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10514 if test "X$additional_libdir" != "X/usr/lib"; then
10515 haveit=
10516 if test "X$additional_libdir" = "X/usr/local/lib"; then
10517 if test -n "$GCC"; then
10518 case $host_os in
10519 linux*) haveit=yes;;
10520 esac
10521 fi
10522 fi
10523 if test -z "$haveit"; then
10524 haveit=
10525 for x in $LDFLAGS $LIBEXPAT; do
10526
10527 acl_save_prefix="$prefix"
10528 prefix="$acl_final_prefix"
10529 acl_save_exec_prefix="$exec_prefix"
10530 exec_prefix="$acl_final_exec_prefix"
10531 eval x=\"$x\"
10532 exec_prefix="$acl_save_exec_prefix"
10533 prefix="$acl_save_prefix"
10534
10535 if test "X$x" = "X-L$additional_libdir"; then
10536 haveit=yes
10537 break
10538 fi
10539 done
10540 if test -z "$haveit"; then
10541 if test -d "$additional_libdir"; then
10542 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10543 fi
10544 fi
10545 haveit=
10546 for x in $LDFLAGS $LTLIBEXPAT; do
10547
10548 acl_save_prefix="$prefix"
10549 prefix="$acl_final_prefix"
10550 acl_save_exec_prefix="$exec_prefix"
10551 exec_prefix="$acl_final_exec_prefix"
10552 eval x=\"$x\"
10553 exec_prefix="$acl_save_exec_prefix"
10554 prefix="$acl_save_prefix"
10555
10556 if test "X$x" = "X-L$additional_libdir"; then
10557 haveit=yes
10558 break
10559 fi
10560 done
10561 if test -z "$haveit"; then
10562 if test -d "$additional_libdir"; then
10563 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10564 fi
10565 fi
10566 fi
10567 fi
10568 ;;
10569 -R*)
10570 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10571 if test "$enable_rpath" != no; then
10572 haveit=
10573 for x in $rpathdirs; do
10574 if test "X$x" = "X$dir"; then
10575 haveit=yes
10576 break
10577 fi
10578 done
10579 if test -z "$haveit"; then
10580 rpathdirs="$rpathdirs $dir"
10581 fi
10582 haveit=
10583 for x in $ltrpathdirs; do
10584 if test "X$x" = "X$dir"; then
10585 haveit=yes
10586 break
10587 fi
10588 done
10589 if test -z "$haveit"; then
10590 ltrpathdirs="$ltrpathdirs $dir"
10591 fi
10592 fi
10593 ;;
10594 -l*)
10595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10596 ;;
10597 *.la)
10598 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10599 ;;
10600 *)
10601 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10602 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10603 ;;
10604 esac
10605 done
10606 fi
10607 else
10608 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10609 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10610 fi
10611 fi
10612 fi
10613 done
10614 done
10615 if test "X$rpathdirs" != "X"; then
10616 if test -n "$hardcode_libdir_separator"; then
10617 alldirs=
10618 for found_dir in $rpathdirs; do
10619 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10620 done
10621 acl_save_libdir="$libdir"
10622 libdir="$alldirs"
10623 eval flag=\"$hardcode_libdir_flag_spec\"
10624 libdir="$acl_save_libdir"
10625 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10626 else
10627 for found_dir in $rpathdirs; do
10628 acl_save_libdir="$libdir"
10629 libdir="$found_dir"
10630 eval flag=\"$hardcode_libdir_flag_spec\"
10631 libdir="$acl_save_libdir"
10632 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10633 done
10634 fi
10635 fi
10636 if test "X$ltrpathdirs" != "X"; then
10637 for found_dir in $ltrpathdirs; do
10638 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10639 done
10640 fi
10641
10642
10643 ac_save_CPPFLAGS="$CPPFLAGS"
10644
10645 for element in $INCEXPAT; do
10646 haveit=
10647 for x in $CPPFLAGS; do
10648
10649 acl_save_prefix="$prefix"
10650 prefix="$acl_final_prefix"
10651 acl_save_exec_prefix="$exec_prefix"
10652 exec_prefix="$acl_final_exec_prefix"
10653 eval x=\"$x\"
10654 exec_prefix="$acl_save_exec_prefix"
10655 prefix="$acl_save_prefix"
10656
10657 if test "X$x" = "X$element"; then
10658 haveit=yes
10659 break
10660 fi
10661 done
10662 if test -z "$haveit"; then
10663 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10664 fi
10665 done
10666
10667
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10669 $as_echo_n "checking for libexpat... " >&6; }
10670 if test "${ac_cv_libexpat+set}" = set; then :
10671 $as_echo_n "(cached) " >&6
10672 else
10673
10674 ac_save_LIBS="$LIBS"
10675 LIBS="$LIBS $LIBEXPAT"
10676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10677 /* end confdefs.h. */
10678 #include "expat.h"
10679 int
10680 main ()
10681 {
10682 XML_Parser p = XML_ParserCreate (0);
10683 ;
10684 return 0;
10685 }
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 ac_cv_libexpat=yes
10689 else
10690 ac_cv_libexpat=no
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS="$ac_save_LIBS"
10695
10696 fi
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10698 $as_echo "$ac_cv_libexpat" >&6; }
10699 if test "$ac_cv_libexpat" = yes; then
10700 HAVE_LIBEXPAT=yes
10701
10702 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10703
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10705 $as_echo_n "checking how to link with libexpat... " >&6; }
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10707 $as_echo "$LIBEXPAT" >&6; }
10708 else
10709 HAVE_LIBEXPAT=no
10710 CPPFLAGS="$ac_save_CPPFLAGS"
10711 LIBEXPAT=
10712 LTLIBEXPAT=
10713 fi
10714
10715
10716
10717
10718
10719
10720 if test "$HAVE_LIBEXPAT" != yes; then
10721 if test "$with_expat" = yes; then
10722 as_fn_error "expat is missing or unusable" "$LINENO" 5
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10725 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10726 fi
10727 else
10728 save_LIBS=$LIBS
10729 LIBS="$LIBS $LIBEXPAT"
10730 for ac_func in XML_StopParser
10731 do :
10732 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10733 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10734 cat >>confdefs.h <<_ACEOF
10735 #define HAVE_XML_STOPPARSER 1
10736 _ACEOF
10737
10738 fi
10739 done
10740
10741 LIBS=$save_LIBS
10742 fi
10743 fi
10744
10745
10746
10747
10748
10749
10750 # Check whether --with-python was given.
10751 if test "${with_python+set}" = set; then :
10752 withval=$with_python;
10753 else
10754 with_python=auto
10755 fi
10756
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10758 $as_echo_n "checking whether to use python... " >&6; }
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10760 $as_echo "$with_python" >&6; }
10761
10762 if test "${with_python}" = no; then
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10764 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10765 have_libpython=no
10766 else
10767 case "${with_python}" in
10768 [\\/]* | ?:[\\/]*)
10769 if test -d ${with_python}; then
10770 # Assume the python binary is ${with_python}/bin/python.
10771 python_prog="${with_python}/bin/python"
10772 python_prefix=
10773 # If python does not exit ${with_python}/bin, then try in
10774 # ${with_python}. On Windows/MinGW, this is where the Python
10775 # executable is.
10776 if test ! -x "${python_prog}"; then
10777 python_prog="${with_python}/python"
10778 python_prefix=
10779 fi
10780 if test ! -x "${python_prog}"; then
10781 # Fall back to gdb 7.0/7.1 behaviour.
10782 python_prog=missing
10783 python_prefix=${with_python}
10784 fi
10785 elif test -x "${with_python}"; then
10786 # While we can't run python compiled for $host (unless host == build),
10787 # the user could write a script that provides the needed information,
10788 # so we support that.
10789 python_prog=${with_python}
10790 python_prefix=
10791 else
10792 as_fn_error "invalid value for --with-python" "$LINENO" 5
10793 fi
10794 ;;
10795 */*)
10796 # Disallow --with-python=foo/bar.
10797 as_fn_error "invalid value for --with-python" "$LINENO" 5
10798 ;;
10799 *)
10800 # The user has either specified auto, yes, or the name of the python
10801 # program assumed to be in $PATH.
10802 python_prefix=
10803 case "${with_python}" in
10804 yes | auto)
10805 if test ${build} = ${host}; then
10806 # Extract the first word of "python", so it can be a program name with args.
10807 set dummy python; ac_word=$2
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10809 $as_echo_n "checking for $ac_word... " >&6; }
10810 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10811 $as_echo_n "(cached) " >&6
10812 else
10813 case $python_prog_path in
10814 [\\/]* | ?:[\\/]*)
10815 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10816 ;;
10817 *)
10818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819 for as_dir in $PATH
10820 do
10821 IFS=$as_save_IFS
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10825 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10827 break 2
10828 fi
10829 done
10830 done
10831 IFS=$as_save_IFS
10832
10833 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10834 ;;
10835 esac
10836 fi
10837 python_prog_path=$ac_cv_path_python_prog_path
10838 if test -n "$python_prog_path"; then
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10840 $as_echo "$python_prog_path" >&6; }
10841 else
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 $as_echo "no" >&6; }
10844 fi
10845
10846
10847 if test "${python_prog_path}" = missing; then
10848 python_prog=missing
10849 else
10850 python_prog=${python_prog_path}
10851 fi
10852 else
10853 # Not much we can do except assume the cross-compiler will find the
10854 # right files.
10855 python_prog=missing
10856 fi
10857 ;;
10858 *)
10859 # While we can't run python compiled for $host (unless host == build),
10860 # the user could write a script that provides the needed information,
10861 # so we support that.
10862 python_prog="${with_python}"
10863 # Extract the first word of "${python_prog}", so it can be a program name with args.
10864 set dummy ${python_prog}; ac_word=$2
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10866 $as_echo_n "checking for $ac_word... " >&6; }
10867 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10868 $as_echo_n "(cached) " >&6
10869 else
10870 case $python_prog_path in
10871 [\\/]* | ?:[\\/]*)
10872 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10873 ;;
10874 *)
10875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876 for as_dir in $PATH
10877 do
10878 IFS=$as_save_IFS
10879 test -z "$as_dir" && as_dir=.
10880 for ac_exec_ext in '' $ac_executable_extensions; do
10881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10882 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10884 break 2
10885 fi
10886 done
10887 done
10888 IFS=$as_save_IFS
10889
10890 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10891 ;;
10892 esac
10893 fi
10894 python_prog_path=$ac_cv_path_python_prog_path
10895 if test -n "$python_prog_path"; then
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10897 $as_echo "$python_prog_path" >&6; }
10898 else
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10901 fi
10902
10903
10904 if test "${python_prog_path}" = missing; then
10905 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10906 fi
10907 ;;
10908 esac
10909 esac
10910
10911 if test "${python_prog}" != missing; then
10912 # We have a python program to use, but it may be too old.
10913 # Don't flag an error for --with-python=auto (the default).
10914 have_python_config=yes
10915 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10916 if test $? != 0; then
10917 have_python_config=failed
10918 if test "${with_python}" != auto; then
10919 as_fn_error "failure running python-config --includes" "$LINENO" 5
10920 fi
10921 fi
10922 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10923 if test $? != 0; then
10924 have_python_config=failed
10925 if test "${with_python}" != auto; then
10926 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10927 fi
10928 fi
10929 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10930 if test $? != 0; then
10931 have_python_config=failed
10932 if test "${with_python}" != auto; then
10933 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10934 fi
10935 fi
10936 else
10937 # We do not have a python executable we can use to determine where
10938 # to find the Python headers and libs. We cannot guess the include
10939 # path from the python_prefix either, because that include path
10940 # depends on the Python version. So, there is nothing much we can
10941 # do except assume that the compiler will be able to find those files.
10942 python_includes=
10943 python_libs=
10944 have_python_config=no
10945 fi
10946
10947 # If we have python-config, only try the configuration it provides.
10948 # Otherwise fallback on the old way of trying different versions of
10949 # python in turn.
10950
10951 have_libpython=no
10952 if test "${have_python_config}" = yes; then
10953 # Determine the Python version by extracting "-lpython<version>"
10954 # part of the python_libs. <version> is usually X.Y with X and Y
10955 # being decimal numbers, but can also be XY (seen on Windows).
10956 #
10957 # The extraction is performed using sed with a regular expression.
10958 # Initially, the regexp used was using the '?' quantifier to make
10959 # the dot in the version number optional. Unfortunately, this
10960 # does not work with non-GNU versions of sed because, because of
10961 # what looks like a limitation (the '?' quantifier does not work
10962 # with back-references). We work around this limitation by using
10963 # the '*' quantifier instead. It means that, in theory, we might
10964 # match unexpected version strings such as "-lpython2..7", but
10965 # this seems unlikely in practice. And even if that happens,
10966 # an error will be triggered later on, when checking that version
10967 # number.
10968 python_version=`echo " ${python_libs} " \
10969 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10970 case "${python_version}" in
10971 python*)
10972
10973 version=${python_version}
10974
10975 new_CPPFLAGS=${python_includes}
10976 new_LIBS=${python_libs}
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10978 $as_echo_n "checking for ${version}... " >&6; }
10979 save_CPPFLAGS=$CPPFLAGS
10980 save_LIBS=$LIBS
10981 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10982 LIBS="$LIBS $new_LIBS"
10983 found_usable_python=no
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 #include "Python.h"
10987 int
10988 main ()
10989 {
10990 Py_Initialize ();
10991 ;
10992 return 0;
10993 }
10994 _ACEOF
10995 if ac_fn_c_try_link "$LINENO"; then :
10996 have_libpython=${version}
10997 found_usable_python=yes
10998 PYTHON_CPPFLAGS=$new_CPPFLAGS
10999 PYTHON_LIBS=$new_LIBS
11000 fi
11001 rm -f core conftest.err conftest.$ac_objext \
11002 conftest$ac_exeext conftest.$ac_ext
11003 CPPFLAGS=$save_CPPFLAGS
11004 LIBS=$save_LIBS
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11006 $as_echo "${found_usable_python}" >&6; }
11007
11008 ;;
11009 *)
11010 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
11011 ;;
11012 esac
11013 elif test "${have_python_config}" != failed; then
11014 if test "${have_libpython}" = no; then
11015
11016 version=python2.7
11017
11018 new_CPPFLAGS=${python_includes}
11019 new_LIBS="${python_libs} -lpython2.7"
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11021 $as_echo_n "checking for ${version}... " >&6; }
11022 save_CPPFLAGS=$CPPFLAGS
11023 save_LIBS=$LIBS
11024 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11025 LIBS="$LIBS $new_LIBS"
11026 found_usable_python=no
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11029 #include "Python.h"
11030 int
11031 main ()
11032 {
11033 Py_Initialize ();
11034 ;
11035 return 0;
11036 }
11037 _ACEOF
11038 if ac_fn_c_try_link "$LINENO"; then :
11039 have_libpython=${version}
11040 found_usable_python=yes
11041 PYTHON_CPPFLAGS=$new_CPPFLAGS
11042 PYTHON_LIBS=$new_LIBS
11043 fi
11044 rm -f core conftest.err conftest.$ac_objext \
11045 conftest$ac_exeext conftest.$ac_ext
11046 CPPFLAGS=$save_CPPFLAGS
11047 LIBS=$save_LIBS
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11049 $as_echo "${found_usable_python}" >&6; }
11050
11051 fi
11052 if test "${have_libpython}" = no; then
11053
11054 version=python2.6
11055
11056 new_CPPFLAGS=${python_includes}
11057 new_LIBS="${python_libs} -lpython2.6"
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11059 $as_echo_n "checking for ${version}... " >&6; }
11060 save_CPPFLAGS=$CPPFLAGS
11061 save_LIBS=$LIBS
11062 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11063 LIBS="$LIBS $new_LIBS"
11064 found_usable_python=no
11065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11066 /* end confdefs.h. */
11067 #include "Python.h"
11068 int
11069 main ()
11070 {
11071 Py_Initialize ();
11072 ;
11073 return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_c_try_link "$LINENO"; then :
11077 have_libpython=${version}
11078 found_usable_python=yes
11079 PYTHON_CPPFLAGS=$new_CPPFLAGS
11080 PYTHON_LIBS=$new_LIBS
11081 fi
11082 rm -f core conftest.err conftest.$ac_objext \
11083 conftest$ac_exeext conftest.$ac_ext
11084 CPPFLAGS=$save_CPPFLAGS
11085 LIBS=$save_LIBS
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11087 $as_echo "${found_usable_python}" >&6; }
11088
11089 fi
11090 if test ${have_libpython} = no; then
11091
11092 version=python2.5
11093
11094 new_CPPFLAGS=${python_includes}
11095 new_LIBS="${python_libs} -lpython2.5"
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11097 $as_echo_n "checking for ${version}... " >&6; }
11098 save_CPPFLAGS=$CPPFLAGS
11099 save_LIBS=$LIBS
11100 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11101 LIBS="$LIBS $new_LIBS"
11102 found_usable_python=no
11103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11105 #include "Python.h"
11106 int
11107 main ()
11108 {
11109 Py_Initialize ();
11110 ;
11111 return 0;
11112 }
11113 _ACEOF
11114 if ac_fn_c_try_link "$LINENO"; then :
11115 have_libpython=${version}
11116 found_usable_python=yes
11117 PYTHON_CPPFLAGS=$new_CPPFLAGS
11118 PYTHON_LIBS=$new_LIBS
11119 fi
11120 rm -f core conftest.err conftest.$ac_objext \
11121 conftest$ac_exeext conftest.$ac_ext
11122 CPPFLAGS=$save_CPPFLAGS
11123 LIBS=$save_LIBS
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11125 $as_echo "${found_usable_python}" >&6; }
11126
11127 fi
11128 if test ${have_libpython} = no; then
11129
11130 version=python2.4
11131
11132 new_CPPFLAGS=${python_includes}
11133 new_LIBS="${python_libs} -lpython2.4"
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11135 $as_echo_n "checking for ${version}... " >&6; }
11136 save_CPPFLAGS=$CPPFLAGS
11137 save_LIBS=$LIBS
11138 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11139 LIBS="$LIBS $new_LIBS"
11140 found_usable_python=no
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11143 #include "Python.h"
11144 int
11145 main ()
11146 {
11147 Py_Initialize ();
11148 ;
11149 return 0;
11150 }
11151 _ACEOF
11152 if ac_fn_c_try_link "$LINENO"; then :
11153 have_libpython=${version}
11154 found_usable_python=yes
11155 PYTHON_CPPFLAGS=$new_CPPFLAGS
11156 PYTHON_LIBS=$new_LIBS
11157 fi
11158 rm -f core conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
11160 CPPFLAGS=$save_CPPFLAGS
11161 LIBS=$save_LIBS
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11163 $as_echo "${found_usable_python}" >&6; }
11164
11165 fi
11166 fi
11167 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
11168
11169 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
11170
11171 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
11172
11173 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
11174
11175 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
11176
11177 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
11178
11179 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
11180
11181 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
11182
11183 fi
11184
11185 if test "${have_libpython}" = no; then
11186 case "${with_python}" in
11187 yes)
11188 as_fn_error "python is missing or unusable" "$LINENO" 5
11189 ;;
11190 auto)
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11192 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11193 ;;
11194 *)
11195 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
11196 ;;
11197 esac
11198 else
11199 if test -n "${python_prefix}"; then
11200
11201 cat >>confdefs.h <<_ACEOF
11202 #define WITH_PYTHON_PATH "${python_prefix}"
11203 _ACEOF
11204
11205
11206 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11207 if test "x$prefix" = xNONE; then
11208 test_prefix=/usr/local
11209 else
11210 test_prefix=$prefix
11211 fi
11212 else
11213 test_prefix=$exec_prefix
11214 fi
11215 value=0
11216 case ${python_prefix} in
11217 "${test_prefix}"|"${test_prefix}/"*|\
11218 '${exec_prefix}'|'${exec_prefix}/'*)
11219 value=1
11220 ;;
11221 esac
11222
11223 cat >>confdefs.h <<_ACEOF
11224 #define PYTHON_PATH_RELOCATABLE $value
11225 _ACEOF
11226
11227
11228 fi
11229 fi
11230 fi
11231
11232 if test "${have_libpython}" != no; then
11233
11234 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11235
11236 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11237 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11238 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11239 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
11240 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11241
11242 # Flags needed to compile Python code (taken from python-config --cflags).
11243 # We cannot call python-config directly because it will output whatever was
11244 # used when compiling the Python interpreter itself, including flags which
11245 # would make the python-related objects be compiled differently from the
11246 # rest of GDB (e.g., -O2 and -fPIC).
11247 if test "${GCC}" = yes; then
11248 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11249 fi
11250
11251 if test "x${tentative_python_cflags}" != x; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11253 $as_echo_n "checking compiler flags for python code... " >&6; }
11254 for flag in ${tentative_python_cflags}; do
11255 # Check that the compiler accepts it
11256 saved_CFLAGS="$CFLAGS"
11257 CFLAGS="$CFLAGS $flag"
11258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11259 /* end confdefs.h. */
11260
11261 int
11262 main ()
11263 {
11264
11265 ;
11266 return 0;
11267 }
11268 _ACEOF
11269 if ac_fn_c_try_compile "$LINENO"; then :
11270 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11271 fi
11272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11273 CFLAGS="$saved_CFLAGS"
11274 done
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11276 $as_echo "${PYTHON_CFLAGS}" >&6; }
11277 fi
11278
11279 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
11280 # #if _SGIAPI
11281 # #define siginfo __siginfo
11282 # #endif
11283 # The problem is that including Python causes some XOPEN macros to be
11284 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
11285 # to false. So, we work around this issue by defining siginfo ourself
11286 # though the command-line.
11287 case "$gdb_host" in
11288 irix*) if test "${GCC}" = yes; then
11289 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
11290 fi
11291 ;;
11292 esac
11293 else
11294 # Even if Python support is not compiled in, we need to have these files
11295 # included.
11296 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11297 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
11298 python/py-prettyprint.c python/py-auto-load.c"
11299 fi
11300
11301
11302
11303
11304 # ------------------------- #
11305 # Checks for header files. #
11306 # ------------------------- #
11307
11308 ac_header_dirent=no
11309 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11310 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11312 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11314 $as_echo_n "(cached) " >&6
11315 else
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11318 #include <sys/types.h>
11319 #include <$ac_hdr>
11320
11321 int
11322 main ()
11323 {
11324 if ((DIR *) 0)
11325 return 0;
11326 ;
11327 return 0;
11328 }
11329 _ACEOF
11330 if ac_fn_c_try_compile "$LINENO"; then :
11331 eval "$as_ac_Header=yes"
11332 else
11333 eval "$as_ac_Header=no"
11334 fi
11335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336 fi
11337 eval ac_res=\$$as_ac_Header
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11339 $as_echo "$ac_res" >&6; }
11340 eval as_val=\$$as_ac_Header
11341 if test "x$as_val" = x""yes; then :
11342 cat >>confdefs.h <<_ACEOF
11343 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11344 _ACEOF
11345
11346 ac_header_dirent=$ac_hdr; break
11347 fi
11348
11349 done
11350 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11351 if test $ac_header_dirent = dirent.h; then
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11353 $as_echo_n "checking for library containing opendir... " >&6; }
11354 if test "${ac_cv_search_opendir+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
11356 else
11357 ac_func_search_save_LIBS=$LIBS
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11360
11361 /* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11364 #ifdef __cplusplus
11365 extern "C"
11366 #endif
11367 char opendir ();
11368 int
11369 main ()
11370 {
11371 return opendir ();
11372 ;
11373 return 0;
11374 }
11375 _ACEOF
11376 for ac_lib in '' dir; do
11377 if test -z "$ac_lib"; then
11378 ac_res="none required"
11379 else
11380 ac_res=-l$ac_lib
11381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11382 fi
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 ac_cv_search_opendir=$ac_res
11385 fi
11386 rm -f core conftest.err conftest.$ac_objext \
11387 conftest$ac_exeext
11388 if test "${ac_cv_search_opendir+set}" = set; then :
11389 break
11390 fi
11391 done
11392 if test "${ac_cv_search_opendir+set}" = set; then :
11393
11394 else
11395 ac_cv_search_opendir=no
11396 fi
11397 rm conftest.$ac_ext
11398 LIBS=$ac_func_search_save_LIBS
11399 fi
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11401 $as_echo "$ac_cv_search_opendir" >&6; }
11402 ac_res=$ac_cv_search_opendir
11403 if test "$ac_res" != no; then :
11404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11405
11406 fi
11407
11408 else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11410 $as_echo_n "checking for library containing opendir... " >&6; }
11411 if test "${ac_cv_search_opendir+set}" = set; then :
11412 $as_echo_n "(cached) " >&6
11413 else
11414 ac_func_search_save_LIBS=$LIBS
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11421 #ifdef __cplusplus
11422 extern "C"
11423 #endif
11424 char opendir ();
11425 int
11426 main ()
11427 {
11428 return opendir ();
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 for ac_lib in '' x; do
11434 if test -z "$ac_lib"; then
11435 ac_res="none required"
11436 else
11437 ac_res=-l$ac_lib
11438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11439 fi
11440 if ac_fn_c_try_link "$LINENO"; then :
11441 ac_cv_search_opendir=$ac_res
11442 fi
11443 rm -f core conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext
11445 if test "${ac_cv_search_opendir+set}" = set; then :
11446 break
11447 fi
11448 done
11449 if test "${ac_cv_search_opendir+set}" = set; then :
11450
11451 else
11452 ac_cv_search_opendir=no
11453 fi
11454 rm conftest.$ac_ext
11455 LIBS=$ac_func_search_save_LIBS
11456 fi
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11458 $as_echo "$ac_cv_search_opendir" >&6; }
11459 ac_res=$ac_cv_search_opendir
11460 if test "$ac_res" != no; then :
11461 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11462
11463 fi
11464
11465 fi
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11468 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11469 if test "${ac_cv_header_stat_broken+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474 #include <sys/types.h>
11475 #include <sys/stat.h>
11476
11477 #if defined S_ISBLK && defined S_IFDIR
11478 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11479 #endif
11480
11481 #if defined S_ISBLK && defined S_IFCHR
11482 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11483 #endif
11484
11485 #if defined S_ISLNK && defined S_IFREG
11486 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11487 #endif
11488
11489 #if defined S_ISSOCK && defined S_IFREG
11490 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11491 #endif
11492
11493 _ACEOF
11494 if ac_fn_c_try_compile "$LINENO"; then :
11495 ac_cv_header_stat_broken=no
11496 else
11497 ac_cv_header_stat_broken=yes
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11502 $as_echo "$ac_cv_header_stat_broken" >&6; }
11503 if test $ac_cv_header_stat_broken = yes; then
11504
11505 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11506
11507 fi
11508
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11510 $as_echo_n "checking for ANSI C header files... " >&6; }
11511 if test "${ac_cv_header_stdc+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 <stdlib.h>
11517 #include <stdarg.h>
11518 #include <string.h>
11519 #include <float.h>
11520
11521 int
11522 main ()
11523 {
11524
11525 ;
11526 return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_compile "$LINENO"; then :
11530 ac_cv_header_stdc=yes
11531 else
11532 ac_cv_header_stdc=no
11533 fi
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535
11536 if test $ac_cv_header_stdc = yes; then
11537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11539 /* end confdefs.h. */
11540 #include <string.h>
11541
11542 _ACEOF
11543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11544 $EGREP "memchr" >/dev/null 2>&1; then :
11545
11546 else
11547 ac_cv_header_stdc=no
11548 fi
11549 rm -f conftest*
11550
11551 fi
11552
11553 if test $ac_cv_header_stdc = yes; then
11554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11557 #include <stdlib.h>
11558
11559 _ACEOF
11560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11561 $EGREP "free" >/dev/null 2>&1; then :
11562
11563 else
11564 ac_cv_header_stdc=no
11565 fi
11566 rm -f conftest*
11567
11568 fi
11569
11570 if test $ac_cv_header_stdc = yes; then
11571 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11572 if test "$cross_compiling" = yes; then :
11573 :
11574 else
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h. */
11577 #include <ctype.h>
11578 #include <stdlib.h>
11579 #if ((' ' & 0x0FF) == 0x020)
11580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11582 #else
11583 # define ISLOWER(c) \
11584 (('a' <= (c) && (c) <= 'i') \
11585 || ('j' <= (c) && (c) <= 'r') \
11586 || ('s' <= (c) && (c) <= 'z'))
11587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11588 #endif
11589
11590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11591 int
11592 main ()
11593 {
11594 int i;
11595 for (i = 0; i < 256; i++)
11596 if (XOR (islower (i), ISLOWER (i))
11597 || toupper (i) != TOUPPER (i))
11598 return 2;
11599 return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_run "$LINENO"; then :
11603
11604 else
11605 ac_cv_header_stdc=no
11606 fi
11607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11608 conftest.$ac_objext conftest.beam conftest.$ac_ext
11609 fi
11610
11611 fi
11612 fi
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11614 $as_echo "$ac_cv_header_stdc" >&6; }
11615 if test $ac_cv_header_stdc = yes; then
11616
11617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11618
11619 fi
11620
11621 # elf_hp.h is for HP/UX 64-bit shared library support.
11622 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11623 # unconditionally, so what's the point in checking these?
11624 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11625 thread_db.h gnu/libc-version.h signal.h stddef.h \
11626 stdlib.h string.h memory.h strings.h sys/fault.h \
11627 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11628 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11629 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11630 sys/types.h sys/wait.h wait.h termios.h termio.h \
11631 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \
11632 dlfcn.h
11633 do :
11634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11635 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11636 eval as_val=\$$as_ac_Header
11637 if test "x$as_val" = x""yes; then :
11638 cat >>confdefs.h <<_ACEOF
11639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11640 _ACEOF
11641
11642 fi
11643
11644 done
11645
11646 for ac_header in link.h
11647 do :
11648 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11649 # include <sys/types.h>
11650 #endif
11651 #if HAVE_NLIST_H
11652 # include <nlist.h>
11653 #endif
11654
11655 "
11656 if test "x$ac_cv_header_link_h" = x""yes; then :
11657 cat >>confdefs.h <<_ACEOF
11658 #define HAVE_LINK_H 1
11659 _ACEOF
11660
11661 fi
11662
11663 done
11664
11665 for ac_header in sys/proc.h
11666 do :
11667 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11668 # include <sys/param.h>
11669 #endif
11670
11671 "
11672 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11673 cat >>confdefs.h <<_ACEOF
11674 #define HAVE_SYS_PROC_H 1
11675 _ACEOF
11676
11677 fi
11678
11679 done
11680
11681 for ac_header in sys/user.h
11682 do :
11683 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11684 # include <sys/param.h>
11685 #endif
11686
11687 "
11688 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11689 cat >>confdefs.h <<_ACEOF
11690 #define HAVE_SYS_USER_H 1
11691 _ACEOF
11692
11693 fi
11694
11695 done
11696
11697
11698 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11699 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11700 # think that we don't have <curses.h> if we're using GCC.
11701 case $host_os in
11702 solaris2.[789])
11703 if test "$GCC" = yes; then
11704
11705 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11706
11707 fi ;;
11708 esac
11709 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11710 do :
11711 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11712 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11713 eval as_val=\$$as_ac_Header
11714 if test "x$as_val" = x""yes; then :
11715 cat >>confdefs.h <<_ACEOF
11716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11717 _ACEOF
11718
11719 fi
11720
11721 done
11722
11723 for ac_header in term.h
11724 do :
11725 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11726 # include <curses.h>
11727 #endif
11728
11729 "
11730 if test "x$ac_cv_header_term_h" = x""yes; then :
11731 cat >>confdefs.h <<_ACEOF
11732 #define HAVE_TERM_H 1
11733 _ACEOF
11734
11735 fi
11736
11737 done
11738
11739
11740 # ------------------------- #
11741 # Checks for declarations. #
11742 # ------------------------- #
11743
11744 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11745 if test "x$ac_cv_have_decl_free" = x""yes; then :
11746 ac_have_decl=1
11747 else
11748 ac_have_decl=0
11749 fi
11750
11751 cat >>confdefs.h <<_ACEOF
11752 #define HAVE_DECL_FREE $ac_have_decl
11753 _ACEOF
11754 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11755 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11756 ac_have_decl=1
11757 else
11758 ac_have_decl=0
11759 fi
11760
11761 cat >>confdefs.h <<_ACEOF
11762 #define HAVE_DECL_MALLOC $ac_have_decl
11763 _ACEOF
11764 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11765 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11766 ac_have_decl=1
11767 else
11768 ac_have_decl=0
11769 fi
11770
11771 cat >>confdefs.h <<_ACEOF
11772 #define HAVE_DECL_REALLOC $ac_have_decl
11773 _ACEOF
11774 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11775 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11776 ac_have_decl=1
11777 else
11778 ac_have_decl=0
11779 fi
11780
11781 cat >>confdefs.h <<_ACEOF
11782 #define HAVE_DECL_STRERROR $ac_have_decl
11783 _ACEOF
11784 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11785 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11786 ac_have_decl=1
11787 else
11788 ac_have_decl=0
11789 fi
11790
11791 cat >>confdefs.h <<_ACEOF
11792 #define HAVE_DECL_STRSTR $ac_have_decl
11793 _ACEOF
11794 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11795 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11796 ac_have_decl=1
11797 else
11798 ac_have_decl=0
11799 fi
11800
11801 cat >>confdefs.h <<_ACEOF
11802 #define HAVE_DECL_GETOPT $ac_have_decl
11803 _ACEOF
11804 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11805 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11806 ac_have_decl=1
11807 else
11808 ac_have_decl=0
11809 fi
11810
11811 cat >>confdefs.h <<_ACEOF
11812 #define HAVE_DECL_SNPRINTF $ac_have_decl
11813 _ACEOF
11814 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11815 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11816 ac_have_decl=1
11817 else
11818 ac_have_decl=0
11819 fi
11820
11821 cat >>confdefs.h <<_ACEOF
11822 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11823 _ACEOF
11824
11825
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11827 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11828 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11829 $as_echo_n "(cached) " >&6
11830 else
11831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832 /* end confdefs.h. */
11833 #include <locale.h>
11834 int
11835 main ()
11836 {
11837 return LC_MESSAGES
11838 ;
11839 return 0;
11840 }
11841 _ACEOF
11842 if ac_fn_c_try_link "$LINENO"; then :
11843 am_cv_val_LC_MESSAGES=yes
11844 else
11845 am_cv_val_LC_MESSAGES=no
11846 fi
11847 rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
11849 fi
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11851 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11852 if test $am_cv_val_LC_MESSAGES = yes; then
11853
11854 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11855
11856 fi
11857
11858
11859 # ----------------------- #
11860 # Checks for structures. #
11861 # ----------------------- #
11862
11863 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11864 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11865
11866 cat >>confdefs.h <<_ACEOF
11867 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11868 _ACEOF
11869
11870
11871 fi
11872 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11873 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11874
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11877 _ACEOF
11878
11879
11880 fi
11881
11882
11883 # ------------------ #
11884 # Checks for types. #
11885 # ------------------ #
11886
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11888 $as_echo_n "checking return type of signal handlers... " >&6; }
11889 if test "${ac_cv_type_signal+set}" = set; then :
11890 $as_echo_n "(cached) " >&6
11891 else
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894 #include <sys/types.h>
11895 #include <signal.h>
11896
11897 int
11898 main ()
11899 {
11900 return *(signal (0, 0)) (0) == 1;
11901 ;
11902 return 0;
11903 }
11904 _ACEOF
11905 if ac_fn_c_try_compile "$LINENO"; then :
11906 ac_cv_type_signal=int
11907 else
11908 ac_cv_type_signal=void
11909 fi
11910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 fi
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11913 $as_echo "$ac_cv_type_signal" >&6; }
11914
11915 cat >>confdefs.h <<_ACEOF
11916 #define RETSIGTYPE $ac_cv_type_signal
11917 _ACEOF
11918
11919
11920 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11921 #include <sys/socket.h>
11922
11923 "
11924 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11925
11926 cat >>confdefs.h <<_ACEOF
11927 #define HAVE_SOCKLEN_T 1
11928 _ACEOF
11929
11930
11931 fi
11932
11933
11934 # ------------------------------------- #
11935 # Checks for compiler characteristics. #
11936 # ------------------------------------- #
11937
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11939 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11940 if test "${ac_cv_c_const+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11942 else
11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11944 /* end confdefs.h. */
11945
11946 int
11947 main ()
11948 {
11949 /* FIXME: Include the comments suggested by Paul. */
11950 #ifndef __cplusplus
11951 /* Ultrix mips cc rejects this. */
11952 typedef int charset[2];
11953 const charset cs;
11954 /* SunOS 4.1.1 cc rejects this. */
11955 char const *const *pcpcc;
11956 char **ppc;
11957 /* NEC SVR4.0.2 mips cc rejects this. */
11958 struct point {int x, y;};
11959 static struct point const zero = {0,0};
11960 /* AIX XL C 1.02.0.0 rejects this.
11961 It does not let you subtract one const X* pointer from another in
11962 an arm of an if-expression whose if-part is not a constant
11963 expression */
11964 const char *g = "string";
11965 pcpcc = &g + (g ? g-g : 0);
11966 /* HPUX 7.0 cc rejects these. */
11967 ++pcpcc;
11968 ppc = (char**) pcpcc;
11969 pcpcc = (char const *const *) ppc;
11970 { /* SCO 3.2v4 cc rejects this. */
11971 char *t;
11972 char const *s = 0 ? (char *) 0 : (char const *) 0;
11973
11974 *t++ = 0;
11975 if (s) return 0;
11976 }
11977 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11978 int x[] = {25, 17};
11979 const int *foo = &x[0];
11980 ++foo;
11981 }
11982 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11983 typedef const int *iptr;
11984 iptr p = 0;
11985 ++p;
11986 }
11987 { /* AIX XL C 1.02.0.0 rejects this saying
11988 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11989 struct s { int j; const int *ap[3]; };
11990 struct s *b; b->j = 5;
11991 }
11992 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11993 const int foo = 10;
11994 if (!foo) return 0;
11995 }
11996 return !cs[0] && !zero.x;
11997 #endif
11998
11999 ;
12000 return 0;
12001 }
12002 _ACEOF
12003 if ac_fn_c_try_compile "$LINENO"; then :
12004 ac_cv_c_const=yes
12005 else
12006 ac_cv_c_const=no
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12011 $as_echo "$ac_cv_c_const" >&6; }
12012 if test $ac_cv_c_const = no; then
12013
12014 $as_echo "#define const /**/" >>confdefs.h
12015
12016 fi
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12019 $as_echo_n "checking for inline... " >&6; }
12020 if test "${ac_cv_c_inline+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023 ac_cv_c_inline=no
12024 for ac_kw in inline __inline__ __inline; do
12025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12026 /* end confdefs.h. */
12027 #ifndef __cplusplus
12028 typedef int foo_t;
12029 static $ac_kw foo_t static_foo () {return 0; }
12030 $ac_kw foo_t foo () {return 0; }
12031 #endif
12032
12033 _ACEOF
12034 if ac_fn_c_try_compile "$LINENO"; then :
12035 ac_cv_c_inline=$ac_kw
12036 fi
12037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12038 test "$ac_cv_c_inline" != no && break
12039 done
12040
12041 fi
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12043 $as_echo "$ac_cv_c_inline" >&6; }
12044
12045 case $ac_cv_c_inline in
12046 inline | yes) ;;
12047 *)
12048 case $ac_cv_c_inline in
12049 no) ac_val=;;
12050 *) ac_val=$ac_cv_c_inline;;
12051 esac
12052 cat >>confdefs.h <<_ACEOF
12053 #ifndef __cplusplus
12054 #define inline $ac_val
12055 #endif
12056 _ACEOF
12057 ;;
12058 esac
12059
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12061 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12062 if test "${ac_cv_c_bigendian+set}" = set; then :
12063 $as_echo_n "(cached) " >&6
12064 else
12065 ac_cv_c_bigendian=unknown
12066 # See if we're dealing with a universal compiler.
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069 #ifndef __APPLE_CC__
12070 not a universal capable compiler
12071 #endif
12072 typedef int dummy;
12073
12074 _ACEOF
12075 if ac_fn_c_try_compile "$LINENO"; then :
12076
12077 # Check for potential -arch flags. It is not universal unless
12078 # there are at least two -arch flags with different values.
12079 ac_arch=
12080 ac_prev=
12081 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12082 if test -n "$ac_prev"; then
12083 case $ac_word in
12084 i?86 | x86_64 | ppc | ppc64)
12085 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12086 ac_arch=$ac_word
12087 else
12088 ac_cv_c_bigendian=universal
12089 break
12090 fi
12091 ;;
12092 esac
12093 ac_prev=
12094 elif test "x$ac_word" = "x-arch"; then
12095 ac_prev=arch
12096 fi
12097 done
12098 fi
12099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 if test $ac_cv_c_bigendian = unknown; then
12101 # See if sys/param.h defines the BYTE_ORDER macro.
12102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 /* end confdefs.h. */
12104 #include <sys/types.h>
12105 #include <sys/param.h>
12106
12107 int
12108 main ()
12109 {
12110 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12111 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12112 && LITTLE_ENDIAN)
12113 bogus endian macros
12114 #endif
12115
12116 ;
12117 return 0;
12118 }
12119 _ACEOF
12120 if ac_fn_c_try_compile "$LINENO"; then :
12121 # It does; now see whether it defined to BIG_ENDIAN or not.
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124 #include <sys/types.h>
12125 #include <sys/param.h>
12126
12127 int
12128 main ()
12129 {
12130 #if BYTE_ORDER != BIG_ENDIAN
12131 not big endian
12132 #endif
12133
12134 ;
12135 return 0;
12136 }
12137 _ACEOF
12138 if ac_fn_c_try_compile "$LINENO"; then :
12139 ac_cv_c_bigendian=yes
12140 else
12141 ac_cv_c_bigendian=no
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12144 fi
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 fi
12147 if test $ac_cv_c_bigendian = unknown; then
12148 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151 #include <limits.h>
12152
12153 int
12154 main ()
12155 {
12156 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12157 bogus endian macros
12158 #endif
12159
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 if ac_fn_c_try_compile "$LINENO"; then :
12165 # It does; now see whether it defined to _BIG_ENDIAN or not.
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167 /* end confdefs.h. */
12168 #include <limits.h>
12169
12170 int
12171 main ()
12172 {
12173 #ifndef _BIG_ENDIAN
12174 not big endian
12175 #endif
12176
12177 ;
12178 return 0;
12179 }
12180 _ACEOF
12181 if ac_fn_c_try_compile "$LINENO"; then :
12182 ac_cv_c_bigendian=yes
12183 else
12184 ac_cv_c_bigendian=no
12185 fi
12186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12187 fi
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 fi
12190 if test $ac_cv_c_bigendian = unknown; then
12191 # Compile a test program.
12192 if test "$cross_compiling" = yes; then :
12193 # Try to guess by grepping values from an object file.
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12196 short int ascii_mm[] =
12197 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12198 short int ascii_ii[] =
12199 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12200 int use_ascii (int i) {
12201 return ascii_mm[i] + ascii_ii[i];
12202 }
12203 short int ebcdic_ii[] =
12204 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12205 short int ebcdic_mm[] =
12206 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12207 int use_ebcdic (int i) {
12208 return ebcdic_mm[i] + ebcdic_ii[i];
12209 }
12210 extern int foo;
12211
12212 int
12213 main ()
12214 {
12215 return use_ascii (foo) == use_ebcdic (foo);
12216 ;
12217 return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_compile "$LINENO"; then :
12221 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12222 ac_cv_c_bigendian=yes
12223 fi
12224 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12225 if test "$ac_cv_c_bigendian" = unknown; then
12226 ac_cv_c_bigendian=no
12227 else
12228 # finding both strings is unlikely to happen, but who knows?
12229 ac_cv_c_bigendian=unknown
12230 fi
12231 fi
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 else
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237 $ac_includes_default
12238 int
12239 main ()
12240 {
12241
12242 /* Are we little or big endian? From Harbison&Steele. */
12243 union
12244 {
12245 long int l;
12246 char c[sizeof (long int)];
12247 } u;
12248 u.l = 1;
12249 return u.c[sizeof (long int) - 1] == 1;
12250
12251 ;
12252 return 0;
12253 }
12254 _ACEOF
12255 if ac_fn_c_try_run "$LINENO"; then :
12256 ac_cv_c_bigendian=no
12257 else
12258 ac_cv_c_bigendian=yes
12259 fi
12260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12261 conftest.$ac_objext conftest.beam conftest.$ac_ext
12262 fi
12263
12264 fi
12265 fi
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12267 $as_echo "$ac_cv_c_bigendian" >&6; }
12268 case $ac_cv_c_bigendian in #(
12269 yes)
12270 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12271 ;; #(
12272 no)
12273 ;; #(
12274 universal)
12275
12276 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12277
12278 ;; #(
12279 *)
12280 as_fn_error "unknown endianness
12281 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12282 esac
12283
12284
12285 # ------------------------------ #
12286 # Checks for library functions. #
12287 # ------------------------------ #
12288
12289 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12290 # for constant arguments. Useless!
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12292 $as_echo_n "checking for working alloca.h... " >&6; }
12293 if test "${ac_cv_working_alloca_h+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12297 /* end confdefs.h. */
12298 #include <alloca.h>
12299 int
12300 main ()
12301 {
12302 char *p = (char *) alloca (2 * sizeof (int));
12303 if (p) return 0;
12304 ;
12305 return 0;
12306 }
12307 _ACEOF
12308 if ac_fn_c_try_link "$LINENO"; then :
12309 ac_cv_working_alloca_h=yes
12310 else
12311 ac_cv_working_alloca_h=no
12312 fi
12313 rm -f core conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 fi
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12317 $as_echo "$ac_cv_working_alloca_h" >&6; }
12318 if test $ac_cv_working_alloca_h = yes; then
12319
12320 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12321
12322 fi
12323
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12325 $as_echo_n "checking for alloca... " >&6; }
12326 if test "${ac_cv_func_alloca_works+set}" = set; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331 #ifdef __GNUC__
12332 # define alloca __builtin_alloca
12333 #else
12334 # ifdef _MSC_VER
12335 # include <malloc.h>
12336 # define alloca _alloca
12337 # else
12338 # ifdef HAVE_ALLOCA_H
12339 # include <alloca.h>
12340 # else
12341 # ifdef _AIX
12342 #pragma alloca
12343 # else
12344 # ifndef alloca /* predefined by HP cc +Olibcalls */
12345 char *alloca ();
12346 # endif
12347 # endif
12348 # endif
12349 # endif
12350 #endif
12351
12352 int
12353 main ()
12354 {
12355 char *p = (char *) alloca (1);
12356 if (p) return 0;
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 if ac_fn_c_try_link "$LINENO"; then :
12362 ac_cv_func_alloca_works=yes
12363 else
12364 ac_cv_func_alloca_works=no
12365 fi
12366 rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 fi
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12370 $as_echo "$ac_cv_func_alloca_works" >&6; }
12371
12372 if test $ac_cv_func_alloca_works = yes; then
12373
12374 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12375
12376 else
12377 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12378 # that cause trouble. Some versions do not even contain alloca or
12379 # contain a buggy version. If you still want to use their alloca,
12380 # use ar to extract alloca.o from them instead of compiling alloca.c.
12381
12382 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12383
12384 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12385
12386
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12388 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12389 if test "${ac_cv_os_cray+set}" = set; then :
12390 $as_echo_n "(cached) " >&6
12391 else
12392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12393 /* end confdefs.h. */
12394 #if defined CRAY && ! defined CRAY2
12395 webecray
12396 #else
12397 wenotbecray
12398 #endif
12399
12400 _ACEOF
12401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12402 $EGREP "webecray" >/dev/null 2>&1; then :
12403 ac_cv_os_cray=yes
12404 else
12405 ac_cv_os_cray=no
12406 fi
12407 rm -f conftest*
12408
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12411 $as_echo "$ac_cv_os_cray" >&6; }
12412 if test $ac_cv_os_cray = yes; then
12413 for ac_func in _getb67 GETB67 getb67; do
12414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12416 eval as_val=\$$as_ac_var
12417 if test "x$as_val" = x""yes; then :
12418
12419 cat >>confdefs.h <<_ACEOF
12420 #define CRAY_STACKSEG_END $ac_func
12421 _ACEOF
12422
12423 break
12424 fi
12425
12426 done
12427 fi
12428
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12430 $as_echo_n "checking stack direction for C alloca... " >&6; }
12431 if test "${ac_cv_c_stack_direction+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 if test "$cross_compiling" = yes; then :
12435 ac_cv_c_stack_direction=0
12436 else
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439 $ac_includes_default
12440 int
12441 find_stack_direction ()
12442 {
12443 static char *addr = 0;
12444 auto char dummy;
12445 if (addr == 0)
12446 {
12447 addr = &dummy;
12448 return find_stack_direction ();
12449 }
12450 else
12451 return (&dummy > addr) ? 1 : -1;
12452 }
12453
12454 int
12455 main ()
12456 {
12457 return find_stack_direction () < 0;
12458 }
12459 _ACEOF
12460 if ac_fn_c_try_run "$LINENO"; then :
12461 ac_cv_c_stack_direction=1
12462 else
12463 ac_cv_c_stack_direction=-1
12464 fi
12465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12466 conftest.$ac_objext conftest.beam conftest.$ac_ext
12467 fi
12468
12469 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12471 $as_echo "$ac_cv_c_stack_direction" >&6; }
12472 cat >>confdefs.h <<_ACEOF
12473 #define STACK_DIRECTION $ac_cv_c_stack_direction
12474 _ACEOF
12475
12476
12477 fi
12478
12479 for ac_header in stdlib.h unistd.h
12480 do :
12481 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12482 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12483 eval as_val=\$$as_ac_Header
12484 if test "x$as_val" = x""yes; then :
12485 cat >>confdefs.h <<_ACEOF
12486 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12487 _ACEOF
12488
12489 fi
12490
12491 done
12492
12493 for ac_func in getpagesize
12494 do :
12495 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12496 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12497 cat >>confdefs.h <<_ACEOF
12498 #define HAVE_GETPAGESIZE 1
12499 _ACEOF
12500
12501 fi
12502 done
12503
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12505 $as_echo_n "checking for working mmap... " >&6; }
12506 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 if test "$cross_compiling" = yes; then :
12510 ac_cv_func_mmap_fixed_mapped=no
12511 else
12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513 /* end confdefs.h. */
12514 $ac_includes_default
12515 /* malloc might have been renamed as rpl_malloc. */
12516 #undef malloc
12517
12518 /* Thanks to Mike Haertel and Jim Avera for this test.
12519 Here is a matrix of mmap possibilities:
12520 mmap private not fixed
12521 mmap private fixed at somewhere currently unmapped
12522 mmap private fixed at somewhere already mapped
12523 mmap shared not fixed
12524 mmap shared fixed at somewhere currently unmapped
12525 mmap shared fixed at somewhere already mapped
12526 For private mappings, we should verify that changes cannot be read()
12527 back from the file, nor mmap's back from the file at a different
12528 address. (There have been systems where private was not correctly
12529 implemented like the infamous i386 svr4.0, and systems where the
12530 VM page cache was not coherent with the file system buffer cache
12531 like early versions of FreeBSD and possibly contemporary NetBSD.)
12532 For shared mappings, we should conversely verify that changes get
12533 propagated back to all the places they're supposed to be.
12534
12535 Grep wants private fixed already mapped.
12536 The main things grep needs to know about mmap are:
12537 * does it exist and is it safe to write into the mmap'd area
12538 * how to use it (BSD variants) */
12539
12540 #include <fcntl.h>
12541 #include <sys/mman.h>
12542
12543 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12544 char *malloc ();
12545 #endif
12546
12547 /* This mess was copied from the GNU getpagesize.h. */
12548 #ifndef HAVE_GETPAGESIZE
12549 /* Assume that all systems that can run configure have sys/param.h. */
12550 # ifndef HAVE_SYS_PARAM_H
12551 # define HAVE_SYS_PARAM_H 1
12552 # endif
12553
12554 # ifdef _SC_PAGESIZE
12555 # define getpagesize() sysconf(_SC_PAGESIZE)
12556 # else /* no _SC_PAGESIZE */
12557 # ifdef HAVE_SYS_PARAM_H
12558 # include <sys/param.h>
12559 # ifdef EXEC_PAGESIZE
12560 # define getpagesize() EXEC_PAGESIZE
12561 # else /* no EXEC_PAGESIZE */
12562 # ifdef NBPG
12563 # define getpagesize() NBPG * CLSIZE
12564 # ifndef CLSIZE
12565 # define CLSIZE 1
12566 # endif /* no CLSIZE */
12567 # else /* no NBPG */
12568 # ifdef NBPC
12569 # define getpagesize() NBPC
12570 # else /* no NBPC */
12571 # ifdef PAGESIZE
12572 # define getpagesize() PAGESIZE
12573 # endif /* PAGESIZE */
12574 # endif /* no NBPC */
12575 # endif /* no NBPG */
12576 # endif /* no EXEC_PAGESIZE */
12577 # else /* no HAVE_SYS_PARAM_H */
12578 # define getpagesize() 8192 /* punt totally */
12579 # endif /* no HAVE_SYS_PARAM_H */
12580 # endif /* no _SC_PAGESIZE */
12581
12582 #endif /* no HAVE_GETPAGESIZE */
12583
12584 int
12585 main ()
12586 {
12587 char *data, *data2, *data3;
12588 int i, pagesize;
12589 int fd;
12590
12591 pagesize = getpagesize ();
12592
12593 /* First, make a file with some known garbage in it. */
12594 data = (char *) malloc (pagesize);
12595 if (!data)
12596 return 1;
12597 for (i = 0; i < pagesize; ++i)
12598 *(data + i) = rand ();
12599 umask (0);
12600 fd = creat ("conftest.mmap", 0600);
12601 if (fd < 0)
12602 return 1;
12603 if (write (fd, data, pagesize) != pagesize)
12604 return 1;
12605 close (fd);
12606
12607 /* Next, try to mmap the file at a fixed address which already has
12608 something else allocated at it. If we can, also make sure that
12609 we see the same garbage. */
12610 fd = open ("conftest.mmap", O_RDWR);
12611 if (fd < 0)
12612 return 1;
12613 data2 = (char *) malloc (2 * pagesize);
12614 if (!data2)
12615 return 1;
12616 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12617 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12618 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12619 return 1;
12620 for (i = 0; i < pagesize; ++i)
12621 if (*(data + i) != *(data2 + i))
12622 return 1;
12623
12624 /* Finally, make sure that changes to the mapped area do not
12625 percolate back to the file as seen by read(). (This is a bug on
12626 some variants of i386 svr4.0.) */
12627 for (i = 0; i < pagesize; ++i)
12628 *(data2 + i) = *(data2 + i) + 1;
12629 data3 = (char *) malloc (pagesize);
12630 if (!data3)
12631 return 1;
12632 if (read (fd, data3, pagesize) != pagesize)
12633 return 1;
12634 for (i = 0; i < pagesize; ++i)
12635 if (*(data + i) != *(data3 + i))
12636 return 1;
12637 close (fd);
12638 return 0;
12639 }
12640 _ACEOF
12641 if ac_fn_c_try_run "$LINENO"; then :
12642 ac_cv_func_mmap_fixed_mapped=yes
12643 else
12644 ac_cv_func_mmap_fixed_mapped=no
12645 fi
12646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12647 conftest.$ac_objext conftest.beam conftest.$ac_ext
12648 fi
12649
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12652 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12653 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12654
12655 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12656
12657 fi
12658 rm -f conftest.mmap
12659
12660 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12661 if test "x$ac_cv_type_pid_t" = x""yes; then :
12662
12663 else
12664
12665 cat >>confdefs.h <<_ACEOF
12666 #define pid_t int
12667 _ACEOF
12668
12669 fi
12670
12671 for ac_header in vfork.h
12672 do :
12673 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12674 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12675 cat >>confdefs.h <<_ACEOF
12676 #define HAVE_VFORK_H 1
12677 _ACEOF
12678
12679 fi
12680
12681 done
12682
12683 for ac_func in fork vfork
12684 do :
12685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12687 eval as_val=\$$as_ac_var
12688 if test "x$as_val" = x""yes; then :
12689 cat >>confdefs.h <<_ACEOF
12690 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12691 _ACEOF
12692
12693 fi
12694 done
12695
12696 if test "x$ac_cv_func_fork" = xyes; then
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12698 $as_echo_n "checking for working fork... " >&6; }
12699 if test "${ac_cv_func_fork_works+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
12701 else
12702 if test "$cross_compiling" = yes; then :
12703 ac_cv_func_fork_works=cross
12704 else
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h. */
12707 $ac_includes_default
12708 int
12709 main ()
12710 {
12711
12712 /* By Ruediger Kuhlmann. */
12713 return fork () < 0;
12714
12715 ;
12716 return 0;
12717 }
12718 _ACEOF
12719 if ac_fn_c_try_run "$LINENO"; then :
12720 ac_cv_func_fork_works=yes
12721 else
12722 ac_cv_func_fork_works=no
12723 fi
12724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12725 conftest.$ac_objext conftest.beam conftest.$ac_ext
12726 fi
12727
12728 fi
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12730 $as_echo "$ac_cv_func_fork_works" >&6; }
12731
12732 else
12733 ac_cv_func_fork_works=$ac_cv_func_fork
12734 fi
12735 if test "x$ac_cv_func_fork_works" = xcross; then
12736 case $host in
12737 *-*-amigaos* | *-*-msdosdjgpp*)
12738 # Override, as these systems have only a dummy fork() stub
12739 ac_cv_func_fork_works=no
12740 ;;
12741 *)
12742 ac_cv_func_fork_works=yes
12743 ;;
12744 esac
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12746 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12747 fi
12748 ac_cv_func_vfork_works=$ac_cv_func_vfork
12749 if test "x$ac_cv_func_vfork" = xyes; then
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12751 $as_echo_n "checking for working vfork... " >&6; }
12752 if test "${ac_cv_func_vfork_works+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 if test "$cross_compiling" = yes; then :
12756 ac_cv_func_vfork_works=cross
12757 else
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 /* Thanks to Paul Eggert for this test. */
12761 $ac_includes_default
12762 #include <sys/wait.h>
12763 #ifdef HAVE_VFORK_H
12764 # include <vfork.h>
12765 #endif
12766 /* On some sparc systems, changes by the child to local and incoming
12767 argument registers are propagated back to the parent. The compiler
12768 is told about this with #include <vfork.h>, but some compilers
12769 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12770 static variable whose address is put into a register that is
12771 clobbered by the vfork. */
12772 static void
12773 #ifdef __cplusplus
12774 sparc_address_test (int arg)
12775 # else
12776 sparc_address_test (arg) int arg;
12777 #endif
12778 {
12779 static pid_t child;
12780 if (!child) {
12781 child = vfork ();
12782 if (child < 0) {
12783 perror ("vfork");
12784 _exit(2);
12785 }
12786 if (!child) {
12787 arg = getpid();
12788 write(-1, "", 0);
12789 _exit (arg);
12790 }
12791 }
12792 }
12793
12794 int
12795 main ()
12796 {
12797 pid_t parent = getpid ();
12798 pid_t child;
12799
12800 sparc_address_test (0);
12801
12802 child = vfork ();
12803
12804 if (child == 0) {
12805 /* Here is another test for sparc vfork register problems. This
12806 test uses lots of local variables, at least as many local
12807 variables as main has allocated so far including compiler
12808 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12809 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12810 reuse the register of parent for one of the local variables,
12811 since it will think that parent can't possibly be used any more
12812 in this routine. Assigning to the local variable will thus
12813 munge parent in the parent process. */
12814 pid_t
12815 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12816 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12817 /* Convince the compiler that p..p7 are live; otherwise, it might
12818 use the same hardware register for all 8 local variables. */
12819 if (p != p1 || p != p2 || p != p3 || p != p4
12820 || p != p5 || p != p6 || p != p7)
12821 _exit(1);
12822
12823 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12824 from child file descriptors. If the child closes a descriptor
12825 before it execs or exits, this munges the parent's descriptor
12826 as well. Test for this by closing stdout in the child. */
12827 _exit(close(fileno(stdout)) != 0);
12828 } else {
12829 int status;
12830 struct stat st;
12831
12832 while (wait(&status) != child)
12833 ;
12834 return (
12835 /* Was there some problem with vforking? */
12836 child < 0
12837
12838 /* Did the child fail? (This shouldn't happen.) */
12839 || status
12840
12841 /* Did the vfork/compiler bug occur? */
12842 || parent != getpid()
12843
12844 /* Did the file descriptor bug occur? */
12845 || fstat(fileno(stdout), &st) != 0
12846 );
12847 }
12848 }
12849 _ACEOF
12850 if ac_fn_c_try_run "$LINENO"; then :
12851 ac_cv_func_vfork_works=yes
12852 else
12853 ac_cv_func_vfork_works=no
12854 fi
12855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12856 conftest.$ac_objext conftest.beam conftest.$ac_ext
12857 fi
12858
12859 fi
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12861 $as_echo "$ac_cv_func_vfork_works" >&6; }
12862
12863 fi;
12864 if test "x$ac_cv_func_fork_works" = xcross; then
12865 ac_cv_func_vfork_works=$ac_cv_func_vfork
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12867 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12868 fi
12869
12870 if test "x$ac_cv_func_vfork_works" = xyes; then
12871
12872 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12873
12874 else
12875
12876 $as_echo "#define vfork fork" >>confdefs.h
12877
12878 fi
12879 if test "x$ac_cv_func_fork_works" = xyes; then
12880
12881 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12882
12883 fi
12884
12885 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
12886 pipe poll pread pread64 pwrite readlink resize_term \
12887 sbrk setpgid setpgrp setsid \
12888 sigaction sigprocmask sigsetmask socketpair syscall \
12889 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12890 setrlimit getrlimit posix_madvise waitpid lstat
12891 do :
12892 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12894 eval as_val=\$$as_ac_var
12895 if test "x$as_val" = x""yes; then :
12896 cat >>confdefs.h <<_ACEOF
12897 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12898 _ACEOF
12899
12900 fi
12901 done
12902
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12905 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12906 if test "${am_cv_langinfo_codeset+set}" = set; then :
12907 $as_echo_n "(cached) " >&6
12908 else
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910 /* end confdefs.h. */
12911 #include <langinfo.h>
12912 int
12913 main ()
12914 {
12915 char* cs = nl_langinfo(CODESET);
12916 ;
12917 return 0;
12918 }
12919 _ACEOF
12920 if ac_fn_c_try_link "$LINENO"; then :
12921 am_cv_langinfo_codeset=yes
12922 else
12923 am_cv_langinfo_codeset=no
12924 fi
12925 rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
12927
12928 fi
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12930 $as_echo "$am_cv_langinfo_codeset" >&6; }
12931 if test $am_cv_langinfo_codeset = yes; then
12932
12933 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12934
12935 fi
12936
12937
12938 # Check the return and argument types of ptrace. No canned test for
12939 # this, so roll our own.
12940 gdb_ptrace_headers='
12941 #if HAVE_SYS_TYPES_H
12942 # include <sys/types.h>
12943 #endif
12944 #if HAVE_SYS_PTRACE_H
12945 # include <sys/ptrace.h>
12946 #endif
12947 #if HAVE_UNISTD_H
12948 # include <unistd.h>
12949 #endif
12950 '
12951 # There is no point in checking if we don't have a prototype.
12952 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12953 "
12954 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12955 ac_have_decl=1
12956 else
12957 ac_have_decl=0
12958 fi
12959
12960 cat >>confdefs.h <<_ACEOF
12961 #define HAVE_DECL_PTRACE $ac_have_decl
12962 _ACEOF
12963 if test $ac_have_decl = 1; then :
12964
12965 else
12966
12967 : ${gdb_cv_func_ptrace_ret='int'}
12968 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12969
12970 fi
12971
12972 # Check return type. Varargs (used on GNU/Linux) conflict with the
12973 # empty argument list, so check for that explicitly.
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12975 $as_echo_n "checking return type of ptrace... " >&6; }
12976 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12977 $as_echo_n "(cached) " >&6
12978 else
12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 $gdb_ptrace_headers
12982 int
12983 main ()
12984 {
12985 extern long ptrace (enum __ptrace_request, ...);
12986 ;
12987 return 0;
12988 }
12989 _ACEOF
12990 if ac_fn_c_try_compile "$LINENO"; then :
12991 gdb_cv_func_ptrace_ret='long'
12992 else
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12995 $gdb_ptrace_headers
12996 int
12997 main ()
12998 {
12999 extern int ptrace ();
13000 ;
13001 return 0;
13002 }
13003 _ACEOF
13004 if ac_fn_c_try_compile "$LINENO"; then :
13005 gdb_cv_func_ptrace_ret='int'
13006 else
13007 gdb_cv_func_ptrace_ret='long'
13008 fi
13009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010 fi
13011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13014 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13015
13016 cat >>confdefs.h <<_ACEOF
13017 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13018 _ACEOF
13019
13020 # Check argument types.
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13022 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13023 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026
13027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h. */
13029 $gdb_ptrace_headers
13030 int
13031 main ()
13032 {
13033 extern long ptrace (enum __ptrace_request, ...);
13034 ;
13035 return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039 gdb_cv_func_ptrace_args='int,int,long,long'
13040 else
13041
13042 for gdb_arg1 in 'int' 'long'; do
13043 for gdb_arg2 in 'pid_t' 'int' 'long'; do
13044 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13045 for gdb_arg4 in 'int' 'long'; do
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048 $gdb_ptrace_headers
13049 int
13050 main ()
13051 {
13052
13053 extern $gdb_cv_func_ptrace_ret
13054 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13055
13056 ;
13057 return 0;
13058 }
13059 _ACEOF
13060 if ac_fn_c_try_compile "$LINENO"; then :
13061 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13062 break 4;
13063 fi
13064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065 for gdb_arg5 in 'int *' 'int' 'long'; do
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h. */
13068 $gdb_ptrace_headers
13069 int
13070 main ()
13071 {
13072
13073 extern $gdb_cv_func_ptrace_ret
13074 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13075
13076 ;
13077 return 0;
13078 }
13079 _ACEOF
13080 if ac_fn_c_try_compile "$LINENO"; then :
13081
13082 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13083 break 5;
13084 fi
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 done
13087 done
13088 done
13089 done
13090 done
13091 # Provide a safe default value.
13092 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13093
13094 fi
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13096 fi
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13098 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13099 ac_save_IFS=$IFS; IFS=','
13100 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13101 IFS=$ac_save_IFS
13102 shift
13103
13104 cat >>confdefs.h <<_ACEOF
13105 #define PTRACE_TYPE_ARG3 $3
13106 _ACEOF
13107
13108 if test -n "$5"; then
13109
13110 cat >>confdefs.h <<_ACEOF
13111 #define PTRACE_TYPE_ARG5 $5
13112 _ACEOF
13113
13114 fi
13115
13116 if test "$cross_compiling" = no; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13118 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13119 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13120 $as_echo_n "(cached) " >&6
13121 else
13122 if test "$cross_compiling" = yes; then :
13123 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
13124 else
13125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126 /* end confdefs.h. */
13127 $ac_includes_default
13128 int
13129 main ()
13130 {
13131 /* If this system has a BSD-style setpgrp which takes arguments,
13132 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13133 exit successfully. */
13134 return setpgrp (1,1) != -1;
13135 ;
13136 return 0;
13137 }
13138 _ACEOF
13139 if ac_fn_c_try_run "$LINENO"; then :
13140 ac_cv_func_setpgrp_void=no
13141 else
13142 ac_cv_func_setpgrp_void=yes
13143 fi
13144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13145 conftest.$ac_objext conftest.beam conftest.$ac_ext
13146 fi
13147
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13150 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13151 if test $ac_cv_func_setpgrp_void = yes; then
13152
13153 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13154
13155 fi
13156
13157 else
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13159 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13160 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13161 $as_echo_n "(cached) " >&6
13162 else
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165
13166 #include <unistd.h>
13167
13168 int
13169 main ()
13170 {
13171
13172 if (setpgrp(1,1) == -1)
13173 exit (0);
13174 else
13175 exit (1);
13176
13177 ;
13178 return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_compile "$LINENO"; then :
13182 ac_cv_func_setpgrp_void=no
13183 else
13184 ac_cv_func_setpgrp_void=yes
13185 fi
13186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13189 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13190 if test $ac_cv_func_setpgrp_void = yes; then
13191 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13192
13193 fi
13194 fi
13195
13196 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
13197 # since sigsetjmp might only be defined as a macro.
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13199 $as_echo_n "checking for sigsetjmp... " >&6; }
13200 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13201 $as_echo_n "(cached) " >&6
13202 else
13203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13204 /* end confdefs.h. */
13205
13206 #include <setjmp.h>
13207
13208 int
13209 main ()
13210 {
13211 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13212 ;
13213 return 0;
13214 }
13215 _ACEOF
13216 if ac_fn_c_try_compile "$LINENO"; then :
13217 gdb_cv_func_sigsetjmp=yes
13218 else
13219 gdb_cv_func_sigsetjmp=no
13220 fi
13221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13222 fi
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13224 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13225 if test $gdb_cv_func_sigsetjmp = yes; then
13226
13227 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13228
13229 fi
13230
13231 # Assume we'll default to using the included libiberty regex.
13232 gdb_use_included_regex=yes
13233
13234 # However, if the system regex is GNU regex, then default to *not*
13235 # using the included regex.
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13237 $as_echo_n "checking for GNU regex... " >&6; }
13238 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13239 $as_echo_n "(cached) " >&6
13240 else
13241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13242 /* end confdefs.h. */
13243 #include <gnu-versions.h>
13244 int
13245 main ()
13246 {
13247 #define REGEX_INTERFACE_VERSION 1
13248 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13249 # error "Version mismatch"
13250 #endif
13251 ;
13252 return 0;
13253 }
13254 _ACEOF
13255 if ac_fn_c_try_compile "$LINENO"; then :
13256 gdb_cv_have_gnu_regex=yes
13257 else
13258 gdb_cv_have_gnu_regex=no
13259 fi
13260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13261 fi
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13263 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13264 if test $gdb_cv_have_gnu_regex = yes; then
13265 gdb_use_included_regex=no
13266 fi
13267
13268
13269 # Check whether --with-included-regex was given.
13270 if test "${with_included_regex+set}" = set; then :
13271 withval=$with_included_regex; gdb_with_regex=$withval
13272 else
13273 gdb_with_regex=$gdb_use_included_regex
13274 fi
13275
13276 if test "$gdb_with_regex" = yes; then
13277
13278 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13279
13280 fi
13281
13282 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13283 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13284 #include <sys/proc.h>
13285
13286 "
13287 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
13288
13289 cat >>confdefs.h <<_ACEOF
13290 #define HAVE_STRUCT_THREAD_TD_PCB 1
13291 _ACEOF
13292
13293
13294 fi
13295
13296
13297 # See if <sys/lwp.h> defines `struct lwp`.
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13299 $as_echo_n "checking for struct lwp... " >&6; }
13300 if test "${gdb_cv_struct_lwp+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13304 /* end confdefs.h. */
13305 #include <sys/param.h>
13306 #include <sys/lwp.h>
13307 int
13308 main ()
13309 {
13310 struct lwp l;
13311 ;
13312 return 0;
13313 }
13314 _ACEOF
13315 if ac_fn_c_try_compile "$LINENO"; then :
13316 gdb_cv_struct_lwp=yes
13317 else
13318 gdb_cv_struct_lwp=no
13319 fi
13320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13321 fi
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13323 $as_echo "$gdb_cv_struct_lwp" >&6; }
13324 if test $gdb_cv_struct_lwp = yes; then
13325
13326 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13327
13328 fi
13329
13330 # See if <machine/reg.h> degines `struct reg'.
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13332 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13333 if test "${gdb_cv_struct_reg+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
13335 else
13336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13337 /* end confdefs.h. */
13338 #include <sys/types.h>
13339 #include <machine/reg.h>
13340 int
13341 main ()
13342 {
13343 struct reg r;
13344 ;
13345 return 0;
13346 }
13347 _ACEOF
13348 if ac_fn_c_try_compile "$LINENO"; then :
13349 gdb_cv_struct_reg=yes
13350 else
13351 gdb_cv_struct_reg=no
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13356 $as_echo "$gdb_cv_struct_reg" >&6; }
13357 if test $gdb_cv_struct_reg = yes; then
13358
13359 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13360
13361 fi
13362
13363 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13364 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13365 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13366 "
13367 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13368
13369 cat >>confdefs.h <<_ACEOF
13370 #define HAVE_STRUCT_REG_R_FS 1
13371 _ACEOF
13372
13373
13374 fi
13375 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13376 "
13377 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13378
13379 cat >>confdefs.h <<_ACEOF
13380 #define HAVE_STRUCT_REG_R_GS 1
13381 _ACEOF
13382
13383
13384 fi
13385
13386
13387 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13389 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13390 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13391 $as_echo_n "(cached) " >&6
13392 else
13393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394 /* end confdefs.h. */
13395 #include <sys/ptrace.h>
13396 int
13397 main ()
13398 {
13399 PTRACE_GETREGS;
13400 ;
13401 return 0;
13402 }
13403 _ACEOF
13404 if ac_fn_c_try_compile "$LINENO"; then :
13405 gdb_cv_have_ptrace_getregs=yes
13406 else
13407 gdb_cv_have_ptrace_getregs=no
13408 fi
13409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13410 fi
13411
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13413 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13414 if test $gdb_cv_have_ptrace_getregs = yes; then
13415
13416 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13417
13418 fi
13419
13420 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13422 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13423 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13424 $as_echo_n "(cached) " >&6
13425 else
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13428 #include <sys/ptrace.h>
13429 int
13430 main ()
13431 {
13432 PTRACE_GETFPXREGS;
13433 ;
13434 return 0;
13435 }
13436 _ACEOF
13437 if ac_fn_c_try_compile "$LINENO"; then :
13438 gdb_cv_have_ptrace_getfpxregs=yes
13439 else
13440 gdb_cv_have_ptrace_getfpxregs=no
13441 fi
13442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13443 fi
13444
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13446 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13447 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13448
13449 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13450
13451 fi
13452
13453 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13455 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13456 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13457 $as_echo_n "(cached) " >&6
13458 else
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13461 #include <sys/types.h>
13462 #include <sys/ptrace.h>
13463 int
13464 main ()
13465 {
13466 PT_GETDBREGS;
13467 ;
13468 return 0;
13469 }
13470 _ACEOF
13471 if ac_fn_c_try_compile "$LINENO"; then :
13472 gdb_cv_have_pt_getdbregs=yes
13473 else
13474 gdb_cv_have_pt_getdbregs=no
13475 fi
13476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13477 fi
13478
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13480 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13481 if test $gdb_cv_have_pt_getdbregs = yes; then
13482
13483 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13484
13485 fi
13486
13487 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13489 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13490 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13494 /* end confdefs.h. */
13495 #include <sys/types.h>
13496 #include <sys/ptrace.h>
13497 int
13498 main ()
13499 {
13500 PT_GETXMMREGS;
13501 ;
13502 return 0;
13503 }
13504 _ACEOF
13505 if ac_fn_c_try_compile "$LINENO"; then :
13506 gdb_cv_have_pt_getxmmregs=yes
13507 else
13508 gdb_cv_have_pt_getxmmregs=no
13509 fi
13510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511 fi
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13514 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13515 if test $gdb_cv_have_pt_getxmmregs = yes; then
13516
13517 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13518
13519 fi
13520
13521 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13522
13523 if test "${target}" = "${host}"; then
13524 case "${host}" in
13525 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13526
13527 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13528
13529 ;;
13530 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13531
13532 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13533
13534 ;;
13535 mips-sgi-irix5*)
13536 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13537
13538 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13539
13540 ;;
13541 esac
13542 fi
13543
13544 if test "$ac_cv_header_sys_procfs_h" = yes; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13546 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13547 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13548 $as_echo_n "(cached) " >&6
13549 else
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13552
13553 #define _SYSCALL32
13554 /* Needed for new procfs interface on sparc-solaris. */
13555 #define _STRUCTURED_PROC 1
13556 #include <sys/procfs.h>
13557 int
13558 main ()
13559 {
13560 pstatus_t avar
13561 ;
13562 return 0;
13563 }
13564 _ACEOF
13565 if ac_fn_c_try_compile "$LINENO"; then :
13566 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13567 else
13568 bfd_cv_have_sys_procfs_type_pstatus_t=no
13569
13570 fi
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 fi
13573
13574 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13575
13576 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13577
13578 fi
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13580 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13581
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13583 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13584 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13588 /* end confdefs.h. */
13589
13590 #define _SYSCALL32
13591 /* Needed for new procfs interface on sparc-solaris. */
13592 #define _STRUCTURED_PROC 1
13593 #include <sys/procfs.h>
13594 int
13595 main ()
13596 {
13597 prrun_t avar
13598 ;
13599 return 0;
13600 }
13601 _ACEOF
13602 if ac_fn_c_try_compile "$LINENO"; then :
13603 bfd_cv_have_sys_procfs_type_prrun_t=yes
13604 else
13605 bfd_cv_have_sys_procfs_type_prrun_t=no
13606
13607 fi
13608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13609 fi
13610
13611 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13612
13613 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13614
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13617 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13618
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13620 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13621 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626
13627 #define _SYSCALL32
13628 /* Needed for new procfs interface on sparc-solaris. */
13629 #define _STRUCTURED_PROC 1
13630 #include <sys/procfs.h>
13631 int
13632 main ()
13633 {
13634 gregset_t avar
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_compile "$LINENO"; then :
13640 bfd_cv_have_sys_procfs_type_gregset_t=yes
13641 else
13642 bfd_cv_have_sys_procfs_type_gregset_t=no
13643
13644 fi
13645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 fi
13647
13648 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
13649
13650 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13651
13652 fi
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13654 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13657 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13658 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
13659 $as_echo_n "(cached) " >&6
13660 else
13661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13662 /* end confdefs.h. */
13663
13664 #define _SYSCALL32
13665 /* Needed for new procfs interface on sparc-solaris. */
13666 #define _STRUCTURED_PROC 1
13667 #include <sys/procfs.h>
13668 int
13669 main ()
13670 {
13671 fpregset_t avar
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_compile "$LINENO"; then :
13677 bfd_cv_have_sys_procfs_type_fpregset_t=yes
13678 else
13679 bfd_cv_have_sys_procfs_type_fpregset_t=no
13680
13681 fi
13682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13683 fi
13684
13685 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
13686
13687 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13688
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13691 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13694 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13695 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
13696 $as_echo_n "(cached) " >&6
13697 else
13698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13700
13701 #define _SYSCALL32
13702 /* Needed for new procfs interface on sparc-solaris. */
13703 #define _STRUCTURED_PROC 1
13704 #include <sys/procfs.h>
13705 int
13706 main ()
13707 {
13708 prgregset_t avar
13709 ;
13710 return 0;
13711 }
13712 _ACEOF
13713 if ac_fn_c_try_compile "$LINENO"; then :
13714 bfd_cv_have_sys_procfs_type_prgregset_t=yes
13715 else
13716 bfd_cv_have_sys_procfs_type_prgregset_t=no
13717
13718 fi
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 fi
13721
13722 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
13723
13724 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13725
13726 fi
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13728 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13729
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13731 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13732 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13737
13738 #define _SYSCALL32
13739 /* Needed for new procfs interface on sparc-solaris. */
13740 #define _STRUCTURED_PROC 1
13741 #include <sys/procfs.h>
13742 int
13743 main ()
13744 {
13745 prfpregset_t avar
13746 ;
13747 return 0;
13748 }
13749 _ACEOF
13750 if ac_fn_c_try_compile "$LINENO"; then :
13751 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
13752 else
13753 bfd_cv_have_sys_procfs_type_prfpregset_t=no
13754
13755 fi
13756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13757 fi
13758
13759 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13760
13761 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13762
13763 fi
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13765 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13768 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13769 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
13770 $as_echo_n "(cached) " >&6
13771 else
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774
13775 #define _SYSCALL32
13776 /* Needed for new procfs interface on sparc-solaris. */
13777 #define _STRUCTURED_PROC 1
13778 #include <sys/procfs.h>
13779 int
13780 main ()
13781 {
13782 prgregset32_t avar
13783 ;
13784 return 0;
13785 }
13786 _ACEOF
13787 if ac_fn_c_try_compile "$LINENO"; then :
13788 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
13789 else
13790 bfd_cv_have_sys_procfs_type_prgregset32_t=no
13791
13792 fi
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 fi
13795
13796 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
13797
13798 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13799
13800 fi
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13802 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13803
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13805 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13806 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811
13812 #define _SYSCALL32
13813 /* Needed for new procfs interface on sparc-solaris. */
13814 #define _STRUCTURED_PROC 1
13815 #include <sys/procfs.h>
13816 int
13817 main ()
13818 {
13819 prfpregset32_t avar
13820 ;
13821 return 0;
13822 }
13823 _ACEOF
13824 if ac_fn_c_try_compile "$LINENO"; then :
13825 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
13826 else
13827 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
13828
13829 fi
13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13831 fi
13832
13833 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
13834
13835 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13836
13837 fi
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13839 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13840
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13842 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13843 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
13844 $as_echo_n "(cached) " >&6
13845 else
13846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h. */
13848
13849 #define _SYSCALL32
13850 /* Needed for new procfs interface on sparc-solaris. */
13851 #define _STRUCTURED_PROC 1
13852 #include <sys/procfs.h>
13853 int
13854 main ()
13855 {
13856 lwpid_t avar
13857 ;
13858 return 0;
13859 }
13860 _ACEOF
13861 if ac_fn_c_try_compile "$LINENO"; then :
13862 bfd_cv_have_sys_procfs_type_lwpid_t=yes
13863 else
13864 bfd_cv_have_sys_procfs_type_lwpid_t=no
13865
13866 fi
13867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13868 fi
13869
13870 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
13871
13872 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13873
13874 fi
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13876 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13879 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13880 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13884 /* end confdefs.h. */
13885
13886 #define _SYSCALL32
13887 /* Needed for new procfs interface on sparc-solaris. */
13888 #define _STRUCTURED_PROC 1
13889 #include <sys/procfs.h>
13890 int
13891 main ()
13892 {
13893 psaddr_t avar
13894 ;
13895 return 0;
13896 }
13897 _ACEOF
13898 if ac_fn_c_try_compile "$LINENO"; then :
13899 bfd_cv_have_sys_procfs_type_psaddr_t=yes
13900 else
13901 bfd_cv_have_sys_procfs_type_psaddr_t=no
13902
13903 fi
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 fi
13906
13907 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
13908
13909 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13910
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13913 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13916 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13917 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
13918 $as_echo_n "(cached) " >&6
13919 else
13920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h. */
13922
13923 #define _SYSCALL32
13924 /* Needed for new procfs interface on sparc-solaris. */
13925 #define _STRUCTURED_PROC 1
13926 #include <sys/procfs.h>
13927 int
13928 main ()
13929 {
13930 prsysent_t avar
13931 ;
13932 return 0;
13933 }
13934 _ACEOF
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 bfd_cv_have_sys_procfs_type_prsysent_t=yes
13937 else
13938 bfd_cv_have_sys_procfs_type_prsysent_t=no
13939
13940 fi
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942 fi
13943
13944 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
13945
13946 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13947
13948 fi
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13950 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13951
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13953 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13954 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
13955 $as_echo_n "(cached) " >&6
13956 else
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959
13960 #define _SYSCALL32
13961 /* Needed for new procfs interface on sparc-solaris. */
13962 #define _STRUCTURED_PROC 1
13963 #include <sys/procfs.h>
13964 int
13965 main ()
13966 {
13967 pr_sigset_t avar
13968 ;
13969 return 0;
13970 }
13971 _ACEOF
13972 if ac_fn_c_try_compile "$LINENO"; then :
13973 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
13974 else
13975 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
13976
13977 fi
13978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13979 fi
13980
13981 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
13982
13983 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13984
13985 fi
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13987 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13988
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13990 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13991 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h. */
13996
13997 #define _SYSCALL32
13998 /* Needed for new procfs interface on sparc-solaris. */
13999 #define _STRUCTURED_PROC 1
14000 #include <sys/procfs.h>
14001 int
14002 main ()
14003 {
14004 pr_sigaction64_t avar
14005 ;
14006 return 0;
14007 }
14008 _ACEOF
14009 if ac_fn_c_try_compile "$LINENO"; then :
14010 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
14011 else
14012 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
14013
14014 fi
14015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14016 fi
14017
14018 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
14019
14020 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
14021
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
14024 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
14025
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
14027 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
14028 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
14029 $as_echo_n "(cached) " >&6
14030 else
14031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14032 /* end confdefs.h. */
14033
14034 #define _SYSCALL32
14035 /* Needed for new procfs interface on sparc-solaris. */
14036 #define _STRUCTURED_PROC 1
14037 #include <sys/procfs.h>
14038 int
14039 main ()
14040 {
14041 pr_siginfo64_t avar
14042 ;
14043 return 0;
14044 }
14045 _ACEOF
14046 if ac_fn_c_try_compile "$LINENO"; then :
14047 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
14048 else
14049 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
14050
14051 fi
14052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14053 fi
14054
14055 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
14056
14057 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
14058
14059 fi
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
14061 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
14062
14063
14064
14065
14066
14067 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
14069 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
14070 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
14071 $as_echo_n "(cached) " >&6
14072 else
14073 if test "$cross_compiling" = yes; then :
14074 gdb_cv_prfpregset_t_broken=yes
14075 else
14076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h. */
14078 #include <sys/procfs.h>
14079 int main ()
14080 {
14081 if (sizeof (prfpregset_t) == sizeof (void *))
14082 return 1;
14083 return 0;
14084 }
14085 _ACEOF
14086 if ac_fn_c_try_run "$LINENO"; then :
14087 gdb_cv_prfpregset_t_broken=no
14088 else
14089 gdb_cv_prfpregset_t_broken=yes
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
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14098 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14099 if test $gdb_cv_prfpregset_t_broken = yes; then
14100
14101 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14102
14103 fi
14104 fi
14105
14106
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
14108 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
14109 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
14110 $as_echo_n "(cached) " >&6
14111 else
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14114 #include <unistd.h>
14115 #include <sys/types.h>
14116 #include <sys/procfs.h>
14117
14118 int
14119 main ()
14120 {
14121
14122 int dummy;;
14123 dummy = ioctl(0, PIOCSET, &dummy);
14124
14125 ;
14126 return 0;
14127 }
14128 _ACEOF
14129 if ac_fn_c_try_compile "$LINENO"; then :
14130 gdb_cv_have_procfs_piocset=yes
14131 else
14132 gdb_cv_have_procfs_piocset=no
14133 fi
14134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14135 fi
14136
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
14138 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
14139 if test $gdb_cv_have_procfs_piocset = yes; then
14140
14141 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
14142
14143 fi
14144 fi
14145
14146 if test ${host} = ${target} ; then
14147
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
14149 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
14150 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
14151 $as_echo_n "(cached) " >&6
14152 else
14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14154 /* end confdefs.h. */
14155 #include <link.h>
14156 int
14157 main ()
14158 {
14159 struct link_map lm; (void) lm.l_addr;
14160 ;
14161 return 0;
14162 }
14163 _ACEOF
14164 if ac_fn_c_try_compile "$LINENO"; then :
14165 gdb_cv_have_struct_link_map_with_l_members=yes
14166 else
14167 gdb_cv_have_struct_link_map_with_l_members=no
14168 fi
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 fi
14171
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
14173 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
14174 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
14175
14176 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
14177
14178 fi
14179
14180
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
14182 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
14183 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
14184 $as_echo_n "(cached) " >&6
14185 else
14186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 /* end confdefs.h. */
14188 #include <sys/types.h>
14189 #include <link.h>
14190 int
14191 main ()
14192 {
14193 struct link_map lm; (void) lm.lm_addr;
14194 ;
14195 return 0;
14196 }
14197 _ACEOF
14198 if ac_fn_c_try_compile "$LINENO"; then :
14199 gdb_cv_have_struct_link_map_with_lm_members=yes
14200 else
14201 gdb_cv_have_struct_link_map_with_lm_members=no
14202 fi
14203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14204 fi
14205
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
14207 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
14208 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
14209
14210 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
14211
14212 fi
14213
14214
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
14216 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
14217 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h. */
14222 #include <sys/types.h>
14223 #ifdef HAVE_NLIST_H
14224 #include <nlist.h>
14225 #endif
14226 #include <link.h>
14227 int
14228 main ()
14229 {
14230 struct so_map lm; (void) lm.som_addr;
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 gdb_cv_have_struct_so_map_with_som_members=yes
14237 else
14238 gdb_cv_have_struct_so_map_with_som_members=no
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14241 fi
14242
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
14244 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
14245 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
14246
14247 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
14248
14249 fi
14250
14251
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
14253 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
14254 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
14255 $as_echo_n "(cached) " >&6
14256 else
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14259 #define _SYSCALL32
14260 #include <sys/link.h>
14261 int
14262 main ()
14263 {
14264 struct link_map32 l;
14265 ;
14266 return 0;
14267 }
14268 _ACEOF
14269 if ac_fn_c_try_compile "$LINENO"; then :
14270 gdb_cv_have_struct_link_map32=yes
14271 else
14272 gdb_cv_have_struct_link_map32=no
14273 fi
14274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14275 fi
14276
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
14278 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
14279 if test $gdb_cv_have_struct_link_map32 = yes; then
14280
14281 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
14282
14283
14284 $as_echo "#define _SYSCALL32 1" >>confdefs.h
14285
14286 fi
14287 fi
14288
14289 # Check if the compiler supports the `long long' type.
14290
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14292 $as_echo_n "checking for long long support in compiler... " >&6; }
14293 if test "${gdb_cv_c_long_long+set}" = set; then :
14294 $as_echo_n "(cached) " >&6
14295 else
14296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h. */
14298 extern long long foo;
14299 int
14300 main ()
14301 {
14302 switch (foo & 2) { case 0: return 1; }
14303 ;
14304 return 0;
14305 }
14306 _ACEOF
14307 if ac_fn_c_try_compile "$LINENO"; then :
14308 gdb_cv_c_long_long=yes
14309 else
14310 gdb_cv_c_long_long=no
14311 fi
14312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313 fi
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14315 $as_echo "$gdb_cv_c_long_long" >&6; }
14316 if test $gdb_cv_c_long_long = yes; then
14317
14318 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14319
14320 fi
14321
14322 # Check if the compiler and runtime support printing long longs.
14323
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14325 $as_echo_n "checking for long long support in printf... " >&6; }
14326 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14327 $as_echo_n "(cached) " >&6
14328 else
14329 if test "$cross_compiling" = yes; then :
14330 gdb_cv_printf_has_long_long=no
14331 else
14332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333 /* end confdefs.h. */
14334 $ac_includes_default
14335 int
14336 main ()
14337 {
14338 char buf[32];
14339 long long l = 0;
14340 l = (l << 16) + 0x0123;
14341 l = (l << 16) + 0x4567;
14342 l = (l << 16) + 0x89ab;
14343 l = (l << 16) + 0xcdef;
14344 sprintf (buf, "0x%016llx", l);
14345 return (strcmp ("0x0123456789abcdef", buf));
14346 ;
14347 return 0;
14348 }
14349 _ACEOF
14350 if ac_fn_c_try_run "$LINENO"; then :
14351 gdb_cv_printf_has_long_long=yes
14352 else
14353 gdb_cv_printf_has_long_long=no
14354 fi
14355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14356 conftest.$ac_objext conftest.beam conftest.$ac_ext
14357 fi
14358
14359 fi
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14361 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14362 if test $gdb_cv_printf_has_long_long = yes; then
14363
14364 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14365
14366 fi
14367
14368 # Check if the compiler and runtime support printing decfloats.
14369
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14371 $as_echo_n "checking for decfloat support in printf... " >&6; }
14372 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 if test "$cross_compiling" = yes; then :
14376 gdb_cv_printf_has_decfloat=no
14377 else
14378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h. */
14380 $ac_includes_default
14381 int
14382 main ()
14383 {
14384 char buf[64];
14385 _Decimal32 d32 = 1.2345df;
14386 _Decimal64 d64 = 1.2345dd;
14387 _Decimal128 d128 = 1.2345dl;
14388 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14389 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14390 ;
14391 return 0;
14392 }
14393 _ACEOF
14394 if ac_fn_c_try_run "$LINENO"; then :
14395 gdb_cv_printf_has_decfloat=yes
14396 else
14397 gdb_cv_printf_has_decfloat=no
14398 fi
14399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14400 conftest.$ac_objext conftest.beam conftest.$ac_ext
14401 fi
14402
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14405 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14406 if test $gdb_cv_printf_has_decfloat = yes; then
14407
14408 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14409
14410 fi
14411
14412 # Check if the compiler supports the `long double' type. We can't use
14413 # AC_C_LONG_DOUBLE because that one does additional checks on the
14414 # constants defined in <float.h> that fail on some systems,
14415 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14416
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14418 $as_echo_n "checking for long double support in compiler... " >&6; }
14419 if test "${gdb_cv_c_long_double+set}" = set; then :
14420 $as_echo_n "(cached) " >&6
14421 else
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14424 long double foo;
14425 _ACEOF
14426 if ac_fn_c_try_compile "$LINENO"; then :
14427 gdb_cv_c_long_double=yes
14428 else
14429 gdb_cv_c_long_double=no
14430 fi
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 fi
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14434 $as_echo "$gdb_cv_c_long_double" >&6; }
14435 if test $gdb_cv_c_long_double = yes; then
14436
14437 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14438
14439 fi
14440
14441 # Check if the compiler and runtime support printing long doubles.
14442
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14444 $as_echo_n "checking for long double support in printf... " >&6; }
14445 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 if test "$cross_compiling" = yes; then :
14449 gdb_cv_printf_has_long_double=no
14450 else
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453 $ac_includes_default
14454 int
14455 main ()
14456 {
14457 char buf[16];
14458 long double f = 3.141592653;
14459 sprintf (buf, "%Lg", f);
14460 return (strncmp ("3.14159", buf, 7));
14461 ;
14462 return 0;
14463 }
14464 _ACEOF
14465 if ac_fn_c_try_run "$LINENO"; then :
14466 gdb_cv_printf_has_long_double=yes
14467 else
14468 gdb_cv_printf_has_long_double=no
14469 fi
14470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14471 conftest.$ac_objext conftest.beam conftest.$ac_ext
14472 fi
14473
14474 fi
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14476 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14477 if test $gdb_cv_printf_has_long_double = yes; then
14478
14479 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14480
14481 fi
14482
14483 # Check if the compiler and runtime support scanning long doubles.
14484
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14486 $as_echo_n "checking for long double support in scanf... " >&6; }
14487 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14488 $as_echo_n "(cached) " >&6
14489 else
14490 if test "$cross_compiling" = yes; then :
14491 gdb_cv_scanf_has_long_double=no
14492 else
14493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14494 /* end confdefs.h. */
14495 #include <stdio.h>
14496 int
14497 main ()
14498 {
14499 char *buf = "3.141592653";
14500 long double f = 0;
14501 sscanf (buf, "%Lg", &f);
14502 return !(f > 3.14159 && f < 3.14160);
14503 ;
14504 return 0;
14505 }
14506 _ACEOF
14507 if ac_fn_c_try_run "$LINENO"; then :
14508 gdb_cv_scanf_has_long_double=yes
14509 else
14510 gdb_cv_scanf_has_long_double=no
14511 fi
14512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14513 conftest.$ac_objext conftest.beam conftest.$ac_ext
14514 fi
14515
14516 fi
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14518 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14519 if test $gdb_cv_scanf_has_long_double = yes; then
14520
14521 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14522
14523 fi
14524
14525 case ${host_os} in
14526 aix*)
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14528 $as_echo_n "checking for -bbigtoc option... " >&6; }
14529 if test "${gdb_cv_bigtoc+set}" = set; then :
14530 $as_echo_n "(cached) " >&6
14531 else
14532
14533 SAVE_LDFLAGS=$LDFLAGS
14534
14535 case $GCC in
14536 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14537 *) gdb_cv_bigtoc=-bbigtoc ;;
14538 esac
14539
14540 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h. */
14543
14544 int
14545 main ()
14546 {
14547 int i;
14548 ;
14549 return 0;
14550 }
14551 _ACEOF
14552 if ac_fn_c_try_link "$LINENO"; then :
14553
14554 else
14555 gdb_cv_bigtoc=
14556 fi
14557 rm -f core conftest.err conftest.$ac_objext \
14558 conftest$ac_exeext conftest.$ac_ext
14559 LDFLAGS="${SAVE_LDFLAGS}"
14560
14561 fi
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14563 $as_echo "$gdb_cv_bigtoc" >&6; }
14564 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14565 ;;
14566 esac
14567
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14569 $as_echo_n "checking for the dynamic export flag... " >&6; }
14570 dynamic_list=false
14571 if test "${gdb_native}" = yes; then
14572 # The dynamically loaded libthread_db needs access to symbols in the gdb
14573 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14574 # may not be supported there.
14575 old_LDFLAGS="$LDFLAGS"
14576 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14577 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14578 LDFLAGS="$LDFLAGS $RDYNAMIC"
14579 if test "${have_libpython}" = no; then
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14582
14583 int
14584 main ()
14585 {
14586
14587 ;
14588 return 0;
14589 }
14590 _ACEOF
14591 if ac_fn_c_try_link "$LINENO"; then :
14592 dynamic_list=true
14593 fi
14594 rm -f core conftest.err conftest.$ac_objext \
14595 conftest$ac_exeext conftest.$ac_ext
14596 else
14597 # Workaround http://bugs.python.org/issue4434 where static
14598 # libpythonX.Y.a would get its symbols required for
14599 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14600 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14601 old_CFLAGS="$CFLAGS"
14602 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14603 if test "$cross_compiling" = yes; then :
14604 true
14605 else
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608 #include "${have_libpython}/Python.h"
14609 int
14610 main ()
14611 {
14612 int err;
14613 Py_Initialize ();
14614 err = PyRun_SimpleString ("import itertools\n");
14615 Py_Finalize ();
14616 return err == 0 ? 0 : 1;
14617 ;
14618 return 0;
14619 }
14620 _ACEOF
14621 if ac_fn_c_try_run "$LINENO"; then :
14622 dynamic_list=true
14623 fi
14624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14625 conftest.$ac_objext conftest.beam conftest.$ac_ext
14626 fi
14627
14628 CFLAGS="$old_CFLAGS"
14629 fi
14630 LDFLAGS="$old_LDFLAGS"
14631 fi
14632 if $dynamic_list; then
14633 found="-Wl,--dynamic-list"
14634 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14635 else
14636 found="-rdynamic"
14637 RDYNAMIC="-rdynamic"
14638 fi
14639
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14641 $as_echo "$found" >&6; }
14642
14643
14644 if test ${build} = ${host} -a ${host} = ${target} ; then
14645 case ${host_os} in
14646 solaris*)
14647 # See if thread_db library is around for Solaris thread debugging.
14648 # Note that we must explicitly test for version 1 of the library
14649 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14650 # the same API.
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14652 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14653 if test -f /usr/lib/libthread_db.so.1 ; then
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14655 $as_echo "yes" >&6; }
14656
14657 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14658
14659 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14660 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14662 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14663 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14664 $as_echo_n "(cached) " >&6
14665 else
14666 ac_check_lib_save_LIBS=$LIBS
14667 LIBS="-ldl $LIBS"
14668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14669 /* end confdefs.h. */
14670
14671 /* Override any GCC internal prototype to avoid an error.
14672 Use char because int might match the return type of a GCC
14673 builtin and then its argument prototype would still apply. */
14674 #ifdef __cplusplus
14675 extern "C"
14676 #endif
14677 char dlopen ();
14678 int
14679 main ()
14680 {
14681 return dlopen ();
14682 ;
14683 return 0;
14684 }
14685 _ACEOF
14686 if ac_fn_c_try_link "$LINENO"; then :
14687 ac_cv_lib_dl_dlopen=yes
14688 else
14689 ac_cv_lib_dl_dlopen=no
14690 fi
14691 rm -f core conftest.err conftest.$ac_objext \
14692 conftest$ac_exeext conftest.$ac_ext
14693 LIBS=$ac_check_lib_save_LIBS
14694 fi
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14696 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14697 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14698 cat >>confdefs.h <<_ACEOF
14699 #define HAVE_LIBDL 1
14700 _ACEOF
14701
14702 LIBS="-ldl $LIBS"
14703
14704 fi
14705
14706 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14707 # Sun randomly tweaked the prototypes in <proc_service.h>
14708 # at one point.
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14710 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14711 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14712 $as_echo_n "(cached) " >&6
14713 else
14714
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14717
14718 #include <proc_service.h>
14719 ps_err_e ps_pdwrite
14720 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14721
14722 int
14723 main ()
14724 {
14725
14726 ;
14727 return 0;
14728 }
14729 _ACEOF
14730 if ac_fn_c_try_compile "$LINENO"; then :
14731 gdb_cv_proc_service_is_old=no
14732 else
14733 gdb_cv_proc_service_is_old=yes
14734 fi
14735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736
14737 fi
14738
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14740 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14741 if test $gdb_cv_proc_service_is_old = yes; then
14742
14743 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14744
14745 fi
14746 else
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14749 fi
14750 ;;
14751 aix*)
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14753 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14754 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14755 $as_echo_n "(cached) " >&6
14756 else
14757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14758 /* end confdefs.h. */
14759 #include <sys/pthdebug.h>
14760 int
14761 main ()
14762 {
14763 #ifndef PTHDB_VERSION_3
14764 #error
14765 #endif
14766 ;
14767 return 0;
14768 }
14769 _ACEOF
14770 if ac_fn_c_try_compile "$LINENO"; then :
14771 gdb_cv_have_aix_thread_debug=yes
14772 else
14773 gdb_cv_have_aix_thread_debug=no
14774 fi
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14776 fi
14777
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14779 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14780 if test $gdb_cv_have_aix_thread_debug = yes; then
14781 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14782 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14783 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14784
14785 # Older versions of AIX do not provide the declaration for
14786 # the getthrds function (it appears that it was introduced
14787 # with AIX 6.x).
14788 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14789 "
14790 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
14791 ac_have_decl=1
14792 else
14793 ac_have_decl=0
14794 fi
14795
14796 cat >>confdefs.h <<_ACEOF
14797 #define HAVE_DECL_GETTHRDS $ac_have_decl
14798 _ACEOF
14799
14800 fi
14801 ;;
14802 esac
14803
14804 fi
14805
14806 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14808 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14809 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14813 /* end confdefs.h. */
14814 #include <thread_db.h>
14815 int
14816 main ()
14817 {
14818 int i = TD_NOTALLOC;
14819 ;
14820 return 0;
14821 }
14822 _ACEOF
14823 if ac_fn_c_try_compile "$LINENO"; then :
14824 gdb_cv_thread_db_h_has_td_notalloc=yes
14825 else
14826 gdb_cv_thread_db_h_has_td_notalloc=no
14827
14828 fi
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830
14831 fi
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14833 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14835 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14836 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14837 $as_echo_n "(cached) " >&6
14838 else
14839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14840 /* end confdefs.h. */
14841 #include <thread_db.h>
14842 int
14843 main ()
14844 {
14845 int i = TD_VERSION;
14846 ;
14847 return 0;
14848 }
14849 _ACEOF
14850 if ac_fn_c_try_compile "$LINENO"; then :
14851 gdb_cv_thread_db_h_has_td_version=yes
14852 else
14853 gdb_cv_thread_db_h_has_td_version=no
14854
14855 fi
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857
14858 fi
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14860 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14862 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14863 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14864 $as_echo_n "(cached) " >&6
14865 else
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868 #include <thread_db.h>
14869 int
14870 main ()
14871 {
14872 int i = TD_NOTLS;
14873 ;
14874 return 0;
14875 }
14876 _ACEOF
14877 if ac_fn_c_try_compile "$LINENO"; then :
14878 gdb_cv_thread_db_h_has_td_notls=yes
14879 else
14880 gdb_cv_thread_db_h_has_td_notls=no
14881
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884
14885 fi
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14887 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14888 fi
14889 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14890
14891 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14892
14893 fi
14894 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14895
14896 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14897
14898 fi
14899 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14900
14901 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14902
14903 fi
14904
14905 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14907 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14908 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14909 $as_echo_n "(cached) " >&6
14910 else
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 #include <sys/syscall.h>
14914 int
14915 main ()
14916 {
14917 int i = __NR_tkill;
14918 ;
14919 return 0;
14920 }
14921 _ACEOF
14922 if ac_fn_c_try_compile "$LINENO"; then :
14923 gdb_cv_sys_syscall_h_has_tkill=yes
14924 else
14925 gdb_cv_sys_syscall_h_has_tkill=no
14926
14927 fi
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929
14930 fi
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14932 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14933 fi
14934 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14935
14936 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14937
14938 fi
14939
14940 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14941 "
14942 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14943 ac_have_decl=1
14944 else
14945 ac_have_decl=0
14946 fi
14947
14948 cat >>confdefs.h <<_ACEOF
14949 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14950 _ACEOF
14951
14952
14953 if test "$cross_compiling" = yes; then :
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14956 #include <sys/personality.h>
14957 int
14958 main ()
14959 {
14960
14961 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14962 # define ADDR_NO_RANDOMIZE 0x0040000
14963 # endif
14964 /* Test the flag could be set and stays set. */
14965 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14966 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14967 return 1
14968 ;
14969 return 0;
14970 }
14971 _ACEOF
14972 if ac_fn_c_try_link "$LINENO"; then :
14973 have_personality=true
14974 else
14975 have_personality=false
14976 fi
14977 rm -f core conftest.err conftest.$ac_objext \
14978 conftest$ac_exeext conftest.$ac_ext
14979 else
14980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14981 /* end confdefs.h. */
14982 #include <sys/personality.h>
14983 int
14984 main ()
14985 {
14986
14987 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14988 # define ADDR_NO_RANDOMIZE 0x0040000
14989 # endif
14990 /* Test the flag could be set and stays set. */
14991 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14992 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14993 return 1
14994 ;
14995 return 0;
14996 }
14997 _ACEOF
14998 if ac_fn_c_try_run "$LINENO"; then :
14999 have_personality=true
15000 else
15001 have_personality=false
15002 fi
15003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15004 conftest.$ac_objext conftest.beam conftest.$ac_ext
15005 fi
15006
15007 if $have_personality
15008 then
15009
15010 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15011
15012 fi
15013
15014
15015 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15016 # except that the argument to --with-sysroot is optional.
15017 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15018 if test "x$with_sysroot" = xyes; then
15019 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
15020 fi
15021
15022 # Check whether --with-sysroot was given.
15023 if test "${with_sysroot+set}" = set; then :
15024 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
15025 else
15026 TARGET_SYSTEM_ROOT=
15027 fi
15028
15029
15030 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15032 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
15033 ac_define_dir=`eval echo $ac_define_dir`
15034
15035 cat >>confdefs.h <<_ACEOF
15036 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15037 _ACEOF
15038
15039
15040
15041
15042 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15043 if test "x$prefix" = xNONE; then
15044 test_prefix=/usr/local
15045 else
15046 test_prefix=$prefix
15047 fi
15048 else
15049 test_prefix=$exec_prefix
15050 fi
15051 value=0
15052 case ${ac_define_dir} in
15053 "${test_prefix}"|"${test_prefix}/"*|\
15054 '${exec_prefix}'|'${exec_prefix}/'*)
15055 value=1
15056 ;;
15057 esac
15058
15059 cat >>confdefs.h <<_ACEOF
15060 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15061 _ACEOF
15062
15063
15064
15065
15066
15067 # Check whether --with-system-gdbinit was given.
15068 if test "${with_system_gdbinit+set}" = set; then :
15069 withval=$with_system_gdbinit;
15070 SYSTEM_GDBINIT=$withval
15071 else
15072 SYSTEM_GDBINIT=
15073 fi
15074
15075
15076 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15077 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15078 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
15079 ac_define_dir=`eval echo $ac_define_dir`
15080
15081 cat >>confdefs.h <<_ACEOF
15082 #define SYSTEM_GDBINIT "$ac_define_dir"
15083 _ACEOF
15084
15085
15086
15087
15088 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15089 if test "x$prefix" = xNONE; then
15090 test_prefix=/usr/local
15091 else
15092 test_prefix=$prefix
15093 fi
15094 else
15095 test_prefix=$exec_prefix
15096 fi
15097 value=0
15098 case ${ac_define_dir} in
15099 "${test_prefix}"|"${test_prefix}/"*|\
15100 '${exec_prefix}'|'${exec_prefix}/'*)
15101 value=1
15102 ;;
15103 esac
15104
15105 cat >>confdefs.h <<_ACEOF
15106 #define SYSTEM_GDBINIT_RELOCATABLE $value
15107 _ACEOF
15108
15109
15110
15111
15112 # Check whether --enable-werror was given.
15113 if test "${enable_werror+set}" = set; then :
15114 enableval=$enable_werror; case "${enableval}" in
15115 yes | y) ERROR_ON_WARNING="yes" ;;
15116 no | n) ERROR_ON_WARNING="no" ;;
15117 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15118 esac
15119 fi
15120
15121
15122 # Enable -Werror by default when using gcc
15123 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15124 ERROR_ON_WARNING=yes
15125 fi
15126
15127 WERROR_CFLAGS=""
15128 if test "${ERROR_ON_WARNING}" = yes ; then
15129 WERROR_CFLAGS="-Werror"
15130 fi
15131
15132 # The entries after -Wno-pointer-sign are disabled warnings which may
15133 # be enabled in the future, which can not currently be used to build
15134 # GDB.
15135 # NOTE: If you change this list, remember to update
15136 # gdb/doc/gdbint.texinfo.
15137 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
15138 -Wformat-nonliteral -Wno-pointer-sign \
15139 -Wno-unused -Wunused-value -Wunused-function \
15140 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
15141
15142 # Enable -Wno-format by default when using gcc on mingw since many
15143 # GCC versions complain about %I64.
15144 case "${host}" in
15145 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
15146 esac
15147
15148 # Check whether --enable-build-warnings was given.
15149 if test "${enable_build_warnings+set}" = set; then :
15150 enableval=$enable_build_warnings; case "${enableval}" in
15151 yes) ;;
15152 no) build_warnings="-w";;
15153 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15154 build_warnings="${build_warnings} ${t}";;
15155 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15156 build_warnings="${t} ${build_warnings}";;
15157 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15158 esac
15159 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15160 echo "Setting compiler warning flags = $build_warnings" 6>&1
15161 fi
15162 fi
15163 # Check whether --enable-gdb-build-warnings was given.
15164 if test "${enable_gdb_build_warnings+set}" = set; then :
15165 enableval=$enable_gdb_build_warnings; case "${enableval}" in
15166 yes) ;;
15167 no) build_warnings="-w";;
15168 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15169 build_warnings="${build_warnings} ${t}";;
15170 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15171 build_warnings="${t} ${build_warnings}";;
15172 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15173 esac
15174 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15175 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15176 fi
15177 fi
15178 WARN_CFLAGS=""
15179 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15180 then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15182 $as_echo_n "checking compiler warning flags... " >&6; }
15183 # Separate out the -Werror flag as some files just cannot be
15184 # compiled with it enabled.
15185 for w in ${build_warnings}; do
15186 case $w in
15187 -Werr*) WERROR_CFLAGS=-Werror ;;
15188 *) # Check that GCC accepts it
15189 saved_CFLAGS="$CFLAGS"
15190 CFLAGS="$CFLAGS $w"
15191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15192 /* end confdefs.h. */
15193
15194 int
15195 main ()
15196 {
15197
15198 ;
15199 return 0;
15200 }
15201 _ACEOF
15202 if ac_fn_c_try_compile "$LINENO"; then :
15203 WARN_CFLAGS="${WARN_CFLAGS} $w"
15204 fi
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206 CFLAGS="$saved_CFLAGS"
15207 esac
15208 done
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15210 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15211 fi
15212
15213
15214
15215 # In the Cygwin environment, we need some additional flags.
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15217 $as_echo_n "checking for cygwin... " >&6; }
15218 if test "${gdb_cv_os_cygwin+set}" = set; then :
15219 $as_echo_n "(cached) " >&6
15220 else
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223
15224 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15225 lose
15226 #endif
15227 _ACEOF
15228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15229 $EGREP "lose" >/dev/null 2>&1; then :
15230 gdb_cv_os_cygwin=yes
15231 else
15232 gdb_cv_os_cygwin=no
15233 fi
15234 rm -f conftest*
15235
15236 fi
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15238 $as_echo "$gdb_cv_os_cygwin" >&6; }
15239
15240
15241 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15242 case ${host} in
15243 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15244 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15245 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15246 esac
15247
15248
15249 # libreadline needs libuser32.a in a cygwin environment
15250 WIN32LIBS=
15251 if test x$gdb_cv_os_cygwin = xyes; then
15252 WIN32LIBS="-luser32"
15253 case "${target}" in
15254 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15255 ;;
15256 esac
15257 fi
15258
15259 # The ser-tcp.c module requires sockets.
15260 case ${host} in
15261 *mingw32*)
15262
15263 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15264
15265 WIN32LIBS="$WIN32LIBS -lws2_32"
15266 ;;
15267 esac
15268
15269
15270 # Add ELF support to GDB, but only if BFD includes ELF support.
15271 OLD_CFLAGS=$CFLAGS
15272 OLD_LDFLAGS=$LDFLAGS
15273 OLD_LIBS=$LIBS
15274 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15275 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15276 # always want our bfd.
15277 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15278 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
15279 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15280 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15281 if test "$plugins" = "yes"; then
15282 LIBS="-ldl $LIBS"
15283 fi
15284 LIBS="-lbfd -liberty $intl $LIBS"
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15286 $as_echo_n "checking for ELF support in BFD... " >&6; }
15287 if test "${gdb_cv_var_elf+set}" = set; then :
15288 $as_echo_n "(cached) " >&6
15289 else
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 #include <stdlib.h>
15293 #include "bfd.h"
15294 #include "elf-bfd.h"
15295
15296 int
15297 main ()
15298 {
15299 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
15300 ;
15301 return 0;
15302 }
15303 _ACEOF
15304 if ac_fn_c_try_link "$LINENO"; then :
15305 gdb_cv_var_elf=yes
15306 else
15307 gdb_cv_var_elf=no
15308 fi
15309 rm -f core conftest.err conftest.$ac_objext \
15310 conftest$ac_exeext conftest.$ac_ext
15311 fi
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15313 $as_echo "$gdb_cv_var_elf" >&6; }
15314 if test $gdb_cv_var_elf = yes; then
15315 CONFIG_OBS="$CONFIG_OBS elfread.o"
15316
15317 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15318
15319 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15320 if test "$plugins" = "yes"; then
15321 OLD_LIBS="-ldl $OLD_LIBS"
15322 fi
15323 fi
15324 CFLAGS=$OLD_CFLAGS
15325 LDFLAGS=$OLD_LDFLAGS
15326 LIBS=$OLD_LIBS
15327
15328 # Add any host-specific objects to GDB.
15329 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15330
15331 LIBGUI="../libgui/src/libgui.a"
15332 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15333
15334
15335
15336 WIN32LDAPP=
15337
15338
15339
15340 case "${host}" in
15341 *-*-cygwin* | *-*-mingw* )
15342 configdir="win"
15343 ;;
15344 *)
15345 configdir="unix"
15346 ;;
15347 esac
15348
15349 GDBTKLIBS=
15350 if test "${enable_gdbtk}" = "yes"; then
15351
15352 # Gdbtk must have an absolute path to srcdir in order to run
15353 # properly when not installed.
15354 here=`pwd`
15355 cd ${srcdir}
15356 GDBTK_SRC_DIR=`pwd`
15357 cd $here
15358
15359
15360 #
15361 # Ok, lets find the tcl configuration
15362 # First, look for one uninstalled.
15363 # the alternative search directory is invoked by --with-tcl
15364 #
15365
15366 if test x"${no_tcl}" = x ; then
15367 # we reset no_tcl in case something fails here
15368 no_tcl=true
15369
15370 # Check whether --with-tcl was given.
15371 if test "${with_tcl+set}" = set; then :
15372 withval=$with_tcl; with_tclconfig=${withval}
15373 fi
15374
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15376 $as_echo_n "checking for Tcl configuration... " >&6; }
15377 if test "${ac_cv_c_tclconfig+set}" = set; then :
15378 $as_echo_n "(cached) " >&6
15379 else
15380
15381
15382 # First check to see if --with-tcl was specified.
15383 case "${host}" in
15384 *-*-cygwin*) platDir="win" ;;
15385 *) platDir="unix" ;;
15386 esac
15387 if test x"${with_tclconfig}" != x ; then
15388 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15389 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15390 else
15391 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15392 fi
15393 fi
15394
15395 # then check for a private Tcl installation
15396 if test x"${ac_cv_c_tclconfig}" = x ; then
15397 for i in \
15398 ../tcl \
15399 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15400 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15401 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15402 ../../tcl \
15403 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15404 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15405 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15406 ../../../tcl \
15407 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15408 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15409 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15410 if test -f "$i/$platDir/tclConfig.sh" ; then
15411 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15412 break
15413 fi
15414 done
15415 fi
15416
15417 # on Darwin, check in Framework installation locations
15418 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15419 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15420 `ls -d /Library/Frameworks 2>/dev/null` \
15421 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15422 `ls -d /System/Library/Frameworks 2>/dev/null` \
15423 ; do
15424 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15425 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15426 break
15427 fi
15428 done
15429 fi
15430
15431 # check in a few common install locations
15432 if test x"${ac_cv_c_tclconfig}" = x ; then
15433 for i in `ls -d ${libdir} 2>/dev/null` \
15434 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15435 `ls -d ${prefix}/lib 2>/dev/null` \
15436 `ls -d /usr/local/lib 2>/dev/null` \
15437 `ls -d /usr/contrib/lib 2>/dev/null` \
15438 `ls -d /usr/lib 2>/dev/null` \
15439 ; do
15440 if test -f "$i/tclConfig.sh" ; then
15441 ac_cv_c_tclconfig=`(cd $i; pwd)`
15442 break
15443 fi
15444 done
15445 fi
15446
15447 # check in a few other private locations
15448 if test x"${ac_cv_c_tclconfig}" = x ; then
15449 for i in \
15450 ${srcdir}/../tcl \
15451 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15452 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15453 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15454 if test -f "$i/$platDir/tclConfig.sh" ; then
15455 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15456 break
15457 fi
15458 done
15459 fi
15460
15461 fi
15462
15463
15464 if test x"${ac_cv_c_tclconfig}" = x ; then
15465 TCL_BIN_DIR="# no Tcl configs found"
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15467 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15468 else
15469 no_tcl=
15470 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15472 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15473 fi
15474 fi
15475
15476
15477 # If $no_tk is nonempty, then we can't do Tk, and there is no
15478 # point to doing Tcl.
15479
15480 #
15481 # Ok, lets find the tk configuration
15482 # First, look for one uninstalled.
15483 # the alternative search directory is invoked by --with-tk
15484 #
15485
15486 if test x"${no_tk}" = x ; then
15487 # we reset no_tk in case something fails here
15488 no_tk=true
15489
15490 # Check whether --with-tk was given.
15491 if test "${with_tk+set}" = set; then :
15492 withval=$with_tk; with_tkconfig=${withval}
15493 fi
15494
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15496 $as_echo_n "checking for Tk configuration... " >&6; }
15497 if test "${ac_cv_c_tkconfig+set}" = set; then :
15498 $as_echo_n "(cached) " >&6
15499 else
15500
15501
15502 # First check to see if --with-tkconfig was specified.
15503 if test x"${with_tkconfig}" != x ; then
15504 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15505 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15506 else
15507 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15508 fi
15509 fi
15510
15511 # then check for a private Tk library
15512 case "${host}" in
15513 *-*-cygwin*) platDir="win" ;;
15514 *) platDir="unix" ;;
15515 esac
15516 if test x"${ac_cv_c_tkconfig}" = x ; then
15517 for i in \
15518 ../tk \
15519 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15520 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15521 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15522 ../../tk \
15523 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15524 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15525 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15526 ../../../tk \
15527 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15528 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15529 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15530 if test -f "$i/$platDir/tkConfig.sh" ; then
15531 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15532 break
15533 fi
15534 done
15535 fi
15536
15537 # on Darwin, check in Framework installation locations
15538 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15539 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15540 `ls -d /Library/Frameworks 2>/dev/null` \
15541 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15542 `ls -d /System/Library/Frameworks 2>/dev/null` \
15543 ; do
15544 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15545 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15546 break
15547 fi
15548 done
15549 fi
15550
15551 # check in a few common install locations
15552 if test x"${ac_cv_c_tkconfig}" = x ; then
15553 for i in `ls -d ${libdir} 2>/dev/null` \
15554 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15555 `ls -d ${prefix}/lib 2>/dev/null` \
15556 `ls -d /usr/local/lib 2>/dev/null` \
15557 `ls -d /usr/contrib/lib 2>/dev/null` \
15558 `ls -d /usr/lib 2>/dev/null` \
15559 ; do
15560 if test -f "$i/tkConfig.sh" ; then
15561 ac_cv_c_tkconfig=`(cd $i; pwd)`
15562 break
15563 fi
15564 done
15565 fi
15566 # check in a few other private locations
15567 if test x"${ac_cv_c_tkconfig}" = x ; then
15568 for i in \
15569 ${srcdir}/../tk \
15570 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15571 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15572 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15573 if test -f "$i/$platDir/tkConfig.sh" ; then
15574 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15575 break
15576 fi
15577 done
15578 fi
15579
15580 fi
15581
15582
15583 if test x"${ac_cv_c_tkconfig}" = x ; then
15584 TK_BIN_DIR="# no Tk configs found"
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15586 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15587 else
15588 no_tk=
15589 TK_BIN_DIR=${ac_cv_c_tkconfig}
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15591 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15592 fi
15593 fi
15594
15595
15596 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15597
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15599 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15600
15601 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15603 $as_echo "loading" >&6; }
15604 . ${TCL_BIN_DIR}/tclConfig.sh
15605 else
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15607 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15608 fi
15609
15610 # eval is required to do the TCL_DBGX substitution
15611 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15612 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15613
15614 # If the TCL_BIN_DIR is the build directory (not the install directory),
15615 # then set the common variable name to the value of the build variables.
15616 # For example, the variable TCL_LIB_SPEC will be set to the value
15617 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15618 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15619 # installed and uninstalled version of Tcl.
15620 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15621 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15622 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15623 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15624 elif test "`uname -s`" = "Darwin"; then
15625 # If Tcl was built as a framework, attempt to use the libraries
15626 # from the framework at the given location so that linking works
15627 # against Tcl.framework installed in an arbitary location.
15628 case ${TCL_DEFS} in
15629 *TCL_FRAMEWORK*)
15630 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15631 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15632 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15633 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15634 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15635 break
15636 fi
15637 done
15638 fi
15639 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15640 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15641 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15642 fi
15643 ;;
15644 esac
15645 fi
15646
15647 # eval is required to do the TCL_DBGX substitution
15648 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15649 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15650 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15651 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667 # Check for in-tree tcl
15668 here=`pwd`
15669 cd ${srcdir}/..
15670 topdir=`pwd`
15671 cd ${here}
15672
15673 intree="no"
15674 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15675 intree="yes"
15676 fi
15677
15678 # Find Tcl private headers
15679 if test x"${intree}" = xno; then
15680
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15682 $as_echo_n "checking for Tcl private headers... " >&6; }
15683 private_dir=""
15684 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15685 if test -f ${dir}/tclInt.h ; then
15686 private_dir=${dir}
15687 fi
15688
15689 if test x"${private_dir}" = x; then
15690 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15691 else
15692 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15694 $as_echo "${private_dir}" >&6; }
15695 fi
15696
15697 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15698 TCL_LIBRARY="${TCL_LIB_SPEC}"
15699 TCL_DEPS=""
15700 else
15701 # If building tcl in the same src tree, private headers
15702 # are not needed, but we need to be sure to use the right
15703 # headers library
15704 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15705 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15706 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15707 fi
15708
15709
15710
15711
15712
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15714 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15715
15716 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15718 $as_echo "loading" >&6; }
15719 . ${TK_BIN_DIR}/tkConfig.sh
15720 else
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15722 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15723 fi
15724
15725 # eval is required to do the TK_DBGX substitution
15726 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15727 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15728
15729 # If the TK_BIN_DIR is the build directory (not the install directory),
15730 # then set the common variable name to the value of the build variables.
15731 # For example, the variable TK_LIB_SPEC will be set to the value
15732 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15733 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15734 # installed and uninstalled version of Tcl.
15735 if test -f "${TK_BIN_DIR}/Makefile" ; then
15736 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15737 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15738 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15739 elif test "`uname -s`" = "Darwin"; then
15740 # If Tk was built as a framework, attempt to use the libraries
15741 # from the framework at the given location so that linking works
15742 # against Tk.framework installed in an arbitary location.
15743 case ${TK_DEFS} in
15744 *TK_FRAMEWORK*)
15745 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15746 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15747 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15748 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15749 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15750 break
15751 fi
15752 done
15753 fi
15754 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15755 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15756 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15757 fi
15758 ;;
15759 esac
15760 fi
15761
15762 # eval is required to do the TK_DBGX substitution
15763 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15764 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15765 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15766 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781 # Check for in-tree Tk
15782 intree="no"
15783 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15784 intree="yes"
15785 fi
15786
15787 # Find Tk private headers
15788 if test x"${intree}" = xno; then
15789
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15791 $as_echo_n "checking for Tk private headers... " >&6; }
15792 private_dir=""
15793 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15794 if test -f ${dir}/tkInt.h; then
15795 private_dir=${dir}
15796 fi
15797
15798 if test x"${private_dir}" = x; then
15799 as_fn_error "could not find Tk private headers" "$LINENO" 5
15800 else
15801 TK_PRIVATE_INCLUDE="-I${private_dir}"
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15803 $as_echo "${private_dir}" >&6; }
15804 fi
15805
15806 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15807 TK_LIBRARY=${TK_LIB_SPEC}
15808 TK_DEPS=""
15809 else
15810 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15811 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15812 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15813 fi
15814
15815
15816
15817
15818
15819 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15820
15821 # Include some libraries that Tcl and Tk want.
15822 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15823 # Yes, the ordering seems wrong here. But it isn't.
15824 # TK_LIBS is the list of libraries that need to be linked
15825 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15826 # were in LIBS then any link tests after this point would
15827 # try to include things like `$(LIBGUI)', which wouldn't work.
15828 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15829
15830 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15831 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15832 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15833 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15834 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15835 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15836 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15837
15838 if test x$gdb_cv_os_cygwin = xyes; then
15839 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15840 WIN32LDAPP="-Wl,--subsystem,console"
15841 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15842 fi
15843
15844 subdirs="$subdirs gdbtk"
15845
15846 fi
15847 fi
15848
15849
15850
15851
15852
15853
15854
15855
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15857 $as_echo_n "checking for X... " >&6; }
15858
15859
15860 # Check whether --with-x was given.
15861 if test "${with_x+set}" = set; then :
15862 withval=$with_x;
15863 fi
15864
15865 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15866 if test "x$with_x" = xno; then
15867 # The user explicitly disabled X.
15868 have_x=disabled
15869 else
15870 case $x_includes,$x_libraries in #(
15871 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15872 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 # One or both of the vars are not set, and there is no cached value.
15876 ac_x_includes=no ac_x_libraries=no
15877 rm -f -r conftest.dir
15878 if mkdir conftest.dir; then
15879 cd conftest.dir
15880 cat >Imakefile <<'_ACEOF'
15881 incroot:
15882 @echo incroot='${INCROOT}'
15883 usrlibdir:
15884 @echo usrlibdir='${USRLIBDIR}'
15885 libdir:
15886 @echo libdir='${LIBDIR}'
15887 _ACEOF
15888 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15890 for ac_var in incroot usrlibdir libdir; do
15891 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15892 done
15893 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15894 for ac_extension in a so sl dylib la dll; do
15895 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15896 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15897 ac_im_usrlibdir=$ac_im_libdir; break
15898 fi
15899 done
15900 # Screen out bogus values from the imake configuration. They are
15901 # bogus both because they are the default anyway, and because
15902 # using them would break gcc on systems where it needs fixed includes.
15903 case $ac_im_incroot in
15904 /usr/include) ac_x_includes= ;;
15905 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15906 esac
15907 case $ac_im_usrlibdir in
15908 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15909 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15910 esac
15911 fi
15912 cd ..
15913 rm -f -r conftest.dir
15914 fi
15915
15916 # Standard set of common directories for X headers.
15917 # Check X11 before X11Rn because it is often a symlink to the current release.
15918 ac_x_header_dirs='
15919 /usr/X11/include
15920 /usr/X11R7/include
15921 /usr/X11R6/include
15922 /usr/X11R5/include
15923 /usr/X11R4/include
15924
15925 /usr/include/X11
15926 /usr/include/X11R7
15927 /usr/include/X11R6
15928 /usr/include/X11R5
15929 /usr/include/X11R4
15930
15931 /usr/local/X11/include
15932 /usr/local/X11R7/include
15933 /usr/local/X11R6/include
15934 /usr/local/X11R5/include
15935 /usr/local/X11R4/include
15936
15937 /usr/local/include/X11
15938 /usr/local/include/X11R7
15939 /usr/local/include/X11R6
15940 /usr/local/include/X11R5
15941 /usr/local/include/X11R4
15942
15943 /usr/X386/include
15944 /usr/x386/include
15945 /usr/XFree86/include/X11
15946
15947 /usr/include
15948 /usr/local/include
15949 /usr/unsupported/include
15950 /usr/athena/include
15951 /usr/local/x11r5/include
15952 /usr/lpp/Xamples/include
15953
15954 /usr/openwin/include
15955 /usr/openwin/share/include'
15956
15957 if test "$ac_x_includes" = no; then
15958 # Guess where to find include files, by looking for Xlib.h.
15959 # First, try using that file with no special directory specified.
15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15962 #include <X11/Xlib.h>
15963 _ACEOF
15964 if ac_fn_c_try_cpp "$LINENO"; then :
15965 # We can compile using X headers with no special include directory.
15966 ac_x_includes=
15967 else
15968 for ac_dir in $ac_x_header_dirs; do
15969 if test -r "$ac_dir/X11/Xlib.h"; then
15970 ac_x_includes=$ac_dir
15971 break
15972 fi
15973 done
15974 fi
15975 rm -f conftest.err conftest.$ac_ext
15976 fi # $ac_x_includes = no
15977
15978 if test "$ac_x_libraries" = no; then
15979 # Check for the libraries.
15980 # See if we find them without any special options.
15981 # Don't add to $LIBS permanently.
15982 ac_save_LIBS=$LIBS
15983 LIBS="-lX11 $LIBS"
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986 #include <X11/Xlib.h>
15987 int
15988 main ()
15989 {
15990 XrmInitialize ()
15991 ;
15992 return 0;
15993 }
15994 _ACEOF
15995 if ac_fn_c_try_link "$LINENO"; then :
15996 LIBS=$ac_save_LIBS
15997 # We can link X programs with no special library path.
15998 ac_x_libraries=
15999 else
16000 LIBS=$ac_save_LIBS
16001 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16002 do
16003 # Don't even attempt the hair of trying to link an X program!
16004 for ac_extension in a so sl dylib la dll; do
16005 if test -r "$ac_dir/libX11.$ac_extension"; then
16006 ac_x_libraries=$ac_dir
16007 break 2
16008 fi
16009 done
16010 done
16011 fi
16012 rm -f core conftest.err conftest.$ac_objext \
16013 conftest$ac_exeext conftest.$ac_ext
16014 fi # $ac_x_libraries = no
16015
16016 case $ac_x_includes,$ac_x_libraries in #(
16017 no,* | *,no | *\'*)
16018 # Didn't find X, or a directory has "'" in its name.
16019 ac_cv_have_x="have_x=no";; #(
16020 *)
16021 # Record where we found X for the cache.
16022 ac_cv_have_x="have_x=yes\
16023 ac_x_includes='$ac_x_includes'\
16024 ac_x_libraries='$ac_x_libraries'"
16025 esac
16026 fi
16027 ;; #(
16028 *) have_x=yes;;
16029 esac
16030 eval "$ac_cv_have_x"
16031 fi # $with_x != no
16032
16033 if test "$have_x" != yes; then
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16035 $as_echo "$have_x" >&6; }
16036 no_x=yes
16037 else
16038 # If each of the values was on the command line, it overrides each guess.
16039 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16040 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16041 # Update the cache value to reflect the command line values.
16042 ac_cv_have_x="have_x=yes\
16043 ac_x_includes='$x_includes'\
16044 ac_x_libraries='$x_libraries'"
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16046 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16047 fi
16048
16049
16050 # Unlike the sim directory, whether a simulator is linked is controlled by
16051 # presence of a gdb_sim definition in the target configure.tgt entry.
16052 # This code just checks for a few cases where we'd like to ignore those
16053 # definitions, even when they're present in the '.mt' file. These cases
16054 # are when --disable-sim is specified, or if the simulator directory is
16055 # not part of the source tree.
16056 #
16057 # Check whether --enable-sim was given.
16058 if test "${enable_sim+set}" = set; then :
16059 enableval=$enable_sim; echo "enable_sim = $enable_sim";
16060 echo "enableval = ${enableval}";
16061 case "${enableval}" in
16062 yes) ignore_sim=false ;;
16063 no) ignore_sim=true ;;
16064 *) ignore_sim=false ;;
16065 esac
16066 else
16067 ignore_sim=false
16068 fi
16069
16070
16071 if test ! -d "${srcdir}/../sim"; then
16072 ignore_sim=true
16073 fi
16074
16075 SIM=
16076 SIM_OBS=
16077 if test "${ignore_sim}" = "false"; then
16078 if test x"${gdb_sim}" != x ; then
16079 SIM="${gdb_sim}"
16080 SIM_OBS="remote-sim.o"
16081
16082 $as_echo "#define WITH_SIM 1" >>confdefs.h
16083
16084 fi
16085 fi
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100 # List of host floatformats.
16101
16102 cat >>confdefs.h <<_ACEOF
16103 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16104 _ACEOF
16105
16106
16107 cat >>confdefs.h <<_ACEOF
16108 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16109 _ACEOF
16110
16111
16112 cat >>confdefs.h <<_ACEOF
16113 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16114 _ACEOF
16115
16116
16117 # target_subdir is used by the testsuite to find the target libraries.
16118 target_subdir=
16119 if test "${host}" != "${target}"; then
16120 target_subdir="${target_alias}/"
16121 fi
16122
16123
16124 frags=
16125 if test "${gdb_native}" = "yes"; then
16126 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
16127 if test ! -f ${host_makefile_frag}; then
16128 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
16129 fi
16130 frags="$frags $host_makefile_frag"
16131 else
16132 host_makefile_frag=/dev/null
16133 fi
16134
16135
16136
16137
16138 if test "${gdb_native}" = "yes"; then
16139 # We pick this up from the host configuration file (.mh) because we
16140 # do not have a native configuration Makefile fragment.
16141 nativefile=`sed -n '
16142 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
16143 ' ${host_makefile_frag}`
16144 fi
16145
16146
16147 if test x"${gdb_osabi}" != x ; then
16148
16149 cat >>confdefs.h <<_ACEOF
16150 #define GDB_OSABI_DEFAULT $gdb_osabi
16151 _ACEOF
16152
16153 fi
16154
16155 # Enable multi-ice-gdb-server.
16156 # Check whether --enable-multi-ice was given.
16157 if test "${enable_multi_ice+set}" = set; then :
16158 enableval=$enable_multi_ice; case $enableval in
16159 yes | no)
16160 ;;
16161 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16162 esac
16163 fi
16164
16165 if test "x$enable_multi_ice" = xyes; then
16166 subdirs="$subdirs multi-ice"
16167
16168 fi
16169
16170 # Check whether --enable-gdbserver was given.
16171 if test "${enable_gdbserver+set}" = set; then :
16172 enableval=$enable_gdbserver; case "${enableval}" in
16173 yes| no|auto) ;;
16174 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16175 esac
16176 else
16177 enable_gdbserver=auto
16178 fi
16179
16180
16181 # We only build gdbserver automatically in a native configuration, and
16182 # only if the user did not explicitly disable its build.
16183 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16185 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16186 if test "x$build_gdbserver" = xyes; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16188 $as_echo "yes" >&6; }
16189 subdirs="$subdirs gdbserver"
16190
16191 gdbserver_build_enabled=yes
16192 else
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16194 $as_echo "no" >&6; }
16195 fi
16196 fi
16197
16198 # If the user explicitly request the gdbserver to be built, verify that
16199 # we were in fact able to enable it.
16200 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16201 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16202 fi
16203
16204 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16205 # to an empty version.
16206
16207 files=
16208 links=
16209
16210 rm -f nm.h
16211 if test "${nativefile}" != ""; then
16212 case "${nativefile}" in
16213 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16214 * ) GDB_NM_FILE="${nativefile}"
16215 esac
16216 files="${files} ${GDB_NM_FILE}"
16217 links="${links} nm.h"
16218
16219 cat >>confdefs.h <<_ACEOF
16220 #define GDB_NM_FILE "${GDB_NM_FILE}"
16221 _ACEOF
16222
16223 fi
16224
16225
16226 ac_sources="$files"
16227 ac_dests="$links"
16228 while test -n "$ac_sources"; do
16229 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16230 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16231 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16232 done
16233 ac_config_links="$ac_config_links $ac_config_links_1"
16234
16235
16236
16237
16238
16239 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16240
16241
16242 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
16243
16244 ac_config_commands="$ac_config_commands default"
16245
16246 cat >confcache <<\_ACEOF
16247 # This file is a shell script that caches the results of configure
16248 # tests run on this system so they can be shared between configure
16249 # scripts and configure runs, see configure's option --config-cache.
16250 # It is not useful on other systems. If it contains results you don't
16251 # want to keep, you may remove or edit it.
16252 #
16253 # config.status only pays attention to the cache file if you give it
16254 # the --recheck option to rerun configure.
16255 #
16256 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16257 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16258 # following values.
16259
16260 _ACEOF
16261
16262 # The following way of writing the cache mishandles newlines in values,
16263 # but we know of no workaround that is simple, portable, and efficient.
16264 # So, we kill variables containing newlines.
16265 # Ultrix sh set writes to stderr and can't be redirected directly,
16266 # and sets the high bit in the cache file unless we assign to the vars.
16267 (
16268 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16269 eval ac_val=\$$ac_var
16270 case $ac_val in #(
16271 *${as_nl}*)
16272 case $ac_var in #(
16273 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16274 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16275 esac
16276 case $ac_var in #(
16277 _ | IFS | as_nl) ;; #(
16278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16279 *) { eval $ac_var=; unset $ac_var;} ;;
16280 esac ;;
16281 esac
16282 done
16283
16284 (set) 2>&1 |
16285 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16286 *${as_nl}ac_space=\ *)
16287 # `set' does not quote correctly, so add quotes: double-quote
16288 # substitution turns \\\\ into \\, and sed turns \\ into \.
16289 sed -n \
16290 "s/'/'\\\\''/g;
16291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16292 ;; #(
16293 *)
16294 # `set' quotes correctly as required by POSIX, so do not add quotes.
16295 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16296 ;;
16297 esac |
16298 sort
16299 ) |
16300 sed '
16301 /^ac_cv_env_/b end
16302 t clear
16303 :clear
16304 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16305 t end
16306 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16307 :end' >>confcache
16308 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16309 if test -w "$cache_file"; then
16310 test "x$cache_file" != "x/dev/null" &&
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16312 $as_echo "$as_me: updating cache $cache_file" >&6;}
16313 cat confcache >$cache_file
16314 else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16316 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16317 fi
16318 fi
16319 rm -f confcache
16320
16321 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16322 # Let make expand exec_prefix.
16323 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16324
16325 DEFS=-DHAVE_CONFIG_H
16326
16327 ac_libobjs=
16328 ac_ltlibobjs=
16329 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16330 # 1. Remove the extension, and $U if already installed.
16331 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16332 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16333 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16334 # will be set to the directory where LIBOBJS objects are built.
16335 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16336 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16337 done
16338 LIBOBJS=$ac_libobjs
16339
16340 LTLIBOBJS=$ac_ltlibobjs
16341
16342
16343 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16344 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16346 fi
16347 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16348 as_fn_error "conditional \"GMAKE\" was never defined.
16349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16350 fi
16351 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16352 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16354 fi
16355
16356 gl_libobjs=
16357 gl_ltlibobjs=
16358 if test -n "$gl_LIBOBJS"; then
16359 # Remove the extension.
16360 sed_drop_objext='s/\.o$//;s/\.obj$//'
16361 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16362 gl_libobjs="$gl_libobjs $i.$ac_objext"
16363 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16364 done
16365 fi
16366 gl_LIBOBJS=$gl_libobjs
16367
16368 gl_LTLIBOBJS=$gl_ltlibobjs
16369
16370
16371
16372 gltests_libobjs=
16373 gltests_ltlibobjs=
16374 if test -n "$gltests_LIBOBJS"; then
16375 # Remove the extension.
16376 sed_drop_objext='s/\.o$//;s/\.obj$//'
16377 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16378 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16379 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16380 done
16381 fi
16382 gltests_LIBOBJS=$gltests_libobjs
16383
16384 gltests_LTLIBOBJS=$gltests_ltlibobjs
16385
16386
16387 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16388 as_fn_error "conditional \"AMDEP\" was never defined.
16389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16390 fi
16391 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16392 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16394 fi
16395 if test -n "$EXEEXT"; then
16396 am__EXEEXT_TRUE=
16397 am__EXEEXT_FALSE='#'
16398 else
16399 am__EXEEXT_TRUE='#'
16400 am__EXEEXT_FALSE=
16401 fi
16402
16403
16404
16405 : ${CONFIG_STATUS=./config.status}
16406 ac_write_fail=0
16407 ac_clean_files_save=$ac_clean_files
16408 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16410 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16411 as_write_fail=0
16412 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16413 #! $SHELL
16414 # Generated by $as_me.
16415 # Run this file to recreate the current configuration.
16416 # Compiler output produced by configure, useful for debugging
16417 # configure, is in config.log if it exists.
16418
16419 debug=false
16420 ac_cs_recheck=false
16421 ac_cs_silent=false
16422
16423 SHELL=\${CONFIG_SHELL-$SHELL}
16424 export SHELL
16425 _ASEOF
16426 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16427 ## -------------------- ##
16428 ## M4sh Initialization. ##
16429 ## -------------------- ##
16430
16431 # Be more Bourne compatible
16432 DUALCASE=1; export DUALCASE # for MKS sh
16433 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16434 emulate sh
16435 NULLCMD=:
16436 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16437 # is contrary to our usage. Disable this feature.
16438 alias -g '${1+"$@"}'='"$@"'
16439 setopt NO_GLOB_SUBST
16440 else
16441 case `(set -o) 2>/dev/null` in #(
16442 *posix*) :
16443 set -o posix ;; #(
16444 *) :
16445 ;;
16446 esac
16447 fi
16448
16449
16450 as_nl='
16451 '
16452 export as_nl
16453 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16454 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16455 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16456 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16457 # Prefer a ksh shell builtin over an external printf program on Solaris,
16458 # but without wasting forks for bash or zsh.
16459 if test -z "$BASH_VERSION$ZSH_VERSION" \
16460 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16461 as_echo='print -r --'
16462 as_echo_n='print -rn --'
16463 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16464 as_echo='printf %s\n'
16465 as_echo_n='printf %s'
16466 else
16467 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16468 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16469 as_echo_n='/usr/ucb/echo -n'
16470 else
16471 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16472 as_echo_n_body='eval
16473 arg=$1;
16474 case $arg in #(
16475 *"$as_nl"*)
16476 expr "X$arg" : "X\\(.*\\)$as_nl";
16477 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16478 esac;
16479 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16480 '
16481 export as_echo_n_body
16482 as_echo_n='sh -c $as_echo_n_body as_echo'
16483 fi
16484 export as_echo_body
16485 as_echo='sh -c $as_echo_body as_echo'
16486 fi
16487
16488 # The user is always right.
16489 if test "${PATH_SEPARATOR+set}" != set; then
16490 PATH_SEPARATOR=:
16491 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16492 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16493 PATH_SEPARATOR=';'
16494 }
16495 fi
16496
16497
16498 # IFS
16499 # We need space, tab and new line, in precisely that order. Quoting is
16500 # there to prevent editors from complaining about space-tab.
16501 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16502 # splitting by setting IFS to empty value.)
16503 IFS=" "" $as_nl"
16504
16505 # Find who we are. Look in the path if we contain no directory separator.
16506 case $0 in #((
16507 *[\\/]* ) as_myself=$0 ;;
16508 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16509 for as_dir in $PATH
16510 do
16511 IFS=$as_save_IFS
16512 test -z "$as_dir" && as_dir=.
16513 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16514 done
16515 IFS=$as_save_IFS
16516
16517 ;;
16518 esac
16519 # We did not find ourselves, most probably we were run as `sh COMMAND'
16520 # in which case we are not to be found in the path.
16521 if test "x$as_myself" = x; then
16522 as_myself=$0
16523 fi
16524 if test ! -f "$as_myself"; then
16525 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16526 exit 1
16527 fi
16528
16529 # Unset variables that we do not need and which cause bugs (e.g. in
16530 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16531 # suppresses any "Segmentation fault" message there. '((' could
16532 # trigger a bug in pdksh 5.2.14.
16533 for as_var in BASH_ENV ENV MAIL MAILPATH
16534 do eval test x\${$as_var+set} = xset \
16535 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16536 done
16537 PS1='$ '
16538 PS2='> '
16539 PS4='+ '
16540
16541 # NLS nuisances.
16542 LC_ALL=C
16543 export LC_ALL
16544 LANGUAGE=C
16545 export LANGUAGE
16546
16547 # CDPATH.
16548 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16549
16550
16551 # as_fn_error ERROR [LINENO LOG_FD]
16552 # ---------------------------------
16553 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16554 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16555 # script with status $?, using 1 if that was 0.
16556 as_fn_error ()
16557 {
16558 as_status=$?; test $as_status -eq 0 && as_status=1
16559 if test "$3"; then
16560 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16561 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16562 fi
16563 $as_echo "$as_me: error: $1" >&2
16564 as_fn_exit $as_status
16565 } # as_fn_error
16566
16567
16568 # as_fn_set_status STATUS
16569 # -----------------------
16570 # Set $? to STATUS, without forking.
16571 as_fn_set_status ()
16572 {
16573 return $1
16574 } # as_fn_set_status
16575
16576 # as_fn_exit STATUS
16577 # -----------------
16578 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16579 as_fn_exit ()
16580 {
16581 set +e
16582 as_fn_set_status $1
16583 exit $1
16584 } # as_fn_exit
16585
16586 # as_fn_unset VAR
16587 # ---------------
16588 # Portably unset VAR.
16589 as_fn_unset ()
16590 {
16591 { eval $1=; unset $1;}
16592 }
16593 as_unset=as_fn_unset
16594 # as_fn_append VAR VALUE
16595 # ----------------------
16596 # Append the text in VALUE to the end of the definition contained in VAR. Take
16597 # advantage of any shell optimizations that allow amortized linear growth over
16598 # repeated appends, instead of the typical quadratic growth present in naive
16599 # implementations.
16600 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16601 eval 'as_fn_append ()
16602 {
16603 eval $1+=\$2
16604 }'
16605 else
16606 as_fn_append ()
16607 {
16608 eval $1=\$$1\$2
16609 }
16610 fi # as_fn_append
16611
16612 # as_fn_arith ARG...
16613 # ------------------
16614 # Perform arithmetic evaluation on the ARGs, and store the result in the
16615 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16616 # must be portable across $(()) and expr.
16617 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16618 eval 'as_fn_arith ()
16619 {
16620 as_val=$(( $* ))
16621 }'
16622 else
16623 as_fn_arith ()
16624 {
16625 as_val=`expr "$@" || test $? -eq 1`
16626 }
16627 fi # as_fn_arith
16628
16629
16630 if expr a : '\(a\)' >/dev/null 2>&1 &&
16631 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16632 as_expr=expr
16633 else
16634 as_expr=false
16635 fi
16636
16637 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16638 as_basename=basename
16639 else
16640 as_basename=false
16641 fi
16642
16643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16644 as_dirname=dirname
16645 else
16646 as_dirname=false
16647 fi
16648
16649 as_me=`$as_basename -- "$0" ||
16650 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16651 X"$0" : 'X\(//\)$' \| \
16652 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16653 $as_echo X/"$0" |
16654 sed '/^.*\/\([^/][^/]*\)\/*$/{
16655 s//\1/
16656 q
16657 }
16658 /^X\/\(\/\/\)$/{
16659 s//\1/
16660 q
16661 }
16662 /^X\/\(\/\).*/{
16663 s//\1/
16664 q
16665 }
16666 s/.*/./; q'`
16667
16668 # Avoid depending upon Character Ranges.
16669 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16670 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16671 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16672 as_cr_digits='0123456789'
16673 as_cr_alnum=$as_cr_Letters$as_cr_digits
16674
16675 ECHO_C= ECHO_N= ECHO_T=
16676 case `echo -n x` in #(((((
16677 -n*)
16678 case `echo 'xy\c'` in
16679 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16680 xy) ECHO_C='\c';;
16681 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16682 ECHO_T=' ';;
16683 esac;;
16684 *)
16685 ECHO_N='-n';;
16686 esac
16687
16688 rm -f conf$$ conf$$.exe conf$$.file
16689 if test -d conf$$.dir; then
16690 rm -f conf$$.dir/conf$$.file
16691 else
16692 rm -f conf$$.dir
16693 mkdir conf$$.dir 2>/dev/null
16694 fi
16695 if (echo >conf$$.file) 2>/dev/null; then
16696 if ln -s conf$$.file conf$$ 2>/dev/null; then
16697 as_ln_s='ln -s'
16698 # ... but there are two gotchas:
16699 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16700 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16701 # In both cases, we have to default to `cp -p'.
16702 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16703 as_ln_s='cp -p'
16704 elif ln conf$$.file conf$$ 2>/dev/null; then
16705 as_ln_s=ln
16706 else
16707 as_ln_s='cp -p'
16708 fi
16709 else
16710 as_ln_s='cp -p'
16711 fi
16712 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16713 rmdir conf$$.dir 2>/dev/null
16714
16715
16716 # as_fn_mkdir_p
16717 # -------------
16718 # Create "$as_dir" as a directory, including parents if necessary.
16719 as_fn_mkdir_p ()
16720 {
16721
16722 case $as_dir in #(
16723 -*) as_dir=./$as_dir;;
16724 esac
16725 test -d "$as_dir" || eval $as_mkdir_p || {
16726 as_dirs=
16727 while :; do
16728 case $as_dir in #(
16729 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16730 *) as_qdir=$as_dir;;
16731 esac
16732 as_dirs="'$as_qdir' $as_dirs"
16733 as_dir=`$as_dirname -- "$as_dir" ||
16734 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16735 X"$as_dir" : 'X\(//\)[^/]' \| \
16736 X"$as_dir" : 'X\(//\)$' \| \
16737 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16738 $as_echo X"$as_dir" |
16739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16740 s//\1/
16741 q
16742 }
16743 /^X\(\/\/\)[^/].*/{
16744 s//\1/
16745 q
16746 }
16747 /^X\(\/\/\)$/{
16748 s//\1/
16749 q
16750 }
16751 /^X\(\/\).*/{
16752 s//\1/
16753 q
16754 }
16755 s/.*/./; q'`
16756 test -d "$as_dir" && break
16757 done
16758 test -z "$as_dirs" || eval "mkdir $as_dirs"
16759 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16760
16761
16762 } # as_fn_mkdir_p
16763 if mkdir -p . 2>/dev/null; then
16764 as_mkdir_p='mkdir -p "$as_dir"'
16765 else
16766 test -d ./-p && rmdir ./-p
16767 as_mkdir_p=false
16768 fi
16769
16770 if test -x / >/dev/null 2>&1; then
16771 as_test_x='test -x'
16772 else
16773 if ls -dL / >/dev/null 2>&1; then
16774 as_ls_L_option=L
16775 else
16776 as_ls_L_option=
16777 fi
16778 as_test_x='
16779 eval sh -c '\''
16780 if test -d "$1"; then
16781 test -d "$1/.";
16782 else
16783 case $1 in #(
16784 -*)set "./$1";;
16785 esac;
16786 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16787 ???[sx]*):;;*)false;;esac;fi
16788 '\'' sh
16789 '
16790 fi
16791 as_executable_p=$as_test_x
16792
16793 # Sed expression to map a string onto a valid CPP name.
16794 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16795
16796 # Sed expression to map a string onto a valid variable name.
16797 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16798
16799
16800 exec 6>&1
16801 ## ----------------------------------- ##
16802 ## Main body of $CONFIG_STATUS script. ##
16803 ## ----------------------------------- ##
16804 _ASEOF
16805 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16806
16807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16808 # Save the log message, to keep $0 and so on meaningful, and to
16809 # report actual input values of CONFIG_FILES etc. instead of their
16810 # values after options handling.
16811 ac_log="
16812 This file was extended by $as_me, which was
16813 generated by GNU Autoconf 2.64. Invocation command line was
16814
16815 CONFIG_FILES = $CONFIG_FILES
16816 CONFIG_HEADERS = $CONFIG_HEADERS
16817 CONFIG_LINKS = $CONFIG_LINKS
16818 CONFIG_COMMANDS = $CONFIG_COMMANDS
16819 $ $0 $@
16820
16821 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16822 "
16823
16824 _ACEOF
16825
16826 case $ac_config_files in *"
16827 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16828 esac
16829
16830 case $ac_config_headers in *"
16831 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16832 esac
16833
16834
16835 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16836 # Files that config.status was made for.
16837 config_files="$ac_config_files"
16838 config_headers="$ac_config_headers"
16839 config_links="$ac_config_links"
16840 config_commands="$ac_config_commands"
16841
16842 _ACEOF
16843
16844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16845 ac_cs_usage="\
16846 \`$as_me' instantiates files and other configuration actions
16847 from templates according to the current configuration. Unless the files
16848 and actions are specified as TAGs, all are instantiated by default.
16849
16850 Usage: $0 [OPTION]... [TAG]...
16851
16852 -h, --help print this help, then exit
16853 -V, --version print version number and configuration settings, then exit
16854 -q, --quiet, --silent
16855 do not print progress messages
16856 -d, --debug don't remove temporary files
16857 --recheck update $as_me by reconfiguring in the same conditions
16858 --file=FILE[:TEMPLATE]
16859 instantiate the configuration file FILE
16860 --header=FILE[:TEMPLATE]
16861 instantiate the configuration header FILE
16862
16863 Configuration files:
16864 $config_files
16865
16866 Configuration headers:
16867 $config_headers
16868
16869 Configuration links:
16870 $config_links
16871
16872 Configuration commands:
16873 $config_commands
16874
16875 Report bugs to the package provider."
16876
16877 _ACEOF
16878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16879 ac_cs_version="\\
16880 config.status
16881 configured by $0, generated by GNU Autoconf 2.64,
16882 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16883
16884 Copyright (C) 2009 Free Software Foundation, Inc.
16885 This config.status script is free software; the Free Software Foundation
16886 gives unlimited permission to copy, distribute and modify it."
16887
16888 ac_pwd='$ac_pwd'
16889 srcdir='$srcdir'
16890 INSTALL='$INSTALL'
16891 MKDIR_P='$MKDIR_P'
16892 AWK='$AWK'
16893 test -n "\$AWK" || AWK=awk
16894 _ACEOF
16895
16896 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16897 # The default lists apply if the user does not specify any file.
16898 ac_need_defaults=:
16899 while test $# != 0
16900 do
16901 case $1 in
16902 --*=*)
16903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16904 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16905 ac_shift=:
16906 ;;
16907 *)
16908 ac_option=$1
16909 ac_optarg=$2
16910 ac_shift=shift
16911 ;;
16912 esac
16913
16914 case $ac_option in
16915 # Handling of the options.
16916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16917 ac_cs_recheck=: ;;
16918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16919 $as_echo "$ac_cs_version"; exit ;;
16920 --debug | --debu | --deb | --de | --d | -d )
16921 debug=: ;;
16922 --file | --fil | --fi | --f )
16923 $ac_shift
16924 case $ac_optarg in
16925 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16926 esac
16927 as_fn_append CONFIG_FILES " '$ac_optarg'"
16928 ac_need_defaults=false;;
16929 --header | --heade | --head | --hea )
16930 $ac_shift
16931 case $ac_optarg in
16932 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16933 esac
16934 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16935 ac_need_defaults=false;;
16936 --he | --h)
16937 # Conflict between --help and --header
16938 as_fn_error "ambiguous option: \`$1'
16939 Try \`$0 --help' for more information.";;
16940 --help | --hel | -h )
16941 $as_echo "$ac_cs_usage"; exit ;;
16942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16944 ac_cs_silent=: ;;
16945
16946 # This is an error.
16947 -*) as_fn_error "unrecognized option: \`$1'
16948 Try \`$0 --help' for more information." ;;
16949
16950 *) as_fn_append ac_config_targets " $1"
16951 ac_need_defaults=false ;;
16952
16953 esac
16954 shift
16955 done
16956
16957 ac_configure_extra_args=
16958
16959 if $ac_cs_silent; then
16960 exec 6>/dev/null
16961 ac_configure_extra_args="$ac_configure_extra_args --silent"
16962 fi
16963
16964 _ACEOF
16965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16966 if \$ac_cs_recheck; then
16967 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16968 shift
16969 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16970 CONFIG_SHELL='$SHELL'
16971 export CONFIG_SHELL
16972 exec "\$@"
16973 fi
16974
16975 _ACEOF
16976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16977 exec 5>>config.log
16978 {
16979 echo
16980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16981 ## Running $as_me. ##
16982 _ASBOX
16983 $as_echo "$ac_log"
16984 } >&5
16985
16986 _ACEOF
16987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16988 #
16989 # INIT-COMMANDS
16990 #
16991 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16992 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16993
16994 _ACEOF
16995
16996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16997
16998 # Handling of arguments.
16999 for ac_config_target in $ac_config_targets
17000 do
17001 case $ac_config_target in
17002 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17003 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
17004 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17005 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
17006 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
17007 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17008 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
17009 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17010 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
17011 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
17012 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17013
17014 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17015 esac
17016 done
17017
17018
17019 # If the user did not use the arguments to specify the items to instantiate,
17020 # then the envvar interface is used. Set only those that are not.
17021 # We use the long form for the default assignment because of an extremely
17022 # bizarre bug on SunOS 4.1.3.
17023 if $ac_need_defaults; then
17024 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17025 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17026 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17027 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17028 fi
17029
17030 # Have a temporary directory for convenience. Make it in the build tree
17031 # simply because there is no reason against having it here, and in addition,
17032 # creating and moving files from /tmp can sometimes cause problems.
17033 # Hook for its removal unless debugging.
17034 # Note that there is a small window in which the directory will not be cleaned:
17035 # after its creation but before its name has been assigned to `$tmp'.
17036 $debug ||
17037 {
17038 tmp=
17039 trap 'exit_status=$?
17040 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17041 ' 0
17042 trap 'as_fn_exit 1' 1 2 13 15
17043 }
17044 # Create a (secure) tmp directory for tmp files.
17045
17046 {
17047 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17048 test -n "$tmp" && test -d "$tmp"
17049 } ||
17050 {
17051 tmp=./conf$$-$RANDOM
17052 (umask 077 && mkdir "$tmp")
17053 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17054
17055 # Set up the scripts for CONFIG_FILES section.
17056 # No need to generate them if there are no CONFIG_FILES.
17057 # This happens for instance with `./config.status config.h'.
17058 if test -n "$CONFIG_FILES"; then
17059
17060 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17061 ac_cs_awk_getline=:
17062 ac_cs_awk_pipe_init=
17063 ac_cs_awk_read_file='
17064 while ((getline aline < (F[key])) > 0)
17065 print(aline)
17066 close(F[key])'
17067 ac_cs_awk_pipe_fini=
17068 else
17069 ac_cs_awk_getline=false
17070 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17071 ac_cs_awk_read_file='
17072 print "|#_!!_#|"
17073 print "cat " F[key] " &&"
17074 '$ac_cs_awk_pipe_init
17075 # The final `:' finishes the AND list.
17076 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17077 fi
17078 ac_cr=`echo X | tr X '\015'`
17079 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17080 # But we know of no other shell where ac_cr would be empty at this
17081 # point, so we can use a bashism as a fallback.
17082 if test "x$ac_cr" = x; then
17083 eval ac_cr=\$\'\\r\'
17084 fi
17085 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17086 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17087 ac_cs_awk_cr='\r'
17088 else
17089 ac_cs_awk_cr=$ac_cr
17090 fi
17091
17092 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17093 _ACEOF
17094
17095 # Create commands to substitute file output variables.
17096 {
17097 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17098 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17099 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17100 echo "_ACAWK" &&
17101 echo "_ACEOF"
17102 } >conf$$files.sh &&
17103 . ./conf$$files.sh ||
17104 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17105 rm -f conf$$files.sh
17106
17107 {
17108 echo "cat >conf$$subs.awk <<_ACEOF" &&
17109 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17110 echo "_ACEOF"
17111 } >conf$$subs.sh ||
17112 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17113 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17114 ac_delim='%!_!# '
17115 for ac_last_try in false false false false false :; do
17116 . ./conf$$subs.sh ||
17117 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17118
17119 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17120 if test $ac_delim_n = $ac_delim_num; then
17121 break
17122 elif $ac_last_try; then
17123 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17124 else
17125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17126 fi
17127 done
17128 rm -f conf$$subs.sh
17129
17130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17131 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17132 _ACEOF
17133 sed -n '
17134 h
17135 s/^/S["/; s/!.*/"]=/
17136 p
17137 g
17138 s/^[^!]*!//
17139 :repl
17140 t repl
17141 s/'"$ac_delim"'$//
17142 t delim
17143 :nl
17144 h
17145 s/\(.\{148\}\).*/\1/
17146 t more1
17147 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17148 p
17149 n
17150 b repl
17151 :more1
17152 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17153 p
17154 g
17155 s/.\{148\}//
17156 t nl
17157 :delim
17158 h
17159 s/\(.\{148\}\).*/\1/
17160 t more2
17161 s/["\\]/\\&/g; s/^/"/; s/$/"/
17162 p
17163 b
17164 :more2
17165 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17166 p
17167 g
17168 s/.\{148\}//
17169 t delim
17170 ' <conf$$subs.awk | sed '
17171 /^[^""]/{
17172 N
17173 s/\n//
17174 }
17175 ' >>$CONFIG_STATUS || ac_write_fail=1
17176 rm -f conf$$subs.awk
17177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17178 _ACAWK
17179 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17180 for (key in S) S_is_set[key] = 1
17181 FS = "\a"
17182 \$ac_cs_awk_pipe_init
17183 }
17184 {
17185 line = $ 0
17186 nfields = split(line, field, "@")
17187 substed = 0
17188 len = length(field[1])
17189 for (i = 2; i < nfields; i++) {
17190 key = field[i]
17191 keylen = length(key)
17192 if (S_is_set[key]) {
17193 value = S[key]
17194 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17195 len += length(value) + length(field[++i])
17196 substed = 1
17197 } else
17198 len += 1 + keylen
17199 }
17200 if (nfields == 3 && !substed) {
17201 key = field[2]
17202 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17203 \$ac_cs_awk_read_file
17204 next
17205 }
17206 }
17207 print line
17208 }
17209 \$ac_cs_awk_pipe_fini
17210 _ACAWK
17211 _ACEOF
17212 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17213 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17214 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17215 else
17216 cat
17217 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17218 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17219 _ACEOF
17220
17221 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17222 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17223 # trailing colons and then remove the whole line if VPATH becomes empty
17224 # (actually we leave an empty line to preserve line numbers).
17225 if test "x$srcdir" = x.; then
17226 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17227 s/:*\$(srcdir):*/:/
17228 s/:*\${srcdir}:*/:/
17229 s/:*@srcdir@:*/:/
17230 s/^\([^=]*=[ ]*\):*/\1/
17231 s/:*$//
17232 s/^[^=]*=[ ]*$//
17233 }'
17234 fi
17235
17236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17237 fi # test -n "$CONFIG_FILES"
17238
17239 # Set up the scripts for CONFIG_HEADERS section.
17240 # No need to generate them if there are no CONFIG_HEADERS.
17241 # This happens for instance with `./config.status Makefile'.
17242 if test -n "$CONFIG_HEADERS"; then
17243 cat >"$tmp/defines.awk" <<\_ACAWK ||
17244 BEGIN {
17245 _ACEOF
17246
17247 # Transform confdefs.h into an awk script `defines.awk', embedded as
17248 # here-document in config.status, that substitutes the proper values into
17249 # config.h.in to produce config.h.
17250
17251 # Create a delimiter string that does not exist in confdefs.h, to ease
17252 # handling of long lines.
17253 ac_delim='%!_!# '
17254 for ac_last_try in false false :; do
17255 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17256 if test -z "$ac_t"; then
17257 break
17258 elif $ac_last_try; then
17259 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17260 else
17261 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17262 fi
17263 done
17264
17265 # For the awk script, D is an array of macro values keyed by name,
17266 # likewise P contains macro parameters if any. Preserve backslash
17267 # newline sequences.
17268
17269 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17270 sed -n '
17271 s/.\{148\}/&'"$ac_delim"'/g
17272 t rset
17273 :rset
17274 s/^[ ]*#[ ]*define[ ][ ]*/ /
17275 t def
17276 d
17277 :def
17278 s/\\$//
17279 t bsnl
17280 s/["\\]/\\&/g
17281 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17282 D["\1"]=" \3"/p
17283 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17284 d
17285 :bsnl
17286 s/["\\]/\\&/g
17287 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17288 D["\1"]=" \3\\\\\\n"\\/p
17289 t cont
17290 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17291 t cont
17292 d
17293 :cont
17294 n
17295 s/.\{148\}/&'"$ac_delim"'/g
17296 t clear
17297 :clear
17298 s/\\$//
17299 t bsnlc
17300 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17301 d
17302 :bsnlc
17303 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17304 b cont
17305 ' <confdefs.h | sed '
17306 s/'"$ac_delim"'/"\\\
17307 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17308
17309 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17310 for (key in D) D_is_set[key] = 1
17311 FS = "\a"
17312 }
17313 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17314 line = \$ 0
17315 split(line, arg, " ")
17316 if (arg[1] == "#") {
17317 defundef = arg[2]
17318 mac1 = arg[3]
17319 } else {
17320 defundef = substr(arg[1], 2)
17321 mac1 = arg[2]
17322 }
17323 split(mac1, mac2, "(") #)
17324 macro = mac2[1]
17325 prefix = substr(line, 1, index(line, defundef) - 1)
17326 if (D_is_set[macro]) {
17327 # Preserve the white space surrounding the "#".
17328 print prefix "define", macro P[macro] D[macro]
17329 next
17330 } else {
17331 # Replace #undef with comments. This is necessary, for example,
17332 # in the case of _POSIX_SOURCE, which is predefined and required
17333 # on some systems where configure will not decide to define it.
17334 if (defundef == "undef") {
17335 print "/*", prefix defundef, macro, "*/"
17336 next
17337 }
17338 }
17339 }
17340 { print }
17341 _ACAWK
17342 _ACEOF
17343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17344 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17345 fi # test -n "$CONFIG_HEADERS"
17346
17347
17348 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17349 shift
17350 for ac_tag
17351 do
17352 case $ac_tag in
17353 :[FHLC]) ac_mode=$ac_tag; continue;;
17354 esac
17355 case $ac_mode$ac_tag in
17356 :[FHL]*:*);;
17357 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17358 :[FH]-) ac_tag=-:-;;
17359 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17360 esac
17361 ac_save_IFS=$IFS
17362 IFS=:
17363 set x $ac_tag
17364 IFS=$ac_save_IFS
17365 shift
17366 ac_file=$1
17367 shift
17368
17369 case $ac_mode in
17370 :L) ac_source=$1;;
17371 :[FH])
17372 ac_file_inputs=
17373 for ac_f
17374 do
17375 case $ac_f in
17376 -) ac_f="$tmp/stdin";;
17377 *) # Look for the file first in the build tree, then in the source tree
17378 # (if the path is not absolute). The absolute path cannot be DOS-style,
17379 # because $ac_f cannot contain `:'.
17380 test -f "$ac_f" ||
17381 case $ac_f in
17382 [\\/$]*) false;;
17383 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17384 esac ||
17385 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17386 esac
17387 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17388 as_fn_append ac_file_inputs " '$ac_f'"
17389 done
17390
17391 # Let's still pretend it is `configure' which instantiates (i.e., don't
17392 # use $as_me), people would be surprised to read:
17393 # /* config.h. Generated by config.status. */
17394 configure_input='Generated from '`
17395 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17396 `' by configure.'
17397 if test x"$ac_file" != x-; then
17398 configure_input="$ac_file. $configure_input"
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17400 $as_echo "$as_me: creating $ac_file" >&6;}
17401 fi
17402 # Neutralize special characters interpreted by sed in replacement strings.
17403 case $configure_input in #(
17404 *\&* | *\|* | *\\* )
17405 ac_sed_conf_input=`$as_echo "$configure_input" |
17406 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17407 *) ac_sed_conf_input=$configure_input;;
17408 esac
17409
17410 case $ac_tag in
17411 *:-:* | *:-) cat >"$tmp/stdin" \
17412 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17413 esac
17414 ;;
17415 esac
17416
17417 ac_dir=`$as_dirname -- "$ac_file" ||
17418 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17419 X"$ac_file" : 'X\(//\)[^/]' \| \
17420 X"$ac_file" : 'X\(//\)$' \| \
17421 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17422 $as_echo X"$ac_file" |
17423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17424 s//\1/
17425 q
17426 }
17427 /^X\(\/\/\)[^/].*/{
17428 s//\1/
17429 q
17430 }
17431 /^X\(\/\/\)$/{
17432 s//\1/
17433 q
17434 }
17435 /^X\(\/\).*/{
17436 s//\1/
17437 q
17438 }
17439 s/.*/./; q'`
17440 as_dir="$ac_dir"; as_fn_mkdir_p
17441 ac_builddir=.
17442
17443 case "$ac_dir" in
17444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17445 *)
17446 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17447 # A ".." for each directory in $ac_dir_suffix.
17448 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17449 case $ac_top_builddir_sub in
17450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17452 esac ;;
17453 esac
17454 ac_abs_top_builddir=$ac_pwd
17455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17456 # for backward compatibility:
17457 ac_top_builddir=$ac_top_build_prefix
17458
17459 case $srcdir in
17460 .) # We are building in place.
17461 ac_srcdir=.
17462 ac_top_srcdir=$ac_top_builddir_sub
17463 ac_abs_top_srcdir=$ac_pwd ;;
17464 [\\/]* | ?:[\\/]* ) # Absolute name.
17465 ac_srcdir=$srcdir$ac_dir_suffix;
17466 ac_top_srcdir=$srcdir
17467 ac_abs_top_srcdir=$srcdir ;;
17468 *) # Relative name.
17469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17470 ac_top_srcdir=$ac_top_build_prefix$srcdir
17471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17472 esac
17473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17474
17475
17476 case $ac_mode in
17477 :F)
17478 #
17479 # CONFIG_FILE
17480 #
17481
17482 case $INSTALL in
17483 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17484 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17485 esac
17486 ac_MKDIR_P=$MKDIR_P
17487 case $MKDIR_P in
17488 [\\/$]* | ?:[\\/]* ) ;;
17489 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17490 esac
17491 _ACEOF
17492
17493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17494 # If the template does not know about datarootdir, expand it.
17495 # FIXME: This hack should be removed a few years after 2.60.
17496 ac_datarootdir_hack=; ac_datarootdir_seen=
17497 ac_sed_dataroot='
17498 /datarootdir/ {
17499 p
17500 q
17501 }
17502 /@datadir@/p
17503 /@docdir@/p
17504 /@infodir@/p
17505 /@localedir@/p
17506 /@mandir@/p'
17507 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17508 *datarootdir*) ac_datarootdir_seen=yes;;
17509 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17511 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17512 _ACEOF
17513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17514 ac_datarootdir_hack='
17515 s&@datadir@&$datadir&g
17516 s&@docdir@&$docdir&g
17517 s&@infodir@&$infodir&g
17518 s&@localedir@&$localedir&g
17519 s&@mandir@&$mandir&g
17520 s&\\\${datarootdir}&$datarootdir&g' ;;
17521 esac
17522 _ACEOF
17523
17524 # Neutralize VPATH when `$srcdir' = `.'.
17525 # Shell code in configure.ac might set extrasub.
17526 # FIXME: do we really want to maintain this feature?
17527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17528 ac_sed_extra="$ac_vpsub
17529 $extrasub
17530 _ACEOF
17531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17532 :t
17533 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17534 s|@configure_input@|$ac_sed_conf_input|;t t
17535 s&@top_builddir@&$ac_top_builddir_sub&;t t
17536 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17537 s&@srcdir@&$ac_srcdir&;t t
17538 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17539 s&@top_srcdir@&$ac_top_srcdir&;t t
17540 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17541 s&@builddir@&$ac_builddir&;t t
17542 s&@abs_builddir@&$ac_abs_builddir&;t t
17543 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17544 s&@INSTALL@&$ac_INSTALL&;t t
17545 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17546 $ac_datarootdir_hack
17547 "
17548 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17549 if $ac_cs_awk_getline; then
17550 $AWK -f "$tmp/subs.awk"
17551 else
17552 $AWK -f "$tmp/subs.awk" | $SHELL
17553 fi >$tmp/out \
17554 || as_fn_error "could not create $ac_file" "$LINENO" 5
17555
17556 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17557 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17558 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17560 which seems to be undefined. Please make sure it is defined." >&5
17561 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17562 which seems to be undefined. Please make sure it is defined." >&2;}
17563
17564 rm -f "$tmp/stdin"
17565 case $ac_file in
17566 -) cat "$tmp/out" && rm -f "$tmp/out";;
17567 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17568 esac \
17569 || as_fn_error "could not create $ac_file" "$LINENO" 5
17570 ;;
17571 :H)
17572 #
17573 # CONFIG_HEADER
17574 #
17575 if test x"$ac_file" != x-; then
17576 {
17577 $as_echo "/* $configure_input */" \
17578 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17579 } >"$tmp/config.h" \
17580 || as_fn_error "could not create $ac_file" "$LINENO" 5
17581 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17583 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17584 else
17585 rm -f "$ac_file"
17586 mv "$tmp/config.h" "$ac_file" \
17587 || as_fn_error "could not create $ac_file" "$LINENO" 5
17588 fi
17589 else
17590 $as_echo "/* $configure_input */" \
17591 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17592 || as_fn_error "could not create -" "$LINENO" 5
17593 fi
17594 # Compute "$ac_file"'s index in $config_headers.
17595 _am_arg="$ac_file"
17596 _am_stamp_count=1
17597 for _am_header in $config_headers :; do
17598 case $_am_header in
17599 $_am_arg | $_am_arg:* )
17600 break ;;
17601 * )
17602 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17603 esac
17604 done
17605 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17606 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17607 X"$_am_arg" : 'X\(//\)[^/]' \| \
17608 X"$_am_arg" : 'X\(//\)$' \| \
17609 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17610 $as_echo X"$_am_arg" |
17611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17612 s//\1/
17613 q
17614 }
17615 /^X\(\/\/\)[^/].*/{
17616 s//\1/
17617 q
17618 }
17619 /^X\(\/\/\)$/{
17620 s//\1/
17621 q
17622 }
17623 /^X\(\/\).*/{
17624 s//\1/
17625 q
17626 }
17627 s/.*/./; q'`/stamp-h$_am_stamp_count
17628 ;;
17629 :L)
17630 #
17631 # CONFIG_LINK
17632 #
17633
17634 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17635 :
17636 else
17637 # Prefer the file from the source tree if names are identical.
17638 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17639 ac_source=$srcdir/$ac_source
17640 fi
17641
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17643 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17644
17645 if test ! -r "$ac_source"; then
17646 as_fn_error "$ac_source: file not found" "$LINENO" 5
17647 fi
17648 rm -f "$ac_file"
17649
17650 # Try a relative symlink, then a hard link, then a copy.
17651 case $srcdir in
17652 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17653 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17654 esac
17655 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17656 ln "$ac_source" "$ac_file" 2>/dev/null ||
17657 cp -p "$ac_source" "$ac_file" ||
17658 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17659 fi
17660 ;;
17661 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17662 $as_echo "$as_me: executing $ac_file commands" >&6;}
17663 ;;
17664 esac
17665
17666
17667 case $ac_file$ac_mode in
17668 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17669 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17670 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17671 # are listed without --file. Let's play safe and only enable the eval
17672 # if we detect the quoting.
17673 case $CONFIG_FILES in
17674 *\'*) eval set x "$CONFIG_FILES" ;;
17675 *) set x $CONFIG_FILES ;;
17676 esac
17677 shift
17678 for mf
17679 do
17680 # Strip MF so we end up with the name of the file.
17681 mf=`echo "$mf" | sed -e 's/:.*$//'`
17682 # Check whether this is an Automake generated Makefile or not.
17683 # We used to match only the files named `Makefile.in', but
17684 # some people rename them; so instead we look at the file content.
17685 # Grep'ing the first line is not enough: some people post-process
17686 # each Makefile.in and add a new line on top of each file to say so.
17687 # Grep'ing the whole file is not good either: AIX grep has a line
17688 # limit of 2048, but all sed's we know have understand at least 4000.
17689 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17690 dirpart=`$as_dirname -- "$mf" ||
17691 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17692 X"$mf" : 'X\(//\)[^/]' \| \
17693 X"$mf" : 'X\(//\)$' \| \
17694 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17695 $as_echo X"$mf" |
17696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17697 s//\1/
17698 q
17699 }
17700 /^X\(\/\/\)[^/].*/{
17701 s//\1/
17702 q
17703 }
17704 /^X\(\/\/\)$/{
17705 s//\1/
17706 q
17707 }
17708 /^X\(\/\).*/{
17709 s//\1/
17710 q
17711 }
17712 s/.*/./; q'`
17713 else
17714 continue
17715 fi
17716 # Extract the definition of DEPDIR, am__include, and am__quote
17717 # from the Makefile without running `make'.
17718 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17719 test -z "$DEPDIR" && continue
17720 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17721 test -z "am__include" && continue
17722 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17723 # When using ansi2knr, U may be empty or an underscore; expand it
17724 U=`sed -n 's/^U = //p' < "$mf"`
17725 # Find all dependency output files, they are included files with
17726 # $(DEPDIR) in their names. We invoke sed twice because it is the
17727 # simplest approach to changing $(DEPDIR) to its actual value in the
17728 # expansion.
17729 for file in `sed -n "
17730 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17731 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17732 # Make sure the directory exists.
17733 test -f "$dirpart/$file" && continue
17734 fdir=`$as_dirname -- "$file" ||
17735 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17736 X"$file" : 'X\(//\)[^/]' \| \
17737 X"$file" : 'X\(//\)$' \| \
17738 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17739 $as_echo X"$file" |
17740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17741 s//\1/
17742 q
17743 }
17744 /^X\(\/\/\)[^/].*/{
17745 s//\1/
17746 q
17747 }
17748 /^X\(\/\/\)$/{
17749 s//\1/
17750 q
17751 }
17752 /^X\(\/\).*/{
17753 s//\1/
17754 q
17755 }
17756 s/.*/./; q'`
17757 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17758 # echo "creating $dirpart/$file"
17759 echo '# dummy' > "$dirpart/$file"
17760 done
17761 done
17762 }
17763 ;;
17764 "default":C)
17765 case x$CONFIG_HEADERS in
17766 xconfig.h:config.in)
17767 echo > stamp-h ;;
17768 esac
17769 ;;
17770
17771 esac
17772 done # for ac_tag
17773
17774
17775 as_fn_exit 0
17776 _ACEOF
17777 ac_clean_files=$ac_clean_files_save
17778
17779 test $ac_write_fail = 0 ||
17780 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17781
17782
17783 # configure is writing to config.log, and then calls config.status.
17784 # config.status does its own redirection, appending to config.log.
17785 # Unfortunately, on DOS this fails, as config.log is still kept open
17786 # by configure, so config.status won't be able to write to it; its
17787 # output is simply discarded. So we exec the FD to /dev/null,
17788 # effectively closing config.log, so it can be properly (re)opened and
17789 # appended to by config.status. When coming back to configure, we
17790 # need to make the FD available again.
17791 if test "$no_create" != yes; then
17792 ac_cs_success=:
17793 ac_config_status_args=
17794 test "$silent" = yes &&
17795 ac_config_status_args="$ac_config_status_args --quiet"
17796 exec 5>/dev/null
17797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17798 exec 5>>config.log
17799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17800 # would make configure fail if this is the last instruction.
17801 $ac_cs_success || as_fn_exit $?
17802 fi
17803
17804 #
17805 # CONFIG_SUBDIRS section.
17806 #
17807 if test "$no_recursion" != yes; then
17808
17809 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17810 # so they do not pile up.
17811 ac_sub_configure_args=
17812 ac_prev=
17813 eval "set x $ac_configure_args"
17814 shift
17815 for ac_arg
17816 do
17817 if test -n "$ac_prev"; then
17818 ac_prev=
17819 continue
17820 fi
17821 case $ac_arg in
17822 -cache-file | --cache-file | --cache-fil | --cache-fi \
17823 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17824 ac_prev=cache_file ;;
17825 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17826 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17827 | --c=*)
17828 ;;
17829 --config-cache | -C)
17830 ;;
17831 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17832 ac_prev=srcdir ;;
17833 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17834 ;;
17835 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17836 ac_prev=prefix ;;
17837 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17838 ;;
17839 --disable-option-checking)
17840 ;;
17841 *)
17842 case $ac_arg in
17843 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17844 esac
17845 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17846 esac
17847 done
17848
17849 # Always prepend --prefix to ensure using the same prefix
17850 # in subdir configurations.
17851 ac_arg="--prefix=$prefix"
17852 case $ac_arg in
17853 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17854 esac
17855 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17856
17857 # Pass --silent
17858 if test "$silent" = yes; then
17859 ac_sub_configure_args="--silent $ac_sub_configure_args"
17860 fi
17861
17862 # Always prepend --disable-option-checking to silence warnings, since
17863 # different subdirs can have different --enable and --with options.
17864 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17865
17866 ac_popdir=`pwd`
17867 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17868
17869 # Do not complain, so a configure script can configure whichever
17870 # parts of a large source tree are present.
17871 test -d "$srcdir/$ac_dir" || continue
17872
17873 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17874 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17875 $as_echo "$ac_msg" >&6
17876 as_dir="$ac_dir"; as_fn_mkdir_p
17877 ac_builddir=.
17878
17879 case "$ac_dir" in
17880 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17881 *)
17882 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17883 # A ".." for each directory in $ac_dir_suffix.
17884 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17885 case $ac_top_builddir_sub in
17886 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17887 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17888 esac ;;
17889 esac
17890 ac_abs_top_builddir=$ac_pwd
17891 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17892 # for backward compatibility:
17893 ac_top_builddir=$ac_top_build_prefix
17894
17895 case $srcdir in
17896 .) # We are building in place.
17897 ac_srcdir=.
17898 ac_top_srcdir=$ac_top_builddir_sub
17899 ac_abs_top_srcdir=$ac_pwd ;;
17900 [\\/]* | ?:[\\/]* ) # Absolute name.
17901 ac_srcdir=$srcdir$ac_dir_suffix;
17902 ac_top_srcdir=$srcdir
17903 ac_abs_top_srcdir=$srcdir ;;
17904 *) # Relative name.
17905 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17906 ac_top_srcdir=$ac_top_build_prefix$srcdir
17907 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17908 esac
17909 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17910
17911
17912 cd "$ac_dir"
17913
17914 # Check for guested configure; otherwise get Cygnus style configure.
17915 if test -f "$ac_srcdir/configure.gnu"; then
17916 ac_sub_configure=$ac_srcdir/configure.gnu
17917 elif test -f "$ac_srcdir/configure"; then
17918 ac_sub_configure=$ac_srcdir/configure
17919 elif test -f "$ac_srcdir/configure.in"; then
17920 # This should be Cygnus configure.
17921 ac_sub_configure=$ac_aux_dir/configure
17922 else
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17924 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17925 ac_sub_configure=
17926 fi
17927
17928 # The recursion is here.
17929 if test -n "$ac_sub_configure"; then
17930 # Make the cache file name correct relative to the subdirectory.
17931 case $cache_file in
17932 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17933 *) # Relative name.
17934 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17935 esac
17936
17937 { $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
17938 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17939 # The eval makes quoting arguments work.
17940 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17941 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17942 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17943 fi
17944
17945 cd "$ac_popdir"
17946 done
17947 fi
17948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17951 fi
17952
17953
17954 exit 0
This page took 0.419925 seconds and 4 git commands to generate.