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 enable_option_checking=no
592 ac_subst_vars='LTLIBOBJS
593 LIBOBJS
594 GDB_NM_FILE
595 frags
596 target_subdir
597 CONFIG_UNINSTALL
598 CONFIG_INSTALL
599 CONFIG_CLEAN
600 CONFIG_ALL
601 CONFIG_SRCS
602 CONFIG_DEPS
603 CONFIG_OBS
604 PROFILE_CFLAGS
605 ENABLE_CFLAGS
606 SIM_OBS
607 SIM
608 XMKMF
609 GDBTK_SRC_DIR
610 GDBTK_CFLAGS
611 GDBTKLIBS
612 X_LIBS
613 X_LDFLAGS
614 X_CFLAGS
615 TK_XINCLUDES
616 TK_DEPS
617 TK_LIBRARY
618 TK_INCLUDE
619 TK_STUB_LIB_SPEC
620 TK_STUB_LIB_FLAG
621 TK_STUB_LIB_FILE
622 TK_LIB_SPEC
623 TK_LIB_FLAG
624 TK_LIB_FILE
625 TK_SRC_DIR
626 TK_BIN_DIR
627 TK_VERSION
628 TCL_DEPS
629 TCL_LIBRARY
630 TCL_INCLUDE
631 TCL_STUB_LIB_SPEC
632 TCL_STUB_LIB_FLAG
633 TCL_STUB_LIB_FILE
634 TCL_LIB_SPEC
635 TCL_LIB_FLAG
636 TCL_LIB_FILE
637 TCL_SRC_DIR
638 TCL_BIN_DIR
639 TCL_PATCH_LEVEL
640 TCL_VERSION
641 WIN32LDAPP
642 GUI_CFLAGS_X
643 LIBGUI
644 WIN32LIBS
645 SER_HARDWIRE
646 WERROR_CFLAGS
647 WARN_CFLAGS
648 SYSTEM_GDBINIT
649 TARGET_SYSTEM_ROOT
650 CONFIG_LDFLAGS
651 RDYNAMIC
652 ALLOCA
653 PYTHON_LIBS
654 PYTHON_CPPFLAGS
655 PYTHON_CFLAGS
656 python_prog_path
657 LTLIBEXPAT
658 LIBEXPAT
659 HAVE_LIBEXPAT
660 JIT_READER_DIR
661 TARGET_PTR
662 READLINE_TEXI_INCFLAG
663 READLINE_CFLAGS
664 READLINE_DEPS
665 READLINE
666 MIG
667 WINDRES
668 DLLTOOL
669 AR
670 YFLAGS
671 YACC
672 RANLIB
673 LN_S
674 INSTALL_DATA
675 INSTALL_SCRIPT
676 INSTALL_PROGRAM
677 AWK
678 REPORT_BUGS_TEXI
679 REPORT_BUGS_TO
680 PKGVERSION
681 TARGET_OBS
682 subdirs
683 GDB_DATADIR
684 DEBUGDIR
685 MAKEINFO_EXTRA_FLAGS
686 MAKEINFOFLAGS
687 MAKEINFO
688 PACKAGE
689 GNULIB_STDINT_H
690 CATOBJEXT
691 GENCAT
692 INSTOBJEXT
693 DATADIRNAME
694 CATALOGS
695 POSUB
696 GMSGFMT
697 XGETTEXT
698 INCINTL
699 LIBINTL_DEP
700 LIBINTL
701 USE_NLS
702 SET_MAKE
703 GMAKE_FALSE
704 GMAKE_TRUE
705 MAKE
706 CCDEPMODE
707 DEPDIR
708 am__leading_dot
709 target_os
710 target_vendor
711 target_cpu
712 target
713 host_os
714 host_vendor
715 host_cpu
716 host
717 build_os
718 build_vendor
719 build_cpu
720 build
721 EGREP
722 GREP
723 CPP
724 OBJEXT
725 EXEEXT
726 ac_ct_CC
727 CPPFLAGS
728 LDFLAGS
729 CFLAGS
730 CC
731 MAINT
732 MAINTAINER_MODE_FALSE
733 MAINTAINER_MODE_TRUE
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files='host_makefile_frag'
773 ac_user_opts='
774 enable_option_checking
775 enable_maintainer_mode
776 enable_plugins
777 enable_largefile
778 with_separate_debug_dir
779 with_gdb_datadir
780 with_relocated_sources
781 with_auto_load_dir
782 with_auto_load_safe_path
783 enable_targets
784 enable_64_bit_bfd
785 enable_gdbcli
786 enable_gdbmi
787 enable_tui
788 enable_gdbtk
789 with_libunwind_ia64
790 with_curses
791 enable_profiling
792 with_pkgversion
793 with_bugurl
794 with_zlib
795 with_libiconv_prefix
796 with_iconv_bin
797 with_system_readline
798 with_jit_reader_dir
799 with_expat
800 with_gnu_ld
801 enable_rpath
802 with_libexpat_prefix
803 with_python
804 with_included_regex
805 with_sysroot
806 with_system_gdbinit
807 enable_werror
808 enable_build_warnings
809 enable_gdb_build_warnings
810 with_tcl
811 with_tk
812 with_x
813 enable_sim
814 enable_multi_ice
815 enable_gdbserver
816 '
817 ac_precious_vars='build_alias
818 host_alias
819 target_alias
820 CC
821 CFLAGS
822 LDFLAGS
823 LIBS
824 CPPFLAGS
825 CPP
826 MAKEINFO
827 MAKEINFOFLAGS
828 YACC
829 YFLAGS
830 XMKMF'
831 ac_subdirs_all='testsuite
832 gdbtk
833 multi-ice
834 gdbserver'
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
893 fi
894
895 case $ac_option in
896 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *) ac_optarg=yes ;;
898 esac
899
900 # Accept the important Cygnus configure options, so we can diagnose typos.
901
902 case $ac_dashdash$ac_option in
903 --)
904 ac_dashdash=yes ;;
905
906 -bindir | --bindir | --bindi | --bind | --bin | --bi)
907 ac_prev=bindir ;;
908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
909 bindir=$ac_optarg ;;
910
911 -build | --build | --buil | --bui | --bu)
912 ac_prev=build_alias ;;
913 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
914 build_alias=$ac_optarg ;;
915
916 -cache-file | --cache-file | --cache-fil | --cache-fi \
917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
918 ac_prev=cache_file ;;
919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
921 cache_file=$ac_optarg ;;
922
923 --config-cache | -C)
924 cache_file=config.cache ;;
925
926 -datadir | --datadir | --datadi | --datad)
927 ac_prev=datadir ;;
928 -datadir=* | --datadir=* | --datadi=* | --datad=*)
929 datadir=$ac_optarg ;;
930
931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
932 | --dataroo | --dataro | --datar)
933 ac_prev=datarootdir ;;
934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
936 datarootdir=$ac_optarg ;;
937
938 -disable-* | --disable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
946 *"
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=no ;;
953
954 -docdir | --docdir | --docdi | --doc | --do)
955 ac_prev=docdir ;;
956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
957 docdir=$ac_optarg ;;
958
959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
960 ac_prev=dvidir ;;
961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
962 dvidir=$ac_optarg ;;
963
964 -enable-* | --enable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=\$ac_optarg ;;
979
980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
982 | --exec | --exe | --ex)
983 ac_prev=exec_prefix ;;
984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
986 | --exec=* | --exe=* | --ex=*)
987 exec_prefix=$ac_optarg ;;
988
989 -gas | --gas | --ga | --g)
990 # Obsolete; use --with-gas.
991 with_gas=yes ;;
992
993 -help | --help | --hel | --he | -h)
994 ac_init_help=long ;;
995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
996 ac_init_help=recursive ;;
997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
998 ac_init_help=short ;;
999
1000 -host | --host | --hos | --ho)
1001 ac_prev=host_alias ;;
1002 -host=* | --host=* | --hos=* | --ho=*)
1003 host_alias=$ac_optarg ;;
1004
1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1006 ac_prev=htmldir ;;
1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1008 | --ht=*)
1009 htmldir=$ac_optarg ;;
1010
1011 -includedir | --includedir | --includedi | --included | --include \
1012 | --includ | --inclu | --incl | --inc)
1013 ac_prev=includedir ;;
1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1015 | --includ=* | --inclu=* | --incl=* | --inc=*)
1016 includedir=$ac_optarg ;;
1017
1018 -infodir | --infodir | --infodi | --infod | --info | --inf)
1019 ac_prev=infodir ;;
1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1021 infodir=$ac_optarg ;;
1022
1023 -libdir | --libdir | --libdi | --libd)
1024 ac_prev=libdir ;;
1025 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1026 libdir=$ac_optarg ;;
1027
1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1029 | --libexe | --libex | --libe)
1030 ac_prev=libexecdir ;;
1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1032 | --libexe=* | --libex=* | --libe=*)
1033 libexecdir=$ac_optarg ;;
1034
1035 -localedir | --localedir | --localedi | --localed | --locale)
1036 ac_prev=localedir ;;
1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1038 localedir=$ac_optarg ;;
1039
1040 -localstatedir | --localstatedir | --localstatedi | --localstated \
1041 | --localstate | --localstat | --localsta | --localst | --locals)
1042 ac_prev=localstatedir ;;
1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1045 localstatedir=$ac_optarg ;;
1046
1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1048 ac_prev=mandir ;;
1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1050 mandir=$ac_optarg ;;
1051
1052 -nfp | --nfp | --nf)
1053 # Obsolete; use --without-fp.
1054 with_fp=no ;;
1055
1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1057 | --no-cr | --no-c | -n)
1058 no_create=yes ;;
1059
1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1062 no_recursion=yes ;;
1063
1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1066 | --oldin | --oldi | --old | --ol | --o)
1067 ac_prev=oldincludedir ;;
1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1071 oldincludedir=$ac_optarg ;;
1072
1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1074 ac_prev=prefix ;;
1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1076 prefix=$ac_optarg ;;
1077
1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1079 | --program-pre | --program-pr | --program-p)
1080 ac_prev=program_prefix ;;
1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1083 program_prefix=$ac_optarg ;;
1084
1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1086 | --program-suf | --program-su | --program-s)
1087 ac_prev=program_suffix ;;
1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1090 program_suffix=$ac_optarg ;;
1091
1092 -program-transform-name | --program-transform-name \
1093 | --program-transform-nam | --program-transform-na \
1094 | --program-transform-n | --program-transform- \
1095 | --program-transform | --program-transfor \
1096 | --program-transfo | --program-transf \
1097 | --program-trans | --program-tran \
1098 | --progr-tra | --program-tr | --program-t)
1099 ac_prev=program_transform_name ;;
1100 -program-transform-name=* | --program-transform-name=* \
1101 | --program-transform-nam=* | --program-transform-na=* \
1102 | --program-transform-n=* | --program-transform-=* \
1103 | --program-transform=* | --program-transfor=* \
1104 | --program-transfo=* | --program-transf=* \
1105 | --program-trans=* | --program-tran=* \
1106 | --progr-tra=* | --program-tr=* | --program-t=*)
1107 program_transform_name=$ac_optarg ;;
1108
1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1110 ac_prev=pdfdir ;;
1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1112 pdfdir=$ac_optarg ;;
1113
1114 -psdir | --psdir | --psdi | --psd | --ps)
1115 ac_prev=psdir ;;
1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1117 psdir=$ac_optarg ;;
1118
1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1120 | -silent | --silent | --silen | --sile | --sil)
1121 silent=yes ;;
1122
1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1124 ac_prev=sbindir ;;
1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1126 | --sbi=* | --sb=*)
1127 sbindir=$ac_optarg ;;
1128
1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1131 | --sharedst | --shareds | --shared | --share | --shar \
1132 | --sha | --sh)
1133 ac_prev=sharedstatedir ;;
1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1137 | --sha=* | --sh=*)
1138 sharedstatedir=$ac_optarg ;;
1139
1140 -site | --site | --sit)
1141 ac_prev=site ;;
1142 -site=* | --site=* | --sit=*)
1143 site=$ac_optarg ;;
1144
1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1146 ac_prev=srcdir ;;
1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1148 srcdir=$ac_optarg ;;
1149
1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1151 | --syscon | --sysco | --sysc | --sys | --sy)
1152 ac_prev=sysconfdir ;;
1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1155 sysconfdir=$ac_optarg ;;
1156
1157 -target | --target | --targe | --targ | --tar | --ta | --t)
1158 ac_prev=target_alias ;;
1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1160 target_alias=$ac_optarg ;;
1161
1162 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1163 verbose=yes ;;
1164
1165 -version | --version | --versio | --versi | --vers | -V)
1166 ac_init_version=: ;;
1167
1168 -with-* | --with-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error "invalid package name: $ac_useropt"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=\$ac_optarg ;;
1183
1184 -without-* | --without-*)
1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186 # Reject names that are not valid shell variable names.
1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1188 as_fn_error "invalid package name: $ac_useropt"
1189 ac_useropt_orig=$ac_useropt
1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1191 case $ac_user_opts in
1192 *"
1193 "with_$ac_useropt"
1194 "*) ;;
1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1196 ac_unrecognized_sep=', ';;
1197 esac
1198 eval with_$ac_useropt=no ;;
1199
1200 --x)
1201 # Obsolete; use --with-x.
1202 with_x=yes ;;
1203
1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1205 | --x-incl | --x-inc | --x-in | --x-i)
1206 ac_prev=x_includes ;;
1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1209 x_includes=$ac_optarg ;;
1210
1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1213 ac_prev=x_libraries ;;
1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1216 x_libraries=$ac_optarg ;;
1217
1218 -*) as_fn_error "unrecognized option: \`$ac_option'
1219 Try \`$0 --help' for more information."
1220 ;;
1221
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 case $ac_envvar in #(
1226 '' | [0-9]* | *[!_$as_cr_alnum]* )
1227 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1228 esac
1229 eval $ac_envvar=\$ac_optarg
1230 export $ac_envvar ;;
1231
1232 *)
1233 # FIXME: should be removed in autoconf 3.0.
1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1237 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1238 ;;
1239
1240 esac
1241 done
1242
1243 if test -n "$ac_prev"; then
1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1245 as_fn_error "missing argument to $ac_option"
1246 fi
1247
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1253 esac
1254 fi
1255
1256 # Check all directory arguments for consistency.
1257 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1258 datadir sysconfdir sharedstatedir localstatedir includedir \
1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1260 libdir localedir mandir
1261 do
1262 eval ac_val=\$$ac_var
1263 # Remove trailing slashes.
1264 case $ac_val in
1265 */ )
1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1267 eval $ac_var=\$ac_val;;
1268 esac
1269 # Be sure to have absolute directory names.
1270 case $ac_val in
1271 [\\/$]* | ?:[\\/]* ) continue;;
1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273 esac
1274 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286 if test "x$build_alias" = x; then
1287 cross_compiling=maybe
1288 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289 If a cross compiler is detected then cross compile mode will be used." >&2
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures this package to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 X features:
1438 --x-includes=DIR X include files are in DIR
1439 --x-libraries=DIR X library files are in DIR
1440
1441 System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449
1450 cat <<\_ACEOF
1451
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --enable-maintainer-mode enable make rules and dependencies not useful
1457 (and sometimes confusing) to the casual installer
1458 --enable-plugins Enable support for plugins (defaults no)
1459 --disable-largefile omit support for large files
1460 --enable-targets=TARGETS
1461 alternative target configurations
1462 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1463 --disable-gdbcli disable command-line interface (CLI)
1464 --disable-gdbmi disable machine-interface (MI)
1465 --enable-tui enable full-screen terminal user interface (TUI)
1466 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1467 --enable-profiling enable profiling of GDB
1468 --disable-rpath do not hardcode runtime library paths
1469 --enable-werror treat compile warnings as errors
1470 --enable-build-warnings enable build-time compiler warnings if gcc is used
1471 --enable-gdb-build-warnings
1472 enable GDB specific build-time compiler warnings if
1473 gcc is used
1474 --enable-sim link gdb with simulator
1475 --enable-multi-ice build the multi-ice-gdb-server
1476 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1477 is auto)
1478
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-separate-debug-dir=PATH
1483 look for global separate debug info in this path
1484 [LIBDIR/debug]
1485 --with-gdb-datadir=PATH look for global separate data files in this path
1486 [DATADIR/gdb]
1487 --with-relocated-sources=PATH
1488 automatically relocate this path for source files
1489 --with-auto-load-dir=PATH
1490 directories from which to load auto-loaded scripts
1491 [$debugdir:$datadir/auto-load]
1492 --with-auto-load-safe-path=PATH
1493 directories safe to hold auto-loaded files
1494 [--with-auto-load-dir]
1495 --without-auto-load-safe-path
1496 do not restrict auto-loaded files locations
1497 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1498 --with-curses use the curses library instead of the termcap
1499 library
1500 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1501 --with-bugurl=URL Direct users to URL to report a bug
1502 --with-zlib include zlib support (auto/yes/no) default=auto
1503 --with-libiconv-prefix=DIR
1504 search for libiconv in DIR/include and DIR/lib
1505 --with-iconv-bin=PATH specify where to find the iconv program
1506 --with-system-readline use installed readline library
1507 --with-jit-reader-dir=PATH
1508 directory to load the JIT readers from
1509 --with-expat include expat support (auto/yes/no)
1510 --with-gnu-ld assume the C compiler uses GNU ld default=no
1511 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1512 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1513 --with-python[=PYTHON] include python support
1514 (auto/yes/no/<python-program>)
1515 --without-included-regex
1516 don't use included regex; this is the default on
1517 systems with version 2 of the GNU C library (use
1518 with caution on other system)
1519 --with-sysroot[=DIR] search for usr/lib et al within DIR
1520 --with-system-gdbinit=PATH
1521 automatically load a system-wide gdbinit file
1522 --with-tcl directory containing tcl configuration (tclConfig.sh)
1523 --with-tk directory containing tk configuration (tkConfig.sh)
1524 --with-x use the X Window System
1525
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1534 CPP C preprocessor
1535 MAKEINFO Parent configure detects if it is of sufficient version.
1536 MAKEINFOFLAGS
1537 Parameters for MAKEINFO.
1538 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1539 the first program found out of: `bison -y', `byacc', `yacc'.
1540 YFLAGS The list of arguments that will be passed by default to $YACC.
1541 This script will default YFLAGS to the empty string to avoid a
1542 default value of `-d' given by some make applications.
1543 XMKMF Path to xmkmf, Makefile generator for X Window System
1544
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1547
1548 Report bugs to the package provider.
1549 _ACEOF
1550 ac_status=$?
1551 fi
1552
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
1559 ac_builddir=.
1560
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *)
1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1576
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1592
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1606 fi
1607
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 configure
1612 generated by GNU Autoconf 2.64
1613
1614 Copyright (C) 2009 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1619 fi
1620
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1624
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657 fi
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 return $ac_retval
1660
1661 } # ac_fn_c_try_compile
1662
1663 # ac_fn_c_try_cpp LINENO
1664 # ----------------------
1665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_cpp ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } >/dev/null && {
1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694 fi
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 return $ac_retval
1697
1698 } # ac_fn_c_try_cpp
1699
1700 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1703 # the include files in INCLUDES and setting the cache variable VAR
1704 # accordingly.
1705 ac_fn_c_check_header_mongrel ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1712 $as_echo_n "(cached) " >&6
1713 fi
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 else
1718 # Is the header compilable?
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1720 $as_echo_n "checking $2 usability... " >&6; }
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 $4
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 ac_header_compiler=yes
1728 else
1729 ac_header_compiler=no
1730 fi
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1733 $as_echo "$ac_header_compiler" >&6; }
1734
1735 # Is the header present?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1737 $as_echo_n "checking $2 presence... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_cpp "$LINENO"; then :
1743 ac_header_preproc=yes
1744 else
1745 ac_header_preproc=no
1746 fi
1747 rm -f conftest.err conftest.$ac_ext
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1749 $as_echo "$ac_header_preproc" >&6; }
1750
1751 # So? What about this header?
1752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1753 yes:no: )
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1755 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1758 ;;
1759 no:yes:* )
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1761 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1763 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1765 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1767 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 ;;
1771 esac
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 eval "$3=\$ac_header_compiler"
1778 fi
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1782 fi
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784
1785 } # ac_fn_c_check_header_mongrel
1786
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1791 ac_fn_c_try_run ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805 { { case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_try") 2>&5
1812 ac_status=$?
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; }; }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: program exited with status $ac_status" >&5
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1820
1821 ac_retval=$ac_status
1822 fi
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 return $ac_retval
1826
1827 } # ac_fn_c_try_run
1828
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1834 {
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 $4
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 fi
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1857
1858 } # ac_fn_c_check_header_compile
1859
1860 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1861 # --------------------------------------------
1862 # Tries to find the compile-time value of EXPR in a program that includes
1863 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1864 # computed
1865 ac_fn_c_compute_int ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 if test "$cross_compiling" = yes; then
1869 # Depending upon the size, compute the lo and hi bounds.
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 int
1874 main ()
1875 {
1876 static int test_array [1 - 2 * !(($2) >= 0)];
1877 test_array [0] = 0
1878
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 if ac_fn_c_try_compile "$LINENO"; then :
1884 ac_lo=0 ac_mid=0
1885 while :; do
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1888 $4
1889 int
1890 main ()
1891 {
1892 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1893 test_array [0] = 0
1894
1895 ;
1896 return 0;
1897 }
1898 _ACEOF
1899 if ac_fn_c_try_compile "$LINENO"; then :
1900 ac_hi=$ac_mid; break
1901 else
1902 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1903 if test $ac_lo -le $ac_mid; then
1904 ac_lo= ac_hi=
1905 break
1906 fi
1907 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 done
1911 else
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1914 $4
1915 int
1916 main ()
1917 {
1918 static int test_array [1 - 2 * !(($2) < 0)];
1919 test_array [0] = 0
1920
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_hi=-1 ac_mid=-1
1927 while :; do
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1930 $4
1931 int
1932 main ()
1933 {
1934 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1935 test_array [0] = 0
1936
1937 ;
1938 return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_lo=$ac_mid; break
1943 else
1944 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1945 if test $ac_mid -le $ac_hi; then
1946 ac_lo= ac_hi=
1947 break
1948 fi
1949 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 done
1953 else
1954 ac_lo= ac_hi=
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 # Binary search between lo and hi bounds.
1960 while test "x$ac_lo" != "x$ac_hi"; do
1961 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1964 $4
1965 int
1966 main ()
1967 {
1968 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1969 test_array [0] = 0
1970
1971 ;
1972 return 0;
1973 }
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_hi=$ac_mid
1977 else
1978 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 done
1982 case $ac_lo in #((
1983 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1984 '') ac_retval=1 ;;
1985 esac
1986 else
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $4
1990 static long int longval () { return $2; }
1991 static unsigned long int ulongval () { return $2; }
1992 #include <stdio.h>
1993 #include <stdlib.h>
1994 int
1995 main ()
1996 {
1997
1998 FILE *f = fopen ("conftest.val", "w");
1999 if (! f)
2000 return 1;
2001 if (($2) < 0)
2002 {
2003 long int i = longval ();
2004 if (i != ($2))
2005 return 1;
2006 fprintf (f, "%ld", i);
2007 }
2008 else
2009 {
2010 unsigned long int i = ulongval ();
2011 if (i != ($2))
2012 return 1;
2013 fprintf (f, "%lu", i);
2014 }
2015 /* Do not output a trailing newline, as this causes \r\n confusion
2016 on some platforms. */
2017 return ferror (f) || fclose (f) != 0;
2018
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_run "$LINENO"; then :
2024 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2025 else
2026 ac_retval=1
2027 fi
2028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2029 conftest.$ac_objext conftest.beam conftest.$ac_ext
2030 rm -f conftest.val
2031
2032 fi
2033 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034 return $ac_retval
2035
2036 } # ac_fn_c_compute_int
2037
2038 # ac_fn_c_try_link LINENO
2039 # -----------------------
2040 # Try to link conftest.$ac_ext, and return whether this succeeded.
2041 ac_fn_c_try_link ()
2042 {
2043 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044 rm -f conftest.$ac_objext conftest$ac_exeext
2045 if { { ac_try="$ac_link"
2046 case "(($ac_try" in
2047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048 *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052 (eval "$ac_link") 2>conftest.err
2053 ac_status=$?
2054 if test -s conftest.err; then
2055 grep -v '^ *+' conftest.err >conftest.er1
2056 cat conftest.er1 >&5
2057 mv -f conftest.er1 conftest.err
2058 fi
2059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060 test $ac_status = 0; } && {
2061 test -z "$ac_c_werror_flag" ||
2062 test ! -s conftest.err
2063 } && test -s conftest$ac_exeext && {
2064 test "$cross_compiling" = yes ||
2065 $as_test_x conftest$ac_exeext
2066 }; then :
2067 ac_retval=0
2068 else
2069 $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072 ac_retval=1
2073 fi
2074 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2075 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2076 # interfere with the next link command; also delete a directory that is
2077 # left behind by Apple's compiler. We do this before executing the actions.
2078 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080 return $ac_retval
2081
2082 } # ac_fn_c_try_link
2083
2084 # ac_fn_c_check_func LINENO FUNC VAR
2085 # ----------------------------------
2086 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2087 ac_fn_c_check_func ()
2088 {
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2093 $as_echo_n "(cached) " >&6
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2099 #define $2 innocuous_$2
2100
2101 /* System header to define __stub macros and hopefully few prototypes,
2102 which can conflict with char $2 (); below.
2103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2104 <limits.h> exists even on freestanding compilers. */
2105
2106 #ifdef __STDC__
2107 # include <limits.h>
2108 #else
2109 # include <assert.h>
2110 #endif
2111
2112 #undef $2
2113
2114 /* Override any GCC internal prototype to avoid an error.
2115 Use char because int might match the return type of a GCC
2116 builtin and then its argument prototype would still apply. */
2117 #ifdef __cplusplus
2118 extern "C"
2119 #endif
2120 char $2 ();
2121 /* The GNU C library defines this for functions which it implements
2122 to always fail with ENOSYS. Some functions are actually named
2123 something starting with __ and the normal name is an alias. */
2124 #if defined __stub_$2 || defined __stub___$2
2125 choke me
2126 #endif
2127
2128 int
2129 main ()
2130 {
2131 return $2 ();
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_link "$LINENO"; then :
2137 eval "$3=yes"
2138 else
2139 eval "$3=no"
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext \
2142 conftest$ac_exeext conftest.$ac_ext
2143 fi
2144 eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2148
2149 } # ac_fn_c_check_func
2150
2151 # ac_fn_c_check_decl LINENO SYMBOL VAR
2152 # ------------------------------------
2153 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2154 ac_fn_c_check_decl ()
2155 {
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 as_decl_name=`echo $2|sed 's/ *(.*//'`
2158 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2160 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2161 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 $4
2167 int
2168 main ()
2169 {
2170 #ifndef $as_decl_name
2171 #ifdef __cplusplus
2172 (void) $as_decl_use;
2173 #else
2174 (void) $as_decl_name;
2175 #endif
2176 #endif
2177
2178 ;
2179 return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183 eval "$3=yes"
2184 else
2185 eval "$3=no"
2186 fi
2187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188 fi
2189 eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2193
2194 } # ac_fn_c_check_decl
2195
2196 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2197 # ----------------------------------------------------
2198 # Tries to find if the field MEMBER exists in type AGGR, after including
2199 # INCLUDES, setting cache variable VAR accordingly.
2200 ac_fn_c_check_member ()
2201 {
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2204 $as_echo_n "checking for $2.$3... " >&6; }
2205 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 $5
2211 int
2212 main ()
2213 {
2214 static $2 ac_aggr;
2215 if (ac_aggr.$3)
2216 return 0;
2217 ;
2218 return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 eval "$4=yes"
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $5
2227 int
2228 main ()
2229 {
2230 static $2 ac_aggr;
2231 if (sizeof ac_aggr.$3)
2232 return 0;
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 eval "$4=yes"
2239 else
2240 eval "$4=no"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 eval ac_res=\$$4
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250
2251 } # ac_fn_c_check_member
2252
2253 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2254 # -------------------------------------------
2255 # Tests whether TYPE exists after having included INCLUDES, setting cache
2256 # variable VAR accordingly.
2257 ac_fn_c_check_type ()
2258 {
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 eval "$3=no"
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2268 $4
2269 int
2270 main ()
2271 {
2272 if (sizeof ($2))
2273 return 0;
2274 ;
2275 return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2281 $4
2282 int
2283 main ()
2284 {
2285 if (sizeof (($2)))
2286 return 0;
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_compile "$LINENO"; then :
2292
2293 else
2294 eval "$3=yes"
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 fi
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 fi
2300 eval ac_res=\$$3
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2302 $as_echo "$ac_res" >&6; }
2303 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2304
2305 } # ac_fn_c_check_type
2306 cat >config.log <<_ACEOF
2307 This file contains any messages produced by compilers while
2308 running configure, to aid debugging if configure makes a mistake.
2309
2310 It was created by $as_me, which was
2311 generated by GNU Autoconf 2.64. Invocation command line was
2312
2313 $ $0 $@
2314
2315 _ACEOF
2316 exec 5>>config.log
2317 {
2318 cat <<_ASUNAME
2319 ## --------- ##
2320 ## Platform. ##
2321 ## --------- ##
2322
2323 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2324 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2325 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2326 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2327 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2328
2329 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2330 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2331
2332 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2333 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2334 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2335 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2336 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2337 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2338 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2339
2340 _ASUNAME
2341
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 $as_echo "PATH: $as_dir"
2348 done
2349 IFS=$as_save_IFS
2350
2351 } >&5
2352
2353 cat >&5 <<_ACEOF
2354
2355
2356 ## ----------- ##
2357 ## Core tests. ##
2358 ## ----------- ##
2359
2360 _ACEOF
2361
2362
2363 # Keep a trace of the command line.
2364 # Strip out --no-create and --no-recursion so they do not pile up.
2365 # Strip out --silent because we don't want to record it for future runs.
2366 # Also quote any args containing shell meta-characters.
2367 # Make two passes to allow for proper duplicate-argument suppression.
2368 ac_configure_args=
2369 ac_configure_args0=
2370 ac_configure_args1=
2371 ac_must_keep_next=false
2372 for ac_pass in 1 2
2373 do
2374 for ac_arg
2375 do
2376 case $ac_arg in
2377 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2379 | -silent | --silent | --silen | --sile | --sil)
2380 continue ;;
2381 *\'*)
2382 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2383 esac
2384 case $ac_pass in
2385 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2386 2)
2387 as_fn_append ac_configure_args1 " '$ac_arg'"
2388 if test $ac_must_keep_next = true; then
2389 ac_must_keep_next=false # Got value, back to normal.
2390 else
2391 case $ac_arg in
2392 *=* | --config-cache | -C | -disable-* | --disable-* \
2393 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2394 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2395 | -with-* | --with-* | -without-* | --without-* | --x)
2396 case "$ac_configure_args0 " in
2397 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2398 esac
2399 ;;
2400 -* ) ac_must_keep_next=true ;;
2401 esac
2402 fi
2403 as_fn_append ac_configure_args " '$ac_arg'"
2404 ;;
2405 esac
2406 done
2407 done
2408 { ac_configure_args0=; unset ac_configure_args0;}
2409 { ac_configure_args1=; unset ac_configure_args1;}
2410
2411 # When interrupted or exit'd, cleanup temporary files, and complete
2412 # config.log. We remove comments because anyway the quotes in there
2413 # would cause problems or look ugly.
2414 # WARNING: Use '\'' to represent an apostrophe within the trap.
2415 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2416 trap 'exit_status=$?
2417 # Save into config.log some information that might help in debugging.
2418 {
2419 echo
2420
2421 cat <<\_ASBOX
2422 ## ---------------- ##
2423 ## Cache variables. ##
2424 ## ---------------- ##
2425 _ASBOX
2426 echo
2427 # The following way of writing the cache mishandles newlines in values,
2428 (
2429 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2430 eval ac_val=\$$ac_var
2431 case $ac_val in #(
2432 *${as_nl}*)
2433 case $ac_var in #(
2434 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2435 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2436 esac
2437 case $ac_var in #(
2438 _ | IFS | as_nl) ;; #(
2439 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2440 *) { eval $ac_var=; unset $ac_var;} ;;
2441 esac ;;
2442 esac
2443 done
2444 (set) 2>&1 |
2445 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2446 *${as_nl}ac_space=\ *)
2447 sed -n \
2448 "s/'\''/'\''\\\\'\'''\''/g;
2449 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2450 ;; #(
2451 *)
2452 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2453 ;;
2454 esac |
2455 sort
2456 )
2457 echo
2458
2459 cat <<\_ASBOX
2460 ## ----------------- ##
2461 ## Output variables. ##
2462 ## ----------------- ##
2463 _ASBOX
2464 echo
2465 for ac_var in $ac_subst_vars
2466 do
2467 eval ac_val=\$$ac_var
2468 case $ac_val in
2469 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2470 esac
2471 $as_echo "$ac_var='\''$ac_val'\''"
2472 done | sort
2473 echo
2474
2475 if test -n "$ac_subst_files"; then
2476 cat <<\_ASBOX
2477 ## ------------------- ##
2478 ## File substitutions. ##
2479 ## ------------------- ##
2480 _ASBOX
2481 echo
2482 for ac_var in $ac_subst_files
2483 do
2484 eval ac_val=\$$ac_var
2485 case $ac_val in
2486 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2487 esac
2488 $as_echo "$ac_var='\''$ac_val'\''"
2489 done | sort
2490 echo
2491 fi
2492
2493 if test -s confdefs.h; then
2494 cat <<\_ASBOX
2495 ## ----------- ##
2496 ## confdefs.h. ##
2497 ## ----------- ##
2498 _ASBOX
2499 echo
2500 cat confdefs.h
2501 echo
2502 fi
2503 test "$ac_signal" != 0 &&
2504 $as_echo "$as_me: caught signal $ac_signal"
2505 $as_echo "$as_me: exit $exit_status"
2506 } >&5
2507 rm -f core *.core core.conftest.* &&
2508 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2509 exit $exit_status
2510 ' 0
2511 for ac_signal in 1 2 13 15; do
2512 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2513 done
2514 ac_signal=0
2515
2516 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2517 rm -f -r conftest* confdefs.h
2518
2519 $as_echo "/* confdefs.h */" > confdefs.h
2520
2521 # Predefined preprocessor variables.
2522
2523 cat >>confdefs.h <<_ACEOF
2524 #define PACKAGE_NAME "$PACKAGE_NAME"
2525 _ACEOF
2526
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2529 _ACEOF
2530
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2533 _ACEOF
2534
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_STRING "$PACKAGE_STRING"
2537 _ACEOF
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2541 _ACEOF
2542
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_URL "$PACKAGE_URL"
2545 _ACEOF
2546
2547
2548 # Let the site file select an alternate cache file if it wants to.
2549 # Prefer an explicitly selected file to automatically selected ones.
2550 ac_site_file1=NONE
2551 ac_site_file2=NONE
2552 if test -n "$CONFIG_SITE"; then
2553 ac_site_file1=$CONFIG_SITE
2554 elif test "x$prefix" != xNONE; then
2555 ac_site_file1=$prefix/share/config.site
2556 ac_site_file2=$prefix/etc/config.site
2557 else
2558 ac_site_file1=$ac_default_prefix/share/config.site
2559 ac_site_file2=$ac_default_prefix/etc/config.site
2560 fi
2561 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2562 do
2563 test "x$ac_site_file" = xNONE && continue
2564 if test -r "$ac_site_file"; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2566 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2567 sed 's/^/| /' "$ac_site_file" >&5
2568 . "$ac_site_file"
2569 fi
2570 done
2571
2572 if test -r "$cache_file"; then
2573 # Some versions of bash will fail to source /dev/null (special
2574 # files actually), so we avoid doing that.
2575 if test -f "$cache_file"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2577 $as_echo "$as_me: loading cache $cache_file" >&6;}
2578 case $cache_file in
2579 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2580 *) . "./$cache_file";;
2581 esac
2582 fi
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2585 $as_echo "$as_me: creating cache $cache_file" >&6;}
2586 >$cache_file
2587 fi
2588
2589 # Check that the precious variables saved in the cache have kept the same
2590 # value.
2591 ac_cache_corrupted=false
2592 for ac_var in $ac_precious_vars; do
2593 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594 eval ac_new_set=\$ac_env_${ac_var}_set
2595 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596 eval ac_new_val=\$ac_env_${ac_var}_value
2597 case $ac_old_set,$ac_new_set in
2598 set,)
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,set)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2606 ,);;
2607 *)
2608 if test "x$ac_old_val" != "x$ac_new_val"; then
2609 # differences in whitespace do not lead to failure.
2610 ac_old_val_w=`echo x $ac_old_val`
2611 ac_new_val_w=`echo x $ac_new_val`
2612 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615 ac_cache_corrupted=:
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619 eval $ac_var=\$ac_old_val
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2625 fi;;
2626 esac
2627 # Pass precious variables to config.status.
2628 if test "$ac_new_set" = set; then
2629 case $ac_new_val in
2630 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2631 *) ac_arg=$ac_var=$ac_new_val ;;
2632 esac
2633 case " $ac_configure_args " in
2634 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2635 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2636 esac
2637 fi
2638 done
2639 if $ac_cache_corrupted; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2644 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2645 fi
2646 ## -------------------- ##
2647 ## Main body of script. ##
2648 ## -------------------- ##
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656
2657
2658
2659
2660 ac_config_headers="$ac_config_headers config.h:config.in"
2661
2662
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2664 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2665 # Check whether --enable-maintainer-mode was given.
2666 if test "${enable_maintainer_mode+set}" = set; then :
2667 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2668 else
2669 USE_MAINTAINER_MODE=no
2670 fi
2671
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2673 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2674 if test $USE_MAINTAINER_MODE = yes; then
2675 MAINTAINER_MODE_TRUE=
2676 MAINTAINER_MODE_FALSE='#'
2677 else
2678 MAINTAINER_MODE_TRUE='#'
2679 MAINTAINER_MODE_FALSE=
2680 fi
2681
2682 MAINT=$MAINTAINER_MODE_TRUE
2683
2684
2685
2686 ac_ext=c
2687 ac_cpp='$CPP $CPPFLAGS'
2688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if test "${ac_cv_prog_CC+set}" = set; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$CC"; then
2700 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 CC=$ac_cv_prog_CC
2720 if test -n "$CC"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2722 $as_echo "$CC" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 fi
2730 if test -z "$ac_cv_prog_CC"; then
2731 ac_ct_CC=$CC
2732 # Extract the first word of "gcc", so it can be a program name with args.
2733 set dummy gcc; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$ac_ct_CC"; then
2740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2749 ac_cv_prog_ac_ct_CC="gcc"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2760 if test -n "$ac_ct_CC"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2762 $as_echo "$ac_ct_CC" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768 if test "x$ac_ct_CC" = x; then
2769 CC=""
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772 yes:)
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775 ac_tool_warned=yes ;;
2776 esac
2777 CC=$ac_ct_CC
2778 fi
2779 else
2780 CC="$ac_cv_prog_CC"
2781 fi
2782
2783 if test -z "$CC"; then
2784 if test -n "$ac_tool_prefix"; then
2785 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2786 set dummy ${ac_tool_prefix}cc; ac_word=$2
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if test "${ac_cv_prog_CC+set}" = set; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2794 else
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 for as_dir in $PATH
2797 do
2798 IFS=$as_save_IFS
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CC="${ac_tool_prefix}cc"
2803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2804 break 2
2805 fi
2806 done
2807 done
2808 IFS=$as_save_IFS
2809
2810 fi
2811 fi
2812 CC=$ac_cv_prog_CC
2813 if test -n "$CC"; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2815 $as_echo "$CC" >&6; }
2816 else
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 fi
2820
2821
2822 fi
2823 fi
2824 if test -z "$CC"; then
2825 # Extract the first word of "cc", so it can be a program name with args.
2826 set dummy cc; ac_word=$2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2828 $as_echo_n "checking for $ac_word... " >&6; }
2829 if test "${ac_cv_prog_CC+set}" = set; then :
2830 $as_echo_n "(cached) " >&6
2831 else
2832 if test -n "$CC"; then
2833 ac_cv_prog_CC="$CC" # Let the user override the test.
2834 else
2835 ac_prog_rejected=no
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 for as_dir in $PATH
2838 do
2839 IFS=$as_save_IFS
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2844 ac_prog_rejected=yes
2845 continue
2846 fi
2847 ac_cv_prog_CC="cc"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 if test $ac_prog_rejected = yes; then
2856 # We found a bogon in the path, so make sure we never use it.
2857 set dummy $ac_cv_prog_CC
2858 shift
2859 if test $# != 0; then
2860 # We chose a different compiler from the bogus one.
2861 # However, it has the same basename, so the bogon will be chosen
2862 # first if we set CC to just the basename; use the full file name.
2863 shift
2864 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2865 fi
2866 fi
2867 fi
2868 fi
2869 CC=$ac_cv_prog_CC
2870 if test -n "$CC"; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2872 $as_echo "$CC" >&6; }
2873 else
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875 $as_echo "no" >&6; }
2876 fi
2877
2878
2879 fi
2880 if test -z "$CC"; then
2881 if test -n "$ac_tool_prefix"; then
2882 for ac_prog in cl.exe
2883 do
2884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2885 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_CC+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$CC"; then
2892 ac_cv_prog_CC="$CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 CC=$ac_cv_prog_CC
2912 if test -n "$CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2914 $as_echo "$CC" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920
2921 test -n "$CC" && break
2922 done
2923 fi
2924 if test -z "$CC"; then
2925 ac_ct_CC=$CC
2926 for ac_prog in cl.exe
2927 do
2928 # Extract the first word of "$ac_prog", so it can be a program name with args.
2929 set dummy $ac_prog; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$ac_ct_CC"; then
2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_ac_ct_CC="$ac_prog"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956 if test -n "$ac_ct_CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2958 $as_echo "$ac_ct_CC" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 test -n "$ac_ct_CC" && break
2966 done
2967
2968 if test "x$ac_ct_CC" = x; then
2969 CC=""
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 CC=$ac_ct_CC
2978 fi
2979 fi
2980
2981 fi
2982
2983
2984 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error "no acceptable C compiler found in \$PATH
2987 See \`config.log' for more details." "$LINENO" 5; }
2988
2989 # Provide some information about the compiler.
2990 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2991 set X $ac_compile
2992 ac_compiler=$2
2993 for ac_option in --version -v -V -qversion; do
2994 { { ac_try="$ac_compiler $ac_option >&5"
2995 case "(($ac_try" in
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2998 esac
2999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3000 $as_echo "$ac_try_echo"; } >&5
3001 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3002 ac_status=$?
3003 if test -s conftest.err; then
3004 sed '10a\
3005 ... rest of stderr output deleted ...
3006 10q' conftest.err >conftest.er1
3007 cat conftest.er1 >&5
3008 rm -f conftest.er1 conftest.err
3009 fi
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }
3012 done
3013
3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 /* end confdefs.h. */
3016
3017 int
3018 main ()
3019 {
3020
3021 ;
3022 return 0;
3023 }
3024 _ACEOF
3025 ac_clean_files_save=$ac_clean_files
3026 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3027 # Try to create an executable without -o first, disregard a.out.
3028 # It will help us diagnose broken compilers, and finding out an intuition
3029 # of exeext.
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3031 $as_echo_n "checking for C compiler default output file name... " >&6; }
3032 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3033
3034 # The possible output files:
3035 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3036
3037 ac_rmfiles=
3038 for ac_file in $ac_files
3039 do
3040 case $ac_file in
3041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3042 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3043 esac
3044 done
3045 rm -f $ac_rmfiles
3046
3047 if { { ac_try="$ac_link_default"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link_default") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }; then :
3058 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3059 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3060 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3061 # so that the user can short-circuit this test for compilers unknown to
3062 # Autoconf.
3063 for ac_file in $ac_files ''
3064 do
3065 test -f "$ac_file" || continue
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3068 ;;
3069 [ab].out )
3070 # We found the default executable, but exeext='' is most
3071 # certainly right.
3072 break;;
3073 *.* )
3074 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3075 then :; else
3076 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3077 fi
3078 # We set ac_cv_exeext here because the later test for it is not
3079 # safe: cross compilers may not add the suffix if given an `-o'
3080 # argument, so we may need to know it at that point already.
3081 # Even if this section looks crufty: it has the advantage of
3082 # actually working.
3083 break;;
3084 * )
3085 break;;
3086 esac
3087 done
3088 test "$ac_cv_exeext" = no && ac_cv_exeext=
3089
3090 else
3091 ac_file=''
3092 fi
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3094 $as_echo "$ac_file" >&6; }
3095 if test -z "$ac_file"; then :
3096 $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 { as_fn_set_status 77
3102 as_fn_error "C compiler cannot create executables
3103 See \`config.log' for more details." "$LINENO" 5; }; }
3104 fi
3105 ac_exeext=$ac_cv_exeext
3106
3107 # Check that the compiler produces executables we can run. If not, either
3108 # the compiler is broken, or we cross compile.
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3110 $as_echo_n "checking whether the C compiler works... " >&6; }
3111 # If not cross compiling, check that we can run a simple program.
3112 if test "$cross_compiling" != yes; then
3113 if { ac_try='./$ac_file'
3114 { { case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_try") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; }; then
3124 cross_compiling=no
3125 else
3126 if test "$cross_compiling" = maybe; then
3127 cross_compiling=yes
3128 else
3129 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131 as_fn_error "cannot run C compiled programs.
3132 If you meant to cross compile, use \`--host'.
3133 See \`config.log' for more details." "$LINENO" 5; }
3134 fi
3135 fi
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138 $as_echo "yes" >&6; }
3139
3140 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3141 ac_clean_files=$ac_clean_files_save
3142 # Check that the compiler produces executables we can run. If not, either
3143 # the compiler is broken, or we cross compile.
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3145 $as_echo_n "checking whether we are cross compiling... " >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3147 $as_echo "$cross_compiling" >&6; }
3148
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3150 $as_echo_n "checking for suffix of executables... " >&6; }
3151 if { { ac_try="$ac_link"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_link") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3163 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3164 # work properly (i.e., refer to `conftest.exe'), while it won't with
3165 # `rm'.
3166 for ac_file in conftest.exe conftest conftest.*; do
3167 test -f "$ac_file" || continue
3168 case $ac_file in
3169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3171 break;;
3172 * ) break;;
3173 esac
3174 done
3175 else
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178 as_fn_error "cannot compute suffix of executables: cannot compile and link
3179 See \`config.log' for more details." "$LINENO" 5; }
3180 fi
3181 rm -f conftest$ac_cv_exeext
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3183 $as_echo "$ac_cv_exeext" >&6; }
3184
3185 rm -f conftest.$ac_ext
3186 EXEEXT=$ac_cv_exeext
3187 ac_exeext=$EXEEXT
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3189 $as_echo_n "checking for suffix of object files... " >&6; }
3190 if test "${ac_cv_objext+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3195
3196 int
3197 main ()
3198 {
3199
3200 ;
3201 return 0;
3202 }
3203 _ACEOF
3204 rm -f conftest.o conftest.obj
3205 if { { ac_try="$ac_compile"
3206 case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209 esac
3210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211 $as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_compile") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }; then :
3216 for ac_file in conftest.o conftest.obj conftest.*; do
3217 test -f "$ac_file" || continue;
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221 break;;
3222 esac
3223 done
3224 else
3225 $as_echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3230 as_fn_error "cannot compute suffix of object files: cannot compile
3231 See \`config.log' for more details." "$LINENO" 5; }
3232 fi
3233 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3234 fi
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3236 $as_echo "$ac_cv_objext" >&6; }
3237 OBJEXT=$ac_cv_objext
3238 ac_objext=$OBJEXT
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3240 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3241 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3242 $as_echo_n "(cached) " >&6
3243 else
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3246
3247 int
3248 main ()
3249 {
3250 #ifndef __GNUC__
3251 choke me
3252 #endif
3253
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 if ac_fn_c_try_compile "$LINENO"; then :
3259 ac_compiler_gnu=yes
3260 else
3261 ac_compiler_gnu=no
3262 fi
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3265
3266 fi
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3268 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3269 if test $ac_compiler_gnu = yes; then
3270 GCC=yes
3271 else
3272 GCC=
3273 fi
3274 ac_test_CFLAGS=${CFLAGS+set}
3275 ac_save_CFLAGS=$CFLAGS
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3277 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3278 if test "${ac_cv_prog_cc_g+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 ac_save_c_werror_flag=$ac_c_werror_flag
3282 ac_c_werror_flag=yes
3283 ac_cv_prog_cc_g=no
3284 CFLAGS="-g"
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3287
3288 int
3289 main ()
3290 {
3291
3292 ;
3293 return 0;
3294 }
3295 _ACEOF
3296 if ac_fn_c_try_compile "$LINENO"; then :
3297 ac_cv_prog_cc_g=yes
3298 else
3299 CFLAGS=""
3300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3301 /* end confdefs.h. */
3302
3303 int
3304 main ()
3305 {
3306
3307 ;
3308 return 0;
3309 }
3310 _ACEOF
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312
3313 else
3314 ac_c_werror_flag=$ac_save_c_werror_flag
3315 CFLAGS="-g"
3316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3317 /* end confdefs.h. */
3318
3319 int
3320 main ()
3321 {
3322
3323 ;
3324 return 0;
3325 }
3326 _ACEOF
3327 if ac_fn_c_try_compile "$LINENO"; then :
3328 ac_cv_prog_cc_g=yes
3329 fi
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 fi
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3336 fi
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3338 $as_echo "$ac_cv_prog_cc_g" >&6; }
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3343 CFLAGS="-g -O2"
3344 else
3345 CFLAGS="-g"
3346 fi
3347 else
3348 if test "$GCC" = yes; then
3349 CFLAGS="-O2"
3350 else
3351 CFLAGS=
3352 fi
3353 fi
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3355 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3356 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3357 $as_echo_n "(cached) " >&6
3358 else
3359 ac_cv_prog_cc_c89=no
3360 ac_save_CC=$CC
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363 #include <stdarg.h>
3364 #include <stdio.h>
3365 #include <sys/types.h>
3366 #include <sys/stat.h>
3367 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3368 struct buf { int x; };
3369 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3370 static char *e (p, i)
3371 char **p;
3372 int i;
3373 {
3374 return p[i];
3375 }
3376 static char *f (char * (*g) (char **, int), char **p, ...)
3377 {
3378 char *s;
3379 va_list v;
3380 va_start (v,p);
3381 s = g (p, va_arg (v,int));
3382 va_end (v);
3383 return s;
3384 }
3385
3386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3387 function prototypes and stuff, but not '\xHH' hex character constants.
3388 These don't provoke an error unfortunately, instead are silently treated
3389 as 'x'. The following induces an error, until -std is added to get
3390 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3391 array size at least. It's necessary to write '\x00'==0 to get something
3392 that's true only with -std. */
3393 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3394
3395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3396 inside strings and character constants. */
3397 #define FOO(x) 'x'
3398 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3399
3400 int test (int i, double x);
3401 struct s1 {int (*f) (int a);};
3402 struct s2 {int (*f) (double a);};
3403 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 int argc;
3405 char **argv;
3406 int
3407 main ()
3408 {
3409 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 ;
3411 return 0;
3412 }
3413 _ACEOF
3414 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3415 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3416 do
3417 CC="$ac_save_CC $ac_arg"
3418 if ac_fn_c_try_compile "$LINENO"; then :
3419 ac_cv_prog_cc_c89=$ac_arg
3420 fi
3421 rm -f core conftest.err conftest.$ac_objext
3422 test "x$ac_cv_prog_cc_c89" != "xno" && break
3423 done
3424 rm -f conftest.$ac_ext
3425 CC=$ac_save_CC
3426
3427 fi
3428 # AC_CACHE_VAL
3429 case "x$ac_cv_prog_cc_c89" in
3430 x)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3432 $as_echo "none needed" >&6; } ;;
3433 xno)
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3435 $as_echo "unsupported" >&6; } ;;
3436 *)
3437 CC="$CC $ac_cv_prog_cc_c89"
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3439 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3440 esac
3441 if test "x$ac_cv_prog_cc_c89" != xno; then :
3442
3443 fi
3444
3445 ac_ext=c
3446 ac_cpp='$CPP $CPPFLAGS'
3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3450
3451
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3459 # On Suns, sometimes $CPP names a directory.
3460 if test -n "$CPP" && test -d "$CPP"; then
3461 CPP=
3462 fi
3463 if test -z "$CPP"; then
3464 if test "${ac_cv_prog_CPP+set}" = set; then :
3465 $as_echo_n "(cached) " >&6
3466 else
3467 # Double quotes because CPP needs to be expanded
3468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3469 do
3470 ac_preproc_ok=false
3471 for ac_c_preproc_warn_flag in '' yes
3472 do
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476 # <limits.h> exists even on freestanding compilers.
3477 # On the NeXT, cc -E runs the code through the compiler's parser,
3478 # not just through cpp. "Syntax error" is here to catch this case.
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 #ifdef __STDC__
3482 # include <limits.h>
3483 #else
3484 # include <assert.h>
3485 #endif
3486 Syntax error
3487 _ACEOF
3488 if ac_fn_c_try_cpp "$LINENO"; then :
3489
3490 else
3491 # Broken: fails on valid input.
3492 continue
3493 fi
3494 rm -f conftest.err conftest.$ac_ext
3495
3496 # OK, works on sane cases. Now check whether nonexistent headers
3497 # can be detected and how.
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3500 #include <ac_nonexistent.h>
3501 _ACEOF
3502 if ac_fn_c_try_cpp "$LINENO"; then :
3503 # Broken: success on invalid input.
3504 continue
3505 else
3506 # Passes both tests.
3507 ac_preproc_ok=:
3508 break
3509 fi
3510 rm -f conftest.err conftest.$ac_ext
3511
3512 done
3513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3514 rm -f conftest.err conftest.$ac_ext
3515 if $ac_preproc_ok; then :
3516 break
3517 fi
3518
3519 done
3520 ac_cv_prog_CPP=$CPP
3521
3522 fi
3523 CPP=$ac_cv_prog_CPP
3524 else
3525 ac_cv_prog_CPP=$CPP
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3528 $as_echo "$CPP" >&6; }
3529 ac_preproc_ok=false
3530 for ac_c_preproc_warn_flag in '' yes
3531 do
3532 # Use a header file that comes with gcc, so configuring glibc
3533 # with a fresh cross-compiler works.
3534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3535 # <limits.h> exists even on freestanding compilers.
3536 # On the NeXT, cc -E runs the code through the compiler's parser,
3537 # not just through cpp. "Syntax error" is here to catch this case.
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3540 #ifdef __STDC__
3541 # include <limits.h>
3542 #else
3543 # include <assert.h>
3544 #endif
3545 Syntax error
3546 _ACEOF
3547 if ac_fn_c_try_cpp "$LINENO"; then :
3548
3549 else
3550 # Broken: fails on valid input.
3551 continue
3552 fi
3553 rm -f conftest.err conftest.$ac_ext
3554
3555 # OK, works on sane cases. Now check whether nonexistent headers
3556 # can be detected and how.
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3559 #include <ac_nonexistent.h>
3560 _ACEOF
3561 if ac_fn_c_try_cpp "$LINENO"; then :
3562 # Broken: success on invalid input.
3563 continue
3564 else
3565 # Passes both tests.
3566 ac_preproc_ok=:
3567 break
3568 fi
3569 rm -f conftest.err conftest.$ac_ext
3570
3571 done
3572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3573 rm -f conftest.err conftest.$ac_ext
3574 if $ac_preproc_ok; then :
3575
3576 else
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3580 See \`config.log' for more details." "$LINENO" 5; }
3581 fi
3582
3583 ac_ext=c
3584 ac_cpp='$CPP $CPPFLAGS'
3585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588
3589
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3591 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3592 if test "${ac_cv_path_GREP+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3594 else
3595 if test -z "$GREP"; then
3596 ac_path_GREP_found=false
3597 # Loop through the user's path and test for each of PROGNAME-LIST
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3600 do
3601 IFS=$as_save_IFS
3602 test -z "$as_dir" && as_dir=.
3603 for ac_prog in grep ggrep; do
3604 for ac_exec_ext in '' $ac_executable_extensions; do
3605 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3606 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3607 # Check for GNU ac_path_GREP and select it if it is found.
3608 # Check for GNU $ac_path_GREP
3609 case `"$ac_path_GREP" --version 2>&1` in
3610 *GNU*)
3611 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3612 *)
3613 ac_count=0
3614 $as_echo_n 0123456789 >"conftest.in"
3615 while :
3616 do
3617 cat "conftest.in" "conftest.in" >"conftest.tmp"
3618 mv "conftest.tmp" "conftest.in"
3619 cp "conftest.in" "conftest.nl"
3620 $as_echo 'GREP' >> "conftest.nl"
3621 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3622 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3623 as_fn_arith $ac_count + 1 && ac_count=$as_val
3624 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3625 # Best one so far, save it but keep looking for a better one
3626 ac_cv_path_GREP="$ac_path_GREP"
3627 ac_path_GREP_max=$ac_count
3628 fi
3629 # 10*(2^10) chars as input seems more than enough
3630 test $ac_count -gt 10 && break
3631 done
3632 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3633 esac
3634
3635 $ac_path_GREP_found && break 3
3636 done
3637 done
3638 done
3639 IFS=$as_save_IFS
3640 if test -z "$ac_cv_path_GREP"; then
3641 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3642 fi
3643 else
3644 ac_cv_path_GREP=$GREP
3645 fi
3646
3647 fi
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3649 $as_echo "$ac_cv_path_GREP" >&6; }
3650 GREP="$ac_cv_path_GREP"
3651
3652
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3654 $as_echo_n "checking for egrep... " >&6; }
3655 if test "${ac_cv_path_EGREP+set}" = set; then :
3656 $as_echo_n "(cached) " >&6
3657 else
3658 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3659 then ac_cv_path_EGREP="$GREP -E"
3660 else
3661 if test -z "$EGREP"; then
3662 ac_path_EGREP_found=false
3663 # Loop through the user's path and test for each of PROGNAME-LIST
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3666 do
3667 IFS=$as_save_IFS
3668 test -z "$as_dir" && as_dir=.
3669 for ac_prog in egrep; do
3670 for ac_exec_ext in '' $ac_executable_extensions; do
3671 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3672 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3673 # Check for GNU ac_path_EGREP and select it if it is found.
3674 # Check for GNU $ac_path_EGREP
3675 case `"$ac_path_EGREP" --version 2>&1` in
3676 *GNU*)
3677 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3678 *)
3679 ac_count=0
3680 $as_echo_n 0123456789 >"conftest.in"
3681 while :
3682 do
3683 cat "conftest.in" "conftest.in" >"conftest.tmp"
3684 mv "conftest.tmp" "conftest.in"
3685 cp "conftest.in" "conftest.nl"
3686 $as_echo 'EGREP' >> "conftest.nl"
3687 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3688 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3689 as_fn_arith $ac_count + 1 && ac_count=$as_val
3690 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3691 # Best one so far, save it but keep looking for a better one
3692 ac_cv_path_EGREP="$ac_path_EGREP"
3693 ac_path_EGREP_max=$ac_count
3694 fi
3695 # 10*(2^10) chars as input seems more than enough
3696 test $ac_count -gt 10 && break
3697 done
3698 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3699 esac
3700
3701 $ac_path_EGREP_found && break 3
3702 done
3703 done
3704 done
3705 IFS=$as_save_IFS
3706 if test -z "$ac_cv_path_EGREP"; then
3707 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3708 fi
3709 else
3710 ac_cv_path_EGREP=$EGREP
3711 fi
3712
3713 fi
3714 fi
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3716 $as_echo "$ac_cv_path_EGREP" >&6; }
3717 EGREP="$ac_cv_path_EGREP"
3718
3719
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3721 $as_echo_n "checking for ANSI C header files... " >&6; }
3722 if test "${ac_cv_header_stdc+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3727 #include <stdlib.h>
3728 #include <stdarg.h>
3729 #include <string.h>
3730 #include <float.h>
3731
3732 int
3733 main ()
3734 {
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_cv_header_stdc=yes
3742 else
3743 ac_cv_header_stdc=no
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746
3747 if test $ac_cv_header_stdc = yes; then
3748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751 #include <string.h>
3752
3753 _ACEOF
3754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3755 $EGREP "memchr" >/dev/null 2>&1; then :
3756
3757 else
3758 ac_cv_header_stdc=no
3759 fi
3760 rm -f conftest*
3761
3762 fi
3763
3764 if test $ac_cv_header_stdc = yes; then
3765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768 #include <stdlib.h>
3769
3770 _ACEOF
3771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3772 $EGREP "free" >/dev/null 2>&1; then :
3773
3774 else
3775 ac_cv_header_stdc=no
3776 fi
3777 rm -f conftest*
3778
3779 fi
3780
3781 if test $ac_cv_header_stdc = yes; then
3782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3783 if test "$cross_compiling" = yes; then :
3784 :
3785 else
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #include <ctype.h>
3789 #include <stdlib.h>
3790 #if ((' ' & 0x0FF) == 0x020)
3791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3793 #else
3794 # define ISLOWER(c) \
3795 (('a' <= (c) && (c) <= 'i') \
3796 || ('j' <= (c) && (c) <= 'r') \
3797 || ('s' <= (c) && (c) <= 'z'))
3798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3799 #endif
3800
3801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3802 int
3803 main ()
3804 {
3805 int i;
3806 for (i = 0; i < 256; i++)
3807 if (XOR (islower (i), ISLOWER (i))
3808 || toupper (i) != TOUPPER (i))
3809 return 2;
3810 return 0;
3811 }
3812 _ACEOF
3813 if ac_fn_c_try_run "$LINENO"; then :
3814
3815 else
3816 ac_cv_header_stdc=no
3817 fi
3818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3819 conftest.$ac_objext conftest.beam conftest.$ac_ext
3820 fi
3821
3822 fi
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3825 $as_echo "$ac_cv_header_stdc" >&6; }
3826 if test $ac_cv_header_stdc = yes; then
3827
3828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3829
3830 fi
3831
3832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3834 inttypes.h stdint.h unistd.h
3835 do :
3836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3838 "
3839 eval as_val=\$$as_ac_Header
3840 if test "x$as_val" = x""yes; then :
3841 cat >>confdefs.h <<_ACEOF
3842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3843 _ACEOF
3844
3845 fi
3846
3847 done
3848
3849
3850
3851 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3852 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3853 MINIX=yes
3854 else
3855 MINIX=
3856 fi
3857
3858
3859 if test "$MINIX" = yes; then
3860
3861 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3862
3863
3864 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3865
3866
3867 $as_echo "#define _MINIX 1" >>confdefs.h
3868
3869 fi
3870
3871
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3873 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3874 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
3876 else
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h. */
3879
3880 # define __EXTENSIONS__ 1
3881 $ac_includes_default
3882 int
3883 main ()
3884 {
3885
3886 ;
3887 return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891 ac_cv_safe_to_define___extensions__=yes
3892 else
3893 ac_cv_safe_to_define___extensions__=no
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 fi
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3898 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3899 test $ac_cv_safe_to_define___extensions__ = yes &&
3900 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3901
3902 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3903
3904 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3905
3906 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3907
3908 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3909
3910
3911 ac_aux_dir=
3912 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3913 for ac_t in install-sh install.sh shtool; do
3914 if test -f "$ac_dir/$ac_t"; then
3915 ac_aux_dir=$ac_dir
3916 ac_install_sh="$ac_aux_dir/$ac_t -c"
3917 break 2
3918 fi
3919 done
3920 done
3921 if test -z "$ac_aux_dir"; then
3922 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3923 fi
3924
3925 # These three variables are undocumented and unsupported,
3926 # and are intended to be withdrawn in a future Autoconf release.
3927 # They can cause serious problems if a builder's source tree is in a directory
3928 # whose full name contains unusual characters.
3929 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3930 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3931 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3932
3933
3934 # Make sure we can run config.sub.
3935 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3936 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3937
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3939 $as_echo_n "checking build system type... " >&6; }
3940 if test "${ac_cv_build+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 ac_build_alias=$build_alias
3944 test "x$ac_build_alias" = x &&
3945 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3946 test "x$ac_build_alias" = x &&
3947 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3948 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3949 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3953 $as_echo "$ac_cv_build" >&6; }
3954 case $ac_cv_build in
3955 *-*-*) ;;
3956 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3957 esac
3958 build=$ac_cv_build
3959 ac_save_IFS=$IFS; IFS='-'
3960 set x $ac_cv_build
3961 shift
3962 build_cpu=$1
3963 build_vendor=$2
3964 shift; shift
3965 # Remember, the first character of IFS is used to create $*,
3966 # except with old shells:
3967 build_os=$*
3968 IFS=$ac_save_IFS
3969 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3970
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3973 $as_echo_n "checking host system type... " >&6; }
3974 if test "${ac_cv_host+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 if test "x$host_alias" = x; then
3978 ac_cv_host=$ac_cv_build
3979 else
3980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3981 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3982 fi
3983
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3986 $as_echo "$ac_cv_host" >&6; }
3987 case $ac_cv_host in
3988 *-*-*) ;;
3989 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3990 esac
3991 host=$ac_cv_host
3992 ac_save_IFS=$IFS; IFS='-'
3993 set x $ac_cv_host
3994 shift
3995 host_cpu=$1
3996 host_vendor=$2
3997 shift; shift
3998 # Remember, the first character of IFS is used to create $*,
3999 # except with old shells:
4000 host_os=$*
4001 IFS=$ac_save_IFS
4002 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4003
4004
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4006 $as_echo_n "checking target system type... " >&6; }
4007 if test "${ac_cv_target+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test "x$target_alias" = x; then
4011 ac_cv_target=$ac_cv_host
4012 else
4013 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4014 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4015 fi
4016
4017 fi
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4019 $as_echo "$ac_cv_target" >&6; }
4020 case $ac_cv_target in
4021 *-*-*) ;;
4022 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4023 esac
4024 target=$ac_cv_target
4025 ac_save_IFS=$IFS; IFS='-'
4026 set x $ac_cv_target
4027 shift
4028 target_cpu=$1
4029 target_vendor=$2
4030 shift; shift
4031 # Remember, the first character of IFS is used to create $*,
4032 # except with old shells:
4033 target_os=$*
4034 IFS=$ac_save_IFS
4035 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4036
4037
4038 # The aliases save the names the user supplied, while $host etc.
4039 # will get canonicalized.
4040 test -n "$target_alias" &&
4041 test "$program_prefix$program_suffix$program_transform_name" = \
4042 NONENONEs,x,x, &&
4043 program_prefix=${target_alias}-
4044
4045 # The tests for host and target for $enable_largefile require
4046 # canonical names.
4047
4048
4049
4050 # As the $enable_largefile decision depends on --enable-plugins we must set it
4051 # even in directories otherwise not depending on the $plugins option.
4052
4053
4054 # Check whether --enable-plugins was given.
4055 if test "${enable_plugins+set}" = set; then :
4056 enableval=$enable_plugins; case "${enableval}" in
4057 yes | "") plugins=yes ;;
4058 no) plugins=no ;;
4059 *) plugins=yes ;;
4060 esac
4061 else
4062 plugins=no
4063 fi
4064
4065
4066
4067 case "${host}" in
4068 sparc-*-solaris*|i[3-7]86-*-solaris*)
4069 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4070 # are mutually exclusive; and without procfs support, the bfd/ elf module
4071 # cannot provide certain routines such as elfcore_write_prpsinfo
4072 # or elfcore_write_prstatus. So unless the user explicitly requested
4073 # large-file support through the --enable-largefile switch, disable
4074 # large-file support in favor of procfs support.
4075 test "${target}" = "${host}" -a "x$plugins" = xno \
4076 && : ${enable_largefile="no"}
4077 ;;
4078 esac
4079
4080 # Check whether --enable-largefile was given.
4081 if test "${enable_largefile+set}" = set; then :
4082 enableval=$enable_largefile;
4083 fi
4084
4085 if test "$enable_largefile" != no; then
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4088 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4089 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 ac_cv_sys_largefile_CC=no
4093 if test "$GCC" != yes; then
4094 ac_save_CC=$CC
4095 while :; do
4096 # IRIX 6.2 and later do not support large files by default,
4097 # so use the C compiler's -n32 option if that helps.
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 #include <sys/types.h>
4101 /* Check that off_t can represent 2**63 - 1 correctly.
4102 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4103 since some C++ compilers masquerading as C compilers
4104 incorrectly reject 9223372036854775807. */
4105 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4106 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4107 && LARGE_OFF_T % 2147483647 == 1)
4108 ? 1 : -1];
4109 int
4110 main ()
4111 {
4112
4113 ;
4114 return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 break
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext
4121 CC="$CC -n32"
4122 if ac_fn_c_try_compile "$LINENO"; then :
4123 ac_cv_sys_largefile_CC=' -n32'; break
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext
4126 break
4127 done
4128 CC=$ac_save_CC
4129 rm -f conftest.$ac_ext
4130 fi
4131 fi
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4133 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4134 if test "$ac_cv_sys_largefile_CC" != no; then
4135 CC=$CC$ac_cv_sys_largefile_CC
4136 fi
4137
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4139 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4140 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4141 $as_echo_n "(cached) " >&6
4142 else
4143 while :; do
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4146 #include <sys/types.h>
4147 /* Check that off_t can represent 2**63 - 1 correctly.
4148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4149 since some C++ compilers masquerading as C compilers
4150 incorrectly reject 9223372036854775807. */
4151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4153 && LARGE_OFF_T % 2147483647 == 1)
4154 ? 1 : -1];
4155 int
4156 main ()
4157 {
4158
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164 ac_cv_sys_file_offset_bits=no; break
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #define _FILE_OFFSET_BITS 64
4170 #include <sys/types.h>
4171 /* Check that off_t can represent 2**63 - 1 correctly.
4172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4173 since some C++ compilers masquerading as C compilers
4174 incorrectly reject 9223372036854775807. */
4175 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4177 && LARGE_OFF_T % 2147483647 == 1)
4178 ? 1 : -1];
4179 int
4180 main ()
4181 {
4182
4183 ;
4184 return 0;
4185 }
4186 _ACEOF
4187 if ac_fn_c_try_compile "$LINENO"; then :
4188 ac_cv_sys_file_offset_bits=64; break
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4191 ac_cv_sys_file_offset_bits=unknown
4192 break
4193 done
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4196 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4197 case $ac_cv_sys_file_offset_bits in #(
4198 no | unknown) ;;
4199 *)
4200 cat >>confdefs.h <<_ACEOF
4201 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4202 _ACEOF
4203 ;;
4204 esac
4205 rm -rf conftest*
4206 if test $ac_cv_sys_file_offset_bits = unknown; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4208 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4209 if test "${ac_cv_sys_large_files+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 while :; do
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <sys/types.h>
4216 /* Check that off_t can represent 2**63 - 1 correctly.
4217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4218 since some C++ compilers masquerading as C compilers
4219 incorrectly reject 9223372036854775807. */
4220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4222 && LARGE_OFF_T % 2147483647 == 1)
4223 ? 1 : -1];
4224 int
4225 main ()
4226 {
4227
4228 ;
4229 return 0;
4230 }
4231 _ACEOF
4232 if ac_fn_c_try_compile "$LINENO"; then :
4233 ac_cv_sys_large_files=no; break
4234 fi
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4238 #define _LARGE_FILES 1
4239 #include <sys/types.h>
4240 /* Check that off_t can represent 2**63 - 1 correctly.
4241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4242 since some C++ compilers masquerading as C compilers
4243 incorrectly reject 9223372036854775807. */
4244 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4246 && LARGE_OFF_T % 2147483647 == 1)
4247 ? 1 : -1];
4248 int
4249 main ()
4250 {
4251
4252 ;
4253 return 0;
4254 }
4255 _ACEOF
4256 if ac_fn_c_try_compile "$LINENO"; then :
4257 ac_cv_sys_large_files=1; break
4258 fi
4259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4260 ac_cv_sys_large_files=unknown
4261 break
4262 done
4263 fi
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4265 $as_echo "$ac_cv_sys_large_files" >&6; }
4266 case $ac_cv_sys_large_files in #(
4267 no | unknown) ;;
4268 *)
4269 cat >>confdefs.h <<_ACEOF
4270 #define _LARGE_FILES $ac_cv_sys_large_files
4271 _ACEOF
4272 ;;
4273 esac
4274 rm -rf conftest*
4275 fi
4276 fi
4277
4278
4279
4280
4281
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4283 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4284 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4285 $as_echo_n "(cached) " >&6
4286 else
4287 am_cv_prog_cc_stdc=no
4288 ac_save_CC="$CC"
4289 # Don't try gcc -ansi; that turns off useful extensions and
4290 # breaks some systems' header files.
4291 # AIX -qlanglvl=ansi
4292 # Ultrix and OSF/1 -std1
4293 # HP-UX 10.20 and later -Ae
4294 # HP-UX older versions -Aa -D_HPUX_SOURCE
4295 # SVR4 -Xc -D__EXTENSIONS__
4296 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4297 do
4298 CC="$ac_save_CC $ac_arg"
4299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h. */
4301 #include <stdarg.h>
4302 #include <stdio.h>
4303 #include <sys/types.h>
4304 #include <sys/stat.h>
4305 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4306 struct buf { int x; };
4307 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4308 static char *e (p, i)
4309 char **p;
4310 int i;
4311 {
4312 return p[i];
4313 }
4314 static char *f (char * (*g) (char **, int), char **p, ...)
4315 {
4316 char *s;
4317 va_list v;
4318 va_start (v,p);
4319 s = g (p, va_arg (v,int));
4320 va_end (v);
4321 return s;
4322 }
4323 int test (int i, double x);
4324 struct s1 {int (*f) (int a);};
4325 struct s2 {int (*f) (double a);};
4326 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4327 int argc;
4328 char **argv;
4329
4330 int
4331 main ()
4332 {
4333
4334 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4335
4336 ;
4337 return 0;
4338 }
4339 _ACEOF
4340 if ac_fn_c_try_compile "$LINENO"; then :
4341 am_cv_prog_cc_stdc="$ac_arg"; break
4342 fi
4343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4344 done
4345 CC="$ac_save_CC"
4346
4347 fi
4348
4349 if test -z "$am_cv_prog_cc_stdc"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4351 $as_echo "none needed" >&6; }
4352 else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4354 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4355 fi
4356 case "x$am_cv_prog_cc_stdc" in
4357 x|xno) ;;
4358 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4359 esac
4360
4361
4362 ac_aux_dir=
4363 for ac_dir in .. "$srcdir"/..; do
4364 for ac_t in install-sh install.sh shtool; do
4365 if test -f "$ac_dir/$ac_t"; then
4366 ac_aux_dir=$ac_dir
4367 ac_install_sh="$ac_aux_dir/$ac_t -c"
4368 break 2
4369 fi
4370 done
4371 done
4372 if test -z "$ac_aux_dir"; then
4373 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4374 fi
4375
4376 # These three variables are undocumented and unsupported,
4377 # and are intended to be withdrawn in a future Autoconf release.
4378 # They can cause serious problems if a builder's source tree is in a directory
4379 # whose full name contains unusual characters.
4380 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4381 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4382 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4383
4384
4385
4386 test "$program_prefix" != NONE &&
4387 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4388 # Use a double $ so make ignores it.
4389 test "$program_suffix" != NONE &&
4390 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4391 # Double any \ or $.
4392 # By default was `s,x,x', remove it if useless.
4393 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4394 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4395
4396
4397 # Dependency checking.
4398 rm -rf .tst 2>/dev/null
4399 mkdir .tst 2>/dev/null
4400 if test -d .tst; then
4401 am__leading_dot=.
4402 else
4403 am__leading_dot=_
4404 fi
4405 rmdir .tst 2>/dev/null
4406
4407 DEPDIR="${am__leading_dot}deps"
4408
4409 ac_config_commands="$ac_config_commands depdir"
4410
4411
4412 depcc="$CC" am_compiler_list=
4413
4414 am_depcomp=$ac_aux_dir/depcomp
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4416 $as_echo_n "checking dependency style of $depcc... " >&6; }
4417 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4418 $as_echo_n "(cached) " >&6
4419 else
4420 if test -f "$am_depcomp"; then
4421 # We make a subdir and do the tests there. Otherwise we can end up
4422 # making bogus files that we don't know about and never remove. For
4423 # instance it was reported that on HP-UX the gcc test will end up
4424 # making a dummy file named `D' -- because `-MD' means `put the output
4425 # in D'.
4426 mkdir conftest.dir
4427 # Copy depcomp to subdir because otherwise we won't find it if we're
4428 # using a relative directory.
4429 cp "$am_depcomp" conftest.dir
4430 cd conftest.dir
4431 # We will build objects and dependencies in a subdirectory because
4432 # it helps to detect inapplicable dependency modes. For instance
4433 # both Tru64's cc and ICC support -MD to output dependencies as a
4434 # side effect of compilation, but ICC will put the dependencies in
4435 # the current directory while Tru64 will put them in the object
4436 # directory.
4437 mkdir sub
4438
4439 am_cv_CC_dependencies_compiler_type=none
4440 if test "$am_compiler_list" = ""; then
4441 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4442 fi
4443 for depmode in $am_compiler_list; do
4444 if test $depmode = none; then break; fi
4445
4446 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4447 # Setup a source with many dependencies, because some compilers
4448 # like to wrap large dependency lists on column 80 (with \), and
4449 # we should not choose a depcomp mode which is confused by this.
4450 #
4451 # We need to recreate these files for each test, as the compiler may
4452 # overwrite some of them when testing with obscure command lines.
4453 # This happens at least with the AIX C compiler.
4454 : > sub/conftest.c
4455 for i in 1 2 3 4 5 6; do
4456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4457 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4458 # Solaris 8's {/usr,}/bin/sh.
4459 touch sub/conftst$i.h
4460 done
4461 echo "include sub/conftest.Po" > confmf
4462
4463 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4464 # mode. It turns out that the SunPro C++ compiler does not properly
4465 # handle `-M -o', and we need to detect this.
4466 depcmd="depmode=$depmode \
4467 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4468 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4469 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4470 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4471 if env $depcmd > conftest.err 2>&1 &&
4472 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4473 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4474 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4475 # icc doesn't choke on unknown options, it will just issue warnings
4476 # or remarks (even with -Werror). So we grep stderr for any message
4477 # that says an option was ignored or not supported.
4478 # When given -MP, icc 7.0 and 7.1 complain thusly:
4479 # icc: Command line warning: ignoring option '-M'; no argument required
4480 # The diagnosis changed in icc 8.0:
4481 # icc: Command line remark: option '-MP' not supported
4482 if (grep 'ignoring option' conftest.err ||
4483 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4484 am_cv_CC_dependencies_compiler_type=$depmode
4485 $as_echo "$as_me:$LINENO: success" >&5
4486 break
4487 fi
4488 fi
4489 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4490 sed -e 's/^/| /' < conftest.err >&5
4491 done
4492
4493 cd ..
4494 rm -rf conftest.dir
4495 else
4496 am_cv_CC_dependencies_compiler_type=none
4497 fi
4498
4499 fi
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4501 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4502 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4503 then as_fn_error "no usable dependency style found" "$LINENO" 5
4504 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4505
4506 fi
4507
4508
4509 # Check for the 'make' the user wants to use.
4510 for ac_prog in make
4511 do
4512 # Extract the first word of "$ac_prog", so it can be a program name with args.
4513 set dummy $ac_prog; ac_word=$2
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4515 $as_echo_n "checking for $ac_word... " >&6; }
4516 if test "${ac_cv_prog_MAKE+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if test -n "$MAKE"; then
4520 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4521 else
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4529 ac_cv_prog_MAKE="$ac_prog"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4532 fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537 fi
4538 fi
4539 MAKE=$ac_cv_prog_MAKE
4540 if test -n "$MAKE"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4542 $as_echo "$MAKE" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4546 fi
4547
4548
4549 test -n "$MAKE" && break
4550 done
4551
4552 MAKE_IS_GNU=
4553 case "`$MAKE --version 2>&1 | sed 1q`" in
4554 *GNU*)
4555 MAKE_IS_GNU=yes
4556 ;;
4557 esac
4558 if test "$MAKE_IS_GNU" = yes; then
4559 GMAKE_TRUE=
4560 GMAKE_FALSE='#'
4561 else
4562 GMAKE_TRUE='#'
4563 GMAKE_FALSE=
4564 fi
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4567 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4568 set x ${MAKE-make}
4569 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4570 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 cat >conftest.make <<\_ACEOF
4574 SHELL = /bin/sh
4575 all:
4576 @echo '@@@%%%=$(MAKE)=@@@%%%'
4577 _ACEOF
4578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4580 *@@@%%%=?*=@@@%%%*)
4581 eval ac_cv_prog_make_${ac_make}_set=yes;;
4582 *)
4583 eval ac_cv_prog_make_${ac_make}_set=no;;
4584 esac
4585 rm -f conftest.make
4586 fi
4587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4589 $as_echo "yes" >&6; }
4590 SET_MAKE=
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4594 SET_MAKE="MAKE=${MAKE-make}"
4595 fi
4596
4597
4598 # Configure gnulib. We need to build gnulib under some other
4599 # directory not "gnulib", to avoid the problem of both GDB and
4600 # GDBserver wanting to build it in the same directory, when building
4601 # in the source dir.
4602
4603 in_src="gnulib"
4604 in_build="build-gnulib"
4605
4606 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4607 # so they do not pile up.
4608 ac_sub_configure_args=
4609 ac_prev=
4610 eval "set x $ac_configure_args"
4611 shift
4612 for ac_arg
4613 do
4614 if test -n "$ac_prev"; then
4615 ac_prev=
4616 continue
4617 fi
4618 case $ac_arg in
4619 -cache-file | --cache-file | --cache-fil | --cache-fi \
4620 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4621 ac_prev=cache_file ;;
4622 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4623 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4624 | --c=*)
4625 ;;
4626 --config-cache | -C)
4627 ;;
4628 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4629 ac_prev=srcdir ;;
4630 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4631 ;;
4632 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4633 ac_prev=prefix ;;
4634 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4635 ;;
4636 --disable-option-checking)
4637 ;;
4638 *)
4639 case $ac_arg in
4640 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4641 esac
4642 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4643 esac
4644 done
4645
4646 # Always prepend --prefix to ensure using the same prefix
4647 # in subdir configurations.
4648 ac_arg="--prefix=$prefix"
4649 case $ac_arg in
4650 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4651 esac
4652 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4653
4654 # Pass --silent
4655 if test "$silent" = yes; then
4656 ac_sub_configure_args="--silent $ac_sub_configure_args"
4657 fi
4658
4659 # Always prepend --disable-option-checking to silence warnings, since
4660 # different subdirs can have different --enable and --with options.
4661 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4662
4663 ac_popdir=`pwd`
4664 ac_dir=$in_build
4665
4666 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4667 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4668 $as_echo "$ac_msg" >&6
4669 as_dir="$ac_dir"; as_fn_mkdir_p
4670
4671 case $srcdir in
4672 [\\/]* | ?:[\\/]* )
4673 ac_srcdir=$srcdir/$in_src ;;
4674 *) # Relative name.
4675 ac_srcdir=../$srcdir/$in_src ;;
4676 esac
4677
4678 cd "$ac_dir"
4679
4680 ac_sub_configure=$ac_srcdir/configure
4681
4682 # Make the cache file name correct relative to the subdirectory.
4683 case $cache_file in
4684 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4685 *) # Relative name.
4686 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4687 esac
4688
4689 { $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
4690 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4691 # The eval makes quoting arguments work.
4692 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4693 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4694 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4695
4696 cd "$ac_popdir"
4697
4698
4699
4700 CONFIG_OBS=
4701 CONFIG_DEPS=
4702 CONFIG_SRCS=
4703 ENABLE_CFLAGS=
4704
4705 CONFIG_ALL=
4706 CONFIG_CLEAN=
4707 CONFIG_INSTALL=
4708 CONFIG_UNINSTALL=
4709
4710 # If we haven't got the data from the intl directory,
4711 # assume NLS is disabled.
4712 USE_NLS=no
4713 LIBINTL=
4714 LIBINTL_DEP=
4715 INCINTL=
4716 XGETTEXT=
4717 GMSGFMT=
4718 POSUB=
4719
4720 if test -f ../intl/config.intl; then
4721 . ../intl/config.intl
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4724 $as_echo_n "checking whether NLS is requested... " >&6; }
4725 if test x"$USE_NLS" != xyes; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 else
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4730 $as_echo "yes" >&6; }
4731
4732 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4736 $as_echo_n "checking for catalogs to be installed... " >&6; }
4737 # Look for .po and .gmo files in the source directory.
4738 CATALOGS=
4739 XLINGUAS=
4740 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4741 # If there aren't any .gmo files the shell will give us the
4742 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4743 # weeded out.
4744 case "$cat" in *\**)
4745 continue;;
4746 esac
4747 # The quadruple backslash is collapsed to a double backslash
4748 # by the backticks, then collapsed again by the double quotes,
4749 # leaving us with one backslash in the sed expression (right
4750 # before the dot that mustn't act as a wildcard).
4751 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4752 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4753 # The user is allowed to set LINGUAS to a list of languages to
4754 # install catalogs for. If it's empty that means "all of them."
4755 if test "x$LINGUAS" = x; then
4756 CATALOGS="$CATALOGS $cat"
4757 XLINGUAS="$XLINGUAS $lang"
4758 else
4759 case "$LINGUAS" in *$lang*)
4760 CATALOGS="$CATALOGS $cat"
4761 XLINGUAS="$XLINGUAS $lang"
4762 ;;
4763 esac
4764 fi
4765 done
4766 LINGUAS="$XLINGUAS"
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4768 $as_echo "$LINGUAS" >&6; }
4769
4770
4771 DATADIRNAME=share
4772
4773 INSTOBJEXT=.mo
4774
4775 GENCAT=gencat
4776
4777 CATOBJEXT=.gmo
4778
4779 fi
4780
4781 localedir='${datadir}/locale'
4782
4783
4784 if test x"$USE_NLS" = xyes; then
4785 CONFIG_ALL="$CONFIG_ALL all-po"
4786 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4787 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4788 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4789 fi
4790
4791 GNULIB=build-gnulib/import
4792
4793 # For Makefile dependencies.
4794 GNULIB_STDINT_H=
4795 if test x"$STDINT_H" != x; then
4796 GNULIB_STDINT_H=$GNULIB/$STDINT_H
4797 fi
4798
4799
4800 PACKAGE=gdb
4801
4802 cat >>confdefs.h <<_ACEOF
4803 #define PACKAGE "$PACKAGE"
4804 _ACEOF
4805
4806
4807
4808 # We never need to detect it in this sub-configure.
4809 # But preserve it for config.status --recheck.
4810
4811
4812
4813 MAKEINFO_EXTRA_FLAGS=""
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4815 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4816 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4817 $as_echo_n "(cached) " >&6
4818 else
4819 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4820 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4821 gdb_cv_have_makeinfo_click=yes
4822 else
4823 gdb_cv_have_makeinfo_click=no
4824 fi
4825 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4827 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4828 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4829 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4830 fi
4831
4832
4833
4834
4835 # Check whether --with-separate-debug-dir was given.
4836 if test "${with_separate_debug_dir+set}" = set; then :
4837 withval=$with_separate_debug_dir;
4838 DEBUGDIR=$withval
4839 else
4840 DEBUGDIR=${libdir}/debug
4841 fi
4842
4843
4844 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4845 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4846 ac_define_dir=`eval echo $DEBUGDIR`
4847 ac_define_dir=`eval echo $ac_define_dir`
4848
4849 cat >>confdefs.h <<_ACEOF
4850 #define DEBUGDIR "$ac_define_dir"
4851 _ACEOF
4852
4853
4854
4855
4856 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4857 if test "x$prefix" = xNONE; then
4858 test_prefix=/usr/local
4859 else
4860 test_prefix=$prefix
4861 fi
4862 else
4863 test_prefix=$exec_prefix
4864 fi
4865 value=0
4866 case ${ac_define_dir} in
4867 "${test_prefix}"|"${test_prefix}/"*|\
4868 '${exec_prefix}'|'${exec_prefix}/'*)
4869 value=1
4870 ;;
4871 esac
4872
4873 cat >>confdefs.h <<_ACEOF
4874 #define DEBUGDIR_RELOCATABLE $value
4875 _ACEOF
4876
4877
4878
4879
4880 # We can't pass paths as command line arguments.
4881 # Mingw32 tries to be clever and will convert the paths for us.
4882 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4883 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4884 # This breaks GDB's relocatable path conversions since paths passed in
4885 # config.h would not get so translated, the path prefixes no longer match.
4886
4887 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4888 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4889 ac_define_dir=`eval echo $bindir`
4890 ac_define_dir=`eval echo $ac_define_dir`
4891
4892 cat >>confdefs.h <<_ACEOF
4893 #define BINDIR "$ac_define_dir"
4894 _ACEOF
4895
4896
4897
4898 # GDB's datadir relocation
4899
4900
4901
4902 # Check whether --with-gdb-datadir was given.
4903 if test "${with_gdb_datadir+set}" = set; then :
4904 withval=$with_gdb_datadir;
4905 GDB_DATADIR=$withval
4906 else
4907 GDB_DATADIR=${datadir}/gdb
4908 fi
4909
4910
4911 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4913 ac_define_dir=`eval echo $GDB_DATADIR`
4914 ac_define_dir=`eval echo $ac_define_dir`
4915
4916 cat >>confdefs.h <<_ACEOF
4917 #define GDB_DATADIR "$ac_define_dir"
4918 _ACEOF
4919
4920
4921
4922
4923 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4924 if test "x$prefix" = xNONE; then
4925 test_prefix=/usr/local
4926 else
4927 test_prefix=$prefix
4928 fi
4929 else
4930 test_prefix=$exec_prefix
4931 fi
4932 value=0
4933 case ${ac_define_dir} in
4934 "${test_prefix}"|"${test_prefix}/"*|\
4935 '${exec_prefix}'|'${exec_prefix}/'*)
4936 value=1
4937 ;;
4938 esac
4939
4940 cat >>confdefs.h <<_ACEOF
4941 #define GDB_DATADIR_RELOCATABLE $value
4942 _ACEOF
4943
4944
4945
4946
4947
4948 # Check whether --with-relocated-sources was given.
4949 if test "${with_relocated_sources+set}" = set; then :
4950 withval=$with_relocated_sources; reloc_srcdir="${withval}"
4951
4952 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4954 ac_define_dir=`eval echo $reloc_srcdir`
4955 ac_define_dir=`eval echo $ac_define_dir`
4956
4957 cat >>confdefs.h <<_ACEOF
4958 #define RELOC_SRCDIR "$ac_define_dir"
4959 _ACEOF
4960
4961
4962
4963 fi
4964
4965
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
4967 $as_echo_n "checking for default auto-load directory... " >&6; }
4968
4969 # Check whether --with-auto-load-dir was given.
4970 if test "${with_auto_load_dir+set}" = set; then :
4971 withval=$with_auto_load_dir;
4972 else
4973 with_auto_load_dir='$debugdir:$datadir/auto-load'
4974 fi
4975
4976 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
4977
4978 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4979 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4980 ac_define_dir=`eval echo $escape_dir`
4981 ac_define_dir=`eval echo $ac_define_dir`
4982
4983 cat >>confdefs.h <<_ACEOF
4984 #define AUTO_LOAD_DIR "$ac_define_dir"
4985 _ACEOF
4986
4987
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
4989 $as_echo "$with_auto_load_dir" >&6; }
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
4992 $as_echo_n "checking for default auto-load safe-path... " >&6; }
4993
4994 # Check whether --with-auto-load-safe-path was given.
4995 if test "${with_auto_load_safe_path+set}" = set; then :
4996 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
4997 with_auto_load_safe_path="/"
4998 fi
4999 else
5000 with_auto_load_safe_path="$with_auto_load_dir"
5001 fi
5002
5003 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
5004
5005 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
5006 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5007 ac_define_dir=`eval echo $escape_dir`
5008 ac_define_dir=`eval echo $ac_define_dir`
5009
5010 cat >>confdefs.h <<_ACEOF
5011 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
5012 _ACEOF
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
5016 $as_echo "$with_auto_load_safe_path" >&6; }
5017
5018
5019
5020 subdirs="$subdirs testsuite"
5021
5022
5023 # Check whether to support alternative target configurations
5024 # Check whether --enable-targets was given.
5025 if test "${enable_targets+set}" = set; then :
5026 enableval=$enable_targets; case "${enableval}" in
5027 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
5028 ;;
5029 no) enable_targets= ;;
5030 *) enable_targets=$enableval ;;
5031 esac
5032 fi
5033
5034
5035 # Check whether to enable 64-bit support on 32-bit hosts
5036 # Check whether --enable-64-bit-bfd was given.
5037 if test "${enable_64_bit_bfd+set}" = set; then :
5038 enableval=$enable_64_bit_bfd; case "${enableval}" in
5039 yes) want64=true ;;
5040 no) want64=false ;;
5041 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5042 esac
5043 else
5044 want64=false
5045 fi
5046
5047 # Provide defaults for some variables set by the per-host and per-target
5048 # configuration.
5049 gdb_host_obs=posix-hdep.o
5050
5051 if test "${target}" = "${host}"; then
5052 gdb_native=yes
5053 else
5054 gdb_native=no
5055 fi
5056
5057 . $srcdir/configure.host
5058
5059 # Accumulate some settings from configure.tgt over all enabled targets
5060
5061 TARGET_OBS=
5062 all_targets=
5063
5064 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5065 do
5066 if test "$targ_alias" = "all"; then
5067 all_targets=true
5068 else
5069 # Canonicalize the secondary target names.
5070 result=`$ac_config_sub $targ_alias 2>/dev/null`
5071 if test -n "$result"; then
5072 targ=$result
5073 else
5074 targ=$targ_alias
5075 fi
5076
5077 . ${srcdir}/configure.tgt
5078
5079 if test -z "${gdb_target_obs}"; then :
5080 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5081 fi
5082
5083 # Target-specific object files
5084 for i in ${gdb_target_obs}; do
5085 case " $TARGET_OBS " in
5086 *" ${i} "*) ;;
5087 *)
5088 TARGET_OBS="$TARGET_OBS ${i}"
5089 ;;
5090 esac
5091 done
5092
5093 # Check whether this target needs 64-bit CORE_ADDR
5094 if test x${want64} = xfalse; then
5095 . ${srcdir}/../bfd/config.bfd
5096 fi
5097 fi
5098 done
5099
5100 if test x${all_targets} = xtrue; then
5101
5102 # We want all 64-bit targets if we either:
5103 # - run on a 64-bit host or
5104 # - already require 64-bit support for some other target or
5105 # - the --enable-64-bit-bfd option was supplied
5106 # Otherwise we only support all 32-bit targets.
5107 #
5108 # NOTE: This test must be in sync with the corresponding
5109 # tests in BFD!
5110
5111 if test x${want64} = xfalse; then
5112 # The cast to long int works around a bug in the HP C Compiler
5113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5115 # This bug is HP SR number 8606223364.
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5117 $as_echo_n "checking size of long... " >&6; }
5118 if test "${ac_cv_sizeof_long+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5122
5123 else
5124 if test "$ac_cv_type_long" = yes; then
5125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5127 { as_fn_set_status 77
5128 as_fn_error "cannot compute sizeof (long)
5129 See \`config.log' for more details." "$LINENO" 5; }; }
5130 else
5131 ac_cv_sizeof_long=0
5132 fi
5133 fi
5134
5135 fi
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5137 $as_echo "$ac_cv_sizeof_long" >&6; }
5138
5139
5140
5141 cat >>confdefs.h <<_ACEOF
5142 #define SIZEOF_LONG $ac_cv_sizeof_long
5143 _ACEOF
5144
5145
5146 if test "x${ac_cv_sizeof_long}" = "x8"; then
5147 want64=true
5148 fi
5149 fi
5150 if test x${want64} = xtrue; then
5151 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5152 else
5153 TARGET_OBS='$(ALL_TARGET_OBS)'
5154 fi
5155 fi
5156
5157
5158
5159 # For other settings, only the main target counts.
5160 gdb_sim=
5161 gdb_osabi=
5162 build_gdbserver=
5163 targ=$target; . ${srcdir}/configure.tgt
5164
5165 # Fetch the default architecture and default target vector from BFD.
5166 targ=$target; . $srcdir/../bfd/config.bfd
5167
5168 # We only want the first architecture, so strip off the others if
5169 # there is more than one.
5170 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5171
5172 if test "x$targ_archs" != x; then
5173
5174 cat >>confdefs.h <<_ACEOF
5175 #define DEFAULT_BFD_ARCH $targ_archs
5176 _ACEOF
5177
5178 fi
5179 if test "x$targ_defvec" != x; then
5180
5181 cat >>confdefs.h <<_ACEOF
5182 #define DEFAULT_BFD_VEC $targ_defvec
5183 _ACEOF
5184
5185 fi
5186
5187 # The CLI cannot be disabled yet, but may be in the future.
5188
5189 # Enable CLI.
5190 # Check whether --enable-gdbcli was given.
5191 if test "${enable_gdbcli+set}" = set; then :
5192 enableval=$enable_gdbcli; case $enableval in
5193 yes)
5194 ;;
5195 no)
5196 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5197 *)
5198 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5199 esac
5200 else
5201 enable_gdbcli=yes
5202 fi
5203
5204 if test x"$enable_gdbcli" = xyes; then
5205 if test -d $srcdir/cli; then
5206 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5207 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5208 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5209 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5210 fi
5211 fi
5212
5213 # Enable MI.
5214 # Check whether --enable-gdbmi was given.
5215 if test "${enable_gdbmi+set}" = set; then :
5216 enableval=$enable_gdbmi; case $enableval in
5217 yes | no)
5218 ;;
5219 *)
5220 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5221 esac
5222 else
5223 enable_gdbmi=yes
5224 fi
5225
5226 if test x"$enable_gdbmi" = xyes; then
5227 if test -d $srcdir/mi; then
5228 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5229 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5230 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5231 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5232 fi
5233 fi
5234
5235 # Enable TUI.
5236 # Check whether --enable-tui was given.
5237 if test "${enable_tui+set}" = set; then :
5238 enableval=$enable_tui; case $enableval in
5239 yes | no | auto)
5240 ;;
5241 *)
5242 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5243 esac
5244 else
5245 enable_tui=auto
5246 fi
5247
5248
5249 # Enable gdbtk.
5250 # Check whether --enable-gdbtk was given.
5251 if test "${enable_gdbtk+set}" = set; then :
5252 enableval=$enable_gdbtk; case $enableval in
5253 yes | no)
5254 ;;
5255 *)
5256 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5257 esac
5258 else
5259 if test -d $srcdir/gdbtk; then
5260 enable_gdbtk=yes
5261 else
5262 enable_gdbtk=no
5263 fi
5264 fi
5265
5266 # We unconditionally disable gdbtk tests on selected platforms.
5267 case $host_os in
5268 go32* | windows*)
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5270 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5271 enable_gdbtk=no ;;
5272 esac
5273
5274 # Libunwind support for ia64.
5275
5276
5277 # Check whether --with-libunwind-ia64 was given.
5278 if test "${with_libunwind_ia64+set}" = set; then :
5279 withval=$with_libunwind_ia64;
5280 else
5281 with_libunwind_ia64=auto
5282 fi
5283
5284
5285 # Backward compatibility option.
5286 if test "${with_libunwind+set}" = set; then
5287 if test x"$with_libunwind_ia64" != xauto; then
5288 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5291 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5292 with_libunwind_ia64="$with_libunwind"
5293 fi
5294
5295 case "$with_libunwind_ia64" in
5296 yes | no)
5297 ;;
5298 auto)
5299 for ac_header in libunwind-ia64.h
5300 do :
5301 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5302 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5303 cat >>confdefs.h <<_ACEOF
5304 #define HAVE_LIBUNWIND_IA64_H 1
5305 _ACEOF
5306
5307 fi
5308
5309 done
5310
5311 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5312 ;;
5313 *)
5314 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5315 ;;
5316 esac
5317
5318 if test x"$with_libunwind_ia64" = xyes; then
5319 for ac_header in libunwind-ia64.h
5320 do :
5321 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5322 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5323 cat >>confdefs.h <<_ACEOF
5324 #define HAVE_LIBUNWIND_IA64_H 1
5325 _ACEOF
5326
5327 fi
5328
5329 done
5330
5331 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5332 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5333 fi
5334 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5335 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5336 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5337 fi
5338
5339 opt_curses=no
5340
5341 # Check whether --with-curses was given.
5342 if test "${with_curses+set}" = set; then :
5343 withval=$with_curses; opt_curses=$withval
5344 fi
5345
5346
5347 prefer_curses=no
5348 if test "$opt_curses" = "yes"; then
5349 prefer_curses=yes
5350 fi
5351
5352 # Profiling support.
5353 # Check whether --enable-profiling was given.
5354 if test "${enable_profiling+set}" = set; then :
5355 enableval=$enable_profiling; case $enableval in
5356 yes | no)
5357 ;;
5358 *)
5359 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5360 esac
5361 else
5362 enable_profiling=no
5363 fi
5364
5365
5366 for ac_func in monstartup _mcleanup
5367 do :
5368 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5370 eval as_val=\$$as_ac_var
5371 if test "x$as_val" = x""yes; then :
5372 cat >>confdefs.h <<_ACEOF
5373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5374 _ACEOF
5375
5376 fi
5377 done
5378
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5380 $as_echo_n "checking for _etext... " >&6; }
5381 if test "${ac_cv_var__etext+set}" = set; then :
5382 $as_echo_n "(cached) " >&6
5383 else
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 #include <stdlib.h>
5387 extern char _etext;
5388
5389 int
5390 main ()
5391 {
5392 free (&_etext);
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 if ac_fn_c_try_link "$LINENO"; then :
5398 ac_cv_var__etext=yes
5399 else
5400 ac_cv_var__etext=no
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext \
5403 conftest$ac_exeext conftest.$ac_ext
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5406 $as_echo "$ac_cv_var__etext" >&6; }
5407 if test $ac_cv_var__etext = yes; then
5408
5409 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5410
5411 fi
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5413 $as_echo_n "checking for etext... " >&6; }
5414 if test "${ac_cv_var_etext+set}" = set; then :
5415 $as_echo_n "(cached) " >&6
5416 else
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5418 /* end confdefs.h. */
5419 #include <stdlib.h>
5420 extern char etext;
5421
5422 int
5423 main ()
5424 {
5425 free (&etext);
5426 ;
5427 return 0;
5428 }
5429 _ACEOF
5430 if ac_fn_c_try_link "$LINENO"; then :
5431 ac_cv_var_etext=yes
5432 else
5433 ac_cv_var_etext=no
5434 fi
5435 rm -f core conftest.err conftest.$ac_objext \
5436 conftest$ac_exeext conftest.$ac_ext
5437 fi
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5439 $as_echo "$ac_cv_var_etext" >&6; }
5440 if test $ac_cv_var_etext = yes; then
5441
5442 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5443
5444 fi
5445 if test "$enable_profiling" = yes ; then
5446 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5447 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5448 fi
5449 PROFILE_CFLAGS=-pg
5450 OLD_CFLAGS="$CFLAGS"
5451 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5452
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5454 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5455 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460
5461 int
5462 main ()
5463 {
5464 int x;
5465 ;
5466 return 0;
5467 }
5468 _ACEOF
5469 if ac_fn_c_try_compile "$LINENO"; then :
5470 ac_cv_cc_supports_pg=yes
5471 else
5472 ac_cv_cc_supports_pg=no
5473 fi
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 fi
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5477 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5478
5479 if test $ac_cv_cc_supports_pg = no; then
5480 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5481 fi
5482
5483 CFLAGS="$OLD_CFLAGS"
5484 fi
5485
5486
5487
5488 # Check whether --with-pkgversion was given.
5489 if test "${with_pkgversion+set}" = set; then :
5490 withval=$with_pkgversion; case "$withval" in
5491 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5492 no) PKGVERSION= ;;
5493 *) PKGVERSION="($withval) " ;;
5494 esac
5495 else
5496 PKGVERSION="(GDB) "
5497
5498 fi
5499
5500
5501
5502
5503
5504 # Check whether --with-bugurl was given.
5505 if test "${with_bugurl+set}" = set; then :
5506 withval=$with_bugurl; case "$withval" in
5507 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5508 no) BUGURL=
5509 ;;
5510 *) BUGURL="$withval"
5511 ;;
5512 esac
5513 else
5514 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5515
5516 fi
5517
5518 case ${BUGURL} in
5519 "")
5520 REPORT_BUGS_TO=
5521 REPORT_BUGS_TEXI=
5522 ;;
5523 *)
5524 REPORT_BUGS_TO="<$BUGURL>"
5525 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5526 ;;
5527 esac;
5528
5529
5530
5531
5532 cat >>confdefs.h <<_ACEOF
5533 #define PKGVERSION "$PKGVERSION"
5534 _ACEOF
5535
5536
5537 cat >>confdefs.h <<_ACEOF
5538 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5539 _ACEOF
5540
5541
5542 # --------------------- #
5543 # Checks for programs. #
5544 # --------------------- #
5545
5546 for ac_prog in gawk mawk nawk awk
5547 do
5548 # Extract the first word of "$ac_prog", so it can be a program name with args.
5549 set dummy $ac_prog; ac_word=$2
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5551 $as_echo_n "checking for $ac_word... " >&6; }
5552 if test "${ac_cv_prog_AWK+set}" = set; then :
5553 $as_echo_n "(cached) " >&6
5554 else
5555 if test -n "$AWK"; then
5556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5557 else
5558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561 IFS=$as_save_IFS
5562 test -z "$as_dir" && as_dir=.
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5565 ac_cv_prog_AWK="$ac_prog"
5566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 break 2
5568 fi
5569 done
5570 done
5571 IFS=$as_save_IFS
5572
5573 fi
5574 fi
5575 AWK=$ac_cv_prog_AWK
5576 if test -n "$AWK"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5578 $as_echo "$AWK" >&6; }
5579 else
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5581 $as_echo "no" >&6; }
5582 fi
5583
5584
5585 test -n "$AWK" && break
5586 done
5587
5588 # Find a good install program. We prefer a C program (faster),
5589 # so one script is as good as another. But avoid the broken or
5590 # incompatible versions:
5591 # SysV /etc/install, /usr/sbin/install
5592 # SunOS /usr/etc/install
5593 # IRIX /sbin/install
5594 # AIX /bin/install
5595 # AmigaOS /C/install, which installs bootblocks on floppy discs
5596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5599 # OS/2's system install, which has a completely different semantic
5600 # ./install, which can be erroneously created by make from ./install.sh.
5601 # Reject install programs that cannot install multiple files.
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5603 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5604 if test -z "$INSTALL"; then
5605 if test "${ac_cv_path_install+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=.
5613 # Account for people who put trailing slashes in PATH elements.
5614 case $as_dir/ in #((
5615 ./ | .// | /[cC]/* | \
5616 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5617 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5618 /usr/ucb/* ) ;;
5619 *)
5620 # OSF1 and SCO ODT 3.0 have their own names for install.
5621 # Don't use installbsd from OSF since it installs stuff as root
5622 # by default.
5623 for ac_prog in ginstall scoinst install; do
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5626 if test $ac_prog = install &&
5627 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5628 # AIX install. It has an incompatible calling convention.
5629 :
5630 elif test $ac_prog = install &&
5631 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5632 # program-specific install script used by HP pwplus--don't use.
5633 :
5634 else
5635 rm -rf conftest.one conftest.two conftest.dir
5636 echo one > conftest.one
5637 echo two > conftest.two
5638 mkdir conftest.dir
5639 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5640 test -s conftest.one && test -s conftest.two &&
5641 test -s conftest.dir/conftest.one &&
5642 test -s conftest.dir/conftest.two
5643 then
5644 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5645 break 3
5646 fi
5647 fi
5648 fi
5649 done
5650 done
5651 ;;
5652 esac
5653
5654 done
5655 IFS=$as_save_IFS
5656
5657 rm -rf conftest.one conftest.two conftest.dir
5658
5659 fi
5660 if test "${ac_cv_path_install+set}" = set; then
5661 INSTALL=$ac_cv_path_install
5662 else
5663 # As a last resort, use the slow shell script. Don't cache a
5664 # value for INSTALL within a source directory, because that will
5665 # break other packages using the cache if that directory is
5666 # removed, or if the value is a relative name.
5667 INSTALL=$ac_install_sh
5668 fi
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5671 $as_echo "$INSTALL" >&6; }
5672
5673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5674 # It thinks the first close brace ends the variable substitution.
5675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5676
5677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5678
5679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5682 $as_echo_n "checking whether ln -s works... " >&6; }
5683 LN_S=$as_ln_s
5684 if test "$LN_S" = "ln -s"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5686 $as_echo "yes" >&6; }
5687 else
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5689 $as_echo "no, using $LN_S" >&6; }
5690 fi
5691
5692 if test -n "$ac_tool_prefix"; then
5693 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5694 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5696 $as_echo_n "checking for $ac_word... " >&6; }
5697 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5698 $as_echo_n "(cached) " >&6
5699 else
5700 if test -n "$RANLIB"; then
5701 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5702 else
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5704 for as_dir in $PATH
5705 do
5706 IFS=$as_save_IFS
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 break 2
5713 fi
5714 done
5715 done
5716 IFS=$as_save_IFS
5717
5718 fi
5719 fi
5720 RANLIB=$ac_cv_prog_RANLIB
5721 if test -n "$RANLIB"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5723 $as_echo "$RANLIB" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729
5730 fi
5731 if test -z "$ac_cv_prog_RANLIB"; then
5732 ac_ct_RANLIB=$RANLIB
5733 # Extract the first word of "ranlib", so it can be a program name with args.
5734 set dummy ranlib; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$ac_ct_RANLIB"; then
5741 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750 ac_cv_prog_ac_ct_RANLIB="ranlib"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5761 if test -n "$ac_ct_RANLIB"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5763 $as_echo "$ac_ct_RANLIB" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768
5769 if test "x$ac_ct_RANLIB" = x; then
5770 RANLIB=":"
5771 else
5772 case $cross_compiling:$ac_tool_warned in
5773 yes:)
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5776 ac_tool_warned=yes ;;
5777 esac
5778 RANLIB=$ac_ct_RANLIB
5779 fi
5780 else
5781 RANLIB="$ac_cv_prog_RANLIB"
5782 fi
5783
5784 for ac_prog in 'bison -y' byacc
5785 do
5786 # Extract the first word of "$ac_prog", so it can be a program name with args.
5787 set dummy $ac_prog; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if test "${ac_cv_prog_YACC+set}" = set; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if test -n "$YACC"; then
5794 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5803 ac_cv_prog_YACC="$ac_prog"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807 done
5808 done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 YACC=$ac_cv_prog_YACC
5814 if test -n "$YACC"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5816 $as_echo "$YACC" >&6; }
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823 test -n "$YACC" && break
5824 done
5825 test -n "$YACC" || YACC="yacc"
5826
5827
5828 if test -n "$ac_tool_prefix"; then
5829 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5830 set dummy ${ac_tool_prefix}ar; ac_word=$2
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832 $as_echo_n "checking for $ac_word... " >&6; }
5833 if test "${ac_cv_prog_AR+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 if test -n "$AR"; then
5837 ac_cv_prog_AR="$AR" # Let the user override the test.
5838 else
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840 for as_dir in $PATH
5841 do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_prog_AR="${ac_tool_prefix}ar"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5849 fi
5850 done
5851 done
5852 IFS=$as_save_IFS
5853
5854 fi
5855 fi
5856 AR=$ac_cv_prog_AR
5857 if test -n "$AR"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5859 $as_echo "$AR" >&6; }
5860 else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865
5866 fi
5867 if test -z "$ac_cv_prog_AR"; then
5868 ac_ct_AR=$AR
5869 # Extract the first word of "ar", so it can be a program name with args.
5870 set dummy ar; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 if test -n "$ac_ct_AR"; then
5877 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882 IFS=$as_save_IFS
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_prog_ac_ct_AR="ar"
5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888 break 2
5889 fi
5890 done
5891 done
5892 IFS=$as_save_IFS
5893
5894 fi
5895 fi
5896 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5897 if test -n "$ac_ct_AR"; then
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5899 $as_echo "$ac_ct_AR" >&6; }
5900 else
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905 if test "x$ac_ct_AR" = x; then
5906 AR=""
5907 else
5908 case $cross_compiling:$ac_tool_warned in
5909 yes:)
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5912 ac_tool_warned=yes ;;
5913 esac
5914 AR=$ac_ct_AR
5915 fi
5916 else
5917 AR="$ac_cv_prog_AR"
5918 fi
5919
5920 if test -n "$ac_tool_prefix"; then
5921 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5922 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if test -n "$DLLTOOL"; then
5929 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5933 do
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5941 fi
5942 done
5943 done
5944 IFS=$as_save_IFS
5945
5946 fi
5947 fi
5948 DLLTOOL=$ac_cv_prog_DLLTOOL
5949 if test -n "$DLLTOOL"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5951 $as_echo "$DLLTOOL" >&6; }
5952 else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5955 fi
5956
5957
5958 fi
5959 if test -z "$ac_cv_prog_DLLTOOL"; then
5960 ac_ct_DLLTOOL=$DLLTOOL
5961 # Extract the first word of "dlltool", so it can be a program name with args.
5962 set dummy dlltool; ac_word=$2
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 $as_echo_n "checking for $ac_word... " >&6; }
5965 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if test -n "$ac_ct_DLLTOOL"; then
5969 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5973 do
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5981 fi
5982 done
5983 done
5984 IFS=$as_save_IFS
5985
5986 fi
5987 fi
5988 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5989 if test -n "$ac_ct_DLLTOOL"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5991 $as_echo "$ac_ct_DLLTOOL" >&6; }
5992 else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
5995 fi
5996
5997 if test "x$ac_ct_DLLTOOL" = x; then
5998 DLLTOOL=""
5999 else
6000 case $cross_compiling:$ac_tool_warned in
6001 yes:)
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004 ac_tool_warned=yes ;;
6005 esac
6006 DLLTOOL=$ac_ct_DLLTOOL
6007 fi
6008 else
6009 DLLTOOL="$ac_cv_prog_DLLTOOL"
6010 fi
6011
6012 if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}windres; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test "${ac_cv_prog_WINDRES+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$WINDRES"; then
6021 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6025 do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6033 fi
6034 done
6035 done
6036 IFS=$as_save_IFS
6037
6038 fi
6039 fi
6040 WINDRES=$ac_cv_prog_WINDRES
6041 if test -n "$WINDRES"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6043 $as_echo "$WINDRES" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6047 fi
6048
6049
6050 fi
6051 if test -z "$ac_cv_prog_WINDRES"; then
6052 ac_ct_WINDRES=$WINDRES
6053 # Extract the first word of "windres", so it can be a program name with args.
6054 set dummy windres; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$ac_ct_WINDRES"; then
6061 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_ac_ct_WINDRES="windres"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6073 fi
6074 done
6075 done
6076 IFS=$as_save_IFS
6077
6078 fi
6079 fi
6080 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6081 if test -n "$ac_ct_WINDRES"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6083 $as_echo "$ac_ct_WINDRES" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6087 fi
6088
6089 if test "x$ac_ct_WINDRES" = x; then
6090 WINDRES=""
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098 WINDRES=$ac_ct_WINDRES
6099 fi
6100 else
6101 WINDRES="$ac_cv_prog_WINDRES"
6102 fi
6103
6104
6105 # Needed for GNU/Hurd.
6106 if test -n "$ac_tool_prefix"; then
6107 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6108 set dummy ${ac_tool_prefix}mig; ac_word=$2
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6110 $as_echo_n "checking for $ac_word... " >&6; }
6111 if test "${ac_cv_prog_MIG+set}" = set; then :
6112 $as_echo_n "(cached) " >&6
6113 else
6114 if test -n "$MIG"; then
6115 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6116 else
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6119 do
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6127 fi
6128 done
6129 done
6130 IFS=$as_save_IFS
6131
6132 fi
6133 fi
6134 MIG=$ac_cv_prog_MIG
6135 if test -n "$MIG"; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6137 $as_echo "$MIG" >&6; }
6138 else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6140 $as_echo "no" >&6; }
6141 fi
6142
6143
6144 fi
6145 if test -z "$ac_cv_prog_MIG"; then
6146 ac_ct_MIG=$MIG
6147 # Extract the first word of "mig", so it can be a program name with args.
6148 set dummy mig; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -n "$ac_ct_MIG"; then
6155 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6164 ac_cv_prog_ac_ct_MIG="mig"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6167 fi
6168 done
6169 done
6170 IFS=$as_save_IFS
6171
6172 fi
6173 fi
6174 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6175 if test -n "$ac_ct_MIG"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6177 $as_echo "$ac_ct_MIG" >&6; }
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6181 fi
6182
6183 if test "x$ac_ct_MIG" = x; then
6184 MIG=""
6185 else
6186 case $cross_compiling:$ac_tool_warned in
6187 yes:)
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6190 ac_tool_warned=yes ;;
6191 esac
6192 MIG=$ac_ct_MIG
6193 fi
6194 else
6195 MIG="$ac_cv_prog_MIG"
6196 fi
6197
6198
6199 # ---------------------- #
6200 # Checks for libraries. #
6201 # ---------------------- #
6202
6203 # We might need to link with -lm; most simulators need it.
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6205 $as_echo_n "checking for main in -lm... " >&6; }
6206 if test "${ac_cv_lib_m_main+set}" = set; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 ac_check_lib_save_LIBS=$LIBS
6210 LIBS="-lm $LIBS"
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213
6214
6215 int
6216 main ()
6217 {
6218 return main ();
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"; then :
6224 ac_cv_lib_m_main=yes
6225 else
6226 ac_cv_lib_m_main=no
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6230 LIBS=$ac_check_lib_save_LIBS
6231 fi
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6233 $as_echo "$ac_cv_lib_m_main" >&6; }
6234 if test "x$ac_cv_lib_m_main" = x""yes; then :
6235 cat >>confdefs.h <<_ACEOF
6236 #define HAVE_LIBM 1
6237 _ACEOF
6238
6239 LIBS="-lm $LIBS"
6240
6241 fi
6242
6243
6244 # We need to link with -lw to get `wctype' on Solaris before Solaris
6245 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6246 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6247 # is known to have this problem). Therefore we avoid libw if we can.
6248 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6249 if test "x$ac_cv_func_wctype" = x""yes; then :
6250
6251 else
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6253 $as_echo_n "checking for wctype in -lw... " >&6; }
6254 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 ac_check_lib_save_LIBS=$LIBS
6258 LIBS="-lw $LIBS"
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261
6262 /* Override any GCC internal prototype to avoid an error.
6263 Use char because int might match the return type of a GCC
6264 builtin and then its argument prototype would still apply. */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 char wctype ();
6269 int
6270 main ()
6271 {
6272 return wctype ();
6273 ;
6274 return 0;
6275 }
6276 _ACEOF
6277 if ac_fn_c_try_link "$LINENO"; then :
6278 ac_cv_lib_w_wctype=yes
6279 else
6280 ac_cv_lib_w_wctype=no
6281 fi
6282 rm -f core conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6284 LIBS=$ac_check_lib_save_LIBS
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6287 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6288 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6289 cat >>confdefs.h <<_ACEOF
6290 #define HAVE_LIBW 1
6291 _ACEOF
6292
6293 LIBS="-lw $LIBS"
6294
6295 fi
6296
6297 fi
6298
6299
6300 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6302 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6303 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6304 $as_echo_n "(cached) " >&6
6305 else
6306 ac_func_search_save_LIBS=$LIBS
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309
6310 /* Override any GCC internal prototype to avoid an error.
6311 Use char because int might match the return type of a GCC
6312 builtin and then its argument prototype would still apply. */
6313 #ifdef __cplusplus
6314 extern "C"
6315 #endif
6316 char gethostbyname ();
6317 int
6318 main ()
6319 {
6320 return gethostbyname ();
6321 ;
6322 return 0;
6323 }
6324 _ACEOF
6325 for ac_lib in '' nsl; do
6326 if test -z "$ac_lib"; then
6327 ac_res="none required"
6328 else
6329 ac_res=-l$ac_lib
6330 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6331 fi
6332 if ac_fn_c_try_link "$LINENO"; then :
6333 ac_cv_search_gethostbyname=$ac_res
6334 fi
6335 rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext
6337 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6338 break
6339 fi
6340 done
6341 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6342
6343 else
6344 ac_cv_search_gethostbyname=no
6345 fi
6346 rm conftest.$ac_ext
6347 LIBS=$ac_func_search_save_LIBS
6348 fi
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6350 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6351 ac_res=$ac_cv_search_gethostbyname
6352 if test "$ac_res" != no; then :
6353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6354
6355 fi
6356
6357
6358 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6360 $as_echo_n "checking for library containing socketpair... " >&6; }
6361 if test "${ac_cv_search_socketpair+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 ac_func_search_save_LIBS=$LIBS
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367
6368 /* Override any GCC internal prototype to avoid an error.
6369 Use char because int might match the return type of a GCC
6370 builtin and then its argument prototype would still apply. */
6371 #ifdef __cplusplus
6372 extern "C"
6373 #endif
6374 char socketpair ();
6375 int
6376 main ()
6377 {
6378 return socketpair ();
6379 ;
6380 return 0;
6381 }
6382 _ACEOF
6383 for ac_lib in '' socket; do
6384 if test -z "$ac_lib"; then
6385 ac_res="none required"
6386 else
6387 ac_res=-l$ac_lib
6388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6389 fi
6390 if ac_fn_c_try_link "$LINENO"; then :
6391 ac_cv_search_socketpair=$ac_res
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext \
6394 conftest$ac_exeext
6395 if test "${ac_cv_search_socketpair+set}" = set; then :
6396 break
6397 fi
6398 done
6399 if test "${ac_cv_search_socketpair+set}" = set; then :
6400
6401 else
6402 ac_cv_search_socketpair=no
6403 fi
6404 rm conftest.$ac_ext
6405 LIBS=$ac_func_search_save_LIBS
6406 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6408 $as_echo "$ac_cv_search_socketpair" >&6; }
6409 ac_res=$ac_cv_search_socketpair
6410 if test "$ac_res" != no; then :
6411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6412
6413 fi
6414
6415
6416 # Link in zlib if we can. This allows us to read compressed debug sections.
6417
6418 # See if the user specified whether he wants zlib support or not.
6419
6420 # Check whether --with-zlib was given.
6421 if test "${with_zlib+set}" = set; then :
6422 withval=$with_zlib;
6423 else
6424 with_zlib=auto
6425 fi
6426
6427
6428 if test "$with_zlib" != "no"; then
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6430 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6431 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 ac_func_search_save_LIBS=$LIBS
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437
6438 /* Override any GCC internal prototype to avoid an error.
6439 Use char because int might match the return type of a GCC
6440 builtin and then its argument prototype would still apply. */
6441 #ifdef __cplusplus
6442 extern "C"
6443 #endif
6444 char zlibVersion ();
6445 int
6446 main ()
6447 {
6448 return zlibVersion ();
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 for ac_lib in '' z; do
6454 if test -z "$ac_lib"; then
6455 ac_res="none required"
6456 else
6457 ac_res=-l$ac_lib
6458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6459 fi
6460 if ac_fn_c_try_link "$LINENO"; then :
6461 ac_cv_search_zlibVersion=$ac_res
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext \
6464 conftest$ac_exeext
6465 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6466 break
6467 fi
6468 done
6469 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6470
6471 else
6472 ac_cv_search_zlibVersion=no
6473 fi
6474 rm conftest.$ac_ext
6475 LIBS=$ac_func_search_save_LIBS
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6478 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6479 ac_res=$ac_cv_search_zlibVersion
6480 if test "$ac_res" != no; then :
6481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6482 for ac_header in zlib.h
6483 do :
6484 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6485 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6486 cat >>confdefs.h <<_ACEOF
6487 #define HAVE_ZLIB_H 1
6488 _ACEOF
6489
6490 fi
6491
6492 done
6493
6494 fi
6495
6496 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6497 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6498 fi
6499 fi
6500
6501
6502 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6504 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6505 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6507 else
6508 ac_func_search_save_LIBS=$LIBS
6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6510 /* end confdefs.h. */
6511
6512 /* Override any GCC internal prototype to avoid an error.
6513 Use char because int might match the return type of a GCC
6514 builtin and then its argument prototype would still apply. */
6515 #ifdef __cplusplus
6516 extern "C"
6517 #endif
6518 char dlgetmodinfo ();
6519 int
6520 main ()
6521 {
6522 return dlgetmodinfo ();
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 for ac_lib in '' dl xpdl; do
6528 if test -z "$ac_lib"; then
6529 ac_res="none required"
6530 else
6531 ac_res=-l$ac_lib
6532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6533 fi
6534 if ac_fn_c_try_link "$LINENO"; then :
6535 ac_cv_search_dlgetmodinfo=$ac_res
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext \
6538 conftest$ac_exeext
6539 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6540 break
6541 fi
6542 done
6543 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6544
6545 else
6546 ac_cv_search_dlgetmodinfo=no
6547 fi
6548 rm conftest.$ac_ext
6549 LIBS=$ac_func_search_save_LIBS
6550 fi
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6552 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6553 ac_res=$ac_cv_search_dlgetmodinfo
6554 if test "$ac_res" != no; then :
6555 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6556
6557 fi
6558
6559
6560
6561
6562
6563 # Check whether --with-libiconv-prefix was given.
6564 if test "${with_libiconv_prefix+set}" = set; then :
6565 withval=$with_libiconv_prefix;
6566 for dir in `echo "$withval" | tr : ' '`; do
6567 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6568 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6569 done
6570
6571 fi
6572
6573
6574 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6575 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6576
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6578 $as_echo_n "checking for iconv... " >&6; }
6579 if test "${am_cv_func_iconv+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582
6583 am_cv_func_iconv="no, consider installing GNU libiconv"
6584 am_cv_lib_iconv=no
6585 am_cv_use_build_libiconv=no
6586 am_cv_build_libiconv_path=
6587
6588 # If libiconv is part of the build tree, then try using it over
6589 # any system iconv.
6590 if test -d ../libiconv; then
6591 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6592 am_save_LIBS="$LIBS"
6593 am_save_CPPFLAGS="$CPPFLAGS"
6594 LIBS="$LIBS $lib_dir/libiconv.a"
6595 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 #include <stdlib.h>
6599 #include <iconv.h>
6600 int
6601 main ()
6602 {
6603 iconv_t cd = iconv_open("","");
6604 iconv(cd,NULL,NULL,NULL,NULL);
6605 iconv_close(cd);
6606 ;
6607 return 0;
6608 }
6609 _ACEOF
6610 if ac_fn_c_try_link "$LINENO"; then :
6611 am_cv_use_build_libiconv=yes
6612 am_cv_build_libiconv_path=$lib_dir/libiconv.a
6613 am_cv_lib_iconv=yes
6614 am_cv_func_iconv=yes
6615 fi
6616 rm -f core conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6618 LIBS="$am_save_LIBS"
6619 CPPFLAGS="$am_save_CPPFLAGS"
6620 if test "$am_cv_use_build_libiconv" = "yes"; then
6621 break
6622 fi
6623 done
6624 fi
6625
6626 # Next, try to find iconv in libc.
6627 if test "$am_cv_func_iconv" != yes; then
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6630 #include <stdlib.h>
6631 #include <iconv.h>
6632 int
6633 main ()
6634 {
6635 iconv_t cd = iconv_open("","");
6636 iconv(cd,NULL,NULL,NULL,NULL);
6637 iconv_close(cd);
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 if ac_fn_c_try_link "$LINENO"; then :
6643 am_cv_func_iconv=yes
6644 fi
6645 rm -f core conftest.err conftest.$ac_objext \
6646 conftest$ac_exeext conftest.$ac_ext
6647 fi
6648
6649 # If iconv was not in libc, try -liconv. In this case, arrange to
6650 # look in the libiconv prefix, if it was specified by the user.
6651 if test "$am_cv_func_iconv" != yes; then
6652 am_save_CPPFLAGS="$CPPFLAGS"
6653 am_save_LIBS="$LIBS"
6654 if test -n "$LIBICONV_INCLUDE"; then
6655 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6656 LIBS="$LIBS $LIBICONV_LIBDIR"
6657 fi
6658 LIBS="$LIBS -liconv"
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6661 #include <stdlib.h>
6662 #include <iconv.h>
6663 int
6664 main ()
6665 {
6666 iconv_t cd = iconv_open("","");
6667 iconv(cd,NULL,NULL,NULL,NULL);
6668 iconv_close(cd);
6669 ;
6670 return 0;
6671 }
6672 _ACEOF
6673 if ac_fn_c_try_link "$LINENO"; then :
6674 am_cv_lib_iconv=yes
6675 am_cv_func_iconv=yes
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext \
6678 conftest$ac_exeext conftest.$ac_ext
6679 LIBS="$am_save_LIBS"
6680 CPPFLAGS="$am_save_CPPFLAGS"
6681 fi
6682
6683 fi
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6685 $as_echo "$am_cv_func_iconv" >&6; }
6686
6687 # Set the various flags based on the cache variables. We can't rely
6688 # on the flags to remain set from the above code, due to caching.
6689 LIBICONV=
6690 if test "$am_cv_lib_iconv" = yes; then
6691 LIBICONV="-liconv"
6692 else
6693 LIBICONV_LIBDIR=
6694 LIBICONV_INCLUDE=
6695 fi
6696 if test "$am_cv_use_build_libiconv" = yes; then
6697 LIBICONV="$am_cv_build_libiconv_path"
6698 LIBICONV_LIBDIR=""
6699 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6700 fi
6701 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6702 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6703
6704 if test "$am_cv_func_iconv" = yes; then
6705
6706 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6709 $as_echo_n "checking for iconv declaration... " >&6; }
6710 if test "${am_cv_proto_iconv+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6712 else
6713
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6716
6717 #include <stdlib.h>
6718 #include <iconv.h>
6719 extern
6720 #ifdef __cplusplus
6721 "C"
6722 #endif
6723 #if defined(__STDC__) || defined(__cplusplus)
6724 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6725 #else
6726 size_t iconv();
6727 #endif
6728
6729 int
6730 main ()
6731 {
6732
6733 ;
6734 return 0;
6735 }
6736 _ACEOF
6737 if ac_fn_c_try_compile "$LINENO"; then :
6738 am_cv_proto_iconv_arg1=""
6739 else
6740 am_cv_proto_iconv_arg1="const"
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6743 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);"
6744 fi
6745
6746 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6748 }$am_cv_proto_iconv" >&5
6749 $as_echo "${ac_t:-
6750 }$am_cv_proto_iconv" >&6; }
6751
6752 cat >>confdefs.h <<_ACEOF
6753 #define ICONV_CONST $am_cv_proto_iconv_arg1
6754 _ACEOF
6755
6756 fi
6757
6758
6759 # GDB may fork/exec the iconv program to get the list of supported character
6760 # sets. Allow the user to specify where to find it.
6761 # There are several factors affecting the choice of option name:
6762 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6763 # the build-time location of libiconv files.
6764 # - The program we need to find is iconv, which comes with glibc. The user
6765 # doesn't necessarily have libiconv installed. Therefore naming this
6766 # --with-libiconv-foo feels wrong.
6767 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6768 # defined to work on directories not files (though it really doesn't know
6769 # the difference).
6770 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6771 # with --with-libiconv-prefix.
6772 # Putting these together is why the option name is --with-iconv-bin.
6773
6774
6775 # Check whether --with-iconv-bin was given.
6776 if test "${with_iconv_bin+set}" = set; then :
6777 withval=$with_iconv_bin; iconv_bin="${withval}"
6778
6779 cat >>confdefs.h <<_ACEOF
6780 #define ICONV_BIN "${iconv_bin}"
6781 _ACEOF
6782
6783
6784 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6785 if test "x$prefix" = xNONE; then
6786 test_prefix=/usr/local
6787 else
6788 test_prefix=$prefix
6789 fi
6790 else
6791 test_prefix=$exec_prefix
6792 fi
6793 value=0
6794 case ${iconv_bin} in
6795 "${test_prefix}"|"${test_prefix}/"*|\
6796 '${exec_prefix}'|'${exec_prefix}/'*)
6797 value=1
6798 ;;
6799 esac
6800
6801 cat >>confdefs.h <<_ACEOF
6802 #define ICONV_BIN_RELOCATABLE $value
6803 _ACEOF
6804
6805
6806
6807 fi
6808
6809
6810 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6811 # There is a very specific comment in /usr/include/curses.h explaining that
6812 # termcap routines built into libcurses must not be used.
6813 #
6814 # The symptoms we observed so far is GDB unexpectedly changing
6815 # the terminal settings when tgetent is called - this is particularly
6816 # visible as the output is missing carriage returns, and so rapidly
6817 # becomes very hard to read.
6818 #
6819 # The readline configure script has already decided that libtermcap
6820 # was enough for its purposes, and so decided to build readline using
6821 # libtermcap. Since the TUI mode requires curses, building GDB with
6822 # TUI enabled results in both libraries to be used at the same time,
6823 # which is not allowed. This basically means that GDB with TUI is
6824 # broken on alpha-osf.
6825
6826 case $host_os in
6827 osf* )
6828 if test x"$enable_tui" = xyes; then
6829 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6830 fi
6831 if test x"$enable_tui" = xauto; then
6832 enable_tui=no
6833 fi
6834 ;;
6835 esac
6836
6837 # For the TUI, we need enhanced curses functionality.
6838 if test x"$enable_tui" != xno; then
6839 prefer_curses=yes
6840 fi
6841
6842 curses_found=no
6843 if test x"$prefer_curses" = xyes; then
6844 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6845 # curses library because the latter might not provide all the
6846 # functionality we need. However, this leads to problems on systems
6847 # where the linker searches /usr/local/lib, but the compiler doesn't
6848 # search /usr/local/include, if ncurses is installed in /usr/local. A
6849 # default installation of ncurses on alpha*-dec-osf* will lead to such
6850 # a situation.
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6852 $as_echo_n "checking for library containing waddstr... " >&6; }
6853 if test "${ac_cv_search_waddstr+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 ac_func_search_save_LIBS=$LIBS
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859
6860 /* Override any GCC internal prototype to avoid an error.
6861 Use char because int might match the return type of a GCC
6862 builtin and then its argument prototype would still apply. */
6863 #ifdef __cplusplus
6864 extern "C"
6865 #endif
6866 char waddstr ();
6867 int
6868 main ()
6869 {
6870 return waddstr ();
6871 ;
6872 return 0;
6873 }
6874 _ACEOF
6875 for ac_lib in '' ncurses cursesX curses; do
6876 if test -z "$ac_lib"; then
6877 ac_res="none required"
6878 else
6879 ac_res=-l$ac_lib
6880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6881 fi
6882 if ac_fn_c_try_link "$LINENO"; then :
6883 ac_cv_search_waddstr=$ac_res
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext \
6886 conftest$ac_exeext
6887 if test "${ac_cv_search_waddstr+set}" = set; then :
6888 break
6889 fi
6890 done
6891 if test "${ac_cv_search_waddstr+set}" = set; then :
6892
6893 else
6894 ac_cv_search_waddstr=no
6895 fi
6896 rm conftest.$ac_ext
6897 LIBS=$ac_func_search_save_LIBS
6898 fi
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6900 $as_echo "$ac_cv_search_waddstr" >&6; }
6901 ac_res=$ac_cv_search_waddstr
6902 if test "$ac_res" != no; then :
6903 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6904
6905 fi
6906
6907
6908 if test "$ac_cv_search_waddstr" != no; then
6909 curses_found=yes
6910 fi
6911 fi
6912
6913 # Check whether we should enable the TUI, but only do so if we really
6914 # can.
6915 if test x"$enable_tui" != xno; then
6916 if test -d $srcdir/tui; then
6917 if test "$curses_found" != no; then
6918 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6919 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6920 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6921 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6922 else
6923 if test x"$enable_tui" = xyes; then
6924 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6925 else
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6927 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6928 fi
6929 fi
6930 fi
6931 fi
6932
6933 # Since GDB uses Readline, we need termcap functionality. In many
6934 # cases this will be provided by the curses library, but some systems
6935 # have a seperate termcap library, or no curses library at all.
6936
6937 case $host_os in
6938 cygwin*)
6939 if test -d $srcdir/libtermcap; then
6940 LIBS="../libtermcap/libtermcap.a $LIBS"
6941 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6942 fi ;;
6943 go32* | *djgpp*)
6944 ac_cv_search_tgetent="none required"
6945 ;;
6946 *mingw32*)
6947 ac_cv_search_tgetent="none required"
6948 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
6949 ;;
6950 esac
6951
6952 # These are the libraries checked by Readline.
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6954 $as_echo_n "checking for library containing tgetent... " >&6; }
6955 if test "${ac_cv_search_tgetent+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
6957 else
6958 ac_func_search_save_LIBS=$LIBS
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960 /* end confdefs.h. */
6961
6962 /* Override any GCC internal prototype to avoid an error.
6963 Use char because int might match the return type of a GCC
6964 builtin and then its argument prototype would still apply. */
6965 #ifdef __cplusplus
6966 extern "C"
6967 #endif
6968 char tgetent ();
6969 int
6970 main ()
6971 {
6972 return tgetent ();
6973 ;
6974 return 0;
6975 }
6976 _ACEOF
6977 for ac_lib in '' termcap tinfo curses ncurses; do
6978 if test -z "$ac_lib"; then
6979 ac_res="none required"
6980 else
6981 ac_res=-l$ac_lib
6982 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6983 fi
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 ac_cv_search_tgetent=$ac_res
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext \
6988 conftest$ac_exeext
6989 if test "${ac_cv_search_tgetent+set}" = set; then :
6990 break
6991 fi
6992 done
6993 if test "${ac_cv_search_tgetent+set}" = set; then :
6994
6995 else
6996 ac_cv_search_tgetent=no
6997 fi
6998 rm conftest.$ac_ext
6999 LIBS=$ac_func_search_save_LIBS
7000 fi
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
7002 $as_echo "$ac_cv_search_tgetent" >&6; }
7003 ac_res=$ac_cv_search_tgetent
7004 if test "$ac_res" != no; then :
7005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7006
7007 fi
7008
7009
7010 if test "$ac_cv_search_tgetent" = no; then
7011 as_fn_error "no termcap library found" "$LINENO" 5
7012 fi
7013
7014
7015 # Check whether --with-system-readline was given.
7016 if test "${with_system_readline+set}" = set; then :
7017 withval=$with_system_readline;
7018 fi
7019
7020
7021 if test "$with_system_readline" = yes; then
7022 READLINE=-lreadline
7023 READLINE_DEPS=
7024 READLINE_CFLAGS=
7025 READLINE_TEXI_INCFLAG=
7026 else
7027 READLINE='$(READLINE_DIR)/libreadline.a'
7028 READLINE_DEPS='$(READLINE)'
7029 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
7030 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7031 fi
7032
7033
7034
7035
7036
7037 if $development; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
7039 $as_echo_n "checking for main in -lmcheck... " >&6; }
7040 if test "${ac_cv_lib_mcheck_main+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 ac_check_lib_save_LIBS=$LIBS
7044 LIBS="-lmcheck $LIBS"
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047
7048
7049 int
7050 main ()
7051 {
7052 return main ();
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 if ac_fn_c_try_link "$LINENO"; then :
7058 ac_cv_lib_mcheck_main=yes
7059 else
7060 ac_cv_lib_mcheck_main=no
7061 fi
7062 rm -f core conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
7064 LIBS=$ac_check_lib_save_LIBS
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
7067 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
7068 if test "x$ac_cv_lib_mcheck_main" = x""yes; then :
7069 cat >>confdefs.h <<_ACEOF
7070 #define HAVE_LIBMCHECK 1
7071 _ACEOF
7072
7073 LIBS="-lmcheck $LIBS"
7074
7075 fi
7076
7077 fi
7078
7079 # Generate jit-reader.h
7080
7081 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7082 TARGET_PTR=
7083
7084 # The cast to long int works around a bug in the HP C Compiler
7085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7087 # This bug is HP SR number 8606223364.
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7089 $as_echo_n "checking size of unsigned long long... " >&6; }
7090 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7091 $as_echo_n "(cached) " >&6
7092 else
7093 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7094
7095 else
7096 if test "$ac_cv_type_unsigned_long_long" = yes; then
7097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7099 { as_fn_set_status 77
7100 as_fn_error "cannot compute sizeof (unsigned long long)
7101 See \`config.log' for more details." "$LINENO" 5; }; }
7102 else
7103 ac_cv_sizeof_unsigned_long_long=0
7104 fi
7105 fi
7106
7107 fi
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7109 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7110
7111
7112
7113 cat >>confdefs.h <<_ACEOF
7114 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7115 _ACEOF
7116
7117
7118 # The cast to long int works around a bug in the HP C Compiler
7119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7121 # This bug is HP SR number 8606223364.
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7123 $as_echo_n "checking size of unsigned long... " >&6; }
7124 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7128
7129 else
7130 if test "$ac_cv_type_unsigned_long" = yes; then
7131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7133 { as_fn_set_status 77
7134 as_fn_error "cannot compute sizeof (unsigned long)
7135 See \`config.log' for more details." "$LINENO" 5; }; }
7136 else
7137 ac_cv_sizeof_unsigned_long=0
7138 fi
7139 fi
7140
7141 fi
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7143 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7144
7145
7146
7147 cat >>confdefs.h <<_ACEOF
7148 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7149 _ACEOF
7150
7151
7152 # The cast to long int works around a bug in the HP C Compiler
7153 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7154 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7155 # This bug is HP SR number 8606223364.
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7157 $as_echo_n "checking size of unsigned __int128... " >&6; }
7158 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7159 $as_echo_n "(cached) " >&6
7160 else
7161 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7162
7163 else
7164 if test "$ac_cv_type_unsigned___int128" = yes; then
7165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7167 { as_fn_set_status 77
7168 as_fn_error "cannot compute sizeof (unsigned __int128)
7169 See \`config.log' for more details." "$LINENO" 5; }; }
7170 else
7171 ac_cv_sizeof_unsigned___int128=0
7172 fi
7173 fi
7174
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7177 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7178
7179
7180
7181 cat >>confdefs.h <<_ACEOF
7182 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7183 _ACEOF
7184
7185
7186
7187 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7188 TARGET_PTR="unsigned long"
7189 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7190 TARGET_PTR="unsigned long long"
7191 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7192 TARGET_PTR="unsigned __int128"
7193 else
7194 TARGET_PTR="unsigned long"
7195 fi
7196
7197
7198 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7199
7200
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7202 $as_echo_n "checking for library containing dlopen... " >&6; }
7203 if test "${ac_cv_search_dlopen+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 ac_func_search_save_LIBS=$LIBS
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7209
7210 /* Override any GCC internal prototype to avoid an error.
7211 Use char because int might match the return type of a GCC
7212 builtin and then its argument prototype would still apply. */
7213 #ifdef __cplusplus
7214 extern "C"
7215 #endif
7216 char dlopen ();
7217 int
7218 main ()
7219 {
7220 return dlopen ();
7221 ;
7222 return 0;
7223 }
7224 _ACEOF
7225 for ac_lib in '' dl; do
7226 if test -z "$ac_lib"; then
7227 ac_res="none required"
7228 else
7229 ac_res=-l$ac_lib
7230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7231 fi
7232 if ac_fn_c_try_link "$LINENO"; then :
7233 ac_cv_search_dlopen=$ac_res
7234 fi
7235 rm -f core conftest.err conftest.$ac_objext \
7236 conftest$ac_exeext
7237 if test "${ac_cv_search_dlopen+set}" = set; then :
7238 break
7239 fi
7240 done
7241 if test "${ac_cv_search_dlopen+set}" = set; then :
7242
7243 else
7244 ac_cv_search_dlopen=no
7245 fi
7246 rm conftest.$ac_ext
7247 LIBS=$ac_func_search_save_LIBS
7248 fi
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7250 $as_echo "$ac_cv_search_dlopen" >&6; }
7251 ac_res=$ac_cv_search_dlopen
7252 if test "$ac_res" != no; then :
7253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7254
7255 fi
7256
7257
7258
7259
7260 # Check whether --with-jit-reader-dir was given.
7261 if test "${with_jit_reader_dir+set}" = set; then :
7262 withval=$with_jit_reader_dir;
7263 JIT_READER_DIR=$withval
7264 else
7265 JIT_READER_DIR=${libdir}/gdb
7266 fi
7267
7268
7269 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7270 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7271 ac_define_dir=`eval echo $JIT_READER_DIR`
7272 ac_define_dir=`eval echo $ac_define_dir`
7273
7274 cat >>confdefs.h <<_ACEOF
7275 #define JIT_READER_DIR "$ac_define_dir"
7276 _ACEOF
7277
7278
7279
7280
7281 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7282 if test "x$prefix" = xNONE; then
7283 test_prefix=/usr/local
7284 else
7285 test_prefix=$prefix
7286 fi
7287 else
7288 test_prefix=$exec_prefix
7289 fi
7290 value=0
7291 case ${ac_define_dir} in
7292 "${test_prefix}"|"${test_prefix}/"*|\
7293 '${exec_prefix}'|'${exec_prefix}/'*)
7294 value=1
7295 ;;
7296 esac
7297
7298 cat >>confdefs.h <<_ACEOF
7299 #define JIT_READER_DIR_RELOCATABLE $value
7300 _ACEOF
7301
7302
7303
7304
7305
7306 # Check whether --with-expat was given.
7307 if test "${with_expat+set}" = set; then :
7308 withval=$with_expat;
7309 else
7310 with_expat=auto
7311 fi
7312
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7314 $as_echo_n "checking whether to use expat... " >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7316 $as_echo "$with_expat" >&6; }
7317
7318 if test "${with_expat}" = no; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7320 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7321 HAVE_LIBEXPAT=no
7322 else
7323
7324 if test "X$prefix" = "XNONE"; then
7325 acl_final_prefix="$ac_default_prefix"
7326 else
7327 acl_final_prefix="$prefix"
7328 fi
7329 if test "X$exec_prefix" = "XNONE"; then
7330 acl_final_exec_prefix='${prefix}'
7331 else
7332 acl_final_exec_prefix="$exec_prefix"
7333 fi
7334 acl_save_prefix="$prefix"
7335 prefix="$acl_final_prefix"
7336 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7337 prefix="$acl_save_prefix"
7338
7339
7340 # Check whether --with-gnu-ld was given.
7341 if test "${with_gnu_ld+set}" = set; then :
7342 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7343 else
7344 with_gnu_ld=no
7345 fi
7346
7347 # Prepare PATH_SEPARATOR.
7348 # The user is always right.
7349 if test "${PATH_SEPARATOR+set}" != set; then
7350 echo "#! /bin/sh" >conf$$.sh
7351 echo "exit 0" >>conf$$.sh
7352 chmod +x conf$$.sh
7353 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7354 PATH_SEPARATOR=';'
7355 else
7356 PATH_SEPARATOR=:
7357 fi
7358 rm -f conf$$.sh
7359 fi
7360 ac_prog=ld
7361 if test "$GCC" = yes; then
7362 # Check if gcc -print-prog-name=ld gives a path.
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7364 $as_echo_n "checking for ld used by GCC... " >&6; }
7365 case $host in
7366 *-*-mingw*)
7367 # gcc leaves a trailing carriage return which upsets mingw
7368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7369 *)
7370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7371 esac
7372 case $ac_prog in
7373 # Accept absolute paths.
7374 [\\/]* | [A-Za-z]:[\\/]*)
7375 re_direlt='/[^/][^/]*/\.\./'
7376 # Canonicalize the path of ld
7377 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7378 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7379 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7380 done
7381 test -z "$LD" && LD="$ac_prog"
7382 ;;
7383 "")
7384 # If it fails, then pretend we aren't using GCC.
7385 ac_prog=ld
7386 ;;
7387 *)
7388 # If it is relative, then search for the first ld in PATH.
7389 with_gnu_ld=unknown
7390 ;;
7391 esac
7392 elif test "$with_gnu_ld" = yes; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7394 $as_echo_n "checking for GNU ld... " >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7397 $as_echo_n "checking for non-GNU ld... " >&6; }
7398 fi
7399 if test "${acl_cv_path_LD+set}" = set; then :
7400 $as_echo_n "(cached) " >&6
7401 else
7402 if test -z "$LD"; then
7403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7404 for ac_dir in $PATH; do
7405 test -z "$ac_dir" && ac_dir=.
7406 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7407 acl_cv_path_LD="$ac_dir/$ac_prog"
7408 # Check to see if the program is GNU ld. I'd rather use --version,
7409 # but apparently some GNU ld's only accept -v.
7410 # Break only if it was the GNU/non-GNU ld that we prefer.
7411 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7412 test "$with_gnu_ld" != no && break
7413 else
7414 test "$with_gnu_ld" != yes && break
7415 fi
7416 fi
7417 done
7418 IFS="$ac_save_ifs"
7419 else
7420 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7421 fi
7422 fi
7423
7424 LD="$acl_cv_path_LD"
7425 if test -n "$LD"; then
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7427 $as_echo "$LD" >&6; }
7428 else
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7431 fi
7432 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7434 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7435 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7436 $as_echo_n "(cached) " >&6
7437 else
7438 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7439 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7440 acl_cv_prog_gnu_ld=yes
7441 else
7442 acl_cv_prog_gnu_ld=no
7443 fi
7444 fi
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7446 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7447 with_gnu_ld=$acl_cv_prog_gnu_ld
7448
7449
7450
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7452 $as_echo_n "checking for shared library run path origin... " >&6; }
7453 if test "${acl_cv_rpath+set}" = set; then :
7454 $as_echo_n "(cached) " >&6
7455 else
7456
7457 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7458 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7459 . ./conftest.sh
7460 rm -f ./conftest.sh
7461 acl_cv_rpath=done
7462
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7465 $as_echo "$acl_cv_rpath" >&6; }
7466 wl="$acl_cv_wl"
7467 libext="$acl_cv_libext"
7468 shlibext="$acl_cv_shlibext"
7469 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7470 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7471 hardcode_direct="$acl_cv_hardcode_direct"
7472 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7473 # Check whether --enable-rpath was given.
7474 if test "${enable_rpath+set}" = set; then :
7475 enableval=$enable_rpath; :
7476 else
7477 enable_rpath=yes
7478 fi
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489 use_additional=yes
7490
7491 acl_save_prefix="$prefix"
7492 prefix="$acl_final_prefix"
7493 acl_save_exec_prefix="$exec_prefix"
7494 exec_prefix="$acl_final_exec_prefix"
7495
7496 eval additional_includedir=\"$includedir\"
7497 eval additional_libdir=\"$libdir\"
7498
7499 exec_prefix="$acl_save_exec_prefix"
7500 prefix="$acl_save_prefix"
7501
7502
7503 # Check whether --with-libexpat-prefix was given.
7504 if test "${with_libexpat_prefix+set}" = set; then :
7505 withval=$with_libexpat_prefix;
7506 if test "X$withval" = "Xno"; then
7507 use_additional=no
7508 else
7509 if test "X$withval" = "X"; then
7510
7511 acl_save_prefix="$prefix"
7512 prefix="$acl_final_prefix"
7513 acl_save_exec_prefix="$exec_prefix"
7514 exec_prefix="$acl_final_exec_prefix"
7515
7516 eval additional_includedir=\"$includedir\"
7517 eval additional_libdir=\"$libdir\"
7518
7519 exec_prefix="$acl_save_exec_prefix"
7520 prefix="$acl_save_prefix"
7521
7522 else
7523 additional_includedir="$withval/include"
7524 additional_libdir="$withval/lib"
7525 fi
7526 fi
7527
7528 fi
7529
7530 LIBEXPAT=
7531 LTLIBEXPAT=
7532 INCEXPAT=
7533 rpathdirs=
7534 ltrpathdirs=
7535 names_already_handled=
7536 names_next_round='expat '
7537 while test -n "$names_next_round"; do
7538 names_this_round="$names_next_round"
7539 names_next_round=
7540 for name in $names_this_round; do
7541 already_handled=
7542 for n in $names_already_handled; do
7543 if test "$n" = "$name"; then
7544 already_handled=yes
7545 break
7546 fi
7547 done
7548 if test -z "$already_handled"; then
7549 names_already_handled="$names_already_handled $name"
7550 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7551 eval value=\"\$HAVE_LIB$uppername\"
7552 if test -n "$value"; then
7553 if test "$value" = yes; then
7554 eval value=\"\$LIB$uppername\"
7555 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7556 eval value=\"\$LTLIB$uppername\"
7557 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7558 else
7559 :
7560 fi
7561 else
7562 found_dir=
7563 found_la=
7564 found_so=
7565 found_a=
7566 if test $use_additional = yes; then
7567 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7568 found_dir="$additional_libdir"
7569 found_so="$additional_libdir/lib$name.$shlibext"
7570 if test -f "$additional_libdir/lib$name.la"; then
7571 found_la="$additional_libdir/lib$name.la"
7572 fi
7573 else
7574 if test -f "$additional_libdir/lib$name.$libext"; then
7575 found_dir="$additional_libdir"
7576 found_a="$additional_libdir/lib$name.$libext"
7577 if test -f "$additional_libdir/lib$name.la"; then
7578 found_la="$additional_libdir/lib$name.la"
7579 fi
7580 fi
7581 fi
7582 fi
7583 if test "X$found_dir" = "X"; then
7584 for x in $LDFLAGS $LTLIBEXPAT; do
7585
7586 acl_save_prefix="$prefix"
7587 prefix="$acl_final_prefix"
7588 acl_save_exec_prefix="$exec_prefix"
7589 exec_prefix="$acl_final_exec_prefix"
7590 eval x=\"$x\"
7591 exec_prefix="$acl_save_exec_prefix"
7592 prefix="$acl_save_prefix"
7593
7594 case "$x" in
7595 -L*)
7596 dir=`echo "X$x" | sed -e 's/^X-L//'`
7597 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7598 found_dir="$dir"
7599 found_so="$dir/lib$name.$shlibext"
7600 if test -f "$dir/lib$name.la"; then
7601 found_la="$dir/lib$name.la"
7602 fi
7603 else
7604 if test -f "$dir/lib$name.$libext"; then
7605 found_dir="$dir"
7606 found_a="$dir/lib$name.$libext"
7607 if test -f "$dir/lib$name.la"; then
7608 found_la="$dir/lib$name.la"
7609 fi
7610 fi
7611 fi
7612 ;;
7613 esac
7614 if test "X$found_dir" != "X"; then
7615 break
7616 fi
7617 done
7618 fi
7619 if test "X$found_dir" != "X"; then
7620 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7621 if test "X$found_so" != "X"; then
7622 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7623 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7624 else
7625 haveit=
7626 for x in $ltrpathdirs; do
7627 if test "X$x" = "X$found_dir"; then
7628 haveit=yes
7629 break
7630 fi
7631 done
7632 if test -z "$haveit"; then
7633 ltrpathdirs="$ltrpathdirs $found_dir"
7634 fi
7635 if test "$hardcode_direct" = yes; then
7636 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7637 else
7638 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7639 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7640 haveit=
7641 for x in $rpathdirs; do
7642 if test "X$x" = "X$found_dir"; then
7643 haveit=yes
7644 break
7645 fi
7646 done
7647 if test -z "$haveit"; then
7648 rpathdirs="$rpathdirs $found_dir"
7649 fi
7650 else
7651 haveit=
7652 for x in $LDFLAGS $LIBEXPAT; do
7653
7654 acl_save_prefix="$prefix"
7655 prefix="$acl_final_prefix"
7656 acl_save_exec_prefix="$exec_prefix"
7657 exec_prefix="$acl_final_exec_prefix"
7658 eval x=\"$x\"
7659 exec_prefix="$acl_save_exec_prefix"
7660 prefix="$acl_save_prefix"
7661
7662 if test "X$x" = "X-L$found_dir"; then
7663 haveit=yes
7664 break
7665 fi
7666 done
7667 if test -z "$haveit"; then
7668 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7669 fi
7670 if test "$hardcode_minus_L" != no; then
7671 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7672 else
7673 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7674 fi
7675 fi
7676 fi
7677 fi
7678 else
7679 if test "X$found_a" != "X"; then
7680 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7681 else
7682 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7683 fi
7684 fi
7685 additional_includedir=
7686 case "$found_dir" in
7687 */lib | */lib/)
7688 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7689 additional_includedir="$basedir/include"
7690 ;;
7691 esac
7692 if test "X$additional_includedir" != "X"; then
7693 if test "X$additional_includedir" != "X/usr/include"; then
7694 haveit=
7695 if test "X$additional_includedir" = "X/usr/local/include"; then
7696 if test -n "$GCC"; then
7697 case $host_os in
7698 linux*) haveit=yes;;
7699 esac
7700 fi
7701 fi
7702 if test -z "$haveit"; then
7703 for x in $CPPFLAGS $INCEXPAT; do
7704
7705 acl_save_prefix="$prefix"
7706 prefix="$acl_final_prefix"
7707 acl_save_exec_prefix="$exec_prefix"
7708 exec_prefix="$acl_final_exec_prefix"
7709 eval x=\"$x\"
7710 exec_prefix="$acl_save_exec_prefix"
7711 prefix="$acl_save_prefix"
7712
7713 if test "X$x" = "X-I$additional_includedir"; then
7714 haveit=yes
7715 break
7716 fi
7717 done
7718 if test -z "$haveit"; then
7719 if test -d "$additional_includedir"; then
7720 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7721 fi
7722 fi
7723 fi
7724 fi
7725 fi
7726 if test -n "$found_la"; then
7727 save_libdir="$libdir"
7728 case "$found_la" in
7729 */* | *\\*) . "$found_la" ;;
7730 *) . "./$found_la" ;;
7731 esac
7732 libdir="$save_libdir"
7733 for dep in $dependency_libs; do
7734 case "$dep" in
7735 -L*)
7736 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7737 if test "X$additional_libdir" != "X/usr/lib"; then
7738 haveit=
7739 if test "X$additional_libdir" = "X/usr/local/lib"; then
7740 if test -n "$GCC"; then
7741 case $host_os in
7742 linux*) haveit=yes;;
7743 esac
7744 fi
7745 fi
7746 if test -z "$haveit"; then
7747 haveit=
7748 for x in $LDFLAGS $LIBEXPAT; do
7749
7750 acl_save_prefix="$prefix"
7751 prefix="$acl_final_prefix"
7752 acl_save_exec_prefix="$exec_prefix"
7753 exec_prefix="$acl_final_exec_prefix"
7754 eval x=\"$x\"
7755 exec_prefix="$acl_save_exec_prefix"
7756 prefix="$acl_save_prefix"
7757
7758 if test "X$x" = "X-L$additional_libdir"; then
7759 haveit=yes
7760 break
7761 fi
7762 done
7763 if test -z "$haveit"; then
7764 if test -d "$additional_libdir"; then
7765 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7766 fi
7767 fi
7768 haveit=
7769 for x in $LDFLAGS $LTLIBEXPAT; do
7770
7771 acl_save_prefix="$prefix"
7772 prefix="$acl_final_prefix"
7773 acl_save_exec_prefix="$exec_prefix"
7774 exec_prefix="$acl_final_exec_prefix"
7775 eval x=\"$x\"
7776 exec_prefix="$acl_save_exec_prefix"
7777 prefix="$acl_save_prefix"
7778
7779 if test "X$x" = "X-L$additional_libdir"; then
7780 haveit=yes
7781 break
7782 fi
7783 done
7784 if test -z "$haveit"; then
7785 if test -d "$additional_libdir"; then
7786 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7787 fi
7788 fi
7789 fi
7790 fi
7791 ;;
7792 -R*)
7793 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7794 if test "$enable_rpath" != no; then
7795 haveit=
7796 for x in $rpathdirs; do
7797 if test "X$x" = "X$dir"; then
7798 haveit=yes
7799 break
7800 fi
7801 done
7802 if test -z "$haveit"; then
7803 rpathdirs="$rpathdirs $dir"
7804 fi
7805 haveit=
7806 for x in $ltrpathdirs; do
7807 if test "X$x" = "X$dir"; then
7808 haveit=yes
7809 break
7810 fi
7811 done
7812 if test -z "$haveit"; then
7813 ltrpathdirs="$ltrpathdirs $dir"
7814 fi
7815 fi
7816 ;;
7817 -l*)
7818 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7819 ;;
7820 *.la)
7821 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7822 ;;
7823 *)
7824 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7825 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7826 ;;
7827 esac
7828 done
7829 fi
7830 else
7831 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7832 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7833 fi
7834 fi
7835 fi
7836 done
7837 done
7838 if test "X$rpathdirs" != "X"; then
7839 if test -n "$hardcode_libdir_separator"; then
7840 alldirs=
7841 for found_dir in $rpathdirs; do
7842 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7843 done
7844 acl_save_libdir="$libdir"
7845 libdir="$alldirs"
7846 eval flag=\"$hardcode_libdir_flag_spec\"
7847 libdir="$acl_save_libdir"
7848 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7849 else
7850 for found_dir in $rpathdirs; do
7851 acl_save_libdir="$libdir"
7852 libdir="$found_dir"
7853 eval flag=\"$hardcode_libdir_flag_spec\"
7854 libdir="$acl_save_libdir"
7855 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7856 done
7857 fi
7858 fi
7859 if test "X$ltrpathdirs" != "X"; then
7860 for found_dir in $ltrpathdirs; do
7861 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7862 done
7863 fi
7864
7865
7866 ac_save_CPPFLAGS="$CPPFLAGS"
7867
7868 for element in $INCEXPAT; do
7869 haveit=
7870 for x in $CPPFLAGS; do
7871
7872 acl_save_prefix="$prefix"
7873 prefix="$acl_final_prefix"
7874 acl_save_exec_prefix="$exec_prefix"
7875 exec_prefix="$acl_final_exec_prefix"
7876 eval x=\"$x\"
7877 exec_prefix="$acl_save_exec_prefix"
7878 prefix="$acl_save_prefix"
7879
7880 if test "X$x" = "X$element"; then
7881 haveit=yes
7882 break
7883 fi
7884 done
7885 if test -z "$haveit"; then
7886 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7887 fi
7888 done
7889
7890
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7892 $as_echo_n "checking for libexpat... " >&6; }
7893 if test "${ac_cv_libexpat+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896
7897 ac_save_LIBS="$LIBS"
7898 LIBS="$LIBS $LIBEXPAT"
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901 #include "expat.h"
7902 int
7903 main ()
7904 {
7905 XML_Parser p = XML_ParserCreate (0);
7906 ;
7907 return 0;
7908 }
7909 _ACEOF
7910 if ac_fn_c_try_link "$LINENO"; then :
7911 ac_cv_libexpat=yes
7912 else
7913 ac_cv_libexpat=no
7914 fi
7915 rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 LIBS="$ac_save_LIBS"
7918
7919 fi
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7921 $as_echo "$ac_cv_libexpat" >&6; }
7922 if test "$ac_cv_libexpat" = yes; then
7923 HAVE_LIBEXPAT=yes
7924
7925 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7926
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7928 $as_echo_n "checking how to link with libexpat... " >&6; }
7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7930 $as_echo "$LIBEXPAT" >&6; }
7931 else
7932 HAVE_LIBEXPAT=no
7933 CPPFLAGS="$ac_save_CPPFLAGS"
7934 LIBEXPAT=
7935 LTLIBEXPAT=
7936 fi
7937
7938
7939
7940
7941
7942
7943 if test "$HAVE_LIBEXPAT" != yes; then
7944 if test "$with_expat" = yes; then
7945 as_fn_error "expat is missing or unusable" "$LINENO" 5
7946 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7948 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7949 fi
7950 else
7951 save_LIBS=$LIBS
7952 LIBS="$LIBS $LIBEXPAT"
7953 for ac_func in XML_StopParser
7954 do :
7955 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7956 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
7957 cat >>confdefs.h <<_ACEOF
7958 #define HAVE_XML_STOPPARSER 1
7959 _ACEOF
7960
7961 fi
7962 done
7963
7964 LIBS=$save_LIBS
7965 fi
7966 fi
7967
7968
7969
7970
7971
7972
7973 # Check whether --with-python was given.
7974 if test "${with_python+set}" = set; then :
7975 withval=$with_python;
7976 else
7977 with_python=auto
7978 fi
7979
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7981 $as_echo_n "checking whether to use python... " >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7983 $as_echo "$with_python" >&6; }
7984
7985 if test "${with_python}" = no; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7987 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7988 have_libpython=no
7989 else
7990 case "${with_python}" in
7991 [\\/]* | ?:[\\/]*)
7992 if test -d ${with_python}; then
7993 # Assume the python binary is ${with_python}/bin/python.
7994 python_prog="${with_python}/bin/python"
7995 python_prefix=
7996 # If python does not exit ${with_python}/bin, then try in
7997 # ${with_python}. On Windows/MinGW, this is where the Python
7998 # executable is.
7999 if test ! -x "${python_prog}"; then
8000 python_prog="${with_python}/python"
8001 python_prefix=
8002 fi
8003 if test ! -x "${python_prog}"; then
8004 # Fall back to gdb 7.0/7.1 behaviour.
8005 python_prog=missing
8006 python_prefix=${with_python}
8007 fi
8008 elif test -x "${with_python}"; then
8009 # While we can't run python compiled for $host (unless host == build),
8010 # the user could write a script that provides the needed information,
8011 # so we support that.
8012 python_prog=${with_python}
8013 python_prefix=
8014 else
8015 as_fn_error "invalid value for --with-python" "$LINENO" 5
8016 fi
8017 ;;
8018 */*)
8019 # Disallow --with-python=foo/bar.
8020 as_fn_error "invalid value for --with-python" "$LINENO" 5
8021 ;;
8022 *)
8023 # The user has either specified auto, yes, or the name of the python
8024 # program assumed to be in $PATH.
8025 python_prefix=
8026 case "${with_python}" in
8027 yes | auto)
8028 if test ${build} = ${host}; then
8029 # Extract the first word of "python", so it can be a program name with args.
8030 set dummy python; ac_word=$2
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8032 $as_echo_n "checking for $ac_word... " >&6; }
8033 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8034 $as_echo_n "(cached) " >&6
8035 else
8036 case $python_prog_path in
8037 [\\/]* | ?:[\\/]*)
8038 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8039 ;;
8040 *)
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8043 do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8048 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052 done
8053 done
8054 IFS=$as_save_IFS
8055
8056 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8057 ;;
8058 esac
8059 fi
8060 python_prog_path=$ac_cv_path_python_prog_path
8061 if test -n "$python_prog_path"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8063 $as_echo "$python_prog_path" >&6; }
8064 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068
8069
8070 if test "${python_prog_path}" = missing; then
8071 python_prog=missing
8072 else
8073 python_prog=${python_prog_path}
8074 fi
8075 else
8076 # Not much we can do except assume the cross-compiler will find the
8077 # right files.
8078 python_prog=missing
8079 fi
8080 ;;
8081 *)
8082 # While we can't run python compiled for $host (unless host == build),
8083 # the user could write a script that provides the needed information,
8084 # so we support that.
8085 python_prog="${with_python}"
8086 # Extract the first word of "${python_prog}", so it can be a program name with args.
8087 set dummy ${python_prog}; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8091 $as_echo_n "(cached) " >&6
8092 else
8093 case $python_prog_path in
8094 [\\/]* | ?:[\\/]*)
8095 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8096 ;;
8097 *)
8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101 IFS=$as_save_IFS
8102 test -z "$as_dir" && as_dir=.
8103 for ac_exec_ext in '' $ac_executable_extensions; do
8104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8105 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8107 break 2
8108 fi
8109 done
8110 done
8111 IFS=$as_save_IFS
8112
8113 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8114 ;;
8115 esac
8116 fi
8117 python_prog_path=$ac_cv_path_python_prog_path
8118 if test -n "$python_prog_path"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8120 $as_echo "$python_prog_path" >&6; }
8121 else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123 $as_echo "no" >&6; }
8124 fi
8125
8126
8127 if test "${python_prog_path}" = missing; then
8128 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8129 fi
8130 ;;
8131 esac
8132 esac
8133
8134 if test "${python_prog}" != missing; then
8135 # We have a python program to use, but it may be too old.
8136 # Don't flag an error for --with-python=auto (the default).
8137 have_python_config=yes
8138 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8139 if test $? != 0; then
8140 have_python_config=failed
8141 if test "${with_python}" != auto; then
8142 as_fn_error "failure running python-config --includes" "$LINENO" 5
8143 fi
8144 fi
8145 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8146 if test $? != 0; then
8147 have_python_config=failed
8148 if test "${with_python}" != auto; then
8149 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8150 fi
8151 fi
8152 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8153 if test $? != 0; then
8154 have_python_config=failed
8155 if test "${with_python}" != auto; then
8156 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8157 fi
8158 fi
8159 else
8160 # We do not have a python executable we can use to determine where
8161 # to find the Python headers and libs. We cannot guess the include
8162 # path from the python_prefix either, because that include path
8163 # depends on the Python version. So, there is nothing much we can
8164 # do except assume that the compiler will be able to find those files.
8165 python_includes=
8166 python_libs=
8167 have_python_config=no
8168 fi
8169
8170 # If we have python-config, only try the configuration it provides.
8171 # Otherwise fallback on the old way of trying different versions of
8172 # python in turn.
8173
8174 have_libpython=no
8175 if test "${have_python_config}" = yes; then
8176 # Determine the Python version by extracting "-lpython<version>"
8177 # part of the python_libs. <version> is usually X.Y with X and Y
8178 # being decimal numbers, but can also be XY (seen on Windows).
8179 #
8180 # The extraction is performed using sed with a regular expression.
8181 # Initially, the regexp used was using the '?' quantifier to make
8182 # the dot in the version number optional. Unfortunately, this
8183 # does not work with non-GNU versions of sed because, because of
8184 # what looks like a limitation (the '?' quantifier does not work
8185 # with back-references). We work around this limitation by using
8186 # the '*' quantifier instead. It means that, in theory, we might
8187 # match unexpected version strings such as "-lpython2..7", but
8188 # this seems unlikely in practice. And even if that happens,
8189 # an error will be triggered later on, when checking that version
8190 # number.
8191 python_version=`echo " ${python_libs} " \
8192 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8193 case "${python_version}" in
8194 python*)
8195
8196 version=${python_version}
8197
8198 new_CPPFLAGS=${python_includes}
8199 new_LIBS=${python_libs}
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8201 $as_echo_n "checking for ${version}... " >&6; }
8202 save_CPPFLAGS=$CPPFLAGS
8203 save_LIBS=$LIBS
8204 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8205 LIBS="$LIBS $new_LIBS"
8206 found_usable_python=no
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209 #include "Python.h"
8210 int
8211 main ()
8212 {
8213 Py_Initialize ();
8214 ;
8215 return 0;
8216 }
8217 _ACEOF
8218 if ac_fn_c_try_link "$LINENO"; then :
8219 have_libpython=${version}
8220 found_usable_python=yes
8221 PYTHON_CPPFLAGS=$new_CPPFLAGS
8222 PYTHON_LIBS=$new_LIBS
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
8226 CPPFLAGS=$save_CPPFLAGS
8227 LIBS=$save_LIBS
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8229 $as_echo "${found_usable_python}" >&6; }
8230
8231 ;;
8232 *)
8233 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8234 ;;
8235 esac
8236 elif test "${have_python_config}" != failed; then
8237 if test "${have_libpython}" = no; then
8238
8239 version=python2.7
8240
8241 new_CPPFLAGS=${python_includes}
8242 new_LIBS="${python_libs} -lpython2.7"
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8244 $as_echo_n "checking for ${version}... " >&6; }
8245 save_CPPFLAGS=$CPPFLAGS
8246 save_LIBS=$LIBS
8247 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8248 LIBS="$LIBS $new_LIBS"
8249 found_usable_python=no
8250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8251 /* end confdefs.h. */
8252 #include "Python.h"
8253 int
8254 main ()
8255 {
8256 Py_Initialize ();
8257 ;
8258 return 0;
8259 }
8260 _ACEOF
8261 if ac_fn_c_try_link "$LINENO"; then :
8262 have_libpython=${version}
8263 found_usable_python=yes
8264 PYTHON_CPPFLAGS=$new_CPPFLAGS
8265 PYTHON_LIBS=$new_LIBS
8266 fi
8267 rm -f core conftest.err conftest.$ac_objext \
8268 conftest$ac_exeext conftest.$ac_ext
8269 CPPFLAGS=$save_CPPFLAGS
8270 LIBS=$save_LIBS
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8272 $as_echo "${found_usable_python}" >&6; }
8273
8274 fi
8275 if test "${have_libpython}" = no; then
8276
8277 version=python2.6
8278
8279 new_CPPFLAGS=${python_includes}
8280 new_LIBS="${python_libs} -lpython2.6"
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8282 $as_echo_n "checking for ${version}... " >&6; }
8283 save_CPPFLAGS=$CPPFLAGS
8284 save_LIBS=$LIBS
8285 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8286 LIBS="$LIBS $new_LIBS"
8287 found_usable_python=no
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8290 #include "Python.h"
8291 int
8292 main ()
8293 {
8294 Py_Initialize ();
8295 ;
8296 return 0;
8297 }
8298 _ACEOF
8299 if ac_fn_c_try_link "$LINENO"; then :
8300 have_libpython=${version}
8301 found_usable_python=yes
8302 PYTHON_CPPFLAGS=$new_CPPFLAGS
8303 PYTHON_LIBS=$new_LIBS
8304 fi
8305 rm -f core conftest.err conftest.$ac_objext \
8306 conftest$ac_exeext conftest.$ac_ext
8307 CPPFLAGS=$save_CPPFLAGS
8308 LIBS=$save_LIBS
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8310 $as_echo "${found_usable_python}" >&6; }
8311
8312 fi
8313 if test ${have_libpython} = no; then
8314
8315 version=python2.5
8316
8317 new_CPPFLAGS=${python_includes}
8318 new_LIBS="${python_libs} -lpython2.5"
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8320 $as_echo_n "checking for ${version}... " >&6; }
8321 save_CPPFLAGS=$CPPFLAGS
8322 save_LIBS=$LIBS
8323 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8324 LIBS="$LIBS $new_LIBS"
8325 found_usable_python=no
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327 /* end confdefs.h. */
8328 #include "Python.h"
8329 int
8330 main ()
8331 {
8332 Py_Initialize ();
8333 ;
8334 return 0;
8335 }
8336 _ACEOF
8337 if ac_fn_c_try_link "$LINENO"; then :
8338 have_libpython=${version}
8339 found_usable_python=yes
8340 PYTHON_CPPFLAGS=$new_CPPFLAGS
8341 PYTHON_LIBS=$new_LIBS
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
8345 CPPFLAGS=$save_CPPFLAGS
8346 LIBS=$save_LIBS
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8348 $as_echo "${found_usable_python}" >&6; }
8349
8350 fi
8351 if test ${have_libpython} = no; then
8352
8353 version=python2.4
8354
8355 new_CPPFLAGS=${python_includes}
8356 new_LIBS="${python_libs} -lpython2.4"
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8358 $as_echo_n "checking for ${version}... " >&6; }
8359 save_CPPFLAGS=$CPPFLAGS
8360 save_LIBS=$LIBS
8361 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8362 LIBS="$LIBS $new_LIBS"
8363 found_usable_python=no
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 #include "Python.h"
8367 int
8368 main ()
8369 {
8370 Py_Initialize ();
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 if ac_fn_c_try_link "$LINENO"; then :
8376 have_libpython=${version}
8377 found_usable_python=yes
8378 PYTHON_CPPFLAGS=$new_CPPFLAGS
8379 PYTHON_LIBS=$new_LIBS
8380 fi
8381 rm -f core conftest.err conftest.$ac_objext \
8382 conftest$ac_exeext conftest.$ac_ext
8383 CPPFLAGS=$save_CPPFLAGS
8384 LIBS=$save_LIBS
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8386 $as_echo "${found_usable_python}" >&6; }
8387
8388 fi
8389 fi
8390 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8391
8392 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8393
8394 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8395
8396 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8397
8398 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8399
8400 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8401
8402 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8403
8404 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8405
8406 fi
8407
8408 if test "${have_libpython}" = no; then
8409 case "${with_python}" in
8410 yes)
8411 as_fn_error "python is missing or unusable" "$LINENO" 5
8412 ;;
8413 auto)
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8415 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8416 ;;
8417 *)
8418 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8419 ;;
8420 esac
8421 else
8422 if test -n "${python_prefix}"; then
8423
8424 cat >>confdefs.h <<_ACEOF
8425 #define WITH_PYTHON_PATH "${python_prefix}"
8426 _ACEOF
8427
8428
8429 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8430 if test "x$prefix" = xNONE; then
8431 test_prefix=/usr/local
8432 else
8433 test_prefix=$prefix
8434 fi
8435 else
8436 test_prefix=$exec_prefix
8437 fi
8438 value=0
8439 case ${python_prefix} in
8440 "${test_prefix}"|"${test_prefix}/"*|\
8441 '${exec_prefix}'|'${exec_prefix}/'*)
8442 value=1
8443 ;;
8444 esac
8445
8446 cat >>confdefs.h <<_ACEOF
8447 #define PYTHON_PATH_RELOCATABLE $value
8448 _ACEOF
8449
8450
8451 fi
8452 fi
8453 fi
8454
8455 if test "${have_libpython}" != no; then
8456
8457 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8458
8459 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8460 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8461 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8462 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8463 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8464
8465 # Flags needed to compile Python code (taken from python-config --cflags).
8466 # We cannot call python-config directly because it will output whatever was
8467 # used when compiling the Python interpreter itself, including flags which
8468 # would make the python-related objects be compiled differently from the
8469 # rest of GDB (e.g., -O2 and -fPIC).
8470 if test "${GCC}" = yes; then
8471 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8472 fi
8473
8474 if test "x${tentative_python_cflags}" != x; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8476 $as_echo_n "checking compiler flags for python code... " >&6; }
8477 for flag in ${tentative_python_cflags}; do
8478 # Check that the compiler accepts it
8479 saved_CFLAGS="$CFLAGS"
8480 CFLAGS="$CFLAGS $flag"
8481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482 /* end confdefs.h. */
8483
8484 int
8485 main ()
8486 {
8487
8488 ;
8489 return 0;
8490 }
8491 _ACEOF
8492 if ac_fn_c_try_compile "$LINENO"; then :
8493 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 CFLAGS="$saved_CFLAGS"
8497 done
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8499 $as_echo "${PYTHON_CFLAGS}" >&6; }
8500 fi
8501
8502 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8503 # #if _SGIAPI
8504 # #define siginfo __siginfo
8505 # #endif
8506 # The problem is that including Python causes some XOPEN macros to be
8507 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8508 # to false. So, we work around this issue by defining siginfo ourself
8509 # though the command-line.
8510 case "$gdb_host" in
8511 irix*) if test "${GCC}" = yes; then
8512 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8513 fi
8514 ;;
8515 esac
8516 else
8517 # Even if Python support is not compiled in, we need to have these files
8518 # included.
8519 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8520 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
8521 python/py-prettyprint.c python/py-auto-load.c"
8522 fi
8523
8524
8525
8526
8527 # ------------------------- #
8528 # Checks for header files. #
8529 # ------------------------- #
8530
8531 ac_header_dirent=no
8532 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8533 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8535 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8537 $as_echo_n "(cached) " >&6
8538 else
8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8540 /* end confdefs.h. */
8541 #include <sys/types.h>
8542 #include <$ac_hdr>
8543
8544 int
8545 main ()
8546 {
8547 if ((DIR *) 0)
8548 return 0;
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 if ac_fn_c_try_compile "$LINENO"; then :
8554 eval "$as_ac_Header=yes"
8555 else
8556 eval "$as_ac_Header=no"
8557 fi
8558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8559 fi
8560 eval ac_res=\$$as_ac_Header
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8562 $as_echo "$ac_res" >&6; }
8563 eval as_val=\$$as_ac_Header
8564 if test "x$as_val" = x""yes; then :
8565 cat >>confdefs.h <<_ACEOF
8566 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8567 _ACEOF
8568
8569 ac_header_dirent=$ac_hdr; break
8570 fi
8571
8572 done
8573 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8574 if test $ac_header_dirent = dirent.h; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8576 $as_echo_n "checking for library containing opendir... " >&6; }
8577 if test "${ac_cv_search_opendir+set}" = set; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 ac_func_search_save_LIBS=$LIBS
8581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h. */
8583
8584 /* Override any GCC internal prototype to avoid an error.
8585 Use char because int might match the return type of a GCC
8586 builtin and then its argument prototype would still apply. */
8587 #ifdef __cplusplus
8588 extern "C"
8589 #endif
8590 char opendir ();
8591 int
8592 main ()
8593 {
8594 return opendir ();
8595 ;
8596 return 0;
8597 }
8598 _ACEOF
8599 for ac_lib in '' dir; do
8600 if test -z "$ac_lib"; then
8601 ac_res="none required"
8602 else
8603 ac_res=-l$ac_lib
8604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8605 fi
8606 if ac_fn_c_try_link "$LINENO"; then :
8607 ac_cv_search_opendir=$ac_res
8608 fi
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext
8611 if test "${ac_cv_search_opendir+set}" = set; then :
8612 break
8613 fi
8614 done
8615 if test "${ac_cv_search_opendir+set}" = set; then :
8616
8617 else
8618 ac_cv_search_opendir=no
8619 fi
8620 rm conftest.$ac_ext
8621 LIBS=$ac_func_search_save_LIBS
8622 fi
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8624 $as_echo "$ac_cv_search_opendir" >&6; }
8625 ac_res=$ac_cv_search_opendir
8626 if test "$ac_res" != no; then :
8627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8628
8629 fi
8630
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8633 $as_echo_n "checking for library containing opendir... " >&6; }
8634 if test "${ac_cv_search_opendir+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 ac_func_search_save_LIBS=$LIBS
8638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8639 /* end confdefs.h. */
8640
8641 /* Override any GCC internal prototype to avoid an error.
8642 Use char because int might match the return type of a GCC
8643 builtin and then its argument prototype would still apply. */
8644 #ifdef __cplusplus
8645 extern "C"
8646 #endif
8647 char opendir ();
8648 int
8649 main ()
8650 {
8651 return opendir ();
8652 ;
8653 return 0;
8654 }
8655 _ACEOF
8656 for ac_lib in '' x; do
8657 if test -z "$ac_lib"; then
8658 ac_res="none required"
8659 else
8660 ac_res=-l$ac_lib
8661 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8662 fi
8663 if ac_fn_c_try_link "$LINENO"; then :
8664 ac_cv_search_opendir=$ac_res
8665 fi
8666 rm -f core conftest.err conftest.$ac_objext \
8667 conftest$ac_exeext
8668 if test "${ac_cv_search_opendir+set}" = set; then :
8669 break
8670 fi
8671 done
8672 if test "${ac_cv_search_opendir+set}" = set; then :
8673
8674 else
8675 ac_cv_search_opendir=no
8676 fi
8677 rm conftest.$ac_ext
8678 LIBS=$ac_func_search_save_LIBS
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8681 $as_echo "$ac_cv_search_opendir" >&6; }
8682 ac_res=$ac_cv_search_opendir
8683 if test "$ac_res" != no; then :
8684 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8685
8686 fi
8687
8688 fi
8689
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8691 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8692 if test "${ac_cv_header_stat_broken+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 #include <sys/types.h>
8698 #include <sys/stat.h>
8699
8700 #if defined S_ISBLK && defined S_IFDIR
8701 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8702 #endif
8703
8704 #if defined S_ISBLK && defined S_IFCHR
8705 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8706 #endif
8707
8708 #if defined S_ISLNK && defined S_IFREG
8709 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8710 #endif
8711
8712 #if defined S_ISSOCK && defined S_IFREG
8713 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8714 #endif
8715
8716 _ACEOF
8717 if ac_fn_c_try_compile "$LINENO"; then :
8718 ac_cv_header_stat_broken=no
8719 else
8720 ac_cv_header_stat_broken=yes
8721 fi
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8725 $as_echo "$ac_cv_header_stat_broken" >&6; }
8726 if test $ac_cv_header_stat_broken = yes; then
8727
8728 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8729
8730 fi
8731
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8733 $as_echo_n "checking for ANSI C header files... " >&6; }
8734 if test "${ac_cv_header_stdc+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <stdlib.h>
8740 #include <stdarg.h>
8741 #include <string.h>
8742 #include <float.h>
8743
8744 int
8745 main ()
8746 {
8747
8748 ;
8749 return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_c_try_compile "$LINENO"; then :
8753 ac_cv_header_stdc=yes
8754 else
8755 ac_cv_header_stdc=no
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758
8759 if test $ac_cv_header_stdc = yes; then
8760 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8762 /* end confdefs.h. */
8763 #include <string.h>
8764
8765 _ACEOF
8766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8767 $EGREP "memchr" >/dev/null 2>&1; then :
8768
8769 else
8770 ac_cv_header_stdc=no
8771 fi
8772 rm -f conftest*
8773
8774 fi
8775
8776 if test $ac_cv_header_stdc = yes; then
8777 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8779 /* end confdefs.h. */
8780 #include <stdlib.h>
8781
8782 _ACEOF
8783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8784 $EGREP "free" >/dev/null 2>&1; then :
8785
8786 else
8787 ac_cv_header_stdc=no
8788 fi
8789 rm -f conftest*
8790
8791 fi
8792
8793 if test $ac_cv_header_stdc = yes; then
8794 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8795 if test "$cross_compiling" = yes; then :
8796 :
8797 else
8798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8799 /* end confdefs.h. */
8800 #include <ctype.h>
8801 #include <stdlib.h>
8802 #if ((' ' & 0x0FF) == 0x020)
8803 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8804 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8805 #else
8806 # define ISLOWER(c) \
8807 (('a' <= (c) && (c) <= 'i') \
8808 || ('j' <= (c) && (c) <= 'r') \
8809 || ('s' <= (c) && (c) <= 'z'))
8810 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8811 #endif
8812
8813 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8814 int
8815 main ()
8816 {
8817 int i;
8818 for (i = 0; i < 256; i++)
8819 if (XOR (islower (i), ISLOWER (i))
8820 || toupper (i) != TOUPPER (i))
8821 return 2;
8822 return 0;
8823 }
8824 _ACEOF
8825 if ac_fn_c_try_run "$LINENO"; then :
8826
8827 else
8828 ac_cv_header_stdc=no
8829 fi
8830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8831 conftest.$ac_objext conftest.beam conftest.$ac_ext
8832 fi
8833
8834 fi
8835 fi
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8837 $as_echo "$ac_cv_header_stdc" >&6; }
8838 if test $ac_cv_header_stdc = yes; then
8839
8840 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8841
8842 fi
8843
8844 # elf_hp.h is for HP/UX 64-bit shared library support.
8845 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
8846 # unconditionally, so what's the point in checking these?
8847 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
8848 thread_db.h gnu/libc-version.h signal.h stddef.h \
8849 stdlib.h string.h memory.h strings.h sys/fault.h \
8850 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
8851 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
8852 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
8853 sys/types.h sys/wait.h wait.h termios.h termio.h \
8854 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \
8855 dlfcn.h sys/socket.h sys/un.h
8856 do :
8857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8858 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8859 eval as_val=\$$as_ac_Header
8860 if test "x$as_val" = x""yes; then :
8861 cat >>confdefs.h <<_ACEOF
8862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8863 _ACEOF
8864
8865 fi
8866
8867 done
8868
8869 for ac_header in link.h
8870 do :
8871 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8872 # include <sys/types.h>
8873 #endif
8874 #if HAVE_NLIST_H
8875 # include <nlist.h>
8876 #endif
8877
8878 "
8879 if test "x$ac_cv_header_link_h" = x""yes; then :
8880 cat >>confdefs.h <<_ACEOF
8881 #define HAVE_LINK_H 1
8882 _ACEOF
8883
8884 fi
8885
8886 done
8887
8888 for ac_header in sys/proc.h
8889 do :
8890 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8891 # include <sys/param.h>
8892 #endif
8893
8894 "
8895 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
8896 cat >>confdefs.h <<_ACEOF
8897 #define HAVE_SYS_PROC_H 1
8898 _ACEOF
8899
8900 fi
8901
8902 done
8903
8904 for ac_header in sys/user.h
8905 do :
8906 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8907 # include <sys/param.h>
8908 #endif
8909
8910 "
8911 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
8912 cat >>confdefs.h <<_ACEOF
8913 #define HAVE_SYS_USER_H 1
8914 _ACEOF
8915
8916 fi
8917
8918 done
8919
8920
8921 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8922 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8923 # think that we don't have <curses.h> if we're using GCC.
8924 case $host_os in
8925 solaris2.[789])
8926 if test "$GCC" = yes; then
8927
8928 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8929
8930 fi ;;
8931 esac
8932 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
8933 do :
8934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8935 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8936 eval as_val=\$$as_ac_Header
8937 if test "x$as_val" = x""yes; then :
8938 cat >>confdefs.h <<_ACEOF
8939 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8940 _ACEOF
8941
8942 fi
8943
8944 done
8945
8946 for ac_header in term.h
8947 do :
8948 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
8949 # include <curses.h>
8950 #endif
8951
8952 "
8953 if test "x$ac_cv_header_term_h" = x""yes; then :
8954 cat >>confdefs.h <<_ACEOF
8955 #define HAVE_TERM_H 1
8956 _ACEOF
8957
8958 fi
8959
8960 done
8961
8962
8963 # ------------------------- #
8964 # Checks for declarations. #
8965 # ------------------------- #
8966
8967 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
8968 if test "x$ac_cv_have_decl_free" = x""yes; then :
8969 ac_have_decl=1
8970 else
8971 ac_have_decl=0
8972 fi
8973
8974 cat >>confdefs.h <<_ACEOF
8975 #define HAVE_DECL_FREE $ac_have_decl
8976 _ACEOF
8977 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
8978 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
8979 ac_have_decl=1
8980 else
8981 ac_have_decl=0
8982 fi
8983
8984 cat >>confdefs.h <<_ACEOF
8985 #define HAVE_DECL_MALLOC $ac_have_decl
8986 _ACEOF
8987 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
8988 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
8989 ac_have_decl=1
8990 else
8991 ac_have_decl=0
8992 fi
8993
8994 cat >>confdefs.h <<_ACEOF
8995 #define HAVE_DECL_REALLOC $ac_have_decl
8996 _ACEOF
8997 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
8998 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
8999 ac_have_decl=1
9000 else
9001 ac_have_decl=0
9002 fi
9003
9004 cat >>confdefs.h <<_ACEOF
9005 #define HAVE_DECL_STRERROR $ac_have_decl
9006 _ACEOF
9007 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
9008 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
9009 ac_have_decl=1
9010 else
9011 ac_have_decl=0
9012 fi
9013
9014 cat >>confdefs.h <<_ACEOF
9015 #define HAVE_DECL_STRSTR $ac_have_decl
9016 _ACEOF
9017 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
9018 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
9019 ac_have_decl=1
9020 else
9021 ac_have_decl=0
9022 fi
9023
9024 cat >>confdefs.h <<_ACEOF
9025 #define HAVE_DECL_GETOPT $ac_have_decl
9026 _ACEOF
9027 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
9028 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
9029 ac_have_decl=1
9030 else
9031 ac_have_decl=0
9032 fi
9033
9034 cat >>confdefs.h <<_ACEOF
9035 #define HAVE_DECL_SNPRINTF $ac_have_decl
9036 _ACEOF
9037 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
9038 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
9039 ac_have_decl=1
9040 else
9041 ac_have_decl=0
9042 fi
9043
9044 cat >>confdefs.h <<_ACEOF
9045 #define HAVE_DECL_VSNPRINTF $ac_have_decl
9046 _ACEOF
9047
9048
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
9050 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9051 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
9052 $as_echo_n "(cached) " >&6
9053 else
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 #include <locale.h>
9057 int
9058 main ()
9059 {
9060 return LC_MESSAGES
9061 ;
9062 return 0;
9063 }
9064 _ACEOF
9065 if ac_fn_c_try_link "$LINENO"; then :
9066 am_cv_val_LC_MESSAGES=yes
9067 else
9068 am_cv_val_LC_MESSAGES=no
9069 fi
9070 rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9074 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9075 if test $am_cv_val_LC_MESSAGES = yes; then
9076
9077 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9078
9079 fi
9080
9081
9082 # ----------------------- #
9083 # Checks for structures. #
9084 # ----------------------- #
9085
9086 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9087 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9088
9089 cat >>confdefs.h <<_ACEOF
9090 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9091 _ACEOF
9092
9093
9094 fi
9095 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9096 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9097
9098 cat >>confdefs.h <<_ACEOF
9099 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9100 _ACEOF
9101
9102
9103 fi
9104
9105
9106 # ------------------ #
9107 # Checks for types. #
9108 # ------------------ #
9109
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9111 $as_echo_n "checking return type of signal handlers... " >&6; }
9112 if test "${ac_cv_type_signal+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9117 #include <sys/types.h>
9118 #include <signal.h>
9119
9120 int
9121 main ()
9122 {
9123 return *(signal (0, 0)) (0) == 1;
9124 ;
9125 return 0;
9126 }
9127 _ACEOF
9128 if ac_fn_c_try_compile "$LINENO"; then :
9129 ac_cv_type_signal=int
9130 else
9131 ac_cv_type_signal=void
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 fi
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9136 $as_echo "$ac_cv_type_signal" >&6; }
9137
9138 cat >>confdefs.h <<_ACEOF
9139 #define RETSIGTYPE $ac_cv_type_signal
9140 _ACEOF
9141
9142
9143 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9144 #include <sys/socket.h>
9145
9146 "
9147 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9148
9149 cat >>confdefs.h <<_ACEOF
9150 #define HAVE_SOCKLEN_T 1
9151 _ACEOF
9152
9153
9154 fi
9155
9156
9157 # ------------------------------------- #
9158 # Checks for compiler characteristics. #
9159 # ------------------------------------- #
9160
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9162 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9163 if test "${ac_cv_c_const+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9165 else
9166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9167 /* end confdefs.h. */
9168
9169 int
9170 main ()
9171 {
9172 /* FIXME: Include the comments suggested by Paul. */
9173 #ifndef __cplusplus
9174 /* Ultrix mips cc rejects this. */
9175 typedef int charset[2];
9176 const charset cs;
9177 /* SunOS 4.1.1 cc rejects this. */
9178 char const *const *pcpcc;
9179 char **ppc;
9180 /* NEC SVR4.0.2 mips cc rejects this. */
9181 struct point {int x, y;};
9182 static struct point const zero = {0,0};
9183 /* AIX XL C 1.02.0.0 rejects this.
9184 It does not let you subtract one const X* pointer from another in
9185 an arm of an if-expression whose if-part is not a constant
9186 expression */
9187 const char *g = "string";
9188 pcpcc = &g + (g ? g-g : 0);
9189 /* HPUX 7.0 cc rejects these. */
9190 ++pcpcc;
9191 ppc = (char**) pcpcc;
9192 pcpcc = (char const *const *) ppc;
9193 { /* SCO 3.2v4 cc rejects this. */
9194 char *t;
9195 char const *s = 0 ? (char *) 0 : (char const *) 0;
9196
9197 *t++ = 0;
9198 if (s) return 0;
9199 }
9200 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9201 int x[] = {25, 17};
9202 const int *foo = &x[0];
9203 ++foo;
9204 }
9205 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9206 typedef const int *iptr;
9207 iptr p = 0;
9208 ++p;
9209 }
9210 { /* AIX XL C 1.02.0.0 rejects this saying
9211 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9212 struct s { int j; const int *ap[3]; };
9213 struct s *b; b->j = 5;
9214 }
9215 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9216 const int foo = 10;
9217 if (!foo) return 0;
9218 }
9219 return !cs[0] && !zero.x;
9220 #endif
9221
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 if ac_fn_c_try_compile "$LINENO"; then :
9227 ac_cv_c_const=yes
9228 else
9229 ac_cv_c_const=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9232 fi
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9234 $as_echo "$ac_cv_c_const" >&6; }
9235 if test $ac_cv_c_const = no; then
9236
9237 $as_echo "#define const /**/" >>confdefs.h
9238
9239 fi
9240
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9242 $as_echo_n "checking for inline... " >&6; }
9243 if test "${ac_cv_c_inline+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246 ac_cv_c_inline=no
9247 for ac_kw in inline __inline__ __inline; do
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249 /* end confdefs.h. */
9250 #ifndef __cplusplus
9251 typedef int foo_t;
9252 static $ac_kw foo_t static_foo () {return 0; }
9253 $ac_kw foo_t foo () {return 0; }
9254 #endif
9255
9256 _ACEOF
9257 if ac_fn_c_try_compile "$LINENO"; then :
9258 ac_cv_c_inline=$ac_kw
9259 fi
9260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9261 test "$ac_cv_c_inline" != no && break
9262 done
9263
9264 fi
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9266 $as_echo "$ac_cv_c_inline" >&6; }
9267
9268 case $ac_cv_c_inline in
9269 inline | yes) ;;
9270 *)
9271 case $ac_cv_c_inline in
9272 no) ac_val=;;
9273 *) ac_val=$ac_cv_c_inline;;
9274 esac
9275 cat >>confdefs.h <<_ACEOF
9276 #ifndef __cplusplus
9277 #define inline $ac_val
9278 #endif
9279 _ACEOF
9280 ;;
9281 esac
9282
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9284 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9285 if test "${ac_cv_c_bigendian+set}" = set; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 ac_cv_c_bigendian=unknown
9289 # See if we're dealing with a universal compiler.
9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9291 /* end confdefs.h. */
9292 #ifndef __APPLE_CC__
9293 not a universal capable compiler
9294 #endif
9295 typedef int dummy;
9296
9297 _ACEOF
9298 if ac_fn_c_try_compile "$LINENO"; then :
9299
9300 # Check for potential -arch flags. It is not universal unless
9301 # there are at least two -arch flags with different values.
9302 ac_arch=
9303 ac_prev=
9304 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9305 if test -n "$ac_prev"; then
9306 case $ac_word in
9307 i?86 | x86_64 | ppc | ppc64)
9308 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9309 ac_arch=$ac_word
9310 else
9311 ac_cv_c_bigendian=universal
9312 break
9313 fi
9314 ;;
9315 esac
9316 ac_prev=
9317 elif test "x$ac_word" = "x-arch"; then
9318 ac_prev=arch
9319 fi
9320 done
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9323 if test $ac_cv_c_bigendian = unknown; then
9324 # See if sys/param.h defines the BYTE_ORDER macro.
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 #include <sys/types.h>
9328 #include <sys/param.h>
9329
9330 int
9331 main ()
9332 {
9333 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9334 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9335 && LITTLE_ENDIAN)
9336 bogus endian macros
9337 #endif
9338
9339 ;
9340 return 0;
9341 }
9342 _ACEOF
9343 if ac_fn_c_try_compile "$LINENO"; then :
9344 # It does; now see whether it defined to BIG_ENDIAN or not.
9345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9346 /* end confdefs.h. */
9347 #include <sys/types.h>
9348 #include <sys/param.h>
9349
9350 int
9351 main ()
9352 {
9353 #if BYTE_ORDER != BIG_ENDIAN
9354 not big endian
9355 #endif
9356
9357 ;
9358 return 0;
9359 }
9360 _ACEOF
9361 if ac_fn_c_try_compile "$LINENO"; then :
9362 ac_cv_c_bigendian=yes
9363 else
9364 ac_cv_c_bigendian=no
9365 fi
9366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369 fi
9370 if test $ac_cv_c_bigendian = unknown; then
9371 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374 #include <limits.h>
9375
9376 int
9377 main ()
9378 {
9379 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9380 bogus endian macros
9381 #endif
9382
9383 ;
9384 return 0;
9385 }
9386 _ACEOF
9387 if ac_fn_c_try_compile "$LINENO"; then :
9388 # It does; now see whether it defined to _BIG_ENDIAN or not.
9389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390 /* end confdefs.h. */
9391 #include <limits.h>
9392
9393 int
9394 main ()
9395 {
9396 #ifndef _BIG_ENDIAN
9397 not big endian
9398 #endif
9399
9400 ;
9401 return 0;
9402 }
9403 _ACEOF
9404 if ac_fn_c_try_compile "$LINENO"; then :
9405 ac_cv_c_bigendian=yes
9406 else
9407 ac_cv_c_bigendian=no
9408 fi
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412 fi
9413 if test $ac_cv_c_bigendian = unknown; then
9414 # Compile a test program.
9415 if test "$cross_compiling" = yes; then :
9416 # Try to guess by grepping values from an object file.
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 short int ascii_mm[] =
9420 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9421 short int ascii_ii[] =
9422 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9423 int use_ascii (int i) {
9424 return ascii_mm[i] + ascii_ii[i];
9425 }
9426 short int ebcdic_ii[] =
9427 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9428 short int ebcdic_mm[] =
9429 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9430 int use_ebcdic (int i) {
9431 return ebcdic_mm[i] + ebcdic_ii[i];
9432 }
9433 extern int foo;
9434
9435 int
9436 main ()
9437 {
9438 return use_ascii (foo) == use_ebcdic (foo);
9439 ;
9440 return 0;
9441 }
9442 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"; then :
9444 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9445 ac_cv_c_bigendian=yes
9446 fi
9447 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9448 if test "$ac_cv_c_bigendian" = unknown; then
9449 ac_cv_c_bigendian=no
9450 else
9451 # finding both strings is unlikely to happen, but who knows?
9452 ac_cv_c_bigendian=unknown
9453 fi
9454 fi
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9457 else
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 $ac_includes_default
9461 int
9462 main ()
9463 {
9464
9465 /* Are we little or big endian? From Harbison&Steele. */
9466 union
9467 {
9468 long int l;
9469 char c[sizeof (long int)];
9470 } u;
9471 u.l = 1;
9472 return u.c[sizeof (long int) - 1] == 1;
9473
9474 ;
9475 return 0;
9476 }
9477 _ACEOF
9478 if ac_fn_c_try_run "$LINENO"; then :
9479 ac_cv_c_bigendian=no
9480 else
9481 ac_cv_c_bigendian=yes
9482 fi
9483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9484 conftest.$ac_objext conftest.beam conftest.$ac_ext
9485 fi
9486
9487 fi
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9490 $as_echo "$ac_cv_c_bigendian" >&6; }
9491 case $ac_cv_c_bigendian in #(
9492 yes)
9493 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9494 ;; #(
9495 no)
9496 ;; #(
9497 universal)
9498
9499 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9500
9501 ;; #(
9502 *)
9503 as_fn_error "unknown endianness
9504 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9505 esac
9506
9507
9508 # ------------------------------ #
9509 # Checks for library functions. #
9510 # ------------------------------ #
9511
9512 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9513 # for constant arguments. Useless!
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9515 $as_echo_n "checking for working alloca.h... " >&6; }
9516 if test "${ac_cv_working_alloca_h+set}" = set; then :
9517 $as_echo_n "(cached) " >&6
9518 else
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521 #include <alloca.h>
9522 int
9523 main ()
9524 {
9525 char *p = (char *) alloca (2 * sizeof (int));
9526 if (p) return 0;
9527 ;
9528 return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532 ac_cv_working_alloca_h=yes
9533 else
9534 ac_cv_working_alloca_h=no
9535 fi
9536 rm -f core conftest.err conftest.$ac_objext \
9537 conftest$ac_exeext conftest.$ac_ext
9538 fi
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9540 $as_echo "$ac_cv_working_alloca_h" >&6; }
9541 if test $ac_cv_working_alloca_h = yes; then
9542
9543 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9544
9545 fi
9546
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9548 $as_echo_n "checking for alloca... " >&6; }
9549 if test "${ac_cv_func_alloca_works+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9554 #ifdef __GNUC__
9555 # define alloca __builtin_alloca
9556 #else
9557 # ifdef _MSC_VER
9558 # include <malloc.h>
9559 # define alloca _alloca
9560 # else
9561 # ifdef HAVE_ALLOCA_H
9562 # include <alloca.h>
9563 # else
9564 # ifdef _AIX
9565 #pragma alloca
9566 # else
9567 # ifndef alloca /* predefined by HP cc +Olibcalls */
9568 char *alloca ();
9569 # endif
9570 # endif
9571 # endif
9572 # endif
9573 #endif
9574
9575 int
9576 main ()
9577 {
9578 char *p = (char *) alloca (1);
9579 if (p) return 0;
9580 ;
9581 return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_link "$LINENO"; then :
9585 ac_cv_func_alloca_works=yes
9586 else
9587 ac_cv_func_alloca_works=no
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 fi
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9593 $as_echo "$ac_cv_func_alloca_works" >&6; }
9594
9595 if test $ac_cv_func_alloca_works = yes; then
9596
9597 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9598
9599 else
9600 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9601 # that cause trouble. Some versions do not even contain alloca or
9602 # contain a buggy version. If you still want to use their alloca,
9603 # use ar to extract alloca.o from them instead of compiling alloca.c.
9604
9605 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9606
9607 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9608
9609
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9611 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9612 if test "${ac_cv_os_cray+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 #if defined CRAY && ! defined CRAY2
9618 webecray
9619 #else
9620 wenotbecray
9621 #endif
9622
9623 _ACEOF
9624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9625 $EGREP "webecray" >/dev/null 2>&1; then :
9626 ac_cv_os_cray=yes
9627 else
9628 ac_cv_os_cray=no
9629 fi
9630 rm -f conftest*
9631
9632 fi
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9634 $as_echo "$ac_cv_os_cray" >&6; }
9635 if test $ac_cv_os_cray = yes; then
9636 for ac_func in _getb67 GETB67 getb67; do
9637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9638 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9639 eval as_val=\$$as_ac_var
9640 if test "x$as_val" = x""yes; then :
9641
9642 cat >>confdefs.h <<_ACEOF
9643 #define CRAY_STACKSEG_END $ac_func
9644 _ACEOF
9645
9646 break
9647 fi
9648
9649 done
9650 fi
9651
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9653 $as_echo_n "checking stack direction for C alloca... " >&6; }
9654 if test "${ac_cv_c_stack_direction+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 if test "$cross_compiling" = yes; then :
9658 ac_cv_c_stack_direction=0
9659 else
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 int
9664 find_stack_direction ()
9665 {
9666 static char *addr = 0;
9667 auto char dummy;
9668 if (addr == 0)
9669 {
9670 addr = &dummy;
9671 return find_stack_direction ();
9672 }
9673 else
9674 return (&dummy > addr) ? 1 : -1;
9675 }
9676
9677 int
9678 main ()
9679 {
9680 return find_stack_direction () < 0;
9681 }
9682 _ACEOF
9683 if ac_fn_c_try_run "$LINENO"; then :
9684 ac_cv_c_stack_direction=1
9685 else
9686 ac_cv_c_stack_direction=-1
9687 fi
9688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9689 conftest.$ac_objext conftest.beam conftest.$ac_ext
9690 fi
9691
9692 fi
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9694 $as_echo "$ac_cv_c_stack_direction" >&6; }
9695 cat >>confdefs.h <<_ACEOF
9696 #define STACK_DIRECTION $ac_cv_c_stack_direction
9697 _ACEOF
9698
9699
9700 fi
9701
9702 for ac_header in stdlib.h unistd.h
9703 do :
9704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9705 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9706 eval as_val=\$$as_ac_Header
9707 if test "x$as_val" = x""yes; then :
9708 cat >>confdefs.h <<_ACEOF
9709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9710 _ACEOF
9711
9712 fi
9713
9714 done
9715
9716 for ac_func in getpagesize
9717 do :
9718 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9719 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9720 cat >>confdefs.h <<_ACEOF
9721 #define HAVE_GETPAGESIZE 1
9722 _ACEOF
9723
9724 fi
9725 done
9726
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9728 $as_echo_n "checking for working mmap... " >&6; }
9729 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 if test "$cross_compiling" = yes; then :
9733 ac_cv_func_mmap_fixed_mapped=no
9734 else
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9737 $ac_includes_default
9738 /* malloc might have been renamed as rpl_malloc. */
9739 #undef malloc
9740
9741 /* Thanks to Mike Haertel and Jim Avera for this test.
9742 Here is a matrix of mmap possibilities:
9743 mmap private not fixed
9744 mmap private fixed at somewhere currently unmapped
9745 mmap private fixed at somewhere already mapped
9746 mmap shared not fixed
9747 mmap shared fixed at somewhere currently unmapped
9748 mmap shared fixed at somewhere already mapped
9749 For private mappings, we should verify that changes cannot be read()
9750 back from the file, nor mmap's back from the file at a different
9751 address. (There have been systems where private was not correctly
9752 implemented like the infamous i386 svr4.0, and systems where the
9753 VM page cache was not coherent with the file system buffer cache
9754 like early versions of FreeBSD and possibly contemporary NetBSD.)
9755 For shared mappings, we should conversely verify that changes get
9756 propagated back to all the places they're supposed to be.
9757
9758 Grep wants private fixed already mapped.
9759 The main things grep needs to know about mmap are:
9760 * does it exist and is it safe to write into the mmap'd area
9761 * how to use it (BSD variants) */
9762
9763 #include <fcntl.h>
9764 #include <sys/mman.h>
9765
9766 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9767 char *malloc ();
9768 #endif
9769
9770 /* This mess was copied from the GNU getpagesize.h. */
9771 #ifndef HAVE_GETPAGESIZE
9772 /* Assume that all systems that can run configure have sys/param.h. */
9773 # ifndef HAVE_SYS_PARAM_H
9774 # define HAVE_SYS_PARAM_H 1
9775 # endif
9776
9777 # ifdef _SC_PAGESIZE
9778 # define getpagesize() sysconf(_SC_PAGESIZE)
9779 # else /* no _SC_PAGESIZE */
9780 # ifdef HAVE_SYS_PARAM_H
9781 # include <sys/param.h>
9782 # ifdef EXEC_PAGESIZE
9783 # define getpagesize() EXEC_PAGESIZE
9784 # else /* no EXEC_PAGESIZE */
9785 # ifdef NBPG
9786 # define getpagesize() NBPG * CLSIZE
9787 # ifndef CLSIZE
9788 # define CLSIZE 1
9789 # endif /* no CLSIZE */
9790 # else /* no NBPG */
9791 # ifdef NBPC
9792 # define getpagesize() NBPC
9793 # else /* no NBPC */
9794 # ifdef PAGESIZE
9795 # define getpagesize() PAGESIZE
9796 # endif /* PAGESIZE */
9797 # endif /* no NBPC */
9798 # endif /* no NBPG */
9799 # endif /* no EXEC_PAGESIZE */
9800 # else /* no HAVE_SYS_PARAM_H */
9801 # define getpagesize() 8192 /* punt totally */
9802 # endif /* no HAVE_SYS_PARAM_H */
9803 # endif /* no _SC_PAGESIZE */
9804
9805 #endif /* no HAVE_GETPAGESIZE */
9806
9807 int
9808 main ()
9809 {
9810 char *data, *data2, *data3;
9811 int i, pagesize;
9812 int fd;
9813
9814 pagesize = getpagesize ();
9815
9816 /* First, make a file with some known garbage in it. */
9817 data = (char *) malloc (pagesize);
9818 if (!data)
9819 return 1;
9820 for (i = 0; i < pagesize; ++i)
9821 *(data + i) = rand ();
9822 umask (0);
9823 fd = creat ("conftest.mmap", 0600);
9824 if (fd < 0)
9825 return 1;
9826 if (write (fd, data, pagesize) != pagesize)
9827 return 1;
9828 close (fd);
9829
9830 /* Next, try to mmap the file at a fixed address which already has
9831 something else allocated at it. If we can, also make sure that
9832 we see the same garbage. */
9833 fd = open ("conftest.mmap", O_RDWR);
9834 if (fd < 0)
9835 return 1;
9836 data2 = (char *) malloc (2 * pagesize);
9837 if (!data2)
9838 return 1;
9839 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9840 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9841 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9842 return 1;
9843 for (i = 0; i < pagesize; ++i)
9844 if (*(data + i) != *(data2 + i))
9845 return 1;
9846
9847 /* Finally, make sure that changes to the mapped area do not
9848 percolate back to the file as seen by read(). (This is a bug on
9849 some variants of i386 svr4.0.) */
9850 for (i = 0; i < pagesize; ++i)
9851 *(data2 + i) = *(data2 + i) + 1;
9852 data3 = (char *) malloc (pagesize);
9853 if (!data3)
9854 return 1;
9855 if (read (fd, data3, pagesize) != pagesize)
9856 return 1;
9857 for (i = 0; i < pagesize; ++i)
9858 if (*(data + i) != *(data3 + i))
9859 return 1;
9860 close (fd);
9861 return 0;
9862 }
9863 _ACEOF
9864 if ac_fn_c_try_run "$LINENO"; then :
9865 ac_cv_func_mmap_fixed_mapped=yes
9866 else
9867 ac_cv_func_mmap_fixed_mapped=no
9868 fi
9869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9870 conftest.$ac_objext conftest.beam conftest.$ac_ext
9871 fi
9872
9873 fi
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9875 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9876 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9877
9878 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9879
9880 fi
9881 rm -f conftest.mmap
9882
9883 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9884 if test "x$ac_cv_type_pid_t" = x""yes; then :
9885
9886 else
9887
9888 cat >>confdefs.h <<_ACEOF
9889 #define pid_t int
9890 _ACEOF
9891
9892 fi
9893
9894 for ac_header in vfork.h
9895 do :
9896 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9897 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9898 cat >>confdefs.h <<_ACEOF
9899 #define HAVE_VFORK_H 1
9900 _ACEOF
9901
9902 fi
9903
9904 done
9905
9906 for ac_func in fork vfork
9907 do :
9908 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9909 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9910 eval as_val=\$$as_ac_var
9911 if test "x$as_val" = x""yes; then :
9912 cat >>confdefs.h <<_ACEOF
9913 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9914 _ACEOF
9915
9916 fi
9917 done
9918
9919 if test "x$ac_cv_func_fork" = xyes; then
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9921 $as_echo_n "checking for working fork... " >&6; }
9922 if test "${ac_cv_func_fork_works+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9924 else
9925 if test "$cross_compiling" = yes; then :
9926 ac_cv_func_fork_works=cross
9927 else
9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929 /* end confdefs.h. */
9930 $ac_includes_default
9931 int
9932 main ()
9933 {
9934
9935 /* By Ruediger Kuhlmann. */
9936 return fork () < 0;
9937
9938 ;
9939 return 0;
9940 }
9941 _ACEOF
9942 if ac_fn_c_try_run "$LINENO"; then :
9943 ac_cv_func_fork_works=yes
9944 else
9945 ac_cv_func_fork_works=no
9946 fi
9947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9948 conftest.$ac_objext conftest.beam conftest.$ac_ext
9949 fi
9950
9951 fi
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9953 $as_echo "$ac_cv_func_fork_works" >&6; }
9954
9955 else
9956 ac_cv_func_fork_works=$ac_cv_func_fork
9957 fi
9958 if test "x$ac_cv_func_fork_works" = xcross; then
9959 case $host in
9960 *-*-amigaos* | *-*-msdosdjgpp*)
9961 # Override, as these systems have only a dummy fork() stub
9962 ac_cv_func_fork_works=no
9963 ;;
9964 *)
9965 ac_cv_func_fork_works=yes
9966 ;;
9967 esac
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9969 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9970 fi
9971 ac_cv_func_vfork_works=$ac_cv_func_vfork
9972 if test "x$ac_cv_func_vfork" = xyes; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9974 $as_echo_n "checking for working vfork... " >&6; }
9975 if test "${ac_cv_func_vfork_works+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 if test "$cross_compiling" = yes; then :
9979 ac_cv_func_vfork_works=cross
9980 else
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9983 /* Thanks to Paul Eggert for this test. */
9984 $ac_includes_default
9985 #include <sys/wait.h>
9986 #ifdef HAVE_VFORK_H
9987 # include <vfork.h>
9988 #endif
9989 /* On some sparc systems, changes by the child to local and incoming
9990 argument registers are propagated back to the parent. The compiler
9991 is told about this with #include <vfork.h>, but some compilers
9992 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9993 static variable whose address is put into a register that is
9994 clobbered by the vfork. */
9995 static void
9996 #ifdef __cplusplus
9997 sparc_address_test (int arg)
9998 # else
9999 sparc_address_test (arg) int arg;
10000 #endif
10001 {
10002 static pid_t child;
10003 if (!child) {
10004 child = vfork ();
10005 if (child < 0) {
10006 perror ("vfork");
10007 _exit(2);
10008 }
10009 if (!child) {
10010 arg = getpid();
10011 write(-1, "", 0);
10012 _exit (arg);
10013 }
10014 }
10015 }
10016
10017 int
10018 main ()
10019 {
10020 pid_t parent = getpid ();
10021 pid_t child;
10022
10023 sparc_address_test (0);
10024
10025 child = vfork ();
10026
10027 if (child == 0) {
10028 /* Here is another test for sparc vfork register problems. This
10029 test uses lots of local variables, at least as many local
10030 variables as main has allocated so far including compiler
10031 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
10032 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
10033 reuse the register of parent for one of the local variables,
10034 since it will think that parent can't possibly be used any more
10035 in this routine. Assigning to the local variable will thus
10036 munge parent in the parent process. */
10037 pid_t
10038 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
10039 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
10040 /* Convince the compiler that p..p7 are live; otherwise, it might
10041 use the same hardware register for all 8 local variables. */
10042 if (p != p1 || p != p2 || p != p3 || p != p4
10043 || p != p5 || p != p6 || p != p7)
10044 _exit(1);
10045
10046 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
10047 from child file descriptors. If the child closes a descriptor
10048 before it execs or exits, this munges the parent's descriptor
10049 as well. Test for this by closing stdout in the child. */
10050 _exit(close(fileno(stdout)) != 0);
10051 } else {
10052 int status;
10053 struct stat st;
10054
10055 while (wait(&status) != child)
10056 ;
10057 return (
10058 /* Was there some problem with vforking? */
10059 child < 0
10060
10061 /* Did the child fail? (This shouldn't happen.) */
10062 || status
10063
10064 /* Did the vfork/compiler bug occur? */
10065 || parent != getpid()
10066
10067 /* Did the file descriptor bug occur? */
10068 || fstat(fileno(stdout), &st) != 0
10069 );
10070 }
10071 }
10072 _ACEOF
10073 if ac_fn_c_try_run "$LINENO"; then :
10074 ac_cv_func_vfork_works=yes
10075 else
10076 ac_cv_func_vfork_works=no
10077 fi
10078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10079 conftest.$ac_objext conftest.beam conftest.$ac_ext
10080 fi
10081
10082 fi
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10084 $as_echo "$ac_cv_func_vfork_works" >&6; }
10085
10086 fi;
10087 if test "x$ac_cv_func_fork_works" = xcross; then
10088 ac_cv_func_vfork_works=$ac_cv_func_vfork
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10090 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10091 fi
10092
10093 if test "x$ac_cv_func_vfork_works" = xyes; then
10094
10095 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10096
10097 else
10098
10099 $as_echo "#define vfork fork" >>confdefs.h
10100
10101 fi
10102 if test "x$ac_cv_func_fork_works" = xyes; then
10103
10104 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10105
10106 fi
10107
10108 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10109 pipe poll pread pread64 pwrite readlink resize_term \
10110 sbrk setpgid setpgrp setsid \
10111 sigaction sigprocmask sigsetmask socketpair syscall \
10112 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10113 setrlimit getrlimit posix_madvise waitpid lstat
10114 do :
10115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10116 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10117 eval as_val=\$$as_ac_var
10118 if test "x$as_val" = x""yes; then :
10119 cat >>confdefs.h <<_ACEOF
10120 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10121 _ACEOF
10122
10123 fi
10124 done
10125
10126
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10128 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10129 if test "${am_cv_langinfo_codeset+set}" = set; then :
10130 $as_echo_n "(cached) " >&6
10131 else
10132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10133 /* end confdefs.h. */
10134 #include <langinfo.h>
10135 int
10136 main ()
10137 {
10138 char* cs = nl_langinfo(CODESET);
10139 ;
10140 return 0;
10141 }
10142 _ACEOF
10143 if ac_fn_c_try_link "$LINENO"; then :
10144 am_cv_langinfo_codeset=yes
10145 else
10146 am_cv_langinfo_codeset=no
10147 fi
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10153 $as_echo "$am_cv_langinfo_codeset" >&6; }
10154 if test $am_cv_langinfo_codeset = yes; then
10155
10156 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10157
10158 fi
10159
10160
10161 # Check the return and argument types of ptrace. No canned test for
10162 # this, so roll our own.
10163 gdb_ptrace_headers='
10164 #if HAVE_SYS_TYPES_H
10165 # include <sys/types.h>
10166 #endif
10167 #if HAVE_SYS_PTRACE_H
10168 # include <sys/ptrace.h>
10169 #endif
10170 #if HAVE_UNISTD_H
10171 # include <unistd.h>
10172 #endif
10173 '
10174 # There is no point in checking if we don't have a prototype.
10175 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10176 "
10177 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10178 ac_have_decl=1
10179 else
10180 ac_have_decl=0
10181 fi
10182
10183 cat >>confdefs.h <<_ACEOF
10184 #define HAVE_DECL_PTRACE $ac_have_decl
10185 _ACEOF
10186 if test $ac_have_decl = 1; then :
10187
10188 else
10189
10190 : ${gdb_cv_func_ptrace_ret='int'}
10191 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10192
10193 fi
10194
10195 # Check return type. Varargs (used on GNU/Linux) conflict with the
10196 # empty argument list, so check for that explicitly.
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10198 $as_echo_n "checking return type of ptrace... " >&6; }
10199 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 $gdb_ptrace_headers
10205 int
10206 main ()
10207 {
10208 extern long ptrace (enum __ptrace_request, ...);
10209 ;
10210 return 0;
10211 }
10212 _ACEOF
10213 if ac_fn_c_try_compile "$LINENO"; then :
10214 gdb_cv_func_ptrace_ret='long'
10215 else
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 $gdb_ptrace_headers
10219 int
10220 main ()
10221 {
10222 extern int ptrace ();
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228 gdb_cv_func_ptrace_ret='int'
10229 else
10230 gdb_cv_func_ptrace_ret='long'
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235 fi
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10237 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10238
10239 cat >>confdefs.h <<_ACEOF
10240 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10241 _ACEOF
10242
10243 # Check argument types.
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10245 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10246 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10247 $as_echo_n "(cached) " >&6
10248 else
10249
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 $gdb_ptrace_headers
10253 int
10254 main ()
10255 {
10256 extern long ptrace (enum __ptrace_request, ...);
10257 ;
10258 return 0;
10259 }
10260 _ACEOF
10261 if ac_fn_c_try_compile "$LINENO"; then :
10262 gdb_cv_func_ptrace_args='int,int,long,long'
10263 else
10264
10265 for gdb_arg1 in 'int' 'long'; do
10266 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10267 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10268 for gdb_arg4 in 'int' 'long'; do
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10270 /* end confdefs.h. */
10271 $gdb_ptrace_headers
10272 int
10273 main ()
10274 {
10275
10276 extern $gdb_cv_func_ptrace_ret
10277 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10278
10279 ;
10280 return 0;
10281 }
10282 _ACEOF
10283 if ac_fn_c_try_compile "$LINENO"; then :
10284 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10285 break 4;
10286 fi
10287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10288 for gdb_arg5 in 'int *' 'int' 'long'; do
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10291 $gdb_ptrace_headers
10292 int
10293 main ()
10294 {
10295
10296 extern $gdb_cv_func_ptrace_ret
10297 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10298
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 if ac_fn_c_try_compile "$LINENO"; then :
10304
10305 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10306 break 5;
10307 fi
10308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 done
10310 done
10311 done
10312 done
10313 done
10314 # Provide a safe default value.
10315 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10316
10317 fi
10318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10319 fi
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10321 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10322 ac_save_IFS=$IFS; IFS=','
10323 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10324 IFS=$ac_save_IFS
10325 shift
10326
10327 cat >>confdefs.h <<_ACEOF
10328 #define PTRACE_TYPE_ARG3 $3
10329 _ACEOF
10330
10331 if test -n "$5"; then
10332
10333 cat >>confdefs.h <<_ACEOF
10334 #define PTRACE_TYPE_ARG5 $5
10335 _ACEOF
10336
10337 fi
10338
10339 if test "$cross_compiling" = no; then
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10341 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10342 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 if test "$cross_compiling" = yes; then :
10346 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
10347 else
10348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10349 /* end confdefs.h. */
10350 $ac_includes_default
10351 int
10352 main ()
10353 {
10354 /* If this system has a BSD-style setpgrp which takes arguments,
10355 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10356 exit successfully. */
10357 return setpgrp (1,1) != -1;
10358 ;
10359 return 0;
10360 }
10361 _ACEOF
10362 if ac_fn_c_try_run "$LINENO"; then :
10363 ac_cv_func_setpgrp_void=no
10364 else
10365 ac_cv_func_setpgrp_void=yes
10366 fi
10367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10368 conftest.$ac_objext conftest.beam conftest.$ac_ext
10369 fi
10370
10371 fi
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10373 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10374 if test $ac_cv_func_setpgrp_void = yes; then
10375
10376 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10377
10378 fi
10379
10380 else
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10382 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10383 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388
10389 #include <unistd.h>
10390
10391 int
10392 main ()
10393 {
10394
10395 if (setpgrp(1,1) == -1)
10396 exit (0);
10397 else
10398 exit (1);
10399
10400 ;
10401 return 0;
10402 }
10403 _ACEOF
10404 if ac_fn_c_try_compile "$LINENO"; then :
10405 ac_cv_func_setpgrp_void=no
10406 else
10407 ac_cv_func_setpgrp_void=yes
10408 fi
10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410 fi
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10412 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10413 if test $ac_cv_func_setpgrp_void = yes; then
10414 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10415
10416 fi
10417 fi
10418
10419 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10420 # since sigsetjmp might only be defined as a macro.
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10422 $as_echo_n "checking for sigsetjmp... " >&6; }
10423 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
10425 else
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428
10429 #include <setjmp.h>
10430
10431 int
10432 main ()
10433 {
10434 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10435 ;
10436 return 0;
10437 }
10438 _ACEOF
10439 if ac_fn_c_try_compile "$LINENO"; then :
10440 gdb_cv_func_sigsetjmp=yes
10441 else
10442 gdb_cv_func_sigsetjmp=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10445 fi
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10447 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10448 if test $gdb_cv_func_sigsetjmp = yes; then
10449
10450 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10451
10452 fi
10453
10454 # Assume we'll default to using the included libiberty regex.
10455 gdb_use_included_regex=yes
10456
10457 # However, if the system regex is GNU regex, then default to *not*
10458 # using the included regex.
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10460 $as_echo_n "checking for GNU regex... " >&6; }
10461 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10462 $as_echo_n "(cached) " >&6
10463 else
10464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10465 /* end confdefs.h. */
10466 #include <gnu-versions.h>
10467 int
10468 main ()
10469 {
10470 #define REGEX_INTERFACE_VERSION 1
10471 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10472 # error "Version mismatch"
10473 #endif
10474 ;
10475 return 0;
10476 }
10477 _ACEOF
10478 if ac_fn_c_try_compile "$LINENO"; then :
10479 gdb_cv_have_gnu_regex=yes
10480 else
10481 gdb_cv_have_gnu_regex=no
10482 fi
10483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10484 fi
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10486 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10487 if test $gdb_cv_have_gnu_regex = yes; then
10488 gdb_use_included_regex=no
10489 fi
10490
10491
10492 # Check whether --with-included-regex was given.
10493 if test "${with_included_regex+set}" = set; then :
10494 withval=$with_included_regex; gdb_with_regex=$withval
10495 else
10496 gdb_with_regex=$gdb_use_included_regex
10497 fi
10498
10499 if test "$gdb_with_regex" = yes; then
10500
10501 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10502
10503 fi
10504
10505 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10506 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10507 #include <sys/proc.h>
10508
10509 "
10510 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
10511
10512 cat >>confdefs.h <<_ACEOF
10513 #define HAVE_STRUCT_THREAD_TD_PCB 1
10514 _ACEOF
10515
10516
10517 fi
10518
10519
10520 # See if <sys/lwp.h> defines `struct lwp`.
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10522 $as_echo_n "checking for struct lwp... " >&6; }
10523 if test "${gdb_cv_struct_lwp+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10525 else
10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10528 #include <sys/param.h>
10529 #include <sys/lwp.h>
10530 int
10531 main ()
10532 {
10533 struct lwp l;
10534 ;
10535 return 0;
10536 }
10537 _ACEOF
10538 if ac_fn_c_try_compile "$LINENO"; then :
10539 gdb_cv_struct_lwp=yes
10540 else
10541 gdb_cv_struct_lwp=no
10542 fi
10543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10544 fi
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10546 $as_echo "$gdb_cv_struct_lwp" >&6; }
10547 if test $gdb_cv_struct_lwp = yes; then
10548
10549 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10550
10551 fi
10552
10553 # See if <machine/reg.h> degines `struct reg'.
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10555 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10556 if test "${gdb_cv_struct_reg+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561 #include <sys/types.h>
10562 #include <machine/reg.h>
10563 int
10564 main ()
10565 {
10566 struct reg r;
10567 ;
10568 return 0;
10569 }
10570 _ACEOF
10571 if ac_fn_c_try_compile "$LINENO"; then :
10572 gdb_cv_struct_reg=yes
10573 else
10574 gdb_cv_struct_reg=no
10575 fi
10576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10579 $as_echo "$gdb_cv_struct_reg" >&6; }
10580 if test $gdb_cv_struct_reg = yes; then
10581
10582 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10583
10584 fi
10585
10586 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10587 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10588 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10589 "
10590 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
10591
10592 cat >>confdefs.h <<_ACEOF
10593 #define HAVE_STRUCT_REG_R_FS 1
10594 _ACEOF
10595
10596
10597 fi
10598 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10599 "
10600 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
10601
10602 cat >>confdefs.h <<_ACEOF
10603 #define HAVE_STRUCT_REG_R_GS 1
10604 _ACEOF
10605
10606
10607 fi
10608
10609
10610 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10612 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10613 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10614 $as_echo_n "(cached) " >&6
10615 else
10616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10617 /* end confdefs.h. */
10618 #include <sys/ptrace.h>
10619 int
10620 main ()
10621 {
10622 PTRACE_GETREGS;
10623 ;
10624 return 0;
10625 }
10626 _ACEOF
10627 if ac_fn_c_try_compile "$LINENO"; then :
10628 gdb_cv_have_ptrace_getregs=yes
10629 else
10630 gdb_cv_have_ptrace_getregs=no
10631 fi
10632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10633 fi
10634
10635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10636 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10637 if test $gdb_cv_have_ptrace_getregs = yes; then
10638
10639 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10640
10641 fi
10642
10643 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10645 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10646 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10647 $as_echo_n "(cached) " >&6
10648 else
10649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650 /* end confdefs.h. */
10651 #include <sys/ptrace.h>
10652 int
10653 main ()
10654 {
10655 PTRACE_GETFPXREGS;
10656 ;
10657 return 0;
10658 }
10659 _ACEOF
10660 if ac_fn_c_try_compile "$LINENO"; then :
10661 gdb_cv_have_ptrace_getfpxregs=yes
10662 else
10663 gdb_cv_have_ptrace_getfpxregs=no
10664 fi
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10666 fi
10667
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10669 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10670 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10671
10672 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10673
10674 fi
10675
10676 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10678 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10679 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
10681 else
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 #include <sys/types.h>
10685 #include <sys/ptrace.h>
10686 int
10687 main ()
10688 {
10689 PT_GETDBREGS;
10690 ;
10691 return 0;
10692 }
10693 _ACEOF
10694 if ac_fn_c_try_compile "$LINENO"; then :
10695 gdb_cv_have_pt_getdbregs=yes
10696 else
10697 gdb_cv_have_pt_getdbregs=no
10698 fi
10699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10700 fi
10701
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10703 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10704 if test $gdb_cv_have_pt_getdbregs = yes; then
10705
10706 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10707
10708 fi
10709
10710 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10712 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10713 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10714 $as_echo_n "(cached) " >&6
10715 else
10716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10717 /* end confdefs.h. */
10718 #include <sys/types.h>
10719 #include <sys/ptrace.h>
10720 int
10721 main ()
10722 {
10723 PT_GETXMMREGS;
10724 ;
10725 return 0;
10726 }
10727 _ACEOF
10728 if ac_fn_c_try_compile "$LINENO"; then :
10729 gdb_cv_have_pt_getxmmregs=yes
10730 else
10731 gdb_cv_have_pt_getxmmregs=no
10732 fi
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 fi
10735
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10737 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10738 if test $gdb_cv_have_pt_getxmmregs = yes; then
10739
10740 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10741
10742 fi
10743
10744 # Detect which type of /proc is in use, such as for Unixware or Solaris.
10745
10746 if test "${target}" = "${host}"; then
10747 case "${host}" in
10748 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
10749
10750 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10751
10752 ;;
10753 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
10754
10755 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10756
10757 ;;
10758 mips-sgi-irix5*)
10759 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10760
10761 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10762
10763 ;;
10764 esac
10765 fi
10766
10767 if test "$ac_cv_header_sys_procfs_h" = yes; then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10769 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10770 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10771 $as_echo_n "(cached) " >&6
10772 else
10773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10774 /* end confdefs.h. */
10775
10776 #define _SYSCALL32
10777 /* Needed for new procfs interface on sparc-solaris. */
10778 #define _STRUCTURED_PROC 1
10779 #include <sys/procfs.h>
10780 int
10781 main ()
10782 {
10783 pstatus_t avar
10784 ;
10785 return 0;
10786 }
10787 _ACEOF
10788 if ac_fn_c_try_compile "$LINENO"; then :
10789 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10790 else
10791 bfd_cv_have_sys_procfs_type_pstatus_t=no
10792
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10795 fi
10796
10797 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10798
10799 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10800
10801 fi
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10803 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10804
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10806 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10807 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809 else
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10812
10813 #define _SYSCALL32
10814 /* Needed for new procfs interface on sparc-solaris. */
10815 #define _STRUCTURED_PROC 1
10816 #include <sys/procfs.h>
10817 int
10818 main ()
10819 {
10820 prrun_t avar
10821 ;
10822 return 0;
10823 }
10824 _ACEOF
10825 if ac_fn_c_try_compile "$LINENO"; then :
10826 bfd_cv_have_sys_procfs_type_prrun_t=yes
10827 else
10828 bfd_cv_have_sys_procfs_type_prrun_t=no
10829
10830 fi
10831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10832 fi
10833
10834 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10835
10836 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10837
10838 fi
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10840 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10841
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10843 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10844 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846 else
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10849
10850 #define _SYSCALL32
10851 /* Needed for new procfs interface on sparc-solaris. */
10852 #define _STRUCTURED_PROC 1
10853 #include <sys/procfs.h>
10854 int
10855 main ()
10856 {
10857 gregset_t avar
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_c_try_compile "$LINENO"; then :
10863 bfd_cv_have_sys_procfs_type_gregset_t=yes
10864 else
10865 bfd_cv_have_sys_procfs_type_gregset_t=no
10866
10867 fi
10868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10869 fi
10870
10871 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10872
10873 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10874
10875 fi
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10877 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10878
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10880 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10881 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10882 $as_echo_n "(cached) " >&6
10883 else
10884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10885 /* end confdefs.h. */
10886
10887 #define _SYSCALL32
10888 /* Needed for new procfs interface on sparc-solaris. */
10889 #define _STRUCTURED_PROC 1
10890 #include <sys/procfs.h>
10891 int
10892 main ()
10893 {
10894 fpregset_t avar
10895 ;
10896 return 0;
10897 }
10898 _ACEOF
10899 if ac_fn_c_try_compile "$LINENO"; then :
10900 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10901 else
10902 bfd_cv_have_sys_procfs_type_fpregset_t=no
10903
10904 fi
10905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10906 fi
10907
10908 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10909
10910 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10911
10912 fi
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10914 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10915
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10917 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10918 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
10919 $as_echo_n "(cached) " >&6
10920 else
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10923
10924 #define _SYSCALL32
10925 /* Needed for new procfs interface on sparc-solaris. */
10926 #define _STRUCTURED_PROC 1
10927 #include <sys/procfs.h>
10928 int
10929 main ()
10930 {
10931 prgregset_t avar
10932 ;
10933 return 0;
10934 }
10935 _ACEOF
10936 if ac_fn_c_try_compile "$LINENO"; then :
10937 bfd_cv_have_sys_procfs_type_prgregset_t=yes
10938 else
10939 bfd_cv_have_sys_procfs_type_prgregset_t=no
10940
10941 fi
10942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10943 fi
10944
10945 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10946
10947 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10948
10949 fi
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10951 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10952
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10954 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10955 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
10956 $as_echo_n "(cached) " >&6
10957 else
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10960
10961 #define _SYSCALL32
10962 /* Needed for new procfs interface on sparc-solaris. */
10963 #define _STRUCTURED_PROC 1
10964 #include <sys/procfs.h>
10965 int
10966 main ()
10967 {
10968 prfpregset_t avar
10969 ;
10970 return 0;
10971 }
10972 _ACEOF
10973 if ac_fn_c_try_compile "$LINENO"; then :
10974 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
10975 else
10976 bfd_cv_have_sys_procfs_type_prfpregset_t=no
10977
10978 fi
10979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10980 fi
10981
10982 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10983
10984 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10985
10986 fi
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10988 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10989
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10991 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10992 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997
10998 #define _SYSCALL32
10999 /* Needed for new procfs interface on sparc-solaris. */
11000 #define _STRUCTURED_PROC 1
11001 #include <sys/procfs.h>
11002 int
11003 main ()
11004 {
11005 prgregset32_t avar
11006 ;
11007 return 0;
11008 }
11009 _ACEOF
11010 if ac_fn_c_try_compile "$LINENO"; then :
11011 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
11012 else
11013 bfd_cv_have_sys_procfs_type_prgregset32_t=no
11014
11015 fi
11016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11017 fi
11018
11019 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
11020
11021 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
11022
11023 fi
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
11025 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
11026
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
11028 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
11029 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11034
11035 #define _SYSCALL32
11036 /* Needed for new procfs interface on sparc-solaris. */
11037 #define _STRUCTURED_PROC 1
11038 #include <sys/procfs.h>
11039 int
11040 main ()
11041 {
11042 prfpregset32_t avar
11043 ;
11044 return 0;
11045 }
11046 _ACEOF
11047 if ac_fn_c_try_compile "$LINENO"; then :
11048 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
11049 else
11050 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
11051
11052 fi
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054 fi
11055
11056 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
11057
11058 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
11059
11060 fi
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
11062 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
11063
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
11065 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
11066 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
11067 $as_echo_n "(cached) " >&6
11068 else
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071
11072 #define _SYSCALL32
11073 /* Needed for new procfs interface on sparc-solaris. */
11074 #define _STRUCTURED_PROC 1
11075 #include <sys/procfs.h>
11076 int
11077 main ()
11078 {
11079 lwpid_t avar
11080 ;
11081 return 0;
11082 }
11083 _ACEOF
11084 if ac_fn_c_try_compile "$LINENO"; then :
11085 bfd_cv_have_sys_procfs_type_lwpid_t=yes
11086 else
11087 bfd_cv_have_sys_procfs_type_lwpid_t=no
11088
11089 fi
11090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 fi
11092
11093 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11094
11095 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11096
11097 fi
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11099 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11100
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11102 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11103 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108
11109 #define _SYSCALL32
11110 /* Needed for new procfs interface on sparc-solaris. */
11111 #define _STRUCTURED_PROC 1
11112 #include <sys/procfs.h>
11113 int
11114 main ()
11115 {
11116 psaddr_t avar
11117 ;
11118 return 0;
11119 }
11120 _ACEOF
11121 if ac_fn_c_try_compile "$LINENO"; then :
11122 bfd_cv_have_sys_procfs_type_psaddr_t=yes
11123 else
11124 bfd_cv_have_sys_procfs_type_psaddr_t=no
11125
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 fi
11129
11130 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11131
11132 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11133
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11136 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11137
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11139 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11140 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11141 $as_echo_n "(cached) " >&6
11142 else
11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145
11146 #define _SYSCALL32
11147 /* Needed for new procfs interface on sparc-solaris. */
11148 #define _STRUCTURED_PROC 1
11149 #include <sys/procfs.h>
11150 int
11151 main ()
11152 {
11153 prsysent_t avar
11154 ;
11155 return 0;
11156 }
11157 _ACEOF
11158 if ac_fn_c_try_compile "$LINENO"; then :
11159 bfd_cv_have_sys_procfs_type_prsysent_t=yes
11160 else
11161 bfd_cv_have_sys_procfs_type_prsysent_t=no
11162
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 fi
11166
11167 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11168
11169 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11170
11171 fi
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11173 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11174
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11176 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11177 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11178 $as_echo_n "(cached) " >&6
11179 else
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h. */
11182
11183 #define _SYSCALL32
11184 /* Needed for new procfs interface on sparc-solaris. */
11185 #define _STRUCTURED_PROC 1
11186 #include <sys/procfs.h>
11187 int
11188 main ()
11189 {
11190 pr_sigset_t avar
11191 ;
11192 return 0;
11193 }
11194 _ACEOF
11195 if ac_fn_c_try_compile "$LINENO"; then :
11196 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11197 else
11198 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11199
11200 fi
11201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11202 fi
11203
11204 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11205
11206 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11207
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11210 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11211
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11213 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11214 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
11216 else
11217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218 /* end confdefs.h. */
11219
11220 #define _SYSCALL32
11221 /* Needed for new procfs interface on sparc-solaris. */
11222 #define _STRUCTURED_PROC 1
11223 #include <sys/procfs.h>
11224 int
11225 main ()
11226 {
11227 pr_sigaction64_t avar
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 if ac_fn_c_try_compile "$LINENO"; then :
11233 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11234 else
11235 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11236
11237 fi
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 fi
11240
11241 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11242
11243 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11244
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11247 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11248
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11250 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11251 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
11253 else
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11256
11257 #define _SYSCALL32
11258 /* Needed for new procfs interface on sparc-solaris. */
11259 #define _STRUCTURED_PROC 1
11260 #include <sys/procfs.h>
11261 int
11262 main ()
11263 {
11264 pr_siginfo64_t avar
11265 ;
11266 return 0;
11267 }
11268 _ACEOF
11269 if ac_fn_c_try_compile "$LINENO"; then :
11270 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11271 else
11272 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11273
11274 fi
11275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11276 fi
11277
11278 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11279
11280 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11281
11282 fi
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11284 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11285
11286
11287
11288
11289
11290 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11292 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11293 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11294 $as_echo_n "(cached) " >&6
11295 else
11296 if test "$cross_compiling" = yes; then :
11297 gdb_cv_prfpregset_t_broken=yes
11298 else
11299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11300 /* end confdefs.h. */
11301 #include <sys/procfs.h>
11302 int main ()
11303 {
11304 if (sizeof (prfpregset_t) == sizeof (void *))
11305 return 1;
11306 return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_run "$LINENO"; then :
11310 gdb_cv_prfpregset_t_broken=no
11311 else
11312 gdb_cv_prfpregset_t_broken=yes
11313 fi
11314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11315 conftest.$ac_objext conftest.beam conftest.$ac_ext
11316 fi
11317
11318 fi
11319
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11321 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11322 if test $gdb_cv_prfpregset_t_broken = yes; then
11323
11324 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11325
11326 fi
11327 fi
11328
11329
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11331 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11332 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11333 $as_echo_n "(cached) " >&6
11334 else
11335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11336 /* end confdefs.h. */
11337 #include <unistd.h>
11338 #include <sys/types.h>
11339 #include <sys/procfs.h>
11340
11341 int
11342 main ()
11343 {
11344
11345 int dummy;;
11346 dummy = ioctl(0, PIOCSET, &dummy);
11347
11348 ;
11349 return 0;
11350 }
11351 _ACEOF
11352 if ac_fn_c_try_compile "$LINENO"; then :
11353 gdb_cv_have_procfs_piocset=yes
11354 else
11355 gdb_cv_have_procfs_piocset=no
11356 fi
11357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11358 fi
11359
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11361 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11362 if test $gdb_cv_have_procfs_piocset = yes; then
11363
11364 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11365
11366 fi
11367 fi
11368
11369 if test ${host} = ${target} ; then
11370
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11372 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11373 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378 #include <link.h>
11379 int
11380 main ()
11381 {
11382 struct link_map lm; (void) lm.l_addr;
11383 ;
11384 return 0;
11385 }
11386 _ACEOF
11387 if ac_fn_c_try_compile "$LINENO"; then :
11388 gdb_cv_have_struct_link_map_with_l_members=yes
11389 else
11390 gdb_cv_have_struct_link_map_with_l_members=no
11391 fi
11392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11393 fi
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11396 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11397 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11398
11399 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11400
11401 fi
11402
11403
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11405 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11406 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11407 $as_echo_n "(cached) " >&6
11408 else
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11411 #include <sys/types.h>
11412 #include <link.h>
11413 int
11414 main ()
11415 {
11416 struct link_map lm; (void) lm.lm_addr;
11417 ;
11418 return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_c_try_compile "$LINENO"; then :
11422 gdb_cv_have_struct_link_map_with_lm_members=yes
11423 else
11424 gdb_cv_have_struct_link_map_with_lm_members=no
11425 fi
11426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11427 fi
11428
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11430 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11431 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11432
11433 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11434
11435 fi
11436
11437
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11439 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11440 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11441 $as_echo_n "(cached) " >&6
11442 else
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445 #include <sys/types.h>
11446 #ifdef HAVE_NLIST_H
11447 #include <nlist.h>
11448 #endif
11449 #include <link.h>
11450 int
11451 main ()
11452 {
11453 struct so_map lm; (void) lm.som_addr;
11454 ;
11455 return 0;
11456 }
11457 _ACEOF
11458 if ac_fn_c_try_compile "$LINENO"; then :
11459 gdb_cv_have_struct_so_map_with_som_members=yes
11460 else
11461 gdb_cv_have_struct_so_map_with_som_members=no
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11464 fi
11465
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11467 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11468 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11469
11470 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11471
11472 fi
11473
11474
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11476 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11477 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11478 $as_echo_n "(cached) " >&6
11479 else
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482 #define _SYSCALL32
11483 #include <sys/link.h>
11484 int
11485 main ()
11486 {
11487 struct link_map32 l;
11488 ;
11489 return 0;
11490 }
11491 _ACEOF
11492 if ac_fn_c_try_compile "$LINENO"; then :
11493 gdb_cv_have_struct_link_map32=yes
11494 else
11495 gdb_cv_have_struct_link_map32=no
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 fi
11499
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11501 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11502 if test $gdb_cv_have_struct_link_map32 = yes; then
11503
11504 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11505
11506
11507 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11508
11509 fi
11510 fi
11511
11512 # Check if the compiler supports the `long long' type.
11513
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11515 $as_echo_n "checking for long long support in compiler... " >&6; }
11516 if test "${gdb_cv_c_long_long+set}" = set; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11521 extern long long foo;
11522 int
11523 main ()
11524 {
11525 switch (foo & 2) { case 0: return 1; }
11526 ;
11527 return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_compile "$LINENO"; then :
11531 gdb_cv_c_long_long=yes
11532 else
11533 gdb_cv_c_long_long=no
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 fi
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11538 $as_echo "$gdb_cv_c_long_long" >&6; }
11539 if test $gdb_cv_c_long_long = yes; then
11540
11541 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
11542
11543 fi
11544
11545 # Check if the compiler and runtime support printing long longs.
11546
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11548 $as_echo_n "checking for long long support in printf... " >&6; }
11549 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
11551 else
11552 if test "$cross_compiling" = yes; then :
11553 gdb_cv_printf_has_long_long=no
11554 else
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h. */
11557 $ac_includes_default
11558 int
11559 main ()
11560 {
11561 char buf[32];
11562 long long l = 0;
11563 l = (l << 16) + 0x0123;
11564 l = (l << 16) + 0x4567;
11565 l = (l << 16) + 0x89ab;
11566 l = (l << 16) + 0xcdef;
11567 sprintf (buf, "0x%016llx", l);
11568 return (strcmp ("0x0123456789abcdef", buf));
11569 ;
11570 return 0;
11571 }
11572 _ACEOF
11573 if ac_fn_c_try_run "$LINENO"; then :
11574 gdb_cv_printf_has_long_long=yes
11575 else
11576 gdb_cv_printf_has_long_long=no
11577 fi
11578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11579 conftest.$ac_objext conftest.beam conftest.$ac_ext
11580 fi
11581
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11584 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11585 if test $gdb_cv_printf_has_long_long = yes; then
11586
11587 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11588
11589 fi
11590
11591 # Check if the compiler and runtime support printing decfloats.
11592
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11594 $as_echo_n "checking for decfloat support in printf... " >&6; }
11595 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 if test "$cross_compiling" = yes; then :
11599 gdb_cv_printf_has_decfloat=no
11600 else
11601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602 /* end confdefs.h. */
11603 $ac_includes_default
11604 int
11605 main ()
11606 {
11607 char buf[64];
11608 _Decimal32 d32 = 1.2345df;
11609 _Decimal64 d64 = 1.2345dd;
11610 _Decimal128 d128 = 1.2345dl;
11611 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11612 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11613 ;
11614 return 0;
11615 }
11616 _ACEOF
11617 if ac_fn_c_try_run "$LINENO"; then :
11618 gdb_cv_printf_has_decfloat=yes
11619 else
11620 gdb_cv_printf_has_decfloat=no
11621 fi
11622 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11623 conftest.$ac_objext conftest.beam conftest.$ac_ext
11624 fi
11625
11626 fi
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11628 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11629 if test $gdb_cv_printf_has_decfloat = yes; then
11630
11631 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11632
11633 fi
11634
11635 # Check if the compiler supports the `long double' type. We can't use
11636 # AC_C_LONG_DOUBLE because that one does additional checks on the
11637 # constants defined in <float.h> that fail on some systems,
11638 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11639
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11641 $as_echo_n "checking for long double support in compiler... " >&6; }
11642 if test "${gdb_cv_c_long_double+set}" = set; then :
11643 $as_echo_n "(cached) " >&6
11644 else
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 long double foo;
11648 _ACEOF
11649 if ac_fn_c_try_compile "$LINENO"; then :
11650 gdb_cv_c_long_double=yes
11651 else
11652 gdb_cv_c_long_double=no
11653 fi
11654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11655 fi
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11657 $as_echo "$gdb_cv_c_long_double" >&6; }
11658 if test $gdb_cv_c_long_double = yes; then
11659
11660 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11661
11662 fi
11663
11664 # Check if the compiler and runtime support printing long doubles.
11665
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11667 $as_echo_n "checking for long double support in printf... " >&6; }
11668 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 if test "$cross_compiling" = yes; then :
11672 gdb_cv_printf_has_long_double=no
11673 else
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11675 /* end confdefs.h. */
11676 $ac_includes_default
11677 int
11678 main ()
11679 {
11680 char buf[16];
11681 long double f = 3.141592653;
11682 sprintf (buf, "%Lg", f);
11683 return (strncmp ("3.14159", buf, 7));
11684 ;
11685 return 0;
11686 }
11687 _ACEOF
11688 if ac_fn_c_try_run "$LINENO"; then :
11689 gdb_cv_printf_has_long_double=yes
11690 else
11691 gdb_cv_printf_has_long_double=no
11692 fi
11693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11694 conftest.$ac_objext conftest.beam conftest.$ac_ext
11695 fi
11696
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11699 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11700 if test $gdb_cv_printf_has_long_double = yes; then
11701
11702 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11703
11704 fi
11705
11706 # Check if the compiler and runtime support scanning long doubles.
11707
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11709 $as_echo_n "checking for long double support in scanf... " >&6; }
11710 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 if test "$cross_compiling" = yes; then :
11714 gdb_cv_scanf_has_long_double=no
11715 else
11716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11717 /* end confdefs.h. */
11718 #include <stdio.h>
11719 int
11720 main ()
11721 {
11722 char *buf = "3.141592653";
11723 long double f = 0;
11724 sscanf (buf, "%Lg", &f);
11725 return !(f > 3.14159 && f < 3.14160);
11726 ;
11727 return 0;
11728 }
11729 _ACEOF
11730 if ac_fn_c_try_run "$LINENO"; then :
11731 gdb_cv_scanf_has_long_double=yes
11732 else
11733 gdb_cv_scanf_has_long_double=no
11734 fi
11735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11736 conftest.$ac_objext conftest.beam conftest.$ac_ext
11737 fi
11738
11739 fi
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11741 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11742 if test $gdb_cv_scanf_has_long_double = yes; then
11743
11744 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11745
11746 fi
11747
11748 case ${host_os} in
11749 aix*)
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11751 $as_echo_n "checking for -bbigtoc option... " >&6; }
11752 if test "${gdb_cv_bigtoc+set}" = set; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755
11756 SAVE_LDFLAGS=$LDFLAGS
11757
11758 case $GCC in
11759 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11760 *) gdb_cv_bigtoc=-bbigtoc ;;
11761 esac
11762
11763 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766
11767 int
11768 main ()
11769 {
11770 int i;
11771 ;
11772 return 0;
11773 }
11774 _ACEOF
11775 if ac_fn_c_try_link "$LINENO"; then :
11776
11777 else
11778 gdb_cv_bigtoc=
11779 fi
11780 rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
11782 LDFLAGS="${SAVE_LDFLAGS}"
11783
11784 fi
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11786 $as_echo "$gdb_cv_bigtoc" >&6; }
11787 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11788 ;;
11789 esac
11790
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11792 $as_echo_n "checking for the dynamic export flag... " >&6; }
11793 dynamic_list=false
11794 if test "${gdb_native}" = yes; then
11795 # The dynamically loaded libthread_db needs access to symbols in the gdb
11796 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11797 # may not be supported there.
11798 old_LDFLAGS="$LDFLAGS"
11799 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11800 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11801 LDFLAGS="$LDFLAGS $RDYNAMIC"
11802 if test "${have_libpython}" = no; then
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11805
11806 int
11807 main ()
11808 {
11809
11810 ;
11811 return 0;
11812 }
11813 _ACEOF
11814 if ac_fn_c_try_link "$LINENO"; then :
11815 dynamic_list=true
11816 fi
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819 else
11820 # Workaround http://bugs.python.org/issue4434 where static
11821 # libpythonX.Y.a would get its symbols required for
11822 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11823 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11824 old_CFLAGS="$CFLAGS"
11825 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
11826 if test "$cross_compiling" = yes; then :
11827 true
11828 else
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11831 #include "${have_libpython}/Python.h"
11832 int
11833 main ()
11834 {
11835 int err;
11836 Py_Initialize ();
11837 err = PyRun_SimpleString ("import itertools\n");
11838 Py_Finalize ();
11839 return err == 0 ? 0 : 1;
11840 ;
11841 return 0;
11842 }
11843 _ACEOF
11844 if ac_fn_c_try_run "$LINENO"; then :
11845 dynamic_list=true
11846 fi
11847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11848 conftest.$ac_objext conftest.beam conftest.$ac_ext
11849 fi
11850
11851 CFLAGS="$old_CFLAGS"
11852 fi
11853 LDFLAGS="$old_LDFLAGS"
11854 fi
11855 if $dynamic_list; then
11856 found="-Wl,--dynamic-list"
11857 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11858 else
11859 found="-rdynamic"
11860 RDYNAMIC="-rdynamic"
11861 fi
11862
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11864 $as_echo "$found" >&6; }
11865
11866
11867 if test ${build} = ${host} -a ${host} = ${target} ; then
11868 case ${host_os} in
11869 solaris*)
11870 # See if thread_db library is around for Solaris thread debugging.
11871 # Note that we must explicitly test for version 1 of the library
11872 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11873 # the same API.
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11875 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11876 if test -f /usr/lib/libthread_db.so.1 ; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11878 $as_echo "yes" >&6; }
11879
11880 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11881
11882 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
11883 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11885 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11886 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11888 else
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-ldl $LIBS"
11891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 char dlopen ();
11901 int
11902 main ()
11903 {
11904 return dlopen ();
11905 ;
11906 return 0;
11907 }
11908 _ACEOF
11909 if ac_fn_c_try_link "$LINENO"; then :
11910 ac_cv_lib_dl_dlopen=yes
11911 else
11912 ac_cv_lib_dl_dlopen=no
11913 fi
11914 rm -f core conftest.err conftest.$ac_objext \
11915 conftest$ac_exeext conftest.$ac_ext
11916 LIBS=$ac_check_lib_save_LIBS
11917 fi
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11919 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11920 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11921 cat >>confdefs.h <<_ACEOF
11922 #define HAVE_LIBDL 1
11923 _ACEOF
11924
11925 LIBS="-ldl $LIBS"
11926
11927 fi
11928
11929 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
11930 # Sun randomly tweaked the prototypes in <proc_service.h>
11931 # at one point.
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
11933 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
11934 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
11936 else
11937
11938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939 /* end confdefs.h. */
11940
11941 #include <proc_service.h>
11942 ps_err_e ps_pdwrite
11943 (struct ps_prochandle*, psaddr_t, const void*, size_t);
11944
11945 int
11946 main ()
11947 {
11948
11949 ;
11950 return 0;
11951 }
11952 _ACEOF
11953 if ac_fn_c_try_compile "$LINENO"; then :
11954 gdb_cv_proc_service_is_old=no
11955 else
11956 gdb_cv_proc_service_is_old=yes
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959
11960 fi
11961
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
11963 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
11964 if test $gdb_cv_proc_service_is_old = yes; then
11965
11966 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
11967
11968 fi
11969 else
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11971 $as_echo "no" >&6; }
11972 fi
11973 ;;
11974 aix*)
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
11976 $as_echo_n "checking for AiX thread debugging library... " >&6; }
11977 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
11978 $as_echo_n "(cached) " >&6
11979 else
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 #include <sys/pthdebug.h>
11983 int
11984 main ()
11985 {
11986 #ifndef PTHDB_VERSION_3
11987 #error
11988 #endif
11989 ;
11990 return 0;
11991 }
11992 _ACEOF
11993 if ac_fn_c_try_compile "$LINENO"; then :
11994 gdb_cv_have_aix_thread_debug=yes
11995 else
11996 gdb_cv_have_aix_thread_debug=no
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 fi
12000
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
12002 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
12003 if test $gdb_cv_have_aix_thread_debug = yes; then
12004 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
12005 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
12006 LIBS="$LIBS -lpthdebug"
12007
12008 # Older versions of AIX do not provide the declaration for
12009 # the getthrds function (it appears that it was introduced
12010 # with AIX 6.x).
12011 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
12012 "
12013 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
12014 ac_have_decl=1
12015 else
12016 ac_have_decl=0
12017 fi
12018
12019 cat >>confdefs.h <<_ACEOF
12020 #define HAVE_DECL_GETTHRDS $ac_have_decl
12021 _ACEOF
12022
12023 fi
12024 ;;
12025 esac
12026
12027 fi
12028
12029 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
12031 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
12032 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 #include <thread_db.h>
12038 int
12039 main ()
12040 {
12041 int i = TD_NOTALLOC;
12042 ;
12043 return 0;
12044 }
12045 _ACEOF
12046 if ac_fn_c_try_compile "$LINENO"; then :
12047 gdb_cv_thread_db_h_has_td_notalloc=yes
12048 else
12049 gdb_cv_thread_db_h_has_td_notalloc=no
12050
12051 fi
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12053
12054 fi
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
12056 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
12058 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
12059 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
12060 $as_echo_n "(cached) " >&6
12061 else
12062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12063 /* end confdefs.h. */
12064 #include <thread_db.h>
12065 int
12066 main ()
12067 {
12068 int i = TD_VERSION;
12069 ;
12070 return 0;
12071 }
12072 _ACEOF
12073 if ac_fn_c_try_compile "$LINENO"; then :
12074 gdb_cv_thread_db_h_has_td_version=yes
12075 else
12076 gdb_cv_thread_db_h_has_td_version=no
12077
12078 fi
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12080
12081 fi
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12083 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12085 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12086 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12087 $as_echo_n "(cached) " >&6
12088 else
12089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h. */
12091 #include <thread_db.h>
12092 int
12093 main ()
12094 {
12095 int i = TD_NOTLS;
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 if ac_fn_c_try_compile "$LINENO"; then :
12101 gdb_cv_thread_db_h_has_td_notls=yes
12102 else
12103 gdb_cv_thread_db_h_has_td_notls=no
12104
12105 fi
12106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12107
12108 fi
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12110 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12111 fi
12112 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12113
12114 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12115
12116 fi
12117 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12118
12119 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12120
12121 fi
12122 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12123
12124 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12125
12126 fi
12127
12128 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12130 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12131 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12132 $as_echo_n "(cached) " >&6
12133 else
12134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12135 /* end confdefs.h. */
12136 #include <sys/syscall.h>
12137 int
12138 main ()
12139 {
12140 int i = __NR_tkill;
12141 ;
12142 return 0;
12143 }
12144 _ACEOF
12145 if ac_fn_c_try_compile "$LINENO"; then :
12146 gdb_cv_sys_syscall_h_has_tkill=yes
12147 else
12148 gdb_cv_sys_syscall_h_has_tkill=no
12149
12150 fi
12151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152
12153 fi
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12155 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12156 fi
12157 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12158
12159 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12160
12161 fi
12162
12163 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12164 "
12165 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12166 ac_have_decl=1
12167 else
12168 ac_have_decl=0
12169 fi
12170
12171 cat >>confdefs.h <<_ACEOF
12172 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12173 _ACEOF
12174
12175
12176 if test "$cross_compiling" = yes; then :
12177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12178 /* end confdefs.h. */
12179 #include <sys/personality.h>
12180 int
12181 main ()
12182 {
12183
12184 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12185 # define ADDR_NO_RANDOMIZE 0x0040000
12186 # endif
12187 /* Test the flag could be set and stays set. */
12188 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12189 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12190 return 1
12191 ;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_link "$LINENO"; then :
12196 have_personality=true
12197 else
12198 have_personality=false
12199 fi
12200 rm -f core conftest.err conftest.$ac_objext \
12201 conftest$ac_exeext conftest.$ac_ext
12202 else
12203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204 /* end confdefs.h. */
12205 #include <sys/personality.h>
12206 int
12207 main ()
12208 {
12209
12210 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12211 # define ADDR_NO_RANDOMIZE 0x0040000
12212 # endif
12213 /* Test the flag could be set and stays set. */
12214 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12215 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12216 return 1
12217 ;
12218 return 0;
12219 }
12220 _ACEOF
12221 if ac_fn_c_try_run "$LINENO"; then :
12222 have_personality=true
12223 else
12224 have_personality=false
12225 fi
12226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12227 conftest.$ac_objext conftest.beam conftest.$ac_ext
12228 fi
12229
12230 if $have_personality
12231 then
12232
12233 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12234
12235 fi
12236
12237
12238 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12239 # except that the argument to --with-sysroot is optional.
12240 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12241 if test "x$with_sysroot" = xyes; then
12242 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12243 fi
12244
12245 # Check whether --with-sysroot was given.
12246 if test "${with_sysroot+set}" = set; then :
12247 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12248 else
12249 TARGET_SYSTEM_ROOT=
12250 fi
12251
12252
12253 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12254 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12255 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12256 ac_define_dir=`eval echo $ac_define_dir`
12257
12258 cat >>confdefs.h <<_ACEOF
12259 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12260 _ACEOF
12261
12262
12263
12264
12265 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12266 if test "x$prefix" = xNONE; then
12267 test_prefix=/usr/local
12268 else
12269 test_prefix=$prefix
12270 fi
12271 else
12272 test_prefix=$exec_prefix
12273 fi
12274 value=0
12275 case ${ac_define_dir} in
12276 "${test_prefix}"|"${test_prefix}/"*|\
12277 '${exec_prefix}'|'${exec_prefix}/'*)
12278 value=1
12279 ;;
12280 esac
12281
12282 cat >>confdefs.h <<_ACEOF
12283 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12284 _ACEOF
12285
12286
12287
12288
12289
12290 # Check whether --with-system-gdbinit was given.
12291 if test "${with_system_gdbinit+set}" = set; then :
12292 withval=$with_system_gdbinit;
12293 SYSTEM_GDBINIT=$withval
12294 else
12295 SYSTEM_GDBINIT=
12296 fi
12297
12298
12299 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12300 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12301 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12302 ac_define_dir=`eval echo $ac_define_dir`
12303
12304 cat >>confdefs.h <<_ACEOF
12305 #define SYSTEM_GDBINIT "$ac_define_dir"
12306 _ACEOF
12307
12308
12309
12310
12311 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12312 if test "x$prefix" = xNONE; then
12313 test_prefix=/usr/local
12314 else
12315 test_prefix=$prefix
12316 fi
12317 else
12318 test_prefix=$exec_prefix
12319 fi
12320 value=0
12321 case ${ac_define_dir} in
12322 "${test_prefix}"|"${test_prefix}/"*|\
12323 '${exec_prefix}'|'${exec_prefix}/'*)
12324 value=1
12325 ;;
12326 esac
12327
12328 cat >>confdefs.h <<_ACEOF
12329 #define SYSTEM_GDBINIT_RELOCATABLE $value
12330 _ACEOF
12331
12332
12333
12334
12335 # Check whether --enable-werror was given.
12336 if test "${enable_werror+set}" = set; then :
12337 enableval=$enable_werror; case "${enableval}" in
12338 yes | y) ERROR_ON_WARNING="yes" ;;
12339 no | n) ERROR_ON_WARNING="no" ;;
12340 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12341 esac
12342 fi
12343
12344
12345 # Enable -Werror by default when using gcc. Turn it off for releases.
12346 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
12347 ERROR_ON_WARNING=yes
12348 fi
12349
12350 WERROR_CFLAGS=""
12351 if test "${ERROR_ON_WARNING}" = yes ; then
12352 WERROR_CFLAGS="-Werror"
12353 fi
12354
12355 # The entries after -Wno-pointer-sign are disabled warnings which may
12356 # be enabled in the future, which can not currently be used to build
12357 # GDB.
12358 # NOTE: If you change this list, remember to update
12359 # gdb/doc/gdbint.texinfo.
12360 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12361 -Wformat-nonliteral -Wno-pointer-sign \
12362 -Wno-unused -Wunused-value -Wunused-function \
12363 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
12364
12365 # Enable -Wno-format by default when using gcc on mingw since many
12366 # GCC versions complain about %I64.
12367 case "${host}" in
12368 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12369 esac
12370
12371 # Check whether --enable-build-warnings was given.
12372 if test "${enable_build_warnings+set}" = set; then :
12373 enableval=$enable_build_warnings; case "${enableval}" in
12374 yes) ;;
12375 no) build_warnings="-w";;
12376 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12377 build_warnings="${build_warnings} ${t}";;
12378 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12379 build_warnings="${t} ${build_warnings}";;
12380 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12381 esac
12382 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12383 echo "Setting compiler warning flags = $build_warnings" 6>&1
12384 fi
12385 fi
12386 # Check whether --enable-gdb-build-warnings was given.
12387 if test "${enable_gdb_build_warnings+set}" = set; then :
12388 enableval=$enable_gdb_build_warnings; case "${enableval}" in
12389 yes) ;;
12390 no) build_warnings="-w";;
12391 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12392 build_warnings="${build_warnings} ${t}";;
12393 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12394 build_warnings="${t} ${build_warnings}";;
12395 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12396 esac
12397 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12398 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12399 fi
12400 fi
12401 WARN_CFLAGS=""
12402 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12403 then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12405 $as_echo_n "checking compiler warning flags... " >&6; }
12406 # Separate out the -Werror flag as some files just cannot be
12407 # compiled with it enabled.
12408 for w in ${build_warnings}; do
12409 case $w in
12410 -Werr*) WERROR_CFLAGS=-Werror ;;
12411 *) # Check that GCC accepts it
12412 saved_CFLAGS="$CFLAGS"
12413 CFLAGS="$CFLAGS $w"
12414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12415 /* end confdefs.h. */
12416
12417 int
12418 main ()
12419 {
12420
12421 ;
12422 return 0;
12423 }
12424 _ACEOF
12425 if ac_fn_c_try_compile "$LINENO"; then :
12426 WARN_CFLAGS="${WARN_CFLAGS} $w"
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 CFLAGS="$saved_CFLAGS"
12430 esac
12431 done
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12433 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12434 fi
12435
12436
12437
12438 # In the Cygwin environment, we need some additional flags.
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12440 $as_echo_n "checking for cygwin... " >&6; }
12441 if test "${gdb_cv_os_cygwin+set}" = set; then :
12442 $as_echo_n "(cached) " >&6
12443 else
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12446
12447 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12448 lose
12449 #endif
12450 _ACEOF
12451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12452 $EGREP "lose" >/dev/null 2>&1; then :
12453 gdb_cv_os_cygwin=yes
12454 else
12455 gdb_cv_os_cygwin=no
12456 fi
12457 rm -f conftest*
12458
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12461 $as_echo "$gdb_cv_os_cygwin" >&6; }
12462
12463
12464 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12465 case ${host} in
12466 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12467 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12468 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
12469 esac
12470
12471
12472 # libreadline needs libuser32.a in a cygwin environment
12473 WIN32LIBS=
12474 if test x$gdb_cv_os_cygwin = xyes; then
12475 WIN32LIBS="-luser32"
12476 case "${target}" in
12477 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12478 ;;
12479 esac
12480 fi
12481
12482 # The ser-tcp.c module requires sockets.
12483 case ${host} in
12484 *mingw32*)
12485
12486 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12487
12488 WIN32LIBS="$WIN32LIBS -lws2_32"
12489 ;;
12490 esac
12491
12492
12493 # Add ELF support to GDB, but only if BFD includes ELF support.
12494 OLD_CFLAGS=$CFLAGS
12495 OLD_LDFLAGS=$LDFLAGS
12496 OLD_LIBS=$LIBS
12497 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12498 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12499 # always want our bfd.
12500 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12501 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12502 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12503 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12504 if test "$plugins" = "yes"; then
12505 LIBS="-ldl $LIBS"
12506 fi
12507 LIBS="-lbfd -liberty $intl $LIBS"
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12509 $as_echo_n "checking for ELF support in BFD... " >&6; }
12510 if test "${gdb_cv_var_elf+set}" = set; then :
12511 $as_echo_n "(cached) " >&6
12512 else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514 /* end confdefs.h. */
12515 #include <stdlib.h>
12516 #include "bfd.h"
12517 #include "elf-bfd.h"
12518
12519 int
12520 main ()
12521 {
12522 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
12523 ;
12524 return 0;
12525 }
12526 _ACEOF
12527 if ac_fn_c_try_link "$LINENO"; then :
12528 gdb_cv_var_elf=yes
12529 else
12530 gdb_cv_var_elf=no
12531 fi
12532 rm -f core conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
12534 fi
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12536 $as_echo "$gdb_cv_var_elf" >&6; }
12537 if test $gdb_cv_var_elf = yes; then
12538 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
12539
12540 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12541
12542 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12543 if test "$plugins" = "yes"; then
12544 OLD_LIBS="-ldl $OLD_LIBS"
12545 fi
12546 fi
12547 CFLAGS=$OLD_CFLAGS
12548 LDFLAGS=$OLD_LDFLAGS
12549 LIBS=$OLD_LIBS
12550
12551 # Add any host-specific objects to GDB.
12552 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
12553
12554 LIBGUI="../libgui/src/libgui.a"
12555 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
12556
12557
12558
12559 WIN32LDAPP=
12560
12561
12562
12563 case "${host}" in
12564 *-*-cygwin* | *-*-mingw* )
12565 configdir="win"
12566 ;;
12567 *)
12568 configdir="unix"
12569 ;;
12570 esac
12571
12572 GDBTKLIBS=
12573 if test "${enable_gdbtk}" = "yes"; then
12574
12575 # Gdbtk must have an absolute path to srcdir in order to run
12576 # properly when not installed.
12577 here=`pwd`
12578 cd ${srcdir}
12579 GDBTK_SRC_DIR=`pwd`
12580 cd $here
12581
12582
12583 #
12584 # Ok, lets find the tcl configuration
12585 # First, look for one uninstalled.
12586 # the alternative search directory is invoked by --with-tcl
12587 #
12588
12589 if test x"${no_tcl}" = x ; then
12590 # we reset no_tcl in case something fails here
12591 no_tcl=true
12592
12593 # Check whether --with-tcl was given.
12594 if test "${with_tcl+set}" = set; then :
12595 withval=$with_tcl; with_tclconfig=${withval}
12596 fi
12597
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12599 $as_echo_n "checking for Tcl configuration... " >&6; }
12600 if test "${ac_cv_c_tclconfig+set}" = set; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12603
12604
12605 # First check to see if --with-tcl was specified.
12606 case "${host}" in
12607 *-*-cygwin*) platDir="win" ;;
12608 *) platDir="unix" ;;
12609 esac
12610 if test x"${with_tclconfig}" != x ; then
12611 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12612 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12613 else
12614 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12615 fi
12616 fi
12617
12618 # then check for a private Tcl installation
12619 if test x"${ac_cv_c_tclconfig}" = x ; then
12620 for i in \
12621 ../tcl \
12622 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12623 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12624 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12625 ../../tcl \
12626 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12627 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12628 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12629 ../../../tcl \
12630 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12631 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12632 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
12633 if test -f "$i/$platDir/tclConfig.sh" ; then
12634 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
12635 break
12636 fi
12637 done
12638 fi
12639
12640 # on Darwin, check in Framework installation locations
12641 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
12642 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
12643 `ls -d /Library/Frameworks 2>/dev/null` \
12644 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12645 `ls -d /System/Library/Frameworks 2>/dev/null` \
12646 ; do
12647 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
12648 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
12649 break
12650 fi
12651 done
12652 fi
12653
12654 # check in a few common install locations
12655 if test x"${ac_cv_c_tclconfig}" = x ; then
12656 for i in `ls -d ${libdir} 2>/dev/null` \
12657 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12658 `ls -d ${prefix}/lib 2>/dev/null` \
12659 `ls -d /usr/local/lib 2>/dev/null` \
12660 `ls -d /usr/contrib/lib 2>/dev/null` \
12661 `ls -d /usr/lib 2>/dev/null` \
12662 ; do
12663 if test -f "$i/tclConfig.sh" ; then
12664 ac_cv_c_tclconfig=`(cd $i; pwd)`
12665 break
12666 fi
12667 done
12668 fi
12669
12670 # check in a few other private locations
12671 if test x"${ac_cv_c_tclconfig}" = x ; then
12672 for i in \
12673 ${srcdir}/../tcl \
12674 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12675 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12676 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
12677 if test -f "$i/$platDir/tclConfig.sh" ; then
12678 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
12679 break
12680 fi
12681 done
12682 fi
12683
12684 fi
12685
12686
12687 if test x"${ac_cv_c_tclconfig}" = x ; then
12688 TCL_BIN_DIR="# no Tcl configs found"
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12690 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12691 else
12692 no_tcl=
12693 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
12695 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12696 fi
12697 fi
12698
12699
12700 # If $no_tk is nonempty, then we can't do Tk, and there is no
12701 # point to doing Tcl.
12702
12703 #
12704 # Ok, lets find the tk configuration
12705 # First, look for one uninstalled.
12706 # the alternative search directory is invoked by --with-tk
12707 #
12708
12709 if test x"${no_tk}" = x ; then
12710 # we reset no_tk in case something fails here
12711 no_tk=true
12712
12713 # Check whether --with-tk was given.
12714 if test "${with_tk+set}" = set; then :
12715 withval=$with_tk; with_tkconfig=${withval}
12716 fi
12717
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
12719 $as_echo_n "checking for Tk configuration... " >&6; }
12720 if test "${ac_cv_c_tkconfig+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723
12724
12725 # First check to see if --with-tkconfig was specified.
12726 if test x"${with_tkconfig}" != x ; then
12727 if test -f "${with_tkconfig}/tkConfig.sh" ; then
12728 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
12729 else
12730 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
12731 fi
12732 fi
12733
12734 # then check for a private Tk library
12735 case "${host}" in
12736 *-*-cygwin*) platDir="win" ;;
12737 *) platDir="unix" ;;
12738 esac
12739 if test x"${ac_cv_c_tkconfig}" = x ; then
12740 for i in \
12741 ../tk \
12742 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12743 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
12744 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
12745 ../../tk \
12746 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12747 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
12748 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
12749 ../../../tk \
12750 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12751 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
12752 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
12753 if test -f "$i/$platDir/tkConfig.sh" ; then
12754 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
12755 break
12756 fi
12757 done
12758 fi
12759
12760 # on Darwin, check in Framework installation locations
12761 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
12762 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
12763 `ls -d /Library/Frameworks 2>/dev/null` \
12764 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12765 `ls -d /System/Library/Frameworks 2>/dev/null` \
12766 ; do
12767 if test -f "$i/Tk.framework/tkConfig.sh" ; then
12768 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
12769 break
12770 fi
12771 done
12772 fi
12773
12774 # check in a few common install locations
12775 if test x"${ac_cv_c_tkconfig}" = x ; then
12776 for i in `ls -d ${libdir} 2>/dev/null` \
12777 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12778 `ls -d ${prefix}/lib 2>/dev/null` \
12779 `ls -d /usr/local/lib 2>/dev/null` \
12780 `ls -d /usr/contrib/lib 2>/dev/null` \
12781 `ls -d /usr/lib 2>/dev/null` \
12782 ; do
12783 if test -f "$i/tkConfig.sh" ; then
12784 ac_cv_c_tkconfig=`(cd $i; pwd)`
12785 break
12786 fi
12787 done
12788 fi
12789 # check in a few other private locations
12790 if test x"${ac_cv_c_tkconfig}" = x ; then
12791 for i in \
12792 ${srcdir}/../tk \
12793 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12794 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
12795 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
12796 if test -f "$i/$platDir/tkConfig.sh" ; then
12797 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
12798 break
12799 fi
12800 done
12801 fi
12802
12803 fi
12804
12805
12806 if test x"${ac_cv_c_tkconfig}" = x ; then
12807 TK_BIN_DIR="# no Tk configs found"
12808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
12809 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
12810 else
12811 no_tk=
12812 TK_BIN_DIR=${ac_cv_c_tkconfig}
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
12814 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12815 fi
12816 fi
12817
12818
12819 if test -z "${no_tcl}" -a -z "${no_tk}"; then
12820
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
12822 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
12823
12824 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12826 $as_echo "loading" >&6; }
12827 . ${TCL_BIN_DIR}/tclConfig.sh
12828 else
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
12830 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12831 fi
12832
12833 # eval is required to do the TCL_DBGX substitution
12834 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12835 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12836
12837 # If the TCL_BIN_DIR is the build directory (not the install directory),
12838 # then set the common variable name to the value of the build variables.
12839 # For example, the variable TCL_LIB_SPEC will be set to the value
12840 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12841 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12842 # installed and uninstalled version of Tcl.
12843 if test -f "${TCL_BIN_DIR}/Makefile" ; then
12844 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12845 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12846 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12847 elif test "`uname -s`" = "Darwin"; then
12848 # If Tcl was built as a framework, attempt to use the libraries
12849 # from the framework at the given location so that linking works
12850 # against Tcl.framework installed in an arbitrary location.
12851 case ${TCL_DEFS} in
12852 *TCL_FRAMEWORK*)
12853 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
12854 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
12855 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
12856 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
12857 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
12858 break
12859 fi
12860 done
12861 fi
12862 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
12863 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
12864 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
12865 fi
12866 ;;
12867 esac
12868 fi
12869
12870 # eval is required to do the TCL_DBGX substitution
12871 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12872 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12873 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12874 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890 # Check for in-tree tcl
12891 here=`pwd`
12892 cd ${srcdir}/..
12893 topdir=`pwd`
12894 cd ${here}
12895
12896 intree="no"
12897 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
12898 intree="yes"
12899 fi
12900
12901 # Find Tcl private headers
12902 if test x"${intree}" = xno; then
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
12905 $as_echo_n "checking for Tcl private headers... " >&6; }
12906 private_dir=""
12907 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
12908 if test -f ${dir}/tclInt.h ; then
12909 private_dir=${dir}
12910 fi
12911
12912 if test x"${private_dir}" = x; then
12913 as_fn_error "could not find private Tcl headers" "$LINENO" 5
12914 else
12915 TCL_PRIVATE_INCLUDE="-I${private_dir}"
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12917 $as_echo "${private_dir}" >&6; }
12918 fi
12919
12920 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
12921 TCL_LIBRARY="${TCL_LIB_SPEC}"
12922 TCL_DEPS=""
12923 else
12924 # If building tcl in the same src tree, private headers
12925 # are not needed, but we need to be sure to use the right
12926 # headers library
12927 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
12928 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
12929 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
12930 fi
12931
12932
12933
12934
12935
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
12937 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
12938
12939 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12941 $as_echo "loading" >&6; }
12942 . ${TK_BIN_DIR}/tkConfig.sh
12943 else
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
12945 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12946 fi
12947
12948 # eval is required to do the TK_DBGX substitution
12949 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
12950 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
12951
12952 # If the TK_BIN_DIR is the build directory (not the install directory),
12953 # then set the common variable name to the value of the build variables.
12954 # For example, the variable TK_LIB_SPEC will be set to the value
12955 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
12956 # instead of TK_BUILD_LIB_SPEC since it will work with both an
12957 # installed and uninstalled version of Tcl.
12958 if test -f "${TK_BIN_DIR}/Makefile" ; then
12959 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
12960 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
12961 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
12962 elif test "`uname -s`" = "Darwin"; then
12963 # If Tk was built as a framework, attempt to use the libraries
12964 # from the framework at the given location so that linking works
12965 # against Tk.framework installed in an arbitrary location.
12966 case ${TK_DEFS} in
12967 *TK_FRAMEWORK*)
12968 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
12969 for i in "`cd ${TK_BIN_DIR}; pwd`" \
12970 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
12971 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
12972 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
12973 break
12974 fi
12975 done
12976 fi
12977 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
12978 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
12979 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
12980 fi
12981 ;;
12982 esac
12983 fi
12984
12985 # eval is required to do the TK_DBGX substitution
12986 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
12987 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
12988 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
12989 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004 # Check for in-tree Tk
13005 intree="no"
13006 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
13007 intree="yes"
13008 fi
13009
13010 # Find Tk private headers
13011 if test x"${intree}" = xno; then
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
13014 $as_echo_n "checking for Tk private headers... " >&6; }
13015 private_dir=""
13016 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
13017 if test -f ${dir}/tkInt.h; then
13018 private_dir=${dir}
13019 fi
13020
13021 if test x"${private_dir}" = x; then
13022 as_fn_error "could not find Tk private headers" "$LINENO" 5
13023 else
13024 TK_PRIVATE_INCLUDE="-I${private_dir}"
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
13026 $as_echo "${private_dir}" >&6; }
13027 fi
13028
13029 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
13030 TK_LIBRARY=${TK_LIB_SPEC}
13031 TK_DEPS=""
13032 else
13033 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
13034 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
13035 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
13036 fi
13037
13038
13039
13040
13041
13042 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
13043
13044 # Include some libraries that Tcl and Tk want.
13045 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
13046 # Yes, the ordering seems wrong here. But it isn't.
13047 # TK_LIBS is the list of libraries that need to be linked
13048 # after Tcl/Tk. Note that this isn't put into LIBS. If it
13049 # were in LIBS then any link tests after this point would
13050 # try to include things like `$(LIBGUI)', which wouldn't work.
13051 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
13052
13053 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
13054 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
13055 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
13056 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
13057 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
13058 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
13059 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
13060
13061 if test x$gdb_cv_os_cygwin = xyes; then
13062 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
13063 WIN32LDAPP="-Wl,--subsystem,console"
13064 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
13065 fi
13066
13067 subdirs="$subdirs gdbtk"
13068
13069 fi
13070 fi
13071
13072
13073
13074
13075
13076
13077
13078
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13080 $as_echo_n "checking for X... " >&6; }
13081
13082
13083 # Check whether --with-x was given.
13084 if test "${with_x+set}" = set; then :
13085 withval=$with_x;
13086 fi
13087
13088 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13089 if test "x$with_x" = xno; then
13090 # The user explicitly disabled X.
13091 have_x=disabled
13092 else
13093 case $x_includes,$x_libraries in #(
13094 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
13095 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13096 $as_echo_n "(cached) " >&6
13097 else
13098 # One or both of the vars are not set, and there is no cached value.
13099 ac_x_includes=no ac_x_libraries=no
13100 rm -f -r conftest.dir
13101 if mkdir conftest.dir; then
13102 cd conftest.dir
13103 cat >Imakefile <<'_ACEOF'
13104 incroot:
13105 @echo incroot='${INCROOT}'
13106 usrlibdir:
13107 @echo usrlibdir='${USRLIBDIR}'
13108 libdir:
13109 @echo libdir='${LIBDIR}'
13110 _ACEOF
13111 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13112 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13113 for ac_var in incroot usrlibdir libdir; do
13114 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13115 done
13116 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13117 for ac_extension in a so sl dylib la dll; do
13118 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13119 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13120 ac_im_usrlibdir=$ac_im_libdir; break
13121 fi
13122 done
13123 # Screen out bogus values from the imake configuration. They are
13124 # bogus both because they are the default anyway, and because
13125 # using them would break gcc on systems where it needs fixed includes.
13126 case $ac_im_incroot in
13127 /usr/include) ac_x_includes= ;;
13128 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13129 esac
13130 case $ac_im_usrlibdir in
13131 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13132 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13133 esac
13134 fi
13135 cd ..
13136 rm -f -r conftest.dir
13137 fi
13138
13139 # Standard set of common directories for X headers.
13140 # Check X11 before X11Rn because it is often a symlink to the current release.
13141 ac_x_header_dirs='
13142 /usr/X11/include
13143 /usr/X11R7/include
13144 /usr/X11R6/include
13145 /usr/X11R5/include
13146 /usr/X11R4/include
13147
13148 /usr/include/X11
13149 /usr/include/X11R7
13150 /usr/include/X11R6
13151 /usr/include/X11R5
13152 /usr/include/X11R4
13153
13154 /usr/local/X11/include
13155 /usr/local/X11R7/include
13156 /usr/local/X11R6/include
13157 /usr/local/X11R5/include
13158 /usr/local/X11R4/include
13159
13160 /usr/local/include/X11
13161 /usr/local/include/X11R7
13162 /usr/local/include/X11R6
13163 /usr/local/include/X11R5
13164 /usr/local/include/X11R4
13165
13166 /usr/X386/include
13167 /usr/x386/include
13168 /usr/XFree86/include/X11
13169
13170 /usr/include
13171 /usr/local/include
13172 /usr/unsupported/include
13173 /usr/athena/include
13174 /usr/local/x11r5/include
13175 /usr/lpp/Xamples/include
13176
13177 /usr/openwin/include
13178 /usr/openwin/share/include'
13179
13180 if test "$ac_x_includes" = no; then
13181 # Guess where to find include files, by looking for Xlib.h.
13182 # First, try using that file with no special directory specified.
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 #include <X11/Xlib.h>
13186 _ACEOF
13187 if ac_fn_c_try_cpp "$LINENO"; then :
13188 # We can compile using X headers with no special include directory.
13189 ac_x_includes=
13190 else
13191 for ac_dir in $ac_x_header_dirs; do
13192 if test -r "$ac_dir/X11/Xlib.h"; then
13193 ac_x_includes=$ac_dir
13194 break
13195 fi
13196 done
13197 fi
13198 rm -f conftest.err conftest.$ac_ext
13199 fi # $ac_x_includes = no
13200
13201 if test "$ac_x_libraries" = no; then
13202 # Check for the libraries.
13203 # See if we find them without any special options.
13204 # Don't add to $LIBS permanently.
13205 ac_save_LIBS=$LIBS
13206 LIBS="-lX11 $LIBS"
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13209 #include <X11/Xlib.h>
13210 int
13211 main ()
13212 {
13213 XrmInitialize ()
13214 ;
13215 return 0;
13216 }
13217 _ACEOF
13218 if ac_fn_c_try_link "$LINENO"; then :
13219 LIBS=$ac_save_LIBS
13220 # We can link X programs with no special library path.
13221 ac_x_libraries=
13222 else
13223 LIBS=$ac_save_LIBS
13224 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13225 do
13226 # Don't even attempt the hair of trying to link an X program!
13227 for ac_extension in a so sl dylib la dll; do
13228 if test -r "$ac_dir/libX11.$ac_extension"; then
13229 ac_x_libraries=$ac_dir
13230 break 2
13231 fi
13232 done
13233 done
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13237 fi # $ac_x_libraries = no
13238
13239 case $ac_x_includes,$ac_x_libraries in #(
13240 no,* | *,no | *\'*)
13241 # Didn't find X, or a directory has "'" in its name.
13242 ac_cv_have_x="have_x=no";; #(
13243 *)
13244 # Record where we found X for the cache.
13245 ac_cv_have_x="have_x=yes\
13246 ac_x_includes='$ac_x_includes'\
13247 ac_x_libraries='$ac_x_libraries'"
13248 esac
13249 fi
13250 ;; #(
13251 *) have_x=yes;;
13252 esac
13253 eval "$ac_cv_have_x"
13254 fi # $with_x != no
13255
13256 if test "$have_x" != yes; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13258 $as_echo "$have_x" >&6; }
13259 no_x=yes
13260 else
13261 # If each of the values was on the command line, it overrides each guess.
13262 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13263 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13264 # Update the cache value to reflect the command line values.
13265 ac_cv_have_x="have_x=yes\
13266 ac_x_includes='$x_includes'\
13267 ac_x_libraries='$x_libraries'"
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13269 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13270 fi
13271
13272
13273 # Unlike the sim directory, whether a simulator is linked is controlled by
13274 # presence of a gdb_sim definition in the target configure.tgt entry.
13275 # This code just checks for a few cases where we'd like to ignore those
13276 # definitions, even when they're present in the '.mt' file. These cases
13277 # are when --disable-sim is specified, or if the simulator directory is
13278 # not part of the source tree.
13279 #
13280 # Check whether --enable-sim was given.
13281 if test "${enable_sim+set}" = set; then :
13282 enableval=$enable_sim; echo "enable_sim = $enable_sim";
13283 echo "enableval = ${enableval}";
13284 case "${enableval}" in
13285 yes) ignore_sim=false ;;
13286 no) ignore_sim=true ;;
13287 *) ignore_sim=false ;;
13288 esac
13289 else
13290 ignore_sim=false
13291 fi
13292
13293
13294 if test ! -d "${srcdir}/../sim"; then
13295 ignore_sim=true
13296 fi
13297
13298 SIM=
13299 SIM_OBS=
13300 if test "${ignore_sim}" = "false"; then
13301 if test x"${gdb_sim}" != x ; then
13302 SIM="${gdb_sim}"
13303 SIM_OBS="remote-sim.o"
13304
13305 $as_echo "#define WITH_SIM 1" >>confdefs.h
13306
13307 fi
13308 fi
13309
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323 # List of host floatformats.
13324
13325 cat >>confdefs.h <<_ACEOF
13326 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
13327 _ACEOF
13328
13329
13330 cat >>confdefs.h <<_ACEOF
13331 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
13332 _ACEOF
13333
13334
13335 cat >>confdefs.h <<_ACEOF
13336 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
13337 _ACEOF
13338
13339
13340 # target_subdir is used by the testsuite to find the target libraries.
13341 target_subdir=
13342 if test "${host}" != "${target}"; then
13343 target_subdir="${target_alias}/"
13344 fi
13345
13346
13347 frags=
13348 if test "${gdb_native}" = "yes"; then
13349 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
13350 if test ! -f ${host_makefile_frag}; then
13351 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
13352 fi
13353 frags="$frags $host_makefile_frag"
13354 else
13355 host_makefile_frag=/dev/null
13356 fi
13357
13358
13359
13360
13361 if test "${gdb_native}" = "yes"; then
13362 # We pick this up from the host configuration file (.mh) because we
13363 # do not have a native configuration Makefile fragment.
13364 nativefile=`sed -n '
13365 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
13366 ' ${host_makefile_frag}`
13367 fi
13368
13369
13370 if test x"${gdb_osabi}" != x ; then
13371
13372 cat >>confdefs.h <<_ACEOF
13373 #define GDB_OSABI_DEFAULT $gdb_osabi
13374 _ACEOF
13375
13376 fi
13377
13378 # Enable multi-ice-gdb-server.
13379 # Check whether --enable-multi-ice was given.
13380 if test "${enable_multi_ice+set}" = set; then :
13381 enableval=$enable_multi_ice; case $enableval in
13382 yes | no)
13383 ;;
13384 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
13385 esac
13386 fi
13387
13388 if test "x$enable_multi_ice" = xyes; then
13389 subdirs="$subdirs multi-ice"
13390
13391 fi
13392
13393 # Check whether --enable-gdbserver was given.
13394 if test "${enable_gdbserver+set}" = set; then :
13395 enableval=$enable_gdbserver; case "${enableval}" in
13396 yes| no|auto) ;;
13397 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
13398 esac
13399 else
13400 enable_gdbserver=auto
13401 fi
13402
13403
13404 # We only build gdbserver automatically in a native configuration, and
13405 # only if the user did not explicitly disable its build.
13406 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
13408 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
13409 if test "x$build_gdbserver" = xyes; then
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13411 $as_echo "yes" >&6; }
13412 subdirs="$subdirs gdbserver"
13413
13414 gdbserver_build_enabled=yes
13415 else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13418 fi
13419 fi
13420
13421 # If the user explicitly request the gdbserver to be built, verify that
13422 # we were in fact able to enable it.
13423 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
13424 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
13425 fi
13426
13427 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
13428 # to an empty version.
13429
13430 files=
13431 links=
13432
13433 rm -f nm.h
13434 if test "${nativefile}" != ""; then
13435 case "${nativefile}" in
13436 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
13437 * ) GDB_NM_FILE="${nativefile}"
13438 esac
13439 files="${files} ${GDB_NM_FILE}"
13440 links="${links} nm.h"
13441
13442 cat >>confdefs.h <<_ACEOF
13443 #define GDB_NM_FILE "${GDB_NM_FILE}"
13444 _ACEOF
13445
13446 fi
13447
13448
13449 ac_sources="$files"
13450 ac_dests="$links"
13451 while test -n "$ac_sources"; do
13452 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
13453 set $ac_sources; ac_source=$1; shift; ac_sources=$*
13454 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
13455 done
13456 ac_config_links="$ac_config_links $ac_config_links_1"
13457
13458
13459
13460
13461
13462 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
13463
13464
13465 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
13466
13467 ac_config_commands="$ac_config_commands default"
13468
13469 cat >confcache <<\_ACEOF
13470 # This file is a shell script that caches the results of configure
13471 # tests run on this system so they can be shared between configure
13472 # scripts and configure runs, see configure's option --config-cache.
13473 # It is not useful on other systems. If it contains results you don't
13474 # want to keep, you may remove or edit it.
13475 #
13476 # config.status only pays attention to the cache file if you give it
13477 # the --recheck option to rerun configure.
13478 #
13479 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13480 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13481 # following values.
13482
13483 _ACEOF
13484
13485 # The following way of writing the cache mishandles newlines in values,
13486 # but we know of no workaround that is simple, portable, and efficient.
13487 # So, we kill variables containing newlines.
13488 # Ultrix sh set writes to stderr and can't be redirected directly,
13489 # and sets the high bit in the cache file unless we assign to the vars.
13490 (
13491 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13492 eval ac_val=\$$ac_var
13493 case $ac_val in #(
13494 *${as_nl}*)
13495 case $ac_var in #(
13496 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13497 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13498 esac
13499 case $ac_var in #(
13500 _ | IFS | as_nl) ;; #(
13501 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13502 *) { eval $ac_var=; unset $ac_var;} ;;
13503 esac ;;
13504 esac
13505 done
13506
13507 (set) 2>&1 |
13508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13509 *${as_nl}ac_space=\ *)
13510 # `set' does not quote correctly, so add quotes: double-quote
13511 # substitution turns \\\\ into \\, and sed turns \\ into \.
13512 sed -n \
13513 "s/'/'\\\\''/g;
13514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13515 ;; #(
13516 *)
13517 # `set' quotes correctly as required by POSIX, so do not add quotes.
13518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13519 ;;
13520 esac |
13521 sort
13522 ) |
13523 sed '
13524 /^ac_cv_env_/b end
13525 t clear
13526 :clear
13527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13528 t end
13529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13530 :end' >>confcache
13531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13532 if test -w "$cache_file"; then
13533 test "x$cache_file" != "x/dev/null" &&
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13535 $as_echo "$as_me: updating cache $cache_file" >&6;}
13536 cat confcache >$cache_file
13537 else
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13539 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13540 fi
13541 fi
13542 rm -f confcache
13543
13544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13545 # Let make expand exec_prefix.
13546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13547
13548 DEFS=-DHAVE_CONFIG_H
13549
13550 ac_libobjs=
13551 ac_ltlibobjs=
13552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13553 # 1. Remove the extension, and $U if already installed.
13554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13555 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13557 # will be set to the directory where LIBOBJS objects are built.
13558 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13559 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13560 done
13561 LIBOBJS=$ac_libobjs
13562
13563 LTLIBOBJS=$ac_ltlibobjs
13564
13565
13566 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13567 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13569 fi
13570 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
13571 as_fn_error "conditional \"GMAKE\" was never defined.
13572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13573 fi
13574
13575
13576 : ${CONFIG_STATUS=./config.status}
13577 ac_write_fail=0
13578 ac_clean_files_save=$ac_clean_files
13579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13581 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13582 as_write_fail=0
13583 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13584 #! $SHELL
13585 # Generated by $as_me.
13586 # Run this file to recreate the current configuration.
13587 # Compiler output produced by configure, useful for debugging
13588 # configure, is in config.log if it exists.
13589
13590 debug=false
13591 ac_cs_recheck=false
13592 ac_cs_silent=false
13593
13594 SHELL=\${CONFIG_SHELL-$SHELL}
13595 export SHELL
13596 _ASEOF
13597 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13598 ## -------------------- ##
13599 ## M4sh Initialization. ##
13600 ## -------------------- ##
13601
13602 # Be more Bourne compatible
13603 DUALCASE=1; export DUALCASE # for MKS sh
13604 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13605 emulate sh
13606 NULLCMD=:
13607 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13608 # is contrary to our usage. Disable this feature.
13609 alias -g '${1+"$@"}'='"$@"'
13610 setopt NO_GLOB_SUBST
13611 else
13612 case `(set -o) 2>/dev/null` in #(
13613 *posix*) :
13614 set -o posix ;; #(
13615 *) :
13616 ;;
13617 esac
13618 fi
13619
13620
13621 as_nl='
13622 '
13623 export as_nl
13624 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13625 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13628 # Prefer a ksh shell builtin over an external printf program on Solaris,
13629 # but without wasting forks for bash or zsh.
13630 if test -z "$BASH_VERSION$ZSH_VERSION" \
13631 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13632 as_echo='print -r --'
13633 as_echo_n='print -rn --'
13634 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13635 as_echo='printf %s\n'
13636 as_echo_n='printf %s'
13637 else
13638 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13639 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13640 as_echo_n='/usr/ucb/echo -n'
13641 else
13642 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13643 as_echo_n_body='eval
13644 arg=$1;
13645 case $arg in #(
13646 *"$as_nl"*)
13647 expr "X$arg" : "X\\(.*\\)$as_nl";
13648 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13649 esac;
13650 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13651 '
13652 export as_echo_n_body
13653 as_echo_n='sh -c $as_echo_n_body as_echo'
13654 fi
13655 export as_echo_body
13656 as_echo='sh -c $as_echo_body as_echo'
13657 fi
13658
13659 # The user is always right.
13660 if test "${PATH_SEPARATOR+set}" != set; then
13661 PATH_SEPARATOR=:
13662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13663 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13664 PATH_SEPARATOR=';'
13665 }
13666 fi
13667
13668
13669 # IFS
13670 # We need space, tab and new line, in precisely that order. Quoting is
13671 # there to prevent editors from complaining about space-tab.
13672 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13673 # splitting by setting IFS to empty value.)
13674 IFS=" "" $as_nl"
13675
13676 # Find who we are. Look in the path if we contain no directory separator.
13677 case $0 in #((
13678 *[\\/]* ) as_myself=$0 ;;
13679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13680 for as_dir in $PATH
13681 do
13682 IFS=$as_save_IFS
13683 test -z "$as_dir" && as_dir=.
13684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13685 done
13686 IFS=$as_save_IFS
13687
13688 ;;
13689 esac
13690 # We did not find ourselves, most probably we were run as `sh COMMAND'
13691 # in which case we are not to be found in the path.
13692 if test "x$as_myself" = x; then
13693 as_myself=$0
13694 fi
13695 if test ! -f "$as_myself"; then
13696 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13697 exit 1
13698 fi
13699
13700 # Unset variables that we do not need and which cause bugs (e.g. in
13701 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13702 # suppresses any "Segmentation fault" message there. '((' could
13703 # trigger a bug in pdksh 5.2.14.
13704 for as_var in BASH_ENV ENV MAIL MAILPATH
13705 do eval test x\${$as_var+set} = xset \
13706 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13707 done
13708 PS1='$ '
13709 PS2='> '
13710 PS4='+ '
13711
13712 # NLS nuisances.
13713 LC_ALL=C
13714 export LC_ALL
13715 LANGUAGE=C
13716 export LANGUAGE
13717
13718 # CDPATH.
13719 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13720
13721
13722 # as_fn_error ERROR [LINENO LOG_FD]
13723 # ---------------------------------
13724 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13725 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13726 # script with status $?, using 1 if that was 0.
13727 as_fn_error ()
13728 {
13729 as_status=$?; test $as_status -eq 0 && as_status=1
13730 if test "$3"; then
13731 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13732 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13733 fi
13734 $as_echo "$as_me: error: $1" >&2
13735 as_fn_exit $as_status
13736 } # as_fn_error
13737
13738
13739 # as_fn_set_status STATUS
13740 # -----------------------
13741 # Set $? to STATUS, without forking.
13742 as_fn_set_status ()
13743 {
13744 return $1
13745 } # as_fn_set_status
13746
13747 # as_fn_exit STATUS
13748 # -----------------
13749 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13750 as_fn_exit ()
13751 {
13752 set +e
13753 as_fn_set_status $1
13754 exit $1
13755 } # as_fn_exit
13756
13757 # as_fn_unset VAR
13758 # ---------------
13759 # Portably unset VAR.
13760 as_fn_unset ()
13761 {
13762 { eval $1=; unset $1;}
13763 }
13764 as_unset=as_fn_unset
13765 # as_fn_append VAR VALUE
13766 # ----------------------
13767 # Append the text in VALUE to the end of the definition contained in VAR. Take
13768 # advantage of any shell optimizations that allow amortized linear growth over
13769 # repeated appends, instead of the typical quadratic growth present in naive
13770 # implementations.
13771 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13772 eval 'as_fn_append ()
13773 {
13774 eval $1+=\$2
13775 }'
13776 else
13777 as_fn_append ()
13778 {
13779 eval $1=\$$1\$2
13780 }
13781 fi # as_fn_append
13782
13783 # as_fn_arith ARG...
13784 # ------------------
13785 # Perform arithmetic evaluation on the ARGs, and store the result in the
13786 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13787 # must be portable across $(()) and expr.
13788 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13789 eval 'as_fn_arith ()
13790 {
13791 as_val=$(( $* ))
13792 }'
13793 else
13794 as_fn_arith ()
13795 {
13796 as_val=`expr "$@" || test $? -eq 1`
13797 }
13798 fi # as_fn_arith
13799
13800
13801 if expr a : '\(a\)' >/dev/null 2>&1 &&
13802 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13803 as_expr=expr
13804 else
13805 as_expr=false
13806 fi
13807
13808 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13809 as_basename=basename
13810 else
13811 as_basename=false
13812 fi
13813
13814 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13815 as_dirname=dirname
13816 else
13817 as_dirname=false
13818 fi
13819
13820 as_me=`$as_basename -- "$0" ||
13821 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13822 X"$0" : 'X\(//\)$' \| \
13823 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13824 $as_echo X/"$0" |
13825 sed '/^.*\/\([^/][^/]*\)\/*$/{
13826 s//\1/
13827 q
13828 }
13829 /^X\/\(\/\/\)$/{
13830 s//\1/
13831 q
13832 }
13833 /^X\/\(\/\).*/{
13834 s//\1/
13835 q
13836 }
13837 s/.*/./; q'`
13838
13839 # Avoid depending upon Character Ranges.
13840 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13841 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13842 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13843 as_cr_digits='0123456789'
13844 as_cr_alnum=$as_cr_Letters$as_cr_digits
13845
13846 ECHO_C= ECHO_N= ECHO_T=
13847 case `echo -n x` in #(((((
13848 -n*)
13849 case `echo 'xy\c'` in
13850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13851 xy) ECHO_C='\c';;
13852 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13853 ECHO_T=' ';;
13854 esac;;
13855 *)
13856 ECHO_N='-n';;
13857 esac
13858
13859 rm -f conf$$ conf$$.exe conf$$.file
13860 if test -d conf$$.dir; then
13861 rm -f conf$$.dir/conf$$.file
13862 else
13863 rm -f conf$$.dir
13864 mkdir conf$$.dir 2>/dev/null
13865 fi
13866 if (echo >conf$$.file) 2>/dev/null; then
13867 if ln -s conf$$.file conf$$ 2>/dev/null; then
13868 as_ln_s='ln -s'
13869 # ... but there are two gotchas:
13870 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13871 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13872 # In both cases, we have to default to `cp -p'.
13873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13874 as_ln_s='cp -p'
13875 elif ln conf$$.file conf$$ 2>/dev/null; then
13876 as_ln_s=ln
13877 else
13878 as_ln_s='cp -p'
13879 fi
13880 else
13881 as_ln_s='cp -p'
13882 fi
13883 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13884 rmdir conf$$.dir 2>/dev/null
13885
13886
13887 # as_fn_mkdir_p
13888 # -------------
13889 # Create "$as_dir" as a directory, including parents if necessary.
13890 as_fn_mkdir_p ()
13891 {
13892
13893 case $as_dir in #(
13894 -*) as_dir=./$as_dir;;
13895 esac
13896 test -d "$as_dir" || eval $as_mkdir_p || {
13897 as_dirs=
13898 while :; do
13899 case $as_dir in #(
13900 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13901 *) as_qdir=$as_dir;;
13902 esac
13903 as_dirs="'$as_qdir' $as_dirs"
13904 as_dir=`$as_dirname -- "$as_dir" ||
13905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13906 X"$as_dir" : 'X\(//\)[^/]' \| \
13907 X"$as_dir" : 'X\(//\)$' \| \
13908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13909 $as_echo X"$as_dir" |
13910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13911 s//\1/
13912 q
13913 }
13914 /^X\(\/\/\)[^/].*/{
13915 s//\1/
13916 q
13917 }
13918 /^X\(\/\/\)$/{
13919 s//\1/
13920 q
13921 }
13922 /^X\(\/\).*/{
13923 s//\1/
13924 q
13925 }
13926 s/.*/./; q'`
13927 test -d "$as_dir" && break
13928 done
13929 test -z "$as_dirs" || eval "mkdir $as_dirs"
13930 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13931
13932
13933 } # as_fn_mkdir_p
13934 if mkdir -p . 2>/dev/null; then
13935 as_mkdir_p='mkdir -p "$as_dir"'
13936 else
13937 test -d ./-p && rmdir ./-p
13938 as_mkdir_p=false
13939 fi
13940
13941 if test -x / >/dev/null 2>&1; then
13942 as_test_x='test -x'
13943 else
13944 if ls -dL / >/dev/null 2>&1; then
13945 as_ls_L_option=L
13946 else
13947 as_ls_L_option=
13948 fi
13949 as_test_x='
13950 eval sh -c '\''
13951 if test -d "$1"; then
13952 test -d "$1/.";
13953 else
13954 case $1 in #(
13955 -*)set "./$1";;
13956 esac;
13957 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13958 ???[sx]*):;;*)false;;esac;fi
13959 '\'' sh
13960 '
13961 fi
13962 as_executable_p=$as_test_x
13963
13964 # Sed expression to map a string onto a valid CPP name.
13965 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13966
13967 # Sed expression to map a string onto a valid variable name.
13968 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13969
13970
13971 exec 6>&1
13972 ## ----------------------------------- ##
13973 ## Main body of $CONFIG_STATUS script. ##
13974 ## ----------------------------------- ##
13975 _ASEOF
13976 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13977
13978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13979 # Save the log message, to keep $0 and so on meaningful, and to
13980 # report actual input values of CONFIG_FILES etc. instead of their
13981 # values after options handling.
13982 ac_log="
13983 This file was extended by $as_me, which was
13984 generated by GNU Autoconf 2.64. Invocation command line was
13985
13986 CONFIG_FILES = $CONFIG_FILES
13987 CONFIG_HEADERS = $CONFIG_HEADERS
13988 CONFIG_LINKS = $CONFIG_LINKS
13989 CONFIG_COMMANDS = $CONFIG_COMMANDS
13990 $ $0 $@
13991
13992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13993 "
13994
13995 _ACEOF
13996
13997 case $ac_config_files in *"
13998 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13999 esac
14000
14001 case $ac_config_headers in *"
14002 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14003 esac
14004
14005
14006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14007 # Files that config.status was made for.
14008 config_files="$ac_config_files"
14009 config_headers="$ac_config_headers"
14010 config_links="$ac_config_links"
14011 config_commands="$ac_config_commands"
14012
14013 _ACEOF
14014
14015 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14016 ac_cs_usage="\
14017 \`$as_me' instantiates files and other configuration actions
14018 from templates according to the current configuration. Unless the files
14019 and actions are specified as TAGs, all are instantiated by default.
14020
14021 Usage: $0 [OPTION]... [TAG]...
14022
14023 -h, --help print this help, then exit
14024 -V, --version print version number and configuration settings, then exit
14025 -q, --quiet, --silent
14026 do not print progress messages
14027 -d, --debug don't remove temporary files
14028 --recheck update $as_me by reconfiguring in the same conditions
14029 --file=FILE[:TEMPLATE]
14030 instantiate the configuration file FILE
14031 --header=FILE[:TEMPLATE]
14032 instantiate the configuration header FILE
14033
14034 Configuration files:
14035 $config_files
14036
14037 Configuration headers:
14038 $config_headers
14039
14040 Configuration links:
14041 $config_links
14042
14043 Configuration commands:
14044 $config_commands
14045
14046 Report bugs to the package provider."
14047
14048 _ACEOF
14049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14050 ac_cs_version="\\
14051 config.status
14052 configured by $0, generated by GNU Autoconf 2.64,
14053 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14054
14055 Copyright (C) 2009 Free Software Foundation, Inc.
14056 This config.status script is free software; the Free Software Foundation
14057 gives unlimited permission to copy, distribute and modify it."
14058
14059 ac_pwd='$ac_pwd'
14060 srcdir='$srcdir'
14061 INSTALL='$INSTALL'
14062 AWK='$AWK'
14063 test -n "\$AWK" || AWK=awk
14064 _ACEOF
14065
14066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14067 # The default lists apply if the user does not specify any file.
14068 ac_need_defaults=:
14069 while test $# != 0
14070 do
14071 case $1 in
14072 --*=*)
14073 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14074 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14075 ac_shift=:
14076 ;;
14077 *)
14078 ac_option=$1
14079 ac_optarg=$2
14080 ac_shift=shift
14081 ;;
14082 esac
14083
14084 case $ac_option in
14085 # Handling of the options.
14086 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14087 ac_cs_recheck=: ;;
14088 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14089 $as_echo "$ac_cs_version"; exit ;;
14090 --debug | --debu | --deb | --de | --d | -d )
14091 debug=: ;;
14092 --file | --fil | --fi | --f )
14093 $ac_shift
14094 case $ac_optarg in
14095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14096 esac
14097 as_fn_append CONFIG_FILES " '$ac_optarg'"
14098 ac_need_defaults=false;;
14099 --header | --heade | --head | --hea )
14100 $ac_shift
14101 case $ac_optarg in
14102 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14103 esac
14104 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14105 ac_need_defaults=false;;
14106 --he | --h)
14107 # Conflict between --help and --header
14108 as_fn_error "ambiguous option: \`$1'
14109 Try \`$0 --help' for more information.";;
14110 --help | --hel | -h )
14111 $as_echo "$ac_cs_usage"; exit ;;
14112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14113 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14114 ac_cs_silent=: ;;
14115
14116 # This is an error.
14117 -*) as_fn_error "unrecognized option: \`$1'
14118 Try \`$0 --help' for more information." ;;
14119
14120 *) as_fn_append ac_config_targets " $1"
14121 ac_need_defaults=false ;;
14122
14123 esac
14124 shift
14125 done
14126
14127 ac_configure_extra_args=
14128
14129 if $ac_cs_silent; then
14130 exec 6>/dev/null
14131 ac_configure_extra_args="$ac_configure_extra_args --silent"
14132 fi
14133
14134 _ACEOF
14135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14136 if \$ac_cs_recheck; then
14137 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14138 shift
14139 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14140 CONFIG_SHELL='$SHELL'
14141 export CONFIG_SHELL
14142 exec "\$@"
14143 fi
14144
14145 _ACEOF
14146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14147 exec 5>>config.log
14148 {
14149 echo
14150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14151 ## Running $as_me. ##
14152 _ASBOX
14153 $as_echo "$ac_log"
14154 } >&5
14155
14156 _ACEOF
14157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14158 #
14159 # INIT-COMMANDS
14160 #
14161 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14162
14163 _ACEOF
14164
14165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14166
14167 # Handling of arguments.
14168 for ac_config_target in $ac_config_targets
14169 do
14170 case $ac_config_target in
14171 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14172 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
14173 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
14174 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
14175 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14176 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
14177 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14178 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
14179 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14180
14181 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14182 esac
14183 done
14184
14185
14186 # If the user did not use the arguments to specify the items to instantiate,
14187 # then the envvar interface is used. Set only those that are not.
14188 # We use the long form for the default assignment because of an extremely
14189 # bizarre bug on SunOS 4.1.3.
14190 if $ac_need_defaults; then
14191 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14192 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14193 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14194 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14195 fi
14196
14197 # Have a temporary directory for convenience. Make it in the build tree
14198 # simply because there is no reason against having it here, and in addition,
14199 # creating and moving files from /tmp can sometimes cause problems.
14200 # Hook for its removal unless debugging.
14201 # Note that there is a small window in which the directory will not be cleaned:
14202 # after its creation but before its name has been assigned to `$tmp'.
14203 $debug ||
14204 {
14205 tmp=
14206 trap 'exit_status=$?
14207 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14208 ' 0
14209 trap 'as_fn_exit 1' 1 2 13 15
14210 }
14211 # Create a (secure) tmp directory for tmp files.
14212
14213 {
14214 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14215 test -n "$tmp" && test -d "$tmp"
14216 } ||
14217 {
14218 tmp=./conf$$-$RANDOM
14219 (umask 077 && mkdir "$tmp")
14220 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14221
14222 # Set up the scripts for CONFIG_FILES section.
14223 # No need to generate them if there are no CONFIG_FILES.
14224 # This happens for instance with `./config.status config.h'.
14225 if test -n "$CONFIG_FILES"; then
14226
14227 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14228 ac_cs_awk_getline=:
14229 ac_cs_awk_pipe_init=
14230 ac_cs_awk_read_file='
14231 while ((getline aline < (F[key])) > 0)
14232 print(aline)
14233 close(F[key])'
14234 ac_cs_awk_pipe_fini=
14235 else
14236 ac_cs_awk_getline=false
14237 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14238 ac_cs_awk_read_file='
14239 print "|#_!!_#|"
14240 print "cat " F[key] " &&"
14241 '$ac_cs_awk_pipe_init
14242 # The final `:' finishes the AND list.
14243 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14244 fi
14245 ac_cr=`echo X | tr X '\015'`
14246 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14247 # But we know of no other shell where ac_cr would be empty at this
14248 # point, so we can use a bashism as a fallback.
14249 if test "x$ac_cr" = x; then
14250 eval ac_cr=\$\'\\r\'
14251 fi
14252 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14253 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14254 ac_cs_awk_cr='\r'
14255 else
14256 ac_cs_awk_cr=$ac_cr
14257 fi
14258
14259 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14260 _ACEOF
14261
14262 # Create commands to substitute file output variables.
14263 {
14264 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14265 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14266 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14267 echo "_ACAWK" &&
14268 echo "_ACEOF"
14269 } >conf$$files.sh &&
14270 . ./conf$$files.sh ||
14271 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14272 rm -f conf$$files.sh
14273
14274 {
14275 echo "cat >conf$$subs.awk <<_ACEOF" &&
14276 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14277 echo "_ACEOF"
14278 } >conf$$subs.sh ||
14279 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14280 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14281 ac_delim='%!_!# '
14282 for ac_last_try in false false false false false :; do
14283 . ./conf$$subs.sh ||
14284 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14285
14286 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14287 if test $ac_delim_n = $ac_delim_num; then
14288 break
14289 elif $ac_last_try; then
14290 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14291 else
14292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14293 fi
14294 done
14295 rm -f conf$$subs.sh
14296
14297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14298 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14299 _ACEOF
14300 sed -n '
14301 h
14302 s/^/S["/; s/!.*/"]=/
14303 p
14304 g
14305 s/^[^!]*!//
14306 :repl
14307 t repl
14308 s/'"$ac_delim"'$//
14309 t delim
14310 :nl
14311 h
14312 s/\(.\{148\}\).*/\1/
14313 t more1
14314 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14315 p
14316 n
14317 b repl
14318 :more1
14319 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14320 p
14321 g
14322 s/.\{148\}//
14323 t nl
14324 :delim
14325 h
14326 s/\(.\{148\}\).*/\1/
14327 t more2
14328 s/["\\]/\\&/g; s/^/"/; s/$/"/
14329 p
14330 b
14331 :more2
14332 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14333 p
14334 g
14335 s/.\{148\}//
14336 t delim
14337 ' <conf$$subs.awk | sed '
14338 /^[^""]/{
14339 N
14340 s/\n//
14341 }
14342 ' >>$CONFIG_STATUS || ac_write_fail=1
14343 rm -f conf$$subs.awk
14344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14345 _ACAWK
14346 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14347 for (key in S) S_is_set[key] = 1
14348 FS = "\a"
14349 \$ac_cs_awk_pipe_init
14350 }
14351 {
14352 line = $ 0
14353 nfields = split(line, field, "@")
14354 substed = 0
14355 len = length(field[1])
14356 for (i = 2; i < nfields; i++) {
14357 key = field[i]
14358 keylen = length(key)
14359 if (S_is_set[key]) {
14360 value = S[key]
14361 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14362 len += length(value) + length(field[++i])
14363 substed = 1
14364 } else
14365 len += 1 + keylen
14366 }
14367 if (nfields == 3 && !substed) {
14368 key = field[2]
14369 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14370 \$ac_cs_awk_read_file
14371 next
14372 }
14373 }
14374 print line
14375 }
14376 \$ac_cs_awk_pipe_fini
14377 _ACAWK
14378 _ACEOF
14379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14380 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14382 else
14383 cat
14384 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14385 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14386 _ACEOF
14387
14388 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14389 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14390 # trailing colons and then remove the whole line if VPATH becomes empty
14391 # (actually we leave an empty line to preserve line numbers).
14392 if test "x$srcdir" = x.; then
14393 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14394 s/:*\$(srcdir):*/:/
14395 s/:*\${srcdir}:*/:/
14396 s/:*@srcdir@:*/:/
14397 s/^\([^=]*=[ ]*\):*/\1/
14398 s/:*$//
14399 s/^[^=]*=[ ]*$//
14400 }'
14401 fi
14402
14403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14404 fi # test -n "$CONFIG_FILES"
14405
14406 # Set up the scripts for CONFIG_HEADERS section.
14407 # No need to generate them if there are no CONFIG_HEADERS.
14408 # This happens for instance with `./config.status Makefile'.
14409 if test -n "$CONFIG_HEADERS"; then
14410 cat >"$tmp/defines.awk" <<\_ACAWK ||
14411 BEGIN {
14412 _ACEOF
14413
14414 # Transform confdefs.h into an awk script `defines.awk', embedded as
14415 # here-document in config.status, that substitutes the proper values into
14416 # config.h.in to produce config.h.
14417
14418 # Create a delimiter string that does not exist in confdefs.h, to ease
14419 # handling of long lines.
14420 ac_delim='%!_!# '
14421 for ac_last_try in false false :; do
14422 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14423 if test -z "$ac_t"; then
14424 break
14425 elif $ac_last_try; then
14426 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14427 else
14428 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14429 fi
14430 done
14431
14432 # For the awk script, D is an array of macro values keyed by name,
14433 # likewise P contains macro parameters if any. Preserve backslash
14434 # newline sequences.
14435
14436 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14437 sed -n '
14438 s/.\{148\}/&'"$ac_delim"'/g
14439 t rset
14440 :rset
14441 s/^[ ]*#[ ]*define[ ][ ]*/ /
14442 t def
14443 d
14444 :def
14445 s/\\$//
14446 t bsnl
14447 s/["\\]/\\&/g
14448 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14449 D["\1"]=" \3"/p
14450 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14451 d
14452 :bsnl
14453 s/["\\]/\\&/g
14454 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14455 D["\1"]=" \3\\\\\\n"\\/p
14456 t cont
14457 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14458 t cont
14459 d
14460 :cont
14461 n
14462 s/.\{148\}/&'"$ac_delim"'/g
14463 t clear
14464 :clear
14465 s/\\$//
14466 t bsnlc
14467 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14468 d
14469 :bsnlc
14470 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14471 b cont
14472 ' <confdefs.h | sed '
14473 s/'"$ac_delim"'/"\\\
14474 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14475
14476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14477 for (key in D) D_is_set[key] = 1
14478 FS = "\a"
14479 }
14480 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14481 line = \$ 0
14482 split(line, arg, " ")
14483 if (arg[1] == "#") {
14484 defundef = arg[2]
14485 mac1 = arg[3]
14486 } else {
14487 defundef = substr(arg[1], 2)
14488 mac1 = arg[2]
14489 }
14490 split(mac1, mac2, "(") #)
14491 macro = mac2[1]
14492 prefix = substr(line, 1, index(line, defundef) - 1)
14493 if (D_is_set[macro]) {
14494 # Preserve the white space surrounding the "#".
14495 print prefix "define", macro P[macro] D[macro]
14496 next
14497 } else {
14498 # Replace #undef with comments. This is necessary, for example,
14499 # in the case of _POSIX_SOURCE, which is predefined and required
14500 # on some systems where configure will not decide to define it.
14501 if (defundef == "undef") {
14502 print "/*", prefix defundef, macro, "*/"
14503 next
14504 }
14505 }
14506 }
14507 { print }
14508 _ACAWK
14509 _ACEOF
14510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14511 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14512 fi # test -n "$CONFIG_HEADERS"
14513
14514
14515 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14516 shift
14517 for ac_tag
14518 do
14519 case $ac_tag in
14520 :[FHLC]) ac_mode=$ac_tag; continue;;
14521 esac
14522 case $ac_mode$ac_tag in
14523 :[FHL]*:*);;
14524 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14525 :[FH]-) ac_tag=-:-;;
14526 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14527 esac
14528 ac_save_IFS=$IFS
14529 IFS=:
14530 set x $ac_tag
14531 IFS=$ac_save_IFS
14532 shift
14533 ac_file=$1
14534 shift
14535
14536 case $ac_mode in
14537 :L) ac_source=$1;;
14538 :[FH])
14539 ac_file_inputs=
14540 for ac_f
14541 do
14542 case $ac_f in
14543 -) ac_f="$tmp/stdin";;
14544 *) # Look for the file first in the build tree, then in the source tree
14545 # (if the path is not absolute). The absolute path cannot be DOS-style,
14546 # because $ac_f cannot contain `:'.
14547 test -f "$ac_f" ||
14548 case $ac_f in
14549 [\\/$]*) false;;
14550 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14551 esac ||
14552 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14553 esac
14554 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14555 as_fn_append ac_file_inputs " '$ac_f'"
14556 done
14557
14558 # Let's still pretend it is `configure' which instantiates (i.e., don't
14559 # use $as_me), people would be surprised to read:
14560 # /* config.h. Generated by config.status. */
14561 configure_input='Generated from '`
14562 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14563 `' by configure.'
14564 if test x"$ac_file" != x-; then
14565 configure_input="$ac_file. $configure_input"
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14567 $as_echo "$as_me: creating $ac_file" >&6;}
14568 fi
14569 # Neutralize special characters interpreted by sed in replacement strings.
14570 case $configure_input in #(
14571 *\&* | *\|* | *\\* )
14572 ac_sed_conf_input=`$as_echo "$configure_input" |
14573 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14574 *) ac_sed_conf_input=$configure_input;;
14575 esac
14576
14577 case $ac_tag in
14578 *:-:* | *:-) cat >"$tmp/stdin" \
14579 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14580 esac
14581 ;;
14582 esac
14583
14584 ac_dir=`$as_dirname -- "$ac_file" ||
14585 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14586 X"$ac_file" : 'X\(//\)[^/]' \| \
14587 X"$ac_file" : 'X\(//\)$' \| \
14588 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14589 $as_echo X"$ac_file" |
14590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14591 s//\1/
14592 q
14593 }
14594 /^X\(\/\/\)[^/].*/{
14595 s//\1/
14596 q
14597 }
14598 /^X\(\/\/\)$/{
14599 s//\1/
14600 q
14601 }
14602 /^X\(\/\).*/{
14603 s//\1/
14604 q
14605 }
14606 s/.*/./; q'`
14607 as_dir="$ac_dir"; as_fn_mkdir_p
14608 ac_builddir=.
14609
14610 case "$ac_dir" in
14611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14612 *)
14613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14614 # A ".." for each directory in $ac_dir_suffix.
14615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14616 case $ac_top_builddir_sub in
14617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14619 esac ;;
14620 esac
14621 ac_abs_top_builddir=$ac_pwd
14622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14623 # for backward compatibility:
14624 ac_top_builddir=$ac_top_build_prefix
14625
14626 case $srcdir in
14627 .) # We are building in place.
14628 ac_srcdir=.
14629 ac_top_srcdir=$ac_top_builddir_sub
14630 ac_abs_top_srcdir=$ac_pwd ;;
14631 [\\/]* | ?:[\\/]* ) # Absolute name.
14632 ac_srcdir=$srcdir$ac_dir_suffix;
14633 ac_top_srcdir=$srcdir
14634 ac_abs_top_srcdir=$srcdir ;;
14635 *) # Relative name.
14636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14637 ac_top_srcdir=$ac_top_build_prefix$srcdir
14638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14639 esac
14640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14641
14642
14643 case $ac_mode in
14644 :F)
14645 #
14646 # CONFIG_FILE
14647 #
14648
14649 case $INSTALL in
14650 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14651 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14652 esac
14653 _ACEOF
14654
14655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14656 # If the template does not know about datarootdir, expand it.
14657 # FIXME: This hack should be removed a few years after 2.60.
14658 ac_datarootdir_hack=; ac_datarootdir_seen=
14659 ac_sed_dataroot='
14660 /datarootdir/ {
14661 p
14662 q
14663 }
14664 /@datadir@/p
14665 /@docdir@/p
14666 /@infodir@/p
14667 /@localedir@/p
14668 /@mandir@/p'
14669 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14670 *datarootdir*) ac_datarootdir_seen=yes;;
14671 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14673 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14674 _ACEOF
14675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14676 ac_datarootdir_hack='
14677 s&@datadir@&$datadir&g
14678 s&@docdir@&$docdir&g
14679 s&@infodir@&$infodir&g
14680 s&@localedir@&$localedir&g
14681 s&@mandir@&$mandir&g
14682 s&\\\${datarootdir}&$datarootdir&g' ;;
14683 esac
14684 _ACEOF
14685
14686 # Neutralize VPATH when `$srcdir' = `.'.
14687 # Shell code in configure.ac might set extrasub.
14688 # FIXME: do we really want to maintain this feature?
14689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14690 ac_sed_extra="$ac_vpsub
14691 $extrasub
14692 _ACEOF
14693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14694 :t
14695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14696 s|@configure_input@|$ac_sed_conf_input|;t t
14697 s&@top_builddir@&$ac_top_builddir_sub&;t t
14698 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14699 s&@srcdir@&$ac_srcdir&;t t
14700 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14701 s&@top_srcdir@&$ac_top_srcdir&;t t
14702 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14703 s&@builddir@&$ac_builddir&;t t
14704 s&@abs_builddir@&$ac_abs_builddir&;t t
14705 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14706 s&@INSTALL@&$ac_INSTALL&;t t
14707 $ac_datarootdir_hack
14708 "
14709 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14710 if $ac_cs_awk_getline; then
14711 $AWK -f "$tmp/subs.awk"
14712 else
14713 $AWK -f "$tmp/subs.awk" | $SHELL
14714 fi >$tmp/out \
14715 || as_fn_error "could not create $ac_file" "$LINENO" 5
14716
14717 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14718 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14719 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14721 which seems to be undefined. Please make sure it is defined." >&5
14722 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14723 which seems to be undefined. Please make sure it is defined." >&2;}
14724
14725 rm -f "$tmp/stdin"
14726 case $ac_file in
14727 -) cat "$tmp/out" && rm -f "$tmp/out";;
14728 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14729 esac \
14730 || as_fn_error "could not create $ac_file" "$LINENO" 5
14731 ;;
14732 :H)
14733 #
14734 # CONFIG_HEADER
14735 #
14736 if test x"$ac_file" != x-; then
14737 {
14738 $as_echo "/* $configure_input */" \
14739 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14740 } >"$tmp/config.h" \
14741 || as_fn_error "could not create $ac_file" "$LINENO" 5
14742 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14744 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14745 else
14746 rm -f "$ac_file"
14747 mv "$tmp/config.h" "$ac_file" \
14748 || as_fn_error "could not create $ac_file" "$LINENO" 5
14749 fi
14750 else
14751 $as_echo "/* $configure_input */" \
14752 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14753 || as_fn_error "could not create -" "$LINENO" 5
14754 fi
14755 ;;
14756 :L)
14757 #
14758 # CONFIG_LINK
14759 #
14760
14761 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14762 :
14763 else
14764 # Prefer the file from the source tree if names are identical.
14765 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14766 ac_source=$srcdir/$ac_source
14767 fi
14768
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14770 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14771
14772 if test ! -r "$ac_source"; then
14773 as_fn_error "$ac_source: file not found" "$LINENO" 5
14774 fi
14775 rm -f "$ac_file"
14776
14777 # Try a relative symlink, then a hard link, then a copy.
14778 case $srcdir in
14779 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14780 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14781 esac
14782 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14783 ln "$ac_source" "$ac_file" 2>/dev/null ||
14784 cp -p "$ac_source" "$ac_file" ||
14785 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14786 fi
14787 ;;
14788 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14789 $as_echo "$as_me: executing $ac_file commands" >&6;}
14790 ;;
14791 esac
14792
14793
14794 case $ac_file$ac_mode in
14795 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
14796 "default":C)
14797 case x$CONFIG_HEADERS in
14798 xconfig.h:config.in)
14799 echo > stamp-h ;;
14800 esac
14801 ;;
14802
14803 esac
14804 done # for ac_tag
14805
14806
14807 as_fn_exit 0
14808 _ACEOF
14809 ac_clean_files=$ac_clean_files_save
14810
14811 test $ac_write_fail = 0 ||
14812 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14813
14814
14815 # configure is writing to config.log, and then calls config.status.
14816 # config.status does its own redirection, appending to config.log.
14817 # Unfortunately, on DOS this fails, as config.log is still kept open
14818 # by configure, so config.status won't be able to write to it; its
14819 # output is simply discarded. So we exec the FD to /dev/null,
14820 # effectively closing config.log, so it can be properly (re)opened and
14821 # appended to by config.status. When coming back to configure, we
14822 # need to make the FD available again.
14823 if test "$no_create" != yes; then
14824 ac_cs_success=:
14825 ac_config_status_args=
14826 test "$silent" = yes &&
14827 ac_config_status_args="$ac_config_status_args --quiet"
14828 exec 5>/dev/null
14829 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14830 exec 5>>config.log
14831 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14832 # would make configure fail if this is the last instruction.
14833 $ac_cs_success || as_fn_exit $?
14834 fi
14835
14836 #
14837 # CONFIG_SUBDIRS section.
14838 #
14839 if test "$no_recursion" != yes; then
14840
14841 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14842 # so they do not pile up.
14843 ac_sub_configure_args=
14844 ac_prev=
14845 eval "set x $ac_configure_args"
14846 shift
14847 for ac_arg
14848 do
14849 if test -n "$ac_prev"; then
14850 ac_prev=
14851 continue
14852 fi
14853 case $ac_arg in
14854 -cache-file | --cache-file | --cache-fil | --cache-fi \
14855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14856 ac_prev=cache_file ;;
14857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14859 | --c=*)
14860 ;;
14861 --config-cache | -C)
14862 ;;
14863 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14864 ac_prev=srcdir ;;
14865 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14866 ;;
14867 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14868 ac_prev=prefix ;;
14869 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14870 ;;
14871 --disable-option-checking)
14872 ;;
14873 *)
14874 case $ac_arg in
14875 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14876 esac
14877 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14878 esac
14879 done
14880
14881 # Always prepend --prefix to ensure using the same prefix
14882 # in subdir configurations.
14883 ac_arg="--prefix=$prefix"
14884 case $ac_arg in
14885 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14886 esac
14887 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14888
14889 # Pass --silent
14890 if test "$silent" = yes; then
14891 ac_sub_configure_args="--silent $ac_sub_configure_args"
14892 fi
14893
14894 # Always prepend --disable-option-checking to silence warnings, since
14895 # different subdirs can have different --enable and --with options.
14896 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14897
14898 ac_popdir=`pwd`
14899 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14900
14901 # Do not complain, so a configure script can configure whichever
14902 # parts of a large source tree are present.
14903 test -d "$srcdir/$ac_dir" || continue
14904
14905 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14906 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14907 $as_echo "$ac_msg" >&6
14908 as_dir="$ac_dir"; as_fn_mkdir_p
14909 ac_builddir=.
14910
14911 case "$ac_dir" in
14912 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14913 *)
14914 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14915 # A ".." for each directory in $ac_dir_suffix.
14916 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14917 case $ac_top_builddir_sub in
14918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14920 esac ;;
14921 esac
14922 ac_abs_top_builddir=$ac_pwd
14923 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14924 # for backward compatibility:
14925 ac_top_builddir=$ac_top_build_prefix
14926
14927 case $srcdir in
14928 .) # We are building in place.
14929 ac_srcdir=.
14930 ac_top_srcdir=$ac_top_builddir_sub
14931 ac_abs_top_srcdir=$ac_pwd ;;
14932 [\\/]* | ?:[\\/]* ) # Absolute name.
14933 ac_srcdir=$srcdir$ac_dir_suffix;
14934 ac_top_srcdir=$srcdir
14935 ac_abs_top_srcdir=$srcdir ;;
14936 *) # Relative name.
14937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14938 ac_top_srcdir=$ac_top_build_prefix$srcdir
14939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14940 esac
14941 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14942
14943
14944 cd "$ac_dir"
14945
14946 # Check for guested configure; otherwise get Cygnus style configure.
14947 if test -f "$ac_srcdir/configure.gnu"; then
14948 ac_sub_configure=$ac_srcdir/configure.gnu
14949 elif test -f "$ac_srcdir/configure"; then
14950 ac_sub_configure=$ac_srcdir/configure
14951 elif test -f "$ac_srcdir/configure.in"; then
14952 # This should be Cygnus configure.
14953 ac_sub_configure=$ac_aux_dir/configure
14954 else
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14956 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14957 ac_sub_configure=
14958 fi
14959
14960 # The recursion is here.
14961 if test -n "$ac_sub_configure"; then
14962 # Make the cache file name correct relative to the subdirectory.
14963 case $cache_file in
14964 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14965 *) # Relative name.
14966 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14967 esac
14968
14969 { $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
14970 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14971 # The eval makes quoting arguments work.
14972 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14973 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14974 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14975 fi
14976
14977 cd "$ac_popdir"
14978 done
14979 fi
14980 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14982 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14983 fi
14984
14985
14986 exit 0
This page took 0.780587 seconds and 5 git commands to generate.