gdb/
[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_DEFINE
658 TARGET_SYSTEM_ROOT
659 CONFIG_LDFLAGS
660 RDYNAMIC
661 ALLOCA
662 PYTHON_LIBS
663 PYTHON_CPPFLAGS
664 PYTHON_CFLAGS
665 python_prog_path
666 LTLIBEXPAT
667 LIBEXPAT
668 HAVE_LIBEXPAT
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_expat
970 with_gnu_ld
971 enable_rpath
972 with_libexpat_prefix
973 with_python
974 with_included_regex
975 with_sysroot
976 with_system_gdbinit
977 enable_werror
978 enable_build_warnings
979 enable_gdb_build_warnings
980 with_tcl
981 with_tk
982 with_x
983 enable_sim
984 enable_multi_ice
985 enable_gdbserver
986 '
987 ac_precious_vars='build_alias
988 host_alias
989 target_alias
990 CC
991 CFLAGS
992 LDFLAGS
993 LIBS
994 CPPFLAGS
995 CPP
996 YACC
997 YFLAGS
998 XMKMF'
999 ac_subdirs_all='testsuite
1000 gdbtk
1001 multi-ice
1002 gdbserver'
1003
1004 # Initialize some variables set by options.
1005 ac_init_help=
1006 ac_init_version=false
1007 ac_unrecognized_opts=
1008 ac_unrecognized_sep=
1009 # The variables have the same names as the options, with
1010 # dashes changed to underlines.
1011 cache_file=/dev/null
1012 exec_prefix=NONE
1013 no_create=
1014 no_recursion=
1015 prefix=NONE
1016 program_prefix=NONE
1017 program_suffix=NONE
1018 program_transform_name=s,x,x,
1019 silent=
1020 site=
1021 srcdir=
1022 verbose=
1023 x_includes=NONE
1024 x_libraries=NONE
1025
1026 # Installation directory options.
1027 # These are left unexpanded so users can "make install exec_prefix=/foo"
1028 # and all the variables that are supposed to be based on exec_prefix
1029 # by default will actually change.
1030 # Use braces instead of parens because sh, perl, etc. also accept them.
1031 # (The list follows the same order as the GNU Coding Standards.)
1032 bindir='${exec_prefix}/bin'
1033 sbindir='${exec_prefix}/sbin'
1034 libexecdir='${exec_prefix}/libexec'
1035 datarootdir='${prefix}/share'
1036 datadir='${datarootdir}'
1037 sysconfdir='${prefix}/etc'
1038 sharedstatedir='${prefix}/com'
1039 localstatedir='${prefix}/var'
1040 includedir='${prefix}/include'
1041 oldincludedir='/usr/include'
1042 docdir='${datarootdir}/doc/${PACKAGE}'
1043 infodir='${datarootdir}/info'
1044 htmldir='${docdir}'
1045 dvidir='${docdir}'
1046 pdfdir='${docdir}'
1047 psdir='${docdir}'
1048 libdir='${exec_prefix}/lib'
1049 localedir='${datarootdir}/locale'
1050 mandir='${datarootdir}/man'
1051
1052 ac_prev=
1053 ac_dashdash=
1054 for ac_option
1055 do
1056 # If the previous option needs an argument, assign it.
1057 if test -n "$ac_prev"; then
1058 eval $ac_prev=\$ac_option
1059 ac_prev=
1060 continue
1061 fi
1062
1063 case $ac_option in
1064 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1065 *) ac_optarg=yes ;;
1066 esac
1067
1068 # Accept the important Cygnus configure options, so we can diagnose typos.
1069
1070 case $ac_dashdash$ac_option in
1071 --)
1072 ac_dashdash=yes ;;
1073
1074 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075 ac_prev=bindir ;;
1076 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1077 bindir=$ac_optarg ;;
1078
1079 -build | --build | --buil | --bui | --bu)
1080 ac_prev=build_alias ;;
1081 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1082 build_alias=$ac_optarg ;;
1083
1084 -cache-file | --cache-file | --cache-fil | --cache-fi \
1085 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1086 ac_prev=cache_file ;;
1087 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1088 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1089 cache_file=$ac_optarg ;;
1090
1091 --config-cache | -C)
1092 cache_file=config.cache ;;
1093
1094 -datadir | --datadir | --datadi | --datad)
1095 ac_prev=datadir ;;
1096 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1097 datadir=$ac_optarg ;;
1098
1099 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1100 | --dataroo | --dataro | --datar)
1101 ac_prev=datarootdir ;;
1102 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1103 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1104 datarootdir=$ac_optarg ;;
1105
1106 -disable-* | --disable-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error "invalid feature name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115 "enable_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval enable_$ac_useropt=no ;;
1121
1122 -docdir | --docdir | --docdi | --doc | --do)
1123 ac_prev=docdir ;;
1124 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125 docdir=$ac_optarg ;;
1126
1127 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128 ac_prev=dvidir ;;
1129 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130 dvidir=$ac_optarg ;;
1131
1132 -enable-* | --enable-*)
1133 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136 as_fn_error "invalid feature name: $ac_useropt"
1137 ac_useropt_orig=$ac_useropt
1138 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139 case $ac_user_opts in
1140 *"
1141 "enable_$ac_useropt"
1142 "*) ;;
1143 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144 ac_unrecognized_sep=', ';;
1145 esac
1146 eval enable_$ac_useropt=\$ac_optarg ;;
1147
1148 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1149 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1150 | --exec | --exe | --ex)
1151 ac_prev=exec_prefix ;;
1152 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1153 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1154 | --exec=* | --exe=* | --ex=*)
1155 exec_prefix=$ac_optarg ;;
1156
1157 -gas | --gas | --ga | --g)
1158 # Obsolete; use --with-gas.
1159 with_gas=yes ;;
1160
1161 -help | --help | --hel | --he | -h)
1162 ac_init_help=long ;;
1163 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1164 ac_init_help=recursive ;;
1165 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1166 ac_init_help=short ;;
1167
1168 -host | --host | --hos | --ho)
1169 ac_prev=host_alias ;;
1170 -host=* | --host=* | --hos=* | --ho=*)
1171 host_alias=$ac_optarg ;;
1172
1173 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174 ac_prev=htmldir ;;
1175 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176 | --ht=*)
1177 htmldir=$ac_optarg ;;
1178
1179 -includedir | --includedir | --includedi | --included | --include \
1180 | --includ | --inclu | --incl | --inc)
1181 ac_prev=includedir ;;
1182 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1183 | --includ=* | --inclu=* | --incl=* | --inc=*)
1184 includedir=$ac_optarg ;;
1185
1186 -infodir | --infodir | --infodi | --infod | --info | --inf)
1187 ac_prev=infodir ;;
1188 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1189 infodir=$ac_optarg ;;
1190
1191 -libdir | --libdir | --libdi | --libd)
1192 ac_prev=libdir ;;
1193 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1194 libdir=$ac_optarg ;;
1195
1196 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1197 | --libexe | --libex | --libe)
1198 ac_prev=libexecdir ;;
1199 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1200 | --libexe=* | --libex=* | --libe=*)
1201 libexecdir=$ac_optarg ;;
1202
1203 -localedir | --localedir | --localedi | --localed | --locale)
1204 ac_prev=localedir ;;
1205 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1206 localedir=$ac_optarg ;;
1207
1208 -localstatedir | --localstatedir | --localstatedi | --localstated \
1209 | --localstate | --localstat | --localsta | --localst | --locals)
1210 ac_prev=localstatedir ;;
1211 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1212 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1213 localstatedir=$ac_optarg ;;
1214
1215 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216 ac_prev=mandir ;;
1217 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1218 mandir=$ac_optarg ;;
1219
1220 -nfp | --nfp | --nf)
1221 # Obsolete; use --without-fp.
1222 with_fp=no ;;
1223
1224 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1225 | --no-cr | --no-c | -n)
1226 no_create=yes ;;
1227
1228 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230 no_recursion=yes ;;
1231
1232 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1233 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1234 | --oldin | --oldi | --old | --ol | --o)
1235 ac_prev=oldincludedir ;;
1236 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1237 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1238 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1239 oldincludedir=$ac_optarg ;;
1240
1241 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242 ac_prev=prefix ;;
1243 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1244 prefix=$ac_optarg ;;
1245
1246 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1247 | --program-pre | --program-pr | --program-p)
1248 ac_prev=program_prefix ;;
1249 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1250 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1251 program_prefix=$ac_optarg ;;
1252
1253 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1254 | --program-suf | --program-su | --program-s)
1255 ac_prev=program_suffix ;;
1256 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1257 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1258 program_suffix=$ac_optarg ;;
1259
1260 -program-transform-name | --program-transform-name \
1261 | --program-transform-nam | --program-transform-na \
1262 | --program-transform-n | --program-transform- \
1263 | --program-transform | --program-transfor \
1264 | --program-transfo | --program-transf \
1265 | --program-trans | --program-tran \
1266 | --progr-tra | --program-tr | --program-t)
1267 ac_prev=program_transform_name ;;
1268 -program-transform-name=* | --program-transform-name=* \
1269 | --program-transform-nam=* | --program-transform-na=* \
1270 | --program-transform-n=* | --program-transform-=* \
1271 | --program-transform=* | --program-transfor=* \
1272 | --program-transfo=* | --program-transf=* \
1273 | --program-trans=* | --program-tran=* \
1274 | --progr-tra=* | --program-tr=* | --program-t=*)
1275 program_transform_name=$ac_optarg ;;
1276
1277 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278 ac_prev=pdfdir ;;
1279 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1280 pdfdir=$ac_optarg ;;
1281
1282 -psdir | --psdir | --psdi | --psd | --ps)
1283 ac_prev=psdir ;;
1284 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285 psdir=$ac_optarg ;;
1286
1287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288 | -silent | --silent | --silen | --sile | --sil)
1289 silent=yes ;;
1290
1291 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292 ac_prev=sbindir ;;
1293 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294 | --sbi=* | --sb=*)
1295 sbindir=$ac_optarg ;;
1296
1297 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1298 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1299 | --sharedst | --shareds | --shared | --share | --shar \
1300 | --sha | --sh)
1301 ac_prev=sharedstatedir ;;
1302 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1303 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1304 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305 | --sha=* | --sh=*)
1306 sharedstatedir=$ac_optarg ;;
1307
1308 -site | --site | --sit)
1309 ac_prev=site ;;
1310 -site=* | --site=* | --sit=*)
1311 site=$ac_optarg ;;
1312
1313 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314 ac_prev=srcdir ;;
1315 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1316 srcdir=$ac_optarg ;;
1317
1318 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1319 | --syscon | --sysco | --sysc | --sys | --sy)
1320 ac_prev=sysconfdir ;;
1321 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1322 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1323 sysconfdir=$ac_optarg ;;
1324
1325 -target | --target | --targe | --targ | --tar | --ta | --t)
1326 ac_prev=target_alias ;;
1327 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1328 target_alias=$ac_optarg ;;
1329
1330 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1331 verbose=yes ;;
1332
1333 -version | --version | --versio | --versi | --vers | -V)
1334 ac_init_version=: ;;
1335
1336 -with-* | --with-*)
1337 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340 as_fn_error "invalid package name: $ac_useropt"
1341 ac_useropt_orig=$ac_useropt
1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 case $ac_user_opts in
1344 *"
1345 "with_$ac_useropt"
1346 "*) ;;
1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348 ac_unrecognized_sep=', ';;
1349 esac
1350 eval with_$ac_useropt=\$ac_optarg ;;
1351
1352 -without-* | --without-*)
1353 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354 # Reject names that are not valid shell variable names.
1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356 as_fn_error "invalid package name: $ac_useropt"
1357 ac_useropt_orig=$ac_useropt
1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359 case $ac_user_opts in
1360 *"
1361 "with_$ac_useropt"
1362 "*) ;;
1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364 ac_unrecognized_sep=', ';;
1365 esac
1366 eval with_$ac_useropt=no ;;
1367
1368 --x)
1369 # Obsolete; use --with-x.
1370 with_x=yes ;;
1371
1372 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373 | --x-incl | --x-inc | --x-in | --x-i)
1374 ac_prev=x_includes ;;
1375 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377 x_includes=$ac_optarg ;;
1378
1379 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381 ac_prev=x_libraries ;;
1382 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384 x_libraries=$ac_optarg ;;
1385
1386 -*) as_fn_error "unrecognized option: \`$ac_option'
1387 Try \`$0 --help' for more information."
1388 ;;
1389
1390 *=*)
1391 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392 # Reject names that are not valid shell variable names.
1393 case $ac_envvar in #(
1394 '' | [0-9]* | *[!_$as_cr_alnum]* )
1395 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1396 esac
1397 eval $ac_envvar=\$ac_optarg
1398 export $ac_envvar ;;
1399
1400 *)
1401 # FIXME: should be removed in autoconf 3.0.
1402 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1406 ;;
1407
1408 esac
1409 done
1410
1411 if test -n "$ac_prev"; then
1412 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413 as_fn_error "missing argument to $ac_option"
1414 fi
1415
1416 if test -n "$ac_unrecognized_opts"; then
1417 case $enable_option_checking in
1418 no) ;;
1419 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1420 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421 esac
1422 fi
1423
1424 # Check all directory arguments for consistency.
1425 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426 datadir sysconfdir sharedstatedir localstatedir includedir \
1427 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428 libdir localedir mandir
1429 do
1430 eval ac_val=\$$ac_var
1431 # Remove trailing slashes.
1432 case $ac_val in
1433 */ )
1434 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435 eval $ac_var=\$ac_val;;
1436 esac
1437 # Be sure to have absolute directory names.
1438 case $ac_val in
1439 [\\/$]* | ?:[\\/]* ) continue;;
1440 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441 esac
1442 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1443 done
1444
1445 # There might be people who depend on the old broken behavior: `$host'
1446 # used to hold the argument of --host etc.
1447 # FIXME: To remove some day.
1448 build=$build_alias
1449 host=$host_alias
1450 target=$target_alias
1451
1452 # FIXME: To remove some day.
1453 if test "x$host_alias" != x; then
1454 if test "x$build_alias" = x; then
1455 cross_compiling=maybe
1456 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1457 If a cross compiler is detected then cross compile mode will be used." >&2
1458 elif test "x$build_alias" != "x$host_alias"; then
1459 cross_compiling=yes
1460 fi
1461 fi
1462
1463 ac_tool_prefix=
1464 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1465
1466 test "$silent" = yes && exec 6>/dev/null
1467
1468
1469 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470 ac_ls_di=`ls -di .` &&
1471 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472 as_fn_error "working directory cannot be determined"
1473 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474 as_fn_error "pwd does not report name of working directory"
1475
1476
1477 # Find the source files, if location was not specified.
1478 if test -z "$srcdir"; then
1479 ac_srcdir_defaulted=yes
1480 # Try the directory containing this script, then the parent directory.
1481 ac_confdir=`$as_dirname -- "$as_myself" ||
1482 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483 X"$as_myself" : 'X\(//\)[^/]' \| \
1484 X"$as_myself" : 'X\(//\)$' \| \
1485 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486 $as_echo X"$as_myself" |
1487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488 s//\1/
1489 q
1490 }
1491 /^X\(\/\/\)[^/].*/{
1492 s//\1/
1493 q
1494 }
1495 /^X\(\/\/\)$/{
1496 s//\1/
1497 q
1498 }
1499 /^X\(\/\).*/{
1500 s//\1/
1501 q
1502 }
1503 s/.*/./; q'`
1504 srcdir=$ac_confdir
1505 if test ! -r "$srcdir/$ac_unique_file"; then
1506 srcdir=..
1507 fi
1508 else
1509 ac_srcdir_defaulted=no
1510 fi
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1512 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1514 fi
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516 ac_abs_confdir=`(
1517 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1518 pwd)`
1519 # When building in place, set srcdir=.
1520 if test "$ac_abs_confdir" = "$ac_pwd"; then
1521 srcdir=.
1522 fi
1523 # Remove unnecessary trailing slashes from srcdir.
1524 # Double slashes in file names in object file debugging info
1525 # mess up M-x gdb in Emacs.
1526 case $srcdir in
1527 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528 esac
1529 for ac_var in $ac_precious_vars; do
1530 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531 eval ac_env_${ac_var}_value=\$${ac_var}
1532 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534 done
1535
1536 #
1537 # Report the --help message.
1538 #
1539 if test "$ac_init_help" = "long"; then
1540 # Omit some internal or obsolete options to make the list less imposing.
1541 # This message is too long to be a string in the A/UX 3.1 sh.
1542 cat <<_ACEOF
1543 \`configure' configures this package to adapt to many kinds of systems.
1544
1545 Usage: $0 [OPTION]... [VAR=VALUE]...
1546
1547 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548 VAR=VALUE. See below for descriptions of some of the useful variables.
1549
1550 Defaults for the options are specified in brackets.
1551
1552 Configuration:
1553 -h, --help display this help and exit
1554 --help=short display options specific to this package
1555 --help=recursive display the short help of all the included packages
1556 -V, --version display version information and exit
1557 -q, --quiet, --silent do not print \`checking...' messages
1558 --cache-file=FILE cache test results in FILE [disabled]
1559 -C, --config-cache alias for \`--cache-file=config.cache'
1560 -n, --no-create do not create output files
1561 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1562
1563 Installation directories:
1564 --prefix=PREFIX install architecture-independent files in PREFIX
1565 [$ac_default_prefix]
1566 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1567 [PREFIX]
1568
1569 By default, \`make install' will install all the files in
1570 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1571 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572 for instance \`--prefix=\$HOME'.
1573
1574 For better control, use the options below.
1575
1576 Fine tuning of the installation directories:
1577 --bindir=DIR user executables [EPREFIX/bin]
1578 --sbindir=DIR system admin executables [EPREFIX/sbin]
1579 --libexecdir=DIR program executables [EPREFIX/libexec]
1580 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1581 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1582 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1583 --libdir=DIR object code libraries [EPREFIX/lib]
1584 --includedir=DIR C header files [PREFIX/include]
1585 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1586 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1587 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1588 --infodir=DIR info documentation [DATAROOTDIR/info]
1589 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1590 --mandir=DIR man documentation [DATAROOTDIR/man]
1591 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1592 --htmldir=DIR html documentation [DOCDIR]
1593 --dvidir=DIR dvi documentation [DOCDIR]
1594 --pdfdir=DIR pdf documentation [DOCDIR]
1595 --psdir=DIR ps documentation [DOCDIR]
1596 _ACEOF
1597
1598 cat <<\_ACEOF
1599
1600 Program names:
1601 --program-prefix=PREFIX prepend PREFIX to installed program names
1602 --program-suffix=SUFFIX append SUFFIX to installed program names
1603 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1604
1605 X features:
1606 --x-includes=DIR X include files are in DIR
1607 --x-libraries=DIR X library files are in DIR
1608
1609 System types:
1610 --build=BUILD configure for building on BUILD [guessed]
1611 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1612 --target=TARGET configure for building compilers for TARGET [HOST]
1613 _ACEOF
1614 fi
1615
1616 if test -n "$ac_init_help"; then
1617
1618 cat <<\_ACEOF
1619
1620 Optional Features:
1621 --disable-option-checking ignore unrecognized --enable/--with options
1622 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1623 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1624 --enable-maintainer-mode enable make rules and dependencies not useful
1625 (and sometimes confusing) to the casual installer
1626 --enable-plugins Enable support for plugins (defaults no)
1627 --disable-largefile omit support for large files
1628 --disable-dependency-tracking speeds up one-time build
1629 --enable-dependency-tracking do not reject slow dependency extractors
1630 --enable-targets=TARGETS
1631 alternative target configurations
1632 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1633 --disable-gdbcli disable command-line interface (CLI)
1634 --disable-gdbmi disable machine-interface (MI)
1635 --enable-tui enable full-screen terminal user interface (TUI)
1636 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1637 --enable-profiling enable profiling of GDB
1638 --disable-rpath do not hardcode runtime library paths
1639 --enable-werror treat compile warnings as errors
1640 --enable-build-warnings enable build-time compiler warnings if gcc is used
1641 --enable-gdb-build-warnings
1642 enable GDB specific build-time compiler warnings if
1643 gcc is used
1644 --enable-sim link gdb with simulator
1645 --enable-multi-ice build the multi-ice-gdb-server
1646 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1647 is auto)
1648
1649 Optional Packages:
1650 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1651 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1652 --with-separate-debug-dir=PATH
1653 look for global separate debug info in this path
1654 [LIBDIR/debug]
1655 --with-gdb-datadir=PATH look for global separate data files in this path
1656 [DATADIR/gdb]
1657 --with-relocated-sources=PATH
1658 automatically relocate this path for source files
1659 --with-libunwind use libunwind frame unwinding support
1660 --with-curses use the curses library instead of the termcap
1661 library
1662 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1663 --with-bugurl=URL Direct users to URL to report a bug
1664 --with-zlib include zlib support (auto/yes/no) default=auto
1665 --with-libiconv-prefix=DIR
1666 search for libiconv in DIR/include and DIR/lib
1667 --with-iconv-bin=PATH specify where to find the iconv program
1668 --with-system-readline use installed readline library
1669 --with-expat include expat support (auto/yes/no)
1670 --with-gnu-ld assume the C compiler uses GNU ld default=no
1671 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1672 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1673 --with-python[=PYTHON] include python support
1674 (auto/yes/no/<python-program>)
1675 --without-included-regex
1676 don't use included regex; this is the default on
1677 systems with version 2 of the GNU C library (use
1678 with caution on other system)
1679 --with-sysroot[=DIR] search for usr/lib et al within DIR
1680 --with-system-gdbinit=PATH
1681 automatically load a system-wide gdbinit file
1682 --with-tcl directory containing tcl configuration (tclConfig.sh)
1683 --with-tk directory containing tk configuration (tkConfig.sh)
1684 --with-x use the X Window System
1685
1686 Some influential environment variables:
1687 CC C compiler command
1688 CFLAGS C compiler flags
1689 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1690 nonstandard directory <lib dir>
1691 LIBS libraries to pass to the linker, e.g. -l<library>
1692 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1693 you have headers in a nonstandard directory <include dir>
1694 CPP C preprocessor
1695 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1696 the first program found out of: `bison -y', `byacc', `yacc'.
1697 YFLAGS The list of arguments that will be passed by default to $YACC.
1698 This script will default YFLAGS to the empty string to avoid a
1699 default value of `-d' given by some make applications.
1700 XMKMF Path to xmkmf, Makefile generator for X Window System
1701
1702 Use these variables to override the choices made by `configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1704
1705 Report bugs to the package provider.
1706 _ACEOF
1707 ac_status=$?
1708 fi
1709
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1715 continue
1716 ac_builddir=.
1717
1718 case "$ac_dir" in
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 *)
1721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1727 esac ;;
1728 esac
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1733
1734 case $srcdir in
1735 .) # We are building in place.
1736 ac_srcdir=.
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
1740 ac_srcdir=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1743 *) # Relative name.
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1747 esac
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1749
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1753 echo &&
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1756 echo &&
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1758 else
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1760 fi || ac_status=$?
1761 cd "$ac_pwd" || { ac_status=$?; break; }
1762 done
1763 fi
1764
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1767 cat <<\_ACEOF
1768 configure
1769 generated by GNU Autoconf 2.64
1770
1771 Copyright (C) 2009 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1774 _ACEOF
1775 exit
1776 fi
1777
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1781
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1797 ac_status=$?
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1802 fi
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814 fi
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1816 return $ac_retval
1817
1818 } # ac_fn_c_try_compile
1819
1820 # ac_fn_c_try_cpp LINENO
1821 # ----------------------
1822 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_c_try_cpp ()
1824 {
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_cpp conftest.$ac_ext"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } >/dev/null && {
1842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 }; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=1
1851 fi
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
1854
1855 } # ac_fn_c_try_cpp
1856
1857 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1858 # -------------------------------------------------------
1859 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1860 # the include files in INCLUDES and setting the cache variable VAR
1861 # accordingly.
1862 ac_fn_c_check_header_mongrel ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1869 $as_echo_n "(cached) " >&6
1870 fi
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 else
1875 # Is the header compilable?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1877 $as_echo_n "checking $2 usability... " >&6; }
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h. */
1880 $4
1881 #include <$2>
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_header_compiler=yes
1885 else
1886 ac_header_compiler=no
1887 fi
1888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1890 $as_echo "$ac_header_compiler" >&6; }
1891
1892 # Is the header present?
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1894 $as_echo_n "checking $2 presence... " >&6; }
1895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1896 /* end confdefs.h. */
1897 #include <$2>
1898 _ACEOF
1899 if ac_fn_c_try_cpp "$LINENO"; then :
1900 ac_header_preproc=yes
1901 else
1902 ac_header_preproc=no
1903 fi
1904 rm -f conftest.err conftest.$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1906 $as_echo "$ac_header_preproc" >&6; }
1907
1908 # So? What about this header?
1909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1910 yes:no: )
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1912 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1914 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915 ;;
1916 no:yes:* )
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1918 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1920 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1922 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1924 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1926 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927 ;;
1928 esac
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1932 $as_echo_n "(cached) " >&6
1933 else
1934 eval "$3=\$ac_header_compiler"
1935 fi
1936 eval ac_res=\$$3
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938 $as_echo "$ac_res" >&6; }
1939 fi
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941
1942 } # ac_fn_c_check_header_mongrel
1943
1944 # ac_fn_c_try_run LINENO
1945 # ----------------------
1946 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1947 # that executables *can* be run.
1948 ac_fn_c_try_run ()
1949 {
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 if { { ac_try="$ac_link"
1952 case "(($ac_try" in
1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954 *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958 (eval "$ac_link") 2>&5
1959 ac_status=$?
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1962 { { case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_try") 2>&5
1969 ac_status=$?
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; }; }; then :
1972 ac_retval=0
1973 else
1974 $as_echo "$as_me: program exited with status $ac_status" >&5
1975 $as_echo "$as_me: failed program was:" >&5
1976 sed 's/^/| /' conftest.$ac_ext >&5
1977
1978 ac_retval=$ac_status
1979 fi
1980 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982 return $ac_retval
1983
1984 } # ac_fn_c_try_run
1985
1986 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1987 # -------------------------------------------------------
1988 # Tests whether HEADER exists and can be compiled using the include files in
1989 # INCLUDES, setting the cache variable VAR accordingly.
1990 ac_fn_c_check_header_compile ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 #include <$2>
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 eval "$3=yes"
2005 else
2006 eval "$3=no"
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 fi
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014
2015 } # ac_fn_c_check_header_compile
2016
2017 # ac_fn_c_try_link LINENO
2018 # -----------------------
2019 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 ac_fn_c_try_link ()
2021 {
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 rm -f conftest.$ac_objext conftest$ac_exeext
2024 if { { ac_try="$ac_link"
2025 case "(($ac_try" in
2026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2027 *) ac_try_echo=$ac_try;;
2028 esac
2029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2030 $as_echo "$ac_try_echo"; } >&5
2031 (eval "$ac_link") 2>conftest.err
2032 ac_status=$?
2033 if test -s conftest.err; then
2034 grep -v '^ *+' conftest.err >conftest.er1
2035 cat conftest.er1 >&5
2036 mv -f conftest.er1 conftest.err
2037 fi
2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2039 test $ac_status = 0; } && {
2040 test -z "$ac_c_werror_flag" ||
2041 test ! -s conftest.err
2042 } && test -s conftest$ac_exeext && {
2043 test "$cross_compiling" = yes ||
2044 $as_test_x conftest$ac_exeext
2045 }; then :
2046 ac_retval=0
2047 else
2048 $as_echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2050
2051 ac_retval=1
2052 fi
2053 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2054 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2055 # interfere with the next link command; also delete a directory that is
2056 # left behind by Apple's compiler. We do this before executing the actions.
2057 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059 return $ac_retval
2060
2061 } # ac_fn_c_try_link
2062
2063 # ac_fn_c_check_func LINENO FUNC VAR
2064 # ----------------------------------
2065 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2066 ac_fn_c_check_func ()
2067 {
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2072 $as_echo_n "(cached) " >&6
2073 else
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2078 #define $2 innocuous_$2
2079
2080 /* System header to define __stub macros and hopefully few prototypes,
2081 which can conflict with char $2 (); below.
2082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2083 <limits.h> exists even on freestanding compilers. */
2084
2085 #ifdef __STDC__
2086 # include <limits.h>
2087 #else
2088 # include <assert.h>
2089 #endif
2090
2091 #undef $2
2092
2093 /* Override any GCC internal prototype to avoid an error.
2094 Use char because int might match the return type of a GCC
2095 builtin and then its argument prototype would still apply. */
2096 #ifdef __cplusplus
2097 extern "C"
2098 #endif
2099 char $2 ();
2100 /* The GNU C library defines this for functions which it implements
2101 to always fail with ENOSYS. Some functions are actually named
2102 something starting with __ and the normal name is an alias. */
2103 #if defined __stub_$2 || defined __stub___$2
2104 choke me
2105 #endif
2106
2107 int
2108 main ()
2109 {
2110 return $2 ();
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_link "$LINENO"; then :
2116 eval "$3=yes"
2117 else
2118 eval "$3=no"
2119 fi
2120 rm -f core conftest.err conftest.$ac_objext \
2121 conftest$ac_exeext conftest.$ac_ext
2122 fi
2123 eval ac_res=\$$3
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2125 $as_echo "$ac_res" >&6; }
2126 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2127
2128 } # ac_fn_c_check_func
2129
2130 # ac_fn_c_check_decl LINENO SYMBOL VAR
2131 # ------------------------------------
2132 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2133 ac_fn_c_check_decl ()
2134 {
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 as_decl_name=`echo $2|sed 's/ *(.*//'`
2137 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2139 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2140 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2145 $4
2146 int
2147 main ()
2148 {
2149 #ifndef $as_decl_name
2150 #ifdef __cplusplus
2151 (void) $as_decl_use;
2152 #else
2153 (void) $as_decl_name;
2154 #endif
2155 #endif
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 eval "$3=yes"
2163 else
2164 eval "$3=no"
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167 fi
2168 eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170 $as_echo "$ac_res" >&6; }
2171 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2172
2173 } # ac_fn_c_check_decl
2174
2175 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2176 # --------------------------------------------
2177 # Tries to find the compile-time value of EXPR in a program that includes
2178 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2179 # computed
2180 ac_fn_c_compute_int ()
2181 {
2182 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2183 if test "$cross_compiling" = yes; then
2184 # Depending upon the size, compute the lo and hi bounds.
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2187 $4
2188 int
2189 main ()
2190 {
2191 static int test_array [1 - 2 * !(($2) >= 0)];
2192 test_array [0] = 0
2193
2194 ;
2195 return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199 ac_lo=0 ac_mid=0
2200 while :; do
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 $4
2204 int
2205 main ()
2206 {
2207 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2208 test_array [0] = 0
2209
2210 ;
2211 return 0;
2212 }
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_hi=$ac_mid; break
2216 else
2217 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2218 if test $ac_lo -le $ac_mid; then
2219 ac_lo= ac_hi=
2220 break
2221 fi
2222 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2223 fi
2224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 done
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2229 $4
2230 int
2231 main ()
2232 {
2233 static int test_array [1 - 2 * !(($2) < 0)];
2234 test_array [0] = 0
2235
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 ac_hi=-1 ac_mid=-1
2242 while :; do
2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244 /* end confdefs.h. */
2245 $4
2246 int
2247 main ()
2248 {
2249 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2250 test_array [0] = 0
2251
2252 ;
2253 return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257 ac_lo=$ac_mid; break
2258 else
2259 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2260 if test $ac_mid -le $ac_hi; then
2261 ac_lo= ac_hi=
2262 break
2263 fi
2264 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2265 fi
2266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 done
2268 else
2269 ac_lo= ac_hi=
2270 fi
2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2272 fi
2273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2274 # Binary search between lo and hi bounds.
2275 while test "x$ac_lo" != "x$ac_hi"; do
2276 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 $4
2280 int
2281 main ()
2282 {
2283 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2284 test_array [0] = 0
2285
2286 ;
2287 return 0;
2288 }
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291 ac_hi=$ac_mid
2292 else
2293 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 done
2297 case $ac_lo in #((
2298 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2299 '') ac_retval=1 ;;
2300 esac
2301 else
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h. */
2304 $4
2305 static long int longval () { return $2; }
2306 static unsigned long int ulongval () { return $2; }
2307 #include <stdio.h>
2308 #include <stdlib.h>
2309 int
2310 main ()
2311 {
2312
2313 FILE *f = fopen ("conftest.val", "w");
2314 if (! f)
2315 return 1;
2316 if (($2) < 0)
2317 {
2318 long int i = longval ();
2319 if (i != ($2))
2320 return 1;
2321 fprintf (f, "%ld", i);
2322 }
2323 else
2324 {
2325 unsigned long int i = ulongval ();
2326 if (i != ($2))
2327 return 1;
2328 fprintf (f, "%lu", i);
2329 }
2330 /* Do not output a trailing newline, as this causes \r\n confusion
2331 on some platforms. */
2332 return ferror (f) || fclose (f) != 0;
2333
2334 ;
2335 return 0;
2336 }
2337 _ACEOF
2338 if ac_fn_c_try_run "$LINENO"; then :
2339 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2340 else
2341 ac_retval=1
2342 fi
2343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2344 conftest.$ac_objext conftest.beam conftest.$ac_ext
2345 rm -f conftest.val
2346
2347 fi
2348 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349 return $ac_retval
2350
2351 } # ac_fn_c_compute_int
2352
2353 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2354 # ----------------------------------------------------
2355 # Tries to find if the field MEMBER exists in type AGGR, after including
2356 # INCLUDES, setting cache variable VAR accordingly.
2357 ac_fn_c_check_member ()
2358 {
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2361 $as_echo_n "checking for $2.$3... " >&6; }
2362 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2363 $as_echo_n "(cached) " >&6
2364 else
2365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2367 $5
2368 int
2369 main ()
2370 {
2371 static $2 ac_aggr;
2372 if (ac_aggr.$3)
2373 return 0;
2374 ;
2375 return 0;
2376 }
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379 eval "$4=yes"
2380 else
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2383 $5
2384 int
2385 main ()
2386 {
2387 static $2 ac_aggr;
2388 if (sizeof ac_aggr.$3)
2389 return 0;
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 if ac_fn_c_try_compile "$LINENO"; then :
2395 eval "$4=yes"
2396 else
2397 eval "$4=no"
2398 fi
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 fi
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 fi
2403 eval ac_res=\$$4
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407
2408 } # ac_fn_c_check_member
2409
2410 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2411 # -------------------------------------------
2412 # Tests whether TYPE exists after having included INCLUDES, setting cache
2413 # variable VAR accordingly.
2414 ac_fn_c_check_type ()
2415 {
2416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2420 $as_echo_n "(cached) " >&6
2421 else
2422 eval "$3=no"
2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424 /* end confdefs.h. */
2425 $4
2426 int
2427 main ()
2428 {
2429 if (sizeof ($2))
2430 return 0;
2431 ;
2432 return 0;
2433 }
2434 _ACEOF
2435 if ac_fn_c_try_compile "$LINENO"; then :
2436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2438 $4
2439 int
2440 main ()
2441 {
2442 if (sizeof (($2)))
2443 return 0;
2444 ;
2445 return 0;
2446 }
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449
2450 else
2451 eval "$3=yes"
2452 fi
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 fi
2457 eval ac_res=\$$3
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2459 $as_echo "$ac_res" >&6; }
2460 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2461
2462 } # ac_fn_c_check_type
2463 cat >config.log <<_ACEOF
2464 This file contains any messages produced by compilers while
2465 running configure, to aid debugging if configure makes a mistake.
2466
2467 It was created by $as_me, which was
2468 generated by GNU Autoconf 2.64. Invocation command line was
2469
2470 $ $0 $@
2471
2472 _ACEOF
2473 exec 5>>config.log
2474 {
2475 cat <<_ASUNAME
2476 ## --------- ##
2477 ## Platform. ##
2478 ## --------- ##
2479
2480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2485
2486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2488
2489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2496
2497 _ASUNAME
2498
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 $as_echo "PATH: $as_dir"
2505 done
2506 IFS=$as_save_IFS
2507
2508 } >&5
2509
2510 cat >&5 <<_ACEOF
2511
2512
2513 ## ----------- ##
2514 ## Core tests. ##
2515 ## ----------- ##
2516
2517 _ACEOF
2518
2519
2520 # Keep a trace of the command line.
2521 # Strip out --no-create and --no-recursion so they do not pile up.
2522 # Strip out --silent because we don't want to record it for future runs.
2523 # Also quote any args containing shell meta-characters.
2524 # Make two passes to allow for proper duplicate-argument suppression.
2525 ac_configure_args=
2526 ac_configure_args0=
2527 ac_configure_args1=
2528 ac_must_keep_next=false
2529 for ac_pass in 1 2
2530 do
2531 for ac_arg
2532 do
2533 case $ac_arg in
2534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2536 | -silent | --silent | --silen | --sile | --sil)
2537 continue ;;
2538 *\'*)
2539 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2540 esac
2541 case $ac_pass in
2542 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2543 2)
2544 as_fn_append ac_configure_args1 " '$ac_arg'"
2545 if test $ac_must_keep_next = true; then
2546 ac_must_keep_next=false # Got value, back to normal.
2547 else
2548 case $ac_arg in
2549 *=* | --config-cache | -C | -disable-* | --disable-* \
2550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2552 | -with-* | --with-* | -without-* | --without-* | --x)
2553 case "$ac_configure_args0 " in
2554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2555 esac
2556 ;;
2557 -* ) ac_must_keep_next=true ;;
2558 esac
2559 fi
2560 as_fn_append ac_configure_args " '$ac_arg'"
2561 ;;
2562 esac
2563 done
2564 done
2565 { ac_configure_args0=; unset ac_configure_args0;}
2566 { ac_configure_args1=; unset ac_configure_args1;}
2567
2568 # When interrupted or exit'd, cleanup temporary files, and complete
2569 # config.log. We remove comments because anyway the quotes in there
2570 # would cause problems or look ugly.
2571 # WARNING: Use '\'' to represent an apostrophe within the trap.
2572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2573 trap 'exit_status=$?
2574 # Save into config.log some information that might help in debugging.
2575 {
2576 echo
2577
2578 cat <<\_ASBOX
2579 ## ---------------- ##
2580 ## Cache variables. ##
2581 ## ---------------- ##
2582 _ASBOX
2583 echo
2584 # The following way of writing the cache mishandles newlines in values,
2585 (
2586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2587 eval ac_val=\$$ac_var
2588 case $ac_val in #(
2589 *${as_nl}*)
2590 case $ac_var in #(
2591 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2592 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2593 esac
2594 case $ac_var in #(
2595 _ | IFS | as_nl) ;; #(
2596 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2597 *) { eval $ac_var=; unset $ac_var;} ;;
2598 esac ;;
2599 esac
2600 done
2601 (set) 2>&1 |
2602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2603 *${as_nl}ac_space=\ *)
2604 sed -n \
2605 "s/'\''/'\''\\\\'\'''\''/g;
2606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2607 ;; #(
2608 *)
2609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2610 ;;
2611 esac |
2612 sort
2613 )
2614 echo
2615
2616 cat <<\_ASBOX
2617 ## ----------------- ##
2618 ## Output variables. ##
2619 ## ----------------- ##
2620 _ASBOX
2621 echo
2622 for ac_var in $ac_subst_vars
2623 do
2624 eval ac_val=\$$ac_var
2625 case $ac_val in
2626 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2627 esac
2628 $as_echo "$ac_var='\''$ac_val'\''"
2629 done | sort
2630 echo
2631
2632 if test -n "$ac_subst_files"; then
2633 cat <<\_ASBOX
2634 ## ------------------- ##
2635 ## File substitutions. ##
2636 ## ------------------- ##
2637 _ASBOX
2638 echo
2639 for ac_var in $ac_subst_files
2640 do
2641 eval ac_val=\$$ac_var
2642 case $ac_val in
2643 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2644 esac
2645 $as_echo "$ac_var='\''$ac_val'\''"
2646 done | sort
2647 echo
2648 fi
2649
2650 if test -s confdefs.h; then
2651 cat <<\_ASBOX
2652 ## ----------- ##
2653 ## confdefs.h. ##
2654 ## ----------- ##
2655 _ASBOX
2656 echo
2657 cat confdefs.h
2658 echo
2659 fi
2660 test "$ac_signal" != 0 &&
2661 $as_echo "$as_me: caught signal $ac_signal"
2662 $as_echo "$as_me: exit $exit_status"
2663 } >&5
2664 rm -f core *.core core.conftest.* &&
2665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2666 exit $exit_status
2667 ' 0
2668 for ac_signal in 1 2 13 15; do
2669 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2670 done
2671 ac_signal=0
2672
2673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2674 rm -f -r conftest* confdefs.h
2675
2676 $as_echo "/* confdefs.h */" > confdefs.h
2677
2678 # Predefined preprocessor variables.
2679
2680 cat >>confdefs.h <<_ACEOF
2681 #define PACKAGE_NAME "$PACKAGE_NAME"
2682 _ACEOF
2683
2684 cat >>confdefs.h <<_ACEOF
2685 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2686 _ACEOF
2687
2688 cat >>confdefs.h <<_ACEOF
2689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2690 _ACEOF
2691
2692 cat >>confdefs.h <<_ACEOF
2693 #define PACKAGE_STRING "$PACKAGE_STRING"
2694 _ACEOF
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2698 _ACEOF
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define PACKAGE_URL "$PACKAGE_URL"
2702 _ACEOF
2703
2704
2705 # Let the site file select an alternate cache file if it wants to.
2706 # Prefer an explicitly selected file to automatically selected ones.
2707 ac_site_file1=NONE
2708 ac_site_file2=NONE
2709 if test -n "$CONFIG_SITE"; then
2710 ac_site_file1=$CONFIG_SITE
2711 elif test "x$prefix" != xNONE; then
2712 ac_site_file1=$prefix/share/config.site
2713 ac_site_file2=$prefix/etc/config.site
2714 else
2715 ac_site_file1=$ac_default_prefix/share/config.site
2716 ac_site_file2=$ac_default_prefix/etc/config.site
2717 fi
2718 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2719 do
2720 test "x$ac_site_file" = xNONE && continue
2721 if test -r "$ac_site_file"; then
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2723 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2724 sed 's/^/| /' "$ac_site_file" >&5
2725 . "$ac_site_file"
2726 fi
2727 done
2728
2729 if test -r "$cache_file"; then
2730 # Some versions of bash will fail to source /dev/null (special
2731 # files actually), so we avoid doing that.
2732 if test -f "$cache_file"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2734 $as_echo "$as_me: loading cache $cache_file" >&6;}
2735 case $cache_file in
2736 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2737 *) . "./$cache_file";;
2738 esac
2739 fi
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2742 $as_echo "$as_me: creating cache $cache_file" >&6;}
2743 >$cache_file
2744 fi
2745
2746 gl_header_list="$gl_header_list sys/mman.h"
2747 gl_func_list="$gl_func_list mprotect"
2748 gl_func_list="$gl_func_list memchr"
2749 gl_header_list="$gl_header_list stddef.h"
2750 gl_header_list="$gl_header_list stdint.h"
2751 gl_header_list="$gl_header_list wchar.h"
2752 gl_header_list="$gl_header_list string.h"
2753 # Check that the precious variables saved in the cache have kept the same
2754 # value.
2755 ac_cache_corrupted=false
2756 for ac_var in $ac_precious_vars; do
2757 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2758 eval ac_new_set=\$ac_env_${ac_var}_set
2759 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2760 eval ac_new_val=\$ac_env_${ac_var}_value
2761 case $ac_old_set,$ac_new_set in
2762 set,)
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2764 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2765 ac_cache_corrupted=: ;;
2766 ,set)
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2768 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2769 ac_cache_corrupted=: ;;
2770 ,);;
2771 *)
2772 if test "x$ac_old_val" != "x$ac_new_val"; then
2773 # differences in whitespace do not lead to failure.
2774 ac_old_val_w=`echo x $ac_old_val`
2775 ac_new_val_w=`echo x $ac_new_val`
2776 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2778 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2779 ac_cache_corrupted=:
2780 else
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2782 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2783 eval $ac_var=\$ac_old_val
2784 fi
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2786 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2788 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2789 fi;;
2790 esac
2791 # Pass precious variables to config.status.
2792 if test "$ac_new_set" = set; then
2793 case $ac_new_val in
2794 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2795 *) ac_arg=$ac_var=$ac_new_val ;;
2796 esac
2797 case " $ac_configure_args " in
2798 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2799 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2800 esac
2801 fi
2802 done
2803 if $ac_cache_corrupted; then
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2807 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2808 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2809 fi
2810 ## -------------------- ##
2811 ## Main body of script. ##
2812 ## -------------------- ##
2813
2814 ac_ext=c
2815 ac_cpp='$CPP $CPPFLAGS'
2816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819
2820
2821
2822
2823
2824 ac_config_headers="$ac_config_headers config.h:config.in"
2825
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2828 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2829 # Check whether --enable-maintainer-mode was given.
2830 if test "${enable_maintainer_mode+set}" = set; then :
2831 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2832 else
2833 USE_MAINTAINER_MODE=no
2834 fi
2835
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2837 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2838 if test $USE_MAINTAINER_MODE = yes; then
2839 MAINTAINER_MODE_TRUE=
2840 MAINTAINER_MODE_FALSE='#'
2841 else
2842 MAINTAINER_MODE_TRUE='#'
2843 MAINTAINER_MODE_FALSE=
2844 fi
2845
2846 MAINT=$MAINTAINER_MODE_TRUE
2847
2848
2849
2850 ac_ext=c
2851 ac_cpp='$CPP $CPPFLAGS'
2852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2857 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859 $as_echo_n "checking for $ac_word... " >&6; }
2860 if test "${ac_cv_prog_CC+set}" = set; then :
2861 $as_echo_n "(cached) " >&6
2862 else
2863 if test -n "$CC"; then
2864 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 else
2866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867 for as_dir in $PATH
2868 do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2873 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879 IFS=$as_save_IFS
2880
2881 fi
2882 fi
2883 CC=$ac_cv_prog_CC
2884 if test -n "$CC"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2886 $as_echo "$CC" >&6; }
2887 else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889 $as_echo "no" >&6; }
2890 fi
2891
2892
2893 fi
2894 if test -z "$ac_cv_prog_CC"; then
2895 ac_ct_CC=$CC
2896 # Extract the first word of "gcc", so it can be a program name with args.
2897 set dummy gcc; ac_word=$2
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899 $as_echo_n "checking for $ac_word... " >&6; }
2900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2901 $as_echo_n "(cached) " >&6
2902 else
2903 if test -n "$ac_ct_CC"; then
2904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913 ac_cv_prog_ac_ct_CC="gcc"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2924 if test -n "$ac_ct_CC"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2926 $as_echo "$ac_ct_CC" >&6; }
2927 else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929 $as_echo "no" >&6; }
2930 fi
2931
2932 if test "x$ac_ct_CC" = x; then
2933 CC=""
2934 else
2935 case $cross_compiling:$ac_tool_warned in
2936 yes:)
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939 ac_tool_warned=yes ;;
2940 esac
2941 CC=$ac_ct_CC
2942 fi
2943 else
2944 CC="$ac_cv_prog_CC"
2945 fi
2946
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}cc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC="${ac_tool_prefix}cc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985
2986 fi
2987 fi
2988 if test -z "$CC"; then
2989 # Extract the first word of "cc", so it can be a program name with args.
2990 set dummy cc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 ac_prog_rejected=no
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003 IFS=$as_save_IFS
3004 test -z "$as_dir" && as_dir=.
3005 for ac_exec_ext in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3008 ac_prog_rejected=yes
3009 continue
3010 fi
3011 ac_cv_prog_CC="cc"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015 done
3016 done
3017 IFS=$as_save_IFS
3018
3019 if test $ac_prog_rejected = yes; then
3020 # We found a bogon in the path, so make sure we never use it.
3021 set dummy $ac_cv_prog_CC
3022 shift
3023 if test $# != 0; then
3024 # We chose a different compiler from the bogus one.
3025 # However, it has the same basename, so the bogon will be chosen
3026 # first if we set CC to just the basename; use the full file name.
3027 shift
3028 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3029 fi
3030 fi
3031 fi
3032 fi
3033 CC=$ac_cv_prog_CC
3034 if test -n "$CC"; then
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3036 $as_echo "$CC" >&6; }
3037 else
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043 fi
3044 if test -z "$CC"; then
3045 if test -n "$ac_tool_prefix"; then
3046 for ac_prog in cl.exe
3047 do
3048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if test "${ac_cv_prog_CC+set}" = set; then :
3053 $as_echo_n "(cached) " >&6
3054 else
3055 if test -n "$CC"; then
3056 ac_cv_prog_CC="$CC" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_exec_ext in '' $ac_executable_extensions; do
3064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3065 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 break 2
3068 fi
3069 done
3070 done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 CC=$ac_cv_prog_CC
3076 if test -n "$CC"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3078 $as_echo "$CC" >&6; }
3079 else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084
3085 test -n "$CC" && break
3086 done
3087 fi
3088 if test -z "$CC"; then
3089 ac_ct_CC=$CC
3090 for ac_prog in cl.exe
3091 do
3092 # Extract the first word of "$ac_prog", so it can be a program name with args.
3093 set dummy $ac_prog; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 if test -n "$ac_ct_CC"; then
3100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3101 else
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3103 for as_dir in $PATH
3104 do
3105 IFS=$as_save_IFS
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3109 ac_cv_prog_ac_ct_CC="$ac_prog"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3111 break 2
3112 fi
3113 done
3114 done
3115 IFS=$as_save_IFS
3116
3117 fi
3118 fi
3119 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3120 if test -n "$ac_ct_CC"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3122 $as_echo "$ac_ct_CC" >&6; }
3123 else
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3126 fi
3127
3128
3129 test -n "$ac_ct_CC" && break
3130 done
3131
3132 if test "x$ac_ct_CC" = x; then
3133 CC=""
3134 else
3135 case $cross_compiling:$ac_tool_warned in
3136 yes:)
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3139 ac_tool_warned=yes ;;
3140 esac
3141 CC=$ac_ct_CC
3142 fi
3143 fi
3144
3145 fi
3146
3147
3148 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error "no acceptable C compiler found in \$PATH
3151 See \`config.log' for more details." "$LINENO" 5; }
3152
3153 # Provide some information about the compiler.
3154 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3155 set X $ac_compile
3156 ac_compiler=$2
3157 for ac_option in --version -v -V -qversion; do
3158 { { ac_try="$ac_compiler $ac_option >&5"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3166 ac_status=$?
3167 if test -s conftest.err; then
3168 sed '10a\
3169 ... rest of stderr output deleted ...
3170 10q' conftest.err >conftest.er1
3171 cat conftest.er1 >&5
3172 rm -f conftest.er1 conftest.err
3173 fi
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }
3176 done
3177
3178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3179 /* end confdefs.h. */
3180
3181 int
3182 main ()
3183 {
3184
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 ac_clean_files_save=$ac_clean_files
3190 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3191 # Try to create an executable without -o first, disregard a.out.
3192 # It will help us diagnose broken compilers, and finding out an intuition
3193 # of exeext.
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3195 $as_echo_n "checking for C compiler default output file name... " >&6; }
3196 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3197
3198 # The possible output files:
3199 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3200
3201 ac_rmfiles=
3202 for ac_file in $ac_files
3203 do
3204 case $ac_file in
3205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3206 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3207 esac
3208 done
3209 rm -f $ac_rmfiles
3210
3211 if { { ac_try="$ac_link_default"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217 $as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_link_default") 2>&5
3219 ac_status=$?
3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3221 test $ac_status = 0; }; then :
3222 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3223 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3224 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3225 # so that the user can short-circuit this test for compilers unknown to
3226 # Autoconf.
3227 for ac_file in $ac_files ''
3228 do
3229 test -f "$ac_file" || continue
3230 case $ac_file in
3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3232 ;;
3233 [ab].out )
3234 # We found the default executable, but exeext='' is most
3235 # certainly right.
3236 break;;
3237 *.* )
3238 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3239 then :; else
3240 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 fi
3242 # We set ac_cv_exeext here because the later test for it is not
3243 # safe: cross compilers may not add the suffix if given an `-o'
3244 # argument, so we may need to know it at that point already.
3245 # Even if this section looks crufty: it has the advantage of
3246 # actually working.
3247 break;;
3248 * )
3249 break;;
3250 esac
3251 done
3252 test "$ac_cv_exeext" = no && ac_cv_exeext=
3253
3254 else
3255 ac_file=''
3256 fi
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3258 $as_echo "$ac_file" >&6; }
3259 if test -z "$ac_file"; then :
3260 $as_echo "$as_me: failed program was:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3262
3263 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3265 { as_fn_set_status 77
3266 as_fn_error "C compiler cannot create executables
3267 See \`config.log' for more details." "$LINENO" 5; }; }
3268 fi
3269 ac_exeext=$ac_cv_exeext
3270
3271 # Check that the compiler produces executables we can run. If not, either
3272 # the compiler is broken, or we cross compile.
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3274 $as_echo_n "checking whether the C compiler works... " >&6; }
3275 # If not cross compiling, check that we can run a simple program.
3276 if test "$cross_compiling" != yes; then
3277 if { ac_try='./$ac_file'
3278 { { case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_try") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; }; then
3288 cross_compiling=no
3289 else
3290 if test "$cross_compiling" = maybe; then
3291 cross_compiling=yes
3292 else
3293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295 as_fn_error "cannot run C compiled programs.
3296 If you meant to cross compile, use \`--host'.
3297 See \`config.log' for more details." "$LINENO" 5; }
3298 fi
3299 fi
3300 fi
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302 $as_echo "yes" >&6; }
3303
3304 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3305 ac_clean_files=$ac_clean_files_save
3306 # Check that the compiler produces executables we can run. If not, either
3307 # the compiler is broken, or we cross compile.
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3309 $as_echo_n "checking whether we are cross compiling... " >&6; }
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3311 $as_echo "$cross_compiling" >&6; }
3312
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3314 $as_echo_n "checking for suffix of executables... " >&6; }
3315 if { { ac_try="$ac_link"
3316 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319 esac
3320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_link") 2>&5
3323 ac_status=$?
3324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
3326 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3327 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3328 # work properly (i.e., refer to `conftest.exe'), while it won't with
3329 # `rm'.
3330 for ac_file in conftest.exe conftest conftest.*; do
3331 test -f "$ac_file" || continue
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 break;;
3336 * ) break;;
3337 esac
3338 done
3339 else
3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3342 as_fn_error "cannot compute suffix of executables: cannot compile and link
3343 See \`config.log' for more details." "$LINENO" 5; }
3344 fi
3345 rm -f conftest$ac_cv_exeext
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3347 $as_echo "$ac_cv_exeext" >&6; }
3348
3349 rm -f conftest.$ac_ext
3350 EXEEXT=$ac_cv_exeext
3351 ac_exeext=$EXEEXT
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3353 $as_echo_n "checking for suffix of object files... " >&6; }
3354 if test "${ac_cv_objext+set}" = set; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3359
3360 int
3361 main ()
3362 {
3363
3364 ;
3365 return 0;
3366 }
3367 _ACEOF
3368 rm -f conftest.o conftest.obj
3369 if { { ac_try="$ac_compile"
3370 case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373 esac
3374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375 $as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_compile") 2>&5
3377 ac_status=$?
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; then :
3380 for ac_file in conftest.o conftest.obj conftest.*; do
3381 test -f "$ac_file" || continue;
3382 case $ac_file in
3383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3384 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3385 break;;
3386 esac
3387 done
3388 else
3389 $as_echo "$as_me: failed program was:" >&5
3390 sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error "cannot compute suffix of object files: cannot compile
3395 See \`config.log' for more details." "$LINENO" 5; }
3396 fi
3397 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3400 $as_echo "$ac_cv_objext" >&6; }
3401 OBJEXT=$ac_cv_objext
3402 ac_objext=$OBJEXT
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3404 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3405 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3406 $as_echo_n "(cached) " >&6
3407 else
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3410
3411 int
3412 main ()
3413 {
3414 #ifndef __GNUC__
3415 choke me
3416 #endif
3417
3418 ;
3419 return 0;
3420 }
3421 _ACEOF
3422 if ac_fn_c_try_compile "$LINENO"; then :
3423 ac_compiler_gnu=yes
3424 else
3425 ac_compiler_gnu=no
3426 fi
3427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3429
3430 fi
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3432 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3433 if test $ac_compiler_gnu = yes; then
3434 GCC=yes
3435 else
3436 GCC=
3437 fi
3438 ac_test_CFLAGS=${CFLAGS+set}
3439 ac_save_CFLAGS=$CFLAGS
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3441 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3442 if test "${ac_cv_prog_cc_g+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 ac_save_c_werror_flag=$ac_c_werror_flag
3446 ac_c_werror_flag=yes
3447 ac_cv_prog_cc_g=no
3448 CFLAGS="-g"
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451
3452 int
3453 main ()
3454 {
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_cv_prog_cc_g=yes
3462 else
3463 CFLAGS=""
3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466
3467 int
3468 main ()
3469 {
3470
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 if ac_fn_c_try_compile "$LINENO"; then :
3476
3477 else
3478 ac_c_werror_flag=$ac_save_c_werror_flag
3479 CFLAGS="-g"
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3482
3483 int
3484 main ()
3485 {
3486
3487 ;
3488 return 0;
3489 }
3490 _ACEOF
3491 if ac_fn_c_try_compile "$LINENO"; then :
3492 ac_cv_prog_cc_g=yes
3493 fi
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 fi
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 ac_c_werror_flag=$ac_save_c_werror_flag
3500 fi
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3502 $as_echo "$ac_cv_prog_cc_g" >&6; }
3503 if test "$ac_test_CFLAGS" = set; then
3504 CFLAGS=$ac_save_CFLAGS
3505 elif test $ac_cv_prog_cc_g = yes; then
3506 if test "$GCC" = yes; then
3507 CFLAGS="-g -O2"
3508 else
3509 CFLAGS="-g"
3510 fi
3511 else
3512 if test "$GCC" = yes; then
3513 CFLAGS="-O2"
3514 else
3515 CFLAGS=
3516 fi
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3519 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3520 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3521 $as_echo_n "(cached) " >&6
3522 else
3523 ac_cv_prog_cc_c89=no
3524 ac_save_CC=$CC
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527 #include <stdarg.h>
3528 #include <stdio.h>
3529 #include <sys/types.h>
3530 #include <sys/stat.h>
3531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3532 struct buf { int x; };
3533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3534 static char *e (p, i)
3535 char **p;
3536 int i;
3537 {
3538 return p[i];
3539 }
3540 static char *f (char * (*g) (char **, int), char **p, ...)
3541 {
3542 char *s;
3543 va_list v;
3544 va_start (v,p);
3545 s = g (p, va_arg (v,int));
3546 va_end (v);
3547 return s;
3548 }
3549
3550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3551 function prototypes and stuff, but not '\xHH' hex character constants.
3552 These don't provoke an error unfortunately, instead are silently treated
3553 as 'x'. The following induces an error, until -std is added to get
3554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3555 array size at least. It's necessary to write '\x00'==0 to get something
3556 that's true only with -std. */
3557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3558
3559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3560 inside strings and character constants. */
3561 #define FOO(x) 'x'
3562 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3563
3564 int test (int i, double x);
3565 struct s1 {int (*f) (int a);};
3566 struct s2 {int (*f) (double a);};
3567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3568 int argc;
3569 char **argv;
3570 int
3571 main ()
3572 {
3573 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3579 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3580 do
3581 CC="$ac_save_CC $ac_arg"
3582 if ac_fn_c_try_compile "$LINENO"; then :
3583 ac_cv_prog_cc_c89=$ac_arg
3584 fi
3585 rm -f core conftest.err conftest.$ac_objext
3586 test "x$ac_cv_prog_cc_c89" != "xno" && break
3587 done
3588 rm -f conftest.$ac_ext
3589 CC=$ac_save_CC
3590
3591 fi
3592 # AC_CACHE_VAL
3593 case "x$ac_cv_prog_cc_c89" in
3594 x)
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3596 $as_echo "none needed" >&6; } ;;
3597 xno)
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3599 $as_echo "unsupported" >&6; } ;;
3600 *)
3601 CC="$CC $ac_cv_prog_cc_c89"
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3603 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3604 esac
3605 if test "x$ac_cv_prog_cc_c89" != xno; then :
3606
3607 fi
3608
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615 ac_aux_dir=
3616 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3617 for ac_t in install-sh install.sh shtool; do
3618 if test -f "$ac_dir/$ac_t"; then
3619 ac_aux_dir=$ac_dir
3620 ac_install_sh="$ac_aux_dir/$ac_t -c"
3621 break 2
3622 fi
3623 done
3624 done
3625 if test -z "$ac_aux_dir"; then
3626 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3627 fi
3628
3629 # These three variables are undocumented and unsupported,
3630 # and are intended to be withdrawn in a future Autoconf release.
3631 # They can cause serious problems if a builder's source tree is in a directory
3632 # whose full name contains unusual characters.
3633 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3634 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3635 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3636
3637
3638 # Make sure we can run config.sub.
3639 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3640 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3641
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3643 $as_echo_n "checking build system type... " >&6; }
3644 if test "${ac_cv_build+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 ac_build_alias=$build_alias
3648 test "x$ac_build_alias" = x &&
3649 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3650 test "x$ac_build_alias" = x &&
3651 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3652 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3653 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3654
3655 fi
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3657 $as_echo "$ac_cv_build" >&6; }
3658 case $ac_cv_build in
3659 *-*-*) ;;
3660 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3661 esac
3662 build=$ac_cv_build
3663 ac_save_IFS=$IFS; IFS='-'
3664 set x $ac_cv_build
3665 shift
3666 build_cpu=$1
3667 build_vendor=$2
3668 shift; shift
3669 # Remember, the first character of IFS is used to create $*,
3670 # except with old shells:
3671 build_os=$*
3672 IFS=$ac_save_IFS
3673 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3674
3675
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3677 $as_echo_n "checking host system type... " >&6; }
3678 if test "${ac_cv_host+set}" = set; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 if test "x$host_alias" = x; then
3682 ac_cv_host=$ac_cv_build
3683 else
3684 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3685 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3686 fi
3687
3688 fi
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3690 $as_echo "$ac_cv_host" >&6; }
3691 case $ac_cv_host in
3692 *-*-*) ;;
3693 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3694 esac
3695 host=$ac_cv_host
3696 ac_save_IFS=$IFS; IFS='-'
3697 set x $ac_cv_host
3698 shift
3699 host_cpu=$1
3700 host_vendor=$2
3701 shift; shift
3702 # Remember, the first character of IFS is used to create $*,
3703 # except with old shells:
3704 host_os=$*
3705 IFS=$ac_save_IFS
3706 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3707
3708
3709
3710 ac_ext=c
3711 ac_cpp='$CPP $CPPFLAGS'
3712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3716 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3717 # On Suns, sometimes $CPP names a directory.
3718 if test -n "$CPP" && test -d "$CPP"; then
3719 CPP=
3720 fi
3721 if test -z "$CPP"; then
3722 if test "${ac_cv_prog_CPP+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 # Double quotes because CPP needs to be expanded
3726 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3727 do
3728 ac_preproc_ok=false
3729 for ac_c_preproc_warn_flag in '' yes
3730 do
3731 # Use a header file that comes with gcc, so configuring glibc
3732 # with a fresh cross-compiler works.
3733 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3734 # <limits.h> exists even on freestanding compilers.
3735 # On the NeXT, cc -E runs the code through the compiler's parser,
3736 # not just through cpp. "Syntax error" is here to catch this case.
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739 #ifdef __STDC__
3740 # include <limits.h>
3741 #else
3742 # include <assert.h>
3743 #endif
3744 Syntax error
3745 _ACEOF
3746 if ac_fn_c_try_cpp "$LINENO"; then :
3747
3748 else
3749 # Broken: fails on valid input.
3750 continue
3751 fi
3752 rm -f conftest.err conftest.$ac_ext
3753
3754 # OK, works on sane cases. Now check whether nonexistent headers
3755 # can be detected and how.
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3758 #include <ac_nonexistent.h>
3759 _ACEOF
3760 if ac_fn_c_try_cpp "$LINENO"; then :
3761 # Broken: success on invalid input.
3762 continue
3763 else
3764 # Passes both tests.
3765 ac_preproc_ok=:
3766 break
3767 fi
3768 rm -f conftest.err conftest.$ac_ext
3769
3770 done
3771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772 rm -f conftest.err conftest.$ac_ext
3773 if $ac_preproc_ok; then :
3774 break
3775 fi
3776
3777 done
3778 ac_cv_prog_CPP=$CPP
3779
3780 fi
3781 CPP=$ac_cv_prog_CPP
3782 else
3783 ac_cv_prog_CPP=$CPP
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3786 $as_echo "$CPP" >&6; }
3787 ac_preproc_ok=false
3788 for ac_c_preproc_warn_flag in '' yes
3789 do
3790 # Use a header file that comes with gcc, so configuring glibc
3791 # with a fresh cross-compiler works.
3792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3793 # <limits.h> exists even on freestanding compilers.
3794 # On the NeXT, cc -E runs the code through the compiler's parser,
3795 # not just through cpp. "Syntax error" is here to catch this case.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #ifdef __STDC__
3799 # include <limits.h>
3800 #else
3801 # include <assert.h>
3802 #endif
3803 Syntax error
3804 _ACEOF
3805 if ac_fn_c_try_cpp "$LINENO"; then :
3806
3807 else
3808 # Broken: fails on valid input.
3809 continue
3810 fi
3811 rm -f conftest.err conftest.$ac_ext
3812
3813 # OK, works on sane cases. Now check whether nonexistent headers
3814 # can be detected and how.
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817 #include <ac_nonexistent.h>
3818 _ACEOF
3819 if ac_fn_c_try_cpp "$LINENO"; then :
3820 # Broken: success on invalid input.
3821 continue
3822 else
3823 # Passes both tests.
3824 ac_preproc_ok=:
3825 break
3826 fi
3827 rm -f conftest.err conftest.$ac_ext
3828
3829 done
3830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3831 rm -f conftest.err conftest.$ac_ext
3832 if $ac_preproc_ok; then :
3833
3834 else
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3838 See \`config.log' for more details." "$LINENO" 5; }
3839 fi
3840
3841 ac_ext=c
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846
3847
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3849 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3850 if test "${ac_cv_path_GREP+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 if test -z "$GREP"; then
3854 ac_path_GREP_found=false
3855 # Loop through the user's path and test for each of PROGNAME-LIST
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3858 do
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_prog in grep ggrep; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3864 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3865 # Check for GNU ac_path_GREP and select it if it is found.
3866 # Check for GNU $ac_path_GREP
3867 case `"$ac_path_GREP" --version 2>&1` in
3868 *GNU*)
3869 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3870 *)
3871 ac_count=0
3872 $as_echo_n 0123456789 >"conftest.in"
3873 while :
3874 do
3875 cat "conftest.in" "conftest.in" >"conftest.tmp"
3876 mv "conftest.tmp" "conftest.in"
3877 cp "conftest.in" "conftest.nl"
3878 $as_echo 'GREP' >> "conftest.nl"
3879 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3881 as_fn_arith $ac_count + 1 && ac_count=$as_val
3882 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3883 # Best one so far, save it but keep looking for a better one
3884 ac_cv_path_GREP="$ac_path_GREP"
3885 ac_path_GREP_max=$ac_count
3886 fi
3887 # 10*(2^10) chars as input seems more than enough
3888 test $ac_count -gt 10 && break
3889 done
3890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3891 esac
3892
3893 $ac_path_GREP_found && break 3
3894 done
3895 done
3896 done
3897 IFS=$as_save_IFS
3898 if test -z "$ac_cv_path_GREP"; then
3899 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3900 fi
3901 else
3902 ac_cv_path_GREP=$GREP
3903 fi
3904
3905 fi
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3907 $as_echo "$ac_cv_path_GREP" >&6; }
3908 GREP="$ac_cv_path_GREP"
3909
3910
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3912 $as_echo_n "checking for egrep... " >&6; }
3913 if test "${ac_cv_path_EGREP+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3917 then ac_cv_path_EGREP="$GREP -E"
3918 else
3919 if test -z "$EGREP"; then
3920 ac_path_EGREP_found=false
3921 # Loop through the user's path and test for each of PROGNAME-LIST
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3924 do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_prog in egrep; do
3928 for ac_exec_ext in '' $ac_executable_extensions; do
3929 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3930 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3931 # Check for GNU ac_path_EGREP and select it if it is found.
3932 # Check for GNU $ac_path_EGREP
3933 case `"$ac_path_EGREP" --version 2>&1` in
3934 *GNU*)
3935 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3936 *)
3937 ac_count=0
3938 $as_echo_n 0123456789 >"conftest.in"
3939 while :
3940 do
3941 cat "conftest.in" "conftest.in" >"conftest.tmp"
3942 mv "conftest.tmp" "conftest.in"
3943 cp "conftest.in" "conftest.nl"
3944 $as_echo 'EGREP' >> "conftest.nl"
3945 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3946 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3947 as_fn_arith $ac_count + 1 && ac_count=$as_val
3948 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3949 # Best one so far, save it but keep looking for a better one
3950 ac_cv_path_EGREP="$ac_path_EGREP"
3951 ac_path_EGREP_max=$ac_count
3952 fi
3953 # 10*(2^10) chars as input seems more than enough
3954 test $ac_count -gt 10 && break
3955 done
3956 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3957 esac
3958
3959 $ac_path_EGREP_found && break 3
3960 done
3961 done
3962 done
3963 IFS=$as_save_IFS
3964 if test -z "$ac_cv_path_EGREP"; then
3965 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3966 fi
3967 else
3968 ac_cv_path_EGREP=$EGREP
3969 fi
3970
3971 fi
3972 fi
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3974 $as_echo "$ac_cv_path_EGREP" >&6; }
3975 EGREP="$ac_cv_path_EGREP"
3976
3977
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3979 $as_echo_n "checking for ANSI C header files... " >&6; }
3980 if test "${ac_cv_header_stdc+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985 #include <stdlib.h>
3986 #include <stdarg.h>
3987 #include <string.h>
3988 #include <float.h>
3989
3990 int
3991 main ()
3992 {
3993
3994 ;
3995 return 0;
3996 }
3997 _ACEOF
3998 if ac_fn_c_try_compile "$LINENO"; then :
3999 ac_cv_header_stdc=yes
4000 else
4001 ac_cv_header_stdc=no
4002 fi
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004
4005 if test $ac_cv_header_stdc = yes; then
4006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009 #include <string.h>
4010
4011 _ACEOF
4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 $EGREP "memchr" >/dev/null 2>&1; then :
4014
4015 else
4016 ac_cv_header_stdc=no
4017 fi
4018 rm -f conftest*
4019
4020 fi
4021
4022 if test $ac_cv_header_stdc = yes; then
4023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026 #include <stdlib.h>
4027
4028 _ACEOF
4029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4030 $EGREP "free" >/dev/null 2>&1; then :
4031
4032 else
4033 ac_cv_header_stdc=no
4034 fi
4035 rm -f conftest*
4036
4037 fi
4038
4039 if test $ac_cv_header_stdc = yes; then
4040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4041 if test "$cross_compiling" = yes; then :
4042 :
4043 else
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #include <ctype.h>
4047 #include <stdlib.h>
4048 #if ((' ' & 0x0FF) == 0x020)
4049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4051 #else
4052 # define ISLOWER(c) \
4053 (('a' <= (c) && (c) <= 'i') \
4054 || ('j' <= (c) && (c) <= 'r') \
4055 || ('s' <= (c) && (c) <= 'z'))
4056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4057 #endif
4058
4059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4060 int
4061 main ()
4062 {
4063 int i;
4064 for (i = 0; i < 256; i++)
4065 if (XOR (islower (i), ISLOWER (i))
4066 || toupper (i) != TOUPPER (i))
4067 return 2;
4068 return 0;
4069 }
4070 _ACEOF
4071 if ac_fn_c_try_run "$LINENO"; then :
4072
4073 else
4074 ac_cv_header_stdc=no
4075 fi
4076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4077 conftest.$ac_objext conftest.beam conftest.$ac_ext
4078 fi
4079
4080 fi
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4083 $as_echo "$ac_cv_header_stdc" >&6; }
4084 if test $ac_cv_header_stdc = yes; then
4085
4086 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4087
4088 fi
4089
4090 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4091 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4092 inttypes.h stdint.h unistd.h
4093 do :
4094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4095 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4096 "
4097 eval as_val=\$$as_ac_Header
4098 if test "x$as_val" = x""yes; then :
4099 cat >>confdefs.h <<_ACEOF
4100 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4101 _ACEOF
4102
4103 fi
4104
4105 done
4106
4107
4108
4109
4110
4111 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4112 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4113 MINIX=yes
4114 else
4115 MINIX=
4116 fi
4117
4118
4119 if test "$MINIX" = yes; then
4120
4121 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4122
4123
4124 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4125
4126
4127 $as_echo "#define _MINIX 1" >>confdefs.h
4128
4129 fi
4130
4131 case "$host_os" in
4132 hpux*)
4133
4134 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4135
4136 ;;
4137 esac
4138
4139
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4141 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4142 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4143 $as_echo_n "(cached) " >&6
4144 else
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147
4148 # define __EXTENSIONS__ 1
4149 $ac_includes_default
4150 int
4151 main ()
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_safe_to_define___extensions__=yes
4160 else
4161 ac_cv_safe_to_define___extensions__=no
4162 fi
4163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4164 fi
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4166 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4167 test $ac_cv_safe_to_define___extensions__ = yes &&
4168 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4169
4170 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4171
4172 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4173
4174 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4175
4176 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4177
4178
4179 if test -n "$ac_tool_prefix"; then
4180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 if test -n "$RANLIB"; then
4188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4192 do
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4200 fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 RANLIB=$ac_cv_prog_RANLIB
4208 if test -n "$RANLIB"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4210 $as_echo "$RANLIB" >&6; }
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4214 fi
4215
4216
4217 fi
4218 if test -z "$ac_cv_prog_RANLIB"; then
4219 ac_ct_RANLIB=$RANLIB
4220 # Extract the first word of "ranlib", so it can be a program name with args.
4221 set dummy ranlib; ac_word=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4225 $as_echo_n "(cached) " >&6
4226 else
4227 if test -n "$ac_ct_RANLIB"; then
4228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4229 else
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4237 ac_cv_prog_ac_ct_RANLIB="ranlib"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4239 break 2
4240 fi
4241 done
4242 done
4243 IFS=$as_save_IFS
4244
4245 fi
4246 fi
4247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4248 if test -n "$ac_ct_RANLIB"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4250 $as_echo "$ac_ct_RANLIB" >&6; }
4251 else
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4254 fi
4255
4256 if test "x$ac_ct_RANLIB" = x; then
4257 RANLIB=":"
4258 else
4259 case $cross_compiling:$ac_tool_warned in
4260 yes:)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263 ac_tool_warned=yes ;;
4264 esac
4265 RANLIB=$ac_ct_RANLIB
4266 fi
4267 else
4268 RANLIB="$ac_cv_prog_RANLIB"
4269 fi
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279 # Code from module arg-nonnull:
4280 # Code from module c++defs:
4281 # Code from module extensions:
4282
4283 # Code from module include_next:
4284 # Code from module memchr:
4285 # Code from module memmem:
4286 # Code from module memmem-simple:
4287 # Code from module multiarch:
4288 # Code from module stddef:
4289 # Code from module stdint:
4290 # Code from module string:
4291 # Code from module warn-on-use:
4292 # Code from module wchar:
4293
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4295 $as_echo_n "checking target system type... " >&6; }
4296 if test "${ac_cv_target+set}" = set; then :
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if test "x$target_alias" = x; then
4300 ac_cv_target=$ac_cv_host
4301 else
4302 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4303 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4304 fi
4305
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4308 $as_echo "$ac_cv_target" >&6; }
4309 case $ac_cv_target in
4310 *-*-*) ;;
4311 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4312 esac
4313 target=$ac_cv_target
4314 ac_save_IFS=$IFS; IFS='-'
4315 set x $ac_cv_target
4316 shift
4317 target_cpu=$1
4318 target_vendor=$2
4319 shift; shift
4320 # Remember, the first character of IFS is used to create $*,
4321 # except with old shells:
4322 target_os=$*
4323 IFS=$ac_save_IFS
4324 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4325
4326
4327 # The aliases save the names the user supplied, while $host etc.
4328 # will get canonicalized.
4329 test -n "$target_alias" &&
4330 test "$program_prefix$program_suffix$program_transform_name" = \
4331 NONENONEs,x,x, &&
4332 program_prefix=${target_alias}-
4333
4334 # The tests for host and target for $enable_largefile require
4335 # canonical names.
4336
4337
4338
4339 # As the $enable_largefile decision depends on --enable-plugins we must set it
4340 # even in directories otherwise not depending on the $plugins option.
4341
4342
4343 # Check whether --enable-plugins was given.
4344 if test "${enable_plugins+set}" = set; then :
4345 enableval=$enable_plugins; case "${enableval}" in
4346 yes | "") plugins=yes ;;
4347 no) plugins=no ;;
4348 *) plugins=yes ;;
4349 esac
4350 else
4351 plugins=no
4352 fi
4353
4354
4355
4356 case "${host}" in
4357 sparc-*-solaris*|i[3-7]86-*-solaris*)
4358 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4359 # are mutually exclusive; and without procfs support, the bfd/ elf module
4360 # cannot provide certain routines such as elfcore_write_prpsinfo
4361 # or elfcore_write_prstatus. So unless the user explicitly requested
4362 # large-file support through the --enable-largefile switch, disable
4363 # large-file support in favor of procfs support.
4364 test "${target}" = "${host}" -a "x$plugins" = xno \
4365 && : ${enable_largefile="no"}
4366 ;;
4367 esac
4368
4369 # Check whether --enable-largefile was given.
4370 if test "${enable_largefile+set}" = set; then :
4371 enableval=$enable_largefile;
4372 fi
4373
4374 if test "$enable_largefile" != no; then
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4377 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4378 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 ac_cv_sys_largefile_CC=no
4382 if test "$GCC" != yes; then
4383 ac_save_CC=$CC
4384 while :; do
4385 # IRIX 6.2 and later do not support large files by default,
4386 # so use the C compiler's -n32 option if that helps.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <sys/types.h>
4390 /* Check that off_t can represent 2**63 - 1 correctly.
4391 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4392 since some C++ compilers masquerading as C compilers
4393 incorrectly reject 9223372036854775807. */
4394 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4395 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4396 && LARGE_OFF_T % 2147483647 == 1)
4397 ? 1 : -1];
4398 int
4399 main ()
4400 {
4401
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"; then :
4407 break
4408 fi
4409 rm -f core conftest.err conftest.$ac_objext
4410 CC="$CC -n32"
4411 if ac_fn_c_try_compile "$LINENO"; then :
4412 ac_cv_sys_largefile_CC=' -n32'; break
4413 fi
4414 rm -f core conftest.err conftest.$ac_objext
4415 break
4416 done
4417 CC=$ac_save_CC
4418 rm -f conftest.$ac_ext
4419 fi
4420 fi
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4422 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4423 if test "$ac_cv_sys_largefile_CC" != no; then
4424 CC=$CC$ac_cv_sys_largefile_CC
4425 fi
4426
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4428 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4429 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4431 else
4432 while :; do
4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434 /* end confdefs.h. */
4435 #include <sys/types.h>
4436 /* Check that off_t can represent 2**63 - 1 correctly.
4437 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4438 since some C++ compilers masquerading as C compilers
4439 incorrectly reject 9223372036854775807. */
4440 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4441 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4442 && LARGE_OFF_T % 2147483647 == 1)
4443 ? 1 : -1];
4444 int
4445 main ()
4446 {
4447
4448 ;
4449 return 0;
4450 }
4451 _ACEOF
4452 if ac_fn_c_try_compile "$LINENO"; then :
4453 ac_cv_sys_file_offset_bits=no; break
4454 fi
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4458 #define _FILE_OFFSET_BITS 64
4459 #include <sys/types.h>
4460 /* Check that off_t can represent 2**63 - 1 correctly.
4461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4462 since some C++ compilers masquerading as C compilers
4463 incorrectly reject 9223372036854775807. */
4464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4466 && LARGE_OFF_T % 2147483647 == 1)
4467 ? 1 : -1];
4468 int
4469 main ()
4470 {
4471
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_cv_sys_file_offset_bits=64; break
4478 fi
4479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 ac_cv_sys_file_offset_bits=unknown
4481 break
4482 done
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4485 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4486 case $ac_cv_sys_file_offset_bits in #(
4487 no | unknown) ;;
4488 *)
4489 cat >>confdefs.h <<_ACEOF
4490 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4491 _ACEOF
4492 ;;
4493 esac
4494 rm -rf conftest*
4495 if test $ac_cv_sys_file_offset_bits = unknown; then
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4497 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4498 if test "${ac_cv_sys_large_files+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 while :; do
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #include <sys/types.h>
4505 /* Check that off_t can represent 2**63 - 1 correctly.
4506 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4507 since some C++ compilers masquerading as C compilers
4508 incorrectly reject 9223372036854775807. */
4509 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4510 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4511 && LARGE_OFF_T % 2147483647 == 1)
4512 ? 1 : -1];
4513 int
4514 main ()
4515 {
4516
4517 ;
4518 return 0;
4519 }
4520 _ACEOF
4521 if ac_fn_c_try_compile "$LINENO"; then :
4522 ac_cv_sys_large_files=no; break
4523 fi
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 #define _LARGE_FILES 1
4528 #include <sys/types.h>
4529 /* Check that off_t can represent 2**63 - 1 correctly.
4530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4531 since some C++ compilers masquerading as C compilers
4532 incorrectly reject 9223372036854775807. */
4533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4535 && LARGE_OFF_T % 2147483647 == 1)
4536 ? 1 : -1];
4537 int
4538 main ()
4539 {
4540
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"; then :
4546 ac_cv_sys_large_files=1; break
4547 fi
4548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 ac_cv_sys_large_files=unknown
4550 break
4551 done
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4554 $as_echo "$ac_cv_sys_large_files" >&6; }
4555 case $ac_cv_sys_large_files in #(
4556 no | unknown) ;;
4557 *)
4558 cat >>confdefs.h <<_ACEOF
4559 #define _LARGE_FILES $ac_cv_sys_large_files
4560 _ACEOF
4561 ;;
4562 esac
4563 rm -rf conftest*
4564 fi
4565 fi
4566
4567
4568
4569
4570
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4572 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4573 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
4575 else
4576 am_cv_prog_cc_stdc=no
4577 ac_save_CC="$CC"
4578 # Don't try gcc -ansi; that turns off useful extensions and
4579 # breaks some systems' header files.
4580 # AIX -qlanglvl=ansi
4581 # Ultrix and OSF/1 -std1
4582 # HP-UX 10.20 and later -Ae
4583 # HP-UX older versions -Aa -D_HPUX_SOURCE
4584 # SVR4 -Xc -D__EXTENSIONS__
4585 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4586 do
4587 CC="$ac_save_CC $ac_arg"
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589 /* end confdefs.h. */
4590 #include <stdarg.h>
4591 #include <stdio.h>
4592 #include <sys/types.h>
4593 #include <sys/stat.h>
4594 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4595 struct buf { int x; };
4596 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4597 static char *e (p, i)
4598 char **p;
4599 int i;
4600 {
4601 return p[i];
4602 }
4603 static char *f (char * (*g) (char **, int), char **p, ...)
4604 {
4605 char *s;
4606 va_list v;
4607 va_start (v,p);
4608 s = g (p, va_arg (v,int));
4609 va_end (v);
4610 return s;
4611 }
4612 int test (int i, double x);
4613 struct s1 {int (*f) (int a);};
4614 struct s2 {int (*f) (double a);};
4615 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4616 int argc;
4617 char **argv;
4618
4619 int
4620 main ()
4621 {
4622
4623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4624
4625 ;
4626 return 0;
4627 }
4628 _ACEOF
4629 if ac_fn_c_try_compile "$LINENO"; then :
4630 am_cv_prog_cc_stdc="$ac_arg"; break
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 done
4634 CC="$ac_save_CC"
4635
4636 fi
4637
4638 if test -z "$am_cv_prog_cc_stdc"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4640 $as_echo "none needed" >&6; }
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4643 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4644 fi
4645 case "x$am_cv_prog_cc_stdc" in
4646 x|xno) ;;
4647 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4648 esac
4649
4650
4651 ac_aux_dir=
4652 for ac_dir in .. "$srcdir"/..; do
4653 for ac_t in install-sh install.sh shtool; do
4654 if test -f "$ac_dir/$ac_t"; then
4655 ac_aux_dir=$ac_dir
4656 ac_install_sh="$ac_aux_dir/$ac_t -c"
4657 break 2
4658 fi
4659 done
4660 done
4661 if test -z "$ac_aux_dir"; then
4662 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4663 fi
4664
4665 # These three variables are undocumented and unsupported,
4666 # and are intended to be withdrawn in a future Autoconf release.
4667 # They can cause serious problems if a builder's source tree is in a directory
4668 # whose full name contains unusual characters.
4669 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4670 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4671 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4672
4673
4674
4675
4676 # Dependency checking.
4677 rm -rf .tst 2>/dev/null
4678 mkdir .tst 2>/dev/null
4679 if test -d .tst; then
4680 am__leading_dot=.
4681 else
4682 am__leading_dot=_
4683 fi
4684 rmdir .tst 2>/dev/null
4685
4686 DEPDIR="${am__leading_dot}deps"
4687
4688 ac_config_commands="$ac_config_commands depdir"
4689
4690
4691 depcc="$CC" am_compiler_list=
4692
4693 am_depcomp=$ac_aux_dir/depcomp
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4695 $as_echo_n "checking dependency style of $depcc... " >&6; }
4696 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
4698 else
4699 if test -f "$am_depcomp"; then
4700 # We make a subdir and do the tests there. Otherwise we can end up
4701 # making bogus files that we don't know about and never remove. For
4702 # instance it was reported that on HP-UX the gcc test will end up
4703 # making a dummy file named `D' -- because `-MD' means `put the output
4704 # in D'.
4705 mkdir conftest.dir
4706 # Copy depcomp to subdir because otherwise we won't find it if we're
4707 # using a relative directory.
4708 cp "$am_depcomp" conftest.dir
4709 cd conftest.dir
4710 # We will build objects and dependencies in a subdirectory because
4711 # it helps to detect inapplicable dependency modes. For instance
4712 # both Tru64's cc and ICC support -MD to output dependencies as a
4713 # side effect of compilation, but ICC will put the dependencies in
4714 # the current directory while Tru64 will put them in the object
4715 # directory.
4716 mkdir sub
4717
4718 am_cv_CC_dependencies_compiler_type=none
4719 if test "$am_compiler_list" = ""; then
4720 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4721 fi
4722 for depmode in $am_compiler_list; do
4723 if test $depmode = none; then break; fi
4724
4725 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4726 # Setup a source with many dependencies, because some compilers
4727 # like to wrap large dependency lists on column 80 (with \), and
4728 # we should not choose a depcomp mode which is confused by this.
4729 #
4730 # We need to recreate these files for each test, as the compiler may
4731 # overwrite some of them when testing with obscure command lines.
4732 # This happens at least with the AIX C compiler.
4733 : > sub/conftest.c
4734 for i in 1 2 3 4 5 6; do
4735 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4736 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4737 # Solaris 8's {/usr,}/bin/sh.
4738 touch sub/conftst$i.h
4739 done
4740 echo "include sub/conftest.Po" > confmf
4741
4742 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4743 # mode. It turns out that the SunPro C++ compiler does not properly
4744 # handle `-M -o', and we need to detect this.
4745 depcmd="depmode=$depmode \
4746 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4747 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4748 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4749 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4750 if env $depcmd > conftest.err 2>&1 &&
4751 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4752 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4753 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4754 # icc doesn't choke on unknown options, it will just issue warnings
4755 # or remarks (even with -Werror). So we grep stderr for any message
4756 # that says an option was ignored or not supported.
4757 # When given -MP, icc 7.0 and 7.1 complain thusly:
4758 # icc: Command line warning: ignoring option '-M'; no argument required
4759 # The diagnosis changed in icc 8.0:
4760 # icc: Command line remark: option '-MP' not supported
4761 if (grep 'ignoring option' conftest.err ||
4762 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4763 am_cv_CC_dependencies_compiler_type=$depmode
4764 $as_echo "$as_me:$LINENO: success" >&5
4765 break
4766 fi
4767 fi
4768 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4769 sed -e 's/^/| /' < conftest.err >&5
4770 done
4771
4772 cd ..
4773 rm -rf conftest.dir
4774 else
4775 am_cv_CC_dependencies_compiler_type=none
4776 fi
4777
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4780 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4781 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4782 then as_fn_error "no usable dependency style found" "$LINENO" 5
4783 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4784
4785 fi
4786
4787
4788 # Check for the 'make' the user wants to use.
4789 for ac_prog in make
4790 do
4791 # Extract the first word of "$ac_prog", so it can be a program name with args.
4792 set dummy $ac_prog; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_MAKE+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$MAKE"; then
4799 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_MAKE="$ac_prog"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816 fi
4817 fi
4818 MAKE=$ac_cv_prog_MAKE
4819 if test -n "$MAKE"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4821 $as_echo "$MAKE" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826
4827
4828 test -n "$MAKE" && break
4829 done
4830
4831 MAKE_IS_GNU=
4832 case "`$MAKE --version 2>&1 | sed 1q`" in
4833 *GNU*)
4834 MAKE_IS_GNU=yes
4835 ;;
4836 esac
4837 if test "$MAKE_IS_GNU" = yes; then
4838 GMAKE_TRUE=
4839 GMAKE_FALSE='#'
4840 else
4841 GMAKE_TRUE='#'
4842 GMAKE_FALSE=
4843 fi
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4846 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4847 set x ${MAKE-make}
4848 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4849 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4850 $as_echo_n "(cached) " >&6
4851 else
4852 cat >conftest.make <<\_ACEOF
4853 SHELL = /bin/sh
4854 all:
4855 @echo '@@@%%%=$(MAKE)=@@@%%%'
4856 _ACEOF
4857 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4858 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4859 *@@@%%%=?*=@@@%%%*)
4860 eval ac_cv_prog_make_${ac_make}_set=yes;;
4861 *)
4862 eval ac_cv_prog_make_${ac_make}_set=no;;
4863 esac
4864 rm -f conftest.make
4865 fi
4866 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4868 $as_echo "yes" >&6; }
4869 SET_MAKE=
4870 else
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4872 $as_echo "no" >&6; }
4873 SET_MAKE="MAKE=${MAKE-make}"
4874 fi
4875
4876
4877
4878 CONFIG_OBS=
4879 CONFIG_DEPS=
4880 CONFIG_SRCS=
4881 ENABLE_CFLAGS=
4882
4883 CONFIG_ALL=
4884 CONFIG_CLEAN=
4885 CONFIG_INSTALL=
4886 CONFIG_UNINSTALL=
4887
4888 # If we haven't got the data from the intl directory,
4889 # assume NLS is disabled.
4890 USE_NLS=no
4891 LIBINTL=
4892 LIBINTL_DEP=
4893 INCINTL=
4894 XGETTEXT=
4895 GMSGFMT=
4896 POSUB=
4897
4898 if test -f ../intl/config.intl; then
4899 . ../intl/config.intl
4900 fi
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4902 $as_echo_n "checking whether NLS is requested... " >&6; }
4903 if test x"$USE_NLS" != xyes; then
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906 else
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4908 $as_echo "yes" >&6; }
4909
4910 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4911
4912
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4914 $as_echo_n "checking for catalogs to be installed... " >&6; }
4915 # Look for .po and .gmo files in the source directory.
4916 CATALOGS=
4917 XLINGUAS=
4918 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4919 # If there aren't any .gmo files the shell will give us the
4920 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4921 # weeded out.
4922 case "$cat" in *\**)
4923 continue;;
4924 esac
4925 # The quadruple backslash is collapsed to a double backslash
4926 # by the backticks, then collapsed again by the double quotes,
4927 # leaving us with one backslash in the sed expression (right
4928 # before the dot that mustn't act as a wildcard).
4929 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4930 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4931 # The user is allowed to set LINGUAS to a list of languages to
4932 # install catalogs for. If it's empty that means "all of them."
4933 if test "x$LINGUAS" = x; then
4934 CATALOGS="$CATALOGS $cat"
4935 XLINGUAS="$XLINGUAS $lang"
4936 else
4937 case "$LINGUAS" in *$lang*)
4938 CATALOGS="$CATALOGS $cat"
4939 XLINGUAS="$XLINGUAS $lang"
4940 ;;
4941 esac
4942 fi
4943 done
4944 LINGUAS="$XLINGUAS"
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4946 $as_echo "$LINGUAS" >&6; }
4947
4948
4949 DATADIRNAME=share
4950
4951 INSTOBJEXT=.mo
4952
4953 GENCAT=gencat
4954
4955 CATOBJEXT=.gmo
4956
4957 fi
4958
4959 localedir='${datadir}/locale'
4960
4961
4962 if test x"$USE_NLS" = xyes; then
4963 CONFIG_ALL="$CONFIG_ALL all-po"
4964 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4965 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4966 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4967 fi
4968
4969
4970
4971
4972
4973 LIBC_FATAL_STDERR_=1
4974 export LIBC_FATAL_STDERR_
4975
4976
4977
4978
4979
4980 for ac_header in $gl_header_list
4981 do :
4982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4984 eval as_val=\$$as_ac_Header
4985 if test "x$as_val" = x""yes; then :
4986 cat >>confdefs.h <<_ACEOF
4987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4988 _ACEOF
4989
4990 fi
4991
4992 done
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002 for ac_func in $gl_func_list
5003 do :
5004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5006 eval as_val=\$$as_ac_var
5007 if test "x$as_val" = x""yes; then :
5008 cat >>confdefs.h <<_ACEOF
5009 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5010 _ACEOF
5011
5012 fi
5013 done
5014
5015
5016
5017
5018
5019
5020 GNULIB_MEMCHR=0;
5021 GNULIB_MEMMEM=0;
5022 GNULIB_MEMPCPY=0;
5023 GNULIB_MEMRCHR=0;
5024 GNULIB_RAWMEMCHR=0;
5025 GNULIB_STPCPY=0;
5026 GNULIB_STPNCPY=0;
5027 GNULIB_STRCHRNUL=0;
5028 GNULIB_STRDUP=0;
5029 GNULIB_STRNCAT=0;
5030 GNULIB_STRNDUP=0;
5031 GNULIB_STRNLEN=0;
5032 GNULIB_STRPBRK=0;
5033 GNULIB_STRSEP=0;
5034 GNULIB_STRSTR=0;
5035 GNULIB_STRCASESTR=0;
5036 GNULIB_STRTOK_R=0;
5037 GNULIB_MBSLEN=0;
5038 GNULIB_MBSNLEN=0;
5039 GNULIB_MBSCHR=0;
5040 GNULIB_MBSRCHR=0;
5041 GNULIB_MBSSTR=0;
5042 GNULIB_MBSCASECMP=0;
5043 GNULIB_MBSNCASECMP=0;
5044 GNULIB_MBSPCASECMP=0;
5045 GNULIB_MBSCASESTR=0;
5046 GNULIB_MBSCSPN=0;
5047 GNULIB_MBSPBRK=0;
5048 GNULIB_MBSSPN=0;
5049 GNULIB_MBSSEP=0;
5050 GNULIB_MBSTOK_R=0;
5051 GNULIB_STRERROR=0;
5052 GNULIB_STRSIGNAL=0;
5053 GNULIB_STRVERSCMP=0;
5054 HAVE_MBSLEN=0;
5055 HAVE_MEMCHR=1;
5056 HAVE_DECL_MEMMEM=1;
5057 HAVE_MEMPCPY=1;
5058 HAVE_DECL_MEMRCHR=1;
5059 HAVE_RAWMEMCHR=1;
5060 HAVE_STPCPY=1;
5061 HAVE_STPNCPY=1;
5062 HAVE_STRCHRNUL=1;
5063 HAVE_DECL_STRDUP=1;
5064 HAVE_DECL_STRNDUP=1;
5065 HAVE_DECL_STRNLEN=1;
5066 HAVE_STRPBRK=1;
5067 HAVE_STRSEP=1;
5068 HAVE_STRCASESTR=1;
5069 HAVE_DECL_STRTOK_R=1;
5070 HAVE_DECL_STRSIGNAL=1;
5071 HAVE_STRVERSCMP=1;
5072 REPLACE_MEMCHR=0;
5073 REPLACE_MEMMEM=0;
5074 REPLACE_STPNCPY=0;
5075 REPLACE_STRDUP=0;
5076 REPLACE_STRSTR=0;
5077 REPLACE_STRCASESTR=0;
5078 REPLACE_STRERROR=0;
5079 REPLACE_STRNCAT=0;
5080 REPLACE_STRNDUP=0;
5081 REPLACE_STRNLEN=0;
5082 REPLACE_STRSIGNAL=0;
5083 REPLACE_STRTOK_R=0;
5084 UNDEFINE_STRTOK_R=0;
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
5099 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
5100 # irrelevant for anonymous mappings.
5101 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
5102 if test "x$ac_cv_func_mmap" = x""yes; then :
5103 gl_have_mmap=yes
5104 else
5105 gl_have_mmap=no
5106 fi
5107
5108
5109 # Try to allow MAP_ANONYMOUS.
5110 gl_have_mmap_anonymous=no
5111 if test $gl_have_mmap = yes; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
5113 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116
5117 #include <sys/mman.h>
5118 #ifdef MAP_ANONYMOUS
5119 I cant identify this map.
5120 #endif
5121
5122 _ACEOF
5123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5124 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5125 gl_have_mmap_anonymous=yes
5126 fi
5127 rm -f conftest*
5128
5129 if test $gl_have_mmap_anonymous != yes; then
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132
5133 #include <sys/mman.h>
5134 #ifdef MAP_ANON
5135 I cant identify this map.
5136 #endif
5137
5138 _ACEOF
5139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140 $EGREP "I cant identify this map." >/dev/null 2>&1; then :
5141
5142 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
5143
5144 gl_have_mmap_anonymous=yes
5145 fi
5146 rm -f conftest*
5147
5148 fi
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
5150 $as_echo "$gl_have_mmap_anonymous" >&6; }
5151 if test $gl_have_mmap_anonymous = yes; then
5152
5153 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
5154
5155 fi
5156 fi
5157
5158
5159 :
5160
5161
5162
5163
5164
5165
5166 :
5167
5168
5169
5170
5171
5172
5173
5174
5175 :
5176
5177
5178
5179
5180
5181 if test $ac_cv_func_memchr = yes; then
5182 # Detect platform-specific bugs in some versions of glibc:
5183 # memchr should not dereference anything with length 0
5184 # http://bugzilla.redhat.com/499689
5185 # memchr should not dereference overestimated length after a match
5186 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
5187 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
5188 # Assume that memchr works on platforms that lack mprotect.
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
5190 $as_echo_n "checking whether memchr works... " >&6; }
5191 if test "${gl_cv_func_memchr_works+set}" = set; then :
5192 $as_echo_n "(cached) " >&6
5193 else
5194 if test "$cross_compiling" = yes; then :
5195 gl_cv_func_memchr_works="guessing no"
5196 else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199
5200 #include <string.h>
5201 #if HAVE_SYS_MMAN_H
5202 # include <fcntl.h>
5203 # include <unistd.h>
5204 # include <sys/types.h>
5205 # include <sys/mman.h>
5206 # ifndef MAP_FILE
5207 # define MAP_FILE 0
5208 # endif
5209 #endif
5210
5211 int
5212 main ()
5213 {
5214
5215 char *fence = NULL;
5216 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
5217 # if HAVE_MAP_ANONYMOUS
5218 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
5219 const int fd = -1;
5220 # else /* !HAVE_MAP_ANONYMOUS */
5221 const int flags = MAP_FILE | MAP_PRIVATE;
5222 int fd = open ("/dev/zero", O_RDONLY, 0666);
5223 if (fd >= 0)
5224 # endif
5225 {
5226 int pagesize = getpagesize ();
5227 char *two_pages =
5228 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
5229 flags, fd, 0);
5230 if (two_pages != (char *)(-1)
5231 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
5232 fence = two_pages + pagesize;
5233 }
5234 #endif
5235 if (fence)
5236 {
5237 if (memchr (fence, 0, 0))
5238 return 1;
5239 strcpy (fence - 9, "12345678");
5240 if (memchr (fence - 9, 0, 79) != fence - 1)
5241 return 2;
5242 }
5243 return 0;
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 if ac_fn_c_try_run "$LINENO"; then :
5250 gl_cv_func_memchr_works=yes
5251 else
5252 gl_cv_func_memchr_works=no
5253 fi
5254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5255 conftest.$ac_objext conftest.beam conftest.$ac_ext
5256 fi
5257
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
5260 $as_echo "$gl_cv_func_memchr_works" >&6; }
5261 if test "$gl_cv_func_memchr_works" != yes; then
5262 REPLACE_MEMCHR=1
5263 fi
5264 else
5265 HAVE_MEMCHR=0
5266 fi
5267 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
5268
5269
5270
5271
5272
5273
5274
5275
5276 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
5277
5278
5279 for ac_header in bp-sym.h
5280 do :
5281 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
5282 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
5283 cat >>confdefs.h <<_ACEOF
5284 #define HAVE_BP_SYM_H 1
5285 _ACEOF
5286
5287 fi
5288
5289 done
5290
5291
5292 fi
5293
5294
5295 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
5296 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
5297 ac_have_decl=1
5298 else
5299 ac_have_decl=0
5300 fi
5301
5302 cat >>confdefs.h <<_ACEOF
5303 #define HAVE_DECL_MEMMEM $ac_have_decl
5304 _ACEOF
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319 for ac_func in memmem
5320 do :
5321 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
5322 if test "x$ac_cv_func_memmem" = x""yes; then :
5323 cat >>confdefs.h <<_ACEOF
5324 #define HAVE_MEMMEM 1
5325 _ACEOF
5326
5327 else
5328
5329 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5330
5331 fi
5332 done
5333
5334
5335
5336 :
5337
5338
5339
5340
5341
5342 if test $ac_cv_have_decl_memmem = no; then
5343 HAVE_DECL_MEMMEM=0
5344 fi
5345 :
5346
5347
5348 gl_cv_c_multiarch=no
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #ifndef __APPLE_CC__
5352 not a universal capable compiler
5353 #endif
5354 typedef int dummy;
5355
5356 _ACEOF
5357 if ac_fn_c_try_compile "$LINENO"; then :
5358
5359 arch=
5360 prev=
5361 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5362 if test -n "$prev"; then
5363 case $word in
5364 i?86 | x86_64 | ppc | ppc64)
5365 if test -z "$arch" || test "$arch" = "$word"; then
5366 arch="$word"
5367 else
5368 gl_cv_c_multiarch=yes
5369 fi
5370 ;;
5371 esac
5372 prev=
5373 else
5374 if test "x$word" = "x-arch"; then
5375 prev=arch
5376 fi
5377 fi
5378 done
5379
5380 fi
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 if test $gl_cv_c_multiarch = yes; then
5383
5384 $as_echo "#define AA_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5385
5386 APPLE_UNIVERSAL_BUILD=1
5387 else
5388 APPLE_UNIVERSAL_BUILD=0
5389 fi
5390
5391
5392
5393 REPLACE_NULL=0;
5394 HAVE_WCHAR_T=1;
5395 STDDEF_H='';
5396
5397
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
5399 $as_echo_n "checking for wchar_t... " >&6; }
5400 if test "${gt_cv_c_wchar_t+set}" = set; then :
5401 $as_echo_n "(cached) " >&6
5402 else
5403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5404 /* end confdefs.h. */
5405 #include <stddef.h>
5406 wchar_t foo = (wchar_t)'\0';
5407 int
5408 main ()
5409 {
5410
5411 ;
5412 return 0;
5413 }
5414 _ACEOF
5415 if ac_fn_c_try_compile "$LINENO"; then :
5416 gt_cv_c_wchar_t=yes
5417 else
5418 gt_cv_c_wchar_t=no
5419 fi
5420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
5423 $as_echo "$gt_cv_c_wchar_t" >&6; }
5424 if test $gt_cv_c_wchar_t = yes; then
5425
5426 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
5427
5428 fi
5429
5430
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5433 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5434 if test "${gl_cv_have_include_next+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 rm -rf conftestd1a conftestd1b conftestd2
5438 mkdir conftestd1a conftestd1b conftestd2
5439 cat <<EOF > conftestd1a/conftest.h
5440 #define DEFINED_IN_CONFTESTD1
5441 #include_next <conftest.h>
5442 #ifdef DEFINED_IN_CONFTESTD2
5443 int foo;
5444 #else
5445 #error "include_next doesn't work"
5446 #endif
5447 EOF
5448 cat <<EOF > conftestd1b/conftest.h
5449 #define DEFINED_IN_CONFTESTD1
5450 #include <stdio.h>
5451 #include_next <conftest.h>
5452 #ifdef DEFINED_IN_CONFTESTD2
5453 int foo;
5454 #else
5455 #error "include_next doesn't work"
5456 #endif
5457 EOF
5458 cat <<EOF > conftestd2/conftest.h
5459 #ifndef DEFINED_IN_CONFTESTD1
5460 #error "include_next test doesn't work"
5461 #endif
5462 #define DEFINED_IN_CONFTESTD2
5463 EOF
5464 gl_save_CPPFLAGS="$CPPFLAGS"
5465 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #include <conftest.h>
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 gl_cv_have_include_next=yes
5472 else
5473 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -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=buggy
5480 else
5481 gl_cv_have_include_next=no
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484
5485 fi
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 CPPFLAGS="$gl_save_CPPFLAGS"
5488 rm -rf conftestd1a conftestd1b conftestd2
5489
5490 fi
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5492 $as_echo "$gl_cv_have_include_next" >&6; }
5493 PRAGMA_SYSTEM_HEADER=
5494 if test $gl_cv_have_include_next = yes; then
5495 INCLUDE_NEXT=include_next
5496 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5497 if test -n "$GCC"; then
5498 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5499 fi
5500 else
5501 if test $gl_cv_have_include_next = buggy; then
5502 INCLUDE_NEXT=include
5503 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5504 else
5505 INCLUDE_NEXT=include
5506 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5507 fi
5508 fi
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5520 $as_echo_n "checking for long long int... " >&6; }
5521 if test "${ac_cv_type_long_long_int+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h. */
5526
5527 /* For now, do not test the preprocessor; as of 2007 there are too many
5528 implementations with broken preprocessors. Perhaps this can
5529 be revisited in 2012. In the meantime, code should not expect
5530 #if to work with literals wider than 32 bits. */
5531 /* Test literals. */
5532 long long int ll = 9223372036854775807ll;
5533 long long int nll = -9223372036854775807LL;
5534 unsigned long long int ull = 18446744073709551615ULL;
5535 /* Test constant expressions. */
5536 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5537 ? 1 : -1)];
5538 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5539 ? 1 : -1)];
5540 int i = 63;
5541 int
5542 main ()
5543 {
5544 /* Test availability of runtime routines for shift and division. */
5545 long long int llmax = 9223372036854775807ll;
5546 unsigned long long int ullmax = 18446744073709551615ull;
5547 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5548 | (llmax / ll) | (llmax % ll)
5549 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5550 | (ullmax / ull) | (ullmax % ull));
5551 ;
5552 return 0;
5553 }
5554
5555 _ACEOF
5556 if ac_fn_c_try_link "$LINENO"; then :
5557 if test "$cross_compiling" = yes; then :
5558 ac_cv_type_long_long_int=yes
5559 else
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 #include <limits.h>
5563 #ifndef LLONG_MAX
5564 # define HALF \
5565 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5566 # define LLONG_MAX (HALF - 1 + HALF)
5567 #endif
5568 int
5569 main ()
5570 {
5571 long long int n = 1;
5572 int i;
5573 for (i = 0; ; i++)
5574 {
5575 long long int m = n << i;
5576 if (m >> i != n)
5577 return 1;
5578 if (LLONG_MAX / 2 < m)
5579 break;
5580 }
5581 return 0;
5582 ;
5583 return 0;
5584 }
5585 _ACEOF
5586 if ac_fn_c_try_run "$LINENO"; then :
5587 ac_cv_type_long_long_int=yes
5588 else
5589 ac_cv_type_long_long_int=no
5590 fi
5591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5592 conftest.$ac_objext conftest.beam conftest.$ac_ext
5593 fi
5594
5595 else
5596 ac_cv_type_long_long_int=no
5597 fi
5598 rm -f core conftest.err conftest.$ac_objext \
5599 conftest$ac_exeext conftest.$ac_ext
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5602 $as_echo "$ac_cv_type_long_long_int" >&6; }
5603 if test $ac_cv_type_long_long_int = yes; then
5604
5605 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5606
5607 fi
5608
5609
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5611 $as_echo_n "checking for unsigned long long int... " >&6; }
5612 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617
5618 /* For now, do not test the preprocessor; as of 2007 there are too many
5619 implementations with broken preprocessors. Perhaps this can
5620 be revisited in 2012. In the meantime, code should not expect
5621 #if to work with literals wider than 32 bits. */
5622 /* Test literals. */
5623 long long int ll = 9223372036854775807ll;
5624 long long int nll = -9223372036854775807LL;
5625 unsigned long long int ull = 18446744073709551615ULL;
5626 /* Test constant expressions. */
5627 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5628 ? 1 : -1)];
5629 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5630 ? 1 : -1)];
5631 int i = 63;
5632 int
5633 main ()
5634 {
5635 /* Test availability of runtime routines for shift and division. */
5636 long long int llmax = 9223372036854775807ll;
5637 unsigned long long int ullmax = 18446744073709551615ull;
5638 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5639 | (llmax / ll) | (llmax % ll)
5640 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5641 | (ullmax / ull) | (ullmax % ull));
5642 ;
5643 return 0;
5644 }
5645
5646 _ACEOF
5647 if ac_fn_c_try_link "$LINENO"; then :
5648 ac_cv_type_unsigned_long_long_int=yes
5649 else
5650 ac_cv_type_unsigned_long_long_int=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654 fi
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5656 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5657 if test $ac_cv_type_unsigned_long_long_int = yes; then
5658
5659 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5660
5661 fi
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5674 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5675 if test "${ac_cv_c_restrict+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 ac_cv_c_restrict=no
5679 # The order here caters to the fact that C++ does not require restrict.
5680 for ac_kw in __restrict __restrict__ _Restrict restrict; do
5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 typedef int * int_ptr;
5684 int foo (int_ptr $ac_kw ip) {
5685 return ip[0];
5686 }
5687 int
5688 main ()
5689 {
5690 int s[1];
5691 int * $ac_kw t = s;
5692 t[0] = 0;
5693 return foo(t)
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 if ac_fn_c_try_compile "$LINENO"; then :
5699 ac_cv_c_restrict=$ac_kw
5700 fi
5701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 test "$ac_cv_c_restrict" != no && break
5703 done
5704
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5707 $as_echo "$ac_cv_c_restrict" >&6; }
5708
5709 case $ac_cv_c_restrict in
5710 restrict) ;;
5711 no) $as_echo "#define restrict /**/" >>confdefs.h
5712 ;;
5713 *) cat >>confdefs.h <<_ACEOF
5714 #define restrict $ac_cv_c_restrict
5715 _ACEOF
5716 ;;
5717 esac
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731 :
5732
5733
5734
5735
5736
5737
5738
5739 if test $gl_cv_have_include_next = yes; then
5740 gl_cv_next_string_h='<'string.h'>'
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
5743 $as_echo_n "checking absolute name of <string.h>... " >&6; }
5744 if test "${gl_cv_next_string_h+set}" = set; then :
5745 $as_echo_n "(cached) " >&6
5746 else
5747
5748 if test $ac_cv_header_string_h = yes; then
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 #include <string.h>
5752
5753 _ACEOF
5754 case "$host_os" in
5755 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5756 *) gl_absname_cpp="$ac_cpp" ;;
5757 esac
5758 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5759 sed -n '\#/string.h#{
5760 s#.*"\(.*/string.h\)".*#\1#
5761 s#^/[^/]#//&#
5762 p
5763 q
5764 }'`'"'
5765 else
5766 gl_cv_next_string_h='<'string.h'>'
5767 fi
5768
5769 fi
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
5771 $as_echo "$gl_cv_next_string_h" >&6; }
5772 fi
5773 NEXT_STRING_H=$gl_cv_next_string_h
5774
5775 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5776 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5777 gl_next_as_first_directive='<'string.h'>'
5778 else
5779 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5780 gl_next_as_first_directive=$gl_cv_next_string_h
5781 fi
5782 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
5783
5784
5785
5786
5787
5788 for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
5789 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
5791 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
5792 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797 #include <string.h>
5798
5799 int
5800 main ()
5801 {
5802 #undef $gl_func
5803 (void) $gl_func;
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 if ac_fn_c_try_compile "$LINENO"; then :
5809 eval "$as_gl_Symbol=yes"
5810 else
5811 eval "$as_gl_Symbol=no"
5812 fi
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 fi
5815 eval ac_res=\$$as_gl_Symbol
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5817 $as_echo "$ac_res" >&6; }
5818 eval as_val=\$$as_gl_Symbol
5819 if test "x$as_val" = x""yes; then :
5820 cat >>confdefs.h <<_ACEOF
5821 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
5822 _ACEOF
5823
5824 eval ac_cv_have_decl_$gl_func=yes
5825 fi
5826 done
5827
5828
5829
5830 GNULIB_BTOWC=0;
5831 GNULIB_WCTOB=0;
5832 GNULIB_MBSINIT=0;
5833 GNULIB_MBRTOWC=0;
5834 GNULIB_MBRLEN=0;
5835 GNULIB_MBSRTOWCS=0;
5836 GNULIB_MBSNRTOWCS=0;
5837 GNULIB_WCRTOMB=0;
5838 GNULIB_WCSRTOMBS=0;
5839 GNULIB_WCSNRTOMBS=0;
5840 GNULIB_WCWIDTH=0;
5841 HAVE_BTOWC=1;
5842 HAVE_MBSINIT=1;
5843 HAVE_MBRTOWC=1;
5844 HAVE_MBRLEN=1;
5845 HAVE_MBSRTOWCS=1;
5846 HAVE_MBSNRTOWCS=1;
5847 HAVE_WCRTOMB=1;
5848 HAVE_WCSRTOMBS=1;
5849 HAVE_WCSNRTOMBS=1;
5850 HAVE_DECL_WCTOB=1;
5851 HAVE_DECL_WCWIDTH=1;
5852 REPLACE_MBSTATE_T=0;
5853 REPLACE_BTOWC=0;
5854 REPLACE_WCTOB=0;
5855 REPLACE_MBSINIT=0;
5856 REPLACE_MBRTOWC=0;
5857 REPLACE_MBRLEN=0;
5858 REPLACE_MBSRTOWCS=0;
5859 REPLACE_MBSNRTOWCS=0;
5860 REPLACE_WCRTOMB=0;
5861 REPLACE_WCSRTOMBS=0;
5862 REPLACE_WCSNRTOMBS=0;
5863 REPLACE_WCWIDTH=0;
5864
5865
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
5867 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
5868 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 gl_cv_header_wchar_h_correct_inline=yes
5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874
5875 #define wcstod renamed_wcstod
5876 #include <wchar.h>
5877 extern int zero (void);
5878 int main () { return zero(); }
5879
5880 _ACEOF
5881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5882 (eval $ac_compile) 2>&5
5883 ac_status=$?
5884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5885 test $ac_status = 0; }; then
5886 mv conftest.$ac_objext conftest1.$ac_objext
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5889
5890 #define wcstod renamed_wcstod
5891 #include <wchar.h>
5892 int zero (void) { return 0; }
5893
5894 _ACEOF
5895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5896 (eval $ac_compile) 2>&5
5897 ac_status=$?
5898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899 test $ac_status = 0; }; then
5900 mv conftest.$ac_objext conftest2.$ac_objext
5901 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
5902 :
5903 else
5904 gl_cv_header_wchar_h_correct_inline=no
5905 fi
5906 fi
5907 fi
5908 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
5909
5910 fi
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
5912 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
5913 if test $gl_cv_header_wchar_h_correct_inline = no; then
5914 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
5915 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
5916 C99 mode. You have four options:
5917 - Add the flag -fgnu89-inline to CC and reconfigure, or
5918 - Fix your include files, using parts of
5919 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
5920 - Use a gcc version older than 4.3, or
5921 - Don't use the flags -std=c99 or -std=gnu99.
5922 Configuration aborted." "$LINENO" 5
5923 fi
5924
5925
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
5927 $as_echo_n "checking for wint_t... " >&6; }
5928 if test "${gt_cv_c_wint_t+set}" = set; then :
5929 $as_echo_n "(cached) " >&6
5930 else
5931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5932 /* end confdefs.h. */
5933
5934 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5935 <wchar.h>.
5936 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
5937 before <wchar.h>. */
5938 #include <stddef.h>
5939 #include <stdio.h>
5940 #include <time.h>
5941 #include <wchar.h>
5942 wint_t foo = (wchar_t)'\0';
5943 int
5944 main ()
5945 {
5946
5947 ;
5948 return 0;
5949 }
5950 _ACEOF
5951 if ac_fn_c_try_compile "$LINENO"; then :
5952 gt_cv_c_wint_t=yes
5953 else
5954 gt_cv_c_wint_t=no
5955 fi
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5957 fi
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
5959 $as_echo "$gt_cv_c_wint_t" >&6; }
5960 if test $gt_cv_c_wint_t = yes; then
5961
5962 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
5963
5964 fi
5965
5966
5967 if false; then
5968 GL_COND_LIBTOOL_TRUE=
5969 GL_COND_LIBTOOL_FALSE='#'
5970 else
5971 GL_COND_LIBTOOL_TRUE='#'
5972 GL_COND_LIBTOOL_FALSE=
5973 fi
5974
5975 gl_cond_libtool=false
5976 gl_libdeps=
5977 gl_ltlibdeps=
5978 gl_m4_base='gnulib/m4'
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988 gl_source_base='gnulib'
5989 # Code from module arg-nonnull:
5990 # Code from module c++defs:
5991 # Code from module extensions:
5992 # Code from module include_next:
5993 # Code from module memchr:
5994
5995
5996
5997
5998 GNULIB_MEMCHR=1
5999
6000
6001
6002 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
6003
6004
6005
6006 # Code from module memmem:
6007
6008
6009 if test $ac_cv_have_decl_memmem = yes; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
6011 $as_echo_n "checking whether memmem works in linear time... " >&6; }
6012 if test "${gl_cv_func_memmem_works+set}" = set; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test "$cross_compiling" = yes; then :
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018
6019 #include <features.h>
6020 #ifdef __GNU_LIBRARY__
6021 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)
6022 Lucky user
6023 #endif
6024 #endif
6025 #ifdef __CYGWIN__
6026 #include <cygwin/version.h>
6027 #if CYGWIN_VERSION_DLL_MAJOR >= 1007
6028 Lucky user
6029 #endif
6030 #endif
6031
6032 _ACEOF
6033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6034 $EGREP "Lucky user" >/dev/null 2>&1; then :
6035 gl_cv_func_memmem_works=yes
6036 else
6037 gl_cv_func_memmem_works="guessing no"
6038 fi
6039 rm -f conftest*
6040
6041
6042 else
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045
6046 #include <signal.h> /* for signal */
6047 #include <string.h> /* for memmem */
6048 #include <stdlib.h> /* for malloc */
6049 #include <unistd.h> /* for alarm */
6050
6051 int
6052 main ()
6053 {
6054 size_t m = 1000000;
6055 char *haystack = (char *) malloc (2 * m + 1);
6056 char *needle = (char *) malloc (m + 1);
6057 void *result = 0;
6058 /* Failure to compile this test due to missing alarm is okay,
6059 since all such platforms (mingw) also lack memmem. */
6060 signal (SIGALRM, SIG_DFL);
6061 alarm (5);
6062 /* Check for quadratic performance. */
6063 if (haystack && needle)
6064 {
6065 memset (haystack, 'A', 2 * m);
6066 haystack[2 * m] = 'B';
6067 memset (needle, 'A', m);
6068 needle[m] = 'B';
6069 result = memmem (haystack, 2 * m + 1, needle, m + 1);
6070 }
6071 /* Check for empty needle behavior. */
6072 return !result || !memmem ("a", 1, 0, 0);
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_run "$LINENO"; then :
6078 gl_cv_func_memmem_works=yes
6079 else
6080 gl_cv_func_memmem_works=no
6081 fi
6082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6083 conftest.$ac_objext conftest.beam conftest.$ac_ext
6084 fi
6085
6086
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works" >&5
6089 $as_echo "$gl_cv_func_memmem_works" >&6; }
6090 if test "$gl_cv_func_memmem_works" != yes; then
6091 REPLACE_MEMMEM=1
6092
6093
6094
6095
6096
6097
6098
6099
6100 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
6101
6102 fi
6103 fi
6104
6105 # Code from module memmem-simple:
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 for ac_func in memmem
6119 do :
6120 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
6121 if test "x$ac_cv_func_memmem" = x""yes; then :
6122 cat >>confdefs.h <<_ACEOF
6123 #define HAVE_MEMMEM 1
6124 _ACEOF
6125
6126 else
6127
6128 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
6129
6130 fi
6131 done
6132
6133
6134
6135 :
6136
6137
6138
6139
6140
6141 if test $ac_cv_have_decl_memmem = no; then
6142 HAVE_DECL_MEMMEM=0
6143 fi
6144 :
6145
6146
6147
6148
6149 GNULIB_MEMMEM=1
6150
6151
6152
6153 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
6154
6155
6156
6157 # Code from module multiarch:
6158
6159 # Code from module stddef:
6160
6161
6162
6163 if test $gt_cv_c_wchar_t = no; then
6164 HAVE_WCHAR_T=0
6165 STDDEF_H=stddef.h
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
6168 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
6169 if test "${gl_cv_decl_null_works+set}" = set; then :
6170 $as_echo_n "(cached) " >&6
6171 else
6172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 #include <stddef.h>
6175 int test[2 * (sizeof NULL == sizeof (void *)) -1];
6176
6177 int
6178 main ()
6179 {
6180
6181 ;
6182 return 0;
6183 }
6184 _ACEOF
6185 if ac_fn_c_try_compile "$LINENO"; then :
6186 gl_cv_decl_null_works=yes
6187 else
6188 gl_cv_decl_null_works=no
6189 fi
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 fi
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
6193 $as_echo "$gl_cv_decl_null_works" >&6; }
6194 if test $gl_cv_decl_null_works = no; then
6195 REPLACE_NULL=1
6196 STDDEF_H=stddef.h
6197 fi
6198 if test -n "$STDDEF_H"; then
6199
6200
6201
6202
6203 :
6204
6205
6206
6207
6208
6209
6210
6211 if test $gl_cv_have_include_next = yes; then
6212 gl_cv_next_stddef_h='<'stddef.h'>'
6213 else
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
6215 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
6216 if test "${gl_cv_next_stddef_h+set}" = set; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219
6220 if test $ac_cv_header_stddef_h = yes; then
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 #include <stddef.h>
6224
6225 _ACEOF
6226 case "$host_os" in
6227 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6228 *) gl_absname_cpp="$ac_cpp" ;;
6229 esac
6230 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6231 sed -n '\#/stddef.h#{
6232 s#.*"\(.*/stddef.h\)".*#\1#
6233 s#^/[^/]#//&#
6234 p
6235 q
6236 }'`'"'
6237 else
6238 gl_cv_next_stddef_h='<'stddef.h'>'
6239 fi
6240
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
6243 $as_echo "$gl_cv_next_stddef_h" >&6; }
6244 fi
6245 NEXT_STDDEF_H=$gl_cv_next_stddef_h
6246
6247 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6248 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6249 gl_next_as_first_directive='<'stddef.h'>'
6250 else
6251 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6252 gl_next_as_first_directive=$gl_cv_next_stddef_h
6253 fi
6254 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
6255
6256
6257
6258 fi
6259
6260 # Code from module stdint:
6261
6262
6263
6264 if test $ac_cv_type_long_long_int = yes; then
6265 HAVE_LONG_LONG_INT=1
6266 else
6267 HAVE_LONG_LONG_INT=0
6268 fi
6269
6270
6271 if test $ac_cv_type_unsigned_long_long_int = yes; then
6272 HAVE_UNSIGNED_LONG_LONG_INT=1
6273 else
6274 HAVE_UNSIGNED_LONG_LONG_INT=0
6275 fi
6276
6277
6278 if test $ac_cv_header_inttypes_h = yes; then
6279 HAVE_INTTYPES_H=1
6280 else
6281 HAVE_INTTYPES_H=0
6282 fi
6283
6284
6285 if test $ac_cv_header_sys_types_h = yes; then
6286 HAVE_SYS_TYPES_H=1
6287 else
6288 HAVE_SYS_TYPES_H=0
6289 fi
6290
6291
6292
6293
6294
6295
6296 :
6297
6298
6299
6300
6301
6302
6303
6304 if test $gl_cv_have_include_next = yes; then
6305 gl_cv_next_stdint_h='<'stdint.h'>'
6306 else
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6308 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6309 if test "${gl_cv_next_stdint_h+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312
6313 if test $ac_cv_header_stdint_h = yes; then
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316 #include <stdint.h>
6317
6318 _ACEOF
6319 case "$host_os" in
6320 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6321 *) gl_absname_cpp="$ac_cpp" ;;
6322 esac
6323 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6324 sed -n '\#/stdint.h#{
6325 s#.*"\(.*/stdint.h\)".*#\1#
6326 s#^/[^/]#//&#
6327 p
6328 q
6329 }'`'"'
6330 else
6331 gl_cv_next_stdint_h='<'stdint.h'>'
6332 fi
6333
6334 fi
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6336 $as_echo "$gl_cv_next_stdint_h" >&6; }
6337 fi
6338 NEXT_STDINT_H=$gl_cv_next_stdint_h
6339
6340 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6341 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6342 gl_next_as_first_directive='<'stdint.h'>'
6343 else
6344 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6345 gl_next_as_first_directive=$gl_cv_next_stdint_h
6346 fi
6347 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6348
6349
6350
6351 if test $ac_cv_header_stdint_h = yes; then
6352 HAVE_STDINT_H=1
6353 else
6354 HAVE_STDINT_H=0
6355 fi
6356
6357
6358 if test $ac_cv_header_stdint_h = yes; then
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6360 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6361 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 gl_cv_header_working_stdint_h=no
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367
6368
6369 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6370 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6371 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6372 #include <stdint.h>
6373 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6374 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6375 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6376 #endif
6377
6378
6379 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6380 included before <wchar.h>. */
6381 #include <stddef.h>
6382 #include <signal.h>
6383 #if HAVE_WCHAR_H
6384 # include <stdio.h>
6385 # include <time.h>
6386 # include <wchar.h>
6387 #endif
6388
6389
6390 #ifdef INT8_MAX
6391 int8_t a1 = INT8_MAX;
6392 int8_t a1min = INT8_MIN;
6393 #endif
6394 #ifdef INT16_MAX
6395 int16_t a2 = INT16_MAX;
6396 int16_t a2min = INT16_MIN;
6397 #endif
6398 #ifdef INT32_MAX
6399 int32_t a3 = INT32_MAX;
6400 int32_t a3min = INT32_MIN;
6401 #endif
6402 #ifdef INT64_MAX
6403 int64_t a4 = INT64_MAX;
6404 int64_t a4min = INT64_MIN;
6405 #endif
6406 #ifdef UINT8_MAX
6407 uint8_t b1 = UINT8_MAX;
6408 #else
6409 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6410 #endif
6411 #ifdef UINT16_MAX
6412 uint16_t b2 = UINT16_MAX;
6413 #endif
6414 #ifdef UINT32_MAX
6415 uint32_t b3 = UINT32_MAX;
6416 #endif
6417 #ifdef UINT64_MAX
6418 uint64_t b4 = UINT64_MAX;
6419 #endif
6420 int_least8_t c1 = INT8_C (0x7f);
6421 int_least8_t c1max = INT_LEAST8_MAX;
6422 int_least8_t c1min = INT_LEAST8_MIN;
6423 int_least16_t c2 = INT16_C (0x7fff);
6424 int_least16_t c2max = INT_LEAST16_MAX;
6425 int_least16_t c2min = INT_LEAST16_MIN;
6426 int_least32_t c3 = INT32_C (0x7fffffff);
6427 int_least32_t c3max = INT_LEAST32_MAX;
6428 int_least32_t c3min = INT_LEAST32_MIN;
6429 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6430 int_least64_t c4max = INT_LEAST64_MAX;
6431 int_least64_t c4min = INT_LEAST64_MIN;
6432 uint_least8_t d1 = UINT8_C (0xff);
6433 uint_least8_t d1max = UINT_LEAST8_MAX;
6434 uint_least16_t d2 = UINT16_C (0xffff);
6435 uint_least16_t d2max = UINT_LEAST16_MAX;
6436 uint_least32_t d3 = UINT32_C (0xffffffff);
6437 uint_least32_t d3max = UINT_LEAST32_MAX;
6438 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6439 uint_least64_t d4max = UINT_LEAST64_MAX;
6440 int_fast8_t e1 = INT_FAST8_MAX;
6441 int_fast8_t e1min = INT_FAST8_MIN;
6442 int_fast16_t e2 = INT_FAST16_MAX;
6443 int_fast16_t e2min = INT_FAST16_MIN;
6444 int_fast32_t e3 = INT_FAST32_MAX;
6445 int_fast32_t e3min = INT_FAST32_MIN;
6446 int_fast64_t e4 = INT_FAST64_MAX;
6447 int_fast64_t e4min = INT_FAST64_MIN;
6448 uint_fast8_t f1 = UINT_FAST8_MAX;
6449 uint_fast16_t f2 = UINT_FAST16_MAX;
6450 uint_fast32_t f3 = UINT_FAST32_MAX;
6451 uint_fast64_t f4 = UINT_FAST64_MAX;
6452 #ifdef INTPTR_MAX
6453 intptr_t g = INTPTR_MAX;
6454 intptr_t gmin = INTPTR_MIN;
6455 #endif
6456 #ifdef UINTPTR_MAX
6457 uintptr_t h = UINTPTR_MAX;
6458 #endif
6459 intmax_t i = INTMAX_MAX;
6460 uintmax_t j = UINTMAX_MAX;
6461
6462 #include <limits.h> /* for CHAR_BIT */
6463 #define TYPE_MINIMUM(t) \
6464 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
6465 #define TYPE_MAXIMUM(t) \
6466 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
6467 struct s {
6468 int check_PTRDIFF:
6469 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6470 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6471 ? 1 : -1;
6472 /* Detect bug in FreeBSD 6.0 / ia64. */
6473 int check_SIG_ATOMIC:
6474 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6475 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6476 ? 1 : -1;
6477 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6478 int check_WCHAR:
6479 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6480 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6481 ? 1 : -1;
6482 /* Detect bug in mingw. */
6483 int check_WINT:
6484 WINT_MIN == TYPE_MINIMUM (wint_t)
6485 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6486 ? 1 : -1;
6487
6488 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6489 int check_UINT8_C:
6490 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6491 int check_UINT16_C:
6492 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6493
6494 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6495 #ifdef UINT8_MAX
6496 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6497 #endif
6498 #ifdef UINT16_MAX
6499 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6500 #endif
6501 #ifdef UINT32_MAX
6502 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6503 #endif
6504 #ifdef UINT64_MAX
6505 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6506 #endif
6507 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6508 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6509 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6510 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6511 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6512 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6513 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6514 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6515 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6516 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6517 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6518 };
6519
6520 int
6521 main ()
6522 {
6523
6524 ;
6525 return 0;
6526 }
6527 _ACEOF
6528 if ac_fn_c_try_compile "$LINENO"; then :
6529 if test "$cross_compiling" = yes; then :
6530 gl_cv_header_working_stdint_h=yes
6531
6532 else
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6535
6536
6537 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
6538 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
6539 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6540 #include <stdint.h>
6541
6542
6543 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6544 included before <wchar.h>. */
6545 #include <stddef.h>
6546 #include <signal.h>
6547 #if HAVE_WCHAR_H
6548 # include <stdio.h>
6549 # include <time.h>
6550 # include <wchar.h>
6551 #endif
6552
6553
6554 #include <stdio.h>
6555 #include <string.h>
6556 #define MVAL(macro) MVAL1(macro)
6557 #define MVAL1(expression) #expression
6558 static const char *macro_values[] =
6559 {
6560 #ifdef INT8_MAX
6561 MVAL (INT8_MAX),
6562 #endif
6563 #ifdef INT16_MAX
6564 MVAL (INT16_MAX),
6565 #endif
6566 #ifdef INT32_MAX
6567 MVAL (INT32_MAX),
6568 #endif
6569 #ifdef INT64_MAX
6570 MVAL (INT64_MAX),
6571 #endif
6572 #ifdef UINT8_MAX
6573 MVAL (UINT8_MAX),
6574 #endif
6575 #ifdef UINT16_MAX
6576 MVAL (UINT16_MAX),
6577 #endif
6578 #ifdef UINT32_MAX
6579 MVAL (UINT32_MAX),
6580 #endif
6581 #ifdef UINT64_MAX
6582 MVAL (UINT64_MAX),
6583 #endif
6584 NULL
6585 };
6586
6587 int
6588 main ()
6589 {
6590
6591 const char **mv;
6592 for (mv = macro_values; *mv != NULL; mv++)
6593 {
6594 const char *value = *mv;
6595 /* Test whether it looks like a cast expression. */
6596 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6597 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6598 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6599 || strncmp (value, "((int)"/*)*/, 6) == 0
6600 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6601 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6602 return 1;
6603 }
6604 return 0;
6605
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_run "$LINENO"; then :
6611 gl_cv_header_working_stdint_h=yes
6612 fi
6613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6614 conftest.$ac_objext conftest.beam conftest.$ac_ext
6615 fi
6616
6617
6618 fi
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6623 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6624 fi
6625 if test "$gl_cv_header_working_stdint_h" = yes; then
6626 STDINT_H=
6627 else
6628 for ac_header in sys/inttypes.h sys/bitypes.h
6629 do :
6630 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6631 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6632 eval as_val=\$$as_ac_Header
6633 if test "x$as_val" = x""yes; then :
6634 cat >>confdefs.h <<_ACEOF
6635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6636 _ACEOF
6637
6638 fi
6639
6640 done
6641
6642 if test $ac_cv_header_sys_inttypes_h = yes; then
6643 HAVE_SYS_INTTYPES_H=1
6644 else
6645 HAVE_SYS_INTTYPES_H=0
6646 fi
6647
6648 if test $ac_cv_header_sys_bitypes_h = yes; then
6649 HAVE_SYS_BITYPES_H=1
6650 else
6651 HAVE_SYS_BITYPES_H=0
6652 fi
6653
6654
6655
6656 :
6657
6658
6659
6660
6661
6662
6663
6664
6665 if test $APPLE_UNIVERSAL_BUILD = 0; then
6666
6667
6668 for gltype in ptrdiff_t size_t ; do
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6670 $as_echo_n "checking for bit size of $gltype... " >&6; }
6671 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6675 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6676 included before <wchar.h>. */
6677 #include <stddef.h>
6678 #include <signal.h>
6679 #if HAVE_WCHAR_H
6680 # include <stdio.h>
6681 # include <time.h>
6682 # include <wchar.h>
6683 #endif
6684
6685 #include <limits.h>"; then :
6686
6687 else
6688 result=unknown
6689 fi
6690
6691 eval gl_cv_bitsizeof_${gltype}=\$result
6692
6693 fi
6694 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6696 $as_echo "$ac_res" >&6; }
6697 eval result=\$gl_cv_bitsizeof_${gltype}
6698 if test $result = unknown; then
6699 result=0
6700 fi
6701 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6702 cat >>confdefs.h <<_ACEOF
6703 #define BITSIZEOF_${GLTYPE} $result
6704 _ACEOF
6705
6706 eval BITSIZEOF_${GLTYPE}=\$result
6707 done
6708
6709
6710 fi
6711
6712
6713 for gltype in sig_atomic_t wchar_t wint_t ; do
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6715 $as_echo_n "checking for bit size of $gltype... " >&6; }
6716 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6717 $as_echo_n "(cached) " >&6
6718 else
6719 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6720 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6721 included before <wchar.h>. */
6722 #include <stddef.h>
6723 #include <signal.h>
6724 #if HAVE_WCHAR_H
6725 # include <stdio.h>
6726 # include <time.h>
6727 # include <wchar.h>
6728 #endif
6729
6730 #include <limits.h>"; then :
6731
6732 else
6733 result=unknown
6734 fi
6735
6736 eval gl_cv_bitsizeof_${gltype}=\$result
6737
6738 fi
6739 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6741 $as_echo "$ac_res" >&6; }
6742 eval result=\$gl_cv_bitsizeof_${gltype}
6743 if test $result = unknown; then
6744 result=0
6745 fi
6746 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6747 cat >>confdefs.h <<_ACEOF
6748 #define BITSIZEOF_${GLTYPE} $result
6749 _ACEOF
6750
6751 eval BITSIZEOF_${GLTYPE}=\$result
6752 done
6753
6754
6755
6756
6757 for gltype in sig_atomic_t wchar_t wint_t ; do
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6759 $as_echo_n "checking whether $gltype is signed... " >&6; }
6760 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6765
6766 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6767 included before <wchar.h>. */
6768 #include <stddef.h>
6769 #include <signal.h>
6770 #if HAVE_WCHAR_H
6771 # include <stdio.h>
6772 # include <time.h>
6773 # include <wchar.h>
6774 #endif
6775
6776 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6777 int
6778 main ()
6779 {
6780
6781 ;
6782 return 0;
6783 }
6784 _ACEOF
6785 if ac_fn_c_try_compile "$LINENO"; then :
6786 result=yes
6787 else
6788 result=no
6789 fi
6790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6791 eval gl_cv_type_${gltype}_signed=\$result
6792
6793 fi
6794 eval ac_res=\$gl_cv_type_${gltype}_signed
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6796 $as_echo "$ac_res" >&6; }
6797 eval result=\$gl_cv_type_${gltype}_signed
6798 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6799 if test "$result" = yes; then
6800 cat >>confdefs.h <<_ACEOF
6801 #define HAVE_SIGNED_${GLTYPE} 1
6802 _ACEOF
6803
6804 eval HAVE_SIGNED_${GLTYPE}=1
6805 else
6806 eval HAVE_SIGNED_${GLTYPE}=0
6807 fi
6808 done
6809
6810
6811 gl_cv_type_ptrdiff_t_signed=yes
6812 gl_cv_type_size_t_signed=no
6813 if test $APPLE_UNIVERSAL_BUILD = 0; then
6814
6815
6816 for gltype in ptrdiff_t size_t ; do
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6818 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6819 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 eval gl_cv_type_${gltype}_suffix=no
6823 eval result=\$gl_cv_type_${gltype}_signed
6824 if test "$result" = yes; then
6825 glsufu=
6826 else
6827 glsufu=u
6828 fi
6829 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6830 case $glsuf in
6831 '') gltype1='int';;
6832 l) gltype1='long int';;
6833 ll) gltype1='long long int';;
6834 i64) gltype1='__int64';;
6835 u) gltype1='unsigned int';;
6836 ul) gltype1='unsigned long int';;
6837 ull) gltype1='unsigned long long int';;
6838 ui64)gltype1='unsigned __int64';;
6839 esac
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6842
6843 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6844 included before <wchar.h>. */
6845 #include <stddef.h>
6846 #include <signal.h>
6847 #if HAVE_WCHAR_H
6848 # include <stdio.h>
6849 # include <time.h>
6850 # include <wchar.h>
6851 #endif
6852
6853 extern $gltype foo;
6854 extern $gltype1 foo;
6855 int
6856 main ()
6857 {
6858
6859 ;
6860 return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 eval gl_cv_type_${gltype}_suffix=\$glsuf
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 eval result=\$gl_cv_type_${gltype}_suffix
6868 test "$result" != no && break
6869 done
6870 fi
6871 eval ac_res=\$gl_cv_type_${gltype}_suffix
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6873 $as_echo "$ac_res" >&6; }
6874 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6875 eval result=\$gl_cv_type_${gltype}_suffix
6876 test "$result" = no && result=
6877 eval ${GLTYPE}_SUFFIX=\$result
6878 cat >>confdefs.h <<_ACEOF
6879 #define ${GLTYPE}_SUFFIX $result
6880 _ACEOF
6881
6882 done
6883
6884
6885 fi
6886
6887
6888 for gltype in sig_atomic_t wchar_t wint_t ; do
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6890 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6891 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 eval gl_cv_type_${gltype}_suffix=no
6895 eval result=\$gl_cv_type_${gltype}_signed
6896 if test "$result" = yes; then
6897 glsufu=
6898 else
6899 glsufu=u
6900 fi
6901 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6902 case $glsuf in
6903 '') gltype1='int';;
6904 l) gltype1='long int';;
6905 ll) gltype1='long long int';;
6906 i64) gltype1='__int64';;
6907 u) gltype1='unsigned int';;
6908 ul) gltype1='unsigned long int';;
6909 ull) gltype1='unsigned long long int';;
6910 ui64)gltype1='unsigned __int64';;
6911 esac
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914
6915 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6916 included before <wchar.h>. */
6917 #include <stddef.h>
6918 #include <signal.h>
6919 #if HAVE_WCHAR_H
6920 # include <stdio.h>
6921 # include <time.h>
6922 # include <wchar.h>
6923 #endif
6924
6925 extern $gltype foo;
6926 extern $gltype1 foo;
6927 int
6928 main ()
6929 {
6930
6931 ;
6932 return 0;
6933 }
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"; then :
6936 eval gl_cv_type_${gltype}_suffix=\$glsuf
6937 fi
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939 eval result=\$gl_cv_type_${gltype}_suffix
6940 test "$result" != no && break
6941 done
6942 fi
6943 eval ac_res=\$gl_cv_type_${gltype}_suffix
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6945 $as_echo "$ac_res" >&6; }
6946 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6947 eval result=\$gl_cv_type_${gltype}_suffix
6948 test "$result" = no && result=
6949 eval ${GLTYPE}_SUFFIX=\$result
6950 cat >>confdefs.h <<_ACEOF
6951 #define ${GLTYPE}_SUFFIX $result
6952 _ACEOF
6953
6954 done
6955
6956
6957
6958 STDINT_H=stdint.h
6959 fi
6960
6961
6962 # Code from module string:
6963
6964
6965
6966 # Code from module warn-on-use:
6967 # Code from module wchar:
6968
6969
6970
6971
6972 :
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982 :
6983
6984
6985
6986
6987
6988
6989
6990 if test $gl_cv_have_include_next = yes; then
6991 gl_cv_next_wchar_h='<'wchar.h'>'
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
6994 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
6995 if test "${gl_cv_next_wchar_h+set}" = set; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998
6999 if test $ac_cv_header_wchar_h = yes; then
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002 #include <wchar.h>
7003
7004 _ACEOF
7005 case "$host_os" in
7006 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7007 *) gl_absname_cpp="$ac_cpp" ;;
7008 esac
7009 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7010 sed -n '\#/wchar.h#{
7011 s#.*"\(.*/wchar.h\)".*#\1#
7012 s#^/[^/]#//&#
7013 p
7014 q
7015 }'`'"'
7016 else
7017 gl_cv_next_wchar_h='<'wchar.h'>'
7018 fi
7019
7020 fi
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
7022 $as_echo "$gl_cv_next_wchar_h" >&6; }
7023 fi
7024 NEXT_WCHAR_H=$gl_cv_next_wchar_h
7025
7026 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7028 gl_next_as_first_directive='<'wchar.h'>'
7029 else
7030 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7031 gl_next_as_first_directive=$gl_cv_next_wchar_h
7032 fi
7033 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
7034
7035
7036
7037 if test $ac_cv_header_wchar_h = yes; then
7038 HAVE_WCHAR_H=1
7039 else
7040 HAVE_WCHAR_H=0
7041 fi
7042
7043
7044
7045 if test $gt_cv_c_wint_t = yes; then
7046 HAVE_WINT_T=1
7047 else
7048 HAVE_WINT_T=0
7049 fi
7050
7051
7052
7053 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth; do
7054 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7056 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7057 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062
7063 /* Some systems require additional headers. */
7064 #ifndef __GLIBC__
7065 # include <stddef.h>
7066 # include <stdio.h>
7067 # include <time.h>
7068 #endif
7069 #include <wchar.h>
7070
7071 int
7072 main ()
7073 {
7074 #undef $gl_func
7075 (void) $gl_func;
7076 ;
7077 return 0;
7078 }
7079 _ACEOF
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081 eval "$as_gl_Symbol=yes"
7082 else
7083 eval "$as_gl_Symbol=no"
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7086 fi
7087 eval ac_res=\$$as_gl_Symbol
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7089 $as_echo "$ac_res" >&6; }
7090 eval as_val=\$$as_gl_Symbol
7091 if test "x$as_val" = x""yes; then :
7092 cat >>confdefs.h <<_ACEOF
7093 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7094 _ACEOF
7095
7096 eval ac_cv_have_decl_$gl_func=yes
7097 fi
7098 done
7099
7100
7101 # Code from module dummy:
7102 # End of code from modules
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112 gltests_libdeps=
7113 gltests_ltlibdeps=
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123 gl_source_base='tests'
7124 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
7125
7126 gl_module_indicator_condition=$gltests_WITNESS
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136 LIBGNU_LIBDEPS="$gl_libdeps"
7137
7138 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
7139
7140
7141
7142 # For Makefile dependencies.
7143 GNULIB_STDINT_H=
7144 if test x"$STDINT_H" != x; then
7145 GNULIB_STDINT_H=gnulib/$STDINT_H
7146 fi
7147
7148
7149 PACKAGE=gdb
7150
7151 cat >>confdefs.h <<_ACEOF
7152 #define PACKAGE "$PACKAGE"
7153 _ACEOF
7154
7155
7156
7157 # Do we have a single-tree copy of texinfo? Even if we do, we can't
7158 # rely on it - libiberty is built before texinfo.
7159 # Extract the first word of "makeinfo", so it can be a program name with args.
7160 set dummy makeinfo; ac_word=$2
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162 $as_echo_n "checking for $ac_word... " >&6; }
7163 if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7164 $as_echo_n "(cached) " >&6
7165 else
7166 if test -n "$MAKEINFO"; then
7167 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7168 else
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_exec_ext in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_MAKEINFO="makeinfo"
7177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178 break 2
7179 fi
7180 done
7181 done
7182 IFS=$as_save_IFS
7183
7184 fi
7185 fi
7186 MAKEINFO=$ac_cv_prog_MAKEINFO
7187 if test -n "$MAKEINFO"; then
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7189 $as_echo "$MAKEINFO" >&6; }
7190 else
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7192 $as_echo "no" >&6; }
7193 fi
7194
7195
7196 if test "x$MAKEINFO" = "x"; then
7197 as_fn_error "makeinfo is required for compilation" "$LINENO" 5
7198 else
7199 case "$MAKEINFO" in
7200 */missing\ makeinfo*)
7201 as_fn_error "makeinfo is required for compilation" "$LINENO" 5
7202 ;;
7203 esac
7204 fi
7205
7206
7207 # --split-size=5000000 may be already in $MAKEINFO from parent configure.
7208 # Re-running configure in gdb/ would lose it so ensure it stays present.
7209 MAKEINFOFLAGS=${MAKEINFOFLAGS---split-size=5000000}
7210
7211
7212 MAKEINFO_EXTRA_FLAGS=""
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
7214 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
7215 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
7216 $as_echo_n "(cached) " >&6
7217 else
7218 echo '@clicksequence{a @click{} b}' >conftest.texinfo
7219 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
7220 gdb_cv_have_makeinfo_click=yes
7221 else
7222 gdb_cv_have_makeinfo_click=no
7223 fi
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
7226 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
7227 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
7228 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
7229 fi
7230
7231
7232 # GDB does not use automake, but gnulib does. This line lets us
7233 # generate its Makefile.in.
7234 am__api_version='1.11'
7235
7236 # Find a good install program. We prefer a C program (faster),
7237 # so one script is as good as another. But avoid the broken or
7238 # incompatible versions:
7239 # SysV /etc/install, /usr/sbin/install
7240 # SunOS /usr/etc/install
7241 # IRIX /sbin/install
7242 # AIX /bin/install
7243 # AmigaOS /C/install, which installs bootblocks on floppy discs
7244 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7245 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7246 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7247 # OS/2's system install, which has a completely different semantic
7248 # ./install, which can be erroneously created by make from ./install.sh.
7249 # Reject install programs that cannot install multiple files.
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7251 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7252 if test -z "$INSTALL"; then
7253 if test "${ac_cv_path_install+set}" = set; then :
7254 $as_echo_n "(cached) " >&6
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 # Account for people who put trailing slashes in PATH elements.
7262 case $as_dir/ in #((
7263 ./ | .// | /[cC]/* | \
7264 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7265 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7266 /usr/ucb/* ) ;;
7267 *)
7268 # OSF1 and SCO ODT 3.0 have their own names for install.
7269 # Don't use installbsd from OSF since it installs stuff as root
7270 # by default.
7271 for ac_prog in ginstall scoinst install; do
7272 for ac_exec_ext in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7274 if test $ac_prog = install &&
7275 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7276 # AIX install. It has an incompatible calling convention.
7277 :
7278 elif test $ac_prog = install &&
7279 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7280 # program-specific install script used by HP pwplus--don't use.
7281 :
7282 else
7283 rm -rf conftest.one conftest.two conftest.dir
7284 echo one > conftest.one
7285 echo two > conftest.two
7286 mkdir conftest.dir
7287 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7288 test -s conftest.one && test -s conftest.two &&
7289 test -s conftest.dir/conftest.one &&
7290 test -s conftest.dir/conftest.two
7291 then
7292 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7293 break 3
7294 fi
7295 fi
7296 fi
7297 done
7298 done
7299 ;;
7300 esac
7301
7302 done
7303 IFS=$as_save_IFS
7304
7305 rm -rf conftest.one conftest.two conftest.dir
7306
7307 fi
7308 if test "${ac_cv_path_install+set}" = set; then
7309 INSTALL=$ac_cv_path_install
7310 else
7311 # As a last resort, use the slow shell script. Don't cache a
7312 # value for INSTALL within a source directory, because that will
7313 # break other packages using the cache if that directory is
7314 # removed, or if the value is a relative name.
7315 INSTALL=$ac_install_sh
7316 fi
7317 fi
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7319 $as_echo "$INSTALL" >&6; }
7320
7321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7322 # It thinks the first close brace ends the variable substitution.
7323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7324
7325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7326
7327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7328
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
7330 $as_echo_n "checking whether build environment is sane... " >&6; }
7331 # Just in case
7332 sleep 1
7333 echo timestamp > conftest.file
7334 # Reject unsafe characters in $srcdir or the absolute working directory
7335 # name. Accept space and tab only in the latter.
7336 am_lf='
7337 '
7338 case `pwd` in
7339 *[\\\"\#\$\&\'\`$am_lf]*)
7340 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
7341 esac
7342 case $srcdir in
7343 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
7344 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
7345 esac
7346
7347 # Do `set' in a subshell so we don't clobber the current shell's
7348 # arguments. Must try -L first in case configure is actually a
7349 # symlink; some systems play weird games with the mod time of symlinks
7350 # (eg FreeBSD returns the mod time of the symlink's containing
7351 # directory).
7352 if (
7353 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7354 if test "$*" = "X"; then
7355 # -L didn't work.
7356 set X `ls -t "$srcdir/configure" conftest.file`
7357 fi
7358 rm -f conftest.file
7359 if test "$*" != "X $srcdir/configure conftest.file" \
7360 && test "$*" != "X conftest.file $srcdir/configure"; then
7361
7362 # If neither matched, then we have a broken ls. This can happen
7363 # if, for instance, CONFIG_SHELL is bash and it inherits a
7364 # broken ls alias from the environment. This has actually
7365 # happened. Such a system could not be considered "sane".
7366 as_fn_error "ls -t appears to fail. Make sure there is not a broken
7367 alias in your environment" "$LINENO" 5
7368 fi
7369
7370 test "$2" = conftest.file
7371 )
7372 then
7373 # Ok.
7374 :
7375 else
7376 as_fn_error "newly created file is older than distributed files!
7377 Check your system clock" "$LINENO" 5
7378 fi
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7380 $as_echo "yes" >&6; }
7381 test "$program_prefix" != NONE &&
7382 program_transform_name="s&^&$program_prefix&;$program_transform_name"
7383 # Use a double $ so make ignores it.
7384 test "$program_suffix" != NONE &&
7385 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
7386 # Double any \ or $.
7387 # By default was `s,x,x', remove it if useless.
7388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
7389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
7390
7391 # expand $ac_aux_dir to an absolute path
7392 am_aux_dir=`cd $ac_aux_dir && pwd`
7393
7394 if test x"${MISSING+set}" != xset; then
7395 case $am_aux_dir in
7396 *\ * | *\ *)
7397 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7398 *)
7399 MISSING="\${SHELL} $am_aux_dir/missing" ;;
7400 esac
7401 fi
7402 # Use eval to expand $SHELL
7403 if eval "$MISSING --run true"; then
7404 am_missing_run="$MISSING --run "
7405 else
7406 am_missing_run=
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
7408 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
7409 fi
7410
7411 if test x"${install_sh}" != xset; then
7412 case $am_aux_dir in
7413 *\ * | *\ *)
7414 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7415 *)
7416 install_sh="\${SHELL} $am_aux_dir/install-sh"
7417 esac
7418 fi
7419
7420 # Installed binaries are usually stripped using `strip' when the user
7421 # run `make install-strip'. However `strip' might not be the right
7422 # tool to use in cross-compilation environments, therefore Automake
7423 # will honor the `STRIP' environment variable to overrule this program.
7424 if test "$cross_compiling" != no; then
7425 if test -n "$ac_tool_prefix"; then
7426 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7427 set dummy ${ac_tool_prefix}strip; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if test "${ac_cv_prog_STRIP+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$STRIP"; then
7434 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7446 fi
7447 done
7448 done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 STRIP=$ac_cv_prog_STRIP
7454 if test -n "$STRIP"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7456 $as_echo "$STRIP" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462
7463 fi
7464 if test -z "$ac_cv_prog_STRIP"; then
7465 ac_ct_STRIP=$STRIP
7466 # Extract the first word of "strip", so it can be a program name with args.
7467 set dummy strip; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7471 $as_echo_n "(cached) " >&6
7472 else
7473 if test -n "$ac_ct_STRIP"; then
7474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7475 else
7476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7477 for as_dir in $PATH
7478 do
7479 IFS=$as_save_IFS
7480 test -z "$as_dir" && as_dir=.
7481 for ac_exec_ext in '' $ac_executable_extensions; do
7482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7483 ac_cv_prog_ac_ct_STRIP="strip"
7484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7485 break 2
7486 fi
7487 done
7488 done
7489 IFS=$as_save_IFS
7490
7491 fi
7492 fi
7493 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7494 if test -n "$ac_ct_STRIP"; then
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7496 $as_echo "$ac_ct_STRIP" >&6; }
7497 else
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499 $as_echo "no" >&6; }
7500 fi
7501
7502 if test "x$ac_ct_STRIP" = x; then
7503 STRIP=":"
7504 else
7505 case $cross_compiling:$ac_tool_warned in
7506 yes:)
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7510 esac
7511 STRIP=$ac_ct_STRIP
7512 fi
7513 else
7514 STRIP="$ac_cv_prog_STRIP"
7515 fi
7516
7517 fi
7518 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7519
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
7521 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7522 if test -z "$MKDIR_P"; then
7523 if test "${ac_cv_path_mkdir+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7528 do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_prog in mkdir gmkdir; do
7532 for ac_exec_ext in '' $ac_executable_extensions; do
7533 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7534 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7535 'mkdir (GNU coreutils) '* | \
7536 'mkdir (coreutils) '* | \
7537 'mkdir (fileutils) '4.1*)
7538 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7539 break 3;;
7540 esac
7541 done
7542 done
7543 done
7544 IFS=$as_save_IFS
7545
7546 fi
7547
7548 if test "${ac_cv_path_mkdir+set}" = set; then
7549 MKDIR_P="$ac_cv_path_mkdir -p"
7550 else
7551 # As a last resort, use the slow shell script. Don't cache a
7552 # value for MKDIR_P within a source directory, because that will
7553 # break other packages using the cache if that directory is
7554 # removed, or if the value is a relative name.
7555 test -d ./--version && rmdir ./--version
7556 MKDIR_P="$ac_install_sh -d"
7557 fi
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7560 $as_echo "$MKDIR_P" >&6; }
7561
7562
7563 mkdir_p="$MKDIR_P"
7564 case $mkdir_p in
7565 [\\/$]* | ?:[\\/]*) ;;
7566 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7567 esac
7568
7569 for ac_prog in gawk mawk nawk awk
7570 do
7571 # Extract the first word of "$ac_prog", so it can be a program name with args.
7572 set dummy $ac_prog; ac_word=$2
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574 $as_echo_n "checking for $ac_word... " >&6; }
7575 if test "${ac_cv_prog_AWK+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 if test -n "$AWK"; then
7579 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_prog_AWK="$ac_prog"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 AWK=$ac_cv_prog_AWK
7599 if test -n "$AWK"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7601 $as_echo "$AWK" >&6; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607
7608 test -n "$AWK" && break
7609 done
7610
7611 ac_config_commands="$ac_config_commands depfiles"
7612
7613
7614 am_make=${MAKE-make}
7615 cat > confinc << 'END'
7616 am__doit:
7617 @echo this is the am__doit target
7618 .PHONY: am__doit
7619 END
7620 # If we don't find an include directive, just comment out the code.
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
7622 $as_echo_n "checking for style of include used by $am_make... " >&6; }
7623 am__include="#"
7624 am__quote=
7625 _am_result=none
7626 # First try GNU make style include.
7627 echo "include confinc" > confmf
7628 # Ignore all kinds of additional output from `make'.
7629 case `$am_make -s -f confmf 2> /dev/null` in #(
7630 *the\ am__doit\ target*)
7631 am__include=include
7632 am__quote=
7633 _am_result=GNU
7634 ;;
7635 esac
7636 # Now try BSD make style include.
7637 if test "$am__include" = "#"; then
7638 echo '.include "confinc"' > confmf
7639 case `$am_make -s -f confmf 2> /dev/null` in #(
7640 *the\ am__doit\ target*)
7641 am__include=.include
7642 am__quote="\""
7643 _am_result=BSD
7644 ;;
7645 esac
7646 fi
7647
7648
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
7650 $as_echo "$_am_result" >&6; }
7651 rm -f confinc confmf
7652
7653 # Check whether --enable-dependency-tracking was given.
7654 if test "${enable_dependency_tracking+set}" = set; then :
7655 enableval=$enable_dependency_tracking;
7656 fi
7657
7658 if test "x$enable_dependency_tracking" != xno; then
7659 am_depcomp="$ac_aux_dir/depcomp"
7660 AMDEPBACKSLASH='\'
7661 fi
7662 if test "x$enable_dependency_tracking" != xno; then
7663 AMDEP_TRUE=
7664 AMDEP_FALSE='#'
7665 else
7666 AMDEP_TRUE='#'
7667 AMDEP_FALSE=
7668 fi
7669
7670
7671 if test "`cd $srcdir && pwd`" != "`pwd`"; then
7672 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7673 # is not polluted with repeated "-I."
7674 am__isrc=' -I$(srcdir)'
7675 # test to see if srcdir already configured
7676 if test -f $srcdir/config.status; then
7677 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
7678 fi
7679 fi
7680
7681 # test whether we have cygpath
7682 if test -z "$CYGPATH_W"; then
7683 if (cygpath --version) >/dev/null 2>/dev/null; then
7684 CYGPATH_W='cygpath -w'
7685 else
7686 CYGPATH_W=echo
7687 fi
7688 fi
7689
7690
7691 # Define the identity of the package.
7692 PACKAGE=gdb
7693 VERSION=UNUSED-VERSION
7694
7695
7696 # Some tools Automake needs.
7697
7698 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
7699
7700
7701 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
7702
7703
7704 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
7705
7706
7707 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
7708
7709
7710 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
7711
7712 # We need awk for the "check" target. The system "awk" is bad on
7713 # some platforms.
7714 # Always define AMTAR for backward compatibility.
7715
7716 AMTAR=${AMTAR-"${am_missing_run}tar"}
7717
7718 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
7719
7720
7721
7722
7723 depcc="$CC" am_compiler_list=
7724
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7726 $as_echo_n "checking dependency style of $depcc... " >&6; }
7727 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7731 # We make a subdir and do the tests there. Otherwise we can end up
7732 # making bogus files that we don't know about and never remove. For
7733 # instance it was reported that on HP-UX the gcc test will end up
7734 # making a dummy file named `D' -- because `-MD' means `put the output
7735 # in D'.
7736 mkdir conftest.dir
7737 # Copy depcomp to subdir because otherwise we won't find it if we're
7738 # using a relative directory.
7739 cp "$am_depcomp" conftest.dir
7740 cd conftest.dir
7741 # We will build objects and dependencies in a subdirectory because
7742 # it helps to detect inapplicable dependency modes. For instance
7743 # both Tru64's cc and ICC support -MD to output dependencies as a
7744 # side effect of compilation, but ICC will put the dependencies in
7745 # the current directory while Tru64 will put them in the object
7746 # directory.
7747 mkdir sub
7748
7749 am_cv_CC_dependencies_compiler_type=none
7750 if test "$am_compiler_list" = ""; then
7751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7752 fi
7753 am__universal=false
7754 case " $depcc " in #(
7755 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7756 esac
7757
7758 for depmode in $am_compiler_list; do
7759 # Setup a source with many dependencies, because some compilers
7760 # like to wrap large dependency lists on column 80 (with \), and
7761 # we should not choose a depcomp mode which is confused by this.
7762 #
7763 # We need to recreate these files for each test, as the compiler may
7764 # overwrite some of them when testing with obscure command lines.
7765 # This happens at least with the AIX C compiler.
7766 : > sub/conftest.c
7767 for i in 1 2 3 4 5 6; do
7768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7769 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7770 # Solaris 8's {/usr,}/bin/sh.
7771 touch sub/conftst$i.h
7772 done
7773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7774
7775 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7776 # mode. It turns out that the SunPro C++ compiler does not properly
7777 # handle `-M -o', and we need to detect this. Also, some Intel
7778 # versions had trouble with output in subdirs
7779 am__obj=sub/conftest.${OBJEXT-o}
7780 am__minus_obj="-o $am__obj"
7781 case $depmode in
7782 gcc)
7783 # This depmode causes a compiler race in universal mode.
7784 test "$am__universal" = false || continue
7785 ;;
7786 nosideeffect)
7787 # after this tag, mechanisms are not by side-effect, so they'll
7788 # only be used when explicitly requested
7789 if test "x$enable_dependency_tracking" = xyes; then
7790 continue
7791 else
7792 break
7793 fi
7794 ;;
7795 msvisualcpp | msvcmsys)
7796 # This compiler won't grok `-c -o', but also, the minuso test has
7797 # not run yet. These depmodes are late enough in the game, and
7798 # so weak that their functioning should not be impacted.
7799 am__obj=conftest.${OBJEXT-o}
7800 am__minus_obj=
7801 ;;
7802 none) break ;;
7803 esac
7804 if depmode=$depmode \
7805 source=sub/conftest.c object=$am__obj \
7806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7807 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7808 >/dev/null 2>conftest.err &&
7809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7811 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7813 # icc doesn't choke on unknown options, it will just issue warnings
7814 # or remarks (even with -Werror). So we grep stderr for any message
7815 # that says an option was ignored or not supported.
7816 # When given -MP, icc 7.0 and 7.1 complain thusly:
7817 # icc: Command line warning: ignoring option '-M'; no argument required
7818 # The diagnosis changed in icc 8.0:
7819 # icc: Command line remark: option '-MP' not supported
7820 if (grep 'ignoring option' conftest.err ||
7821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7822 am_cv_CC_dependencies_compiler_type=$depmode
7823 break
7824 fi
7825 fi
7826 done
7827
7828 cd ..
7829 rm -rf conftest.dir
7830 else
7831 am_cv_CC_dependencies_compiler_type=none
7832 fi
7833
7834 fi
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7836 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7837 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7838
7839 if
7840 test "x$enable_dependency_tracking" != xno \
7841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7842 am__fastdepCC_TRUE=
7843 am__fastdepCC_FALSE='#'
7844 else
7845 am__fastdepCC_TRUE='#'
7846 am__fastdepCC_FALSE=
7847 fi
7848
7849
7850
7851
7852
7853
7854 # Check whether --with-separate-debug-dir was given.
7855 if test "${with_separate_debug_dir+set}" = set; then :
7856 withval=$with_separate_debug_dir;
7857 DEBUGDIR=$withval
7858 else
7859 DEBUGDIR=${libdir}/debug
7860 fi
7861
7862
7863 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7864 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7865 ac_define_dir=`eval echo $DEBUGDIR`
7866 ac_define_dir=`eval echo $ac_define_dir`
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define DEBUGDIR "$ac_define_dir"
7870 _ACEOF
7871
7872
7873
7874
7875 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7876 if test "x$prefix" = xNONE; then
7877 test_prefix=/usr/local
7878 else
7879 test_prefix=$prefix
7880 fi
7881 else
7882 test_prefix=$exec_prefix
7883 fi
7884 value=0
7885 case ${ac_define_dir} in
7886 "${test_prefix}"|"${test_prefix}/"*|\
7887 '${exec_prefix}'|'${exec_prefix}/'*)
7888 value=1
7889 ;;
7890 esac
7891
7892 cat >>confdefs.h <<_ACEOF
7893 #define DEBUGDIR_RELOCATABLE $value
7894 _ACEOF
7895
7896
7897
7898
7899 # GDB's datadir relocation
7900
7901
7902
7903 # Check whether --with-gdb-datadir was given.
7904 if test "${with_gdb_datadir+set}" = set; then :
7905 withval=$with_gdb_datadir;
7906 GDB_DATADIR=$withval
7907 else
7908 GDB_DATADIR=${datadir}/gdb
7909 fi
7910
7911
7912 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7914 ac_define_dir=`eval echo $GDB_DATADIR`
7915 ac_define_dir=`eval echo $ac_define_dir`
7916
7917 cat >>confdefs.h <<_ACEOF
7918 #define GDB_DATADIR "$ac_define_dir"
7919 _ACEOF
7920
7921
7922
7923
7924 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7925 if test "x$prefix" = xNONE; then
7926 test_prefix=/usr/local
7927 else
7928 test_prefix=$prefix
7929 fi
7930 else
7931 test_prefix=$exec_prefix
7932 fi
7933 value=0
7934 case ${ac_define_dir} in
7935 "${test_prefix}"|"${test_prefix}/"*|\
7936 '${exec_prefix}'|'${exec_prefix}/'*)
7937 value=1
7938 ;;
7939 esac
7940
7941 cat >>confdefs.h <<_ACEOF
7942 #define GDB_DATADIR_RELOCATABLE $value
7943 _ACEOF
7944
7945
7946
7947
7948
7949 # Check whether --with-relocated-sources was given.
7950 if test "${with_relocated_sources+set}" = set; then :
7951 withval=$with_relocated_sources; reloc_srcdir="${withval}"
7952
7953 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7955 ac_define_dir=`eval echo $reloc_srcdir`
7956 ac_define_dir=`eval echo $ac_define_dir`
7957
7958 cat >>confdefs.h <<_ACEOF
7959 #define RELOC_SRCDIR "$ac_define_dir"
7960 _ACEOF
7961
7962
7963
7964 fi
7965
7966
7967
7968
7969 subdirs="$subdirs testsuite"
7970
7971
7972 # Check whether to support alternative target configurations
7973 # Check whether --enable-targets was given.
7974 if test "${enable_targets+set}" = set; then :
7975 enableval=$enable_targets; case "${enableval}" in
7976 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
7977 ;;
7978 no) enable_targets= ;;
7979 *) enable_targets=$enableval ;;
7980 esac
7981 fi
7982
7983
7984 # Check whether to enable 64-bit support on 32-bit hosts
7985 # Check whether --enable-64-bit-bfd was given.
7986 if test "${enable_64_bit_bfd+set}" = set; then :
7987 enableval=$enable_64_bit_bfd; case "${enableval}" in
7988 yes) want64=true ;;
7989 no) want64=false ;;
7990 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
7991 esac
7992 else
7993 want64=false
7994 fi
7995
7996 # Provide defaults for some variables set by the per-host and per-target
7997 # configuration.
7998 gdb_host_obs=posix-hdep.o
7999
8000 if test "${target}" = "${host}"; then
8001 gdb_native=yes
8002 else
8003 gdb_native=no
8004 fi
8005
8006 . $srcdir/configure.host
8007
8008 # Accumulate some settings from configure.tgt over all enabled targets
8009
8010 TARGET_OBS=
8011 all_targets=
8012
8013 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
8014 do
8015 if test "$targ_alias" = "all"; then
8016 all_targets=true
8017 else
8018 # Canonicalize the secondary target names.
8019 result=`$ac_config_sub $targ_alias 2>/dev/null`
8020 if test -n "$result"; then
8021 targ=$result
8022 else
8023 targ=$targ_alias
8024 fi
8025
8026 . ${srcdir}/configure.tgt
8027
8028 if test -z "${gdb_target_obs}"; then :
8029 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
8030 fi
8031
8032 # Target-specific object files
8033 for i in ${gdb_target_obs}; do
8034 case " $TARGET_OBS " in
8035 *" ${i} "*) ;;
8036 *)
8037 TARGET_OBS="$TARGET_OBS ${i}"
8038 ;;
8039 esac
8040 done
8041
8042 # Check whether this target needs 64-bit CORE_ADDR
8043 if test x${want64} = xfalse; then
8044 . ${srcdir}/../bfd/config.bfd
8045 fi
8046 fi
8047 done
8048
8049 if test x${all_targets} = xtrue; then
8050
8051 # We want all 64-bit targets if we either:
8052 # - run on a 64-bit host or
8053 # - already require 64-bit support for some other target or
8054 # - the --enable-64-bit-bfd option was supplied
8055 # Otherwise we only support all 32-bit targets.
8056 #
8057 # NOTE: This test must be in sync with the corresponding
8058 # tests in BFD!
8059
8060 if test x${want64} = xfalse; then
8061 # The cast to long int works around a bug in the HP C Compiler
8062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8064 # This bug is HP SR number 8606223364.
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
8066 $as_echo_n "checking size of long... " >&6; }
8067 if test "${ac_cv_sizeof_long+set}" = set; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
8071
8072 else
8073 if test "$ac_cv_type_long" = yes; then
8074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8076 { as_fn_set_status 77
8077 as_fn_error "cannot compute sizeof (long)
8078 See \`config.log' for more details." "$LINENO" 5; }; }
8079 else
8080 ac_cv_sizeof_long=0
8081 fi
8082 fi
8083
8084 fi
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
8086 $as_echo "$ac_cv_sizeof_long" >&6; }
8087
8088
8089
8090 cat >>confdefs.h <<_ACEOF
8091 #define SIZEOF_LONG $ac_cv_sizeof_long
8092 _ACEOF
8093
8094
8095 if test "x${ac_cv_sizeof_long}" = "x8"; then
8096 want64=true
8097 fi
8098 fi
8099 if test x${want64} = xtrue; then
8100 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
8101 else
8102 TARGET_OBS='$(ALL_TARGET_OBS)'
8103 fi
8104 fi
8105
8106
8107
8108 # For other settings, only the main target counts.
8109 gdb_sim=
8110 gdb_osabi=
8111 build_gdbserver=
8112 targ=$target; . ${srcdir}/configure.tgt
8113
8114 # Fetch the default architecture and default target vector from BFD.
8115 targ=$target; . $srcdir/../bfd/config.bfd
8116
8117 # We only want the first architecture, so strip off the others if
8118 # there is more than one.
8119 targ_archs=`echo $targ_archs | sed 's/ .*//'`
8120
8121 if test "x$targ_archs" != x; then
8122
8123 cat >>confdefs.h <<_ACEOF
8124 #define DEFAULT_BFD_ARCH $targ_archs
8125 _ACEOF
8126
8127 fi
8128 if test "x$targ_defvec" != x; then
8129
8130 cat >>confdefs.h <<_ACEOF
8131 #define DEFAULT_BFD_VEC $targ_defvec
8132 _ACEOF
8133
8134 fi
8135
8136 # The CLI cannot be disabled yet, but may be in the future.
8137
8138 # Enable CLI.
8139 # Check whether --enable-gdbcli was given.
8140 if test "${enable_gdbcli+set}" = set; then :
8141 enableval=$enable_gdbcli; case $enableval in
8142 yes)
8143 ;;
8144 no)
8145 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
8146 *)
8147 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
8148 esac
8149 else
8150 enable_gdbcli=yes
8151 fi
8152
8153 if test x"$enable_gdbcli" = xyes; then
8154 if test -d $srcdir/cli; then
8155 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
8156 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
8157 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
8158 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
8159 fi
8160 fi
8161
8162 # Enable MI.
8163 # Check whether --enable-gdbmi was given.
8164 if test "${enable_gdbmi+set}" = set; then :
8165 enableval=$enable_gdbmi; case $enableval in
8166 yes | no)
8167 ;;
8168 *)
8169 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
8170 esac
8171 else
8172 enable_gdbmi=yes
8173 fi
8174
8175 if test x"$enable_gdbmi" = xyes; then
8176 if test -d $srcdir/mi; then
8177 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
8178 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
8179 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
8180 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
8181 fi
8182 fi
8183
8184 # Enable TUI.
8185 # Check whether --enable-tui was given.
8186 if test "${enable_tui+set}" = set; then :
8187 enableval=$enable_tui; case $enableval in
8188 yes | no | auto)
8189 ;;
8190 *)
8191 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
8192 esac
8193 else
8194 enable_tui=auto
8195 fi
8196
8197
8198 # Enable gdbtk.
8199 # Check whether --enable-gdbtk was given.
8200 if test "${enable_gdbtk+set}" = set; then :
8201 enableval=$enable_gdbtk; case $enableval in
8202 yes | no)
8203 ;;
8204 *)
8205 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
8206 esac
8207 else
8208 if test -d $srcdir/gdbtk; then
8209 enable_gdbtk=yes
8210 else
8211 enable_gdbtk=no
8212 fi
8213 fi
8214
8215 # We unconditionally disable gdbtk tests on selected platforms.
8216 case $host_os in
8217 go32* | windows*)
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
8219 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
8220 enable_gdbtk=no ;;
8221 esac
8222
8223 # Libunwind support.
8224
8225 # Check whether --with-libunwind was given.
8226 if test "${with_libunwind+set}" = set; then :
8227 withval=$with_libunwind; case "${withval}" in
8228 yes) enable_libunwind=yes ;;
8229 no) enable_libunwind=no ;;
8230 *) as_fn_error "bad value ${withval} for GDB with-libunwind option" "$LINENO" 5 ;;
8231 esac
8232 else
8233
8234 for ac_header in libunwind.h libunwind-ia64.h
8235 do :
8236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8237 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8238 eval as_val=\$$as_ac_Header
8239 if test "x$as_val" = x""yes; then :
8240 cat >>confdefs.h <<_ACEOF
8241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 _ACEOF
8243
8244 fi
8245
8246 done
8247
8248 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
8249 enable_libunwind=yes;
8250 fi
8251
8252 fi
8253
8254
8255 if test x"$enable_libunwind" = xyes; then
8256 for ac_header in libunwind.h libunwind-ia64.h
8257 do :
8258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8260 eval as_val=\$$as_ac_Header
8261 if test "x$as_val" = x""yes; then :
8262 cat >>confdefs.h <<_ACEOF
8263 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8264 _ACEOF
8265
8266 fi
8267
8268 done
8269
8270
8271 $as_echo "#define HAVE_LIBUNWIND 1" >>confdefs.h
8272
8273 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8274 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8275 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8276 fi
8277
8278 opt_curses=no
8279
8280 # Check whether --with-curses was given.
8281 if test "${with_curses+set}" = set; then :
8282 withval=$with_curses; opt_curses=$withval
8283 fi
8284
8285
8286 prefer_curses=no
8287 if test "$opt_curses" = "yes"; then
8288 prefer_curses=yes
8289 fi
8290
8291 # Profiling support.
8292 # Check whether --enable-profiling was given.
8293 if test "${enable_profiling+set}" = set; then :
8294 enableval=$enable_profiling; case $enableval in
8295 yes | no)
8296 ;;
8297 *)
8298 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
8299 esac
8300 else
8301 enable_profiling=no
8302 fi
8303
8304
8305 for ac_func in monstartup _mcleanup
8306 do :
8307 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8308 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8309 eval as_val=\$$as_ac_var
8310 if test "x$as_val" = x""yes; then :
8311 cat >>confdefs.h <<_ACEOF
8312 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8313 _ACEOF
8314
8315 fi
8316 done
8317
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
8319 $as_echo_n "checking for _etext... " >&6; }
8320 if test "${ac_cv_var__etext+set}" = set; then :
8321 $as_echo_n "(cached) " >&6
8322 else
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #include <stdlib.h>
8326 extern char _etext;
8327
8328 int
8329 main ()
8330 {
8331 free (&_etext);
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"; then :
8337 ac_cv_var__etext=yes
8338 else
8339 ac_cv_var__etext=no
8340 fi
8341 rm -f core conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
8345 $as_echo "$ac_cv_var__etext" >&6; }
8346 if test $ac_cv_var__etext = yes; then
8347
8348 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
8349
8350 fi
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
8352 $as_echo_n "checking for etext... " >&6; }
8353 if test "${ac_cv_var_etext+set}" = set; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8358 #include <stdlib.h>
8359 extern char etext;
8360
8361 int
8362 main ()
8363 {
8364 free (&etext);
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 if ac_fn_c_try_link "$LINENO"; then :
8370 ac_cv_var_etext=yes
8371 else
8372 ac_cv_var_etext=no
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext \
8375 conftest$ac_exeext conftest.$ac_ext
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
8378 $as_echo "$ac_cv_var_etext" >&6; }
8379 if test $ac_cv_var_etext = yes; then
8380
8381 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
8382
8383 fi
8384 if test "$enable_profiling" = yes ; then
8385 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8386 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
8387 fi
8388 PROFILE_CFLAGS=-pg
8389 OLD_CFLAGS="$CFLAGS"
8390 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8391
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
8393 $as_echo_n "checking whether $CC supports -pg... " >&6; }
8394 if test "${ac_cv_cc_supports_pg+set}" = set; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8399
8400 int
8401 main ()
8402 {
8403 int x;
8404 ;
8405 return 0;
8406 }
8407 _ACEOF
8408 if ac_fn_c_try_compile "$LINENO"; then :
8409 ac_cv_cc_supports_pg=yes
8410 else
8411 ac_cv_cc_supports_pg=no
8412 fi
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414 fi
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
8416 $as_echo "$ac_cv_cc_supports_pg" >&6; }
8417
8418 if test $ac_cv_cc_supports_pg = no; then
8419 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
8420 fi
8421
8422 CFLAGS="$OLD_CFLAGS"
8423 fi
8424
8425
8426
8427 # Check whether --with-pkgversion was given.
8428 if test "${with_pkgversion+set}" = set; then :
8429 withval=$with_pkgversion; case "$withval" in
8430 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
8431 no) PKGVERSION= ;;
8432 *) PKGVERSION="($withval) " ;;
8433 esac
8434 else
8435 PKGVERSION="(GDB) "
8436
8437 fi
8438
8439
8440
8441
8442
8443 # Check whether --with-bugurl was given.
8444 if test "${with_bugurl+set}" = set; then :
8445 withval=$with_bugurl; case "$withval" in
8446 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
8447 no) BUGURL=
8448 ;;
8449 *) BUGURL="$withval"
8450 ;;
8451 esac
8452 else
8453 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8454
8455 fi
8456
8457 case ${BUGURL} in
8458 "")
8459 REPORT_BUGS_TO=
8460 REPORT_BUGS_TEXI=
8461 ;;
8462 *)
8463 REPORT_BUGS_TO="<$BUGURL>"
8464 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8465 ;;
8466 esac;
8467
8468
8469
8470
8471 cat >>confdefs.h <<_ACEOF
8472 #define PKGVERSION "$PKGVERSION"
8473 _ACEOF
8474
8475
8476 cat >>confdefs.h <<_ACEOF
8477 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8478 _ACEOF
8479
8480
8481 # --------------------- #
8482 # Checks for programs. #
8483 # --------------------- #
8484
8485 for ac_prog in gawk mawk nawk awk
8486 do
8487 # Extract the first word of "$ac_prog", so it can be a program name with args.
8488 set dummy $ac_prog; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if test "${ac_cv_prog_AWK+set}" = set; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 if test -n "$AWK"; then
8495 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8499 do
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_prog_AWK="$ac_prog"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8507 fi
8508 done
8509 done
8510 IFS=$as_save_IFS
8511
8512 fi
8513 fi
8514 AWK=$ac_cv_prog_AWK
8515 if test -n "$AWK"; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8517 $as_echo "$AWK" >&6; }
8518 else
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8521 fi
8522
8523
8524 test -n "$AWK" && break
8525 done
8526
8527
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8529 $as_echo_n "checking whether ln -s works... " >&6; }
8530 LN_S=$as_ln_s
8531 if test "$LN_S" = "ln -s"; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8533 $as_echo "yes" >&6; }
8534 else
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8536 $as_echo "no, using $LN_S" >&6; }
8537 fi
8538
8539 if test -n "$ac_tool_prefix"; then
8540 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8541 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8543 $as_echo_n "checking for $ac_word... " >&6; }
8544 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 if test -n "$RANLIB"; then
8548 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8549 else
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8552 do
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8557 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8560 fi
8561 done
8562 done
8563 IFS=$as_save_IFS
8564
8565 fi
8566 fi
8567 RANLIB=$ac_cv_prog_RANLIB
8568 if test -n "$RANLIB"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8570 $as_echo "$RANLIB" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8574 fi
8575
8576
8577 fi
8578 if test -z "$ac_cv_prog_RANLIB"; then
8579 ac_ct_RANLIB=$RANLIB
8580 # Extract the first word of "ranlib", so it can be a program name with args.
8581 set dummy ranlib; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 if test -n "$ac_ct_RANLIB"; then
8588 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593 IFS=$as_save_IFS
8594 test -z "$as_dir" && as_dir=.
8595 for ac_exec_ext in '' $ac_executable_extensions; do
8596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8597 ac_cv_prog_ac_ct_RANLIB="ranlib"
8598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599 break 2
8600 fi
8601 done
8602 done
8603 IFS=$as_save_IFS
8604
8605 fi
8606 fi
8607 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8608 if test -n "$ac_ct_RANLIB"; then
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8610 $as_echo "$ac_ct_RANLIB" >&6; }
8611 else
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615
8616 if test "x$ac_ct_RANLIB" = x; then
8617 RANLIB=":"
8618 else
8619 case $cross_compiling:$ac_tool_warned in
8620 yes:)
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8623 ac_tool_warned=yes ;;
8624 esac
8625 RANLIB=$ac_ct_RANLIB
8626 fi
8627 else
8628 RANLIB="$ac_cv_prog_RANLIB"
8629 fi
8630
8631 for ac_prog in 'bison -y' byacc
8632 do
8633 # Extract the first word of "$ac_prog", so it can be a program name with args.
8634 set dummy $ac_prog; ac_word=$2
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8636 $as_echo_n "checking for $ac_word... " >&6; }
8637 if test "${ac_cv_prog_YACC+set}" = set; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 if test -n "$YACC"; then
8641 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8642 else
8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8644 for as_dir in $PATH
8645 do
8646 IFS=$as_save_IFS
8647 test -z "$as_dir" && as_dir=.
8648 for ac_exec_ext in '' $ac_executable_extensions; do
8649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8650 ac_cv_prog_YACC="$ac_prog"
8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8652 break 2
8653 fi
8654 done
8655 done
8656 IFS=$as_save_IFS
8657
8658 fi
8659 fi
8660 YACC=$ac_cv_prog_YACC
8661 if test -n "$YACC"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
8663 $as_echo "$YACC" >&6; }
8664 else
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8667 fi
8668
8669
8670 test -n "$YACC" && break
8671 done
8672 test -n "$YACC" || YACC="yacc"
8673
8674
8675 if test -n "$ac_tool_prefix"; then
8676 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8677 set dummy ${ac_tool_prefix}ar; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if test "${ac_cv_prog_AR+set}" = set; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 if test -n "$AR"; then
8684 ac_cv_prog_AR="$AR" # Let the user override the test.
8685 else
8686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 for as_dir in $PATH
8688 do
8689 IFS=$as_save_IFS
8690 test -z "$as_dir" && as_dir=.
8691 for ac_exec_ext in '' $ac_executable_extensions; do
8692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8693 ac_cv_prog_AR="${ac_tool_prefix}ar"
8694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8695 break 2
8696 fi
8697 done
8698 done
8699 IFS=$as_save_IFS
8700
8701 fi
8702 fi
8703 AR=$ac_cv_prog_AR
8704 if test -n "$AR"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8706 $as_echo "$AR" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8710 fi
8711
8712
8713 fi
8714 if test -z "$ac_cv_prog_AR"; then
8715 ac_ct_AR=$AR
8716 # Extract the first word of "ar", so it can be a program name with args.
8717 set dummy ar; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 if test -n "$ac_ct_AR"; then
8724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8725 else
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8727 for as_dir in $PATH
8728 do
8729 IFS=$as_save_IFS
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8733 ac_cv_prog_ac_ct_AR="ar"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8735 break 2
8736 fi
8737 done
8738 done
8739 IFS=$as_save_IFS
8740
8741 fi
8742 fi
8743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8744 if test -n "$ac_ct_AR"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8746 $as_echo "$ac_ct_AR" >&6; }
8747 else
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8750 fi
8751
8752 if test "x$ac_ct_AR" = x; then
8753 AR=""
8754 else
8755 case $cross_compiling:$ac_tool_warned in
8756 yes:)
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8759 ac_tool_warned=yes ;;
8760 esac
8761 AR=$ac_ct_AR
8762 fi
8763 else
8764 AR="$ac_cv_prog_AR"
8765 fi
8766
8767 if test -n "$ac_tool_prefix"; then
8768 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8769 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 if test -n "$DLLTOOL"; then
8776 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8777 else
8778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779 for as_dir in $PATH
8780 do
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8785 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8787 break 2
8788 fi
8789 done
8790 done
8791 IFS=$as_save_IFS
8792
8793 fi
8794 fi
8795 DLLTOOL=$ac_cv_prog_DLLTOOL
8796 if test -n "$DLLTOOL"; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8798 $as_echo "$DLLTOOL" >&6; }
8799 else
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 $as_echo "no" >&6; }
8802 fi
8803
8804
8805 fi
8806 if test -z "$ac_cv_prog_DLLTOOL"; then
8807 ac_ct_DLLTOOL=$DLLTOOL
8808 # Extract the first word of "dlltool", so it can be a program name with args.
8809 set dummy dlltool; ac_word=$2
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 $as_echo_n "checking for $ac_word... " >&6; }
8812 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 if test -n "$ac_ct_DLLTOOL"; then
8816 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8817 else
8818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 for as_dir in $PATH
8820 do
8821 IFS=$as_save_IFS
8822 test -z "$as_dir" && as_dir=.
8823 for ac_exec_ext in '' $ac_executable_extensions; do
8824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8825 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8827 break 2
8828 fi
8829 done
8830 done
8831 IFS=$as_save_IFS
8832
8833 fi
8834 fi
8835 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8836 if test -n "$ac_ct_DLLTOOL"; then
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8838 $as_echo "$ac_ct_DLLTOOL" >&6; }
8839 else
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8841 $as_echo "no" >&6; }
8842 fi
8843
8844 if test "x$ac_ct_DLLTOOL" = x; then
8845 DLLTOOL=""
8846 else
8847 case $cross_compiling:$ac_tool_warned in
8848 yes:)
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8851 ac_tool_warned=yes ;;
8852 esac
8853 DLLTOOL=$ac_ct_DLLTOOL
8854 fi
8855 else
8856 DLLTOOL="$ac_cv_prog_DLLTOOL"
8857 fi
8858
8859 if test -n "$ac_tool_prefix"; then
8860 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8861 set dummy ${ac_tool_prefix}windres; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if test "${ac_cv_prog_WINDRES+set}" = set; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 if test -n "$WINDRES"; then
8868 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8869 else
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8871 for as_dir in $PATH
8872 do
8873 IFS=$as_save_IFS
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8877 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8879 break 2
8880 fi
8881 done
8882 done
8883 IFS=$as_save_IFS
8884
8885 fi
8886 fi
8887 WINDRES=$ac_cv_prog_WINDRES
8888 if test -n "$WINDRES"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8890 $as_echo "$WINDRES" >&6; }
8891 else
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8894 fi
8895
8896
8897 fi
8898 if test -z "$ac_cv_prog_WINDRES"; then
8899 ac_ct_WINDRES=$WINDRES
8900 # Extract the first word of "windres", so it can be a program name with args.
8901 set dummy windres; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 if test -n "$ac_ct_WINDRES"; then
8908 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8909 else
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8912 do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8917 ac_cv_prog_ac_ct_WINDRES="windres"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 break 2
8920 fi
8921 done
8922 done
8923 IFS=$as_save_IFS
8924
8925 fi
8926 fi
8927 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8928 if test -n "$ac_ct_WINDRES"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
8930 $as_echo "$ac_ct_WINDRES" >&6; }
8931 else
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934 fi
8935
8936 if test "x$ac_ct_WINDRES" = x; then
8937 WINDRES=""
8938 else
8939 case $cross_compiling:$ac_tool_warned in
8940 yes:)
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8943 ac_tool_warned=yes ;;
8944 esac
8945 WINDRES=$ac_ct_WINDRES
8946 fi
8947 else
8948 WINDRES="$ac_cv_prog_WINDRES"
8949 fi
8950
8951
8952 # Needed for GNU/Hurd.
8953 if test -n "$ac_tool_prefix"; then
8954 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8955 set dummy ${ac_tool_prefix}mig; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if test "${ac_cv_prog_MIG+set}" = set; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 if test -n "$MIG"; then
8962 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8963 else
8964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967 IFS=$as_save_IFS
8968 test -z "$as_dir" && as_dir=.
8969 for ac_exec_ext in '' $ac_executable_extensions; do
8970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8971 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973 break 2
8974 fi
8975 done
8976 done
8977 IFS=$as_save_IFS
8978
8979 fi
8980 fi
8981 MIG=$ac_cv_prog_MIG
8982 if test -n "$MIG"; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
8984 $as_echo "$MIG" >&6; }
8985 else
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8987 $as_echo "no" >&6; }
8988 fi
8989
8990
8991 fi
8992 if test -z "$ac_cv_prog_MIG"; then
8993 ac_ct_MIG=$MIG
8994 # Extract the first word of "mig", so it can be a program name with args.
8995 set dummy mig; ac_word=$2
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997 $as_echo_n "checking for $ac_word... " >&6; }
8998 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9000 else
9001 if test -n "$ac_ct_MIG"; then
9002 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9003 else
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9006 do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_prog_ac_ct_MIG="mig"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9014 fi
9015 done
9016 done
9017 IFS=$as_save_IFS
9018
9019 fi
9020 fi
9021 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9022 if test -n "$ac_ct_MIG"; then
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
9024 $as_echo "$ac_ct_MIG" >&6; }
9025 else
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029
9030 if test "x$ac_ct_MIG" = x; then
9031 MIG=""
9032 else
9033 case $cross_compiling:$ac_tool_warned in
9034 yes:)
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9037 ac_tool_warned=yes ;;
9038 esac
9039 MIG=$ac_ct_MIG
9040 fi
9041 else
9042 MIG="$ac_cv_prog_MIG"
9043 fi
9044
9045
9046 # ---------------------- #
9047 # Checks for libraries. #
9048 # ---------------------- #
9049
9050 # We might need to link with -lm; most simulators need it.
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
9052 $as_echo_n "checking for main in -lm... " >&6; }
9053 if test "${ac_cv_lib_m_main+set}" = set; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 ac_check_lib_save_LIBS=$LIBS
9057 LIBS="-lm $LIBS"
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9060
9061
9062 int
9063 main ()
9064 {
9065 return main ();
9066 ;
9067 return 0;
9068 }
9069 _ACEOF
9070 if ac_fn_c_try_link "$LINENO"; then :
9071 ac_cv_lib_m_main=yes
9072 else
9073 ac_cv_lib_m_main=no
9074 fi
9075 rm -f core conftest.err conftest.$ac_objext \
9076 conftest$ac_exeext conftest.$ac_ext
9077 LIBS=$ac_check_lib_save_LIBS
9078 fi
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
9080 $as_echo "$ac_cv_lib_m_main" >&6; }
9081 if test "x$ac_cv_lib_m_main" = x""yes; then :
9082 cat >>confdefs.h <<_ACEOF
9083 #define HAVE_LIBM 1
9084 _ACEOF
9085
9086 LIBS="-lm $LIBS"
9087
9088 fi
9089
9090
9091 # We need to link with -lw to get `wctype' on Solaris before Solaris
9092 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9093 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9094 # is known to have this problem). Therefore we avoid libw if we can.
9095 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
9096 if test "x$ac_cv_func_wctype" = x""yes; then :
9097
9098 else
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
9100 $as_echo_n "checking for wctype in -lw... " >&6; }
9101 if test "${ac_cv_lib_w_wctype+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
9103 else
9104 ac_check_lib_save_LIBS=$LIBS
9105 LIBS="-lw $LIBS"
9106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9107 /* end confdefs.h. */
9108
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9112 #ifdef __cplusplus
9113 extern "C"
9114 #endif
9115 char wctype ();
9116 int
9117 main ()
9118 {
9119 return wctype ();
9120 ;
9121 return 0;
9122 }
9123 _ACEOF
9124 if ac_fn_c_try_link "$LINENO"; then :
9125 ac_cv_lib_w_wctype=yes
9126 else
9127 ac_cv_lib_w_wctype=no
9128 fi
9129 rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
9131 LIBS=$ac_check_lib_save_LIBS
9132 fi
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
9134 $as_echo "$ac_cv_lib_w_wctype" >&6; }
9135 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
9136 cat >>confdefs.h <<_ACEOF
9137 #define HAVE_LIBW 1
9138 _ACEOF
9139
9140 LIBS="-lw $LIBS"
9141
9142 fi
9143
9144 fi
9145
9146
9147 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
9149 $as_echo_n "checking for library containing gethostbyname... " >&6; }
9150 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 ac_func_search_save_LIBS=$LIBS
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156
9157 /* Override any GCC internal prototype to avoid an error.
9158 Use char because int might match the return type of a GCC
9159 builtin and then its argument prototype would still apply. */
9160 #ifdef __cplusplus
9161 extern "C"
9162 #endif
9163 char gethostbyname ();
9164 int
9165 main ()
9166 {
9167 return gethostbyname ();
9168 ;
9169 return 0;
9170 }
9171 _ACEOF
9172 for ac_lib in '' nsl; do
9173 if test -z "$ac_lib"; then
9174 ac_res="none required"
9175 else
9176 ac_res=-l$ac_lib
9177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9178 fi
9179 if ac_fn_c_try_link "$LINENO"; then :
9180 ac_cv_search_gethostbyname=$ac_res
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext
9184 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9185 break
9186 fi
9187 done
9188 if test "${ac_cv_search_gethostbyname+set}" = set; then :
9189
9190 else
9191 ac_cv_search_gethostbyname=no
9192 fi
9193 rm conftest.$ac_ext
9194 LIBS=$ac_func_search_save_LIBS
9195 fi
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
9197 $as_echo "$ac_cv_search_gethostbyname" >&6; }
9198 ac_res=$ac_cv_search_gethostbyname
9199 if test "$ac_res" != no; then :
9200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9201
9202 fi
9203
9204
9205 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
9207 $as_echo_n "checking for library containing socketpair... " >&6; }
9208 if test "${ac_cv_search_socketpair+set}" = set; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 ac_func_search_save_LIBS=$LIBS
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214
9215 /* Override any GCC internal prototype to avoid an error.
9216 Use char because int might match the return type of a GCC
9217 builtin and then its argument prototype would still apply. */
9218 #ifdef __cplusplus
9219 extern "C"
9220 #endif
9221 char socketpair ();
9222 int
9223 main ()
9224 {
9225 return socketpair ();
9226 ;
9227 return 0;
9228 }
9229 _ACEOF
9230 for ac_lib in '' socket; do
9231 if test -z "$ac_lib"; then
9232 ac_res="none required"
9233 else
9234 ac_res=-l$ac_lib
9235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9236 fi
9237 if ac_fn_c_try_link "$LINENO"; then :
9238 ac_cv_search_socketpair=$ac_res
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext
9242 if test "${ac_cv_search_socketpair+set}" = set; then :
9243 break
9244 fi
9245 done
9246 if test "${ac_cv_search_socketpair+set}" = set; then :
9247
9248 else
9249 ac_cv_search_socketpair=no
9250 fi
9251 rm conftest.$ac_ext
9252 LIBS=$ac_func_search_save_LIBS
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
9255 $as_echo "$ac_cv_search_socketpair" >&6; }
9256 ac_res=$ac_cv_search_socketpair
9257 if test "$ac_res" != no; then :
9258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9259
9260 fi
9261
9262
9263 # Link in zlib if we can. This allows us to read compressed debug sections.
9264
9265 # See if the user specified whether he wants zlib support or not.
9266
9267 # Check whether --with-zlib was given.
9268 if test "${with_zlib+set}" = set; then :
9269 withval=$with_zlib;
9270 else
9271 with_zlib=auto
9272 fi
9273
9274
9275 if test "$with_zlib" != "no"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
9277 $as_echo_n "checking for library containing zlibVersion... " >&6; }
9278 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281 ac_func_search_save_LIBS=$LIBS
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9288 #ifdef __cplusplus
9289 extern "C"
9290 #endif
9291 char zlibVersion ();
9292 int
9293 main ()
9294 {
9295 return zlibVersion ();
9296 ;
9297 return 0;
9298 }
9299 _ACEOF
9300 for ac_lib in '' z; do
9301 if test -z "$ac_lib"; then
9302 ac_res="none required"
9303 else
9304 ac_res=-l$ac_lib
9305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9306 fi
9307 if ac_fn_c_try_link "$LINENO"; then :
9308 ac_cv_search_zlibVersion=$ac_res
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext \
9311 conftest$ac_exeext
9312 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9313 break
9314 fi
9315 done
9316 if test "${ac_cv_search_zlibVersion+set}" = set; then :
9317
9318 else
9319 ac_cv_search_zlibVersion=no
9320 fi
9321 rm conftest.$ac_ext
9322 LIBS=$ac_func_search_save_LIBS
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
9325 $as_echo "$ac_cv_search_zlibVersion" >&6; }
9326 ac_res=$ac_cv_search_zlibVersion
9327 if test "$ac_res" != no; then :
9328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9329 for ac_header in zlib.h
9330 do :
9331 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
9332 if test "x$ac_cv_header_zlib_h" = x""yes; then :
9333 cat >>confdefs.h <<_ACEOF
9334 #define HAVE_ZLIB_H 1
9335 _ACEOF
9336
9337 fi
9338
9339 done
9340
9341 fi
9342
9343 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
9344 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
9345 fi
9346 fi
9347
9348
9349 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
9351 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
9352 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
9354 else
9355 ac_func_search_save_LIBS=$LIBS
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358
9359 /* Override any GCC internal prototype to avoid an error.
9360 Use char because int might match the return type of a GCC
9361 builtin and then its argument prototype would still apply. */
9362 #ifdef __cplusplus
9363 extern "C"
9364 #endif
9365 char dlgetmodinfo ();
9366 int
9367 main ()
9368 {
9369 return dlgetmodinfo ();
9370 ;
9371 return 0;
9372 }
9373 _ACEOF
9374 for ac_lib in '' dl xpdl; do
9375 if test -z "$ac_lib"; then
9376 ac_res="none required"
9377 else
9378 ac_res=-l$ac_lib
9379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9380 fi
9381 if ac_fn_c_try_link "$LINENO"; then :
9382 ac_cv_search_dlgetmodinfo=$ac_res
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext \
9385 conftest$ac_exeext
9386 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9387 break
9388 fi
9389 done
9390 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
9391
9392 else
9393 ac_cv_search_dlgetmodinfo=no
9394 fi
9395 rm conftest.$ac_ext
9396 LIBS=$ac_func_search_save_LIBS
9397 fi
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
9399 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
9400 ac_res=$ac_cv_search_dlgetmodinfo
9401 if test "$ac_res" != no; then :
9402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9403
9404 fi
9405
9406
9407
9408
9409
9410 # Check whether --with-libiconv-prefix was given.
9411 if test "${with_libiconv_prefix+set}" = set; then :
9412 withval=$with_libiconv_prefix;
9413 for dir in `echo "$withval" | tr : ' '`; do
9414 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
9415 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
9416 done
9417
9418 fi
9419
9420
9421 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
9422 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
9423
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9425 $as_echo_n "checking for iconv... " >&6; }
9426 if test "${am_cv_func_iconv+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
9428 else
9429
9430 am_cv_func_iconv="no, consider installing GNU libiconv"
9431 am_cv_lib_iconv=no
9432 am_cv_use_build_libiconv=no
9433 am_cv_build_libiconv_path=
9434
9435 # If libiconv is part of the build tree, then try using it over
9436 # any system iconv.
9437 if test -d ../libiconv; then
9438 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
9439 am_save_LIBS="$LIBS"
9440 am_save_CPPFLAGS="$CPPFLAGS"
9441 LIBS="$LIBS $lib_dir/libiconv.a"
9442 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
9443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9444 /* end confdefs.h. */
9445 #include <stdlib.h>
9446 #include <iconv.h>
9447 int
9448 main ()
9449 {
9450 iconv_t cd = iconv_open("","");
9451 iconv(cd,NULL,NULL,NULL,NULL);
9452 iconv_close(cd);
9453 ;
9454 return 0;
9455 }
9456 _ACEOF
9457 if ac_fn_c_try_link "$LINENO"; then :
9458 am_cv_use_build_libiconv=yes
9459 am_cv_build_libiconv_path=$lib_dir/libiconv.a
9460 am_cv_lib_iconv=yes
9461 am_cv_func_iconv=yes
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465 LIBS="$am_save_LIBS"
9466 CPPFLAGS="$am_save_CPPFLAGS"
9467 if test "$am_cv_use_build_libiconv" = "yes"; then
9468 break
9469 fi
9470 done
9471 fi
9472
9473 # Next, try to find iconv in libc.
9474 if test "$am_cv_func_iconv" != yes; then
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477 #include <stdlib.h>
9478 #include <iconv.h>
9479 int
9480 main ()
9481 {
9482 iconv_t cd = iconv_open("","");
9483 iconv(cd,NULL,NULL,NULL,NULL);
9484 iconv_close(cd);
9485 ;
9486 return 0;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9490 am_cv_func_iconv=yes
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494 fi
9495
9496 # If iconv was not in libc, try -liconv. In this case, arrange to
9497 # look in the libiconv prefix, if it was specified by the user.
9498 if test "$am_cv_func_iconv" != yes; then
9499 am_save_CPPFLAGS="$CPPFLAGS"
9500 am_save_LIBS="$LIBS"
9501 if test -n "$LIBICONV_INCLUDE"; then
9502 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9503 LIBS="$LIBS $LIBICONV_LIBDIR"
9504 fi
9505 LIBS="$LIBS -liconv"
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508 #include <stdlib.h>
9509 #include <iconv.h>
9510 int
9511 main ()
9512 {
9513 iconv_t cd = iconv_open("","");
9514 iconv(cd,NULL,NULL,NULL,NULL);
9515 iconv_close(cd);
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 if ac_fn_c_try_link "$LINENO"; then :
9521 am_cv_lib_iconv=yes
9522 am_cv_func_iconv=yes
9523 fi
9524 rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LIBS="$am_save_LIBS"
9527 CPPFLAGS="$am_save_CPPFLAGS"
9528 fi
9529
9530 fi
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9532 $as_echo "$am_cv_func_iconv" >&6; }
9533
9534 # Set the various flags based on the cache variables. We can't rely
9535 # on the flags to remain set from the above code, due to caching.
9536 LIBICONV=
9537 if test "$am_cv_lib_iconv" = yes; then
9538 LIBICONV="-liconv"
9539 else
9540 LIBICONV_LIBDIR=
9541 LIBICONV_INCLUDE=
9542 fi
9543 if test "$am_cv_use_build_libiconv" = yes; then
9544 LIBICONV="$am_cv_build_libiconv_path"
9545 LIBICONV_LIBDIR=""
9546 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
9547 fi
9548 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
9549 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
9550
9551 if test "$am_cv_func_iconv" = yes; then
9552
9553 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
9554
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9556 $as_echo_n "checking for iconv declaration... " >&6; }
9557 if test "${am_cv_proto_iconv+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560
9561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9563
9564 #include <stdlib.h>
9565 #include <iconv.h>
9566 extern
9567 #ifdef __cplusplus
9568 "C"
9569 #endif
9570 #if defined(__STDC__) || defined(__cplusplus)
9571 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9572 #else
9573 size_t iconv();
9574 #endif
9575
9576 int
9577 main ()
9578 {
9579
9580 ;
9581 return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_compile "$LINENO"; then :
9585 am_cv_proto_iconv_arg1=""
9586 else
9587 am_cv_proto_iconv_arg1="const"
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 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);"
9591 fi
9592
9593 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
9595 }$am_cv_proto_iconv" >&5
9596 $as_echo "${ac_t:-
9597 }$am_cv_proto_iconv" >&6; }
9598
9599 cat >>confdefs.h <<_ACEOF
9600 #define ICONV_CONST $am_cv_proto_iconv_arg1
9601 _ACEOF
9602
9603 fi
9604
9605
9606 # GDB may fork/exec the iconv program to get the list of supported character
9607 # sets. Allow the user to specify where to find it.
9608 # There are several factors affecting the choice of option name:
9609 # - There is already --with-libiconv-prefix but we can't use it, it specifies
9610 # the build-time location of libiconv files.
9611 # - The program we need to find is iconv, which comes with glibc. The user
9612 # doesn't necessarily have libiconv installed. Therefore naming this
9613 # --with-libiconv-foo feels wrong.
9614 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
9615 # defined to work on directories not files (though it really doesn't know
9616 # the difference).
9617 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
9618 # with --with-libiconv-prefix.
9619 # Putting these together is why the option name is --with-iconv-bin.
9620
9621
9622 # Check whether --with-iconv-bin was given.
9623 if test "${with_iconv_bin+set}" = set; then :
9624 withval=$with_iconv_bin; iconv_bin="${withval}"
9625
9626 cat >>confdefs.h <<_ACEOF
9627 #define ICONV_BIN "${iconv_bin}"
9628 _ACEOF
9629
9630
9631 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9632 if test "x$prefix" = xNONE; then
9633 test_prefix=/usr/local
9634 else
9635 test_prefix=$prefix
9636 fi
9637 else
9638 test_prefix=$exec_prefix
9639 fi
9640 value=0
9641 case ${iconv_bin} in
9642 "${test_prefix}"|"${test_prefix}/"*|\
9643 '${exec_prefix}'|'${exec_prefix}/'*)
9644 value=1
9645 ;;
9646 esac
9647
9648 cat >>confdefs.h <<_ACEOF
9649 #define ICONV_BIN_RELOCATABLE $value
9650 _ACEOF
9651
9652
9653
9654 fi
9655
9656
9657 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9658 # There is a very specific comment in /usr/include/curses.h explaining that
9659 # termcap routines built into libcurses must not be used.
9660 #
9661 # The symptoms we observed so far is GDB unexpectedly changing
9662 # the terminal settings when tgetent is called - this is particularly
9663 # visible as the output is missing carriage returns, and so rapidly
9664 # becomes very hard to read.
9665 #
9666 # The readline configure script has already decided that libtermcap
9667 # was enough for its purposes, and so decided to build readline using
9668 # libtermcap. Since the TUI mode requires curses, building GDB with
9669 # TUI enabled results in both libraries to be used at the same time,
9670 # which is not allowed. This basically means that GDB with TUI is
9671 # broken on alpha-osf.
9672
9673 case $host_os in
9674 osf* )
9675 if test x"$enable_tui" = xyes; then
9676 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
9677 fi
9678 if test x"$enable_tui" = xauto; then
9679 enable_tui=no
9680 fi
9681 ;;
9682 esac
9683
9684 # For the TUI, we need enhanced curses functionality.
9685 if test x"$enable_tui" != xno; then
9686 prefer_curses=yes
9687 fi
9688
9689 curses_found=no
9690 if test x"$prefer_curses" = xyes; then
9691 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9692 # curses library because the latter might not provide all the
9693 # functionality we need. However, this leads to problems on systems
9694 # where the linker searches /usr/local/lib, but the compiler doesn't
9695 # search /usr/local/include, if ncurses is installed in /usr/local. A
9696 # default installation of ncurses on alpha*-dec-osf* will lead to such
9697 # a situation.
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
9699 $as_echo_n "checking for library containing waddstr... " >&6; }
9700 if test "${ac_cv_search_waddstr+set}" = set; then :
9701 $as_echo_n "(cached) " >&6
9702 else
9703 ac_func_search_save_LIBS=$LIBS
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9706
9707 /* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9710 #ifdef __cplusplus
9711 extern "C"
9712 #endif
9713 char waddstr ();
9714 int
9715 main ()
9716 {
9717 return waddstr ();
9718 ;
9719 return 0;
9720 }
9721 _ACEOF
9722 for ac_lib in '' ncurses cursesX curses; do
9723 if test -z "$ac_lib"; then
9724 ac_res="none required"
9725 else
9726 ac_res=-l$ac_lib
9727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9728 fi
9729 if ac_fn_c_try_link "$LINENO"; then :
9730 ac_cv_search_waddstr=$ac_res
9731 fi
9732 rm -f core conftest.err conftest.$ac_objext \
9733 conftest$ac_exeext
9734 if test "${ac_cv_search_waddstr+set}" = set; then :
9735 break
9736 fi
9737 done
9738 if test "${ac_cv_search_waddstr+set}" = set; then :
9739
9740 else
9741 ac_cv_search_waddstr=no
9742 fi
9743 rm conftest.$ac_ext
9744 LIBS=$ac_func_search_save_LIBS
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
9747 $as_echo "$ac_cv_search_waddstr" >&6; }
9748 ac_res=$ac_cv_search_waddstr
9749 if test "$ac_res" != no; then :
9750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9751
9752 fi
9753
9754
9755 if test "$ac_cv_search_waddstr" != no; then
9756 curses_found=yes
9757 fi
9758 fi
9759
9760 # Check whether we should enable the TUI, but only do so if we really
9761 # can.
9762 if test x"$enable_tui" != xno; then
9763 if test -d $srcdir/tui; then
9764 if test "$curses_found" != no; then
9765 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
9766 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
9767 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
9768 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
9769 CONFIG_ALL="${CONFIG_ALL} all-tui"
9770 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
9771 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
9772 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
9773 else
9774 if test x"$enable_tui" = xyes; then
9775 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
9776 else
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
9778 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9779 fi
9780 fi
9781 fi
9782 fi
9783
9784 # Since GDB uses Readline, we need termcap functionality. In many
9785 # cases this will be provided by the curses library, but some systems
9786 # have a seperate termcap library, or no curses library at all.
9787
9788 case $host_os in
9789 cygwin*)
9790 if test -d $srcdir/libtermcap; then
9791 LIBS="../libtermcap/libtermcap.a $LIBS"
9792 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
9793 fi ;;
9794 go32* | *djgpp*)
9795 ac_cv_search_tgetent="none required"
9796 ;;
9797 *mingw32*)
9798 ac_cv_search_tgetent="none required"
9799 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
9800 ;;
9801 esac
9802
9803 # These are the libraries checked by Readline.
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9805 $as_echo_n "checking for library containing tgetent... " >&6; }
9806 if test "${ac_cv_search_tgetent+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
9808 else
9809 ac_func_search_save_LIBS=$LIBS
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812
9813 /* Override any GCC internal prototype to avoid an error.
9814 Use char because int might match the return type of a GCC
9815 builtin and then its argument prototype would still apply. */
9816 #ifdef __cplusplus
9817 extern "C"
9818 #endif
9819 char tgetent ();
9820 int
9821 main ()
9822 {
9823 return tgetent ();
9824 ;
9825 return 0;
9826 }
9827 _ACEOF
9828 for ac_lib in '' termcap tinfo curses ncurses; do
9829 if test -z "$ac_lib"; then
9830 ac_res="none required"
9831 else
9832 ac_res=-l$ac_lib
9833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9834 fi
9835 if ac_fn_c_try_link "$LINENO"; then :
9836 ac_cv_search_tgetent=$ac_res
9837 fi
9838 rm -f core conftest.err conftest.$ac_objext \
9839 conftest$ac_exeext
9840 if test "${ac_cv_search_tgetent+set}" = set; then :
9841 break
9842 fi
9843 done
9844 if test "${ac_cv_search_tgetent+set}" = set; then :
9845
9846 else
9847 ac_cv_search_tgetent=no
9848 fi
9849 rm conftest.$ac_ext
9850 LIBS=$ac_func_search_save_LIBS
9851 fi
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9853 $as_echo "$ac_cv_search_tgetent" >&6; }
9854 ac_res=$ac_cv_search_tgetent
9855 if test "$ac_res" != no; then :
9856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9857
9858 fi
9859
9860
9861 if test "$ac_cv_search_tgetent" = no; then
9862 as_fn_error "no termcap library found" "$LINENO" 5
9863 fi
9864
9865
9866 # Check whether --with-system-readline was given.
9867 if test "${with_system_readline+set}" = set; then :
9868 withval=$with_system_readline;
9869 fi
9870
9871
9872 if test "$with_system_readline" = yes; then
9873 READLINE=-lreadline
9874 READLINE_DEPS=
9875 READLINE_CFLAGS=
9876 READLINE_TEXI_INCFLAG=
9877 else
9878 READLINE='$(READLINE_DIR)/libreadline.a'
9879 READLINE_DEPS='$(READLINE)'
9880 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9881 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9882 fi
9883
9884
9885
9886
9887
9888 # Generate jit-reader.h
9889
9890 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9891 TARGET_PTR=
9892
9893 # The cast to long int works around a bug in the HP C Compiler
9894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9895 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9896 # This bug is HP SR number 8606223364.
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9898 $as_echo_n "checking size of unsigned long long... " >&6; }
9899 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9903
9904 else
9905 if test "$ac_cv_type_unsigned_long_long" = yes; then
9906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9908 { as_fn_set_status 77
9909 as_fn_error "cannot compute sizeof (unsigned long long)
9910 See \`config.log' for more details." "$LINENO" 5; }; }
9911 else
9912 ac_cv_sizeof_unsigned_long_long=0
9913 fi
9914 fi
9915
9916 fi
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9918 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9919
9920
9921
9922 cat >>confdefs.h <<_ACEOF
9923 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9924 _ACEOF
9925
9926
9927 # The cast to long int works around a bug in the HP C Compiler
9928 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9929 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9930 # This bug is HP SR number 8606223364.
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9932 $as_echo_n "checking size of unsigned long... " >&6; }
9933 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
9935 else
9936 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9937
9938 else
9939 if test "$ac_cv_type_unsigned_long" = yes; then
9940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9942 { as_fn_set_status 77
9943 as_fn_error "cannot compute sizeof (unsigned long)
9944 See \`config.log' for more details." "$LINENO" 5; }; }
9945 else
9946 ac_cv_sizeof_unsigned_long=0
9947 fi
9948 fi
9949
9950 fi
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9952 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9953
9954
9955
9956 cat >>confdefs.h <<_ACEOF
9957 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9958 _ACEOF
9959
9960
9961 # The cast to long int works around a bug in the HP C Compiler
9962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9964 # This bug is HP SR number 8606223364.
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9966 $as_echo_n "checking size of unsigned __int128... " >&6; }
9967 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9969 else
9970 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9971
9972 else
9973 if test "$ac_cv_type_unsigned___int128" = yes; then
9974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9976 { as_fn_set_status 77
9977 as_fn_error "cannot compute sizeof (unsigned __int128)
9978 See \`config.log' for more details." "$LINENO" 5; }; }
9979 else
9980 ac_cv_sizeof_unsigned___int128=0
9981 fi
9982 fi
9983
9984 fi
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9986 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9987
9988
9989
9990 cat >>confdefs.h <<_ACEOF
9991 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9992 _ACEOF
9993
9994
9995
9996 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9997 TARGET_PTR="unsigned long"
9998 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9999 TARGET_PTR="unsigned long long"
10000 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
10001 TARGET_PTR="unsigned __int128"
10002 else
10003 TARGET_PTR="unsigned long"
10004 fi
10005
10006
10007 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
10008
10009
10010
10011 # Check whether --with-expat was given.
10012 if test "${with_expat+set}" = set; then :
10013 withval=$with_expat;
10014 else
10015 with_expat=auto
10016 fi
10017
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
10019 $as_echo_n "checking whether to use expat... " >&6; }
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
10021 $as_echo "$with_expat" >&6; }
10022
10023 if test "${with_expat}" = no; then
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
10025 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10026 HAVE_LIBEXPAT=no
10027 else
10028
10029 if test "X$prefix" = "XNONE"; then
10030 acl_final_prefix="$ac_default_prefix"
10031 else
10032 acl_final_prefix="$prefix"
10033 fi
10034 if test "X$exec_prefix" = "XNONE"; then
10035 acl_final_exec_prefix='${prefix}'
10036 else
10037 acl_final_exec_prefix="$exec_prefix"
10038 fi
10039 acl_save_prefix="$prefix"
10040 prefix="$acl_final_prefix"
10041 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10042 prefix="$acl_save_prefix"
10043
10044
10045 # Check whether --with-gnu-ld was given.
10046 if test "${with_gnu_ld+set}" = set; then :
10047 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10048 else
10049 with_gnu_ld=no
10050 fi
10051
10052 # Prepare PATH_SEPARATOR.
10053 # The user is always right.
10054 if test "${PATH_SEPARATOR+set}" != set; then
10055 echo "#! /bin/sh" >conf$$.sh
10056 echo "exit 0" >>conf$$.sh
10057 chmod +x conf$$.sh
10058 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10059 PATH_SEPARATOR=';'
10060 else
10061 PATH_SEPARATOR=:
10062 fi
10063 rm -f conf$$.sh
10064 fi
10065 ac_prog=ld
10066 if test "$GCC" = yes; then
10067 # Check if gcc -print-prog-name=ld gives a path.
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
10069 $as_echo_n "checking for ld used by GCC... " >&6; }
10070 case $host in
10071 *-*-mingw*)
10072 # gcc leaves a trailing carriage return which upsets mingw
10073 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10074 *)
10075 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10076 esac
10077 case $ac_prog in
10078 # Accept absolute paths.
10079 [\\/]* | [A-Za-z]:[\\/]*)
10080 re_direlt='/[^/][^/]*/\.\./'
10081 # Canonicalize the path of ld
10082 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10083 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10084 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10085 done
10086 test -z "$LD" && LD="$ac_prog"
10087 ;;
10088 "")
10089 # If it fails, then pretend we aren't using GCC.
10090 ac_prog=ld
10091 ;;
10092 *)
10093 # If it is relative, then search for the first ld in PATH.
10094 with_gnu_ld=unknown
10095 ;;
10096 esac
10097 elif test "$with_gnu_ld" = yes; then
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10099 $as_echo_n "checking for GNU ld... " >&6; }
10100 else
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10102 $as_echo_n "checking for non-GNU ld... " >&6; }
10103 fi
10104 if test "${acl_cv_path_LD+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107 if test -z "$LD"; then
10108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10109 for ac_dir in $PATH; do
10110 test -z "$ac_dir" && ac_dir=.
10111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10112 acl_cv_path_LD="$ac_dir/$ac_prog"
10113 # Check to see if the program is GNU ld. I'd rather use --version,
10114 # but apparently some GNU ld's only accept -v.
10115 # Break only if it was the GNU/non-GNU ld that we prefer.
10116 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10117 test "$with_gnu_ld" != no && break
10118 else
10119 test "$with_gnu_ld" != yes && break
10120 fi
10121 fi
10122 done
10123 IFS="$ac_save_ifs"
10124 else
10125 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10126 fi
10127 fi
10128
10129 LD="$acl_cv_path_LD"
10130 if test -n "$LD"; then
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10132 $as_echo "$LD" >&6; }
10133 else
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135 $as_echo "no" >&6; }
10136 fi
10137 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10139 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10140 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
10142 else
10143 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10144 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10145 acl_cv_prog_gnu_ld=yes
10146 else
10147 acl_cv_prog_gnu_ld=no
10148 fi
10149 fi
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
10151 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
10152 with_gnu_ld=$acl_cv_prog_gnu_ld
10153
10154
10155
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
10157 $as_echo_n "checking for shared library run path origin... " >&6; }
10158 if test "${acl_cv_rpath+set}" = set; then :
10159 $as_echo_n "(cached) " >&6
10160 else
10161
10162 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10163 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10164 . ./conftest.sh
10165 rm -f ./conftest.sh
10166 acl_cv_rpath=done
10167
10168 fi
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
10170 $as_echo "$acl_cv_rpath" >&6; }
10171 wl="$acl_cv_wl"
10172 libext="$acl_cv_libext"
10173 shlibext="$acl_cv_shlibext"
10174 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10175 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10176 hardcode_direct="$acl_cv_hardcode_direct"
10177 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10178 # Check whether --enable-rpath was given.
10179 if test "${enable_rpath+set}" = set; then :
10180 enableval=$enable_rpath; :
10181 else
10182 enable_rpath=yes
10183 fi
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194 use_additional=yes
10195
10196 acl_save_prefix="$prefix"
10197 prefix="$acl_final_prefix"
10198 acl_save_exec_prefix="$exec_prefix"
10199 exec_prefix="$acl_final_exec_prefix"
10200
10201 eval additional_includedir=\"$includedir\"
10202 eval additional_libdir=\"$libdir\"
10203
10204 exec_prefix="$acl_save_exec_prefix"
10205 prefix="$acl_save_prefix"
10206
10207
10208 # Check whether --with-libexpat-prefix was given.
10209 if test "${with_libexpat_prefix+set}" = set; then :
10210 withval=$with_libexpat_prefix;
10211 if test "X$withval" = "Xno"; then
10212 use_additional=no
10213 else
10214 if test "X$withval" = "X"; then
10215
10216 acl_save_prefix="$prefix"
10217 prefix="$acl_final_prefix"
10218 acl_save_exec_prefix="$exec_prefix"
10219 exec_prefix="$acl_final_exec_prefix"
10220
10221 eval additional_includedir=\"$includedir\"
10222 eval additional_libdir=\"$libdir\"
10223
10224 exec_prefix="$acl_save_exec_prefix"
10225 prefix="$acl_save_prefix"
10226
10227 else
10228 additional_includedir="$withval/include"
10229 additional_libdir="$withval/lib"
10230 fi
10231 fi
10232
10233 fi
10234
10235 LIBEXPAT=
10236 LTLIBEXPAT=
10237 INCEXPAT=
10238 rpathdirs=
10239 ltrpathdirs=
10240 names_already_handled=
10241 names_next_round='expat '
10242 while test -n "$names_next_round"; do
10243 names_this_round="$names_next_round"
10244 names_next_round=
10245 for name in $names_this_round; do
10246 already_handled=
10247 for n in $names_already_handled; do
10248 if test "$n" = "$name"; then
10249 already_handled=yes
10250 break
10251 fi
10252 done
10253 if test -z "$already_handled"; then
10254 names_already_handled="$names_already_handled $name"
10255 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10256 eval value=\"\$HAVE_LIB$uppername\"
10257 if test -n "$value"; then
10258 if test "$value" = yes; then
10259 eval value=\"\$LIB$uppername\"
10260 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10261 eval value=\"\$LTLIB$uppername\"
10262 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10263 else
10264 :
10265 fi
10266 else
10267 found_dir=
10268 found_la=
10269 found_so=
10270 found_a=
10271 if test $use_additional = yes; then
10272 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10273 found_dir="$additional_libdir"
10274 found_so="$additional_libdir/lib$name.$shlibext"
10275 if test -f "$additional_libdir/lib$name.la"; then
10276 found_la="$additional_libdir/lib$name.la"
10277 fi
10278 else
10279 if test -f "$additional_libdir/lib$name.$libext"; then
10280 found_dir="$additional_libdir"
10281 found_a="$additional_libdir/lib$name.$libext"
10282 if test -f "$additional_libdir/lib$name.la"; then
10283 found_la="$additional_libdir/lib$name.la"
10284 fi
10285 fi
10286 fi
10287 fi
10288 if test "X$found_dir" = "X"; then
10289 for x in $LDFLAGS $LTLIBEXPAT; do
10290
10291 acl_save_prefix="$prefix"
10292 prefix="$acl_final_prefix"
10293 acl_save_exec_prefix="$exec_prefix"
10294 exec_prefix="$acl_final_exec_prefix"
10295 eval x=\"$x\"
10296 exec_prefix="$acl_save_exec_prefix"
10297 prefix="$acl_save_prefix"
10298
10299 case "$x" in
10300 -L*)
10301 dir=`echo "X$x" | sed -e 's/^X-L//'`
10302 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10303 found_dir="$dir"
10304 found_so="$dir/lib$name.$shlibext"
10305 if test -f "$dir/lib$name.la"; then
10306 found_la="$dir/lib$name.la"
10307 fi
10308 else
10309 if test -f "$dir/lib$name.$libext"; then
10310 found_dir="$dir"
10311 found_a="$dir/lib$name.$libext"
10312 if test -f "$dir/lib$name.la"; then
10313 found_la="$dir/lib$name.la"
10314 fi
10315 fi
10316 fi
10317 ;;
10318 esac
10319 if test "X$found_dir" != "X"; then
10320 break
10321 fi
10322 done
10323 fi
10324 if test "X$found_dir" != "X"; then
10325 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10326 if test "X$found_so" != "X"; then
10327 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10328 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10329 else
10330 haveit=
10331 for x in $ltrpathdirs; do
10332 if test "X$x" = "X$found_dir"; then
10333 haveit=yes
10334 break
10335 fi
10336 done
10337 if test -z "$haveit"; then
10338 ltrpathdirs="$ltrpathdirs $found_dir"
10339 fi
10340 if test "$hardcode_direct" = yes; then
10341 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10342 else
10343 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10344 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10345 haveit=
10346 for x in $rpathdirs; do
10347 if test "X$x" = "X$found_dir"; then
10348 haveit=yes
10349 break
10350 fi
10351 done
10352 if test -z "$haveit"; then
10353 rpathdirs="$rpathdirs $found_dir"
10354 fi
10355 else
10356 haveit=
10357 for x in $LDFLAGS $LIBEXPAT; do
10358
10359 acl_save_prefix="$prefix"
10360 prefix="$acl_final_prefix"
10361 acl_save_exec_prefix="$exec_prefix"
10362 exec_prefix="$acl_final_exec_prefix"
10363 eval x=\"$x\"
10364 exec_prefix="$acl_save_exec_prefix"
10365 prefix="$acl_save_prefix"
10366
10367 if test "X$x" = "X-L$found_dir"; then
10368 haveit=yes
10369 break
10370 fi
10371 done
10372 if test -z "$haveit"; then
10373 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10374 fi
10375 if test "$hardcode_minus_L" != no; then
10376 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10377 else
10378 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10379 fi
10380 fi
10381 fi
10382 fi
10383 else
10384 if test "X$found_a" != "X"; then
10385 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10386 else
10387 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10388 fi
10389 fi
10390 additional_includedir=
10391 case "$found_dir" in
10392 */lib | */lib/)
10393 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10394 additional_includedir="$basedir/include"
10395 ;;
10396 esac
10397 if test "X$additional_includedir" != "X"; then
10398 if test "X$additional_includedir" != "X/usr/include"; then
10399 haveit=
10400 if test "X$additional_includedir" = "X/usr/local/include"; then
10401 if test -n "$GCC"; then
10402 case $host_os in
10403 linux*) haveit=yes;;
10404 esac
10405 fi
10406 fi
10407 if test -z "$haveit"; then
10408 for x in $CPPFLAGS $INCEXPAT; do
10409
10410 acl_save_prefix="$prefix"
10411 prefix="$acl_final_prefix"
10412 acl_save_exec_prefix="$exec_prefix"
10413 exec_prefix="$acl_final_exec_prefix"
10414 eval x=\"$x\"
10415 exec_prefix="$acl_save_exec_prefix"
10416 prefix="$acl_save_prefix"
10417
10418 if test "X$x" = "X-I$additional_includedir"; then
10419 haveit=yes
10420 break
10421 fi
10422 done
10423 if test -z "$haveit"; then
10424 if test -d "$additional_includedir"; then
10425 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10426 fi
10427 fi
10428 fi
10429 fi
10430 fi
10431 if test -n "$found_la"; then
10432 save_libdir="$libdir"
10433 case "$found_la" in
10434 */* | *\\*) . "$found_la" ;;
10435 *) . "./$found_la" ;;
10436 esac
10437 libdir="$save_libdir"
10438 for dep in $dependency_libs; do
10439 case "$dep" in
10440 -L*)
10441 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10442 if test "X$additional_libdir" != "X/usr/lib"; then
10443 haveit=
10444 if test "X$additional_libdir" = "X/usr/local/lib"; then
10445 if test -n "$GCC"; then
10446 case $host_os in
10447 linux*) haveit=yes;;
10448 esac
10449 fi
10450 fi
10451 if test -z "$haveit"; then
10452 haveit=
10453 for x in $LDFLAGS $LIBEXPAT; do
10454
10455 acl_save_prefix="$prefix"
10456 prefix="$acl_final_prefix"
10457 acl_save_exec_prefix="$exec_prefix"
10458 exec_prefix="$acl_final_exec_prefix"
10459 eval x=\"$x\"
10460 exec_prefix="$acl_save_exec_prefix"
10461 prefix="$acl_save_prefix"
10462
10463 if test "X$x" = "X-L$additional_libdir"; then
10464 haveit=yes
10465 break
10466 fi
10467 done
10468 if test -z "$haveit"; then
10469 if test -d "$additional_libdir"; then
10470 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10471 fi
10472 fi
10473 haveit=
10474 for x in $LDFLAGS $LTLIBEXPAT; do
10475
10476 acl_save_prefix="$prefix"
10477 prefix="$acl_final_prefix"
10478 acl_save_exec_prefix="$exec_prefix"
10479 exec_prefix="$acl_final_exec_prefix"
10480 eval x=\"$x\"
10481 exec_prefix="$acl_save_exec_prefix"
10482 prefix="$acl_save_prefix"
10483
10484 if test "X$x" = "X-L$additional_libdir"; then
10485 haveit=yes
10486 break
10487 fi
10488 done
10489 if test -z "$haveit"; then
10490 if test -d "$additional_libdir"; then
10491 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10492 fi
10493 fi
10494 fi
10495 fi
10496 ;;
10497 -R*)
10498 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10499 if test "$enable_rpath" != no; then
10500 haveit=
10501 for x in $rpathdirs; do
10502 if test "X$x" = "X$dir"; then
10503 haveit=yes
10504 break
10505 fi
10506 done
10507 if test -z "$haveit"; then
10508 rpathdirs="$rpathdirs $dir"
10509 fi
10510 haveit=
10511 for x in $ltrpathdirs; do
10512 if test "X$x" = "X$dir"; then
10513 haveit=yes
10514 break
10515 fi
10516 done
10517 if test -z "$haveit"; then
10518 ltrpathdirs="$ltrpathdirs $dir"
10519 fi
10520 fi
10521 ;;
10522 -l*)
10523 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10524 ;;
10525 *.la)
10526 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10527 ;;
10528 *)
10529 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10530 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10531 ;;
10532 esac
10533 done
10534 fi
10535 else
10536 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10537 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10538 fi
10539 fi
10540 fi
10541 done
10542 done
10543 if test "X$rpathdirs" != "X"; then
10544 if test -n "$hardcode_libdir_separator"; then
10545 alldirs=
10546 for found_dir in $rpathdirs; do
10547 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10548 done
10549 acl_save_libdir="$libdir"
10550 libdir="$alldirs"
10551 eval flag=\"$hardcode_libdir_flag_spec\"
10552 libdir="$acl_save_libdir"
10553 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10554 else
10555 for found_dir in $rpathdirs; do
10556 acl_save_libdir="$libdir"
10557 libdir="$found_dir"
10558 eval flag=\"$hardcode_libdir_flag_spec\"
10559 libdir="$acl_save_libdir"
10560 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10561 done
10562 fi
10563 fi
10564 if test "X$ltrpathdirs" != "X"; then
10565 for found_dir in $ltrpathdirs; do
10566 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10567 done
10568 fi
10569
10570
10571 ac_save_CPPFLAGS="$CPPFLAGS"
10572
10573 for element in $INCEXPAT; do
10574 haveit=
10575 for x in $CPPFLAGS; do
10576
10577 acl_save_prefix="$prefix"
10578 prefix="$acl_final_prefix"
10579 acl_save_exec_prefix="$exec_prefix"
10580 exec_prefix="$acl_final_exec_prefix"
10581 eval x=\"$x\"
10582 exec_prefix="$acl_save_exec_prefix"
10583 prefix="$acl_save_prefix"
10584
10585 if test "X$x" = "X$element"; then
10586 haveit=yes
10587 break
10588 fi
10589 done
10590 if test -z "$haveit"; then
10591 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10592 fi
10593 done
10594
10595
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
10597 $as_echo_n "checking for libexpat... " >&6; }
10598 if test "${ac_cv_libexpat+set}" = set; then :
10599 $as_echo_n "(cached) " >&6
10600 else
10601
10602 ac_save_LIBS="$LIBS"
10603 LIBS="$LIBS $LIBEXPAT"
10604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605 /* end confdefs.h. */
10606 #include "expat.h"
10607 int
10608 main ()
10609 {
10610 XML_Parser p = XML_ParserCreate (0);
10611 ;
10612 return 0;
10613 }
10614 _ACEOF
10615 if ac_fn_c_try_link "$LINENO"; then :
10616 ac_cv_libexpat=yes
10617 else
10618 ac_cv_libexpat=no
10619 fi
10620 rm -f core conftest.err conftest.$ac_objext \
10621 conftest$ac_exeext conftest.$ac_ext
10622 LIBS="$ac_save_LIBS"
10623
10624 fi
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
10626 $as_echo "$ac_cv_libexpat" >&6; }
10627 if test "$ac_cv_libexpat" = yes; then
10628 HAVE_LIBEXPAT=yes
10629
10630 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
10631
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
10633 $as_echo_n "checking how to link with libexpat... " >&6; }
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
10635 $as_echo "$LIBEXPAT" >&6; }
10636 else
10637 HAVE_LIBEXPAT=no
10638 CPPFLAGS="$ac_save_CPPFLAGS"
10639 LIBEXPAT=
10640 LTLIBEXPAT=
10641 fi
10642
10643
10644
10645
10646
10647
10648 if test "$HAVE_LIBEXPAT" != yes; then
10649 if test "$with_expat" = yes; then
10650 as_fn_error "expat is missing or unusable" "$LINENO" 5
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
10653 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
10654 fi
10655 else
10656 save_LIBS=$LIBS
10657 LIBS="$LIBS $LIBEXPAT"
10658 for ac_func in XML_StopParser
10659 do :
10660 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
10661 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
10662 cat >>confdefs.h <<_ACEOF
10663 #define HAVE_XML_STOPPARSER 1
10664 _ACEOF
10665
10666 fi
10667 done
10668
10669 LIBS=$save_LIBS
10670 fi
10671 fi
10672
10673
10674
10675
10676
10677
10678 # Check whether --with-python was given.
10679 if test "${with_python+set}" = set; then :
10680 withval=$with_python;
10681 else
10682 with_python=auto
10683 fi
10684
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10686 $as_echo_n "checking whether to use python... " >&6; }
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10688 $as_echo "$with_python" >&6; }
10689
10690 if test "${with_python}" = no; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10692 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10693 have_libpython=no
10694 else
10695 case "${with_python}" in
10696 /*)
10697 if test -d ${with_python}; then
10698 # Assume the python binary is ${with_python}/bin/python.
10699 python_prog="${with_python}/bin/python"
10700 python_prefix=
10701 # If python does not exit ${with_python}/bin, then try in
10702 # ${with_python}. On Windows/MinGW, this is where the Python
10703 # executable is.
10704 if test ! -x "${python_prog}"; then
10705 python_prog="${with_python}/python"
10706 python_prefix=
10707 fi
10708 if test ! -x "${python_prog}"; then
10709 # Fall back to gdb 7.0/7.1 behaviour.
10710 python_prog=missing
10711 python_prefix=${with_python}
10712 fi
10713 elif test -x "${with_python}"; then
10714 # While we can't run python compiled for $host (unless host == build),
10715 # the user could write a script that provides the needed information,
10716 # so we support that.
10717 python_prog=${with_python}
10718 python_prefix=
10719 else
10720 as_fn_error "invalid value for --with-python" "$LINENO" 5
10721 fi
10722 ;;
10723 */*)
10724 # Disallow --with-python=foo/bar.
10725 as_fn_error "invalid value for --with-python" "$LINENO" 5
10726 ;;
10727 *)
10728 # The user has either specified auto, yes, or the name of the python
10729 # program assumed to be in $PATH.
10730 python_prefix=
10731 case "${with_python}" in
10732 yes | auto)
10733 if test ${build} = ${host}; then
10734 # Extract the first word of "python", so it can be a program name with args.
10735 set dummy python; ac_word=$2
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737 $as_echo_n "checking for $ac_word... " >&6; }
10738 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 case $python_prog_path in
10742 [\\/]* | ?:[\\/]*)
10743 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10744 ;;
10745 *)
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747 for as_dir in $PATH
10748 do
10749 IFS=$as_save_IFS
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10753 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 break 2
10756 fi
10757 done
10758 done
10759 IFS=$as_save_IFS
10760
10761 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10762 ;;
10763 esac
10764 fi
10765 python_prog_path=$ac_cv_path_python_prog_path
10766 if test -n "$python_prog_path"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10768 $as_echo "$python_prog_path" >&6; }
10769 else
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771 $as_echo "no" >&6; }
10772 fi
10773
10774
10775 if test "${python_prog_path}" = missing; then
10776 python_prog=missing
10777 else
10778 python_prog=${python_prog_path}
10779 fi
10780 else
10781 # Not much we can do except assume the cross-compiler will find the
10782 # right files.
10783 python_prog=missing
10784 fi
10785 ;;
10786 *)
10787 # While we can't run python compiled for $host (unless host == build),
10788 # the user could write a script that provides the needed information,
10789 # so we support that.
10790 python_prog="${with_python}"
10791 # Extract the first word of "${python_prog}", so it can be a program name with args.
10792 set dummy ${python_prog}; ac_word=$2
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794 $as_echo_n "checking for $ac_word... " >&6; }
10795 if test "${ac_cv_path_python_prog_path+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 case $python_prog_path in
10799 [\\/]* | ?:[\\/]*)
10800 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10801 ;;
10802 *)
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10805 do
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10810 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 break 2
10813 fi
10814 done
10815 done
10816 IFS=$as_save_IFS
10817
10818 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10819 ;;
10820 esac
10821 fi
10822 python_prog_path=$ac_cv_path_python_prog_path
10823 if test -n "$python_prog_path"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10825 $as_echo "$python_prog_path" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10829 fi
10830
10831
10832 if test "${python_prog_path}" = missing; then
10833 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
10834 fi
10835 ;;
10836 esac
10837 esac
10838
10839 if test "${python_prog}" != missing; then
10840 # We have a python program to use, but it may be too old.
10841 # Don't flag an error for --with-python=auto (the default).
10842 have_python_config=yes
10843 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10844 if test $? != 0; then
10845 have_python_config=failed
10846 if test "${with_python}" != auto; then
10847 as_fn_error "failure running python-config --includes" "$LINENO" 5
10848 fi
10849 fi
10850 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10851 if test $? != 0; then
10852 have_python_config=failed
10853 if test "${with_python}" != auto; then
10854 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
10855 fi
10856 fi
10857 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10858 if test $? != 0; then
10859 have_python_config=failed
10860 if test "${with_python}" != auto; then
10861 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
10862 fi
10863 fi
10864 else
10865 # We do not have a python executable we can use to determine where
10866 # to find the Python headers and libs. We cannot guess the include
10867 # path from the python_prefix either, because that include path
10868 # depends on the Python version. So, there is nothing much we can
10869 # do except assume that the compiler will be able to find those files.
10870 python_includes=
10871 python_libs=
10872 have_python_config=no
10873 fi
10874
10875 # If we have python-config, only try the configuration it provides.
10876 # Otherwise fallback on the old way of trying different versions of
10877 # python in turn.
10878
10879 have_libpython=no
10880 if test "${have_python_config}" = yes; then
10881 # Determine the Python version by extracting "-lpython<version>"
10882 # part of the python_libs. <version> is usually X.Y with X and Y
10883 # being decimal numbers, but can also be XY (seen on Windows).
10884 #
10885 # The extraction is performed using sed with a regular expression.
10886 # Initially, the regexp used was using the '?' quantifier to make
10887 # the dot in the version number optional. Unfortunately, this
10888 # does not work with non-GNU versions of sed because, because of
10889 # what looks like a limitation (the '?' quantifier does not work
10890 # with back-references). We work around this limitation by using
10891 # the '*' quantifier instead. It means that, in theory, we might
10892 # match unexpected version strings such as "-lpython2..7", but
10893 # this seems unlikely in practice. And even if that happens,
10894 # an error will be triggered later on, when checking that version
10895 # number.
10896 python_version=`echo " ${python_libs} " \
10897 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10898 case "${python_version}" in
10899 python*)
10900
10901 version=${python_version}
10902
10903 new_CPPFLAGS=${python_includes}
10904 new_LIBS=${python_libs}
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10906 $as_echo_n "checking for ${version}... " >&6; }
10907 save_CPPFLAGS=$CPPFLAGS
10908 save_LIBS=$LIBS
10909 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10910 LIBS="$LIBS $new_LIBS"
10911 found_usable_python=no
10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10913 /* end confdefs.h. */
10914 #include "Python.h"
10915 int
10916 main ()
10917 {
10918 Py_Initialize ();
10919 ;
10920 return 0;
10921 }
10922 _ACEOF
10923 if ac_fn_c_try_link "$LINENO"; then :
10924 have_libpython=${version}
10925 found_usable_python=yes
10926 PYTHON_CPPFLAGS=$new_CPPFLAGS
10927 PYTHON_LIBS=$new_LIBS
10928 fi
10929 rm -f core conftest.err conftest.$ac_objext \
10930 conftest$ac_exeext conftest.$ac_ext
10931 CPPFLAGS=$save_CPPFLAGS
10932 LIBS=$save_LIBS
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10934 $as_echo "${found_usable_python}" >&6; }
10935
10936 ;;
10937 *)
10938 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
10939 ;;
10940 esac
10941 elif test "${have_python_config}" != failed; then
10942 if test "${have_libpython}" = no; then
10943
10944 version=python2.7
10945
10946 new_CPPFLAGS=${python_includes}
10947 new_LIBS="${python_libs} -lpython2.7"
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10949 $as_echo_n "checking for ${version}... " >&6; }
10950 save_CPPFLAGS=$CPPFLAGS
10951 save_LIBS=$LIBS
10952 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10953 LIBS="$LIBS $new_LIBS"
10954 found_usable_python=no
10955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957 #include "Python.h"
10958 int
10959 main ()
10960 {
10961 Py_Initialize ();
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 if ac_fn_c_try_link "$LINENO"; then :
10967 have_libpython=${version}
10968 found_usable_python=yes
10969 PYTHON_CPPFLAGS=$new_CPPFLAGS
10970 PYTHON_LIBS=$new_LIBS
10971 fi
10972 rm -f core conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 CPPFLAGS=$save_CPPFLAGS
10975 LIBS=$save_LIBS
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10977 $as_echo "${found_usable_python}" >&6; }
10978
10979 fi
10980 if test "${have_libpython}" = no; then
10981
10982 version=python2.6
10983
10984 new_CPPFLAGS=${python_includes}
10985 new_LIBS="${python_libs} -lpython2.6"
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10987 $as_echo_n "checking for ${version}... " >&6; }
10988 save_CPPFLAGS=$CPPFLAGS
10989 save_LIBS=$LIBS
10990 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10991 LIBS="$LIBS $new_LIBS"
10992 found_usable_python=no
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
10995 #include "Python.h"
10996 int
10997 main ()
10998 {
10999 Py_Initialize ();
11000 ;
11001 return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 have_libpython=${version}
11006 found_usable_python=yes
11007 PYTHON_CPPFLAGS=$new_CPPFLAGS
11008 PYTHON_LIBS=$new_LIBS
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext \
11011 conftest$ac_exeext conftest.$ac_ext
11012 CPPFLAGS=$save_CPPFLAGS
11013 LIBS=$save_LIBS
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11015 $as_echo "${found_usable_python}" >&6; }
11016
11017 fi
11018 if test ${have_libpython} = no; then
11019
11020 version=python2.5
11021
11022 new_CPPFLAGS=${python_includes}
11023 new_LIBS="${python_libs} -lpython2.5"
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11025 $as_echo_n "checking for ${version}... " >&6; }
11026 save_CPPFLAGS=$CPPFLAGS
11027 save_LIBS=$LIBS
11028 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11029 LIBS="$LIBS $new_LIBS"
11030 found_usable_python=no
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 #include "Python.h"
11034 int
11035 main ()
11036 {
11037 Py_Initialize ();
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 if ac_fn_c_try_link "$LINENO"; then :
11043 have_libpython=${version}
11044 found_usable_python=yes
11045 PYTHON_CPPFLAGS=$new_CPPFLAGS
11046 PYTHON_LIBS=$new_LIBS
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 CPPFLAGS=$save_CPPFLAGS
11051 LIBS=$save_LIBS
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11053 $as_echo "${found_usable_python}" >&6; }
11054
11055 fi
11056 if test ${have_libpython} = no; then
11057
11058 version=python2.4
11059
11060 new_CPPFLAGS=${python_includes}
11061 new_LIBS="${python_libs} -lpython2.4"
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
11063 $as_echo_n "checking for ${version}... " >&6; }
11064 save_CPPFLAGS=$CPPFLAGS
11065 save_LIBS=$LIBS
11066 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11067 LIBS="$LIBS $new_LIBS"
11068 found_usable_python=no
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071 #include "Python.h"
11072 int
11073 main ()
11074 {
11075 Py_Initialize ();
11076 ;
11077 return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"; then :
11081 have_libpython=${version}
11082 found_usable_python=yes
11083 PYTHON_CPPFLAGS=$new_CPPFLAGS
11084 PYTHON_LIBS=$new_LIBS
11085 fi
11086 rm -f core conftest.err conftest.$ac_objext \
11087 conftest$ac_exeext conftest.$ac_ext
11088 CPPFLAGS=$save_CPPFLAGS
11089 LIBS=$save_LIBS
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
11091 $as_echo "${found_usable_python}" >&6; }
11092
11093 fi
11094 fi
11095 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
11096
11097 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
11098
11099 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
11100
11101 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
11102
11103 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
11104
11105 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
11106
11107 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
11108
11109 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
11110
11111 fi
11112
11113 if test "${have_libpython}" = no; then
11114 case "${with_python}" in
11115 yes)
11116 as_fn_error "python is missing or unusable" "$LINENO" 5
11117 ;;
11118 auto)
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
11120 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11121 ;;
11122 *)
11123 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
11124 ;;
11125 esac
11126 else
11127 if test -n "${python_prefix}"; then
11128
11129 cat >>confdefs.h <<_ACEOF
11130 #define WITH_PYTHON_PATH "${python_prefix}"
11131 _ACEOF
11132
11133
11134 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
11135 if test "x$prefix" = xNONE; then
11136 test_prefix=/usr/local
11137 else
11138 test_prefix=$prefix
11139 fi
11140 else
11141 test_prefix=$exec_prefix
11142 fi
11143 value=0
11144 case ${python_prefix} in
11145 "${test_prefix}"|"${test_prefix}/"*|\
11146 '${exec_prefix}'|'${exec_prefix}/'*)
11147 value=1
11148 ;;
11149 esac
11150
11151 cat >>confdefs.h <<_ACEOF
11152 #define PYTHON_PATH_RELOCATABLE $value
11153 _ACEOF
11154
11155
11156 fi
11157 fi
11158 fi
11159
11160 if test "${have_libpython}" != no; then
11161
11162 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11163
11164 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11165 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11166 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11167 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
11168 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11169
11170 # Flags needed to compile Python code (taken from python-config --cflags).
11171 # We cannot call python-config directly because it will output whatever was
11172 # used when compiling the Python interpreter itself, including flags which
11173 # would make the python-related objects be compiled differently from the
11174 # rest of GDB (e.g., -O2 and -fPIC).
11175 if test "${GCC}" = yes; then
11176 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11177 fi
11178
11179 if test "x${tentative_python_cflags}" != x; then
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
11181 $as_echo_n "checking compiler flags for python code... " >&6; }
11182 for flag in ${tentative_python_cflags}; do
11183 # Check that the compiler accepts it
11184 saved_CFLAGS="$CFLAGS"
11185 CFLAGS="$CFLAGS $flag"
11186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 /* end confdefs.h. */
11188
11189 int
11190 main ()
11191 {
11192
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 if ac_fn_c_try_compile "$LINENO"; then :
11198 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11199 fi
11200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201 CFLAGS="$saved_CFLAGS"
11202 done
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
11204 $as_echo "${PYTHON_CFLAGS}" >&6; }
11205 fi
11206
11207 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
11208 # #if _SGIAPI
11209 # #define siginfo __siginfo
11210 # #endif
11211 # The problem is that including Python causes some XOPEN macros to be
11212 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
11213 # to false. So, we work around this issue by defining siginfo ourself
11214 # though the command-line.
11215 case "$gdb_host" in
11216 irix*) if test "${GCC}" = yes; then
11217 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
11218 fi
11219 ;;
11220 esac
11221 else
11222 # Even if Python support is not compiled in, we need to have these files
11223 # included.
11224 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
11225 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
11226 python/py-prettyprint.c python/py-auto-load.c"
11227 fi
11228
11229
11230
11231
11232 # ------------------------- #
11233 # Checks for header files. #
11234 # ------------------------- #
11235
11236 ac_header_dirent=no
11237 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11238 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11240 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11242 $as_echo_n "(cached) " >&6
11243 else
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11246 #include <sys/types.h>
11247 #include <$ac_hdr>
11248
11249 int
11250 main ()
11251 {
11252 if ((DIR *) 0)
11253 return 0;
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 if ac_fn_c_try_compile "$LINENO"; then :
11259 eval "$as_ac_Header=yes"
11260 else
11261 eval "$as_ac_Header=no"
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 fi
11265 eval ac_res=\$$as_ac_Header
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11267 $as_echo "$ac_res" >&6; }
11268 eval as_val=\$$as_ac_Header
11269 if test "x$as_val" = x""yes; then :
11270 cat >>confdefs.h <<_ACEOF
11271 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11272 _ACEOF
11273
11274 ac_header_dirent=$ac_hdr; break
11275 fi
11276
11277 done
11278 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11279 if test $ac_header_dirent = dirent.h; then
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11281 $as_echo_n "checking for library containing opendir... " >&6; }
11282 if test "${ac_cv_search_opendir+set}" = set; then :
11283 $as_echo_n "(cached) " >&6
11284 else
11285 ac_func_search_save_LIBS=$LIBS
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char opendir ();
11296 int
11297 main ()
11298 {
11299 return opendir ();
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 for ac_lib in '' dir; do
11305 if test -z "$ac_lib"; then
11306 ac_res="none required"
11307 else
11308 ac_res=-l$ac_lib
11309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11310 fi
11311 if ac_fn_c_try_link "$LINENO"; then :
11312 ac_cv_search_opendir=$ac_res
11313 fi
11314 rm -f core conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext
11316 if test "${ac_cv_search_opendir+set}" = set; then :
11317 break
11318 fi
11319 done
11320 if test "${ac_cv_search_opendir+set}" = set; then :
11321
11322 else
11323 ac_cv_search_opendir=no
11324 fi
11325 rm conftest.$ac_ext
11326 LIBS=$ac_func_search_save_LIBS
11327 fi
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11329 $as_echo "$ac_cv_search_opendir" >&6; }
11330 ac_res=$ac_cv_search_opendir
11331 if test "$ac_res" != no; then :
11332 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11333
11334 fi
11335
11336 else
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11338 $as_echo_n "checking for library containing opendir... " >&6; }
11339 if test "${ac_cv_search_opendir+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 ac_func_search_save_LIBS=$LIBS
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h. */
11345
11346 /* Override any GCC internal prototype to avoid an error.
11347 Use char because int might match the return type of a GCC
11348 builtin and then its argument prototype would still apply. */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char opendir ();
11353 int
11354 main ()
11355 {
11356 return opendir ();
11357 ;
11358 return 0;
11359 }
11360 _ACEOF
11361 for ac_lib in '' x; do
11362 if test -z "$ac_lib"; then
11363 ac_res="none required"
11364 else
11365 ac_res=-l$ac_lib
11366 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11367 fi
11368 if ac_fn_c_try_link "$LINENO"; then :
11369 ac_cv_search_opendir=$ac_res
11370 fi
11371 rm -f core conftest.err conftest.$ac_objext \
11372 conftest$ac_exeext
11373 if test "${ac_cv_search_opendir+set}" = set; then :
11374 break
11375 fi
11376 done
11377 if test "${ac_cv_search_opendir+set}" = set; then :
11378
11379 else
11380 ac_cv_search_opendir=no
11381 fi
11382 rm conftest.$ac_ext
11383 LIBS=$ac_func_search_save_LIBS
11384 fi
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11386 $as_echo "$ac_cv_search_opendir" >&6; }
11387 ac_res=$ac_cv_search_opendir
11388 if test "$ac_res" != no; then :
11389 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11390
11391 fi
11392
11393 fi
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11396 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11397 if test "${ac_cv_header_stat_broken+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401 /* end confdefs.h. */
11402 #include <sys/types.h>
11403 #include <sys/stat.h>
11404
11405 #if defined S_ISBLK && defined S_IFDIR
11406 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11407 #endif
11408
11409 #if defined S_ISBLK && defined S_IFCHR
11410 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11411 #endif
11412
11413 #if defined S_ISLNK && defined S_IFREG
11414 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11415 #endif
11416
11417 #if defined S_ISSOCK && defined S_IFREG
11418 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11419 #endif
11420
11421 _ACEOF
11422 if ac_fn_c_try_compile "$LINENO"; then :
11423 ac_cv_header_stat_broken=no
11424 else
11425 ac_cv_header_stat_broken=yes
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11428 fi
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11430 $as_echo "$ac_cv_header_stat_broken" >&6; }
11431 if test $ac_cv_header_stat_broken = yes; then
11432
11433 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11434
11435 fi
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11438 $as_echo_n "checking for ANSI C header files... " >&6; }
11439 if test "${ac_cv_header_stdc+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 #include <stdlib.h>
11445 #include <stdarg.h>
11446 #include <string.h>
11447 #include <float.h>
11448
11449 int
11450 main ()
11451 {
11452
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_compile "$LINENO"; then :
11458 ac_cv_header_stdc=yes
11459 else
11460 ac_cv_header_stdc=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463
11464 if test $ac_cv_header_stdc = yes; then
11465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11467 /* end confdefs.h. */
11468 #include <string.h>
11469
11470 _ACEOF
11471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11472 $EGREP "memchr" >/dev/null 2>&1; then :
11473
11474 else
11475 ac_cv_header_stdc=no
11476 fi
11477 rm -f conftest*
11478
11479 fi
11480
11481 if test $ac_cv_header_stdc = yes; then
11482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11485 #include <stdlib.h>
11486
11487 _ACEOF
11488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11489 $EGREP "free" >/dev/null 2>&1; then :
11490
11491 else
11492 ac_cv_header_stdc=no
11493 fi
11494 rm -f conftest*
11495
11496 fi
11497
11498 if test $ac_cv_header_stdc = yes; then
11499 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11500 if test "$cross_compiling" = yes; then :
11501 :
11502 else
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11505 #include <ctype.h>
11506 #include <stdlib.h>
11507 #if ((' ' & 0x0FF) == 0x020)
11508 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11509 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11510 #else
11511 # define ISLOWER(c) \
11512 (('a' <= (c) && (c) <= 'i') \
11513 || ('j' <= (c) && (c) <= 'r') \
11514 || ('s' <= (c) && (c) <= 'z'))
11515 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11516 #endif
11517
11518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11519 int
11520 main ()
11521 {
11522 int i;
11523 for (i = 0; i < 256; i++)
11524 if (XOR (islower (i), ISLOWER (i))
11525 || toupper (i) != TOUPPER (i))
11526 return 2;
11527 return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_run "$LINENO"; then :
11531
11532 else
11533 ac_cv_header_stdc=no
11534 fi
11535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11536 conftest.$ac_objext conftest.beam conftest.$ac_ext
11537 fi
11538
11539 fi
11540 fi
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11542 $as_echo "$ac_cv_header_stdc" >&6; }
11543 if test $ac_cv_header_stdc = yes; then
11544
11545 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11546
11547 fi
11548
11549 # elf_hp.h is for HP/UX 64-bit shared library support.
11550 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
11551 # unconditionally, so what's the point in checking these?
11552 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
11553 thread_db.h gnu/libc-version.h signal.h stddef.h \
11554 stdlib.h string.h memory.h strings.h sys/fault.h \
11555 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
11556 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
11557 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
11558 sys/types.h sys/wait.h wait.h termios.h termio.h \
11559 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
11560 do :
11561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11562 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11563 eval as_val=\$$as_ac_Header
11564 if test "x$as_val" = x""yes; then :
11565 cat >>confdefs.h <<_ACEOF
11566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11567 _ACEOF
11568
11569 fi
11570
11571 done
11572
11573 for ac_header in link.h
11574 do :
11575 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
11576 # include <sys/types.h>
11577 #endif
11578 #if HAVE_NLIST_H
11579 # include <nlist.h>
11580 #endif
11581
11582 "
11583 if test "x$ac_cv_header_link_h" = x""yes; then :
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE_LINK_H 1
11586 _ACEOF
11587
11588 fi
11589
11590 done
11591
11592 for ac_header in sys/proc.h
11593 do :
11594 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
11595 # include <sys/param.h>
11596 #endif
11597
11598 "
11599 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
11600 cat >>confdefs.h <<_ACEOF
11601 #define HAVE_SYS_PROC_H 1
11602 _ACEOF
11603
11604 fi
11605
11606 done
11607
11608 for ac_header in sys/user.h
11609 do :
11610 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
11611 # include <sys/param.h>
11612 #endif
11613
11614 "
11615 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
11616 cat >>confdefs.h <<_ACEOF
11617 #define HAVE_SYS_USER_H 1
11618 _ACEOF
11619
11620 fi
11621
11622 done
11623
11624
11625 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
11626 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11627 # think that we don't have <curses.h> if we're using GCC.
11628 case $host_os in
11629 solaris2.[789])
11630 if test "$GCC" = yes; then
11631
11632 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
11633
11634 fi ;;
11635 esac
11636 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
11637 do :
11638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11639 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11640 eval as_val=\$$as_ac_Header
11641 if test "x$as_val" = x""yes; then :
11642 cat >>confdefs.h <<_ACEOF
11643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11644 _ACEOF
11645
11646 fi
11647
11648 done
11649
11650 for ac_header in term.h
11651 do :
11652 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
11653 # include <curses.h>
11654 #endif
11655
11656 "
11657 if test "x$ac_cv_header_term_h" = x""yes; then :
11658 cat >>confdefs.h <<_ACEOF
11659 #define HAVE_TERM_H 1
11660 _ACEOF
11661
11662 fi
11663
11664 done
11665
11666
11667 # ------------------------- #
11668 # Checks for declarations. #
11669 # ------------------------- #
11670
11671 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
11672 if test "x$ac_cv_have_decl_free" = x""yes; then :
11673 ac_have_decl=1
11674 else
11675 ac_have_decl=0
11676 fi
11677
11678 cat >>confdefs.h <<_ACEOF
11679 #define HAVE_DECL_FREE $ac_have_decl
11680 _ACEOF
11681 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
11682 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
11683 ac_have_decl=1
11684 else
11685 ac_have_decl=0
11686 fi
11687
11688 cat >>confdefs.h <<_ACEOF
11689 #define HAVE_DECL_MALLOC $ac_have_decl
11690 _ACEOF
11691 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
11692 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
11693 ac_have_decl=1
11694 else
11695 ac_have_decl=0
11696 fi
11697
11698 cat >>confdefs.h <<_ACEOF
11699 #define HAVE_DECL_REALLOC $ac_have_decl
11700 _ACEOF
11701 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
11702 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
11703 ac_have_decl=1
11704 else
11705 ac_have_decl=0
11706 fi
11707
11708 cat >>confdefs.h <<_ACEOF
11709 #define HAVE_DECL_STRERROR $ac_have_decl
11710 _ACEOF
11711 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
11712 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
11713 ac_have_decl=1
11714 else
11715 ac_have_decl=0
11716 fi
11717
11718 cat >>confdefs.h <<_ACEOF
11719 #define HAVE_DECL_STRSTR $ac_have_decl
11720 _ACEOF
11721 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
11722 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
11723 ac_have_decl=1
11724 else
11725 ac_have_decl=0
11726 fi
11727
11728 cat >>confdefs.h <<_ACEOF
11729 #define HAVE_DECL_GETOPT $ac_have_decl
11730 _ACEOF
11731 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
11732 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
11733 ac_have_decl=1
11734 else
11735 ac_have_decl=0
11736 fi
11737
11738 cat >>confdefs.h <<_ACEOF
11739 #define HAVE_DECL_SNPRINTF $ac_have_decl
11740 _ACEOF
11741 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
11742 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
11743 ac_have_decl=1
11744 else
11745 ac_have_decl=0
11746 fi
11747
11748 cat >>confdefs.h <<_ACEOF
11749 #define HAVE_DECL_VSNPRINTF $ac_have_decl
11750 _ACEOF
11751
11752
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11754 $as_echo_n "checking for LC_MESSAGES... " >&6; }
11755 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11759 /* end confdefs.h. */
11760 #include <locale.h>
11761 int
11762 main ()
11763 {
11764 return LC_MESSAGES
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11770 am_cv_val_LC_MESSAGES=yes
11771 else
11772 am_cv_val_LC_MESSAGES=no
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 fi
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11778 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11779 if test $am_cv_val_LC_MESSAGES = yes; then
11780
11781 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11782
11783 fi
11784
11785
11786 # ----------------------- #
11787 # Checks for structures. #
11788 # ----------------------- #
11789
11790 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
11791 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
11792
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11795 _ACEOF
11796
11797
11798 fi
11799 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
11800 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
11801
11802 cat >>confdefs.h <<_ACEOF
11803 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11804 _ACEOF
11805
11806
11807 fi
11808
11809
11810 # ------------------ #
11811 # Checks for types. #
11812 # ------------------ #
11813
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11815 $as_echo_n "checking return type of signal handlers... " >&6; }
11816 if test "${ac_cv_type_signal+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11820 /* end confdefs.h. */
11821 #include <sys/types.h>
11822 #include <signal.h>
11823
11824 int
11825 main ()
11826 {
11827 return *(signal (0, 0)) (0) == 1;
11828 ;
11829 return 0;
11830 }
11831 _ACEOF
11832 if ac_fn_c_try_compile "$LINENO"; then :
11833 ac_cv_type_signal=int
11834 else
11835 ac_cv_type_signal=void
11836 fi
11837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11840 $as_echo "$ac_cv_type_signal" >&6; }
11841
11842 cat >>confdefs.h <<_ACEOF
11843 #define RETSIGTYPE $ac_cv_type_signal
11844 _ACEOF
11845
11846
11847 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
11848 #include <sys/socket.h>
11849
11850 "
11851 if test "x$ac_cv_type_socklen_t" = x""yes; then :
11852
11853 cat >>confdefs.h <<_ACEOF
11854 #define HAVE_SOCKLEN_T 1
11855 _ACEOF
11856
11857
11858 fi
11859
11860
11861 # ------------------------------------- #
11862 # Checks for compiler characteristics. #
11863 # ------------------------------------- #
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11866 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11867 if test "${ac_cv_c_const+set}" = set; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11871 /* end confdefs.h. */
11872
11873 int
11874 main ()
11875 {
11876 /* FIXME: Include the comments suggested by Paul. */
11877 #ifndef __cplusplus
11878 /* Ultrix mips cc rejects this. */
11879 typedef int charset[2];
11880 const charset cs;
11881 /* SunOS 4.1.1 cc rejects this. */
11882 char const *const *pcpcc;
11883 char **ppc;
11884 /* NEC SVR4.0.2 mips cc rejects this. */
11885 struct point {int x, y;};
11886 static struct point const zero = {0,0};
11887 /* AIX XL C 1.02.0.0 rejects this.
11888 It does not let you subtract one const X* pointer from another in
11889 an arm of an if-expression whose if-part is not a constant
11890 expression */
11891 const char *g = "string";
11892 pcpcc = &g + (g ? g-g : 0);
11893 /* HPUX 7.0 cc rejects these. */
11894 ++pcpcc;
11895 ppc = (char**) pcpcc;
11896 pcpcc = (char const *const *) ppc;
11897 { /* SCO 3.2v4 cc rejects this. */
11898 char *t;
11899 char const *s = 0 ? (char *) 0 : (char const *) 0;
11900
11901 *t++ = 0;
11902 if (s) return 0;
11903 }
11904 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11905 int x[] = {25, 17};
11906 const int *foo = &x[0];
11907 ++foo;
11908 }
11909 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11910 typedef const int *iptr;
11911 iptr p = 0;
11912 ++p;
11913 }
11914 { /* AIX XL C 1.02.0.0 rejects this saying
11915 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11916 struct s { int j; const int *ap[3]; };
11917 struct s *b; b->j = 5;
11918 }
11919 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11920 const int foo = 10;
11921 if (!foo) return 0;
11922 }
11923 return !cs[0] && !zero.x;
11924 #endif
11925
11926 ;
11927 return 0;
11928 }
11929 _ACEOF
11930 if ac_fn_c_try_compile "$LINENO"; then :
11931 ac_cv_c_const=yes
11932 else
11933 ac_cv_c_const=no
11934 fi
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 fi
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11938 $as_echo "$ac_cv_c_const" >&6; }
11939 if test $ac_cv_c_const = no; then
11940
11941 $as_echo "#define const /**/" >>confdefs.h
11942
11943 fi
11944
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
11946 $as_echo_n "checking for inline... " >&6; }
11947 if test "${ac_cv_c_inline+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11949 else
11950 ac_cv_c_inline=no
11951 for ac_kw in inline __inline__ __inline; do
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11954 #ifndef __cplusplus
11955 typedef int foo_t;
11956 static $ac_kw foo_t static_foo () {return 0; }
11957 $ac_kw foo_t foo () {return 0; }
11958 #endif
11959
11960 _ACEOF
11961 if ac_fn_c_try_compile "$LINENO"; then :
11962 ac_cv_c_inline=$ac_kw
11963 fi
11964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11965 test "$ac_cv_c_inline" != no && break
11966 done
11967
11968 fi
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
11970 $as_echo "$ac_cv_c_inline" >&6; }
11971
11972 case $ac_cv_c_inline in
11973 inline | yes) ;;
11974 *)
11975 case $ac_cv_c_inline in
11976 no) ac_val=;;
11977 *) ac_val=$ac_cv_c_inline;;
11978 esac
11979 cat >>confdefs.h <<_ACEOF
11980 #ifndef __cplusplus
11981 #define inline $ac_val
11982 #endif
11983 _ACEOF
11984 ;;
11985 esac
11986
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11988 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11989 if test "${ac_cv_c_bigendian+set}" = set; then :
11990 $as_echo_n "(cached) " >&6
11991 else
11992 ac_cv_c_bigendian=unknown
11993 # See if we're dealing with a universal compiler.
11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11995 /* end confdefs.h. */
11996 #ifndef __APPLE_CC__
11997 not a universal capable compiler
11998 #endif
11999 typedef int dummy;
12000
12001 _ACEOF
12002 if ac_fn_c_try_compile "$LINENO"; then :
12003
12004 # Check for potential -arch flags. It is not universal unless
12005 # there are at least two -arch flags with different values.
12006 ac_arch=
12007 ac_prev=
12008 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12009 if test -n "$ac_prev"; then
12010 case $ac_word in
12011 i?86 | x86_64 | ppc | ppc64)
12012 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12013 ac_arch=$ac_word
12014 else
12015 ac_cv_c_bigendian=universal
12016 break
12017 fi
12018 ;;
12019 esac
12020 ac_prev=
12021 elif test "x$ac_word" = "x-arch"; then
12022 ac_prev=arch
12023 fi
12024 done
12025 fi
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027 if test $ac_cv_c_bigendian = unknown; then
12028 # See if sys/param.h defines the BYTE_ORDER macro.
12029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12030 /* end confdefs.h. */
12031 #include <sys/types.h>
12032 #include <sys/param.h>
12033
12034 int
12035 main ()
12036 {
12037 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12038 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12039 && LITTLE_ENDIAN)
12040 bogus endian macros
12041 #endif
12042
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_c_try_compile "$LINENO"; then :
12048 # It does; now see whether it defined to BIG_ENDIAN or not.
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 #include <sys/types.h>
12052 #include <sys/param.h>
12053
12054 int
12055 main ()
12056 {
12057 #if BYTE_ORDER != BIG_ENDIAN
12058 not big endian
12059 #endif
12060
12061 ;
12062 return 0;
12063 }
12064 _ACEOF
12065 if ac_fn_c_try_compile "$LINENO"; then :
12066 ac_cv_c_bigendian=yes
12067 else
12068 ac_cv_c_bigendian=no
12069 fi
12070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12071 fi
12072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 fi
12074 if test $ac_cv_c_bigendian = unknown; then
12075 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12077 /* end confdefs.h. */
12078 #include <limits.h>
12079
12080 int
12081 main ()
12082 {
12083 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12084 bogus endian macros
12085 #endif
12086
12087 ;
12088 return 0;
12089 }
12090 _ACEOF
12091 if ac_fn_c_try_compile "$LINENO"; then :
12092 # It does; now see whether it defined to _BIG_ENDIAN or not.
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 #include <limits.h>
12096
12097 int
12098 main ()
12099 {
12100 #ifndef _BIG_ENDIAN
12101 not big endian
12102 #endif
12103
12104 ;
12105 return 0;
12106 }
12107 _ACEOF
12108 if ac_fn_c_try_compile "$LINENO"; then :
12109 ac_cv_c_bigendian=yes
12110 else
12111 ac_cv_c_bigendian=no
12112 fi
12113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12114 fi
12115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12116 fi
12117 if test $ac_cv_c_bigendian = unknown; then
12118 # Compile a test program.
12119 if test "$cross_compiling" = yes; then :
12120 # Try to guess by grepping values from an object file.
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123 short int ascii_mm[] =
12124 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12125 short int ascii_ii[] =
12126 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12127 int use_ascii (int i) {
12128 return ascii_mm[i] + ascii_ii[i];
12129 }
12130 short int ebcdic_ii[] =
12131 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12132 short int ebcdic_mm[] =
12133 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12134 int use_ebcdic (int i) {
12135 return ebcdic_mm[i] + ebcdic_ii[i];
12136 }
12137 extern int foo;
12138
12139 int
12140 main ()
12141 {
12142 return use_ascii (foo) == use_ebcdic (foo);
12143 ;
12144 return 0;
12145 }
12146 _ACEOF
12147 if ac_fn_c_try_compile "$LINENO"; then :
12148 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12149 ac_cv_c_bigendian=yes
12150 fi
12151 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12152 if test "$ac_cv_c_bigendian" = unknown; then
12153 ac_cv_c_bigendian=no
12154 else
12155 # finding both strings is unlikely to happen, but who knows?
12156 ac_cv_c_bigendian=unknown
12157 fi
12158 fi
12159 fi
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12161 else
12162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12163 /* end confdefs.h. */
12164 $ac_includes_default
12165 int
12166 main ()
12167 {
12168
12169 /* Are we little or big endian? From Harbison&Steele. */
12170 union
12171 {
12172 long int l;
12173 char c[sizeof (long int)];
12174 } u;
12175 u.l = 1;
12176 return u.c[sizeof (long int) - 1] == 1;
12177
12178 ;
12179 return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_run "$LINENO"; then :
12183 ac_cv_c_bigendian=no
12184 else
12185 ac_cv_c_bigendian=yes
12186 fi
12187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12188 conftest.$ac_objext conftest.beam conftest.$ac_ext
12189 fi
12190
12191 fi
12192 fi
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12194 $as_echo "$ac_cv_c_bigendian" >&6; }
12195 case $ac_cv_c_bigendian in #(
12196 yes)
12197 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12198 ;; #(
12199 no)
12200 ;; #(
12201 universal)
12202
12203 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12204
12205 ;; #(
12206 *)
12207 as_fn_error "unknown endianness
12208 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12209 esac
12210
12211
12212 # ------------------------------ #
12213 # Checks for library functions. #
12214 # ------------------------------ #
12215
12216 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12217 # for constant arguments. Useless!
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12219 $as_echo_n "checking for working alloca.h... " >&6; }
12220 if test "${ac_cv_working_alloca_h+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h. */
12225 #include <alloca.h>
12226 int
12227 main ()
12228 {
12229 char *p = (char *) alloca (2 * sizeof (int));
12230 if (p) return 0;
12231 ;
12232 return 0;
12233 }
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236 ac_cv_working_alloca_h=yes
12237 else
12238 ac_cv_working_alloca_h=no
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12244 $as_echo "$ac_cv_working_alloca_h" >&6; }
12245 if test $ac_cv_working_alloca_h = yes; then
12246
12247 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12248
12249 fi
12250
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12252 $as_echo_n "checking for alloca... " >&6; }
12253 if test "${ac_cv_func_alloca_works+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
12255 else
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258 #ifdef __GNUC__
12259 # define alloca __builtin_alloca
12260 #else
12261 # ifdef _MSC_VER
12262 # include <malloc.h>
12263 # define alloca _alloca
12264 # else
12265 # ifdef HAVE_ALLOCA_H
12266 # include <alloca.h>
12267 # else
12268 # ifdef _AIX
12269 #pragma alloca
12270 # else
12271 # ifndef alloca /* predefined by HP cc +Olibcalls */
12272 char *alloca ();
12273 # endif
12274 # endif
12275 # endif
12276 # endif
12277 #endif
12278
12279 int
12280 main ()
12281 {
12282 char *p = (char *) alloca (1);
12283 if (p) return 0;
12284 ;
12285 return 0;
12286 }
12287 _ACEOF
12288 if ac_fn_c_try_link "$LINENO"; then :
12289 ac_cv_func_alloca_works=yes
12290 else
12291 ac_cv_func_alloca_works=no
12292 fi
12293 rm -f core conftest.err conftest.$ac_objext \
12294 conftest$ac_exeext conftest.$ac_ext
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12297 $as_echo "$ac_cv_func_alloca_works" >&6; }
12298
12299 if test $ac_cv_func_alloca_works = yes; then
12300
12301 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12302
12303 else
12304 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12305 # that cause trouble. Some versions do not even contain alloca or
12306 # contain a buggy version. If you still want to use their alloca,
12307 # use ar to extract alloca.o from them instead of compiling alloca.c.
12308
12309 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12310
12311 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12312
12313
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12315 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12316 if test "${ac_cv_os_cray+set}" = set; then :
12317 $as_echo_n "(cached) " >&6
12318 else
12319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12320 /* end confdefs.h. */
12321 #if defined CRAY && ! defined CRAY2
12322 webecray
12323 #else
12324 wenotbecray
12325 #endif
12326
12327 _ACEOF
12328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12329 $EGREP "webecray" >/dev/null 2>&1; then :
12330 ac_cv_os_cray=yes
12331 else
12332 ac_cv_os_cray=no
12333 fi
12334 rm -f conftest*
12335
12336 fi
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12338 $as_echo "$ac_cv_os_cray" >&6; }
12339 if test $ac_cv_os_cray = yes; then
12340 for ac_func in _getb67 GETB67 getb67; do
12341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12343 eval as_val=\$$as_ac_var
12344 if test "x$as_val" = x""yes; then :
12345
12346 cat >>confdefs.h <<_ACEOF
12347 #define CRAY_STACKSEG_END $ac_func
12348 _ACEOF
12349
12350 break
12351 fi
12352
12353 done
12354 fi
12355
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12357 $as_echo_n "checking stack direction for C alloca... " >&6; }
12358 if test "${ac_cv_c_stack_direction+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
12360 else
12361 if test "$cross_compiling" = yes; then :
12362 ac_cv_c_stack_direction=0
12363 else
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366 $ac_includes_default
12367 int
12368 find_stack_direction ()
12369 {
12370 static char *addr = 0;
12371 auto char dummy;
12372 if (addr == 0)
12373 {
12374 addr = &dummy;
12375 return find_stack_direction ();
12376 }
12377 else
12378 return (&dummy > addr) ? 1 : -1;
12379 }
12380
12381 int
12382 main ()
12383 {
12384 return find_stack_direction () < 0;
12385 }
12386 _ACEOF
12387 if ac_fn_c_try_run "$LINENO"; then :
12388 ac_cv_c_stack_direction=1
12389 else
12390 ac_cv_c_stack_direction=-1
12391 fi
12392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12393 conftest.$ac_objext conftest.beam conftest.$ac_ext
12394 fi
12395
12396 fi
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12398 $as_echo "$ac_cv_c_stack_direction" >&6; }
12399 cat >>confdefs.h <<_ACEOF
12400 #define STACK_DIRECTION $ac_cv_c_stack_direction
12401 _ACEOF
12402
12403
12404 fi
12405
12406 for ac_header in stdlib.h unistd.h
12407 do :
12408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12409 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12410 eval as_val=\$$as_ac_Header
12411 if test "x$as_val" = x""yes; then :
12412 cat >>confdefs.h <<_ACEOF
12413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12414 _ACEOF
12415
12416 fi
12417
12418 done
12419
12420 for ac_func in getpagesize
12421 do :
12422 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12423 if test "x$ac_cv_func_getpagesize" = x""yes; then :
12424 cat >>confdefs.h <<_ACEOF
12425 #define HAVE_GETPAGESIZE 1
12426 _ACEOF
12427
12428 fi
12429 done
12430
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12432 $as_echo_n "checking for working mmap... " >&6; }
12433 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
12435 else
12436 if test "$cross_compiling" = yes; then :
12437 ac_cv_func_mmap_fixed_mapped=no
12438 else
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440 /* end confdefs.h. */
12441 $ac_includes_default
12442 /* malloc might have been renamed as rpl_malloc. */
12443 #undef malloc
12444
12445 /* Thanks to Mike Haertel and Jim Avera for this test.
12446 Here is a matrix of mmap possibilities:
12447 mmap private not fixed
12448 mmap private fixed at somewhere currently unmapped
12449 mmap private fixed at somewhere already mapped
12450 mmap shared not fixed
12451 mmap shared fixed at somewhere currently unmapped
12452 mmap shared fixed at somewhere already mapped
12453 For private mappings, we should verify that changes cannot be read()
12454 back from the file, nor mmap's back from the file at a different
12455 address. (There have been systems where private was not correctly
12456 implemented like the infamous i386 svr4.0, and systems where the
12457 VM page cache was not coherent with the file system buffer cache
12458 like early versions of FreeBSD and possibly contemporary NetBSD.)
12459 For shared mappings, we should conversely verify that changes get
12460 propagated back to all the places they're supposed to be.
12461
12462 Grep wants private fixed already mapped.
12463 The main things grep needs to know about mmap are:
12464 * does it exist and is it safe to write into the mmap'd area
12465 * how to use it (BSD variants) */
12466
12467 #include <fcntl.h>
12468 #include <sys/mman.h>
12469
12470 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12471 char *malloc ();
12472 #endif
12473
12474 /* This mess was copied from the GNU getpagesize.h. */
12475 #ifndef HAVE_GETPAGESIZE
12476 /* Assume that all systems that can run configure have sys/param.h. */
12477 # ifndef HAVE_SYS_PARAM_H
12478 # define HAVE_SYS_PARAM_H 1
12479 # endif
12480
12481 # ifdef _SC_PAGESIZE
12482 # define getpagesize() sysconf(_SC_PAGESIZE)
12483 # else /* no _SC_PAGESIZE */
12484 # ifdef HAVE_SYS_PARAM_H
12485 # include <sys/param.h>
12486 # ifdef EXEC_PAGESIZE
12487 # define getpagesize() EXEC_PAGESIZE
12488 # else /* no EXEC_PAGESIZE */
12489 # ifdef NBPG
12490 # define getpagesize() NBPG * CLSIZE
12491 # ifndef CLSIZE
12492 # define CLSIZE 1
12493 # endif /* no CLSIZE */
12494 # else /* no NBPG */
12495 # ifdef NBPC
12496 # define getpagesize() NBPC
12497 # else /* no NBPC */
12498 # ifdef PAGESIZE
12499 # define getpagesize() PAGESIZE
12500 # endif /* PAGESIZE */
12501 # endif /* no NBPC */
12502 # endif /* no NBPG */
12503 # endif /* no EXEC_PAGESIZE */
12504 # else /* no HAVE_SYS_PARAM_H */
12505 # define getpagesize() 8192 /* punt totally */
12506 # endif /* no HAVE_SYS_PARAM_H */
12507 # endif /* no _SC_PAGESIZE */
12508
12509 #endif /* no HAVE_GETPAGESIZE */
12510
12511 int
12512 main ()
12513 {
12514 char *data, *data2, *data3;
12515 int i, pagesize;
12516 int fd;
12517
12518 pagesize = getpagesize ();
12519
12520 /* First, make a file with some known garbage in it. */
12521 data = (char *) malloc (pagesize);
12522 if (!data)
12523 return 1;
12524 for (i = 0; i < pagesize; ++i)
12525 *(data + i) = rand ();
12526 umask (0);
12527 fd = creat ("conftest.mmap", 0600);
12528 if (fd < 0)
12529 return 1;
12530 if (write (fd, data, pagesize) != pagesize)
12531 return 1;
12532 close (fd);
12533
12534 /* Next, try to mmap the file at a fixed address which already has
12535 something else allocated at it. If we can, also make sure that
12536 we see the same garbage. */
12537 fd = open ("conftest.mmap", O_RDWR);
12538 if (fd < 0)
12539 return 1;
12540 data2 = (char *) malloc (2 * pagesize);
12541 if (!data2)
12542 return 1;
12543 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
12544 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12545 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12546 return 1;
12547 for (i = 0; i < pagesize; ++i)
12548 if (*(data + i) != *(data2 + i))
12549 return 1;
12550
12551 /* Finally, make sure that changes to the mapped area do not
12552 percolate back to the file as seen by read(). (This is a bug on
12553 some variants of i386 svr4.0.) */
12554 for (i = 0; i < pagesize; ++i)
12555 *(data2 + i) = *(data2 + i) + 1;
12556 data3 = (char *) malloc (pagesize);
12557 if (!data3)
12558 return 1;
12559 if (read (fd, data3, pagesize) != pagesize)
12560 return 1;
12561 for (i = 0; i < pagesize; ++i)
12562 if (*(data + i) != *(data3 + i))
12563 return 1;
12564 close (fd);
12565 return 0;
12566 }
12567 _ACEOF
12568 if ac_fn_c_try_run "$LINENO"; then :
12569 ac_cv_func_mmap_fixed_mapped=yes
12570 else
12571 ac_cv_func_mmap_fixed_mapped=no
12572 fi
12573 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12574 conftest.$ac_objext conftest.beam conftest.$ac_ext
12575 fi
12576
12577 fi
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12579 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12580 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12581
12582 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12583
12584 fi
12585 rm -f conftest.mmap
12586
12587 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12588 if test "x$ac_cv_type_pid_t" = x""yes; then :
12589
12590 else
12591
12592 cat >>confdefs.h <<_ACEOF
12593 #define pid_t int
12594 _ACEOF
12595
12596 fi
12597
12598 for ac_header in vfork.h
12599 do :
12600 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12601 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12602 cat >>confdefs.h <<_ACEOF
12603 #define HAVE_VFORK_H 1
12604 _ACEOF
12605
12606 fi
12607
12608 done
12609
12610 for ac_func in fork vfork
12611 do :
12612 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12613 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12614 eval as_val=\$$as_ac_var
12615 if test "x$as_val" = x""yes; then :
12616 cat >>confdefs.h <<_ACEOF
12617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12618 _ACEOF
12619
12620 fi
12621 done
12622
12623 if test "x$ac_cv_func_fork" = xyes; then
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12625 $as_echo_n "checking for working fork... " >&6; }
12626 if test "${ac_cv_func_fork_works+set}" = set; then :
12627 $as_echo_n "(cached) " >&6
12628 else
12629 if test "$cross_compiling" = yes; then :
12630 ac_cv_func_fork_works=cross
12631 else
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 $ac_includes_default
12635 int
12636 main ()
12637 {
12638
12639 /* By Ruediger Kuhlmann. */
12640 return fork () < 0;
12641
12642 ;
12643 return 0;
12644 }
12645 _ACEOF
12646 if ac_fn_c_try_run "$LINENO"; then :
12647 ac_cv_func_fork_works=yes
12648 else
12649 ac_cv_func_fork_works=no
12650 fi
12651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12652 conftest.$ac_objext conftest.beam conftest.$ac_ext
12653 fi
12654
12655 fi
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12657 $as_echo "$ac_cv_func_fork_works" >&6; }
12658
12659 else
12660 ac_cv_func_fork_works=$ac_cv_func_fork
12661 fi
12662 if test "x$ac_cv_func_fork_works" = xcross; then
12663 case $host in
12664 *-*-amigaos* | *-*-msdosdjgpp*)
12665 # Override, as these systems have only a dummy fork() stub
12666 ac_cv_func_fork_works=no
12667 ;;
12668 *)
12669 ac_cv_func_fork_works=yes
12670 ;;
12671 esac
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12673 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12674 fi
12675 ac_cv_func_vfork_works=$ac_cv_func_vfork
12676 if test "x$ac_cv_func_vfork" = xyes; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12678 $as_echo_n "checking for working vfork... " >&6; }
12679 if test "${ac_cv_func_vfork_works+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682 if test "$cross_compiling" = yes; then :
12683 ac_cv_func_vfork_works=cross
12684 else
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687 /* Thanks to Paul Eggert for this test. */
12688 $ac_includes_default
12689 #include <sys/wait.h>
12690 #ifdef HAVE_VFORK_H
12691 # include <vfork.h>
12692 #endif
12693 /* On some sparc systems, changes by the child to local and incoming
12694 argument registers are propagated back to the parent. The compiler
12695 is told about this with #include <vfork.h>, but some compilers
12696 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
12697 static variable whose address is put into a register that is
12698 clobbered by the vfork. */
12699 static void
12700 #ifdef __cplusplus
12701 sparc_address_test (int arg)
12702 # else
12703 sparc_address_test (arg) int arg;
12704 #endif
12705 {
12706 static pid_t child;
12707 if (!child) {
12708 child = vfork ();
12709 if (child < 0) {
12710 perror ("vfork");
12711 _exit(2);
12712 }
12713 if (!child) {
12714 arg = getpid();
12715 write(-1, "", 0);
12716 _exit (arg);
12717 }
12718 }
12719 }
12720
12721 int
12722 main ()
12723 {
12724 pid_t parent = getpid ();
12725 pid_t child;
12726
12727 sparc_address_test (0);
12728
12729 child = vfork ();
12730
12731 if (child == 0) {
12732 /* Here is another test for sparc vfork register problems. This
12733 test uses lots of local variables, at least as many local
12734 variables as main has allocated so far including compiler
12735 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
12736 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
12737 reuse the register of parent for one of the local variables,
12738 since it will think that parent can't possibly be used any more
12739 in this routine. Assigning to the local variable will thus
12740 munge parent in the parent process. */
12741 pid_t
12742 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
12743 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
12744 /* Convince the compiler that p..p7 are live; otherwise, it might
12745 use the same hardware register for all 8 local variables. */
12746 if (p != p1 || p != p2 || p != p3 || p != p4
12747 || p != p5 || p != p6 || p != p7)
12748 _exit(1);
12749
12750 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
12751 from child file descriptors. If the child closes a descriptor
12752 before it execs or exits, this munges the parent's descriptor
12753 as well. Test for this by closing stdout in the child. */
12754 _exit(close(fileno(stdout)) != 0);
12755 } else {
12756 int status;
12757 struct stat st;
12758
12759 while (wait(&status) != child)
12760 ;
12761 return (
12762 /* Was there some problem with vforking? */
12763 child < 0
12764
12765 /* Did the child fail? (This shouldn't happen.) */
12766 || status
12767
12768 /* Did the vfork/compiler bug occur? */
12769 || parent != getpid()
12770
12771 /* Did the file descriptor bug occur? */
12772 || fstat(fileno(stdout), &st) != 0
12773 );
12774 }
12775 }
12776 _ACEOF
12777 if ac_fn_c_try_run "$LINENO"; then :
12778 ac_cv_func_vfork_works=yes
12779 else
12780 ac_cv_func_vfork_works=no
12781 fi
12782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12783 conftest.$ac_objext conftest.beam conftest.$ac_ext
12784 fi
12785
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
12788 $as_echo "$ac_cv_func_vfork_works" >&6; }
12789
12790 fi;
12791 if test "x$ac_cv_func_fork_works" = xcross; then
12792 ac_cv_func_vfork_works=$ac_cv_func_vfork
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12794 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12795 fi
12796
12797 if test "x$ac_cv_func_vfork_works" = xyes; then
12798
12799 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
12800
12801 else
12802
12803 $as_echo "#define vfork fork" >>confdefs.h
12804
12805 fi
12806 if test "x$ac_cv_func_fork_works" = xyes; then
12807
12808 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
12809
12810 fi
12811
12812 for ac_func in canonicalize_file_name realpath getrusage getuid \
12813 getgid pipe poll pread64 resize_term sbrk setpgid setpgrp setsid \
12814 sigaction sigprocmask sigsetmask socketpair syscall \
12815 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
12816 setrlimit getrlimit posix_madvise waitpid
12817 do :
12818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12820 eval as_val=\$$as_ac_var
12821 if test "x$as_val" = x""yes; then :
12822 cat >>confdefs.h <<_ACEOF
12823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12824 _ACEOF
12825
12826 fi
12827 done
12828
12829
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
12831 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12832 if test "${am_cv_langinfo_codeset+set}" = set; then :
12833 $as_echo_n "(cached) " >&6
12834 else
12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12837 #include <langinfo.h>
12838 int
12839 main ()
12840 {
12841 char* cs = nl_langinfo(CODESET);
12842 ;
12843 return 0;
12844 }
12845 _ACEOF
12846 if ac_fn_c_try_link "$LINENO"; then :
12847 am_cv_langinfo_codeset=yes
12848 else
12849 am_cv_langinfo_codeset=no
12850 fi
12851 rm -f core conftest.err conftest.$ac_objext \
12852 conftest$ac_exeext conftest.$ac_ext
12853
12854 fi
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
12856 $as_echo "$am_cv_langinfo_codeset" >&6; }
12857 if test $am_cv_langinfo_codeset = yes; then
12858
12859 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
12860
12861 fi
12862
12863
12864 # Check the return and argument types of ptrace. No canned test for
12865 # this, so roll our own.
12866 gdb_ptrace_headers='
12867 #if HAVE_SYS_TYPES_H
12868 # include <sys/types.h>
12869 #endif
12870 #if HAVE_SYS_PTRACE_H
12871 # include <sys/ptrace.h>
12872 #endif
12873 #if HAVE_UNISTD_H
12874 # include <unistd.h>
12875 #endif
12876 '
12877 # There is no point in checking if we don't have a prototype.
12878 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
12879 "
12880 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
12881 ac_have_decl=1
12882 else
12883 ac_have_decl=0
12884 fi
12885
12886 cat >>confdefs.h <<_ACEOF
12887 #define HAVE_DECL_PTRACE $ac_have_decl
12888 _ACEOF
12889 if test $ac_have_decl = 1; then :
12890
12891 else
12892
12893 : ${gdb_cv_func_ptrace_ret='int'}
12894 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
12895
12896 fi
12897
12898 # Check return type. Varargs (used on GNU/Linux) conflict with the
12899 # empty argument list, so check for that explicitly.
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
12901 $as_echo_n "checking return type of ptrace... " >&6; }
12902 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12904 else
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907 $gdb_ptrace_headers
12908 int
12909 main ()
12910 {
12911 extern long ptrace (enum __ptrace_request, ...);
12912 ;
12913 return 0;
12914 }
12915 _ACEOF
12916 if ac_fn_c_try_compile "$LINENO"; then :
12917 gdb_cv_func_ptrace_ret='long'
12918 else
12919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h. */
12921 $gdb_ptrace_headers
12922 int
12923 main ()
12924 {
12925 extern int ptrace ();
12926 ;
12927 return 0;
12928 }
12929 _ACEOF
12930 if ac_fn_c_try_compile "$LINENO"; then :
12931 gdb_cv_func_ptrace_ret='int'
12932 else
12933 gdb_cv_func_ptrace_ret='long'
12934 fi
12935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12936 fi
12937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
12940 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
12941
12942 cat >>confdefs.h <<_ACEOF
12943 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
12944 _ACEOF
12945
12946 # Check argument types.
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
12948 $as_echo_n "checking types of arguments for ptrace... " >&6; }
12949 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
12950 $as_echo_n "(cached) " >&6
12951 else
12952
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12955 $gdb_ptrace_headers
12956 int
12957 main ()
12958 {
12959 extern long ptrace (enum __ptrace_request, ...);
12960 ;
12961 return 0;
12962 }
12963 _ACEOF
12964 if ac_fn_c_try_compile "$LINENO"; then :
12965 gdb_cv_func_ptrace_args='int,int,long,long'
12966 else
12967
12968 for gdb_arg1 in 'int' 'long'; do
12969 for gdb_arg2 in 'pid_t' 'int' 'long'; do
12970 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
12971 for gdb_arg4 in 'int' 'long'; do
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12974 $gdb_ptrace_headers
12975 int
12976 main ()
12977 {
12978
12979 extern $gdb_cv_func_ptrace_ret
12980 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
12981
12982 ;
12983 return 0;
12984 }
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
12988 break 4;
12989 fi
12990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991 for gdb_arg5 in 'int *' 'int' 'long'; do
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12994 $gdb_ptrace_headers
12995 int
12996 main ()
12997 {
12998
12999 extern $gdb_cv_func_ptrace_ret
13000 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13001
13002 ;
13003 return 0;
13004 }
13005 _ACEOF
13006 if ac_fn_c_try_compile "$LINENO"; then :
13007
13008 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13009 break 5;
13010 fi
13011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13012 done
13013 done
13014 done
13015 done
13016 done
13017 # Provide a safe default value.
13018 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13019
13020 fi
13021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13022 fi
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13024 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13025 ac_save_IFS=$IFS; IFS=','
13026 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13027 IFS=$ac_save_IFS
13028 shift
13029
13030 cat >>confdefs.h <<_ACEOF
13031 #define PTRACE_TYPE_ARG3 $3
13032 _ACEOF
13033
13034 if test -n "$5"; then
13035
13036 cat >>confdefs.h <<_ACEOF
13037 #define PTRACE_TYPE_ARG5 $5
13038 _ACEOF
13039
13040 fi
13041
13042 if test "$cross_compiling" = no; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13044 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13045 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
13047 else
13048 if test "$cross_compiling" = yes; then :
13049 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
13050 else
13051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13052 /* end confdefs.h. */
13053 $ac_includes_default
13054 int
13055 main ()
13056 {
13057 /* If this system has a BSD-style setpgrp which takes arguments,
13058 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13059 exit successfully. */
13060 return setpgrp (1,1) != -1;
13061 ;
13062 return 0;
13063 }
13064 _ACEOF
13065 if ac_fn_c_try_run "$LINENO"; then :
13066 ac_cv_func_setpgrp_void=no
13067 else
13068 ac_cv_func_setpgrp_void=yes
13069 fi
13070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13071 conftest.$ac_objext conftest.beam conftest.$ac_ext
13072 fi
13073
13074 fi
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13076 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13077 if test $ac_cv_func_setpgrp_void = yes; then
13078
13079 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13080
13081 fi
13082
13083 else
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13085 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13086 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
13087 $as_echo_n "(cached) " >&6
13088 else
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13091
13092 #include <unistd.h>
13093
13094 int
13095 main ()
13096 {
13097
13098 if (setpgrp(1,1) == -1)
13099 exit (0);
13100 else
13101 exit (1);
13102
13103 ;
13104 return 0;
13105 }
13106 _ACEOF
13107 if ac_fn_c_try_compile "$LINENO"; then :
13108 ac_cv_func_setpgrp_void=no
13109 else
13110 ac_cv_func_setpgrp_void=yes
13111 fi
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13113 fi
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13115 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13116 if test $ac_cv_func_setpgrp_void = yes; then
13117 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13118
13119 fi
13120 fi
13121
13122 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
13123 # since sigsetjmp might only be defined as a macro.
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13125 $as_echo_n "checking for sigsetjmp... " >&6; }
13126 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13131
13132 #include <setjmp.h>
13133
13134 int
13135 main ()
13136 {
13137 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13138 ;
13139 return 0;
13140 }
13141 _ACEOF
13142 if ac_fn_c_try_compile "$LINENO"; then :
13143 gdb_cv_func_sigsetjmp=yes
13144 else
13145 gdb_cv_func_sigsetjmp=no
13146 fi
13147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148 fi
13149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13150 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13151 if test $gdb_cv_func_sigsetjmp = yes; then
13152
13153 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13154
13155 fi
13156
13157 # Assume we'll default to using the included libiberty regex.
13158 gdb_use_included_regex=yes
13159
13160 # However, if the system regex is GNU regex, then default to *not*
13161 # using the included regex.
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13163 $as_echo_n "checking for GNU regex... " >&6; }
13164 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
13166 else
13167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13169 #include <gnu-versions.h>
13170 int
13171 main ()
13172 {
13173 #define REGEX_INTERFACE_VERSION 1
13174 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13175 # error "Version mismatch"
13176 #endif
13177 ;
13178 return 0;
13179 }
13180 _ACEOF
13181 if ac_fn_c_try_compile "$LINENO"; then :
13182 gdb_cv_have_gnu_regex=yes
13183 else
13184 gdb_cv_have_gnu_regex=no
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: $gdb_cv_have_gnu_regex" >&5
13189 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13190 if test $gdb_cv_have_gnu_regex = yes; then
13191 gdb_use_included_regex=no
13192 fi
13193
13194
13195 # Check whether --with-included-regex was given.
13196 if test "${with_included_regex+set}" = set; then :
13197 withval=$with_included_regex; gdb_with_regex=$withval
13198 else
13199 gdb_with_regex=$gdb_use_included_regex
13200 fi
13201
13202 if test "$gdb_with_regex" = yes; then
13203
13204 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13205
13206 fi
13207
13208 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13209 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13210 #include <sys/proc.h>
13211
13212 "
13213 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
13214
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_STRUCT_THREAD_TD_PCB 1
13217 _ACEOF
13218
13219
13220 fi
13221
13222
13223 # See if <sys/lwp.h> defines `struct lwp`.
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13225 $as_echo_n "checking for struct lwp... " >&6; }
13226 if test "${gdb_cv_struct_lwp+set}" = set; then :
13227 $as_echo_n "(cached) " >&6
13228 else
13229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13231 #include <sys/param.h>
13232 #include <sys/lwp.h>
13233 int
13234 main ()
13235 {
13236 struct lwp l;
13237 ;
13238 return 0;
13239 }
13240 _ACEOF
13241 if ac_fn_c_try_compile "$LINENO"; then :
13242 gdb_cv_struct_lwp=yes
13243 else
13244 gdb_cv_struct_lwp=no
13245 fi
13246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13247 fi
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13249 $as_echo "$gdb_cv_struct_lwp" >&6; }
13250 if test $gdb_cv_struct_lwp = yes; then
13251
13252 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13253
13254 fi
13255
13256 # See if <machine/reg.h> degines `struct reg'.
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13258 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13259 if test "${gdb_cv_struct_reg+set}" = set; then :
13260 $as_echo_n "(cached) " >&6
13261 else
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13264 #include <sys/types.h>
13265 #include <machine/reg.h>
13266 int
13267 main ()
13268 {
13269 struct reg r;
13270 ;
13271 return 0;
13272 }
13273 _ACEOF
13274 if ac_fn_c_try_compile "$LINENO"; then :
13275 gdb_cv_struct_reg=yes
13276 else
13277 gdb_cv_struct_reg=no
13278 fi
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 fi
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
13282 $as_echo "$gdb_cv_struct_reg" >&6; }
13283 if test $gdb_cv_struct_reg = yes; then
13284
13285 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
13286
13287 fi
13288
13289 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
13290 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
13291 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
13292 "
13293 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
13294
13295 cat >>confdefs.h <<_ACEOF
13296 #define HAVE_STRUCT_REG_R_FS 1
13297 _ACEOF
13298
13299
13300 fi
13301 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
13302 "
13303 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
13304
13305 cat >>confdefs.h <<_ACEOF
13306 #define HAVE_STRUCT_REG_R_GS 1
13307 _ACEOF
13308
13309
13310 fi
13311
13312
13313 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
13315 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
13316 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
13318 else
13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13320 /* end confdefs.h. */
13321 #include <sys/ptrace.h>
13322 int
13323 main ()
13324 {
13325 PTRACE_GETREGS;
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 if ac_fn_c_try_compile "$LINENO"; then :
13331 gdb_cv_have_ptrace_getregs=yes
13332 else
13333 gdb_cv_have_ptrace_getregs=no
13334 fi
13335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13336 fi
13337
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
13339 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
13340 if test $gdb_cv_have_ptrace_getregs = yes; then
13341
13342 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
13343
13344 fi
13345
13346 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
13348 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
13349 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
13350 $as_echo_n "(cached) " >&6
13351 else
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 #include <sys/ptrace.h>
13355 int
13356 main ()
13357 {
13358 PTRACE_GETFPXREGS;
13359 ;
13360 return 0;
13361 }
13362 _ACEOF
13363 if ac_fn_c_try_compile "$LINENO"; then :
13364 gdb_cv_have_ptrace_getfpxregs=yes
13365 else
13366 gdb_cv_have_ptrace_getfpxregs=no
13367 fi
13368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 fi
13370
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
13372 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
13373 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
13374
13375 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
13376
13377 fi
13378
13379 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
13381 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
13382 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 #include <sys/types.h>
13388 #include <sys/ptrace.h>
13389 int
13390 main ()
13391 {
13392 PT_GETDBREGS;
13393 ;
13394 return 0;
13395 }
13396 _ACEOF
13397 if ac_fn_c_try_compile "$LINENO"; then :
13398 gdb_cv_have_pt_getdbregs=yes
13399 else
13400 gdb_cv_have_pt_getdbregs=no
13401 fi
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13403 fi
13404
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
13406 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
13407 if test $gdb_cv_have_pt_getdbregs = yes; then
13408
13409 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
13410
13411 fi
13412
13413 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
13415 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
13416 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420 /* end confdefs.h. */
13421 #include <sys/types.h>
13422 #include <sys/ptrace.h>
13423 int
13424 main ()
13425 {
13426 PT_GETXMMREGS;
13427 ;
13428 return 0;
13429 }
13430 _ACEOF
13431 if ac_fn_c_try_compile "$LINENO"; then :
13432 gdb_cv_have_pt_getxmmregs=yes
13433 else
13434 gdb_cv_have_pt_getxmmregs=no
13435 fi
13436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13437 fi
13438
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
13440 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
13441 if test $gdb_cv_have_pt_getxmmregs = yes; then
13442
13443 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
13444
13445 fi
13446
13447 # Detect which type of /proc is in use, such as for Unixware or Solaris.
13448
13449 if test "${target}" = "${host}"; then
13450 case "${host}" in
13451 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
13452
13453 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13454
13455 ;;
13456 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
13457
13458 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
13459
13460 ;;
13461 mips-sgi-irix5*)
13462 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
13463
13464 $as_echo "#define _KMEMUSER 1" >>confdefs.h
13465
13466 ;;
13467 esac
13468 fi
13469
13470 if test "$ac_cv_header_sys_procfs_h" = yes; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
13472 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
13473 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477 /* end confdefs.h. */
13478
13479 #define _SYSCALL32
13480 /* Needed for new procfs interface on sparc-solaris. */
13481 #define _STRUCTURED_PROC 1
13482 #include <sys/procfs.h>
13483 int
13484 main ()
13485 {
13486 pstatus_t avar
13487 ;
13488 return 0;
13489 }
13490 _ACEOF
13491 if ac_fn_c_try_compile "$LINENO"; then :
13492 bfd_cv_have_sys_procfs_type_pstatus_t=yes
13493 else
13494 bfd_cv_have_sys_procfs_type_pstatus_t=no
13495
13496 fi
13497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13498 fi
13499
13500 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
13501
13502 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
13503
13504 fi
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
13506 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
13507
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
13509 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
13510 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
13511 $as_echo_n "(cached) " >&6
13512 else
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13515
13516 #define _SYSCALL32
13517 /* Needed for new procfs interface on sparc-solaris. */
13518 #define _STRUCTURED_PROC 1
13519 #include <sys/procfs.h>
13520 int
13521 main ()
13522 {
13523 prrun_t avar
13524 ;
13525 return 0;
13526 }
13527 _ACEOF
13528 if ac_fn_c_try_compile "$LINENO"; then :
13529 bfd_cv_have_sys_procfs_type_prrun_t=yes
13530 else
13531 bfd_cv_have_sys_procfs_type_prrun_t=no
13532
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13535 fi
13536
13537 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
13538
13539 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
13540
13541 fi
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
13543 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
13544
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
13546 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
13547 if test "${bfd_cv_have_sys_procfs_type_gregset_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 gregset_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_gregset_t=yes
13567 else
13568 bfd_cv_have_sys_procfs_type_gregset_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_gregset_t = yes; then
13575
13576 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
13577
13578 fi
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
13580 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
13581
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
13583 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
13584 if test "${bfd_cv_have_sys_procfs_type_fpregset_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 fpregset_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_fpregset_t=yes
13604 else
13605 bfd_cv_have_sys_procfs_type_fpregset_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_fpregset_t = yes; then
13612
13613 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
13614
13615 fi
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
13617 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
13618
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
13620 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
13621 if test "${bfd_cv_have_sys_procfs_type_prgregset_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 prgregset_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_prgregset_t=yes
13641 else
13642 bfd_cv_have_sys_procfs_type_prgregset_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_prgregset_t = yes; then
13649
13650 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
13651
13652 fi
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
13654 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
13655
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
13657 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
13658 if test "${bfd_cv_have_sys_procfs_type_prfpregset_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 prfpregset_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_prfpregset_t=yes
13678 else
13679 bfd_cv_have_sys_procfs_type_prfpregset_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_prfpregset_t = yes; then
13686
13687 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
13688
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
13691 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
13692
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
13694 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
13695 if test "${bfd_cv_have_sys_procfs_type_prgregset32_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 prgregset32_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_prgregset32_t=yes
13715 else
13716 bfd_cv_have_sys_procfs_type_prgregset32_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_prgregset32_t = yes; then
13723
13724 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
13725
13726 fi
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
13728 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
13729
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
13731 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
13732 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_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 prfpregset32_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_prfpregset32_t=yes
13752 else
13753 bfd_cv_have_sys_procfs_type_prfpregset32_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_prfpregset32_t = yes; then
13760
13761 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
13762
13763 fi
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
13765 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
13766
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
13768 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
13769 if test "${bfd_cv_have_sys_procfs_type_lwpid_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 lwpid_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_lwpid_t=yes
13789 else
13790 bfd_cv_have_sys_procfs_type_lwpid_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_lwpid_t = yes; then
13797
13798 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
13799
13800 fi
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
13802 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
13803
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
13805 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
13806 if test "${bfd_cv_have_sys_procfs_type_psaddr_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 psaddr_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_psaddr_t=yes
13826 else
13827 bfd_cv_have_sys_procfs_type_psaddr_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_psaddr_t = yes; then
13834
13835 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
13836
13837 fi
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
13839 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
13840
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
13842 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
13843 if test "${bfd_cv_have_sys_procfs_type_prsysent_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 prsysent_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_prsysent_t=yes
13863 else
13864 bfd_cv_have_sys_procfs_type_prsysent_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_prsysent_t = yes; then
13871
13872 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
13873
13874 fi
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
13876 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
13877
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
13879 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
13880 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_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 pr_sigset_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_pr_sigset_t=yes
13900 else
13901 bfd_cv_have_sys_procfs_type_pr_sigset_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_pr_sigset_t = yes; then
13908
13909 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
13910
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
13913 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
13916 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
13917 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_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 pr_sigaction64_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_pr_sigaction64_t=yes
13937 else
13938 bfd_cv_have_sys_procfs_type_pr_sigaction64_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_pr_sigaction64_t = yes; then
13945
13946 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
13947
13948 fi
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
13950 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
13951
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
13953 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
13954 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_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_siginfo64_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_siginfo64_t=yes
13974 else
13975 bfd_cv_have_sys_procfs_type_pr_siginfo64_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_siginfo64_t = yes; then
13982
13983 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
13984
13985 fi
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
13987 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
13988
13989
13990
13991
13992
13993 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
13995 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
13996 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
13997 $as_echo_n "(cached) " >&6
13998 else
13999 if test "$cross_compiling" = yes; then :
14000 gdb_cv_prfpregset_t_broken=yes
14001 else
14002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14003 /* end confdefs.h. */
14004 #include <sys/procfs.h>
14005 int main ()
14006 {
14007 if (sizeof (prfpregset_t) == sizeof (void *))
14008 return 1;
14009 return 0;
14010 }
14011 _ACEOF
14012 if ac_fn_c_try_run "$LINENO"; then :
14013 gdb_cv_prfpregset_t_broken=no
14014 else
14015 gdb_cv_prfpregset_t_broken=yes
14016 fi
14017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14018 conftest.$ac_objext conftest.beam conftest.$ac_ext
14019 fi
14020
14021 fi
14022
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
14024 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
14025 if test $gdb_cv_prfpregset_t_broken = yes; then
14026
14027 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
14028
14029 fi
14030 fi
14031
14032
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
14034 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
14035 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
14036 $as_echo_n "(cached) " >&6
14037 else
14038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039 /* end confdefs.h. */
14040 #include <unistd.h>
14041 #include <sys/types.h>
14042 #include <sys/procfs.h>
14043
14044 int
14045 main ()
14046 {
14047
14048 int dummy;;
14049 dummy = ioctl(0, PIOCSET, &dummy);
14050
14051 ;
14052 return 0;
14053 }
14054 _ACEOF
14055 if ac_fn_c_try_compile "$LINENO"; then :
14056 gdb_cv_have_procfs_piocset=yes
14057 else
14058 gdb_cv_have_procfs_piocset=no
14059 fi
14060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14061 fi
14062
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
14064 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
14065 if test $gdb_cv_have_procfs_piocset = yes; then
14066
14067 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
14068
14069 fi
14070 fi
14071
14072 if test ${host} = ${target} ; then
14073
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
14075 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
14076 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080 /* end confdefs.h. */
14081 #include <link.h>
14082 int
14083 main ()
14084 {
14085 struct link_map lm; (void) lm.l_addr;
14086 ;
14087 return 0;
14088 }
14089 _ACEOF
14090 if ac_fn_c_try_compile "$LINENO"; then :
14091 gdb_cv_have_struct_link_map_with_l_members=yes
14092 else
14093 gdb_cv_have_struct_link_map_with_l_members=no
14094 fi
14095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14096 fi
14097
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
14099 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
14100 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
14101
14102 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
14103
14104 fi
14105
14106
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
14108 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
14109 if test "${gdb_cv_have_struct_link_map_with_lm_members+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 <sys/types.h>
14115 #include <link.h>
14116 int
14117 main ()
14118 {
14119 struct link_map lm; (void) lm.lm_addr;
14120 ;
14121 return 0;
14122 }
14123 _ACEOF
14124 if ac_fn_c_try_compile "$LINENO"; then :
14125 gdb_cv_have_struct_link_map_with_lm_members=yes
14126 else
14127 gdb_cv_have_struct_link_map_with_lm_members=no
14128 fi
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14130 fi
14131
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
14133 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
14134 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
14135
14136 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
14137
14138 fi
14139
14140
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
14142 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
14143 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
14144 $as_echo_n "(cached) " >&6
14145 else
14146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14147 /* end confdefs.h. */
14148 #include <sys/types.h>
14149 #ifdef HAVE_NLIST_H
14150 #include <nlist.h>
14151 #endif
14152 #include <link.h>
14153 int
14154 main ()
14155 {
14156 struct so_map lm; (void) lm.som_addr;
14157 ;
14158 return 0;
14159 }
14160 _ACEOF
14161 if ac_fn_c_try_compile "$LINENO"; then :
14162 gdb_cv_have_struct_so_map_with_som_members=yes
14163 else
14164 gdb_cv_have_struct_so_map_with_som_members=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 fi
14168
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
14170 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
14171 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
14172
14173 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
14174
14175 fi
14176
14177
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
14179 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
14180 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 #define _SYSCALL32
14186 #include <sys/link.h>
14187 int
14188 main ()
14189 {
14190 struct link_map32 l;
14191 ;
14192 return 0;
14193 }
14194 _ACEOF
14195 if ac_fn_c_try_compile "$LINENO"; then :
14196 gdb_cv_have_struct_link_map32=yes
14197 else
14198 gdb_cv_have_struct_link_map32=no
14199 fi
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201 fi
14202
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
14204 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
14205 if test $gdb_cv_have_struct_link_map32 = yes; then
14206
14207 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
14208
14209
14210 $as_echo "#define _SYSCALL32 1" >>confdefs.h
14211
14212 fi
14213 fi
14214
14215 # Check if the compiler supports the `long long' type.
14216
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14218 $as_echo_n "checking for long long support in compiler... " >&6; }
14219 if test "${gdb_cv_c_long_long+set}" = set; then :
14220 $as_echo_n "(cached) " >&6
14221 else
14222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14223 /* end confdefs.h. */
14224 extern long long foo;
14225 int
14226 main ()
14227 {
14228 switch (foo & 2) { case 0: return 1; }
14229 ;
14230 return 0;
14231 }
14232 _ACEOF
14233 if ac_fn_c_try_compile "$LINENO"; then :
14234 gdb_cv_c_long_long=yes
14235 else
14236 gdb_cv_c_long_long=no
14237 fi
14238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239 fi
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14241 $as_echo "$gdb_cv_c_long_long" >&6; }
14242 if test $gdb_cv_c_long_long = yes; then
14243
14244 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
14245
14246 fi
14247
14248 # Check if the compiler and runtime support printing long longs.
14249
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14251 $as_echo_n "checking for long long support in printf... " >&6; }
14252 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
14253 $as_echo_n "(cached) " >&6
14254 else
14255 if test "$cross_compiling" = yes; then :
14256 gdb_cv_printf_has_long_long=no
14257 else
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260 $ac_includes_default
14261 int
14262 main ()
14263 {
14264 char buf[32];
14265 long long l = 0;
14266 l = (l << 16) + 0x0123;
14267 l = (l << 16) + 0x4567;
14268 l = (l << 16) + 0x89ab;
14269 l = (l << 16) + 0xcdef;
14270 sprintf (buf, "0x%016llx", l);
14271 return (strcmp ("0x0123456789abcdef", buf));
14272 ;
14273 return 0;
14274 }
14275 _ACEOF
14276 if ac_fn_c_try_run "$LINENO"; then :
14277 gdb_cv_printf_has_long_long=yes
14278 else
14279 gdb_cv_printf_has_long_long=no
14280 fi
14281 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14282 conftest.$ac_objext conftest.beam conftest.$ac_ext
14283 fi
14284
14285 fi
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14287 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14288 if test $gdb_cv_printf_has_long_long = yes; then
14289
14290 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14291
14292 fi
14293
14294 # Check if the compiler and runtime support printing decfloats.
14295
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14297 $as_echo_n "checking for decfloat support in printf... " >&6; }
14298 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
14299 $as_echo_n "(cached) " >&6
14300 else
14301 if test "$cross_compiling" = yes; then :
14302 gdb_cv_printf_has_decfloat=no
14303 else
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14306 $ac_includes_default
14307 int
14308 main ()
14309 {
14310 char buf[64];
14311 _Decimal32 d32 = 1.2345df;
14312 _Decimal64 d64 = 1.2345dd;
14313 _Decimal128 d128 = 1.2345dl;
14314 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14315 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14316 ;
14317 return 0;
14318 }
14319 _ACEOF
14320 if ac_fn_c_try_run "$LINENO"; then :
14321 gdb_cv_printf_has_decfloat=yes
14322 else
14323 gdb_cv_printf_has_decfloat=no
14324 fi
14325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14326 conftest.$ac_objext conftest.beam conftest.$ac_ext
14327 fi
14328
14329 fi
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14331 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14332 if test $gdb_cv_printf_has_decfloat = yes; then
14333
14334 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14335
14336 fi
14337
14338 # Check if the compiler supports the `long double' type. We can't use
14339 # AC_C_LONG_DOUBLE because that one does additional checks on the
14340 # constants defined in <float.h> that fail on some systems,
14341 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14342
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14344 $as_echo_n "checking for long double support in compiler... " >&6; }
14345 if test "${gdb_cv_c_long_double+set}" = set; then :
14346 $as_echo_n "(cached) " >&6
14347 else
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14350 long double foo;
14351 _ACEOF
14352 if ac_fn_c_try_compile "$LINENO"; then :
14353 gdb_cv_c_long_double=yes
14354 else
14355 gdb_cv_c_long_double=no
14356 fi
14357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14358 fi
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14360 $as_echo "$gdb_cv_c_long_double" >&6; }
14361 if test $gdb_cv_c_long_double = yes; then
14362
14363 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14364
14365 fi
14366
14367 # Check if the compiler and runtime support printing long doubles.
14368
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14370 $as_echo_n "checking for long double support in printf... " >&6; }
14371 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14373 else
14374 if test "$cross_compiling" = yes; then :
14375 gdb_cv_printf_has_long_double=no
14376 else
14377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14379 $ac_includes_default
14380 int
14381 main ()
14382 {
14383 char buf[16];
14384 long double f = 3.141592653;
14385 sprintf (buf, "%Lg", f);
14386 return (strncmp ("3.14159", buf, 7));
14387 ;
14388 return 0;
14389 }
14390 _ACEOF
14391 if ac_fn_c_try_run "$LINENO"; then :
14392 gdb_cv_printf_has_long_double=yes
14393 else
14394 gdb_cv_printf_has_long_double=no
14395 fi
14396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14397 conftest.$ac_objext conftest.beam conftest.$ac_ext
14398 fi
14399
14400 fi
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14402 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14403 if test $gdb_cv_printf_has_long_double = yes; then
14404
14405 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14406
14407 fi
14408
14409 # Check if the compiler and runtime support scanning long doubles.
14410
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14412 $as_echo_n "checking for long double support in scanf... " >&6; }
14413 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
14414 $as_echo_n "(cached) " >&6
14415 else
14416 if test "$cross_compiling" = yes; then :
14417 gdb_cv_scanf_has_long_double=no
14418 else
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14421 #include <stdio.h>
14422 int
14423 main ()
14424 {
14425 char *buf = "3.141592653";
14426 long double f = 0;
14427 sscanf (buf, "%Lg", &f);
14428 return !(f > 3.14159 && f < 3.14160);
14429 ;
14430 return 0;
14431 }
14432 _ACEOF
14433 if ac_fn_c_try_run "$LINENO"; then :
14434 gdb_cv_scanf_has_long_double=yes
14435 else
14436 gdb_cv_scanf_has_long_double=no
14437 fi
14438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14439 conftest.$ac_objext conftest.beam conftest.$ac_ext
14440 fi
14441
14442 fi
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14444 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14445 if test $gdb_cv_scanf_has_long_double = yes; then
14446
14447 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14448
14449 fi
14450
14451 case ${host_os} in
14452 aix*)
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14454 $as_echo_n "checking for -bbigtoc option... " >&6; }
14455 if test "${gdb_cv_bigtoc+set}" = set; then :
14456 $as_echo_n "(cached) " >&6
14457 else
14458
14459 SAVE_LDFLAGS=$LDFLAGS
14460
14461 case $GCC in
14462 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14463 *) gdb_cv_bigtoc=-bbigtoc ;;
14464 esac
14465
14466 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14469
14470 int
14471 main ()
14472 {
14473 int i;
14474 ;
14475 return 0;
14476 }
14477 _ACEOF
14478 if ac_fn_c_try_link "$LINENO"; then :
14479
14480 else
14481 gdb_cv_bigtoc=
14482 fi
14483 rm -f core conftest.err conftest.$ac_objext \
14484 conftest$ac_exeext conftest.$ac_ext
14485 LDFLAGS="${SAVE_LDFLAGS}"
14486
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14489 $as_echo "$gdb_cv_bigtoc" >&6; }
14490 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14491 ;;
14492 esac
14493
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14495 $as_echo_n "checking for the dynamic export flag... " >&6; }
14496 dynamic_list=false
14497 if test "${gdb_native}" = yes; then
14498 # The dynamically loaded libthread_db needs access to symbols in the gdb
14499 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14500 # may not be supported there.
14501 old_LDFLAGS="$LDFLAGS"
14502 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14503 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14504 LDFLAGS="$LDFLAGS $RDYNAMIC"
14505 if test "${have_libpython}" = no; then
14506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14507 /* end confdefs.h. */
14508
14509 int
14510 main ()
14511 {
14512
14513 ;
14514 return 0;
14515 }
14516 _ACEOF
14517 if ac_fn_c_try_link "$LINENO"; then :
14518 dynamic_list=true
14519 fi
14520 rm -f core conftest.err conftest.$ac_objext \
14521 conftest$ac_exeext conftest.$ac_ext
14522 else
14523 # Workaround http://bugs.python.org/issue4434 where static
14524 # libpythonX.Y.a would get its symbols required for
14525 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14526 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14527 old_CFLAGS="$CFLAGS"
14528 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
14529 if test "$cross_compiling" = yes; then :
14530 true
14531 else
14532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14533 /* end confdefs.h. */
14534 #include "${have_libpython}/Python.h"
14535 int
14536 main ()
14537 {
14538 int err;
14539 Py_Initialize ();
14540 err = PyRun_SimpleString ("import itertools\n");
14541 Py_Finalize ();
14542 return err == 0 ? 0 : 1;
14543 ;
14544 return 0;
14545 }
14546 _ACEOF
14547 if ac_fn_c_try_run "$LINENO"; then :
14548 dynamic_list=true
14549 fi
14550 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14551 conftest.$ac_objext conftest.beam conftest.$ac_ext
14552 fi
14553
14554 CFLAGS="$old_CFLAGS"
14555 fi
14556 LDFLAGS="$old_LDFLAGS"
14557 fi
14558 if $dynamic_list; then
14559 found="-Wl,--dynamic-list"
14560 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14561 else
14562 found="-rdynamic"
14563 RDYNAMIC="-rdynamic"
14564 fi
14565
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14567 $as_echo "$found" >&6; }
14568
14569
14570 if test ${build} = ${host} -a ${host} = ${target} ; then
14571 case ${host_os} in
14572 solaris*)
14573 # See if thread_db library is around for Solaris thread debugging.
14574 # Note that we must explicitly test for version 1 of the library
14575 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
14576 # the same API.
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
14578 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
14579 if test -f /usr/lib/libthread_db.so.1 ; then
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14581 $as_echo "yes" >&6; }
14582
14583 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
14584
14585 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
14586 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14588 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14589 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14590 $as_echo_n "(cached) " >&6
14591 else
14592 ac_check_lib_save_LIBS=$LIBS
14593 LIBS="-ldl $LIBS"
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14596
14597 /* Override any GCC internal prototype to avoid an error.
14598 Use char because int might match the return type of a GCC
14599 builtin and then its argument prototype would still apply. */
14600 #ifdef __cplusplus
14601 extern "C"
14602 #endif
14603 char dlopen ();
14604 int
14605 main ()
14606 {
14607 return dlopen ();
14608 ;
14609 return 0;
14610 }
14611 _ACEOF
14612 if ac_fn_c_try_link "$LINENO"; then :
14613 ac_cv_lib_dl_dlopen=yes
14614 else
14615 ac_cv_lib_dl_dlopen=no
14616 fi
14617 rm -f core conftest.err conftest.$ac_objext \
14618 conftest$ac_exeext conftest.$ac_ext
14619 LIBS=$ac_check_lib_save_LIBS
14620 fi
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14622 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14623 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14624 cat >>confdefs.h <<_ACEOF
14625 #define HAVE_LIBDL 1
14626 _ACEOF
14627
14628 LIBS="-ldl $LIBS"
14629
14630 fi
14631
14632 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
14633 # Sun randomly tweaked the prototypes in <proc_service.h>
14634 # at one point.
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
14636 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
14637 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
14638 $as_echo_n "(cached) " >&6
14639 else
14640
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14643
14644 #include <proc_service.h>
14645 ps_err_e ps_pdwrite
14646 (struct ps_prochandle*, psaddr_t, const void*, size_t);
14647
14648 int
14649 main ()
14650 {
14651
14652 ;
14653 return 0;
14654 }
14655 _ACEOF
14656 if ac_fn_c_try_compile "$LINENO"; then :
14657 gdb_cv_proc_service_is_old=no
14658 else
14659 gdb_cv_proc_service_is_old=yes
14660 fi
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662
14663 fi
14664
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
14666 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
14667 if test $gdb_cv_proc_service_is_old = yes; then
14668
14669 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
14670
14671 fi
14672 else
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14674 $as_echo "no" >&6; }
14675 fi
14676 ;;
14677 aix*)
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14679 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14680 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
14681 $as_echo_n "(cached) " >&6
14682 else
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14685 #include <sys/pthdebug.h>
14686 int
14687 main ()
14688 {
14689 #ifndef PTHDB_VERSION_3
14690 #error
14691 #endif
14692 ;
14693 return 0;
14694 }
14695 _ACEOF
14696 if ac_fn_c_try_compile "$LINENO"; then :
14697 gdb_cv_have_aix_thread_debug=yes
14698 else
14699 gdb_cv_have_aix_thread_debug=no
14700 fi
14701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702 fi
14703
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14705 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14706 if test $gdb_cv_have_aix_thread_debug = yes; then
14707 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
14708 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
14709 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
14710
14711 # Older versions of AIX do not provide the declaration for
14712 # the getthrds function (it appears that it was introduced
14713 # with AIX 6.x).
14714 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14715 "
14716 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
14717 ac_have_decl=1
14718 else
14719 ac_have_decl=0
14720 fi
14721
14722 cat >>confdefs.h <<_ACEOF
14723 #define HAVE_DECL_GETTHRDS $ac_have_decl
14724 _ACEOF
14725
14726 fi
14727 ;;
14728 esac
14729
14730 fi
14731
14732 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14734 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14735 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
14736 $as_echo_n "(cached) " >&6
14737 else
14738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739 /* end confdefs.h. */
14740 #include <thread_db.h>
14741 int
14742 main ()
14743 {
14744 int i = TD_NOTALLOC;
14745 ;
14746 return 0;
14747 }
14748 _ACEOF
14749 if ac_fn_c_try_compile "$LINENO"; then :
14750 gdb_cv_thread_db_h_has_td_notalloc=yes
14751 else
14752 gdb_cv_thread_db_h_has_td_notalloc=no
14753
14754 fi
14755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14756
14757 fi
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14759 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14761 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14762 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
14763 $as_echo_n "(cached) " >&6
14764 else
14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h. */
14767 #include <thread_db.h>
14768 int
14769 main ()
14770 {
14771 int i = TD_VERSION;
14772 ;
14773 return 0;
14774 }
14775 _ACEOF
14776 if ac_fn_c_try_compile "$LINENO"; then :
14777 gdb_cv_thread_db_h_has_td_version=yes
14778 else
14779 gdb_cv_thread_db_h_has_td_version=no
14780
14781 fi
14782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14783
14784 fi
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
14786 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
14788 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
14789 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
14790 $as_echo_n "(cached) " >&6
14791 else
14792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14793 /* end confdefs.h. */
14794 #include <thread_db.h>
14795 int
14796 main ()
14797 {
14798 int i = TD_NOTLS;
14799 ;
14800 return 0;
14801 }
14802 _ACEOF
14803 if ac_fn_c_try_compile "$LINENO"; then :
14804 gdb_cv_thread_db_h_has_td_notls=yes
14805 else
14806 gdb_cv_thread_db_h_has_td_notls=no
14807
14808 fi
14809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14810
14811 fi
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
14813 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
14814 fi
14815 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
14816
14817 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
14818
14819 fi
14820 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
14821
14822 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
14823
14824 fi
14825 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
14826
14827 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
14828
14829 fi
14830
14831 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
14833 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
14834 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
14835 $as_echo_n "(cached) " >&6
14836 else
14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h. */
14839 #include <sys/syscall.h>
14840 int
14841 main ()
14842 {
14843 int i = __NR_tkill;
14844 ;
14845 return 0;
14846 }
14847 _ACEOF
14848 if ac_fn_c_try_compile "$LINENO"; then :
14849 gdb_cv_sys_syscall_h_has_tkill=yes
14850 else
14851 gdb_cv_sys_syscall_h_has_tkill=no
14852
14853 fi
14854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14855
14856 fi
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
14858 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
14859 fi
14860 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
14861
14862 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
14863
14864 fi
14865
14866 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
14867 "
14868 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
14869 ac_have_decl=1
14870 else
14871 ac_have_decl=0
14872 fi
14873
14874 cat >>confdefs.h <<_ACEOF
14875 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
14876 _ACEOF
14877
14878
14879 if test "$cross_compiling" = yes; then :
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14882 #include <sys/personality.h>
14883 int
14884 main ()
14885 {
14886
14887 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14888 # define ADDR_NO_RANDOMIZE 0x0040000
14889 # endif
14890 /* Test the flag could be set and stays set. */
14891 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14892 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14893 return 1
14894 ;
14895 return 0;
14896 }
14897 _ACEOF
14898 if ac_fn_c_try_link "$LINENO"; then :
14899 have_personality=true
14900 else
14901 have_personality=false
14902 fi
14903 rm -f core conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext conftest.$ac_ext
14905 else
14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14907 /* end confdefs.h. */
14908 #include <sys/personality.h>
14909 int
14910 main ()
14911 {
14912
14913 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
14914 # define ADDR_NO_RANDOMIZE 0x0040000
14915 # endif
14916 /* Test the flag could be set and stays set. */
14917 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
14918 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
14919 return 1
14920 ;
14921 return 0;
14922 }
14923 _ACEOF
14924 if ac_fn_c_try_run "$LINENO"; then :
14925 have_personality=true
14926 else
14927 have_personality=false
14928 fi
14929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14930 conftest.$ac_objext conftest.beam conftest.$ac_ext
14931 fi
14932
14933 if $have_personality
14934 then
14935
14936 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
14937
14938 fi
14939
14940
14941 target_sysroot_reloc=0
14942
14943 # Check whether --with-sysroot was given.
14944 if test "${with_sysroot+set}" = set; then :
14945 withval=$with_sysroot;
14946 case ${with_sysroot} in
14947 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
14948 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
14949 esac
14950
14951 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
14952
14953 if test "x$prefix" = xNONE; then
14954 test_prefix=/usr/local
14955 else
14956 test_prefix=$prefix
14957 fi
14958 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
14959 test_exec_prefix=$test_prefix
14960 else
14961 test_exec_prefix=$exec_prefix
14962 fi
14963 case ${TARGET_SYSTEM_ROOT} in
14964 "${test_prefix}"|"${test_prefix}/"*|\
14965 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
14966 '${prefix}'|'${prefix}/'*|\
14967 '${exec_prefix}'|'${exec_prefix}/'*)
14968 target_sysroot_reloc=1
14969 ;;
14970 esac
14971
14972 else
14973
14974 TARGET_SYSTEM_ROOT=
14975 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
14976
14977 fi
14978
14979 TARGET_SYSTEM_ROOT_DEFINE="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE=$target_sysroot_reloc"
14980
14981
14982
14983
14984
14985 # Check whether --with-system-gdbinit was given.
14986 if test "${with_system_gdbinit+set}" = set; then :
14987 withval=$with_system_gdbinit;
14988 SYSTEM_GDBINIT=$withval
14989 else
14990 SYSTEM_GDBINIT=
14991 fi
14992
14993
14994 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
14995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14996 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
14997 ac_define_dir=`eval echo $ac_define_dir`
14998
14999 cat >>confdefs.h <<_ACEOF
15000 #define SYSTEM_GDBINIT "$ac_define_dir"
15001 _ACEOF
15002
15003
15004
15005
15006 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15007 if test "x$prefix" = xNONE; then
15008 test_prefix=/usr/local
15009 else
15010 test_prefix=$prefix
15011 fi
15012 else
15013 test_prefix=$exec_prefix
15014 fi
15015 value=0
15016 case ${ac_define_dir} in
15017 "${test_prefix}"|"${test_prefix}/"*|\
15018 '${exec_prefix}'|'${exec_prefix}/'*)
15019 value=1
15020 ;;
15021 esac
15022
15023 cat >>confdefs.h <<_ACEOF
15024 #define SYSTEM_GDBINIT_RELOCATABLE $value
15025 _ACEOF
15026
15027
15028
15029
15030 # Check whether --enable-werror was given.
15031 if test "${enable_werror+set}" = set; then :
15032 enableval=$enable_werror; case "${enableval}" in
15033 yes | y) ERROR_ON_WARNING="yes" ;;
15034 no | n) ERROR_ON_WARNING="no" ;;
15035 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15036 esac
15037 fi
15038
15039
15040 # Enable -Werror by default when using gcc
15041 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
15042 ERROR_ON_WARNING=yes
15043 fi
15044
15045 WERROR_CFLAGS=""
15046 if test "${ERROR_ON_WARNING}" = yes ; then
15047 WERROR_CFLAGS="-Werror"
15048 fi
15049
15050 # The entries after -Wno-pointer-sign are disabled warnings which may
15051 # be enabled in the future, which can not currently be used to build
15052 # GDB.
15053 # NOTE: If you change this list, remember to update
15054 # gdb/doc/gdbint.texinfo.
15055 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
15056 -Wformat-nonliteral -Wno-pointer-sign \
15057 -Wno-unused -Wunused-value -Wunused-function \
15058 -Wno-switch -Wno-char-subscripts"
15059
15060 # Enable -Wno-format by default when using gcc on mingw since many
15061 # GCC versions complain about %I64.
15062 case "${host}" in
15063 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
15064 esac
15065
15066 # Check whether --enable-build-warnings was given.
15067 if test "${enable_build_warnings+set}" = set; then :
15068 enableval=$enable_build_warnings; case "${enableval}" in
15069 yes) ;;
15070 no) build_warnings="-w";;
15071 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15072 build_warnings="${build_warnings} ${t}";;
15073 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15074 build_warnings="${t} ${build_warnings}";;
15075 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15076 esac
15077 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15078 echo "Setting compiler warning flags = $build_warnings" 6>&1
15079 fi
15080 fi
15081 # Check whether --enable-gdb-build-warnings was given.
15082 if test "${enable_gdb_build_warnings+set}" = set; then :
15083 enableval=$enable_gdb_build_warnings; case "${enableval}" in
15084 yes) ;;
15085 no) build_warnings="-w";;
15086 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15087 build_warnings="${build_warnings} ${t}";;
15088 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15089 build_warnings="${t} ${build_warnings}";;
15090 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15091 esac
15092 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15093 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15094 fi
15095 fi
15096 WARN_CFLAGS=""
15097 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15098 then
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15100 $as_echo_n "checking compiler warning flags... " >&6; }
15101 # Separate out the -Werror flag as some files just cannot be
15102 # compiled with it enabled.
15103 for w in ${build_warnings}; do
15104 case $w in
15105 -Werr*) WERROR_CFLAGS=-Werror ;;
15106 *) # Check that GCC accepts it
15107 saved_CFLAGS="$CFLAGS"
15108 CFLAGS="$CFLAGS $w"
15109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15111
15112 int
15113 main ()
15114 {
15115
15116 ;
15117 return 0;
15118 }
15119 _ACEOF
15120 if ac_fn_c_try_compile "$LINENO"; then :
15121 WARN_CFLAGS="${WARN_CFLAGS} $w"
15122 fi
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124 CFLAGS="$saved_CFLAGS"
15125 esac
15126 done
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15128 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15129 fi
15130
15131
15132
15133 # In the Cygwin environment, we need some additional flags.
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15135 $as_echo_n "checking for cygwin... " >&6; }
15136 if test "${gdb_cv_os_cygwin+set}" = set; then :
15137 $as_echo_n "(cached) " >&6
15138 else
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141
15142 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15143 lose
15144 #endif
15145 _ACEOF
15146 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15147 $EGREP "lose" >/dev/null 2>&1; then :
15148 gdb_cv_os_cygwin=yes
15149 else
15150 gdb_cv_os_cygwin=no
15151 fi
15152 rm -f conftest*
15153
15154 fi
15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15156 $as_echo "$gdb_cv_os_cygwin" >&6; }
15157
15158
15159 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15160 case ${host} in
15161 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15162 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15163 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15164 esac
15165
15166
15167 # libreadline needs libuser32.a in a cygwin environment
15168 WIN32LIBS=
15169 if test x$gdb_cv_os_cygwin = xyes; then
15170 WIN32LIBS="-luser32"
15171 case "${target}" in
15172 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15173 ;;
15174 esac
15175 fi
15176
15177 # The ser-tcp.c module requires sockets.
15178 case ${host} in
15179 *mingw32*)
15180
15181 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15182
15183 WIN32LIBS="$WIN32LIBS -lws2_32"
15184 ;;
15185 esac
15186
15187
15188 # Add ELF support to GDB, but only if BFD includes ELF support.
15189 OLD_CFLAGS=$CFLAGS
15190 OLD_LDFLAGS=$LDFLAGS
15191 OLD_LIBS=$LIBS
15192 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
15193 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
15194 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15195 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15196 if test "$plugins" = "yes"; then
15197 LIBS="-ldl $LIBS"
15198 fi
15199 LIBS="-lbfd -liberty $intl $LIBS"
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15201 $as_echo_n "checking for ELF support in BFD... " >&6; }
15202 if test "${gdb_cv_var_elf+set}" = set; then :
15203 $as_echo_n "(cached) " >&6
15204 else
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207 #include <stdlib.h>
15208 #include "bfd.h"
15209 #include "elf-bfd.h"
15210
15211 int
15212 main ()
15213 {
15214 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 gdb_cv_var_elf=yes
15221 else
15222 gdb_cv_var_elf=no
15223 fi
15224 rm -f core conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226 fi
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15228 $as_echo "$gdb_cv_var_elf" >&6; }
15229 if test $gdb_cv_var_elf = yes; then
15230 CONFIG_OBS="$CONFIG_OBS elfread.o"
15231
15232 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15233
15234 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15235 if test "$plugins" = "yes"; then
15236 OLD_LIBS="-ldl $OLD_LIBS"
15237 fi
15238 fi
15239 CFLAGS=$OLD_CFLAGS
15240 LDFLAGS=$OLD_LDFLAGS
15241 LIBS=$OLD_LIBS
15242
15243 # Add any host-specific objects to GDB.
15244 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15245
15246 LIBGUI="../libgui/src/libgui.a"
15247 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
15248
15249
15250
15251 WIN32LDAPP=
15252
15253
15254
15255 case "${host}" in
15256 *-*-cygwin* | *-*-mingw* )
15257 configdir="win"
15258 ;;
15259 *)
15260 configdir="unix"
15261 ;;
15262 esac
15263
15264 GDBTKLIBS=
15265 if test "${enable_gdbtk}" = "yes"; then
15266
15267 # Gdbtk must have an absolute path to srcdir in order to run
15268 # properly when not installed.
15269 here=`pwd`
15270 cd ${srcdir}
15271 GDBTK_SRC_DIR=`pwd`
15272 cd $here
15273
15274
15275 #
15276 # Ok, lets find the tcl configuration
15277 # First, look for one uninstalled.
15278 # the alternative search directory is invoked by --with-tcl
15279 #
15280
15281 if test x"${no_tcl}" = x ; then
15282 # we reset no_tcl in case something fails here
15283 no_tcl=true
15284
15285 # Check whether --with-tcl was given.
15286 if test "${with_tcl+set}" = set; then :
15287 withval=$with_tcl; with_tclconfig=${withval}
15288 fi
15289
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
15291 $as_echo_n "checking for Tcl configuration... " >&6; }
15292 if test "${ac_cv_c_tclconfig+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15294 else
15295
15296
15297 # First check to see if --with-tcl was specified.
15298 case "${host}" in
15299 *-*-cygwin*) platDir="win" ;;
15300 *) platDir="unix" ;;
15301 esac
15302 if test x"${with_tclconfig}" != x ; then
15303 if test -f "${with_tclconfig}/tclConfig.sh" ; then
15304 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
15305 else
15306 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
15307 fi
15308 fi
15309
15310 # then check for a private Tcl installation
15311 if test x"${ac_cv_c_tclconfig}" = x ; then
15312 for i in \
15313 ../tcl \
15314 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15315 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
15316 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
15317 ../../tcl \
15318 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15319 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
15320 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
15321 ../../../tcl \
15322 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15323 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
15324 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
15325 if test -f "$i/$platDir/tclConfig.sh" ; then
15326 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15327 break
15328 fi
15329 done
15330 fi
15331
15332 # on Darwin, check in Framework installation locations
15333 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
15334 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15335 `ls -d /Library/Frameworks 2>/dev/null` \
15336 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15337 `ls -d /System/Library/Frameworks 2>/dev/null` \
15338 ; do
15339 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
15340 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
15341 break
15342 fi
15343 done
15344 fi
15345
15346 # check in a few common install locations
15347 if test x"${ac_cv_c_tclconfig}" = x ; then
15348 for i in `ls -d ${libdir} 2>/dev/null` \
15349 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15350 `ls -d ${prefix}/lib 2>/dev/null` \
15351 `ls -d /usr/local/lib 2>/dev/null` \
15352 `ls -d /usr/contrib/lib 2>/dev/null` \
15353 `ls -d /usr/lib 2>/dev/null` \
15354 ; do
15355 if test -f "$i/tclConfig.sh" ; then
15356 ac_cv_c_tclconfig=`(cd $i; pwd)`
15357 break
15358 fi
15359 done
15360 fi
15361
15362 # check in a few other private locations
15363 if test x"${ac_cv_c_tclconfig}" = x ; then
15364 for i in \
15365 ${srcdir}/../tcl \
15366 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
15367 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
15368 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
15369 if test -f "$i/$platDir/tclConfig.sh" ; then
15370 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
15371 break
15372 fi
15373 done
15374 fi
15375
15376 fi
15377
15378
15379 if test x"${ac_cv_c_tclconfig}" = x ; then
15380 TCL_BIN_DIR="# no Tcl configs found"
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
15382 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
15383 else
15384 no_tcl=
15385 TCL_BIN_DIR=${ac_cv_c_tclconfig}
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
15387 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15388 fi
15389 fi
15390
15391
15392 # If $no_tk is nonempty, then we can't do Tk, and there is no
15393 # point to doing Tcl.
15394
15395 #
15396 # Ok, lets find the tk configuration
15397 # First, look for one uninstalled.
15398 # the alternative search directory is invoked by --with-tk
15399 #
15400
15401 if test x"${no_tk}" = x ; then
15402 # we reset no_tk in case something fails here
15403 no_tk=true
15404
15405 # Check whether --with-tk was given.
15406 if test "${with_tk+set}" = set; then :
15407 withval=$with_tk; with_tkconfig=${withval}
15408 fi
15409
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
15411 $as_echo_n "checking for Tk configuration... " >&6; }
15412 if test "${ac_cv_c_tkconfig+set}" = set; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415
15416
15417 # First check to see if --with-tkconfig was specified.
15418 if test x"${with_tkconfig}" != x ; then
15419 if test -f "${with_tkconfig}/tkConfig.sh" ; then
15420 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
15421 else
15422 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
15423 fi
15424 fi
15425
15426 # then check for a private Tk library
15427 case "${host}" in
15428 *-*-cygwin*) platDir="win" ;;
15429 *) platDir="unix" ;;
15430 esac
15431 if test x"${ac_cv_c_tkconfig}" = x ; then
15432 for i in \
15433 ../tk \
15434 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15435 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
15436 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
15437 ../../tk \
15438 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15439 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
15440 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
15441 ../../../tk \
15442 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15443 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
15444 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
15445 if test -f "$i/$platDir/tkConfig.sh" ; then
15446 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15447 break
15448 fi
15449 done
15450 fi
15451
15452 # on Darwin, check in Framework installation locations
15453 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
15454 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
15455 `ls -d /Library/Frameworks 2>/dev/null` \
15456 `ls -d /Network/Library/Frameworks 2>/dev/null` \
15457 `ls -d /System/Library/Frameworks 2>/dev/null` \
15458 ; do
15459 if test -f "$i/Tk.framework/tkConfig.sh" ; then
15460 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
15461 break
15462 fi
15463 done
15464 fi
15465
15466 # check in a few common install locations
15467 if test x"${ac_cv_c_tkconfig}" = x ; then
15468 for i in `ls -d ${libdir} 2>/dev/null` \
15469 `ls -d ${exec_prefix}/lib 2>/dev/null` \
15470 `ls -d ${prefix}/lib 2>/dev/null` \
15471 `ls -d /usr/local/lib 2>/dev/null` \
15472 `ls -d /usr/contrib/lib 2>/dev/null` \
15473 `ls -d /usr/lib 2>/dev/null` \
15474 ; do
15475 if test -f "$i/tkConfig.sh" ; then
15476 ac_cv_c_tkconfig=`(cd $i; pwd)`
15477 break
15478 fi
15479 done
15480 fi
15481 # check in a few other private locations
15482 if test x"${ac_cv_c_tkconfig}" = x ; then
15483 for i in \
15484 ${srcdir}/../tk \
15485 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
15486 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
15487 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
15488 if test -f "$i/$platDir/tkConfig.sh" ; then
15489 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
15490 break
15491 fi
15492 done
15493 fi
15494
15495 fi
15496
15497
15498 if test x"${ac_cv_c_tkconfig}" = x ; then
15499 TK_BIN_DIR="# no Tk configs found"
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
15501 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
15502 else
15503 no_tk=
15504 TK_BIN_DIR=${ac_cv_c_tkconfig}
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
15506 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15507 fi
15508 fi
15509
15510
15511 if test -z "${no_tcl}" -a -z "${no_tk}"; then
15512
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
15514 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
15515
15516 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15518 $as_echo "loading" >&6; }
15519 . ${TCL_BIN_DIR}/tclConfig.sh
15520 else
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
15522 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
15523 fi
15524
15525 # eval is required to do the TCL_DBGX substitution
15526 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
15527 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
15528
15529 # If the TCL_BIN_DIR is the build directory (not the install directory),
15530 # then set the common variable name to the value of the build variables.
15531 # For example, the variable TCL_LIB_SPEC will be set to the value
15532 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
15533 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
15534 # installed and uninstalled version of Tcl.
15535 if test -f "${TCL_BIN_DIR}/Makefile" ; then
15536 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
15537 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
15538 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
15539 elif test "`uname -s`" = "Darwin"; then
15540 # If Tcl was built as a framework, attempt to use the libraries
15541 # from the framework at the given location so that linking works
15542 # against Tcl.framework installed in an arbitary location.
15543 case ${TCL_DEFS} in
15544 *TCL_FRAMEWORK*)
15545 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
15546 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
15547 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
15548 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
15549 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
15550 break
15551 fi
15552 done
15553 fi
15554 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
15555 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
15556 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
15557 fi
15558 ;;
15559 esac
15560 fi
15561
15562 # eval is required to do the TCL_DBGX substitution
15563 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
15564 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
15565 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
15566 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582 # Check for in-tree tcl
15583 here=`pwd`
15584 cd ${srcdir}/..
15585 topdir=`pwd`
15586 cd ${here}
15587
15588 intree="no"
15589 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
15590 intree="yes"
15591 fi
15592
15593 # Find Tcl private headers
15594 if test x"${intree}" = xno; then
15595
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
15597 $as_echo_n "checking for Tcl private headers... " >&6; }
15598 private_dir=""
15599 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
15600 if test -f ${dir}/tclInt.h ; then
15601 private_dir=${dir}
15602 fi
15603
15604 if test x"${private_dir}" = x; then
15605 as_fn_error "could not find private Tcl headers" "$LINENO" 5
15606 else
15607 TCL_PRIVATE_INCLUDE="-I${private_dir}"
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15609 $as_echo "${private_dir}" >&6; }
15610 fi
15611
15612 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
15613 TCL_LIBRARY="${TCL_LIB_SPEC}"
15614 TCL_DEPS=""
15615 else
15616 # If building tcl in the same src tree, private headers
15617 # are not needed, but we need to be sure to use the right
15618 # headers library
15619 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
15620 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
15621 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
15622 fi
15623
15624
15625
15626
15627
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
15629 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
15630
15631 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
15633 $as_echo "loading" >&6; }
15634 . ${TK_BIN_DIR}/tkConfig.sh
15635 else
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
15637 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
15638 fi
15639
15640 # eval is required to do the TK_DBGX substitution
15641 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
15642 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
15643
15644 # If the TK_BIN_DIR is the build directory (not the install directory),
15645 # then set the common variable name to the value of the build variables.
15646 # For example, the variable TK_LIB_SPEC will be set to the value
15647 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
15648 # instead of TK_BUILD_LIB_SPEC since it will work with both an
15649 # installed and uninstalled version of Tcl.
15650 if test -f "${TK_BIN_DIR}/Makefile" ; then
15651 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
15652 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
15653 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
15654 elif test "`uname -s`" = "Darwin"; then
15655 # If Tk was built as a framework, attempt to use the libraries
15656 # from the framework at the given location so that linking works
15657 # against Tk.framework installed in an arbitary location.
15658 case ${TK_DEFS} in
15659 *TK_FRAMEWORK*)
15660 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
15661 for i in "`cd ${TK_BIN_DIR}; pwd`" \
15662 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
15663 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
15664 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
15665 break
15666 fi
15667 done
15668 fi
15669 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
15670 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
15671 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
15672 fi
15673 ;;
15674 esac
15675 fi
15676
15677 # eval is required to do the TK_DBGX substitution
15678 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
15679 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
15680 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
15681 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696 # Check for in-tree Tk
15697 intree="no"
15698 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
15699 intree="yes"
15700 fi
15701
15702 # Find Tk private headers
15703 if test x"${intree}" = xno; then
15704
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
15706 $as_echo_n "checking for Tk private headers... " >&6; }
15707 private_dir=""
15708 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
15709 if test -f ${dir}/tkInt.h; then
15710 private_dir=${dir}
15711 fi
15712
15713 if test x"${private_dir}" = x; then
15714 as_fn_error "could not find Tk private headers" "$LINENO" 5
15715 else
15716 TK_PRIVATE_INCLUDE="-I${private_dir}"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
15718 $as_echo "${private_dir}" >&6; }
15719 fi
15720
15721 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
15722 TK_LIBRARY=${TK_LIB_SPEC}
15723 TK_DEPS=""
15724 else
15725 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
15726 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
15727 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
15728 fi
15729
15730
15731
15732
15733
15734 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
15735
15736 # Include some libraries that Tcl and Tk want.
15737 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
15738 # Yes, the ordering seems wrong here. But it isn't.
15739 # TK_LIBS is the list of libraries that need to be linked
15740 # after Tcl/Tk. Note that this isn't put into LIBS. If it
15741 # were in LIBS then any link tests after this point would
15742 # try to include things like `$(LIBGUI)', which wouldn't work.
15743 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
15744
15745 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
15746 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
15747 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
15748 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
15749 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
15750 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
15751 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
15752
15753 if test x$gdb_cv_os_cygwin = xyes; then
15754 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
15755 WIN32LDAPP="-Wl,--subsystem,console"
15756 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
15757 fi
15758
15759 subdirs="$subdirs gdbtk"
15760
15761 fi
15762 fi
15763
15764
15765
15766
15767
15768
15769
15770
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
15772 $as_echo_n "checking for X... " >&6; }
15773
15774
15775 # Check whether --with-x was given.
15776 if test "${with_x+set}" = set; then :
15777 withval=$with_x;
15778 fi
15779
15780 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
15781 if test "x$with_x" = xno; then
15782 # The user explicitly disabled X.
15783 have_x=disabled
15784 else
15785 case $x_includes,$x_libraries in #(
15786 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
15787 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
15788 $as_echo_n "(cached) " >&6
15789 else
15790 # One or both of the vars are not set, and there is no cached value.
15791 ac_x_includes=no ac_x_libraries=no
15792 rm -f -r conftest.dir
15793 if mkdir conftest.dir; then
15794 cd conftest.dir
15795 cat >Imakefile <<'_ACEOF'
15796 incroot:
15797 @echo incroot='${INCROOT}'
15798 usrlibdir:
15799 @echo usrlibdir='${USRLIBDIR}'
15800 libdir:
15801 @echo libdir='${LIBDIR}'
15802 _ACEOF
15803 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
15804 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15805 for ac_var in incroot usrlibdir libdir; do
15806 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
15807 done
15808 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
15809 for ac_extension in a so sl dylib la dll; do
15810 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
15811 test -f "$ac_im_libdir/libX11.$ac_extension"; then
15812 ac_im_usrlibdir=$ac_im_libdir; break
15813 fi
15814 done
15815 # Screen out bogus values from the imake configuration. They are
15816 # bogus both because they are the default anyway, and because
15817 # using them would break gcc on systems where it needs fixed includes.
15818 case $ac_im_incroot in
15819 /usr/include) ac_x_includes= ;;
15820 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
15821 esac
15822 case $ac_im_usrlibdir in
15823 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
15824 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
15825 esac
15826 fi
15827 cd ..
15828 rm -f -r conftest.dir
15829 fi
15830
15831 # Standard set of common directories for X headers.
15832 # Check X11 before X11Rn because it is often a symlink to the current release.
15833 ac_x_header_dirs='
15834 /usr/X11/include
15835 /usr/X11R7/include
15836 /usr/X11R6/include
15837 /usr/X11R5/include
15838 /usr/X11R4/include
15839
15840 /usr/include/X11
15841 /usr/include/X11R7
15842 /usr/include/X11R6
15843 /usr/include/X11R5
15844 /usr/include/X11R4
15845
15846 /usr/local/X11/include
15847 /usr/local/X11R7/include
15848 /usr/local/X11R6/include
15849 /usr/local/X11R5/include
15850 /usr/local/X11R4/include
15851
15852 /usr/local/include/X11
15853 /usr/local/include/X11R7
15854 /usr/local/include/X11R6
15855 /usr/local/include/X11R5
15856 /usr/local/include/X11R4
15857
15858 /usr/X386/include
15859 /usr/x386/include
15860 /usr/XFree86/include/X11
15861
15862 /usr/include
15863 /usr/local/include
15864 /usr/unsupported/include
15865 /usr/athena/include
15866 /usr/local/x11r5/include
15867 /usr/lpp/Xamples/include
15868
15869 /usr/openwin/include
15870 /usr/openwin/share/include'
15871
15872 if test "$ac_x_includes" = no; then
15873 # Guess where to find include files, by looking for Xlib.h.
15874 # First, try using that file with no special directory specified.
15875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15876 /* end confdefs.h. */
15877 #include <X11/Xlib.h>
15878 _ACEOF
15879 if ac_fn_c_try_cpp "$LINENO"; then :
15880 # We can compile using X headers with no special include directory.
15881 ac_x_includes=
15882 else
15883 for ac_dir in $ac_x_header_dirs; do
15884 if test -r "$ac_dir/X11/Xlib.h"; then
15885 ac_x_includes=$ac_dir
15886 break
15887 fi
15888 done
15889 fi
15890 rm -f conftest.err conftest.$ac_ext
15891 fi # $ac_x_includes = no
15892
15893 if test "$ac_x_libraries" = no; then
15894 # Check for the libraries.
15895 # See if we find them without any special options.
15896 # Don't add to $LIBS permanently.
15897 ac_save_LIBS=$LIBS
15898 LIBS="-lX11 $LIBS"
15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900 /* end confdefs.h. */
15901 #include <X11/Xlib.h>
15902 int
15903 main ()
15904 {
15905 XrmInitialize ()
15906 ;
15907 return 0;
15908 }
15909 _ACEOF
15910 if ac_fn_c_try_link "$LINENO"; then :
15911 LIBS=$ac_save_LIBS
15912 # We can link X programs with no special library path.
15913 ac_x_libraries=
15914 else
15915 LIBS=$ac_save_LIBS
15916 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
15917 do
15918 # Don't even attempt the hair of trying to link an X program!
15919 for ac_extension in a so sl dylib la dll; do
15920 if test -r "$ac_dir/libX11.$ac_extension"; then
15921 ac_x_libraries=$ac_dir
15922 break 2
15923 fi
15924 done
15925 done
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext \
15928 conftest$ac_exeext conftest.$ac_ext
15929 fi # $ac_x_libraries = no
15930
15931 case $ac_x_includes,$ac_x_libraries in #(
15932 no,* | *,no | *\'*)
15933 # Didn't find X, or a directory has "'" in its name.
15934 ac_cv_have_x="have_x=no";; #(
15935 *)
15936 # Record where we found X for the cache.
15937 ac_cv_have_x="have_x=yes\
15938 ac_x_includes='$ac_x_includes'\
15939 ac_x_libraries='$ac_x_libraries'"
15940 esac
15941 fi
15942 ;; #(
15943 *) have_x=yes;;
15944 esac
15945 eval "$ac_cv_have_x"
15946 fi # $with_x != no
15947
15948 if test "$have_x" != yes; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
15950 $as_echo "$have_x" >&6; }
15951 no_x=yes
15952 else
15953 # If each of the values was on the command line, it overrides each guess.
15954 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
15955 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
15956 # Update the cache value to reflect the command line values.
15957 ac_cv_have_x="have_x=yes\
15958 ac_x_includes='$x_includes'\
15959 ac_x_libraries='$x_libraries'"
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
15961 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
15962 fi
15963
15964
15965 # Unlike the sim directory, whether a simulator is linked is controlled by
15966 # presence of a gdb_sim definition in the target configure.tgt entry.
15967 # This code just checks for a few cases where we'd like to ignore those
15968 # definitions, even when they're present in the '.mt' file. These cases
15969 # are when --disable-sim is specified, or if the simulator directory is
15970 # not part of the source tree.
15971 #
15972 # Check whether --enable-sim was given.
15973 if test "${enable_sim+set}" = set; then :
15974 enableval=$enable_sim; echo "enable_sim = $enable_sim";
15975 echo "enableval = ${enableval}";
15976 case "${enableval}" in
15977 yes) ignore_sim=false ;;
15978 no) ignore_sim=true ;;
15979 *) ignore_sim=false ;;
15980 esac
15981 else
15982 ignore_sim=false
15983 fi
15984
15985
15986 if test ! -d "${srcdir}/../sim"; then
15987 ignore_sim=true
15988 fi
15989
15990 SIM=
15991 SIM_OBS=
15992 if test "${ignore_sim}" = "false"; then
15993 if test x"${gdb_sim}" != x ; then
15994 SIM="${gdb_sim}"
15995 SIM_OBS="remote-sim.o"
15996
15997 $as_echo "#define WITH_SIM 1" >>confdefs.h
15998
15999 fi
16000 fi
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015 # List of host floatformats.
16016
16017 cat >>confdefs.h <<_ACEOF
16018 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16019 _ACEOF
16020
16021
16022 cat >>confdefs.h <<_ACEOF
16023 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16024 _ACEOF
16025
16026
16027 cat >>confdefs.h <<_ACEOF
16028 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16029 _ACEOF
16030
16031
16032 # target_subdir is used by the testsuite to find the target libraries.
16033 target_subdir=
16034 if test "${host}" != "${target}"; then
16035 target_subdir="${target_alias}/"
16036 fi
16037
16038
16039 frags=
16040 if test "${gdb_native}" = "yes"; then
16041 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
16042 if test ! -f ${host_makefile_frag}; then
16043 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
16044 fi
16045 frags="$frags $host_makefile_frag"
16046 else
16047 host_makefile_frag=/dev/null
16048 fi
16049
16050
16051
16052
16053 if test "${gdb_native}" = "yes"; then
16054 # We pick this up from the host configuration file (.mh) because we
16055 # do not have a native configuration Makefile fragment.
16056 nativefile=`sed -n '
16057 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
16058 ' ${host_makefile_frag}`
16059 fi
16060
16061
16062 if test x"${gdb_osabi}" != x ; then
16063
16064 cat >>confdefs.h <<_ACEOF
16065 #define GDB_OSABI_DEFAULT $gdb_osabi
16066 _ACEOF
16067
16068 fi
16069
16070 # Enable multi-ice-gdb-server.
16071 # Check whether --enable-multi-ice was given.
16072 if test "${enable_multi_ice+set}" = set; then :
16073 enableval=$enable_multi_ice; case $enableval in
16074 yes | no)
16075 ;;
16076 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
16077 esac
16078 fi
16079
16080 if test "x$enable_multi_ice" = xyes; then
16081 subdirs="$subdirs multi-ice"
16082
16083 fi
16084
16085 # Check whether --enable-gdbserver was given.
16086 if test "${enable_gdbserver+set}" = set; then :
16087 enableval=$enable_gdbserver; case "${enableval}" in
16088 yes| no|auto) ;;
16089 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
16090 esac
16091 else
16092 enable_gdbserver=auto
16093 fi
16094
16095
16096 # We only build gdbserver automatically in a native configuration, and
16097 # only if the user did not explicitly disable its build.
16098 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
16100 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
16101 if test "x$build_gdbserver" = xyes; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16103 $as_echo "yes" >&6; }
16104 subdirs="$subdirs gdbserver"
16105
16106 gdbserver_build_enabled=yes
16107 else
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16109 $as_echo "no" >&6; }
16110 fi
16111 fi
16112
16113 # If the user explicitly request the gdbserver to be built, verify that
16114 # we were in fact able to enable it.
16115 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
16116 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
16117 fi
16118
16119 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
16120 # to an empty version.
16121
16122 files=
16123 links=
16124
16125 rm -f nm.h
16126 if test "${nativefile}" != ""; then
16127 case "${nativefile}" in
16128 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
16129 * ) GDB_NM_FILE="${nativefile}"
16130 esac
16131 files="${files} ${GDB_NM_FILE}"
16132 links="${links} nm.h"
16133
16134 cat >>confdefs.h <<_ACEOF
16135 #define GDB_NM_FILE "${GDB_NM_FILE}"
16136 _ACEOF
16137
16138 fi
16139
16140
16141 ac_sources="$files"
16142 ac_dests="$links"
16143 while test -n "$ac_sources"; do
16144 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
16145 set $ac_sources; ac_source=$1; shift; ac_sources=$*
16146 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
16147 done
16148 ac_config_links="$ac_config_links $ac_config_links_1"
16149
16150
16151
16152
16153
16154 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
16155
16156
16157 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in doc/Makefile gnulib/Makefile data-directory/Makefile"
16158
16159 ac_config_commands="$ac_config_commands default"
16160
16161 cat >confcache <<\_ACEOF
16162 # This file is a shell script that caches the results of configure
16163 # tests run on this system so they can be shared between configure
16164 # scripts and configure runs, see configure's option --config-cache.
16165 # It is not useful on other systems. If it contains results you don't
16166 # want to keep, you may remove or edit it.
16167 #
16168 # config.status only pays attention to the cache file if you give it
16169 # the --recheck option to rerun configure.
16170 #
16171 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16172 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16173 # following values.
16174
16175 _ACEOF
16176
16177 # The following way of writing the cache mishandles newlines in values,
16178 # but we know of no workaround that is simple, portable, and efficient.
16179 # So, we kill variables containing newlines.
16180 # Ultrix sh set writes to stderr and can't be redirected directly,
16181 # and sets the high bit in the cache file unless we assign to the vars.
16182 (
16183 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16184 eval ac_val=\$$ac_var
16185 case $ac_val in #(
16186 *${as_nl}*)
16187 case $ac_var in #(
16188 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16189 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16190 esac
16191 case $ac_var in #(
16192 _ | IFS | as_nl) ;; #(
16193 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16194 *) { eval $ac_var=; unset $ac_var;} ;;
16195 esac ;;
16196 esac
16197 done
16198
16199 (set) 2>&1 |
16200 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16201 *${as_nl}ac_space=\ *)
16202 # `set' does not quote correctly, so add quotes: double-quote
16203 # substitution turns \\\\ into \\, and sed turns \\ into \.
16204 sed -n \
16205 "s/'/'\\\\''/g;
16206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16207 ;; #(
16208 *)
16209 # `set' quotes correctly as required by POSIX, so do not add quotes.
16210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16211 ;;
16212 esac |
16213 sort
16214 ) |
16215 sed '
16216 /^ac_cv_env_/b end
16217 t clear
16218 :clear
16219 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16220 t end
16221 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16222 :end' >>confcache
16223 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16224 if test -w "$cache_file"; then
16225 test "x$cache_file" != "x/dev/null" &&
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16227 $as_echo "$as_me: updating cache $cache_file" >&6;}
16228 cat confcache >$cache_file
16229 else
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16231 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16232 fi
16233 fi
16234 rm -f confcache
16235
16236 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16237 # Let make expand exec_prefix.
16238 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16239
16240 DEFS=-DHAVE_CONFIG_H
16241
16242 ac_libobjs=
16243 ac_ltlibobjs=
16244 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16245 # 1. Remove the extension, and $U if already installed.
16246 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16247 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16248 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16249 # will be set to the directory where LIBOBJS objects are built.
16250 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16251 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16252 done
16253 LIBOBJS=$ac_libobjs
16254
16255 LTLIBOBJS=$ac_ltlibobjs
16256
16257
16258 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16259 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16261 fi
16262 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
16263 as_fn_error "conditional \"GMAKE\" was never defined.
16264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16265 fi
16266 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16267 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16269 fi
16270
16271 gl_libobjs=
16272 gl_ltlibobjs=
16273 if test -n "$gl_LIBOBJS"; then
16274 # Remove the extension.
16275 sed_drop_objext='s/\.o$//;s/\.obj$//'
16276 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16277 gl_libobjs="$gl_libobjs $i.$ac_objext"
16278 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16279 done
16280 fi
16281 gl_LIBOBJS=$gl_libobjs
16282
16283 gl_LTLIBOBJS=$gl_ltlibobjs
16284
16285
16286
16287 gltests_libobjs=
16288 gltests_ltlibobjs=
16289 if test -n "$gltests_LIBOBJS"; then
16290 # Remove the extension.
16291 sed_drop_objext='s/\.o$//;s/\.obj$//'
16292 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16293 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16294 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16295 done
16296 fi
16297 gltests_LIBOBJS=$gltests_libobjs
16298
16299 gltests_LTLIBOBJS=$gltests_ltlibobjs
16300
16301
16302 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16303 as_fn_error "conditional \"AMDEP\" was never defined.
16304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16305 fi
16306 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16307 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16309 fi
16310 if test -n "$EXEEXT"; then
16311 am__EXEEXT_TRUE=
16312 am__EXEEXT_FALSE='#'
16313 else
16314 am__EXEEXT_TRUE='#'
16315 am__EXEEXT_FALSE=
16316 fi
16317
16318
16319
16320 : ${CONFIG_STATUS=./config.status}
16321 ac_write_fail=0
16322 ac_clean_files_save=$ac_clean_files
16323 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16325 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16326 as_write_fail=0
16327 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16328 #! $SHELL
16329 # Generated by $as_me.
16330 # Run this file to recreate the current configuration.
16331 # Compiler output produced by configure, useful for debugging
16332 # configure, is in config.log if it exists.
16333
16334 debug=false
16335 ac_cs_recheck=false
16336 ac_cs_silent=false
16337
16338 SHELL=\${CONFIG_SHELL-$SHELL}
16339 export SHELL
16340 _ASEOF
16341 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16342 ## -------------------- ##
16343 ## M4sh Initialization. ##
16344 ## -------------------- ##
16345
16346 # Be more Bourne compatible
16347 DUALCASE=1; export DUALCASE # for MKS sh
16348 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16349 emulate sh
16350 NULLCMD=:
16351 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16352 # is contrary to our usage. Disable this feature.
16353 alias -g '${1+"$@"}'='"$@"'
16354 setopt NO_GLOB_SUBST
16355 else
16356 case `(set -o) 2>/dev/null` in #(
16357 *posix*) :
16358 set -o posix ;; #(
16359 *) :
16360 ;;
16361 esac
16362 fi
16363
16364
16365 as_nl='
16366 '
16367 export as_nl
16368 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16369 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16371 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16372 # Prefer a ksh shell builtin over an external printf program on Solaris,
16373 # but without wasting forks for bash or zsh.
16374 if test -z "$BASH_VERSION$ZSH_VERSION" \
16375 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16376 as_echo='print -r --'
16377 as_echo_n='print -rn --'
16378 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16379 as_echo='printf %s\n'
16380 as_echo_n='printf %s'
16381 else
16382 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16383 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16384 as_echo_n='/usr/ucb/echo -n'
16385 else
16386 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16387 as_echo_n_body='eval
16388 arg=$1;
16389 case $arg in #(
16390 *"$as_nl"*)
16391 expr "X$arg" : "X\\(.*\\)$as_nl";
16392 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16393 esac;
16394 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16395 '
16396 export as_echo_n_body
16397 as_echo_n='sh -c $as_echo_n_body as_echo'
16398 fi
16399 export as_echo_body
16400 as_echo='sh -c $as_echo_body as_echo'
16401 fi
16402
16403 # The user is always right.
16404 if test "${PATH_SEPARATOR+set}" != set; then
16405 PATH_SEPARATOR=:
16406 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16407 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16408 PATH_SEPARATOR=';'
16409 }
16410 fi
16411
16412
16413 # IFS
16414 # We need space, tab and new line, in precisely that order. Quoting is
16415 # there to prevent editors from complaining about space-tab.
16416 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16417 # splitting by setting IFS to empty value.)
16418 IFS=" "" $as_nl"
16419
16420 # Find who we are. Look in the path if we contain no directory separator.
16421 case $0 in #((
16422 *[\\/]* ) as_myself=$0 ;;
16423 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16424 for as_dir in $PATH
16425 do
16426 IFS=$as_save_IFS
16427 test -z "$as_dir" && as_dir=.
16428 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16429 done
16430 IFS=$as_save_IFS
16431
16432 ;;
16433 esac
16434 # We did not find ourselves, most probably we were run as `sh COMMAND'
16435 # in which case we are not to be found in the path.
16436 if test "x$as_myself" = x; then
16437 as_myself=$0
16438 fi
16439 if test ! -f "$as_myself"; then
16440 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16441 exit 1
16442 fi
16443
16444 # Unset variables that we do not need and which cause bugs (e.g. in
16445 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16446 # suppresses any "Segmentation fault" message there. '((' could
16447 # trigger a bug in pdksh 5.2.14.
16448 for as_var in BASH_ENV ENV MAIL MAILPATH
16449 do eval test x\${$as_var+set} = xset \
16450 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16451 done
16452 PS1='$ '
16453 PS2='> '
16454 PS4='+ '
16455
16456 # NLS nuisances.
16457 LC_ALL=C
16458 export LC_ALL
16459 LANGUAGE=C
16460 export LANGUAGE
16461
16462 # CDPATH.
16463 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16464
16465
16466 # as_fn_error ERROR [LINENO LOG_FD]
16467 # ---------------------------------
16468 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16469 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16470 # script with status $?, using 1 if that was 0.
16471 as_fn_error ()
16472 {
16473 as_status=$?; test $as_status -eq 0 && as_status=1
16474 if test "$3"; then
16475 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16476 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16477 fi
16478 $as_echo "$as_me: error: $1" >&2
16479 as_fn_exit $as_status
16480 } # as_fn_error
16481
16482
16483 # as_fn_set_status STATUS
16484 # -----------------------
16485 # Set $? to STATUS, without forking.
16486 as_fn_set_status ()
16487 {
16488 return $1
16489 } # as_fn_set_status
16490
16491 # as_fn_exit STATUS
16492 # -----------------
16493 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16494 as_fn_exit ()
16495 {
16496 set +e
16497 as_fn_set_status $1
16498 exit $1
16499 } # as_fn_exit
16500
16501 # as_fn_unset VAR
16502 # ---------------
16503 # Portably unset VAR.
16504 as_fn_unset ()
16505 {
16506 { eval $1=; unset $1;}
16507 }
16508 as_unset=as_fn_unset
16509 # as_fn_append VAR VALUE
16510 # ----------------------
16511 # Append the text in VALUE to the end of the definition contained in VAR. Take
16512 # advantage of any shell optimizations that allow amortized linear growth over
16513 # repeated appends, instead of the typical quadratic growth present in naive
16514 # implementations.
16515 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16516 eval 'as_fn_append ()
16517 {
16518 eval $1+=\$2
16519 }'
16520 else
16521 as_fn_append ()
16522 {
16523 eval $1=\$$1\$2
16524 }
16525 fi # as_fn_append
16526
16527 # as_fn_arith ARG...
16528 # ------------------
16529 # Perform arithmetic evaluation on the ARGs, and store the result in the
16530 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16531 # must be portable across $(()) and expr.
16532 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16533 eval 'as_fn_arith ()
16534 {
16535 as_val=$(( $* ))
16536 }'
16537 else
16538 as_fn_arith ()
16539 {
16540 as_val=`expr "$@" || test $? -eq 1`
16541 }
16542 fi # as_fn_arith
16543
16544
16545 if expr a : '\(a\)' >/dev/null 2>&1 &&
16546 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16547 as_expr=expr
16548 else
16549 as_expr=false
16550 fi
16551
16552 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16553 as_basename=basename
16554 else
16555 as_basename=false
16556 fi
16557
16558 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16559 as_dirname=dirname
16560 else
16561 as_dirname=false
16562 fi
16563
16564 as_me=`$as_basename -- "$0" ||
16565 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16566 X"$0" : 'X\(//\)$' \| \
16567 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16568 $as_echo X/"$0" |
16569 sed '/^.*\/\([^/][^/]*\)\/*$/{
16570 s//\1/
16571 q
16572 }
16573 /^X\/\(\/\/\)$/{
16574 s//\1/
16575 q
16576 }
16577 /^X\/\(\/\).*/{
16578 s//\1/
16579 q
16580 }
16581 s/.*/./; q'`
16582
16583 # Avoid depending upon Character Ranges.
16584 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16585 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16586 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16587 as_cr_digits='0123456789'
16588 as_cr_alnum=$as_cr_Letters$as_cr_digits
16589
16590 ECHO_C= ECHO_N= ECHO_T=
16591 case `echo -n x` in #(((((
16592 -n*)
16593 case `echo 'xy\c'` in
16594 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16595 xy) ECHO_C='\c';;
16596 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16597 ECHO_T=' ';;
16598 esac;;
16599 *)
16600 ECHO_N='-n';;
16601 esac
16602
16603 rm -f conf$$ conf$$.exe conf$$.file
16604 if test -d conf$$.dir; then
16605 rm -f conf$$.dir/conf$$.file
16606 else
16607 rm -f conf$$.dir
16608 mkdir conf$$.dir 2>/dev/null
16609 fi
16610 if (echo >conf$$.file) 2>/dev/null; then
16611 if ln -s conf$$.file conf$$ 2>/dev/null; then
16612 as_ln_s='ln -s'
16613 # ... but there are two gotchas:
16614 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16615 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16616 # In both cases, we have to default to `cp -p'.
16617 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16618 as_ln_s='cp -p'
16619 elif ln conf$$.file conf$$ 2>/dev/null; then
16620 as_ln_s=ln
16621 else
16622 as_ln_s='cp -p'
16623 fi
16624 else
16625 as_ln_s='cp -p'
16626 fi
16627 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16628 rmdir conf$$.dir 2>/dev/null
16629
16630
16631 # as_fn_mkdir_p
16632 # -------------
16633 # Create "$as_dir" as a directory, including parents if necessary.
16634 as_fn_mkdir_p ()
16635 {
16636
16637 case $as_dir in #(
16638 -*) as_dir=./$as_dir;;
16639 esac
16640 test -d "$as_dir" || eval $as_mkdir_p || {
16641 as_dirs=
16642 while :; do
16643 case $as_dir in #(
16644 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16645 *) as_qdir=$as_dir;;
16646 esac
16647 as_dirs="'$as_qdir' $as_dirs"
16648 as_dir=`$as_dirname -- "$as_dir" ||
16649 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16650 X"$as_dir" : 'X\(//\)[^/]' \| \
16651 X"$as_dir" : 'X\(//\)$' \| \
16652 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16653 $as_echo X"$as_dir" |
16654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16655 s//\1/
16656 q
16657 }
16658 /^X\(\/\/\)[^/].*/{
16659 s//\1/
16660 q
16661 }
16662 /^X\(\/\/\)$/{
16663 s//\1/
16664 q
16665 }
16666 /^X\(\/\).*/{
16667 s//\1/
16668 q
16669 }
16670 s/.*/./; q'`
16671 test -d "$as_dir" && break
16672 done
16673 test -z "$as_dirs" || eval "mkdir $as_dirs"
16674 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16675
16676
16677 } # as_fn_mkdir_p
16678 if mkdir -p . 2>/dev/null; then
16679 as_mkdir_p='mkdir -p "$as_dir"'
16680 else
16681 test -d ./-p && rmdir ./-p
16682 as_mkdir_p=false
16683 fi
16684
16685 if test -x / >/dev/null 2>&1; then
16686 as_test_x='test -x'
16687 else
16688 if ls -dL / >/dev/null 2>&1; then
16689 as_ls_L_option=L
16690 else
16691 as_ls_L_option=
16692 fi
16693 as_test_x='
16694 eval sh -c '\''
16695 if test -d "$1"; then
16696 test -d "$1/.";
16697 else
16698 case $1 in #(
16699 -*)set "./$1";;
16700 esac;
16701 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16702 ???[sx]*):;;*)false;;esac;fi
16703 '\'' sh
16704 '
16705 fi
16706 as_executable_p=$as_test_x
16707
16708 # Sed expression to map a string onto a valid CPP name.
16709 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16710
16711 # Sed expression to map a string onto a valid variable name.
16712 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16713
16714
16715 exec 6>&1
16716 ## ----------------------------------- ##
16717 ## Main body of $CONFIG_STATUS script. ##
16718 ## ----------------------------------- ##
16719 _ASEOF
16720 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16721
16722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16723 # Save the log message, to keep $0 and so on meaningful, and to
16724 # report actual input values of CONFIG_FILES etc. instead of their
16725 # values after options handling.
16726 ac_log="
16727 This file was extended by $as_me, which was
16728 generated by GNU Autoconf 2.64. Invocation command line was
16729
16730 CONFIG_FILES = $CONFIG_FILES
16731 CONFIG_HEADERS = $CONFIG_HEADERS
16732 CONFIG_LINKS = $CONFIG_LINKS
16733 CONFIG_COMMANDS = $CONFIG_COMMANDS
16734 $ $0 $@
16735
16736 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16737 "
16738
16739 _ACEOF
16740
16741 case $ac_config_files in *"
16742 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16743 esac
16744
16745 case $ac_config_headers in *"
16746 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16747 esac
16748
16749
16750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16751 # Files that config.status was made for.
16752 config_files="$ac_config_files"
16753 config_headers="$ac_config_headers"
16754 config_links="$ac_config_links"
16755 config_commands="$ac_config_commands"
16756
16757 _ACEOF
16758
16759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16760 ac_cs_usage="\
16761 \`$as_me' instantiates files and other configuration actions
16762 from templates according to the current configuration. Unless the files
16763 and actions are specified as TAGs, all are instantiated by default.
16764
16765 Usage: $0 [OPTION]... [TAG]...
16766
16767 -h, --help print this help, then exit
16768 -V, --version print version number and configuration settings, then exit
16769 -q, --quiet, --silent
16770 do not print progress messages
16771 -d, --debug don't remove temporary files
16772 --recheck update $as_me by reconfiguring in the same conditions
16773 --file=FILE[:TEMPLATE]
16774 instantiate the configuration file FILE
16775 --header=FILE[:TEMPLATE]
16776 instantiate the configuration header FILE
16777
16778 Configuration files:
16779 $config_files
16780
16781 Configuration headers:
16782 $config_headers
16783
16784 Configuration links:
16785 $config_links
16786
16787 Configuration commands:
16788 $config_commands
16789
16790 Report bugs to the package provider."
16791
16792 _ACEOF
16793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16794 ac_cs_version="\\
16795 config.status
16796 configured by $0, generated by GNU Autoconf 2.64,
16797 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16798
16799 Copyright (C) 2009 Free Software Foundation, Inc.
16800 This config.status script is free software; the Free Software Foundation
16801 gives unlimited permission to copy, distribute and modify it."
16802
16803 ac_pwd='$ac_pwd'
16804 srcdir='$srcdir'
16805 INSTALL='$INSTALL'
16806 MKDIR_P='$MKDIR_P'
16807 AWK='$AWK'
16808 test -n "\$AWK" || AWK=awk
16809 _ACEOF
16810
16811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16812 # The default lists apply if the user does not specify any file.
16813 ac_need_defaults=:
16814 while test $# != 0
16815 do
16816 case $1 in
16817 --*=*)
16818 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16819 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16820 ac_shift=:
16821 ;;
16822 *)
16823 ac_option=$1
16824 ac_optarg=$2
16825 ac_shift=shift
16826 ;;
16827 esac
16828
16829 case $ac_option in
16830 # Handling of the options.
16831 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16832 ac_cs_recheck=: ;;
16833 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16834 $as_echo "$ac_cs_version"; exit ;;
16835 --debug | --debu | --deb | --de | --d | -d )
16836 debug=: ;;
16837 --file | --fil | --fi | --f )
16838 $ac_shift
16839 case $ac_optarg in
16840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16841 esac
16842 as_fn_append CONFIG_FILES " '$ac_optarg'"
16843 ac_need_defaults=false;;
16844 --header | --heade | --head | --hea )
16845 $ac_shift
16846 case $ac_optarg in
16847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16848 esac
16849 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16850 ac_need_defaults=false;;
16851 --he | --h)
16852 # Conflict between --help and --header
16853 as_fn_error "ambiguous option: \`$1'
16854 Try \`$0 --help' for more information.";;
16855 --help | --hel | -h )
16856 $as_echo "$ac_cs_usage"; exit ;;
16857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16858 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16859 ac_cs_silent=: ;;
16860
16861 # This is an error.
16862 -*) as_fn_error "unrecognized option: \`$1'
16863 Try \`$0 --help' for more information." ;;
16864
16865 *) as_fn_append ac_config_targets " $1"
16866 ac_need_defaults=false ;;
16867
16868 esac
16869 shift
16870 done
16871
16872 ac_configure_extra_args=
16873
16874 if $ac_cs_silent; then
16875 exec 6>/dev/null
16876 ac_configure_extra_args="$ac_configure_extra_args --silent"
16877 fi
16878
16879 _ACEOF
16880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16881 if \$ac_cs_recheck; then
16882 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16883 shift
16884 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16885 CONFIG_SHELL='$SHELL'
16886 export CONFIG_SHELL
16887 exec "\$@"
16888 fi
16889
16890 _ACEOF
16891 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16892 exec 5>>config.log
16893 {
16894 echo
16895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16896 ## Running $as_me. ##
16897 _ASBOX
16898 $as_echo "$ac_log"
16899 } >&5
16900
16901 _ACEOF
16902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16903 #
16904 # INIT-COMMANDS
16905 #
16906 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
16907 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16908
16909 _ACEOF
16910
16911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16912
16913 # Handling of arguments.
16914 for ac_config_target in $ac_config_targets
16915 do
16916 case $ac_config_target in
16917 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16918 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
16919 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16920 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
16921 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
16922 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16923 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16924 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16925 "gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
16926 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
16927 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16928
16929 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16930 esac
16931 done
16932
16933
16934 # If the user did not use the arguments to specify the items to instantiate,
16935 # then the envvar interface is used. Set only those that are not.
16936 # We use the long form for the default assignment because of an extremely
16937 # bizarre bug on SunOS 4.1.3.
16938 if $ac_need_defaults; then
16939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16941 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16942 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16943 fi
16944
16945 # Have a temporary directory for convenience. Make it in the build tree
16946 # simply because there is no reason against having it here, and in addition,
16947 # creating and moving files from /tmp can sometimes cause problems.
16948 # Hook for its removal unless debugging.
16949 # Note that there is a small window in which the directory will not be cleaned:
16950 # after its creation but before its name has been assigned to `$tmp'.
16951 $debug ||
16952 {
16953 tmp=
16954 trap 'exit_status=$?
16955 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16956 ' 0
16957 trap 'as_fn_exit 1' 1 2 13 15
16958 }
16959 # Create a (secure) tmp directory for tmp files.
16960
16961 {
16962 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16963 test -n "$tmp" && test -d "$tmp"
16964 } ||
16965 {
16966 tmp=./conf$$-$RANDOM
16967 (umask 077 && mkdir "$tmp")
16968 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16969
16970 # Set up the scripts for CONFIG_FILES section.
16971 # No need to generate them if there are no CONFIG_FILES.
16972 # This happens for instance with `./config.status config.h'.
16973 if test -n "$CONFIG_FILES"; then
16974
16975 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16976 ac_cs_awk_getline=:
16977 ac_cs_awk_pipe_init=
16978 ac_cs_awk_read_file='
16979 while ((getline aline < (F[key])) > 0)
16980 print(aline)
16981 close(F[key])'
16982 ac_cs_awk_pipe_fini=
16983 else
16984 ac_cs_awk_getline=false
16985 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16986 ac_cs_awk_read_file='
16987 print "|#_!!_#|"
16988 print "cat " F[key] " &&"
16989 '$ac_cs_awk_pipe_init
16990 # The final `:' finishes the AND list.
16991 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16992 fi
16993 ac_cr=`echo X | tr X '\015'`
16994 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16995 # But we know of no other shell where ac_cr would be empty at this
16996 # point, so we can use a bashism as a fallback.
16997 if test "x$ac_cr" = x; then
16998 eval ac_cr=\$\'\\r\'
16999 fi
17000 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17001 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17002 ac_cs_awk_cr='\r'
17003 else
17004 ac_cs_awk_cr=$ac_cr
17005 fi
17006
17007 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17008 _ACEOF
17009
17010 # Create commands to substitute file output variables.
17011 {
17012 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17013 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17014 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17015 echo "_ACAWK" &&
17016 echo "_ACEOF"
17017 } >conf$$files.sh &&
17018 . ./conf$$files.sh ||
17019 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17020 rm -f conf$$files.sh
17021
17022 {
17023 echo "cat >conf$$subs.awk <<_ACEOF" &&
17024 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17025 echo "_ACEOF"
17026 } >conf$$subs.sh ||
17027 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17028 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17029 ac_delim='%!_!# '
17030 for ac_last_try in false false false false false :; do
17031 . ./conf$$subs.sh ||
17032 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17033
17034 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17035 if test $ac_delim_n = $ac_delim_num; then
17036 break
17037 elif $ac_last_try; then
17038 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17039 else
17040 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17041 fi
17042 done
17043 rm -f conf$$subs.sh
17044
17045 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17046 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17047 _ACEOF
17048 sed -n '
17049 h
17050 s/^/S["/; s/!.*/"]=/
17051 p
17052 g
17053 s/^[^!]*!//
17054 :repl
17055 t repl
17056 s/'"$ac_delim"'$//
17057 t delim
17058 :nl
17059 h
17060 s/\(.\{148\}\).*/\1/
17061 t more1
17062 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17063 p
17064 n
17065 b repl
17066 :more1
17067 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17068 p
17069 g
17070 s/.\{148\}//
17071 t nl
17072 :delim
17073 h
17074 s/\(.\{148\}\).*/\1/
17075 t more2
17076 s/["\\]/\\&/g; s/^/"/; s/$/"/
17077 p
17078 b
17079 :more2
17080 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17081 p
17082 g
17083 s/.\{148\}//
17084 t delim
17085 ' <conf$$subs.awk | sed '
17086 /^[^""]/{
17087 N
17088 s/\n//
17089 }
17090 ' >>$CONFIG_STATUS || ac_write_fail=1
17091 rm -f conf$$subs.awk
17092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17093 _ACAWK
17094 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17095 for (key in S) S_is_set[key] = 1
17096 FS = "\a"
17097 \$ac_cs_awk_pipe_init
17098 }
17099 {
17100 line = $ 0
17101 nfields = split(line, field, "@")
17102 substed = 0
17103 len = length(field[1])
17104 for (i = 2; i < nfields; i++) {
17105 key = field[i]
17106 keylen = length(key)
17107 if (S_is_set[key]) {
17108 value = S[key]
17109 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17110 len += length(value) + length(field[++i])
17111 substed = 1
17112 } else
17113 len += 1 + keylen
17114 }
17115 if (nfields == 3 && !substed) {
17116 key = field[2]
17117 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17118 \$ac_cs_awk_read_file
17119 next
17120 }
17121 }
17122 print line
17123 }
17124 \$ac_cs_awk_pipe_fini
17125 _ACAWK
17126 _ACEOF
17127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17128 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17129 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17130 else
17131 cat
17132 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17133 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17134 _ACEOF
17135
17136 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17137 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17138 # trailing colons and then remove the whole line if VPATH becomes empty
17139 # (actually we leave an empty line to preserve line numbers).
17140 if test "x$srcdir" = x.; then
17141 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17142 s/:*\$(srcdir):*/:/
17143 s/:*\${srcdir}:*/:/
17144 s/:*@srcdir@:*/:/
17145 s/^\([^=]*=[ ]*\):*/\1/
17146 s/:*$//
17147 s/^[^=]*=[ ]*$//
17148 }'
17149 fi
17150
17151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17152 fi # test -n "$CONFIG_FILES"
17153
17154 # Set up the scripts for CONFIG_HEADERS section.
17155 # No need to generate them if there are no CONFIG_HEADERS.
17156 # This happens for instance with `./config.status Makefile'.
17157 if test -n "$CONFIG_HEADERS"; then
17158 cat >"$tmp/defines.awk" <<\_ACAWK ||
17159 BEGIN {
17160 _ACEOF
17161
17162 # Transform confdefs.h into an awk script `defines.awk', embedded as
17163 # here-document in config.status, that substitutes the proper values into
17164 # config.h.in to produce config.h.
17165
17166 # Create a delimiter string that does not exist in confdefs.h, to ease
17167 # handling of long lines.
17168 ac_delim='%!_!# '
17169 for ac_last_try in false false :; do
17170 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17171 if test -z "$ac_t"; then
17172 break
17173 elif $ac_last_try; then
17174 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17175 else
17176 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17177 fi
17178 done
17179
17180 # For the awk script, D is an array of macro values keyed by name,
17181 # likewise P contains macro parameters if any. Preserve backslash
17182 # newline sequences.
17183
17184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17185 sed -n '
17186 s/.\{148\}/&'"$ac_delim"'/g
17187 t rset
17188 :rset
17189 s/^[ ]*#[ ]*define[ ][ ]*/ /
17190 t def
17191 d
17192 :def
17193 s/\\$//
17194 t bsnl
17195 s/["\\]/\\&/g
17196 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17197 D["\1"]=" \3"/p
17198 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17199 d
17200 :bsnl
17201 s/["\\]/\\&/g
17202 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17203 D["\1"]=" \3\\\\\\n"\\/p
17204 t cont
17205 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17206 t cont
17207 d
17208 :cont
17209 n
17210 s/.\{148\}/&'"$ac_delim"'/g
17211 t clear
17212 :clear
17213 s/\\$//
17214 t bsnlc
17215 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17216 d
17217 :bsnlc
17218 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17219 b cont
17220 ' <confdefs.h | sed '
17221 s/'"$ac_delim"'/"\\\
17222 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17223
17224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17225 for (key in D) D_is_set[key] = 1
17226 FS = "\a"
17227 }
17228 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17229 line = \$ 0
17230 split(line, arg, " ")
17231 if (arg[1] == "#") {
17232 defundef = arg[2]
17233 mac1 = arg[3]
17234 } else {
17235 defundef = substr(arg[1], 2)
17236 mac1 = arg[2]
17237 }
17238 split(mac1, mac2, "(") #)
17239 macro = mac2[1]
17240 prefix = substr(line, 1, index(line, defundef) - 1)
17241 if (D_is_set[macro]) {
17242 # Preserve the white space surrounding the "#".
17243 print prefix "define", macro P[macro] D[macro]
17244 next
17245 } else {
17246 # Replace #undef with comments. This is necessary, for example,
17247 # in the case of _POSIX_SOURCE, which is predefined and required
17248 # on some systems where configure will not decide to define it.
17249 if (defundef == "undef") {
17250 print "/*", prefix defundef, macro, "*/"
17251 next
17252 }
17253 }
17254 }
17255 { print }
17256 _ACAWK
17257 _ACEOF
17258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17259 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17260 fi # test -n "$CONFIG_HEADERS"
17261
17262
17263 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
17264 shift
17265 for ac_tag
17266 do
17267 case $ac_tag in
17268 :[FHLC]) ac_mode=$ac_tag; continue;;
17269 esac
17270 case $ac_mode$ac_tag in
17271 :[FHL]*:*);;
17272 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17273 :[FH]-) ac_tag=-:-;;
17274 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17275 esac
17276 ac_save_IFS=$IFS
17277 IFS=:
17278 set x $ac_tag
17279 IFS=$ac_save_IFS
17280 shift
17281 ac_file=$1
17282 shift
17283
17284 case $ac_mode in
17285 :L) ac_source=$1;;
17286 :[FH])
17287 ac_file_inputs=
17288 for ac_f
17289 do
17290 case $ac_f in
17291 -) ac_f="$tmp/stdin";;
17292 *) # Look for the file first in the build tree, then in the source tree
17293 # (if the path is not absolute). The absolute path cannot be DOS-style,
17294 # because $ac_f cannot contain `:'.
17295 test -f "$ac_f" ||
17296 case $ac_f in
17297 [\\/$]*) false;;
17298 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17299 esac ||
17300 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17301 esac
17302 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17303 as_fn_append ac_file_inputs " '$ac_f'"
17304 done
17305
17306 # Let's still pretend it is `configure' which instantiates (i.e., don't
17307 # use $as_me), people would be surprised to read:
17308 # /* config.h. Generated by config.status. */
17309 configure_input='Generated from '`
17310 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17311 `' by configure.'
17312 if test x"$ac_file" != x-; then
17313 configure_input="$ac_file. $configure_input"
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17315 $as_echo "$as_me: creating $ac_file" >&6;}
17316 fi
17317 # Neutralize special characters interpreted by sed in replacement strings.
17318 case $configure_input in #(
17319 *\&* | *\|* | *\\* )
17320 ac_sed_conf_input=`$as_echo "$configure_input" |
17321 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17322 *) ac_sed_conf_input=$configure_input;;
17323 esac
17324
17325 case $ac_tag in
17326 *:-:* | *:-) cat >"$tmp/stdin" \
17327 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17328 esac
17329 ;;
17330 esac
17331
17332 ac_dir=`$as_dirname -- "$ac_file" ||
17333 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17334 X"$ac_file" : 'X\(//\)[^/]' \| \
17335 X"$ac_file" : 'X\(//\)$' \| \
17336 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17337 $as_echo X"$ac_file" |
17338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17339 s//\1/
17340 q
17341 }
17342 /^X\(\/\/\)[^/].*/{
17343 s//\1/
17344 q
17345 }
17346 /^X\(\/\/\)$/{
17347 s//\1/
17348 q
17349 }
17350 /^X\(\/\).*/{
17351 s//\1/
17352 q
17353 }
17354 s/.*/./; q'`
17355 as_dir="$ac_dir"; as_fn_mkdir_p
17356 ac_builddir=.
17357
17358 case "$ac_dir" in
17359 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17360 *)
17361 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17362 # A ".." for each directory in $ac_dir_suffix.
17363 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17364 case $ac_top_builddir_sub in
17365 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17366 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17367 esac ;;
17368 esac
17369 ac_abs_top_builddir=$ac_pwd
17370 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17371 # for backward compatibility:
17372 ac_top_builddir=$ac_top_build_prefix
17373
17374 case $srcdir in
17375 .) # We are building in place.
17376 ac_srcdir=.
17377 ac_top_srcdir=$ac_top_builddir_sub
17378 ac_abs_top_srcdir=$ac_pwd ;;
17379 [\\/]* | ?:[\\/]* ) # Absolute name.
17380 ac_srcdir=$srcdir$ac_dir_suffix;
17381 ac_top_srcdir=$srcdir
17382 ac_abs_top_srcdir=$srcdir ;;
17383 *) # Relative name.
17384 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17385 ac_top_srcdir=$ac_top_build_prefix$srcdir
17386 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17387 esac
17388 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17389
17390
17391 case $ac_mode in
17392 :F)
17393 #
17394 # CONFIG_FILE
17395 #
17396
17397 case $INSTALL in
17398 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17399 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17400 esac
17401 ac_MKDIR_P=$MKDIR_P
17402 case $MKDIR_P in
17403 [\\/$]* | ?:[\\/]* ) ;;
17404 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17405 esac
17406 _ACEOF
17407
17408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17409 # If the template does not know about datarootdir, expand it.
17410 # FIXME: This hack should be removed a few years after 2.60.
17411 ac_datarootdir_hack=; ac_datarootdir_seen=
17412 ac_sed_dataroot='
17413 /datarootdir/ {
17414 p
17415 q
17416 }
17417 /@datadir@/p
17418 /@docdir@/p
17419 /@infodir@/p
17420 /@localedir@/p
17421 /@mandir@/p'
17422 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17423 *datarootdir*) ac_datarootdir_seen=yes;;
17424 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17426 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17427 _ACEOF
17428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17429 ac_datarootdir_hack='
17430 s&@datadir@&$datadir&g
17431 s&@docdir@&$docdir&g
17432 s&@infodir@&$infodir&g
17433 s&@localedir@&$localedir&g
17434 s&@mandir@&$mandir&g
17435 s&\\\${datarootdir}&$datarootdir&g' ;;
17436 esac
17437 _ACEOF
17438
17439 # Neutralize VPATH when `$srcdir' = `.'.
17440 # Shell code in configure.ac might set extrasub.
17441 # FIXME: do we really want to maintain this feature?
17442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17443 ac_sed_extra="$ac_vpsub
17444 $extrasub
17445 _ACEOF
17446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17447 :t
17448 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17449 s|@configure_input@|$ac_sed_conf_input|;t t
17450 s&@top_builddir@&$ac_top_builddir_sub&;t t
17451 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17452 s&@srcdir@&$ac_srcdir&;t t
17453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17454 s&@top_srcdir@&$ac_top_srcdir&;t t
17455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17456 s&@builddir@&$ac_builddir&;t t
17457 s&@abs_builddir@&$ac_abs_builddir&;t t
17458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17459 s&@INSTALL@&$ac_INSTALL&;t t
17460 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17461 $ac_datarootdir_hack
17462 "
17463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17464 if $ac_cs_awk_getline; then
17465 $AWK -f "$tmp/subs.awk"
17466 else
17467 $AWK -f "$tmp/subs.awk" | $SHELL
17468 fi >$tmp/out \
17469 || as_fn_error "could not create $ac_file" "$LINENO" 5
17470
17471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17472 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17475 which seems to be undefined. Please make sure it is defined." >&5
17476 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17477 which seems to be undefined. Please make sure it is defined." >&2;}
17478
17479 rm -f "$tmp/stdin"
17480 case $ac_file in
17481 -) cat "$tmp/out" && rm -f "$tmp/out";;
17482 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17483 esac \
17484 || as_fn_error "could not create $ac_file" "$LINENO" 5
17485 ;;
17486 :H)
17487 #
17488 # CONFIG_HEADER
17489 #
17490 if test x"$ac_file" != x-; then
17491 {
17492 $as_echo "/* $configure_input */" \
17493 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17494 } >"$tmp/config.h" \
17495 || as_fn_error "could not create $ac_file" "$LINENO" 5
17496 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17498 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17499 else
17500 rm -f "$ac_file"
17501 mv "$tmp/config.h" "$ac_file" \
17502 || as_fn_error "could not create $ac_file" "$LINENO" 5
17503 fi
17504 else
17505 $as_echo "/* $configure_input */" \
17506 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17507 || as_fn_error "could not create -" "$LINENO" 5
17508 fi
17509 # Compute "$ac_file"'s index in $config_headers.
17510 _am_arg="$ac_file"
17511 _am_stamp_count=1
17512 for _am_header in $config_headers :; do
17513 case $_am_header in
17514 $_am_arg | $_am_arg:* )
17515 break ;;
17516 * )
17517 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17518 esac
17519 done
17520 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17521 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17522 X"$_am_arg" : 'X\(//\)[^/]' \| \
17523 X"$_am_arg" : 'X\(//\)$' \| \
17524 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17525 $as_echo X"$_am_arg" |
17526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17527 s//\1/
17528 q
17529 }
17530 /^X\(\/\/\)[^/].*/{
17531 s//\1/
17532 q
17533 }
17534 /^X\(\/\/\)$/{
17535 s//\1/
17536 q
17537 }
17538 /^X\(\/\).*/{
17539 s//\1/
17540 q
17541 }
17542 s/.*/./; q'`/stamp-h$_am_stamp_count
17543 ;;
17544 :L)
17545 #
17546 # CONFIG_LINK
17547 #
17548
17549 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
17550 :
17551 else
17552 # Prefer the file from the source tree if names are identical.
17553 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
17554 ac_source=$srcdir/$ac_source
17555 fi
17556
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
17558 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
17559
17560 if test ! -r "$ac_source"; then
17561 as_fn_error "$ac_source: file not found" "$LINENO" 5
17562 fi
17563 rm -f "$ac_file"
17564
17565 # Try a relative symlink, then a hard link, then a copy.
17566 case $srcdir in
17567 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17568 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17569 esac
17570 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17571 ln "$ac_source" "$ac_file" 2>/dev/null ||
17572 cp -p "$ac_source" "$ac_file" ||
17573 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
17574 fi
17575 ;;
17576 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17577 $as_echo "$as_me: executing $ac_file commands" >&6;}
17578 ;;
17579 esac
17580
17581
17582 case $ac_file$ac_mode in
17583 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
17584 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17585 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17586 # are listed without --file. Let's play safe and only enable the eval
17587 # if we detect the quoting.
17588 case $CONFIG_FILES in
17589 *\'*) eval set x "$CONFIG_FILES" ;;
17590 *) set x $CONFIG_FILES ;;
17591 esac
17592 shift
17593 for mf
17594 do
17595 # Strip MF so we end up with the name of the file.
17596 mf=`echo "$mf" | sed -e 's/:.*$//'`
17597 # Check whether this is an Automake generated Makefile or not.
17598 # We used to match only the files named `Makefile.in', but
17599 # some people rename them; so instead we look at the file content.
17600 # Grep'ing the first line is not enough: some people post-process
17601 # each Makefile.in and add a new line on top of each file to say so.
17602 # Grep'ing the whole file is not good either: AIX grep has a line
17603 # limit of 2048, but all sed's we know have understand at least 4000.
17604 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17605 dirpart=`$as_dirname -- "$mf" ||
17606 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17607 X"$mf" : 'X\(//\)[^/]' \| \
17608 X"$mf" : 'X\(//\)$' \| \
17609 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17610 $as_echo X"$mf" |
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'`
17628 else
17629 continue
17630 fi
17631 # Extract the definition of DEPDIR, am__include, and am__quote
17632 # from the Makefile without running `make'.
17633 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17634 test -z "$DEPDIR" && continue
17635 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17636 test -z "am__include" && continue
17637 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17638 # When using ansi2knr, U may be empty or an underscore; expand it
17639 U=`sed -n 's/^U = //p' < "$mf"`
17640 # Find all dependency output files, they are included files with
17641 # $(DEPDIR) in their names. We invoke sed twice because it is the
17642 # simplest approach to changing $(DEPDIR) to its actual value in the
17643 # expansion.
17644 for file in `sed -n "
17645 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17646 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17647 # Make sure the directory exists.
17648 test -f "$dirpart/$file" && continue
17649 fdir=`$as_dirname -- "$file" ||
17650 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17651 X"$file" : 'X\(//\)[^/]' \| \
17652 X"$file" : 'X\(//\)$' \| \
17653 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17654 $as_echo X"$file" |
17655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17656 s//\1/
17657 q
17658 }
17659 /^X\(\/\/\)[^/].*/{
17660 s//\1/
17661 q
17662 }
17663 /^X\(\/\/\)$/{
17664 s//\1/
17665 q
17666 }
17667 /^X\(\/\).*/{
17668 s//\1/
17669 q
17670 }
17671 s/.*/./; q'`
17672 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17673 # echo "creating $dirpart/$file"
17674 echo '# dummy' > "$dirpart/$file"
17675 done
17676 done
17677 }
17678 ;;
17679 "default":C)
17680 case x$CONFIG_HEADERS in
17681 xconfig.h:config.in)
17682 echo > stamp-h ;;
17683 esac
17684 ;;
17685
17686 esac
17687 done # for ac_tag
17688
17689
17690 as_fn_exit 0
17691 _ACEOF
17692 ac_clean_files=$ac_clean_files_save
17693
17694 test $ac_write_fail = 0 ||
17695 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17696
17697
17698 # configure is writing to config.log, and then calls config.status.
17699 # config.status does its own redirection, appending to config.log.
17700 # Unfortunately, on DOS this fails, as config.log is still kept open
17701 # by configure, so config.status won't be able to write to it; its
17702 # output is simply discarded. So we exec the FD to /dev/null,
17703 # effectively closing config.log, so it can be properly (re)opened and
17704 # appended to by config.status. When coming back to configure, we
17705 # need to make the FD available again.
17706 if test "$no_create" != yes; then
17707 ac_cs_success=:
17708 ac_config_status_args=
17709 test "$silent" = yes &&
17710 ac_config_status_args="$ac_config_status_args --quiet"
17711 exec 5>/dev/null
17712 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17713 exec 5>>config.log
17714 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17715 # would make configure fail if this is the last instruction.
17716 $ac_cs_success || as_fn_exit $?
17717 fi
17718
17719 #
17720 # CONFIG_SUBDIRS section.
17721 #
17722 if test "$no_recursion" != yes; then
17723
17724 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17725 # so they do not pile up.
17726 ac_sub_configure_args=
17727 ac_prev=
17728 eval "set x $ac_configure_args"
17729 shift
17730 for ac_arg
17731 do
17732 if test -n "$ac_prev"; then
17733 ac_prev=
17734 continue
17735 fi
17736 case $ac_arg in
17737 -cache-file | --cache-file | --cache-fil | --cache-fi \
17738 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17739 ac_prev=cache_file ;;
17740 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17741 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17742 | --c=*)
17743 ;;
17744 --config-cache | -C)
17745 ;;
17746 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17747 ac_prev=srcdir ;;
17748 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17749 ;;
17750 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17751 ac_prev=prefix ;;
17752 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17753 ;;
17754 --disable-option-checking)
17755 ;;
17756 *)
17757 case $ac_arg in
17758 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17759 esac
17760 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17761 esac
17762 done
17763
17764 # Always prepend --prefix to ensure using the same prefix
17765 # in subdir configurations.
17766 ac_arg="--prefix=$prefix"
17767 case $ac_arg in
17768 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17769 esac
17770 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17771
17772 # Pass --silent
17773 if test "$silent" = yes; then
17774 ac_sub_configure_args="--silent $ac_sub_configure_args"
17775 fi
17776
17777 # Always prepend --disable-option-checking to silence warnings, since
17778 # different subdirs can have different --enable and --with options.
17779 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17780
17781 ac_popdir=`pwd`
17782 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17783
17784 # Do not complain, so a configure script can configure whichever
17785 # parts of a large source tree are present.
17786 test -d "$srcdir/$ac_dir" || continue
17787
17788 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17789 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17790 $as_echo "$ac_msg" >&6
17791 as_dir="$ac_dir"; as_fn_mkdir_p
17792 ac_builddir=.
17793
17794 case "$ac_dir" in
17795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17796 *)
17797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17798 # A ".." for each directory in $ac_dir_suffix.
17799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17800 case $ac_top_builddir_sub in
17801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17803 esac ;;
17804 esac
17805 ac_abs_top_builddir=$ac_pwd
17806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17807 # for backward compatibility:
17808 ac_top_builddir=$ac_top_build_prefix
17809
17810 case $srcdir in
17811 .) # We are building in place.
17812 ac_srcdir=.
17813 ac_top_srcdir=$ac_top_builddir_sub
17814 ac_abs_top_srcdir=$ac_pwd ;;
17815 [\\/]* | ?:[\\/]* ) # Absolute name.
17816 ac_srcdir=$srcdir$ac_dir_suffix;
17817 ac_top_srcdir=$srcdir
17818 ac_abs_top_srcdir=$srcdir ;;
17819 *) # Relative name.
17820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17821 ac_top_srcdir=$ac_top_build_prefix$srcdir
17822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17823 esac
17824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17825
17826
17827 cd "$ac_dir"
17828
17829 # Check for guested configure; otherwise get Cygnus style configure.
17830 if test -f "$ac_srcdir/configure.gnu"; then
17831 ac_sub_configure=$ac_srcdir/configure.gnu
17832 elif test -f "$ac_srcdir/configure"; then
17833 ac_sub_configure=$ac_srcdir/configure
17834 elif test -f "$ac_srcdir/configure.in"; then
17835 # This should be Cygnus configure.
17836 ac_sub_configure=$ac_aux_dir/configure
17837 else
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17839 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17840 ac_sub_configure=
17841 fi
17842
17843 # The recursion is here.
17844 if test -n "$ac_sub_configure"; then
17845 # Make the cache file name correct relative to the subdirectory.
17846 case $cache_file in
17847 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17848 *) # Relative name.
17849 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17850 esac
17851
17852 { $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
17853 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17854 # The eval makes quoting arguments work.
17855 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17856 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17857 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17858 fi
17859
17860 cd "$ac_popdir"
17861 done
17862 fi
17863 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17865 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17866 fi
17867
17868
17869 exit 0
This page took 0.92609 seconds and 4 git commands to generate.