2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
[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_safe_path
782 enable_targets
783 enable_64_bit_bfd
784 enable_gdbcli
785 enable_gdbmi
786 enable_tui
787 enable_gdbtk
788 with_libunwind_ia64
789 with_curses
790 enable_profiling
791 with_pkgversion
792 with_bugurl
793 with_zlib
794 with_libiconv_prefix
795 with_iconv_bin
796 with_system_readline
797 with_jit_reader_dir
798 with_expat
799 with_gnu_ld
800 enable_rpath
801 with_libexpat_prefix
802 with_python
803 with_included_regex
804 with_sysroot
805 with_system_gdbinit
806 enable_werror
807 enable_build_warnings
808 enable_gdb_build_warnings
809 with_tcl
810 with_tk
811 with_x
812 enable_sim
813 enable_multi_ice
814 enable_gdbserver
815 '
816 ac_precious_vars='build_alias
817 host_alias
818 target_alias
819 CC
820 CFLAGS
821 LDFLAGS
822 LIBS
823 CPPFLAGS
824 CPP
825 MAKEINFO
826 MAKEINFOFLAGS
827 YACC
828 YFLAGS
829 XMKMF'
830 ac_subdirs_all='testsuite
831 gdbtk
832 multi-ice
833 gdbserver'
834
835 # Initialize some variables set by options.
836 ac_init_help=
837 ac_init_version=false
838 ac_unrecognized_opts=
839 ac_unrecognized_sep=
840 # The variables have the same names as the options, with
841 # dashes changed to underlines.
842 cache_file=/dev/null
843 exec_prefix=NONE
844 no_create=
845 no_recursion=
846 prefix=NONE
847 program_prefix=NONE
848 program_suffix=NONE
849 program_transform_name=s,x,x,
850 silent=
851 site=
852 srcdir=
853 verbose=
854 x_includes=NONE
855 x_libraries=NONE
856
857 # Installation directory options.
858 # These are left unexpanded so users can "make install exec_prefix=/foo"
859 # and all the variables that are supposed to be based on exec_prefix
860 # by default will actually change.
861 # Use braces instead of parens because sh, perl, etc. also accept them.
862 # (The list follows the same order as the GNU Coding Standards.)
863 bindir='${exec_prefix}/bin'
864 sbindir='${exec_prefix}/sbin'
865 libexecdir='${exec_prefix}/libexec'
866 datarootdir='${prefix}/share'
867 datadir='${datarootdir}'
868 sysconfdir='${prefix}/etc'
869 sharedstatedir='${prefix}/com'
870 localstatedir='${prefix}/var'
871 includedir='${prefix}/include'
872 oldincludedir='/usr/include'
873 docdir='${datarootdir}/doc/${PACKAGE}'
874 infodir='${datarootdir}/info'
875 htmldir='${docdir}'
876 dvidir='${docdir}'
877 pdfdir='${docdir}'
878 psdir='${docdir}'
879 libdir='${exec_prefix}/lib'
880 localedir='${datarootdir}/locale'
881 mandir='${datarootdir}/man'
882
883 ac_prev=
884 ac_dashdash=
885 for ac_option
886 do
887 # If the previous option needs an argument, assign it.
888 if test -n "$ac_prev"; then
889 eval $ac_prev=\$ac_option
890 ac_prev=
891 continue
892 fi
893
894 case $ac_option in
895 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
896 *) ac_optarg=yes ;;
897 esac
898
899 # Accept the important Cygnus configure options, so we can diagnose typos.
900
901 case $ac_dashdash$ac_option in
902 --)
903 ac_dashdash=yes ;;
904
905 -bindir | --bindir | --bindi | --bind | --bin | --bi)
906 ac_prev=bindir ;;
907 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
908 bindir=$ac_optarg ;;
909
910 -build | --build | --buil | --bui | --bu)
911 ac_prev=build_alias ;;
912 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
913 build_alias=$ac_optarg ;;
914
915 -cache-file | --cache-file | --cache-fil | --cache-fi \
916 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
917 ac_prev=cache_file ;;
918 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
919 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
920 cache_file=$ac_optarg ;;
921
922 --config-cache | -C)
923 cache_file=config.cache ;;
924
925 -datadir | --datadir | --datadi | --datad)
926 ac_prev=datadir ;;
927 -datadir=* | --datadir=* | --datadi=* | --datad=*)
928 datadir=$ac_optarg ;;
929
930 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
931 | --dataroo | --dataro | --datar)
932 ac_prev=datarootdir ;;
933 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
934 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
935 datarootdir=$ac_optarg ;;
936
937 -disable-* | --disable-*)
938 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
939 # Reject names that are not valid shell variable names.
940 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941 as_fn_error "invalid feature name: $ac_useropt"
942 ac_useropt_orig=$ac_useropt
943 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944 case $ac_user_opts in
945 *"
946 "enable_$ac_useropt"
947 "*) ;;
948 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
949 ac_unrecognized_sep=', ';;
950 esac
951 eval enable_$ac_useropt=no ;;
952
953 -docdir | --docdir | --docdi | --doc | --do)
954 ac_prev=docdir ;;
955 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
956 docdir=$ac_optarg ;;
957
958 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
959 ac_prev=dvidir ;;
960 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
961 dvidir=$ac_optarg ;;
962
963 -enable-* | --enable-*)
964 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967 as_fn_error "invalid feature name: $ac_useropt"
968 ac_useropt_orig=$ac_useropt
969 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970 case $ac_user_opts in
971 *"
972 "enable_$ac_useropt"
973 "*) ;;
974 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
975 ac_unrecognized_sep=', ';;
976 esac
977 eval enable_$ac_useropt=\$ac_optarg ;;
978
979 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
981 | --exec | --exe | --ex)
982 ac_prev=exec_prefix ;;
983 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
984 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
985 | --exec=* | --exe=* | --ex=*)
986 exec_prefix=$ac_optarg ;;
987
988 -gas | --gas | --ga | --g)
989 # Obsolete; use --with-gas.
990 with_gas=yes ;;
991
992 -help | --help | --hel | --he | -h)
993 ac_init_help=long ;;
994 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
995 ac_init_help=recursive ;;
996 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
997 ac_init_help=short ;;
998
999 -host | --host | --hos | --ho)
1000 ac_prev=host_alias ;;
1001 -host=* | --host=* | --hos=* | --ho=*)
1002 host_alias=$ac_optarg ;;
1003
1004 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005 ac_prev=htmldir ;;
1006 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007 | --ht=*)
1008 htmldir=$ac_optarg ;;
1009
1010 -includedir | --includedir | --includedi | --included | --include \
1011 | --includ | --inclu | --incl | --inc)
1012 ac_prev=includedir ;;
1013 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1014 | --includ=* | --inclu=* | --incl=* | --inc=*)
1015 includedir=$ac_optarg ;;
1016
1017 -infodir | --infodir | --infodi | --infod | --info | --inf)
1018 ac_prev=infodir ;;
1019 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1020 infodir=$ac_optarg ;;
1021
1022 -libdir | --libdir | --libdi | --libd)
1023 ac_prev=libdir ;;
1024 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1025 libdir=$ac_optarg ;;
1026
1027 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1028 | --libexe | --libex | --libe)
1029 ac_prev=libexecdir ;;
1030 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1031 | --libexe=* | --libex=* | --libe=*)
1032 libexecdir=$ac_optarg ;;
1033
1034 -localedir | --localedir | --localedi | --localed | --locale)
1035 ac_prev=localedir ;;
1036 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037 localedir=$ac_optarg ;;
1038
1039 -localstatedir | --localstatedir | --localstatedi | --localstated \
1040 | --localstate | --localstat | --localsta | --localst | --locals)
1041 ac_prev=localstatedir ;;
1042 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1044 localstatedir=$ac_optarg ;;
1045
1046 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1047 ac_prev=mandir ;;
1048 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1049 mandir=$ac_optarg ;;
1050
1051 -nfp | --nfp | --nf)
1052 # Obsolete; use --without-fp.
1053 with_fp=no ;;
1054
1055 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1056 | --no-cr | --no-c | -n)
1057 no_create=yes ;;
1058
1059 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1060 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1061 no_recursion=yes ;;
1062
1063 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1064 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1065 | --oldin | --oldi | --old | --ol | --o)
1066 ac_prev=oldincludedir ;;
1067 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1068 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1069 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1070 oldincludedir=$ac_optarg ;;
1071
1072 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1073 ac_prev=prefix ;;
1074 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1075 prefix=$ac_optarg ;;
1076
1077 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1078 | --program-pre | --program-pr | --program-p)
1079 ac_prev=program_prefix ;;
1080 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1081 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1082 program_prefix=$ac_optarg ;;
1083
1084 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1085 | --program-suf | --program-su | --program-s)
1086 ac_prev=program_suffix ;;
1087 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1088 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1089 program_suffix=$ac_optarg ;;
1090
1091 -program-transform-name | --program-transform-name \
1092 | --program-transform-nam | --program-transform-na \
1093 | --program-transform-n | --program-transform- \
1094 | --program-transform | --program-transfor \
1095 | --program-transfo | --program-transf \
1096 | --program-trans | --program-tran \
1097 | --progr-tra | --program-tr | --program-t)
1098 ac_prev=program_transform_name ;;
1099 -program-transform-name=* | --program-transform-name=* \
1100 | --program-transform-nam=* | --program-transform-na=* \
1101 | --program-transform-n=* | --program-transform-=* \
1102 | --program-transform=* | --program-transfor=* \
1103 | --program-transfo=* | --program-transf=* \
1104 | --program-trans=* | --program-tran=* \
1105 | --progr-tra=* | --program-tr=* | --program-t=*)
1106 program_transform_name=$ac_optarg ;;
1107
1108 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109 ac_prev=pdfdir ;;
1110 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111 pdfdir=$ac_optarg ;;
1112
1113 -psdir | --psdir | --psdi | --psd | --ps)
1114 ac_prev=psdir ;;
1115 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116 psdir=$ac_optarg ;;
1117
1118 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119 | -silent | --silent | --silen | --sile | --sil)
1120 silent=yes ;;
1121
1122 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1123 ac_prev=sbindir ;;
1124 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1125 | --sbi=* | --sb=*)
1126 sbindir=$ac_optarg ;;
1127
1128 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1129 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1130 | --sharedst | --shareds | --shared | --share | --shar \
1131 | --sha | --sh)
1132 ac_prev=sharedstatedir ;;
1133 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1134 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1135 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1136 | --sha=* | --sh=*)
1137 sharedstatedir=$ac_optarg ;;
1138
1139 -site | --site | --sit)
1140 ac_prev=site ;;
1141 -site=* | --site=* | --sit=*)
1142 site=$ac_optarg ;;
1143
1144 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1145 ac_prev=srcdir ;;
1146 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1147 srcdir=$ac_optarg ;;
1148
1149 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1150 | --syscon | --sysco | --sysc | --sys | --sy)
1151 ac_prev=sysconfdir ;;
1152 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1153 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1154 sysconfdir=$ac_optarg ;;
1155
1156 -target | --target | --targe | --targ | --tar | --ta | --t)
1157 ac_prev=target_alias ;;
1158 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1159 target_alias=$ac_optarg ;;
1160
1161 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1162 verbose=yes ;;
1163
1164 -version | --version | --versio | --versi | --vers | -V)
1165 ac_init_version=: ;;
1166
1167 -with-* | --with-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=\$ac_optarg ;;
1182
1183 -without-* | --without-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1198
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1202
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1209
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1216
1217 -*) as_fn_error "unrecognized option: \`$ac_option'
1218 Try \`$0 --help' for more information."
1219 ;;
1220
1221 *=*)
1222 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1223 # Reject names that are not valid shell variable names.
1224 case $ac_envvar in #(
1225 '' | [0-9]* | *[!_$as_cr_alnum]* )
1226 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1227 esac
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1230
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1237 ;;
1238
1239 esac
1240 done
1241
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 as_fn_error "missing argument to $ac_option"
1245 fi
1246
1247 if test -n "$ac_unrecognized_opts"; then
1248 case $enable_option_checking in
1249 no) ;;
1250 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1251 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1252 esac
1253 fi
1254
1255 # Check all directory arguments for consistency.
1256 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1257 datadir sysconfdir sharedstatedir localstatedir includedir \
1258 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1259 libdir localedir mandir
1260 do
1261 eval ac_val=\$$ac_var
1262 # Remove trailing slashes.
1263 case $ac_val in
1264 */ )
1265 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1266 eval $ac_var=\$ac_val;;
1267 esac
1268 # Be sure to have absolute directory names.
1269 case $ac_val in
1270 [\\/$]* | ?:[\\/]* ) continue;;
1271 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 esac
1273 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1338 fi
1339 else
1340 ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures this package to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1428
1429 cat <<\_ACEOF
1430
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436 X features:
1437 --x-includes=DIR X include files are in DIR
1438 --x-libraries=DIR X library files are in DIR
1439
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448
1449 cat <<\_ACEOF
1450
1451 Optional Features:
1452 --disable-option-checking ignore unrecognized --enable/--with options
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --enable-maintainer-mode enable make rules and dependencies not useful
1456 (and sometimes confusing) to the casual installer
1457 --enable-plugins Enable support for plugins (defaults no)
1458 --disable-largefile omit support for large files
1459 --enable-targets=TARGETS
1460 alternative target configurations
1461 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1462 --disable-gdbcli disable command-line interface (CLI)
1463 --disable-gdbmi disable machine-interface (MI)
1464 --enable-tui enable full-screen terminal user interface (TUI)
1465 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1466 --enable-profiling enable profiling of GDB
1467 --disable-rpath do not hardcode runtime library paths
1468 --enable-werror treat compile warnings as errors
1469 --enable-build-warnings enable build-time compiler warnings if gcc is used
1470 --enable-gdb-build-warnings
1471 enable GDB specific build-time compiler warnings if
1472 gcc is used
1473 --enable-sim link gdb with simulator
1474 --enable-multi-ice build the multi-ice-gdb-server
1475 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1476 is auto)
1477
1478 Optional Packages:
1479 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1480 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1481 --with-separate-debug-dir=PATH
1482 look for global separate debug info in this path
1483 [LIBDIR/debug]
1484 --with-gdb-datadir=PATH look for global separate data files in this path
1485 [DATADIR/gdb]
1486 --with-relocated-sources=PATH
1487 automatically relocate this path for source files
1488 --with-auto-load-safe-path=PATH
1489 directories safe to hold auto-loaded files
1490 --without-auto-load-safe-path
1491 do not restrict auto-loaded files locations
1492 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1493 --with-curses use the curses library instead of the termcap
1494 library
1495 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1496 --with-bugurl=URL Direct users to URL to report a bug
1497 --with-zlib include zlib support (auto/yes/no) default=auto
1498 --with-libiconv-prefix=DIR
1499 search for libiconv in DIR/include and DIR/lib
1500 --with-iconv-bin=PATH specify where to find the iconv program
1501 --with-system-readline use installed readline library
1502 --with-jit-reader-dir=PATH
1503 directory to load the JIT readers from
1504 --with-expat include expat support (auto/yes/no)
1505 --with-gnu-ld assume the C compiler uses GNU ld default=no
1506 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1507 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1508 --with-python[=PYTHON] include python support
1509 (auto/yes/no/<python-program>)
1510 --without-included-regex
1511 don't use included regex; this is the default on
1512 systems with version 2 of the GNU C library (use
1513 with caution on other system)
1514 --with-sysroot[=DIR] search for usr/lib et al within DIR
1515 --with-system-gdbinit=PATH
1516 automatically load a system-wide gdbinit file
1517 --with-tcl directory containing tcl configuration (tclConfig.sh)
1518 --with-tk directory containing tk configuration (tkConfig.sh)
1519 --with-x use the X Window System
1520
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1529 CPP C preprocessor
1530 MAKEINFO Parent configure detects if it is of sufficient version.
1531 MAKEINFOFLAGS
1532 Parameters for MAKEINFO.
1533 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1534 the first program found out of: `bison -y', `byacc', `yacc'.
1535 YFLAGS The list of arguments that will be passed by default to $YACC.
1536 This script will default YFLAGS to the empty string to avoid a
1537 default value of `-d' given by some make applications.
1538 XMKMF Path to xmkmf, Makefile generator for X Window System
1539
1540 Use these variables to override the choices made by `configure' or to help
1541 it to find libraries and programs with nonstandard names/locations.
1542
1543 Report bugs to the package provider.
1544 _ACEOF
1545 ac_status=$?
1546 fi
1547
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 continue
1554 ac_builddir=.
1555
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *)
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1571
1572 case $srcdir in
1573 .) # We are building in place.
1574 ac_srcdir=.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1596 else
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1600 done
1601 fi
1602
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605 cat <<\_ACEOF
1606 configure
1607 generated by GNU Autoconf 2.64
1608
1609 Copyright (C) 2009 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613 exit
1614 fi
1615
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1619
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652 fi
1653 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1654 return $ac_retval
1655
1656 } # ac_fn_c_try_compile
1657
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_cpp ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } >/dev/null && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 }; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691 return $ac_retval
1692
1693 } # ac_fn_c_try_cpp
1694
1695 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1698 # the include files in INCLUDES and setting the cache variable VAR
1699 # accordingly.
1700 ac_fn_c_check_header_mongrel ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1707 $as_echo_n "(cached) " >&6
1708 fi
1709 eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711 $as_echo "$ac_res" >&6; }
1712 else
1713 # Is the header compilable?
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1715 $as_echo_n "checking $2 usability... " >&6; }
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 $4
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 ac_header_compiler=yes
1723 else
1724 ac_header_compiler=no
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1728 $as_echo "$ac_header_compiler" >&6; }
1729
1730 # Is the header present?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1732 $as_echo_n "checking $2 presence... " >&6; }
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_cpp "$LINENO"; then :
1738 ac_header_preproc=yes
1739 else
1740 ac_header_preproc=no
1741 fi
1742 rm -f conftest.err conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1744 $as_echo "$ac_header_preproc" >&6; }
1745
1746 # So? What about this header?
1747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1748 yes:no: )
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1750 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1752 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1753 ;;
1754 no:yes:* )
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1756 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1758 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1760 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1762 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1764 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1765 ;;
1766 esac
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1768 $as_echo_n "checking for $2... " >&6; }
1769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1770 $as_echo_n "(cached) " >&6
1771 else
1772 eval "$3=\$ac_header_compiler"
1773 fi
1774 eval ac_res=\$$3
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1776 $as_echo "$ac_res" >&6; }
1777 fi
1778 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1779
1780 } # ac_fn_c_check_header_mongrel
1781
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785 # that executables *can* be run.
1786 ac_fn_c_try_run ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_link") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800 { { case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_try") 2>&5
1807 ac_status=$?
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; }; }; then :
1810 ac_retval=0
1811 else
1812 $as_echo "$as_me: program exited with status $ac_status" >&5
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816 ac_retval=$ac_status
1817 fi
1818 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1820 return $ac_retval
1821
1822 } # ac_fn_c_try_run
1823
1824 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists and can be compiled using the include files in
1827 # INCLUDES, setting the cache variable VAR accordingly.
1828 ac_fn_c_check_header_compile ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 $4
1839 #include <$2>
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 eval "$3=yes"
1843 else
1844 eval "$3=no"
1845 fi
1846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1847 fi
1848 eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850 $as_echo "$ac_res" >&6; }
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853 } # ac_fn_c_check_header_compile
1854
1855 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1856 # --------------------------------------------
1857 # Tries to find the compile-time value of EXPR in a program that includes
1858 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1859 # computed
1860 ac_fn_c_compute_int ()
1861 {
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if test "$cross_compiling" = yes; then
1864 # Depending upon the size, compute the lo and hi bounds.
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1867 $4
1868 int
1869 main ()
1870 {
1871 static int test_array [1 - 2 * !(($2) >= 0)];
1872 test_array [0] = 0
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 ac_lo=0 ac_mid=0
1880 while :; do
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 $4
1884 int
1885 main ()
1886 {
1887 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1888 test_array [0] = 0
1889
1890 ;
1891 return 0;
1892 }
1893 _ACEOF
1894 if ac_fn_c_try_compile "$LINENO"; then :
1895 ac_hi=$ac_mid; break
1896 else
1897 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1898 if test $ac_lo -le $ac_mid; then
1899 ac_lo= ac_hi=
1900 break
1901 fi
1902 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 done
1906 else
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1909 $4
1910 int
1911 main ()
1912 {
1913 static int test_array [1 - 2 * !(($2) < 0)];
1914 test_array [0] = 0
1915
1916 ;
1917 return 0;
1918 }
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_hi=-1 ac_mid=-1
1922 while :; do
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $4
1926 int
1927 main ()
1928 {
1929 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1930 test_array [0] = 0
1931
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 ac_lo=$ac_mid; break
1938 else
1939 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1940 if test $ac_mid -le $ac_hi; then
1941 ac_lo= ac_hi=
1942 break
1943 fi
1944 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 done
1948 else
1949 ac_lo= ac_hi=
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952 fi
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 # Binary search between lo and hi bounds.
1955 while test "x$ac_lo" != "x$ac_hi"; do
1956 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1959 $4
1960 int
1961 main ()
1962 {
1963 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1964 test_array [0] = 0
1965
1966 ;
1967 return 0;
1968 }
1969 _ACEOF
1970 if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_hi=$ac_mid
1972 else
1973 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 done
1977 case $ac_lo in #((
1978 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1979 '') ac_retval=1 ;;
1980 esac
1981 else
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 static long int longval () { return $2; }
1986 static unsigned long int ulongval () { return $2; }
1987 #include <stdio.h>
1988 #include <stdlib.h>
1989 int
1990 main ()
1991 {
1992
1993 FILE *f = fopen ("conftest.val", "w");
1994 if (! f)
1995 return 1;
1996 if (($2) < 0)
1997 {
1998 long int i = longval ();
1999 if (i != ($2))
2000 return 1;
2001 fprintf (f, "%ld", i);
2002 }
2003 else
2004 {
2005 unsigned long int i = ulongval ();
2006 if (i != ($2))
2007 return 1;
2008 fprintf (f, "%lu", i);
2009 }
2010 /* Do not output a trailing newline, as this causes \r\n confusion
2011 on some platforms. */
2012 return ferror (f) || fclose (f) != 0;
2013
2014 ;
2015 return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_run "$LINENO"; then :
2019 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2020 else
2021 ac_retval=1
2022 fi
2023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2024 conftest.$ac_objext conftest.beam conftest.$ac_ext
2025 rm -f conftest.val
2026
2027 fi
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 return $ac_retval
2030
2031 } # ac_fn_c_compute_int
2032
2033 # ac_fn_c_try_link LINENO
2034 # -----------------------
2035 # Try to link conftest.$ac_ext, and return whether this succeeded.
2036 ac_fn_c_try_link ()
2037 {
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 rm -f conftest.$ac_objext conftest$ac_exeext
2040 if { { ac_try="$ac_link"
2041 case "(($ac_try" in
2042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2043 *) ac_try_echo=$ac_try;;
2044 esac
2045 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2046 $as_echo "$ac_try_echo"; } >&5
2047 (eval "$ac_link") 2>conftest.err
2048 ac_status=$?
2049 if test -s conftest.err; then
2050 grep -v '^ *+' conftest.err >conftest.er1
2051 cat conftest.er1 >&5
2052 mv -f conftest.er1 conftest.err
2053 fi
2054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055 test $ac_status = 0; } && {
2056 test -z "$ac_c_werror_flag" ||
2057 test ! -s conftest.err
2058 } && test -s conftest$ac_exeext && {
2059 test "$cross_compiling" = yes ||
2060 $as_test_x conftest$ac_exeext
2061 }; then :
2062 ac_retval=0
2063 else
2064 $as_echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067 ac_retval=1
2068 fi
2069 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2070 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2071 # interfere with the next link command; also delete a directory that is
2072 # left behind by Apple's compiler. We do this before executing the actions.
2073 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2074 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2075 return $ac_retval
2076
2077 } # ac_fn_c_try_link
2078
2079 # ac_fn_c_check_func LINENO FUNC VAR
2080 # ----------------------------------
2081 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2082 ac_fn_c_check_func ()
2083 {
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2094 #define $2 innocuous_$2
2095
2096 /* System header to define __stub macros and hopefully few prototypes,
2097 which can conflict with char $2 (); below.
2098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2099 <limits.h> exists even on freestanding compilers. */
2100
2101 #ifdef __STDC__
2102 # include <limits.h>
2103 #else
2104 # include <assert.h>
2105 #endif
2106
2107 #undef $2
2108
2109 /* Override any GCC internal prototype to avoid an error.
2110 Use char because int might match the return type of a GCC
2111 builtin and then its argument prototype would still apply. */
2112 #ifdef __cplusplus
2113 extern "C"
2114 #endif
2115 char $2 ();
2116 /* The GNU C library defines this for functions which it implements
2117 to always fail with ENOSYS. Some functions are actually named
2118 something starting with __ and the normal name is an alias. */
2119 #if defined __stub_$2 || defined __stub___$2
2120 choke me
2121 #endif
2122
2123 int
2124 main ()
2125 {
2126 return $2 ();
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_link "$LINENO"; then :
2132 eval "$3=yes"
2133 else
2134 eval "$3=no"
2135 fi
2136 rm -f core conftest.err conftest.$ac_objext \
2137 conftest$ac_exeext conftest.$ac_ext
2138 fi
2139 eval ac_res=\$$3
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141 $as_echo "$ac_res" >&6; }
2142 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2143
2144 } # ac_fn_c_check_func
2145
2146 # ac_fn_c_check_decl LINENO SYMBOL VAR
2147 # ------------------------------------
2148 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2149 ac_fn_c_check_decl ()
2150 {
2151 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2152 as_decl_name=`echo $2|sed 's/ *(.*//'`
2153 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2155 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2156 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2157 $as_echo_n "(cached) " >&6
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2161 $4
2162 int
2163 main ()
2164 {
2165 #ifndef $as_decl_name
2166 #ifdef __cplusplus
2167 (void) $as_decl_use;
2168 #else
2169 (void) $as_decl_name;
2170 #endif
2171 #endif
2172
2173 ;
2174 return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 eval "$3=yes"
2179 else
2180 eval "$3=no"
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 fi
2184 eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2188
2189 } # ac_fn_c_check_decl
2190
2191 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2192 # ----------------------------------------------------
2193 # Tries to find if the field MEMBER exists in type AGGR, after including
2194 # INCLUDES, setting cache variable VAR accordingly.
2195 ac_fn_c_check_member ()
2196 {
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2199 $as_echo_n "checking for $2.$3... " >&6; }
2200 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2201 $as_echo_n "(cached) " >&6
2202 else
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2205 $5
2206 int
2207 main ()
2208 {
2209 static $2 ac_aggr;
2210 if (ac_aggr.$3)
2211 return 0;
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 if ac_fn_c_try_compile "$LINENO"; then :
2217 eval "$4=yes"
2218 else
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2221 $5
2222 int
2223 main ()
2224 {
2225 static $2 ac_aggr;
2226 if (sizeof ac_aggr.$3)
2227 return 0;
2228 ;
2229 return 0;
2230 }
2231 _ACEOF
2232 if ac_fn_c_try_compile "$LINENO"; then :
2233 eval "$4=yes"
2234 else
2235 eval "$4=no"
2236 fi
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 fi
2239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2240 fi
2241 eval ac_res=\$$4
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2243 $as_echo "$ac_res" >&6; }
2244 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2245
2246 } # ac_fn_c_check_member
2247
2248 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2249 # -------------------------------------------
2250 # Tests whether TYPE exists after having included INCLUDES, setting cache
2251 # variable VAR accordingly.
2252 ac_fn_c_check_type ()
2253 {
2254 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2256 $as_echo_n "checking for $2... " >&6; }
2257 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 eval "$3=no"
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262 /* end confdefs.h. */
2263 $4
2264 int
2265 main ()
2266 {
2267 if (sizeof ($2))
2268 return 0;
2269 ;
2270 return 0;
2271 }
2272 _ACEOF
2273 if ac_fn_c_try_compile "$LINENO"; then :
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2276 $4
2277 int
2278 main ()
2279 {
2280 if (sizeof (($2)))
2281 return 0;
2282 ;
2283 return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287
2288 else
2289 eval "$3=yes"
2290 fi
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2292 fi
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2294 fi
2295 eval ac_res=\$$3
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2299
2300 } # ac_fn_c_check_type
2301 cat >config.log <<_ACEOF
2302 This file contains any messages produced by compilers while
2303 running configure, to aid debugging if configure makes a mistake.
2304
2305 It was created by $as_me, which was
2306 generated by GNU Autoconf 2.64. Invocation command line was
2307
2308 $ $0 $@
2309
2310 _ACEOF
2311 exec 5>>config.log
2312 {
2313 cat <<_ASUNAME
2314 ## --------- ##
2315 ## Platform. ##
2316 ## --------- ##
2317
2318 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2319 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2320 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2321 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2322 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2323
2324 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2325 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2326
2327 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2328 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2329 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2330 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2331 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2332 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2333 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2334
2335 _ASUNAME
2336
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
2342 $as_echo "PATH: $as_dir"
2343 done
2344 IFS=$as_save_IFS
2345
2346 } >&5
2347
2348 cat >&5 <<_ACEOF
2349
2350
2351 ## ----------- ##
2352 ## Core tests. ##
2353 ## ----------- ##
2354
2355 _ACEOF
2356
2357
2358 # Keep a trace of the command line.
2359 # Strip out --no-create and --no-recursion so they do not pile up.
2360 # Strip out --silent because we don't want to record it for future runs.
2361 # Also quote any args containing shell meta-characters.
2362 # Make two passes to allow for proper duplicate-argument suppression.
2363 ac_configure_args=
2364 ac_configure_args0=
2365 ac_configure_args1=
2366 ac_must_keep_next=false
2367 for ac_pass in 1 2
2368 do
2369 for ac_arg
2370 do
2371 case $ac_arg in
2372 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2374 | -silent | --silent | --silen | --sile | --sil)
2375 continue ;;
2376 *\'*)
2377 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2378 esac
2379 case $ac_pass in
2380 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2381 2)
2382 as_fn_append ac_configure_args1 " '$ac_arg'"
2383 if test $ac_must_keep_next = true; then
2384 ac_must_keep_next=false # Got value, back to normal.
2385 else
2386 case $ac_arg in
2387 *=* | --config-cache | -C | -disable-* | --disable-* \
2388 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2389 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2390 | -with-* | --with-* | -without-* | --without-* | --x)
2391 case "$ac_configure_args0 " in
2392 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2393 esac
2394 ;;
2395 -* ) ac_must_keep_next=true ;;
2396 esac
2397 fi
2398 as_fn_append ac_configure_args " '$ac_arg'"
2399 ;;
2400 esac
2401 done
2402 done
2403 { ac_configure_args0=; unset ac_configure_args0;}
2404 { ac_configure_args1=; unset ac_configure_args1;}
2405
2406 # When interrupted or exit'd, cleanup temporary files, and complete
2407 # config.log. We remove comments because anyway the quotes in there
2408 # would cause problems or look ugly.
2409 # WARNING: Use '\'' to represent an apostrophe within the trap.
2410 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2411 trap 'exit_status=$?
2412 # Save into config.log some information that might help in debugging.
2413 {
2414 echo
2415
2416 cat <<\_ASBOX
2417 ## ---------------- ##
2418 ## Cache variables. ##
2419 ## ---------------- ##
2420 _ASBOX
2421 echo
2422 # The following way of writing the cache mishandles newlines in values,
2423 (
2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425 eval ac_val=\$$ac_var
2426 case $ac_val in #(
2427 *${as_nl}*)
2428 case $ac_var in #(
2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431 esac
2432 case $ac_var in #(
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435 *) { eval $ac_var=; unset $ac_var;} ;;
2436 esac ;;
2437 esac
2438 done
2439 (set) 2>&1 |
2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2442 sed -n \
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445 ;; #(
2446 *)
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 ;;
2449 esac |
2450 sort
2451 )
2452 echo
2453
2454 cat <<\_ASBOX
2455 ## ----------------- ##
2456 ## Output variables. ##
2457 ## ----------------- ##
2458 _ASBOX
2459 echo
2460 for ac_var in $ac_subst_vars
2461 do
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2469
2470 if test -n "$ac_subst_files"; then
2471 cat <<\_ASBOX
2472 ## ------------------- ##
2473 ## File substitutions. ##
2474 ## ------------------- ##
2475 _ASBOX
2476 echo
2477 for ac_var in $ac_subst_files
2478 do
2479 eval ac_val=\$$ac_var
2480 case $ac_val in
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482 esac
2483 $as_echo "$ac_var='\''$ac_val'\''"
2484 done | sort
2485 echo
2486 fi
2487
2488 if test -s confdefs.h; then
2489 cat <<\_ASBOX
2490 ## ----------- ##
2491 ## confdefs.h. ##
2492 ## ----------- ##
2493 _ASBOX
2494 echo
2495 cat confdefs.h
2496 echo
2497 fi
2498 test "$ac_signal" != 0 &&
2499 $as_echo "$as_me: caught signal $ac_signal"
2500 $as_echo "$as_me: exit $exit_status"
2501 } >&5
2502 rm -f core *.core core.conftest.* &&
2503 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2504 exit $exit_status
2505 ' 0
2506 for ac_signal in 1 2 13 15; do
2507 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2508 done
2509 ac_signal=0
2510
2511 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2512 rm -f -r conftest* confdefs.h
2513
2514 $as_echo "/* confdefs.h */" > confdefs.h
2515
2516 # Predefined preprocessor variables.
2517
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_NAME "$PACKAGE_NAME"
2520 _ACEOF
2521
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2524 _ACEOF
2525
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2528 _ACEOF
2529
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_STRING "$PACKAGE_STRING"
2532 _ACEOF
2533
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2536 _ACEOF
2537
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_URL "$PACKAGE_URL"
2540 _ACEOF
2541
2542
2543 # Let the site file select an alternate cache file if it wants to.
2544 # Prefer an explicitly selected file to automatically selected ones.
2545 ac_site_file1=NONE
2546 ac_site_file2=NONE
2547 if test -n "$CONFIG_SITE"; then
2548 ac_site_file1=$CONFIG_SITE
2549 elif test "x$prefix" != xNONE; then
2550 ac_site_file1=$prefix/share/config.site
2551 ac_site_file2=$prefix/etc/config.site
2552 else
2553 ac_site_file1=$ac_default_prefix/share/config.site
2554 ac_site_file2=$ac_default_prefix/etc/config.site
2555 fi
2556 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2557 do
2558 test "x$ac_site_file" = xNONE && continue
2559 if test -r "$ac_site_file"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2561 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2562 sed 's/^/| /' "$ac_site_file" >&5
2563 . "$ac_site_file"
2564 fi
2565 done
2566
2567 if test -r "$cache_file"; then
2568 # Some versions of bash will fail to source /dev/null (special
2569 # files actually), so we avoid doing that.
2570 if test -f "$cache_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572 $as_echo "$as_me: loading cache $cache_file" >&6;}
2573 case $cache_file in
2574 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575 *) . "./$cache_file";;
2576 esac
2577 fi
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580 $as_echo "$as_me: creating cache $cache_file" >&6;}
2581 >$cache_file
2582 fi
2583
2584 # Check that the precious variables saved in the cache have kept the same
2585 # value.
2586 ac_cache_corrupted=false
2587 for ac_var in $ac_precious_vars; do
2588 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2589 eval ac_new_set=\$ac_env_${ac_var}_set
2590 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2591 eval ac_new_val=\$ac_env_${ac_var}_value
2592 case $ac_old_set,$ac_new_set in
2593 set,)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2595 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2596 ac_cache_corrupted=: ;;
2597 ,set)
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2599 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2600 ac_cache_corrupted=: ;;
2601 ,);;
2602 *)
2603 if test "x$ac_old_val" != "x$ac_new_val"; then
2604 # differences in whitespace do not lead to failure.
2605 ac_old_val_w=`echo x $ac_old_val`
2606 ac_new_val_w=`echo x $ac_new_val`
2607 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2609 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2610 ac_cache_corrupted=:
2611 else
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2613 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2614 eval $ac_var=\$ac_old_val
2615 fi
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2617 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2619 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2620 fi;;
2621 esac
2622 # Pass precious variables to config.status.
2623 if test "$ac_new_set" = set; then
2624 case $ac_new_val in
2625 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2626 *) ac_arg=$ac_var=$ac_new_val ;;
2627 esac
2628 case " $ac_configure_args " in
2629 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2630 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2631 esac
2632 fi
2633 done
2634 if $ac_cache_corrupted; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2638 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2639 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2640 fi
2641 ## -------------------- ##
2642 ## Main body of script. ##
2643 ## -------------------- ##
2644
2645 ac_ext=c
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2650
2651
2652
2653
2654
2655 ac_config_headers="$ac_config_headers config.h:config.in"
2656
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2659 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2660 # Check whether --enable-maintainer-mode was given.
2661 if test "${enable_maintainer_mode+set}" = set; then :
2662 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2663 else
2664 USE_MAINTAINER_MODE=no
2665 fi
2666
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2668 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2669 if test $USE_MAINTAINER_MODE = yes; then
2670 MAINTAINER_MODE_TRUE=
2671 MAINTAINER_MODE_FALSE='#'
2672 else
2673 MAINTAINER_MODE_TRUE='#'
2674 MAINTAINER_MODE_FALSE=
2675 fi
2676
2677 MAINT=$MAINTAINER_MODE_TRUE
2678
2679
2680
2681 ac_ext=c
2682 ac_cpp='$CPP $CPPFLAGS'
2683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686 if test -n "$ac_tool_prefix"; then
2687 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2688 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2690 $as_echo_n "checking for $ac_word... " >&6; }
2691 if test "${ac_cv_prog_CC+set}" = set; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 if test -n "$CC"; then
2695 ac_cv_prog_CC="$CC" # Let the user override the test.
2696 else
2697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 for as_dir in $PATH
2699 do
2700 IFS=$as_save_IFS
2701 test -z "$as_dir" && as_dir=.
2702 for ac_exec_ext in '' $ac_executable_extensions; do
2703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2704 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 break 2
2707 fi
2708 done
2709 done
2710 IFS=$as_save_IFS
2711
2712 fi
2713 fi
2714 CC=$ac_cv_prog_CC
2715 if test -n "$CC"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 $as_echo "$CC" >&6; }
2718 else
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721 fi
2722
2723
2724 fi
2725 if test -z "$ac_cv_prog_CC"; then
2726 ac_ct_CC=$CC
2727 # Extract the first word of "gcc", so it can be a program name with args.
2728 set dummy gcc; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test -n "$ac_ct_CC"; then
2735 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2739 do
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 ac_cv_prog_ac_ct_CC="gcc"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2747 fi
2748 done
2749 done
2750 IFS=$as_save_IFS
2751
2752 fi
2753 fi
2754 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2755 if test -n "$ac_ct_CC"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2757 $as_echo "$ac_ct_CC" >&6; }
2758 else
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2761 fi
2762
2763 if test "x$ac_ct_CC" = x; then
2764 CC=""
2765 else
2766 case $cross_compiling:$ac_tool_warned in
2767 yes:)
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2770 ac_tool_warned=yes ;;
2771 esac
2772 CC=$ac_ct_CC
2773 fi
2774 else
2775 CC="$ac_cv_prog_CC"
2776 fi
2777
2778 if test -z "$CC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2781 set dummy ${ac_tool_prefix}cc; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CC="${ac_tool_prefix}cc"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801 done
2802 done
2803 IFS=$as_save_IFS
2804
2805 fi
2806 fi
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817 fi
2818 fi
2819 if test -z "$CC"; then
2820 # Extract the first word of "cc", so it can be a program name with args.
2821 set dummy cc; ac_word=$2
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823 $as_echo_n "checking for $ac_word... " >&6; }
2824 if test "${ac_cv_prog_CC+set}" = set; then :
2825 $as_echo_n "(cached) " >&6
2826 else
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC="$CC" # Let the user override the test.
2829 else
2830 ac_prog_rejected=no
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832 for as_dir in $PATH
2833 do
2834 IFS=$as_save_IFS
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2839 ac_prog_rejected=yes
2840 continue
2841 fi
2842 ac_cv_prog_CC="cc"
2843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2844 break 2
2845 fi
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 if test $ac_prog_rejected = yes; then
2851 # We found a bogon in the path, so make sure we never use it.
2852 set dummy $ac_cv_prog_CC
2853 shift
2854 if test $# != 0; then
2855 # We chose a different compiler from the bogus one.
2856 # However, it has the same basename, so the bogon will be chosen
2857 # first if we set CC to just the basename; use the full file name.
2858 shift
2859 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2860 fi
2861 fi
2862 fi
2863 fi
2864 CC=$ac_cv_prog_CC
2865 if test -n "$CC"; then
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2867 $as_echo "$CC" >&6; }
2868 else
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 $as_echo "no" >&6; }
2871 fi
2872
2873
2874 fi
2875 if test -z "$CC"; then
2876 if test -n "$ac_tool_prefix"; then
2877 for ac_prog in cl.exe
2878 do
2879 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2880 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if test "${ac_cv_prog_CC+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test -n "$CC"; then
2887 ac_cv_prog_CC="$CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892 IFS=$as_save_IFS
2893 test -z "$as_dir" && as_dir=.
2894 for ac_exec_ext in '' $ac_executable_extensions; do
2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898 break 2
2899 fi
2900 done
2901 done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 CC=$ac_cv_prog_CC
2907 if test -n "$CC"; then
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2909 $as_echo "$CC" >&6; }
2910 else
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915
2916 test -n "$CC" && break
2917 done
2918 fi
2919 if test -z "$CC"; then
2920 ac_ct_CC=$CC
2921 for ac_prog in cl.exe
2922 do
2923 # Extract the first word of "$ac_prog", so it can be a program name with args.
2924 set dummy $ac_prog; ac_word=$2
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926 $as_echo_n "checking for $ac_word... " >&6; }
2927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2928 $as_echo_n "(cached) " >&6
2929 else
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2932 else
2933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934 for as_dir in $PATH
2935 do
2936 IFS=$as_save_IFS
2937 test -z "$as_dir" && as_dir=.
2938 for ac_exec_ext in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_CC="$ac_prog"
2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 break 2
2943 fi
2944 done
2945 done
2946 IFS=$as_save_IFS
2947
2948 fi
2949 fi
2950 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2953 $as_echo "$ac_ct_CC" >&6; }
2954 else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956 $as_echo "no" >&6; }
2957 fi
2958
2959
2960 test -n "$ac_ct_CC" && break
2961 done
2962
2963 if test "x$ac_ct_CC" = x; then
2964 CC=""
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967 yes:)
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2969 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2970 ac_tool_warned=yes ;;
2971 esac
2972 CC=$ac_ct_CC
2973 fi
2974 fi
2975
2976 fi
2977
2978
2979 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2980 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2981 as_fn_error "no acceptable C compiler found in \$PATH
2982 See \`config.log' for more details." "$LINENO" 5; }
2983
2984 # Provide some information about the compiler.
2985 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2986 set X $ac_compile
2987 ac_compiler=$2
2988 for ac_option in --version -v -V -qversion; do
2989 { { ac_try="$ac_compiler $ac_option >&5"
2990 case "(($ac_try" in
2991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2993 esac
2994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2995 $as_echo "$ac_try_echo"; } >&5
2996 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2997 ac_status=$?
2998 if test -s conftest.err; then
2999 sed '10a\
3000 ... rest of stderr output deleted ...
3001 10q' conftest.err >conftest.er1
3002 cat conftest.er1 >&5
3003 rm -f conftest.er1 conftest.err
3004 fi
3005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }
3007 done
3008
3009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3010 /* end confdefs.h. */
3011
3012 int
3013 main ()
3014 {
3015
3016 ;
3017 return 0;
3018 }
3019 _ACEOF
3020 ac_clean_files_save=$ac_clean_files
3021 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3022 # Try to create an executable without -o first, disregard a.out.
3023 # It will help us diagnose broken compilers, and finding out an intuition
3024 # of exeext.
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3026 $as_echo_n "checking for C compiler default output file name... " >&6; }
3027 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3028
3029 # The possible output files:
3030 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3031
3032 ac_rmfiles=
3033 for ac_file in $ac_files
3034 do
3035 case $ac_file in
3036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3037 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3038 esac
3039 done
3040 rm -f $ac_rmfiles
3041
3042 if { { ac_try="$ac_link_default"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_link_default") 2>&5
3050 ac_status=$?
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }; then :
3053 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3054 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3055 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3056 # so that the user can short-circuit this test for compilers unknown to
3057 # Autoconf.
3058 for ac_file in $ac_files ''
3059 do
3060 test -f "$ac_file" || continue
3061 case $ac_file in
3062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3063 ;;
3064 [ab].out )
3065 # We found the default executable, but exeext='' is most
3066 # certainly right.
3067 break;;
3068 *.* )
3069 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3070 then :; else
3071 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072 fi
3073 # We set ac_cv_exeext here because the later test for it is not
3074 # safe: cross compilers may not add the suffix if given an `-o'
3075 # argument, so we may need to know it at that point already.
3076 # Even if this section looks crufty: it has the advantage of
3077 # actually working.
3078 break;;
3079 * )
3080 break;;
3081 esac
3082 done
3083 test "$ac_cv_exeext" = no && ac_cv_exeext=
3084
3085 else
3086 ac_file=''
3087 fi
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3089 $as_echo "$ac_file" >&6; }
3090 if test -z "$ac_file"; then :
3091 $as_echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3096 { as_fn_set_status 77
3097 as_fn_error "C compiler cannot create executables
3098 See \`config.log' for more details." "$LINENO" 5; }; }
3099 fi
3100 ac_exeext=$ac_cv_exeext
3101
3102 # Check that the compiler produces executables we can run. If not, either
3103 # the compiler is broken, or we cross compile.
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105 $as_echo_n "checking whether the C compiler works... " >&6; }
3106 # If not cross compiling, check that we can run a simple program.
3107 if test "$cross_compiling" != yes; then
3108 if { ac_try='./$ac_file'
3109 { { case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_try") 2>&5
3116 ac_status=$?
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; }; then
3119 cross_compiling=no
3120 else
3121 if test "$cross_compiling" = maybe; then
3122 cross_compiling=yes
3123 else
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error "cannot run C compiled programs.
3127 If you meant to cross compile, use \`--host'.
3128 See \`config.log' for more details." "$LINENO" 5; }
3129 fi
3130 fi
3131 fi
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3134
3135 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3136 ac_clean_files=$ac_clean_files_save
3137 # Check that the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3140 $as_echo_n "checking whether we are cross compiling... " >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3142 $as_echo "$cross_compiling" >&6; }
3143
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3145 $as_echo_n "checking for suffix of executables... " >&6; }
3146 if { { ac_try="$ac_link"
3147 case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_link") 2>&5
3154 ac_status=$?
3155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }; then :
3157 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3158 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3159 # work properly (i.e., refer to `conftest.exe'), while it won't with
3160 # `rm'.
3161 for ac_file in conftest.exe conftest conftest.*; do
3162 test -f "$ac_file" || continue
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3165 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3166 break;;
3167 * ) break;;
3168 esac
3169 done
3170 else
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error "cannot compute suffix of executables: cannot compile and link
3174 See \`config.log' for more details." "$LINENO" 5; }
3175 fi
3176 rm -f conftest$ac_cv_exeext
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3178 $as_echo "$ac_cv_exeext" >&6; }
3179
3180 rm -f conftest.$ac_ext
3181 EXEEXT=$ac_cv_exeext
3182 ac_exeext=$EXEEXT
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3184 $as_echo_n "checking for suffix of object files... " >&6; }
3185 if test "${ac_cv_objext+set}" = set; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3190
3191 int
3192 main ()
3193 {
3194
3195 ;
3196 return 0;
3197 }
3198 _ACEOF
3199 rm -f conftest.o conftest.obj
3200 if { { ac_try="$ac_compile"
3201 case "(($ac_try" in
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3204 esac
3205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3206 $as_echo "$ac_try_echo"; } >&5
3207 (eval "$ac_compile") 2>&5
3208 ac_status=$?
3209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }; then :
3211 for ac_file in conftest.o conftest.obj conftest.*; do
3212 test -f "$ac_file" || continue;
3213 case $ac_file in
3214 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3215 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3216 break;;
3217 esac
3218 done
3219 else
3220 $as_echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3222
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 as_fn_error "cannot compute suffix of object files: cannot compile
3226 See \`config.log' for more details." "$LINENO" 5; }
3227 fi
3228 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3229 fi
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3231 $as_echo "$ac_cv_objext" >&6; }
3232 OBJEXT=$ac_cv_objext
3233 ac_objext=$OBJEXT
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3235 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3236 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3238 else
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3241
3242 int
3243 main ()
3244 {
3245 #ifndef __GNUC__
3246 choke me
3247 #endif
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 if ac_fn_c_try_compile "$LINENO"; then :
3254 ac_compiler_gnu=yes
3255 else
3256 ac_compiler_gnu=no
3257 fi
3258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3260
3261 fi
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3263 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3264 if test $ac_compiler_gnu = yes; then
3265 GCC=yes
3266 else
3267 GCC=
3268 fi
3269 ac_test_CFLAGS=${CFLAGS+set}
3270 ac_save_CFLAGS=$CFLAGS
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3272 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3273 if test "${ac_cv_prog_cc_g+set}" = set; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 ac_save_c_werror_flag=$ac_c_werror_flag
3277 ac_c_werror_flag=yes
3278 ac_cv_prog_cc_g=no
3279 CFLAGS="-g"
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3282
3283 int
3284 main ()
3285 {
3286
3287 ;
3288 return 0;
3289 }
3290 _ACEOF
3291 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_cv_prog_cc_g=yes
3293 else
3294 CFLAGS=""
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3297
3298 int
3299 main ()
3300 {
3301
3302 ;
3303 return 0;
3304 }
3305 _ACEOF
3306 if ac_fn_c_try_compile "$LINENO"; then :
3307
3308 else
3309 ac_c_werror_flag=$ac_save_c_werror_flag
3310 CFLAGS="-g"
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312 /* end confdefs.h. */
3313
3314 int
3315 main ()
3316 {
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 if ac_fn_c_try_compile "$LINENO"; then :
3323 ac_cv_prog_cc_g=yes
3324 fi
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 fi
3327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 fi
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 ac_c_werror_flag=$ac_save_c_werror_flag
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3333 $as_echo "$ac_cv_prog_cc_g" >&6; }
3334 if test "$ac_test_CFLAGS" = set; then
3335 CFLAGS=$ac_save_CFLAGS
3336 elif test $ac_cv_prog_cc_g = yes; then
3337 if test "$GCC" = yes; then
3338 CFLAGS="-g -O2"
3339 else
3340 CFLAGS="-g"
3341 fi
3342 else
3343 if test "$GCC" = yes; then
3344 CFLAGS="-O2"
3345 else
3346 CFLAGS=
3347 fi
3348 fi
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3350 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3351 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 ac_cv_prog_cc_c89=no
3355 ac_save_CC=$CC
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358 #include <stdarg.h>
3359 #include <stdio.h>
3360 #include <sys/types.h>
3361 #include <sys/stat.h>
3362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3363 struct buf { int x; };
3364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3365 static char *e (p, i)
3366 char **p;
3367 int i;
3368 {
3369 return p[i];
3370 }
3371 static char *f (char * (*g) (char **, int), char **p, ...)
3372 {
3373 char *s;
3374 va_list v;
3375 va_start (v,p);
3376 s = g (p, va_arg (v,int));
3377 va_end (v);
3378 return s;
3379 }
3380
3381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3382 function prototypes and stuff, but not '\xHH' hex character constants.
3383 These don't provoke an error unfortunately, instead are silently treated
3384 as 'x'. The following induces an error, until -std is added to get
3385 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3386 array size at least. It's necessary to write '\x00'==0 to get something
3387 that's true only with -std. */
3388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3389
3390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3391 inside strings and character constants. */
3392 #define FOO(x) 'x'
3393 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3394
3395 int test (int i, double x);
3396 struct s1 {int (*f) (int a);};
3397 struct s2 {int (*f) (double a);};
3398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3399 int argc;
3400 char **argv;
3401 int
3402 main ()
3403 {
3404 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3405 ;
3406 return 0;
3407 }
3408 _ACEOF
3409 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3410 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3411 do
3412 CC="$ac_save_CC $ac_arg"
3413 if ac_fn_c_try_compile "$LINENO"; then :
3414 ac_cv_prog_cc_c89=$ac_arg
3415 fi
3416 rm -f core conftest.err conftest.$ac_objext
3417 test "x$ac_cv_prog_cc_c89" != "xno" && break
3418 done
3419 rm -f conftest.$ac_ext
3420 CC=$ac_save_CC
3421
3422 fi
3423 # AC_CACHE_VAL
3424 case "x$ac_cv_prog_cc_c89" in
3425 x)
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3427 $as_echo "none needed" >&6; } ;;
3428 xno)
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3430 $as_echo "unsupported" >&6; } ;;
3431 *)
3432 CC="$CC $ac_cv_prog_cc_c89"
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3434 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3435 esac
3436 if test "x$ac_cv_prog_cc_c89" != xno; then :
3437
3438 fi
3439
3440 ac_ext=c
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445
3446
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3454 # On Suns, sometimes $CPP names a directory.
3455 if test -n "$CPP" && test -d "$CPP"; then
3456 CPP=
3457 fi
3458 if test -z "$CPP"; then
3459 if test "${ac_cv_prog_CPP+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 # Double quotes because CPP needs to be expanded
3463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3464 do
3465 ac_preproc_ok=false
3466 for ac_c_preproc_warn_flag in '' yes
3467 do
3468 # Use a header file that comes with gcc, so configuring glibc
3469 # with a fresh cross-compiler works.
3470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471 # <limits.h> exists even on freestanding compilers.
3472 # On the NeXT, cc -E runs the code through the compiler's parser,
3473 # not just through cpp. "Syntax error" is here to catch this case.
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3476 #ifdef __STDC__
3477 # include <limits.h>
3478 #else
3479 # include <assert.h>
3480 #endif
3481 Syntax error
3482 _ACEOF
3483 if ac_fn_c_try_cpp "$LINENO"; then :
3484
3485 else
3486 # Broken: fails on valid input.
3487 continue
3488 fi
3489 rm -f conftest.err conftest.$ac_ext
3490
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495 #include <ac_nonexistent.h>
3496 _ACEOF
3497 if ac_fn_c_try_cpp "$LINENO"; then :
3498 # Broken: success on invalid input.
3499 continue
3500 else
3501 # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3504 fi
3505 rm -f conftest.err conftest.$ac_ext
3506
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then :
3511 break
3512 fi
3513
3514 done
3515 ac_cv_prog_CPP=$CPP
3516
3517 fi
3518 CPP=$ac_cv_prog_CPP
3519 else
3520 ac_cv_prog_CPP=$CPP
3521 fi
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3523 $as_echo "$CPP" >&6; }
3524 ac_preproc_ok=false
3525 for ac_c_preproc_warn_flag in '' yes
3526 do
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3535 #ifdef __STDC__
3536 # include <limits.h>
3537 #else
3538 # include <assert.h>
3539 #endif
3540 Syntax error
3541 _ACEOF
3542 if ac_fn_c_try_cpp "$LINENO"; then :
3543
3544 else
3545 # Broken: fails on valid input.
3546 continue
3547 fi
3548 rm -f conftest.err conftest.$ac_ext
3549
3550 # OK, works on sane cases. Now check whether nonexistent headers
3551 # can be detected and how.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3555 _ACEOF
3556 if ac_fn_c_try_cpp "$LINENO"; then :
3557 # Broken: success on invalid input.
3558 continue
3559 else
3560 # Passes both tests.
3561 ac_preproc_ok=:
3562 break
3563 fi
3564 rm -f conftest.err conftest.$ac_ext
3565
3566 done
3567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3568 rm -f conftest.err conftest.$ac_ext
3569 if $ac_preproc_ok; then :
3570
3571 else
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3575 See \`config.log' for more details." "$LINENO" 5; }
3576 fi
3577
3578 ac_ext=c
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583
3584
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3587 if test "${ac_cv_path_GREP+set}" = set; then :
3588 $as_echo_n "(cached) " >&6
3589 else
3590 if test -z "$GREP"; then
3591 ac_path_GREP_found=false
3592 # Loop through the user's path and test for each of PROGNAME-LIST
3593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3595 do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_prog in grep ggrep; do
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3601 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3602 # Check for GNU ac_path_GREP and select it if it is found.
3603 # Check for GNU $ac_path_GREP
3604 case `"$ac_path_GREP" --version 2>&1` in
3605 *GNU*)
3606 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3607 *)
3608 ac_count=0
3609 $as_echo_n 0123456789 >"conftest.in"
3610 while :
3611 do
3612 cat "conftest.in" "conftest.in" >"conftest.tmp"
3613 mv "conftest.tmp" "conftest.in"
3614 cp "conftest.in" "conftest.nl"
3615 $as_echo 'GREP' >> "conftest.nl"
3616 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3618 as_fn_arith $ac_count + 1 && ac_count=$as_val
3619 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3620 # Best one so far, save it but keep looking for a better one
3621 ac_cv_path_GREP="$ac_path_GREP"
3622 ac_path_GREP_max=$ac_count
3623 fi
3624 # 10*(2^10) chars as input seems more than enough
3625 test $ac_count -gt 10 && break
3626 done
3627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3628 esac
3629
3630 $ac_path_GREP_found && break 3
3631 done
3632 done
3633 done
3634 IFS=$as_save_IFS
3635 if test -z "$ac_cv_path_GREP"; then
3636 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3637 fi
3638 else
3639 ac_cv_path_GREP=$GREP
3640 fi
3641
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3644 $as_echo "$ac_cv_path_GREP" >&6; }
3645 GREP="$ac_cv_path_GREP"
3646
3647
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3649 $as_echo_n "checking for egrep... " >&6; }
3650 if test "${ac_cv_path_EGREP+set}" = set; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3654 then ac_cv_path_EGREP="$GREP -E"
3655 else
3656 if test -z "$EGREP"; then
3657 ac_path_EGREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in egrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3668 # Check for GNU ac_path_EGREP and select it if it is found.
3669 # Check for GNU $ac_path_EGREP
3670 case `"$ac_path_EGREP" --version 2>&1` in
3671 *GNU*)
3672 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3673 *)
3674 ac_count=0
3675 $as_echo_n 0123456789 >"conftest.in"
3676 while :
3677 do
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
3681 $as_echo 'EGREP' >> "conftest.nl"
3682 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684 as_fn_arith $ac_count + 1 && ac_count=$as_val
3685 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_EGREP="$ac_path_EGREP"
3688 ac_path_EGREP_max=$ac_count
3689 fi
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3692 done
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694 esac
3695
3696 $ac_path_EGREP_found && break 3
3697 done
3698 done
3699 done
3700 IFS=$as_save_IFS
3701 if test -z "$ac_cv_path_EGREP"; then
3702 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3703 fi
3704 else
3705 ac_cv_path_EGREP=$EGREP
3706 fi
3707
3708 fi
3709 fi
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3711 $as_echo "$ac_cv_path_EGREP" >&6; }
3712 EGREP="$ac_cv_path_EGREP"
3713
3714
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3716 $as_echo_n "checking for ANSI C header files... " >&6; }
3717 if test "${ac_cv_header_stdc+set}" = set; then :
3718 $as_echo_n "(cached) " >&6
3719 else
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3722 #include <stdlib.h>
3723 #include <stdarg.h>
3724 #include <string.h>
3725 #include <float.h>
3726
3727 int
3728 main ()
3729 {
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 if ac_fn_c_try_compile "$LINENO"; then :
3736 ac_cv_header_stdc=yes
3737 else
3738 ac_cv_header_stdc=no
3739 fi
3740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741
3742 if test $ac_cv_header_stdc = yes; then
3743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <string.h>
3747
3748 _ACEOF
3749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3750 $EGREP "memchr" >/dev/null 2>&1; then :
3751
3752 else
3753 ac_cv_header_stdc=no
3754 fi
3755 rm -f conftest*
3756
3757 fi
3758
3759 if test $ac_cv_header_stdc = yes; then
3760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <stdlib.h>
3764
3765 _ACEOF
3766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3767 $EGREP "free" >/dev/null 2>&1; then :
3768
3769 else
3770 ac_cv_header_stdc=no
3771 fi
3772 rm -f conftest*
3773
3774 fi
3775
3776 if test $ac_cv_header_stdc = yes; then
3777 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3778 if test "$cross_compiling" = yes; then :
3779 :
3780 else
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 #include <ctype.h>
3784 #include <stdlib.h>
3785 #if ((' ' & 0x0FF) == 0x020)
3786 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3787 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3788 #else
3789 # define ISLOWER(c) \
3790 (('a' <= (c) && (c) <= 'i') \
3791 || ('j' <= (c) && (c) <= 'r') \
3792 || ('s' <= (c) && (c) <= 'z'))
3793 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3794 #endif
3795
3796 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3797 int
3798 main ()
3799 {
3800 int i;
3801 for (i = 0; i < 256; i++)
3802 if (XOR (islower (i), ISLOWER (i))
3803 || toupper (i) != TOUPPER (i))
3804 return 2;
3805 return 0;
3806 }
3807 _ACEOF
3808 if ac_fn_c_try_run "$LINENO"; then :
3809
3810 else
3811 ac_cv_header_stdc=no
3812 fi
3813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3814 conftest.$ac_objext conftest.beam conftest.$ac_ext
3815 fi
3816
3817 fi
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3820 $as_echo "$ac_cv_header_stdc" >&6; }
3821 if test $ac_cv_header_stdc = yes; then
3822
3823 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3824
3825 fi
3826
3827 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3828 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3829 inttypes.h stdint.h unistd.h
3830 do :
3831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3832 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3833 "
3834 eval as_val=\$$as_ac_Header
3835 if test "x$as_val" = x""yes; then :
3836 cat >>confdefs.h <<_ACEOF
3837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3838 _ACEOF
3839
3840 fi
3841
3842 done
3843
3844
3845
3846 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3847 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3848 MINIX=yes
3849 else
3850 MINIX=
3851 fi
3852
3853
3854 if test "$MINIX" = yes; then
3855
3856 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3857
3858
3859 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3860
3861
3862 $as_echo "#define _MINIX 1" >>confdefs.h
3863
3864 fi
3865
3866
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3868 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3869 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874
3875 # define __EXTENSIONS__ 1
3876 $ac_includes_default
3877 int
3878 main ()
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 if ac_fn_c_try_compile "$LINENO"; then :
3886 ac_cv_safe_to_define___extensions__=yes
3887 else
3888 ac_cv_safe_to_define___extensions__=no
3889 fi
3890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891 fi
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3893 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3894 test $ac_cv_safe_to_define___extensions__ = yes &&
3895 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3896
3897 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3898
3899 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3900
3901 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3902
3903 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3904
3905
3906 ac_aux_dir=
3907 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3908 for ac_t in install-sh install.sh shtool; do
3909 if test -f "$ac_dir/$ac_t"; then
3910 ac_aux_dir=$ac_dir
3911 ac_install_sh="$ac_aux_dir/$ac_t -c"
3912 break 2
3913 fi
3914 done
3915 done
3916 if test -z "$ac_aux_dir"; then
3917 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3918 fi
3919
3920 # These three variables are undocumented and unsupported,
3921 # and are intended to be withdrawn in a future Autoconf release.
3922 # They can cause serious problems if a builder's source tree is in a directory
3923 # whose full name contains unusual characters.
3924 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3925 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3926 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3927
3928
3929 # Make sure we can run config.sub.
3930 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3931 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3932
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3934 $as_echo_n "checking build system type... " >&6; }
3935 if test "${ac_cv_build+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 ac_build_alias=$build_alias
3939 test "x$ac_build_alias" = x &&
3940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3941 test "x$ac_build_alias" = x &&
3942 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3944 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3945
3946 fi
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3948 $as_echo "$ac_cv_build" >&6; }
3949 case $ac_cv_build in
3950 *-*-*) ;;
3951 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3952 esac
3953 build=$ac_cv_build
3954 ac_save_IFS=$IFS; IFS='-'
3955 set x $ac_cv_build
3956 shift
3957 build_cpu=$1
3958 build_vendor=$2
3959 shift; shift
3960 # Remember, the first character of IFS is used to create $*,
3961 # except with old shells:
3962 build_os=$*
3963 IFS=$ac_save_IFS
3964 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3965
3966
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3968 $as_echo_n "checking host system type... " >&6; }
3969 if test "${ac_cv_host+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971 else
3972 if test "x$host_alias" = x; then
3973 ac_cv_host=$ac_cv_build
3974 else
3975 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3976 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3977 fi
3978
3979 fi
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3981 $as_echo "$ac_cv_host" >&6; }
3982 case $ac_cv_host in
3983 *-*-*) ;;
3984 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3985 esac
3986 host=$ac_cv_host
3987 ac_save_IFS=$IFS; IFS='-'
3988 set x $ac_cv_host
3989 shift
3990 host_cpu=$1
3991 host_vendor=$2
3992 shift; shift
3993 # Remember, the first character of IFS is used to create $*,
3994 # except with old shells:
3995 host_os=$*
3996 IFS=$ac_save_IFS
3997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3998
3999
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4001 $as_echo_n "checking target system type... " >&6; }
4002 if test "${ac_cv_target+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test "x$target_alias" = x; then
4006 ac_cv_target=$ac_cv_host
4007 else
4008 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4009 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4010 fi
4011
4012 fi
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4014 $as_echo "$ac_cv_target" >&6; }
4015 case $ac_cv_target in
4016 *-*-*) ;;
4017 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4018 esac
4019 target=$ac_cv_target
4020 ac_save_IFS=$IFS; IFS='-'
4021 set x $ac_cv_target
4022 shift
4023 target_cpu=$1
4024 target_vendor=$2
4025 shift; shift
4026 # Remember, the first character of IFS is used to create $*,
4027 # except with old shells:
4028 target_os=$*
4029 IFS=$ac_save_IFS
4030 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4031
4032
4033 # The aliases save the names the user supplied, while $host etc.
4034 # will get canonicalized.
4035 test -n "$target_alias" &&
4036 test "$program_prefix$program_suffix$program_transform_name" = \
4037 NONENONEs,x,x, &&
4038 program_prefix=${target_alias}-
4039
4040 # The tests for host and target for $enable_largefile require
4041 # canonical names.
4042
4043
4044
4045 # As the $enable_largefile decision depends on --enable-plugins we must set it
4046 # even in directories otherwise not depending on the $plugins option.
4047
4048
4049 # Check whether --enable-plugins was given.
4050 if test "${enable_plugins+set}" = set; then :
4051 enableval=$enable_plugins; case "${enableval}" in
4052 yes | "") plugins=yes ;;
4053 no) plugins=no ;;
4054 *) plugins=yes ;;
4055 esac
4056 else
4057 plugins=no
4058 fi
4059
4060
4061
4062 case "${host}" in
4063 sparc-*-solaris*|i[3-7]86-*-solaris*)
4064 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4065 # are mutually exclusive; and without procfs support, the bfd/ elf module
4066 # cannot provide certain routines such as elfcore_write_prpsinfo
4067 # or elfcore_write_prstatus. So unless the user explicitly requested
4068 # large-file support through the --enable-largefile switch, disable
4069 # large-file support in favor of procfs support.
4070 test "${target}" = "${host}" -a "x$plugins" = xno \
4071 && : ${enable_largefile="no"}
4072 ;;
4073 esac
4074
4075 # Check whether --enable-largefile was given.
4076 if test "${enable_largefile+set}" = set; then :
4077 enableval=$enable_largefile;
4078 fi
4079
4080 if test "$enable_largefile" != no; then
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4083 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4084 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 ac_cv_sys_largefile_CC=no
4088 if test "$GCC" != yes; then
4089 ac_save_CC=$CC
4090 while :; do
4091 # IRIX 6.2 and later do not support large files by default,
4092 # so use the C compiler's -n32 option if that helps.
4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4094 /* end confdefs.h. */
4095 #include <sys/types.h>
4096 /* Check that off_t can represent 2**63 - 1 correctly.
4097 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4098 since some C++ compilers masquerading as C compilers
4099 incorrectly reject 9223372036854775807. */
4100 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4101 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4102 && LARGE_OFF_T % 2147483647 == 1)
4103 ? 1 : -1];
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_compile "$LINENO"; then :
4113 break
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext
4116 CC="$CC -n32"
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_sys_largefile_CC=' -n32'; break
4119 fi
4120 rm -f core conftest.err conftest.$ac_objext
4121 break
4122 done
4123 CC=$ac_save_CC
4124 rm -f conftest.$ac_ext
4125 fi
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4128 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4129 if test "$ac_cv_sys_largefile_CC" != no; then
4130 CC=$CC$ac_cv_sys_largefile_CC
4131 fi
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4134 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4135 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 while :; do
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 /* Check that off_t can represent 2**63 - 1 correctly.
4143 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4144 since some C++ compilers masquerading as C compilers
4145 incorrectly reject 9223372036854775807. */
4146 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4147 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4148 && LARGE_OFF_T % 2147483647 == 1)
4149 ? 1 : -1];
4150 int
4151 main ()
4152 {
4153
4154 ;
4155 return 0;
4156 }
4157 _ACEOF
4158 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_cv_sys_file_offset_bits=no; break
4160 fi
4161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164 #define _FILE_OFFSET_BITS 64
4165 #include <sys/types.h>
4166 /* Check that off_t can represent 2**63 - 1 correctly.
4167 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4168 since some C++ compilers masquerading as C compilers
4169 incorrectly reject 9223372036854775807. */
4170 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4171 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4172 && LARGE_OFF_T % 2147483647 == 1)
4173 ? 1 : -1];
4174 int
4175 main ()
4176 {
4177
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4183 ac_cv_sys_file_offset_bits=64; break
4184 fi
4185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186 ac_cv_sys_file_offset_bits=unknown
4187 break
4188 done
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4191 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4192 case $ac_cv_sys_file_offset_bits in #(
4193 no | unknown) ;;
4194 *)
4195 cat >>confdefs.h <<_ACEOF
4196 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4197 _ACEOF
4198 ;;
4199 esac
4200 rm -rf conftest*
4201 if test $ac_cv_sys_file_offset_bits = unknown; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4203 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4204 if test "${ac_cv_sys_large_files+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 while :; do
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 #include <sys/types.h>
4211 /* Check that off_t can represent 2**63 - 1 correctly.
4212 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4213 since some C++ compilers masquerading as C compilers
4214 incorrectly reject 9223372036854775807. */
4215 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4216 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4217 && LARGE_OFF_T % 2147483647 == 1)
4218 ? 1 : -1];
4219 int
4220 main ()
4221 {
4222
4223 ;
4224 return 0;
4225 }
4226 _ACEOF
4227 if ac_fn_c_try_compile "$LINENO"; then :
4228 ac_cv_sys_large_files=no; break
4229 fi
4230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #define _LARGE_FILES 1
4234 #include <sys/types.h>
4235 /* Check that off_t can represent 2**63 - 1 correctly.
4236 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4237 since some C++ compilers masquerading as C compilers
4238 incorrectly reject 9223372036854775807. */
4239 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4240 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4241 && LARGE_OFF_T % 2147483647 == 1)
4242 ? 1 : -1];
4243 int
4244 main ()
4245 {
4246
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_sys_large_files=1; break
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 ac_cv_sys_large_files=unknown
4256 break
4257 done
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4260 $as_echo "$ac_cv_sys_large_files" >&6; }
4261 case $ac_cv_sys_large_files in #(
4262 no | unknown) ;;
4263 *)
4264 cat >>confdefs.h <<_ACEOF
4265 #define _LARGE_FILES $ac_cv_sys_large_files
4266 _ACEOF
4267 ;;
4268 esac
4269 rm -rf conftest*
4270 fi
4271 fi
4272
4273
4274
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4278 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4279 if test "${am_cv_prog_cc_stdc+set}" = set; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 am_cv_prog_cc_stdc=no
4283 ac_save_CC="$CC"
4284 # Don't try gcc -ansi; that turns off useful extensions and
4285 # breaks some systems' header files.
4286 # AIX -qlanglvl=ansi
4287 # Ultrix and OSF/1 -std1
4288 # HP-UX 10.20 and later -Ae
4289 # HP-UX older versions -Aa -D_HPUX_SOURCE
4290 # SVR4 -Xc -D__EXTENSIONS__
4291 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4292 do
4293 CC="$ac_save_CC $ac_arg"
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296 #include <stdarg.h>
4297 #include <stdio.h>
4298 #include <sys/types.h>
4299 #include <sys/stat.h>
4300 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4301 struct buf { int x; };
4302 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4303 static char *e (p, i)
4304 char **p;
4305 int i;
4306 {
4307 return p[i];
4308 }
4309 static char *f (char * (*g) (char **, int), char **p, ...)
4310 {
4311 char *s;
4312 va_list v;
4313 va_start (v,p);
4314 s = g (p, va_arg (v,int));
4315 va_end (v);
4316 return s;
4317 }
4318 int test (int i, double x);
4319 struct s1 {int (*f) (int a);};
4320 struct s2 {int (*f) (double a);};
4321 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4322 int argc;
4323 char **argv;
4324
4325 int
4326 main ()
4327 {
4328
4329 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4330
4331 ;
4332 return 0;
4333 }
4334 _ACEOF
4335 if ac_fn_c_try_compile "$LINENO"; then :
4336 am_cv_prog_cc_stdc="$ac_arg"; break
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 done
4340 CC="$ac_save_CC"
4341
4342 fi
4343
4344 if test -z "$am_cv_prog_cc_stdc"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4346 $as_echo "none needed" >&6; }
4347 else
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4349 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4350 fi
4351 case "x$am_cv_prog_cc_stdc" in
4352 x|xno) ;;
4353 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4354 esac
4355
4356
4357 ac_aux_dir=
4358 for ac_dir in .. "$srcdir"/..; do
4359 for ac_t in install-sh install.sh shtool; do
4360 if test -f "$ac_dir/$ac_t"; then
4361 ac_aux_dir=$ac_dir
4362 ac_install_sh="$ac_aux_dir/$ac_t -c"
4363 break 2
4364 fi
4365 done
4366 done
4367 if test -z "$ac_aux_dir"; then
4368 as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
4369 fi
4370
4371 # These three variables are undocumented and unsupported,
4372 # and are intended to be withdrawn in a future Autoconf release.
4373 # They can cause serious problems if a builder's source tree is in a directory
4374 # whose full name contains unusual characters.
4375 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4376 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4377 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4378
4379
4380
4381 test "$program_prefix" != NONE &&
4382 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4383 # Use a double $ so make ignores it.
4384 test "$program_suffix" != NONE &&
4385 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4386 # Double any \ or $.
4387 # By default was `s,x,x', remove it if useless.
4388 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4389 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4390
4391
4392 # Dependency checking.
4393 rm -rf .tst 2>/dev/null
4394 mkdir .tst 2>/dev/null
4395 if test -d .tst; then
4396 am__leading_dot=.
4397 else
4398 am__leading_dot=_
4399 fi
4400 rmdir .tst 2>/dev/null
4401
4402 DEPDIR="${am__leading_dot}deps"
4403
4404 ac_config_commands="$ac_config_commands depdir"
4405
4406
4407 depcc="$CC" am_compiler_list=
4408
4409 am_depcomp=$ac_aux_dir/depcomp
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4411 $as_echo_n "checking dependency style of $depcc... " >&6; }
4412 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4414 else
4415 if test -f "$am_depcomp"; then
4416 # We make a subdir and do the tests there. Otherwise we can end up
4417 # making bogus files that we don't know about and never remove. For
4418 # instance it was reported that on HP-UX the gcc test will end up
4419 # making a dummy file named `D' -- because `-MD' means `put the output
4420 # in D'.
4421 mkdir conftest.dir
4422 # Copy depcomp to subdir because otherwise we won't find it if we're
4423 # using a relative directory.
4424 cp "$am_depcomp" conftest.dir
4425 cd conftest.dir
4426 # We will build objects and dependencies in a subdirectory because
4427 # it helps to detect inapplicable dependency modes. For instance
4428 # both Tru64's cc and ICC support -MD to output dependencies as a
4429 # side effect of compilation, but ICC will put the dependencies in
4430 # the current directory while Tru64 will put them in the object
4431 # directory.
4432 mkdir sub
4433
4434 am_cv_CC_dependencies_compiler_type=none
4435 if test "$am_compiler_list" = ""; then
4436 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4437 fi
4438 for depmode in $am_compiler_list; do
4439 if test $depmode = none; then break; fi
4440
4441 $as_echo "$as_me:$LINENO: trying $depmode" >&5
4442 # Setup a source with many dependencies, because some compilers
4443 # like to wrap large dependency lists on column 80 (with \), and
4444 # we should not choose a depcomp mode which is confused by this.
4445 #
4446 # We need to recreate these files for each test, as the compiler may
4447 # overwrite some of them when testing with obscure command lines.
4448 # This happens at least with the AIX C compiler.
4449 : > sub/conftest.c
4450 for i in 1 2 3 4 5 6; do
4451 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4452 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4453 # Solaris 8's {/usr,}/bin/sh.
4454 touch sub/conftst$i.h
4455 done
4456 echo "include sub/conftest.Po" > confmf
4457
4458 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4459 # mode. It turns out that the SunPro C++ compiler does not properly
4460 # handle `-M -o', and we need to detect this.
4461 depcmd="depmode=$depmode \
4462 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4464 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
4465 echo "| $depcmd" | sed -e 's/ */ /g' >&5
4466 if env $depcmd > conftest.err 2>&1 &&
4467 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
4468 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
4469 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
4470 # icc doesn't choke on unknown options, it will just issue warnings
4471 # or remarks (even with -Werror). So we grep stderr for any message
4472 # that says an option was ignored or not supported.
4473 # When given -MP, icc 7.0 and 7.1 complain thusly:
4474 # icc: Command line warning: ignoring option '-M'; no argument required
4475 # The diagnosis changed in icc 8.0:
4476 # icc: Command line remark: option '-MP' not supported
4477 if (grep 'ignoring option' conftest.err ||
4478 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4479 am_cv_CC_dependencies_compiler_type=$depmode
4480 $as_echo "$as_me:$LINENO: success" >&5
4481 break
4482 fi
4483 fi
4484 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
4485 sed -e 's/^/| /' < conftest.err >&5
4486 done
4487
4488 cd ..
4489 rm -rf conftest.dir
4490 else
4491 am_cv_CC_dependencies_compiler_type=none
4492 fi
4493
4494 fi
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4496 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4497 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
4498 then as_fn_error "no usable dependency style found" "$LINENO" 5
4499 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4500
4501 fi
4502
4503
4504 # Check for the 'make' the user wants to use.
4505 for ac_prog in make
4506 do
4507 # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if test "${ac_cv_prog_MAKE+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4513 else
4514 if test -n "$MAKE"; then
4515 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
4516 else
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 for as_dir in $PATH
4519 do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4524 ac_cv_prog_MAKE="$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528 done
4529 done
4530 IFS=$as_save_IFS
4531
4532 fi
4533 fi
4534 MAKE=$ac_cv_prog_MAKE
4535 if test -n "$MAKE"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4537 $as_echo "$MAKE" >&6; }
4538 else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 $as_echo "no" >&6; }
4541 fi
4542
4543
4544 test -n "$MAKE" && break
4545 done
4546
4547 MAKE_IS_GNU=
4548 case "`$MAKE --version 2>&1 | sed 1q`" in
4549 *GNU*)
4550 MAKE_IS_GNU=yes
4551 ;;
4552 esac
4553 if test "$MAKE_IS_GNU" = yes; then
4554 GMAKE_TRUE=
4555 GMAKE_FALSE='#'
4556 else
4557 GMAKE_TRUE='#'
4558 GMAKE_FALSE=
4559 fi
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4562 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4563 set x ${MAKE-make}
4564 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4565 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4566 $as_echo_n "(cached) " >&6
4567 else
4568 cat >conftest.make <<\_ACEOF
4569 SHELL = /bin/sh
4570 all:
4571 @echo '@@@%%%=$(MAKE)=@@@%%%'
4572 _ACEOF
4573 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4574 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4575 *@@@%%%=?*=@@@%%%*)
4576 eval ac_cv_prog_make_${ac_make}_set=yes;;
4577 *)
4578 eval ac_cv_prog_make_${ac_make}_set=no;;
4579 esac
4580 rm -f conftest.make
4581 fi
4582 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4584 $as_echo "yes" >&6; }
4585 SET_MAKE=
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 SET_MAKE="MAKE=${MAKE-make}"
4590 fi
4591
4592
4593 # Configure gnulib. We need to build gnulib under some other
4594 # directory not "gnulib", to avoid the problem of both GDB and
4595 # GDBserver wanting to build it in the same directory, when building
4596 # in the source dir.
4597
4598 in_src="gnulib"
4599 in_build="build-gnulib"
4600
4601 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
4602 # so they do not pile up.
4603 ac_sub_configure_args=
4604 ac_prev=
4605 eval "set x $ac_configure_args"
4606 shift
4607 for ac_arg
4608 do
4609 if test -n "$ac_prev"; then
4610 ac_prev=
4611 continue
4612 fi
4613 case $ac_arg in
4614 -cache-file | --cache-file | --cache-fil | --cache-fi \
4615 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
4616 ac_prev=cache_file ;;
4617 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
4618 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
4619 | --c=*)
4620 ;;
4621 --config-cache | -C)
4622 ;;
4623 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
4624 ac_prev=srcdir ;;
4625 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
4626 ;;
4627 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
4628 ac_prev=prefix ;;
4629 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
4630 ;;
4631 --disable-option-checking)
4632 ;;
4633 *)
4634 case $ac_arg in
4635 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4636 esac
4637 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
4638 esac
4639 done
4640
4641 # Always prepend --prefix to ensure using the same prefix
4642 # in subdir configurations.
4643 ac_arg="--prefix=$prefix"
4644 case $ac_arg in
4645 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
4646 esac
4647 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
4648
4649 # Pass --silent
4650 if test "$silent" = yes; then
4651 ac_sub_configure_args="--silent $ac_sub_configure_args"
4652 fi
4653
4654 # Always prepend --disable-option-checking to silence warnings, since
4655 # different subdirs can have different --enable and --with options.
4656 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
4657
4658 ac_popdir=`pwd`
4659 ac_dir=$in_build
4660
4661 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
4663 $as_echo "$ac_msg" >&6
4664 as_dir="$ac_dir"; as_fn_mkdir_p
4665
4666 case $srcdir in
4667 [\\/]* | ?:[\\/]* )
4668 ac_srcdir=$srcdir/$in_src ;;
4669 *) # Relative name.
4670 ac_srcdir=../$srcdir/$in_src ;;
4671 esac
4672
4673 cd "$ac_dir"
4674
4675 ac_sub_configure=$ac_srcdir/configure
4676
4677 # Make the cache file name correct relative to the subdirectory.
4678 case $cache_file in
4679 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
4680 *) # Relative name.
4681 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
4682 esac
4683
4684 { $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
4685 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
4686 # The eval makes quoting arguments work.
4687 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
4688 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
4689 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
4690
4691 cd "$ac_popdir"
4692
4693
4694
4695 CONFIG_OBS=
4696 CONFIG_DEPS=
4697 CONFIG_SRCS=
4698 ENABLE_CFLAGS=
4699
4700 CONFIG_ALL=
4701 CONFIG_CLEAN=
4702 CONFIG_INSTALL=
4703 CONFIG_UNINSTALL=
4704
4705 # If we haven't got the data from the intl directory,
4706 # assume NLS is disabled.
4707 USE_NLS=no
4708 LIBINTL=
4709 LIBINTL_DEP=
4710 INCINTL=
4711 XGETTEXT=
4712 GMSGFMT=
4713 POSUB=
4714
4715 if test -f ../intl/config.intl; then
4716 . ../intl/config.intl
4717 fi
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4719 $as_echo_n "checking whether NLS is requested... " >&6; }
4720 if test x"$USE_NLS" != xyes; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4725 $as_echo "yes" >&6; }
4726
4727 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
4728
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
4731 $as_echo_n "checking for catalogs to be installed... " >&6; }
4732 # Look for .po and .gmo files in the source directory.
4733 CATALOGS=
4734 XLINGUAS=
4735 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
4736 # If there aren't any .gmo files the shell will give us the
4737 # literal string "../path/to/srcdir/po/*.gmo" which has to be
4738 # weeded out.
4739 case "$cat" in *\**)
4740 continue;;
4741 esac
4742 # The quadruple backslash is collapsed to a double backslash
4743 # by the backticks, then collapsed again by the double quotes,
4744 # leaving us with one backslash in the sed expression (right
4745 # before the dot that mustn't act as a wildcard).
4746 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
4747 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
4748 # The user is allowed to set LINGUAS to a list of languages to
4749 # install catalogs for. If it's empty that means "all of them."
4750 if test "x$LINGUAS" = x; then
4751 CATALOGS="$CATALOGS $cat"
4752 XLINGUAS="$XLINGUAS $lang"
4753 else
4754 case "$LINGUAS" in *$lang*)
4755 CATALOGS="$CATALOGS $cat"
4756 XLINGUAS="$XLINGUAS $lang"
4757 ;;
4758 esac
4759 fi
4760 done
4761 LINGUAS="$XLINGUAS"
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
4763 $as_echo "$LINGUAS" >&6; }
4764
4765
4766 DATADIRNAME=share
4767
4768 INSTOBJEXT=.mo
4769
4770 GENCAT=gencat
4771
4772 CATOBJEXT=.gmo
4773
4774 fi
4775
4776 localedir='${datadir}/locale'
4777
4778
4779 if test x"$USE_NLS" = xyes; then
4780 CONFIG_ALL="$CONFIG_ALL all-po"
4781 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
4782 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
4783 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
4784 fi
4785
4786 GNULIB=build-gnulib/import
4787
4788 # For Makefile dependencies.
4789 GNULIB_STDINT_H=
4790 if test x"$STDINT_H" != x; then
4791 GNULIB_STDINT_H=$GNULIB/$STDINT_H
4792 fi
4793
4794
4795 PACKAGE=gdb
4796
4797 cat >>confdefs.h <<_ACEOF
4798 #define PACKAGE "$PACKAGE"
4799 _ACEOF
4800
4801
4802
4803 # We never need to detect it in this sub-configure.
4804 # But preserve it for config.status --recheck.
4805
4806
4807
4808 MAKEINFO_EXTRA_FLAGS=""
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
4810 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
4811 if test "${gdb_cv_have_makeinfo_click+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 echo '@clicksequence{a @click{} b}' >conftest.texinfo
4815 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
4816 gdb_cv_have_makeinfo_click=yes
4817 else
4818 gdb_cv_have_makeinfo_click=no
4819 fi
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
4822 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
4823 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
4824 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
4825 fi
4826
4827
4828
4829
4830 # Check whether --with-separate-debug-dir was given.
4831 if test "${with_separate_debug_dir+set}" = set; then :
4832 withval=$with_separate_debug_dir;
4833 DEBUGDIR=$withval
4834 else
4835 DEBUGDIR=${libdir}/debug
4836 fi
4837
4838
4839 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4840 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4841 ac_define_dir=`eval echo $DEBUGDIR`
4842 ac_define_dir=`eval echo $ac_define_dir`
4843
4844 cat >>confdefs.h <<_ACEOF
4845 #define DEBUGDIR "$ac_define_dir"
4846 _ACEOF
4847
4848
4849
4850
4851 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4852 if test "x$prefix" = xNONE; then
4853 test_prefix=/usr/local
4854 else
4855 test_prefix=$prefix
4856 fi
4857 else
4858 test_prefix=$exec_prefix
4859 fi
4860 value=0
4861 case ${ac_define_dir} in
4862 "${test_prefix}"|"${test_prefix}/"*|\
4863 '${exec_prefix}'|'${exec_prefix}/'*)
4864 value=1
4865 ;;
4866 esac
4867
4868 cat >>confdefs.h <<_ACEOF
4869 #define DEBUGDIR_RELOCATABLE $value
4870 _ACEOF
4871
4872
4873
4874
4875 # We can't pass paths as command line arguments.
4876 # Mingw32 tries to be clever and will convert the paths for us.
4877 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
4878 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
4879 # This breaks GDB's relocatable path conversions since paths passed in
4880 # config.h would not get so translated, the path prefixes no longer match.
4881
4882 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4884 ac_define_dir=`eval echo $bindir`
4885 ac_define_dir=`eval echo $ac_define_dir`
4886
4887 cat >>confdefs.h <<_ACEOF
4888 #define BINDIR "$ac_define_dir"
4889 _ACEOF
4890
4891
4892
4893 # GDB's datadir relocation
4894
4895
4896
4897 # Check whether --with-gdb-datadir was given.
4898 if test "${with_gdb_datadir+set}" = set; then :
4899 withval=$with_gdb_datadir;
4900 GDB_DATADIR=$withval
4901 else
4902 GDB_DATADIR=${datadir}/gdb
4903 fi
4904
4905
4906 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4907 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4908 ac_define_dir=`eval echo $GDB_DATADIR`
4909 ac_define_dir=`eval echo $ac_define_dir`
4910
4911 cat >>confdefs.h <<_ACEOF
4912 #define GDB_DATADIR "$ac_define_dir"
4913 _ACEOF
4914
4915
4916
4917
4918 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
4919 if test "x$prefix" = xNONE; then
4920 test_prefix=/usr/local
4921 else
4922 test_prefix=$prefix
4923 fi
4924 else
4925 test_prefix=$exec_prefix
4926 fi
4927 value=0
4928 case ${ac_define_dir} in
4929 "${test_prefix}"|"${test_prefix}/"*|\
4930 '${exec_prefix}'|'${exec_prefix}/'*)
4931 value=1
4932 ;;
4933 esac
4934
4935 cat >>confdefs.h <<_ACEOF
4936 #define GDB_DATADIR_RELOCATABLE $value
4937 _ACEOF
4938
4939
4940
4941
4942
4943 # Check whether --with-relocated-sources was given.
4944 if test "${with_relocated_sources+set}" = set; then :
4945 withval=$with_relocated_sources; reloc_srcdir="${withval}"
4946
4947 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4949 ac_define_dir=`eval echo $reloc_srcdir`
4950 ac_define_dir=`eval echo $ac_define_dir`
4951
4952 cat >>confdefs.h <<_ACEOF
4953 #define RELOC_SRCDIR "$ac_define_dir"
4954 _ACEOF
4955
4956
4957
4958 fi
4959
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
4962 $as_echo_n "checking for default auto-load safe-path... " >&6; }
4963
4964 # Check whether --with-auto-load-safe-path was given.
4965 if test "${with_auto_load_safe_path+set}" = set; then :
4966 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
4967 with_auto_load_safe_path=""
4968 fi
4969 else
4970 with_auto_load_safe_path="$prefix"
4971 fi
4972
4973
4974 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
4975 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4976 ac_define_dir=`eval echo $with_auto_load_safe_path`
4977 ac_define_dir=`eval echo $ac_define_dir`
4978
4979 cat >>confdefs.h <<_ACEOF
4980 #define DEFAULT_AUTO_LOAD_SAFE_PATH "$ac_define_dir"
4981 _ACEOF
4982
4983
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
4985 $as_echo "$with_auto_load_safe_path" >&6; }
4986
4987
4988
4989 subdirs="$subdirs testsuite"
4990
4991
4992 # Check whether to support alternative target configurations
4993 # Check whether --enable-targets was given.
4994 if test "${enable_targets+set}" = set; then :
4995 enableval=$enable_targets; case "${enableval}" in
4996 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
4997 ;;
4998 no) enable_targets= ;;
4999 *) enable_targets=$enableval ;;
5000 esac
5001 fi
5002
5003
5004 # Check whether to enable 64-bit support on 32-bit hosts
5005 # Check whether --enable-64-bit-bfd was given.
5006 if test "${enable_64_bit_bfd+set}" = set; then :
5007 enableval=$enable_64_bit_bfd; case "${enableval}" in
5008 yes) want64=true ;;
5009 no) want64=false ;;
5010 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
5011 esac
5012 else
5013 want64=false
5014 fi
5015
5016 # Provide defaults for some variables set by the per-host and per-target
5017 # configuration.
5018 gdb_host_obs=posix-hdep.o
5019
5020 if test "${target}" = "${host}"; then
5021 gdb_native=yes
5022 else
5023 gdb_native=no
5024 fi
5025
5026 . $srcdir/configure.host
5027
5028 # Accumulate some settings from configure.tgt over all enabled targets
5029
5030 TARGET_OBS=
5031 all_targets=
5032
5033 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
5034 do
5035 if test "$targ_alias" = "all"; then
5036 all_targets=true
5037 else
5038 # Canonicalize the secondary target names.
5039 result=`$ac_config_sub $targ_alias 2>/dev/null`
5040 if test -n "$result"; then
5041 targ=$result
5042 else
5043 targ=$targ_alias
5044 fi
5045
5046 . ${srcdir}/configure.tgt
5047
5048 if test -z "${gdb_target_obs}"; then :
5049 as_fn_error "configuration ${targ} is unsupported." "$LINENO" 5
5050 fi
5051
5052 # Target-specific object files
5053 for i in ${gdb_target_obs}; do
5054 case " $TARGET_OBS " in
5055 *" ${i} "*) ;;
5056 *)
5057 TARGET_OBS="$TARGET_OBS ${i}"
5058 ;;
5059 esac
5060 done
5061
5062 # Check whether this target needs 64-bit CORE_ADDR
5063 if test x${want64} = xfalse; then
5064 . ${srcdir}/../bfd/config.bfd
5065 fi
5066 fi
5067 done
5068
5069 if test x${all_targets} = xtrue; then
5070
5071 # We want all 64-bit targets if we either:
5072 # - run on a 64-bit host or
5073 # - already require 64-bit support for some other target or
5074 # - the --enable-64-bit-bfd option was supplied
5075 # Otherwise we only support all 32-bit targets.
5076 #
5077 # NOTE: This test must be in sync with the corresponding
5078 # tests in BFD!
5079
5080 if test x${want64} = xfalse; then
5081 # The cast to long int works around a bug in the HP C Compiler
5082 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5083 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5084 # This bug is HP SR number 8606223364.
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5086 $as_echo_n "checking size of long... " >&6; }
5087 if test "${ac_cv_sizeof_long+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5091
5092 else
5093 if test "$ac_cv_type_long" = yes; then
5094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5096 { as_fn_set_status 77
5097 as_fn_error "cannot compute sizeof (long)
5098 See \`config.log' for more details." "$LINENO" 5; }; }
5099 else
5100 ac_cv_sizeof_long=0
5101 fi
5102 fi
5103
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5106 $as_echo "$ac_cv_sizeof_long" >&6; }
5107
5108
5109
5110 cat >>confdefs.h <<_ACEOF
5111 #define SIZEOF_LONG $ac_cv_sizeof_long
5112 _ACEOF
5113
5114
5115 if test "x${ac_cv_sizeof_long}" = "x8"; then
5116 want64=true
5117 fi
5118 fi
5119 if test x${want64} = xtrue; then
5120 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
5121 else
5122 TARGET_OBS='$(ALL_TARGET_OBS)'
5123 fi
5124 fi
5125
5126
5127
5128 # For other settings, only the main target counts.
5129 gdb_sim=
5130 gdb_osabi=
5131 build_gdbserver=
5132 targ=$target; . ${srcdir}/configure.tgt
5133
5134 # Fetch the default architecture and default target vector from BFD.
5135 targ=$target; . $srcdir/../bfd/config.bfd
5136
5137 # We only want the first architecture, so strip off the others if
5138 # there is more than one.
5139 targ_archs=`echo $targ_archs | sed 's/ .*//'`
5140
5141 if test "x$targ_archs" != x; then
5142
5143 cat >>confdefs.h <<_ACEOF
5144 #define DEFAULT_BFD_ARCH $targ_archs
5145 _ACEOF
5146
5147 fi
5148 if test "x$targ_defvec" != x; then
5149
5150 cat >>confdefs.h <<_ACEOF
5151 #define DEFAULT_BFD_VEC $targ_defvec
5152 _ACEOF
5153
5154 fi
5155
5156 # The CLI cannot be disabled yet, but may be in the future.
5157
5158 # Enable CLI.
5159 # Check whether --enable-gdbcli was given.
5160 if test "${enable_gdbcli+set}" = set; then :
5161 enableval=$enable_gdbcli; case $enableval in
5162 yes)
5163 ;;
5164 no)
5165 as_fn_error "the command-line interface cannot be disabled yet" "$LINENO" 5 ;;
5166 *)
5167 as_fn_error "bad value $enableval for --enable-gdbcli" "$LINENO" 5 ;;
5168 esac
5169 else
5170 enable_gdbcli=yes
5171 fi
5172
5173 if test x"$enable_gdbcli" = xyes; then
5174 if test -d $srcdir/cli; then
5175 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
5176 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
5177 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
5178 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
5179 fi
5180 fi
5181
5182 # Enable MI.
5183 # Check whether --enable-gdbmi was given.
5184 if test "${enable_gdbmi+set}" = set; then :
5185 enableval=$enable_gdbmi; case $enableval in
5186 yes | no)
5187 ;;
5188 *)
5189 as_fn_error "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
5190 esac
5191 else
5192 enable_gdbmi=yes
5193 fi
5194
5195 if test x"$enable_gdbmi" = xyes; then
5196 if test -d $srcdir/mi; then
5197 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
5198 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
5199 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
5200 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
5201 fi
5202 fi
5203
5204 # Enable TUI.
5205 # Check whether --enable-tui was given.
5206 if test "${enable_tui+set}" = set; then :
5207 enableval=$enable_tui; case $enableval in
5208 yes | no | auto)
5209 ;;
5210 *)
5211 as_fn_error "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
5212 esac
5213 else
5214 enable_tui=auto
5215 fi
5216
5217
5218 # Enable gdbtk.
5219 # Check whether --enable-gdbtk was given.
5220 if test "${enable_gdbtk+set}" = set; then :
5221 enableval=$enable_gdbtk; case $enableval in
5222 yes | no)
5223 ;;
5224 *)
5225 as_fn_error "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
5226 esac
5227 else
5228 if test -d $srcdir/gdbtk; then
5229 enable_gdbtk=yes
5230 else
5231 enable_gdbtk=no
5232 fi
5233 fi
5234
5235 # We unconditionally disable gdbtk tests on selected platforms.
5236 case $host_os in
5237 go32* | windows*)
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
5239 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
5240 enable_gdbtk=no ;;
5241 esac
5242
5243 # Libunwind support for ia64.
5244
5245
5246 # Check whether --with-libunwind-ia64 was given.
5247 if test "${with_libunwind_ia64+set}" = set; then :
5248 withval=$with_libunwind_ia64;
5249 else
5250 with_libunwind_ia64=auto
5251 fi
5252
5253
5254 # Backward compatibility option.
5255 if test "${with_libunwind+set}" = set; then
5256 if test x"$with_libunwind_ia64" != xauto; then
5257 as_fn_error "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
5260 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
5261 with_libunwind_ia64="$with_libunwind"
5262 fi
5263
5264 case "$with_libunwind_ia64" in
5265 yes | no)
5266 ;;
5267 auto)
5268 for ac_header in libunwind-ia64.h
5269 do :
5270 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5271 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5272 cat >>confdefs.h <<_ACEOF
5273 #define HAVE_LIBUNWIND_IA64_H 1
5274 _ACEOF
5275
5276 fi
5277
5278 done
5279
5280 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
5281 ;;
5282 *)
5283 as_fn_error "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
5284 ;;
5285 esac
5286
5287 if test x"$with_libunwind_ia64" = xyes; then
5288 for ac_header in libunwind-ia64.h
5289 do :
5290 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
5291 if test "x$ac_cv_header_libunwind_ia64_h" = x""yes; then :
5292 cat >>confdefs.h <<_ACEOF
5293 #define HAVE_LIBUNWIND_IA64_H 1
5294 _ACEOF
5295
5296 fi
5297
5298 done
5299
5300 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
5301 as_fn_error "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
5302 fi
5303 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
5304 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
5305 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
5306 fi
5307
5308 opt_curses=no
5309
5310 # Check whether --with-curses was given.
5311 if test "${with_curses+set}" = set; then :
5312 withval=$with_curses; opt_curses=$withval
5313 fi
5314
5315
5316 prefer_curses=no
5317 if test "$opt_curses" = "yes"; then
5318 prefer_curses=yes
5319 fi
5320
5321 # Profiling support.
5322 # Check whether --enable-profiling was given.
5323 if test "${enable_profiling+set}" = set; then :
5324 enableval=$enable_profiling; case $enableval in
5325 yes | no)
5326 ;;
5327 *)
5328 as_fn_error "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
5329 esac
5330 else
5331 enable_profiling=no
5332 fi
5333
5334
5335 for ac_func in monstartup _mcleanup
5336 do :
5337 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5338 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5339 eval as_val=\$$as_ac_var
5340 if test "x$as_val" = x""yes; then :
5341 cat >>confdefs.h <<_ACEOF
5342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5343 _ACEOF
5344
5345 fi
5346 done
5347
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
5349 $as_echo_n "checking for _etext... " >&6; }
5350 if test "${ac_cv_var__etext+set}" = set; then :
5351 $as_echo_n "(cached) " >&6
5352 else
5353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h. */
5355 #include <stdlib.h>
5356 extern char _etext;
5357
5358 int
5359 main ()
5360 {
5361 free (&_etext);
5362 ;
5363 return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_link "$LINENO"; then :
5367 ac_cv_var__etext=yes
5368 else
5369 ac_cv_var__etext=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext \
5372 conftest$ac_exeext conftest.$ac_ext
5373 fi
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
5375 $as_echo "$ac_cv_var__etext" >&6; }
5376 if test $ac_cv_var__etext = yes; then
5377
5378 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
5379
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
5382 $as_echo_n "checking for etext... " >&6; }
5383 if test "${ac_cv_var_etext+set}" = set; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 #include <stdlib.h>
5389 extern char etext;
5390
5391 int
5392 main ()
5393 {
5394 free (&etext);
5395 ;
5396 return 0;
5397 }
5398 _ACEOF
5399 if ac_fn_c_try_link "$LINENO"; then :
5400 ac_cv_var_etext=yes
5401 else
5402 ac_cv_var_etext=no
5403 fi
5404 rm -f core conftest.err conftest.$ac_objext \
5405 conftest$ac_exeext conftest.$ac_ext
5406 fi
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
5408 $as_echo "$ac_cv_var_etext" >&6; }
5409 if test $ac_cv_var_etext = yes; then
5410
5411 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
5412
5413 fi
5414 if test "$enable_profiling" = yes ; then
5415 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
5416 as_fn_error "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
5417 fi
5418 PROFILE_CFLAGS=-pg
5419 OLD_CFLAGS="$CFLAGS"
5420 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
5421
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
5423 $as_echo_n "checking whether $CC supports -pg... " >&6; }
5424 if test "${ac_cv_cc_supports_pg+set}" = set; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429
5430 int
5431 main ()
5432 {
5433 int x;
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 if ac_fn_c_try_compile "$LINENO"; then :
5439 ac_cv_cc_supports_pg=yes
5440 else
5441 ac_cv_cc_supports_pg=no
5442 fi
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 fi
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
5446 $as_echo "$ac_cv_cc_supports_pg" >&6; }
5447
5448 if test $ac_cv_cc_supports_pg = no; then
5449 as_fn_error "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
5450 fi
5451
5452 CFLAGS="$OLD_CFLAGS"
5453 fi
5454
5455
5456
5457 # Check whether --with-pkgversion was given.
5458 if test "${with_pkgversion+set}" = set; then :
5459 withval=$with_pkgversion; case "$withval" in
5460 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
5461 no) PKGVERSION= ;;
5462 *) PKGVERSION="($withval) " ;;
5463 esac
5464 else
5465 PKGVERSION="(GDB) "
5466
5467 fi
5468
5469
5470
5471
5472
5473 # Check whether --with-bugurl was given.
5474 if test "${with_bugurl+set}" = set; then :
5475 withval=$with_bugurl; case "$withval" in
5476 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
5477 no) BUGURL=
5478 ;;
5479 *) BUGURL="$withval"
5480 ;;
5481 esac
5482 else
5483 BUGURL="http://www.gnu.org/software/gdb/bugs/"
5484
5485 fi
5486
5487 case ${BUGURL} in
5488 "")
5489 REPORT_BUGS_TO=
5490 REPORT_BUGS_TEXI=
5491 ;;
5492 *)
5493 REPORT_BUGS_TO="<$BUGURL>"
5494 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
5495 ;;
5496 esac;
5497
5498
5499
5500
5501 cat >>confdefs.h <<_ACEOF
5502 #define PKGVERSION "$PKGVERSION"
5503 _ACEOF
5504
5505
5506 cat >>confdefs.h <<_ACEOF
5507 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
5508 _ACEOF
5509
5510
5511 # --------------------- #
5512 # Checks for programs. #
5513 # --------------------- #
5514
5515 for ac_prog in gawk mawk nawk awk
5516 do
5517 # Extract the first word of "$ac_prog", so it can be a program name with args.
5518 set dummy $ac_prog; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_AWK+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$AWK"; then
5525 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5529 do
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_AWK="$ac_prog"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5537 fi
5538 done
5539 done
5540 IFS=$as_save_IFS
5541
5542 fi
5543 fi
5544 AWK=$ac_cv_prog_AWK
5545 if test -n "$AWK"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5547 $as_echo "$AWK" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5552
5553
5554 test -n "$AWK" && break
5555 done
5556
5557 # Find a good install program. We prefer a C program (faster),
5558 # so one script is as good as another. But avoid the broken or
5559 # incompatible versions:
5560 # SysV /etc/install, /usr/sbin/install
5561 # SunOS /usr/etc/install
5562 # IRIX /sbin/install
5563 # AIX /bin/install
5564 # AmigaOS /C/install, which installs bootblocks on floppy discs
5565 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5566 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5567 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5568 # OS/2's system install, which has a completely different semantic
5569 # ./install, which can be erroneously created by make from ./install.sh.
5570 # Reject install programs that cannot install multiple files.
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5572 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5573 if test -z "$INSTALL"; then
5574 if test "${ac_cv_path_install+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 # Account for people who put trailing slashes in PATH elements.
5583 case $as_dir/ in #((
5584 ./ | .// | /[cC]/* | \
5585 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5586 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5587 /usr/ucb/* ) ;;
5588 *)
5589 # OSF1 and SCO ODT 3.0 have their own names for install.
5590 # Don't use installbsd from OSF since it installs stuff as root
5591 # by default.
5592 for ac_prog in ginstall scoinst install; do
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5595 if test $ac_prog = install &&
5596 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5597 # AIX install. It has an incompatible calling convention.
5598 :
5599 elif test $ac_prog = install &&
5600 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5601 # program-specific install script used by HP pwplus--don't use.
5602 :
5603 else
5604 rm -rf conftest.one conftest.two conftest.dir
5605 echo one > conftest.one
5606 echo two > conftest.two
5607 mkdir conftest.dir
5608 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5609 test -s conftest.one && test -s conftest.two &&
5610 test -s conftest.dir/conftest.one &&
5611 test -s conftest.dir/conftest.two
5612 then
5613 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5614 break 3
5615 fi
5616 fi
5617 fi
5618 done
5619 done
5620 ;;
5621 esac
5622
5623 done
5624 IFS=$as_save_IFS
5625
5626 rm -rf conftest.one conftest.two conftest.dir
5627
5628 fi
5629 if test "${ac_cv_path_install+set}" = set; then
5630 INSTALL=$ac_cv_path_install
5631 else
5632 # As a last resort, use the slow shell script. Don't cache a
5633 # value for INSTALL within a source directory, because that will
5634 # break other packages using the cache if that directory is
5635 # removed, or if the value is a relative name.
5636 INSTALL=$ac_install_sh
5637 fi
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5640 $as_echo "$INSTALL" >&6; }
5641
5642 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5643 # It thinks the first close brace ends the variable substitution.
5644 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5645
5646 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5647
5648 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5649
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5651 $as_echo_n "checking whether ln -s works... " >&6; }
5652 LN_S=$as_ln_s
5653 if test "$LN_S" = "ln -s"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5655 $as_echo "yes" >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5658 $as_echo "no, using $LN_S" >&6; }
5659 fi
5660
5661 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5663 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$RANLIB"; then
5670 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 RANLIB=$ac_cv_prog_RANLIB
5690 if test -n "$RANLIB"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5692 $as_echo "$RANLIB" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698
5699 fi
5700 if test -z "$ac_cv_prog_RANLIB"; then
5701 ac_ct_RANLIB=$RANLIB
5702 # Extract the first word of "ranlib", so it can be a program name with args.
5703 set dummy ranlib; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$ac_ct_RANLIB"; then
5710 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_ac_ct_RANLIB="ranlib"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5730 if test -n "$ac_ct_RANLIB"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5732 $as_echo "$ac_ct_RANLIB" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738 if test "x$ac_ct_RANLIB" = x; then
5739 RANLIB=":"
5740 else
5741 case $cross_compiling:$ac_tool_warned in
5742 yes:)
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745 ac_tool_warned=yes ;;
5746 esac
5747 RANLIB=$ac_ct_RANLIB
5748 fi
5749 else
5750 RANLIB="$ac_cv_prog_RANLIB"
5751 fi
5752
5753 for ac_prog in 'bison -y' byacc
5754 do
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if test "${ac_cv_prog_YACC+set}" = set; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$YACC"; then
5763 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5772 ac_cv_prog_YACC="$ac_prog"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 YACC=$ac_cv_prog_YACC
5783 if test -n "$YACC"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5785 $as_echo "$YACC" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790
5791
5792 test -n "$YACC" && break
5793 done
5794 test -n "$YACC" || YACC="yacc"
5795
5796
5797 if test -n "$ac_tool_prefix"; then
5798 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5799 set dummy ${ac_tool_prefix}ar; ac_word=$2
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5801 $as_echo_n "checking for $ac_word... " >&6; }
5802 if test "${ac_cv_prog_AR+set}" = set; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 if test -n "$AR"; then
5806 ac_cv_prog_AR="$AR" # Let the user override the test.
5807 else
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5809 for as_dir in $PATH
5810 do
5811 IFS=$as_save_IFS
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5815 ac_cv_prog_AR="${ac_tool_prefix}ar"
5816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5817 break 2
5818 fi
5819 done
5820 done
5821 IFS=$as_save_IFS
5822
5823 fi
5824 fi
5825 AR=$ac_cv_prog_AR
5826 if test -n "$AR"; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5828 $as_echo "$AR" >&6; }
5829 else
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5831 $as_echo "no" >&6; }
5832 fi
5833
5834
5835 fi
5836 if test -z "$ac_cv_prog_AR"; then
5837 ac_ct_AR=$AR
5838 # Extract the first word of "ar", so it can be a program name with args.
5839 set dummy ar; ac_word=$2
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5841 $as_echo_n "checking for $ac_word... " >&6; }
5842 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5843 $as_echo_n "(cached) " >&6
5844 else
5845 if test -n "$ac_ct_AR"; then
5846 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5847 else
5848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851 IFS=$as_save_IFS
5852 test -z "$as_dir" && as_dir=.
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855 ac_cv_prog_ac_ct_AR="ar"
5856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863 fi
5864 fi
5865 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5866 if test -n "$ac_ct_AR"; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5868 $as_echo "$ac_ct_AR" >&6; }
5869 else
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5871 $as_echo "no" >&6; }
5872 fi
5873
5874 if test "x$ac_ct_AR" = x; then
5875 AR=""
5876 else
5877 case $cross_compiling:$ac_tool_warned in
5878 yes:)
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5881 ac_tool_warned=yes ;;
5882 esac
5883 AR=$ac_ct_AR
5884 fi
5885 else
5886 AR="$ac_cv_prog_AR"
5887 fi
5888
5889 if test -n "$ac_tool_prefix"; then
5890 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 if test -n "$DLLTOOL"; then
5898 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5907 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 DLLTOOL=$ac_cv_prog_DLLTOOL
5918 if test -n "$DLLTOOL"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5920 $as_echo "$DLLTOOL" >&6; }
5921 else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5924 fi
5925
5926
5927 fi
5928 if test -z "$ac_cv_prog_DLLTOOL"; then
5929 ac_ct_DLLTOOL=$DLLTOOL
5930 # Extract the first word of "dlltool", so it can be a program name with args.
5931 set dummy dlltool; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 if test -n "$ac_ct_DLLTOOL"; then
5938 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943 IFS=$as_save_IFS
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5947 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 break 2
5950 fi
5951 done
5952 done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5958 if test -n "$ac_ct_DLLTOOL"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5960 $as_echo "$ac_ct_DLLTOOL" >&6; }
5961 else
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5964 fi
5965
5966 if test "x$ac_ct_DLLTOOL" = x; then
5967 DLLTOOL=""
5968 else
5969 case $cross_compiling:$ac_tool_warned in
5970 yes:)
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973 ac_tool_warned=yes ;;
5974 esac
5975 DLLTOOL=$ac_ct_DLLTOOL
5976 fi
5977 else
5978 DLLTOOL="$ac_cv_prog_DLLTOOL"
5979 fi
5980
5981 if test -n "$ac_tool_prefix"; then
5982 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5983 set dummy ${ac_tool_prefix}windres; ac_word=$2
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5985 $as_echo_n "checking for $ac_word... " >&6; }
5986 if test "${ac_cv_prog_WINDRES+set}" = set; then :
5987 $as_echo_n "(cached) " >&6
5988 else
5989 if test -n "$WINDRES"; then
5990 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5991 else
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995 IFS=$as_save_IFS
5996 test -z "$as_dir" && as_dir=.
5997 for ac_exec_ext in '' $ac_executable_extensions; do
5998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5999 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 break 2
6002 fi
6003 done
6004 done
6005 IFS=$as_save_IFS
6006
6007 fi
6008 fi
6009 WINDRES=$ac_cv_prog_WINDRES
6010 if test -n "$WINDRES"; then
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
6012 $as_echo "$WINDRES" >&6; }
6013 else
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6015 $as_echo "no" >&6; }
6016 fi
6017
6018
6019 fi
6020 if test -z "$ac_cv_prog_WINDRES"; then
6021 ac_ct_WINDRES=$WINDRES
6022 # Extract the first word of "windres", so it can be a program name with args.
6023 set dummy windres; ac_word=$2
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6025 $as_echo_n "checking for $ac_word... " >&6; }
6026 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 if test -n "$ac_ct_WINDRES"; then
6030 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6031 else
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6033 for as_dir in $PATH
6034 do
6035 IFS=$as_save_IFS
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_prog_ac_ct_WINDRES="windres"
6040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6041 break 2
6042 fi
6043 done
6044 done
6045 IFS=$as_save_IFS
6046
6047 fi
6048 fi
6049 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6050 if test -n "$ac_ct_WINDRES"; then
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
6052 $as_echo "$ac_ct_WINDRES" >&6; }
6053 else
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6055 $as_echo "no" >&6; }
6056 fi
6057
6058 if test "x$ac_ct_WINDRES" = x; then
6059 WINDRES=""
6060 else
6061 case $cross_compiling:$ac_tool_warned in
6062 yes:)
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6065 ac_tool_warned=yes ;;
6066 esac
6067 WINDRES=$ac_ct_WINDRES
6068 fi
6069 else
6070 WINDRES="$ac_cv_prog_WINDRES"
6071 fi
6072
6073
6074 # Needed for GNU/Hurd.
6075 if test -n "$ac_tool_prefix"; then
6076 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
6077 set dummy ${ac_tool_prefix}mig; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if test "${ac_cv_prog_MIG+set}" = set; then :
6081 $as_echo_n "(cached) " >&6
6082 else
6083 if test -n "$MIG"; then
6084 ac_cv_prog_MIG="$MIG" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089 IFS=$as_save_IFS
6090 test -z "$as_dir" && as_dir=.
6091 for ac_exec_ext in '' $ac_executable_extensions; do
6092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6093 ac_cv_prog_MIG="${ac_tool_prefix}mig"
6094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 break 2
6096 fi
6097 done
6098 done
6099 IFS=$as_save_IFS
6100
6101 fi
6102 fi
6103 MIG=$ac_cv_prog_MIG
6104 if test -n "$MIG"; then
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
6106 $as_echo "$MIG" >&6; }
6107 else
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 fi
6111
6112
6113 fi
6114 if test -z "$ac_cv_prog_MIG"; then
6115 ac_ct_MIG=$MIG
6116 # Extract the first word of "mig", so it can be a program name with args.
6117 set dummy mig; ac_word=$2
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6119 $as_echo_n "checking for $ac_word... " >&6; }
6120 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 if test -n "$ac_ct_MIG"; then
6124 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
6125 else
6126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 for as_dir in $PATH
6128 do
6129 IFS=$as_save_IFS
6130 test -z "$as_dir" && as_dir=.
6131 for ac_exec_ext in '' $ac_executable_extensions; do
6132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6133 ac_cv_prog_ac_ct_MIG="mig"
6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6135 break 2
6136 fi
6137 done
6138 done
6139 IFS=$as_save_IFS
6140
6141 fi
6142 fi
6143 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
6144 if test -n "$ac_ct_MIG"; then
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
6146 $as_echo "$ac_ct_MIG" >&6; }
6147 else
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6149 $as_echo "no" >&6; }
6150 fi
6151
6152 if test "x$ac_ct_MIG" = x; then
6153 MIG=""
6154 else
6155 case $cross_compiling:$ac_tool_warned in
6156 yes:)
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6159 ac_tool_warned=yes ;;
6160 esac
6161 MIG=$ac_ct_MIG
6162 fi
6163 else
6164 MIG="$ac_cv_prog_MIG"
6165 fi
6166
6167
6168 # ---------------------- #
6169 # Checks for libraries. #
6170 # ---------------------- #
6171
6172 # We might need to link with -lm; most simulators need it.
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6174 $as_echo_n "checking for main in -lm... " >&6; }
6175 if test "${ac_cv_lib_m_main+set}" = set; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 ac_check_lib_save_LIBS=$LIBS
6179 LIBS="-lm $LIBS"
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6181 /* end confdefs.h. */
6182
6183
6184 int
6185 main ()
6186 {
6187 return main ();
6188 ;
6189 return 0;
6190 }
6191 _ACEOF
6192 if ac_fn_c_try_link "$LINENO"; then :
6193 ac_cv_lib_m_main=yes
6194 else
6195 ac_cv_lib_m_main=no
6196 fi
6197 rm -f core conftest.err conftest.$ac_objext \
6198 conftest$ac_exeext conftest.$ac_ext
6199 LIBS=$ac_check_lib_save_LIBS
6200 fi
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6202 $as_echo "$ac_cv_lib_m_main" >&6; }
6203 if test "x$ac_cv_lib_m_main" = x""yes; then :
6204 cat >>confdefs.h <<_ACEOF
6205 #define HAVE_LIBM 1
6206 _ACEOF
6207
6208 LIBS="-lm $LIBS"
6209
6210 fi
6211
6212
6213 # We need to link with -lw to get `wctype' on Solaris before Solaris
6214 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
6215 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
6216 # is known to have this problem). Therefore we avoid libw if we can.
6217 ac_fn_c_check_func "$LINENO" "wctype" "ac_cv_func_wctype"
6218 if test "x$ac_cv_func_wctype" = x""yes; then :
6219
6220 else
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype in -lw" >&5
6222 $as_echo_n "checking for wctype in -lw... " >&6; }
6223 if test "${ac_cv_lib_w_wctype+set}" = set; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 ac_check_lib_save_LIBS=$LIBS
6227 LIBS="-lw $LIBS"
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230
6231 /* Override any GCC internal prototype to avoid an error.
6232 Use char because int might match the return type of a GCC
6233 builtin and then its argument prototype would still apply. */
6234 #ifdef __cplusplus
6235 extern "C"
6236 #endif
6237 char wctype ();
6238 int
6239 main ()
6240 {
6241 return wctype ();
6242 ;
6243 return 0;
6244 }
6245 _ACEOF
6246 if ac_fn_c_try_link "$LINENO"; then :
6247 ac_cv_lib_w_wctype=yes
6248 else
6249 ac_cv_lib_w_wctype=no
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext \
6252 conftest$ac_exeext conftest.$ac_ext
6253 LIBS=$ac_check_lib_save_LIBS
6254 fi
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_w_wctype" >&5
6256 $as_echo "$ac_cv_lib_w_wctype" >&6; }
6257 if test "x$ac_cv_lib_w_wctype" = x""yes; then :
6258 cat >>confdefs.h <<_ACEOF
6259 #define HAVE_LIBW 1
6260 _ACEOF
6261
6262 LIBS="-lw $LIBS"
6263
6264 fi
6265
6266 fi
6267
6268
6269 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
6271 $as_echo_n "checking for library containing gethostbyname... " >&6; }
6272 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 ac_func_search_save_LIBS=$LIBS
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277 /* end confdefs.h. */
6278
6279 /* Override any GCC internal prototype to avoid an error.
6280 Use char because int might match the return type of a GCC
6281 builtin and then its argument prototype would still apply. */
6282 #ifdef __cplusplus
6283 extern "C"
6284 #endif
6285 char gethostbyname ();
6286 int
6287 main ()
6288 {
6289 return gethostbyname ();
6290 ;
6291 return 0;
6292 }
6293 _ACEOF
6294 for ac_lib in '' nsl; do
6295 if test -z "$ac_lib"; then
6296 ac_res="none required"
6297 else
6298 ac_res=-l$ac_lib
6299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6300 fi
6301 if ac_fn_c_try_link "$LINENO"; then :
6302 ac_cv_search_gethostbyname=$ac_res
6303 fi
6304 rm -f core conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext
6306 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6307 break
6308 fi
6309 done
6310 if test "${ac_cv_search_gethostbyname+set}" = set; then :
6311
6312 else
6313 ac_cv_search_gethostbyname=no
6314 fi
6315 rm conftest.$ac_ext
6316 LIBS=$ac_func_search_save_LIBS
6317 fi
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
6319 $as_echo "$ac_cv_search_gethostbyname" >&6; }
6320 ac_res=$ac_cv_search_gethostbyname
6321 if test "$ac_res" != no; then :
6322 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6323
6324 fi
6325
6326
6327 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
6329 $as_echo_n "checking for library containing socketpair... " >&6; }
6330 if test "${ac_cv_search_socketpair+set}" = set; then :
6331 $as_echo_n "(cached) " >&6
6332 else
6333 ac_func_search_save_LIBS=$LIBS
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336
6337 /* Override any GCC internal prototype to avoid an error.
6338 Use char because int might match the return type of a GCC
6339 builtin and then its argument prototype would still apply. */
6340 #ifdef __cplusplus
6341 extern "C"
6342 #endif
6343 char socketpair ();
6344 int
6345 main ()
6346 {
6347 return socketpair ();
6348 ;
6349 return 0;
6350 }
6351 _ACEOF
6352 for ac_lib in '' socket; do
6353 if test -z "$ac_lib"; then
6354 ac_res="none required"
6355 else
6356 ac_res=-l$ac_lib
6357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6358 fi
6359 if ac_fn_c_try_link "$LINENO"; then :
6360 ac_cv_search_socketpair=$ac_res
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext
6364 if test "${ac_cv_search_socketpair+set}" = set; then :
6365 break
6366 fi
6367 done
6368 if test "${ac_cv_search_socketpair+set}" = set; then :
6369
6370 else
6371 ac_cv_search_socketpair=no
6372 fi
6373 rm conftest.$ac_ext
6374 LIBS=$ac_func_search_save_LIBS
6375 fi
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
6377 $as_echo "$ac_cv_search_socketpair" >&6; }
6378 ac_res=$ac_cv_search_socketpair
6379 if test "$ac_res" != no; then :
6380 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6381
6382 fi
6383
6384
6385 # Link in zlib if we can. This allows us to read compressed debug sections.
6386
6387 # See if the user specified whether he wants zlib support or not.
6388
6389 # Check whether --with-zlib was given.
6390 if test "${with_zlib+set}" = set; then :
6391 withval=$with_zlib;
6392 else
6393 with_zlib=auto
6394 fi
6395
6396
6397 if test "$with_zlib" != "no"; then
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
6399 $as_echo_n "checking for library containing zlibVersion... " >&6; }
6400 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 ac_func_search_save_LIBS=$LIBS
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406
6407 /* Override any GCC internal prototype to avoid an error.
6408 Use char because int might match the return type of a GCC
6409 builtin and then its argument prototype would still apply. */
6410 #ifdef __cplusplus
6411 extern "C"
6412 #endif
6413 char zlibVersion ();
6414 int
6415 main ()
6416 {
6417 return zlibVersion ();
6418 ;
6419 return 0;
6420 }
6421 _ACEOF
6422 for ac_lib in '' z; do
6423 if test -z "$ac_lib"; then
6424 ac_res="none required"
6425 else
6426 ac_res=-l$ac_lib
6427 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6428 fi
6429 if ac_fn_c_try_link "$LINENO"; then :
6430 ac_cv_search_zlibVersion=$ac_res
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext \
6433 conftest$ac_exeext
6434 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6435 break
6436 fi
6437 done
6438 if test "${ac_cv_search_zlibVersion+set}" = set; then :
6439
6440 else
6441 ac_cv_search_zlibVersion=no
6442 fi
6443 rm conftest.$ac_ext
6444 LIBS=$ac_func_search_save_LIBS
6445 fi
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
6447 $as_echo "$ac_cv_search_zlibVersion" >&6; }
6448 ac_res=$ac_cv_search_zlibVersion
6449 if test "$ac_res" != no; then :
6450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6451 for ac_header in zlib.h
6452 do :
6453 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6454 if test "x$ac_cv_header_zlib_h" = x""yes; then :
6455 cat >>confdefs.h <<_ACEOF
6456 #define HAVE_ZLIB_H 1
6457 _ACEOF
6458
6459 fi
6460
6461 done
6462
6463 fi
6464
6465 if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
6466 as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
6467 fi
6468 fi
6469
6470
6471 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlgetmodinfo" >&5
6473 $as_echo_n "checking for library containing dlgetmodinfo... " >&6; }
6474 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6475 $as_echo_n "(cached) " >&6
6476 else
6477 ac_func_search_save_LIBS=$LIBS
6478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h. */
6480
6481 /* Override any GCC internal prototype to avoid an error.
6482 Use char because int might match the return type of a GCC
6483 builtin and then its argument prototype would still apply. */
6484 #ifdef __cplusplus
6485 extern "C"
6486 #endif
6487 char dlgetmodinfo ();
6488 int
6489 main ()
6490 {
6491 return dlgetmodinfo ();
6492 ;
6493 return 0;
6494 }
6495 _ACEOF
6496 for ac_lib in '' dl xpdl; do
6497 if test -z "$ac_lib"; then
6498 ac_res="none required"
6499 else
6500 ac_res=-l$ac_lib
6501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6502 fi
6503 if ac_fn_c_try_link "$LINENO"; then :
6504 ac_cv_search_dlgetmodinfo=$ac_res
6505 fi
6506 rm -f core conftest.err conftest.$ac_objext \
6507 conftest$ac_exeext
6508 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6509 break
6510 fi
6511 done
6512 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then :
6513
6514 else
6515 ac_cv_search_dlgetmodinfo=no
6516 fi
6517 rm conftest.$ac_ext
6518 LIBS=$ac_func_search_save_LIBS
6519 fi
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlgetmodinfo" >&5
6521 $as_echo "$ac_cv_search_dlgetmodinfo" >&6; }
6522 ac_res=$ac_cv_search_dlgetmodinfo
6523 if test "$ac_res" != no; then :
6524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6525
6526 fi
6527
6528
6529
6530
6531
6532 # Check whether --with-libiconv-prefix was given.
6533 if test "${with_libiconv_prefix+set}" = set; then :
6534 withval=$with_libiconv_prefix;
6535 for dir in `echo "$withval" | tr : ' '`; do
6536 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; fi
6537 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; fi
6538 done
6539
6540 fi
6541
6542
6543 BUILD_LIBICONV_LIBDIRS="../libiconv/lib/.libs ../libiconv/lib/_libs"
6544 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
6545
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6547 $as_echo_n "checking for iconv... " >&6; }
6548 if test "${am_cv_func_iconv+set}" = set; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551
6552 am_cv_func_iconv="no, consider installing GNU libiconv"
6553 am_cv_lib_iconv=no
6554 am_cv_use_build_libiconv=no
6555 am_cv_build_libiconv_path=
6556
6557 # If libiconv is part of the build tree, then try using it over
6558 # any system iconv.
6559 if test -d ../libiconv; then
6560 for lib_dir in $BUILD_LIBICONV_LIBDIRS; do
6561 am_save_LIBS="$LIBS"
6562 am_save_CPPFLAGS="$CPPFLAGS"
6563 LIBS="$LIBS $lib_dir/libiconv.a"
6564 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 #include <stdlib.h>
6568 #include <iconv.h>
6569 int
6570 main ()
6571 {
6572 iconv_t cd = iconv_open("","");
6573 iconv(cd,NULL,NULL,NULL,NULL);
6574 iconv_close(cd);
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 if ac_fn_c_try_link "$LINENO"; then :
6580 am_cv_use_build_libiconv=yes
6581 am_cv_build_libiconv_path=$lib_dir/libiconv.a
6582 am_cv_lib_iconv=yes
6583 am_cv_func_iconv=yes
6584 fi
6585 rm -f core conftest.err conftest.$ac_objext \
6586 conftest$ac_exeext conftest.$ac_ext
6587 LIBS="$am_save_LIBS"
6588 CPPFLAGS="$am_save_CPPFLAGS"
6589 if test "$am_cv_use_build_libiconv" = "yes"; then
6590 break
6591 fi
6592 done
6593 fi
6594
6595 # Next, try to find iconv in libc.
6596 if test "$am_cv_func_iconv" != yes; then
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 #include <stdlib.h>
6600 #include <iconv.h>
6601 int
6602 main ()
6603 {
6604 iconv_t cd = iconv_open("","");
6605 iconv(cd,NULL,NULL,NULL,NULL);
6606 iconv_close(cd);
6607 ;
6608 return 0;
6609 }
6610 _ACEOF
6611 if ac_fn_c_try_link "$LINENO"; then :
6612 am_cv_func_iconv=yes
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext \
6615 conftest$ac_exeext conftest.$ac_ext
6616 fi
6617
6618 # If iconv was not in libc, try -liconv. In this case, arrange to
6619 # look in the libiconv prefix, if it was specified by the user.
6620 if test "$am_cv_func_iconv" != yes; then
6621 am_save_CPPFLAGS="$CPPFLAGS"
6622 am_save_LIBS="$LIBS"
6623 if test -n "$LIBICONV_INCLUDE"; then
6624 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6625 LIBS="$LIBS $LIBICONV_LIBDIR"
6626 fi
6627 LIBS="$LIBS -liconv"
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_lib_iconv=yes
6644 am_cv_func_iconv=yes
6645 fi
6646 rm -f core conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
6648 LIBS="$am_save_LIBS"
6649 CPPFLAGS="$am_save_CPPFLAGS"
6650 fi
6651
6652 fi
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6654 $as_echo "$am_cv_func_iconv" >&6; }
6655
6656 # Set the various flags based on the cache variables. We can't rely
6657 # on the flags to remain set from the above code, due to caching.
6658 LIBICONV=
6659 if test "$am_cv_lib_iconv" = yes; then
6660 LIBICONV="-liconv"
6661 else
6662 LIBICONV_LIBDIR=
6663 LIBICONV_INCLUDE=
6664 fi
6665 if test "$am_cv_use_build_libiconv" = yes; then
6666 LIBICONV="$am_cv_build_libiconv_path"
6667 LIBICONV_LIBDIR=""
6668 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
6669 fi
6670 CPPFLAGS="$CPPFLAGS $LIBICONV_INCLUDE"
6671 LIBS="$LIBS $LIBICONV_LIBDIR $LIBICONV"
6672
6673 if test "$am_cv_func_iconv" = yes; then
6674
6675 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6678 $as_echo_n "checking for iconv declaration... " >&6; }
6679 if test "${am_cv_proto_iconv+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685
6686 #include <stdlib.h>
6687 #include <iconv.h>
6688 extern
6689 #ifdef __cplusplus
6690 "C"
6691 #endif
6692 #if defined(__STDC__) || defined(__cplusplus)
6693 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6694 #else
6695 size_t iconv();
6696 #endif
6697
6698 int
6699 main ()
6700 {
6701
6702 ;
6703 return 0;
6704 }
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 am_cv_proto_iconv_arg1=""
6708 else
6709 am_cv_proto_iconv_arg1="const"
6710 fi
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 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);"
6713 fi
6714
6715 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6717 }$am_cv_proto_iconv" >&5
6718 $as_echo "${ac_t:-
6719 }$am_cv_proto_iconv" >&6; }
6720
6721 cat >>confdefs.h <<_ACEOF
6722 #define ICONV_CONST $am_cv_proto_iconv_arg1
6723 _ACEOF
6724
6725 fi
6726
6727
6728 # GDB may fork/exec the iconv program to get the list of supported character
6729 # sets. Allow the user to specify where to find it.
6730 # There are several factors affecting the choice of option name:
6731 # - There is already --with-libiconv-prefix but we can't use it, it specifies
6732 # the build-time location of libiconv files.
6733 # - The program we need to find is iconv, which comes with glibc. The user
6734 # doesn't necessarily have libiconv installed. Therefore naming this
6735 # --with-libiconv-foo feels wrong.
6736 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
6737 # defined to work on directories not files (though it really doesn't know
6738 # the difference).
6739 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
6740 # with --with-libiconv-prefix.
6741 # Putting these together is why the option name is --with-iconv-bin.
6742
6743
6744 # Check whether --with-iconv-bin was given.
6745 if test "${with_iconv_bin+set}" = set; then :
6746 withval=$with_iconv_bin; iconv_bin="${withval}"
6747
6748 cat >>confdefs.h <<_ACEOF
6749 #define ICONV_BIN "${iconv_bin}"
6750 _ACEOF
6751
6752
6753 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6754 if test "x$prefix" = xNONE; then
6755 test_prefix=/usr/local
6756 else
6757 test_prefix=$prefix
6758 fi
6759 else
6760 test_prefix=$exec_prefix
6761 fi
6762 value=0
6763 case ${iconv_bin} in
6764 "${test_prefix}"|"${test_prefix}/"*|\
6765 '${exec_prefix}'|'${exec_prefix}/'*)
6766 value=1
6767 ;;
6768 esac
6769
6770 cat >>confdefs.h <<_ACEOF
6771 #define ICONV_BIN_RELOCATABLE $value
6772 _ACEOF
6773
6774
6775
6776 fi
6777
6778
6779 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
6780 # There is a very specific comment in /usr/include/curses.h explaining that
6781 # termcap routines built into libcurses must not be used.
6782 #
6783 # The symptoms we observed so far is GDB unexpectedly changing
6784 # the terminal settings when tgetent is called - this is particularly
6785 # visible as the output is missing carriage returns, and so rapidly
6786 # becomes very hard to read.
6787 #
6788 # The readline configure script has already decided that libtermcap
6789 # was enough for its purposes, and so decided to build readline using
6790 # libtermcap. Since the TUI mode requires curses, building GDB with
6791 # TUI enabled results in both libraries to be used at the same time,
6792 # which is not allowed. This basically means that GDB with TUI is
6793 # broken on alpha-osf.
6794
6795 case $host_os in
6796 osf* )
6797 if test x"$enable_tui" = xyes; then
6798 as_fn_error "Building GDB with TUI mode is not supported on this host" "$LINENO" 5
6799 fi
6800 if test x"$enable_tui" = xauto; then
6801 enable_tui=no
6802 fi
6803 ;;
6804 esac
6805
6806 # For the TUI, we need enhanced curses functionality.
6807 if test x"$enable_tui" != xno; then
6808 prefer_curses=yes
6809 fi
6810
6811 curses_found=no
6812 if test x"$prefer_curses" = xyes; then
6813 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
6814 # curses library because the latter might not provide all the
6815 # functionality we need. However, this leads to problems on systems
6816 # where the linker searches /usr/local/lib, but the compiler doesn't
6817 # search /usr/local/include, if ncurses is installed in /usr/local. A
6818 # default installation of ncurses on alpha*-dec-osf* will lead to such
6819 # a situation.
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
6821 $as_echo_n "checking for library containing waddstr... " >&6; }
6822 if test "${ac_cv_search_waddstr+set}" = set; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 ac_func_search_save_LIBS=$LIBS
6826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827 /* end confdefs.h. */
6828
6829 /* Override any GCC internal prototype to avoid an error.
6830 Use char because int might match the return type of a GCC
6831 builtin and then its argument prototype would still apply. */
6832 #ifdef __cplusplus
6833 extern "C"
6834 #endif
6835 char waddstr ();
6836 int
6837 main ()
6838 {
6839 return waddstr ();
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 for ac_lib in '' ncurses cursesX curses; do
6845 if test -z "$ac_lib"; then
6846 ac_res="none required"
6847 else
6848 ac_res=-l$ac_lib
6849 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6850 fi
6851 if ac_fn_c_try_link "$LINENO"; then :
6852 ac_cv_search_waddstr=$ac_res
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext
6856 if test "${ac_cv_search_waddstr+set}" = set; then :
6857 break
6858 fi
6859 done
6860 if test "${ac_cv_search_waddstr+set}" = set; then :
6861
6862 else
6863 ac_cv_search_waddstr=no
6864 fi
6865 rm conftest.$ac_ext
6866 LIBS=$ac_func_search_save_LIBS
6867 fi
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
6869 $as_echo "$ac_cv_search_waddstr" >&6; }
6870 ac_res=$ac_cv_search_waddstr
6871 if test "$ac_res" != no; then :
6872 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6873
6874 fi
6875
6876
6877 if test "$ac_cv_search_waddstr" != no; then
6878 curses_found=yes
6879 fi
6880 fi
6881
6882 # Check whether we should enable the TUI, but only do so if we really
6883 # can.
6884 if test x"$enable_tui" != xno; then
6885 if test -d $srcdir/tui; then
6886 if test "$curses_found" != no; then
6887 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
6888 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
6889 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
6890 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
6891 else
6892 if test x"$enable_tui" = xyes; then
6893 as_fn_error "no enhanced curses library found; disable TUI" "$LINENO" 5
6894 else
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
6896 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
6897 fi
6898 fi
6899 fi
6900 fi
6901
6902 # Since GDB uses Readline, we need termcap functionality. In many
6903 # cases this will be provided by the curses library, but some systems
6904 # have a seperate termcap library, or no curses library at all.
6905
6906 case $host_os in
6907 cygwin*)
6908 if test -d $srcdir/libtermcap; then
6909 LIBS="../libtermcap/libtermcap.a $LIBS"
6910 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
6911 fi ;;
6912 go32* | *djgpp*)
6913 ac_cv_search_tgetent="none required"
6914 ;;
6915 *mingw32*)
6916 ac_cv_search_tgetent="none required"
6917 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
6918 ;;
6919 esac
6920
6921 # These are the libraries checked by Readline.
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
6923 $as_echo_n "checking for library containing tgetent... " >&6; }
6924 if test "${ac_cv_search_tgetent+set}" = set; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 ac_func_search_save_LIBS=$LIBS
6928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6929 /* end confdefs.h. */
6930
6931 /* Override any GCC internal prototype to avoid an error.
6932 Use char because int might match the return type of a GCC
6933 builtin and then its argument prototype would still apply. */
6934 #ifdef __cplusplus
6935 extern "C"
6936 #endif
6937 char tgetent ();
6938 int
6939 main ()
6940 {
6941 return tgetent ();
6942 ;
6943 return 0;
6944 }
6945 _ACEOF
6946 for ac_lib in '' termcap tinfo curses ncurses; do
6947 if test -z "$ac_lib"; then
6948 ac_res="none required"
6949 else
6950 ac_res=-l$ac_lib
6951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6952 fi
6953 if ac_fn_c_try_link "$LINENO"; then :
6954 ac_cv_search_tgetent=$ac_res
6955 fi
6956 rm -f core conftest.err conftest.$ac_objext \
6957 conftest$ac_exeext
6958 if test "${ac_cv_search_tgetent+set}" = set; then :
6959 break
6960 fi
6961 done
6962 if test "${ac_cv_search_tgetent+set}" = set; then :
6963
6964 else
6965 ac_cv_search_tgetent=no
6966 fi
6967 rm conftest.$ac_ext
6968 LIBS=$ac_func_search_save_LIBS
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
6971 $as_echo "$ac_cv_search_tgetent" >&6; }
6972 ac_res=$ac_cv_search_tgetent
6973 if test "$ac_res" != no; then :
6974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6975
6976 fi
6977
6978
6979 if test "$ac_cv_search_tgetent" = no; then
6980 as_fn_error "no termcap library found" "$LINENO" 5
6981 fi
6982
6983
6984 # Check whether --with-system-readline was given.
6985 if test "${with_system_readline+set}" = set; then :
6986 withval=$with_system_readline;
6987 fi
6988
6989
6990 if test "$with_system_readline" = yes; then
6991 READLINE=-lreadline
6992 READLINE_DEPS=
6993 READLINE_CFLAGS=
6994 READLINE_TEXI_INCFLAG=
6995 else
6996 READLINE='$(READLINE_DIR)/libreadline.a'
6997 READLINE_DEPS='$(READLINE)'
6998 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
6999 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
7000 fi
7001
7002
7003
7004
7005
7006 # Generate jit-reader.h
7007
7008 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
7009 TARGET_PTR=
7010
7011 # The cast to long int works around a bug in the HP C Compiler
7012 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7013 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7014 # This bug is HP SR number 8606223364.
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
7016 $as_echo_n "checking size of unsigned long long... " >&6; }
7017 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
7018 $as_echo_n "(cached) " >&6
7019 else
7020 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
7021
7022 else
7023 if test "$ac_cv_type_unsigned_long_long" = yes; then
7024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7026 { as_fn_set_status 77
7027 as_fn_error "cannot compute sizeof (unsigned long long)
7028 See \`config.log' for more details." "$LINENO" 5; }; }
7029 else
7030 ac_cv_sizeof_unsigned_long_long=0
7031 fi
7032 fi
7033
7034 fi
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
7036 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
7037
7038
7039
7040 cat >>confdefs.h <<_ACEOF
7041 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
7042 _ACEOF
7043
7044
7045 # The cast to long int works around a bug in the HP C Compiler
7046 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7047 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7048 # This bug is HP SR number 8606223364.
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
7050 $as_echo_n "checking size of unsigned long... " >&6; }
7051 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
7052 $as_echo_n "(cached) " >&6
7053 else
7054 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
7055
7056 else
7057 if test "$ac_cv_type_unsigned_long" = yes; then
7058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7060 { as_fn_set_status 77
7061 as_fn_error "cannot compute sizeof (unsigned long)
7062 See \`config.log' for more details." "$LINENO" 5; }; }
7063 else
7064 ac_cv_sizeof_unsigned_long=0
7065 fi
7066 fi
7067
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
7070 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
7071
7072
7073
7074 cat >>confdefs.h <<_ACEOF
7075 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7076 _ACEOF
7077
7078
7079 # The cast to long int works around a bug in the HP C Compiler
7080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7082 # This bug is HP SR number 8606223364.
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
7084 $as_echo_n "checking size of unsigned __int128... " >&6; }
7085 if test "${ac_cv_sizeof_unsigned___int128+set}" = set; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
7089
7090 else
7091 if test "$ac_cv_type_unsigned___int128" = yes; then
7092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7094 { as_fn_set_status 77
7095 as_fn_error "cannot compute sizeof (unsigned __int128)
7096 See \`config.log' for more details." "$LINENO" 5; }; }
7097 else
7098 ac_cv_sizeof_unsigned___int128=0
7099 fi
7100 fi
7101
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
7104 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
7105
7106
7107
7108 cat >>confdefs.h <<_ACEOF
7109 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
7110 _ACEOF
7111
7112
7113
7114 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
7115 TARGET_PTR="unsigned long"
7116 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
7117 TARGET_PTR="unsigned long long"
7118 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
7119 TARGET_PTR="unsigned __int128"
7120 else
7121 TARGET_PTR="unsigned long"
7122 fi
7123
7124
7125 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
7126
7127
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7129 $as_echo_n "checking for library containing dlopen... " >&6; }
7130 if test "${ac_cv_search_dlopen+set}" = set; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7133 ac_func_search_save_LIBS=$LIBS
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135 /* end confdefs.h. */
7136
7137 /* Override any GCC internal prototype to avoid an error.
7138 Use char because int might match the return type of a GCC
7139 builtin and then its argument prototype would still apply. */
7140 #ifdef __cplusplus
7141 extern "C"
7142 #endif
7143 char dlopen ();
7144 int
7145 main ()
7146 {
7147 return dlopen ();
7148 ;
7149 return 0;
7150 }
7151 _ACEOF
7152 for ac_lib in '' dl; do
7153 if test -z "$ac_lib"; then
7154 ac_res="none required"
7155 else
7156 ac_res=-l$ac_lib
7157 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7158 fi
7159 if ac_fn_c_try_link "$LINENO"; then :
7160 ac_cv_search_dlopen=$ac_res
7161 fi
7162 rm -f core conftest.err conftest.$ac_objext \
7163 conftest$ac_exeext
7164 if test "${ac_cv_search_dlopen+set}" = set; then :
7165 break
7166 fi
7167 done
7168 if test "${ac_cv_search_dlopen+set}" = set; then :
7169
7170 else
7171 ac_cv_search_dlopen=no
7172 fi
7173 rm conftest.$ac_ext
7174 LIBS=$ac_func_search_save_LIBS
7175 fi
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7177 $as_echo "$ac_cv_search_dlopen" >&6; }
7178 ac_res=$ac_cv_search_dlopen
7179 if test "$ac_res" != no; then :
7180 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7181
7182 fi
7183
7184
7185
7186
7187 # Check whether --with-jit-reader-dir was given.
7188 if test "${with_jit_reader_dir+set}" = set; then :
7189 withval=$with_jit_reader_dir;
7190 JIT_READER_DIR=$withval
7191 else
7192 JIT_READER_DIR=${libdir}/gdb
7193 fi
7194
7195
7196 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7197 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7198 ac_define_dir=`eval echo $JIT_READER_DIR`
7199 ac_define_dir=`eval echo $ac_define_dir`
7200
7201 cat >>confdefs.h <<_ACEOF
7202 #define JIT_READER_DIR "$ac_define_dir"
7203 _ACEOF
7204
7205
7206
7207
7208 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7209 if test "x$prefix" = xNONE; then
7210 test_prefix=/usr/local
7211 else
7212 test_prefix=$prefix
7213 fi
7214 else
7215 test_prefix=$exec_prefix
7216 fi
7217 value=0
7218 case ${ac_define_dir} in
7219 "${test_prefix}"|"${test_prefix}/"*|\
7220 '${exec_prefix}'|'${exec_prefix}/'*)
7221 value=1
7222 ;;
7223 esac
7224
7225 cat >>confdefs.h <<_ACEOF
7226 #define JIT_READER_DIR_RELOCATABLE $value
7227 _ACEOF
7228
7229
7230
7231
7232
7233 # Check whether --with-expat was given.
7234 if test "${with_expat+set}" = set; then :
7235 withval=$with_expat;
7236 else
7237 with_expat=auto
7238 fi
7239
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
7241 $as_echo_n "checking whether to use expat... " >&6; }
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
7243 $as_echo "$with_expat" >&6; }
7244
7245 if test "${with_expat}" = no; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
7247 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
7248 HAVE_LIBEXPAT=no
7249 else
7250
7251 if test "X$prefix" = "XNONE"; then
7252 acl_final_prefix="$ac_default_prefix"
7253 else
7254 acl_final_prefix="$prefix"
7255 fi
7256 if test "X$exec_prefix" = "XNONE"; then
7257 acl_final_exec_prefix='${prefix}'
7258 else
7259 acl_final_exec_prefix="$exec_prefix"
7260 fi
7261 acl_save_prefix="$prefix"
7262 prefix="$acl_final_prefix"
7263 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7264 prefix="$acl_save_prefix"
7265
7266
7267 # Check whether --with-gnu-ld was given.
7268 if test "${with_gnu_ld+set}" = set; then :
7269 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7270 else
7271 with_gnu_ld=no
7272 fi
7273
7274 # Prepare PATH_SEPARATOR.
7275 # The user is always right.
7276 if test "${PATH_SEPARATOR+set}" != set; then
7277 echo "#! /bin/sh" >conf$$.sh
7278 echo "exit 0" >>conf$$.sh
7279 chmod +x conf$$.sh
7280 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7281 PATH_SEPARATOR=';'
7282 else
7283 PATH_SEPARATOR=:
7284 fi
7285 rm -f conf$$.sh
7286 fi
7287 ac_prog=ld
7288 if test "$GCC" = yes; then
7289 # Check if gcc -print-prog-name=ld gives a path.
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
7291 $as_echo_n "checking for ld used by GCC... " >&6; }
7292 case $host in
7293 *-*-mingw*)
7294 # gcc leaves a trailing carriage return which upsets mingw
7295 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7296 *)
7297 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7298 esac
7299 case $ac_prog in
7300 # Accept absolute paths.
7301 [\\/]* | [A-Za-z]:[\\/]*)
7302 re_direlt='/[^/][^/]*/\.\./'
7303 # Canonicalize the path of ld
7304 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7305 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7306 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7307 done
7308 test -z "$LD" && LD="$ac_prog"
7309 ;;
7310 "")
7311 # If it fails, then pretend we aren't using GCC.
7312 ac_prog=ld
7313 ;;
7314 *)
7315 # If it is relative, then search for the first ld in PATH.
7316 with_gnu_ld=unknown
7317 ;;
7318 esac
7319 elif test "$with_gnu_ld" = yes; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7321 $as_echo_n "checking for GNU ld... " >&6; }
7322 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7324 $as_echo_n "checking for non-GNU ld... " >&6; }
7325 fi
7326 if test "${acl_cv_path_LD+set}" = set; then :
7327 $as_echo_n "(cached) " >&6
7328 else
7329 if test -z "$LD"; then
7330 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7331 for ac_dir in $PATH; do
7332 test -z "$ac_dir" && ac_dir=.
7333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7334 acl_cv_path_LD="$ac_dir/$ac_prog"
7335 # Check to see if the program is GNU ld. I'd rather use --version,
7336 # but apparently some GNU ld's only accept -v.
7337 # Break only if it was the GNU/non-GNU ld that we prefer.
7338 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7339 test "$with_gnu_ld" != no && break
7340 else
7341 test "$with_gnu_ld" != yes && break
7342 fi
7343 fi
7344 done
7345 IFS="$ac_save_ifs"
7346 else
7347 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7348 fi
7349 fi
7350
7351 LD="$acl_cv_path_LD"
7352 if test -n "$LD"; then
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7354 $as_echo "$LD" >&6; }
7355 else
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7361 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7362 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
7363 $as_echo_n "(cached) " >&6
7364 else
7365 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7366 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7367 acl_cv_prog_gnu_ld=yes
7368 else
7369 acl_cv_prog_gnu_ld=no
7370 fi
7371 fi
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7373 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7374 with_gnu_ld=$acl_cv_prog_gnu_ld
7375
7376
7377
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7379 $as_echo_n "checking for shared library run path origin... " >&6; }
7380 if test "${acl_cv_rpath+set}" = set; then :
7381 $as_echo_n "(cached) " >&6
7382 else
7383
7384 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7385 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7386 . ./conftest.sh
7387 rm -f ./conftest.sh
7388 acl_cv_rpath=done
7389
7390 fi
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7392 $as_echo "$acl_cv_rpath" >&6; }
7393 wl="$acl_cv_wl"
7394 libext="$acl_cv_libext"
7395 shlibext="$acl_cv_shlibext"
7396 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7397 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7398 hardcode_direct="$acl_cv_hardcode_direct"
7399 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7400 # Check whether --enable-rpath was given.
7401 if test "${enable_rpath+set}" = set; then :
7402 enableval=$enable_rpath; :
7403 else
7404 enable_rpath=yes
7405 fi
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416 use_additional=yes
7417
7418 acl_save_prefix="$prefix"
7419 prefix="$acl_final_prefix"
7420 acl_save_exec_prefix="$exec_prefix"
7421 exec_prefix="$acl_final_exec_prefix"
7422
7423 eval additional_includedir=\"$includedir\"
7424 eval additional_libdir=\"$libdir\"
7425
7426 exec_prefix="$acl_save_exec_prefix"
7427 prefix="$acl_save_prefix"
7428
7429
7430 # Check whether --with-libexpat-prefix was given.
7431 if test "${with_libexpat_prefix+set}" = set; then :
7432 withval=$with_libexpat_prefix;
7433 if test "X$withval" = "Xno"; then
7434 use_additional=no
7435 else
7436 if test "X$withval" = "X"; then
7437
7438 acl_save_prefix="$prefix"
7439 prefix="$acl_final_prefix"
7440 acl_save_exec_prefix="$exec_prefix"
7441 exec_prefix="$acl_final_exec_prefix"
7442
7443 eval additional_includedir=\"$includedir\"
7444 eval additional_libdir=\"$libdir\"
7445
7446 exec_prefix="$acl_save_exec_prefix"
7447 prefix="$acl_save_prefix"
7448
7449 else
7450 additional_includedir="$withval/include"
7451 additional_libdir="$withval/lib"
7452 fi
7453 fi
7454
7455 fi
7456
7457 LIBEXPAT=
7458 LTLIBEXPAT=
7459 INCEXPAT=
7460 rpathdirs=
7461 ltrpathdirs=
7462 names_already_handled=
7463 names_next_round='expat '
7464 while test -n "$names_next_round"; do
7465 names_this_round="$names_next_round"
7466 names_next_round=
7467 for name in $names_this_round; do
7468 already_handled=
7469 for n in $names_already_handled; do
7470 if test "$n" = "$name"; then
7471 already_handled=yes
7472 break
7473 fi
7474 done
7475 if test -z "$already_handled"; then
7476 names_already_handled="$names_already_handled $name"
7477 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7478 eval value=\"\$HAVE_LIB$uppername\"
7479 if test -n "$value"; then
7480 if test "$value" = yes; then
7481 eval value=\"\$LIB$uppername\"
7482 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
7483 eval value=\"\$LTLIB$uppername\"
7484 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
7485 else
7486 :
7487 fi
7488 else
7489 found_dir=
7490 found_la=
7491 found_so=
7492 found_a=
7493 if test $use_additional = yes; then
7494 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7495 found_dir="$additional_libdir"
7496 found_so="$additional_libdir/lib$name.$shlibext"
7497 if test -f "$additional_libdir/lib$name.la"; then
7498 found_la="$additional_libdir/lib$name.la"
7499 fi
7500 else
7501 if test -f "$additional_libdir/lib$name.$libext"; then
7502 found_dir="$additional_libdir"
7503 found_a="$additional_libdir/lib$name.$libext"
7504 if test -f "$additional_libdir/lib$name.la"; then
7505 found_la="$additional_libdir/lib$name.la"
7506 fi
7507 fi
7508 fi
7509 fi
7510 if test "X$found_dir" = "X"; then
7511 for x in $LDFLAGS $LTLIBEXPAT; do
7512
7513 acl_save_prefix="$prefix"
7514 prefix="$acl_final_prefix"
7515 acl_save_exec_prefix="$exec_prefix"
7516 exec_prefix="$acl_final_exec_prefix"
7517 eval x=\"$x\"
7518 exec_prefix="$acl_save_exec_prefix"
7519 prefix="$acl_save_prefix"
7520
7521 case "$x" in
7522 -L*)
7523 dir=`echo "X$x" | sed -e 's/^X-L//'`
7524 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7525 found_dir="$dir"
7526 found_so="$dir/lib$name.$shlibext"
7527 if test -f "$dir/lib$name.la"; then
7528 found_la="$dir/lib$name.la"
7529 fi
7530 else
7531 if test -f "$dir/lib$name.$libext"; then
7532 found_dir="$dir"
7533 found_a="$dir/lib$name.$libext"
7534 if test -f "$dir/lib$name.la"; then
7535 found_la="$dir/lib$name.la"
7536 fi
7537 fi
7538 fi
7539 ;;
7540 esac
7541 if test "X$found_dir" != "X"; then
7542 break
7543 fi
7544 done
7545 fi
7546 if test "X$found_dir" != "X"; then
7547 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
7548 if test "X$found_so" != "X"; then
7549 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7550 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7551 else
7552 haveit=
7553 for x in $ltrpathdirs; do
7554 if test "X$x" = "X$found_dir"; then
7555 haveit=yes
7556 break
7557 fi
7558 done
7559 if test -z "$haveit"; then
7560 ltrpathdirs="$ltrpathdirs $found_dir"
7561 fi
7562 if test "$hardcode_direct" = yes; then
7563 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7564 else
7565 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7566 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7567 haveit=
7568 for x in $rpathdirs; do
7569 if test "X$x" = "X$found_dir"; then
7570 haveit=yes
7571 break
7572 fi
7573 done
7574 if test -z "$haveit"; then
7575 rpathdirs="$rpathdirs $found_dir"
7576 fi
7577 else
7578 haveit=
7579 for x in $LDFLAGS $LIBEXPAT; do
7580
7581 acl_save_prefix="$prefix"
7582 prefix="$acl_final_prefix"
7583 acl_save_exec_prefix="$exec_prefix"
7584 exec_prefix="$acl_final_exec_prefix"
7585 eval x=\"$x\"
7586 exec_prefix="$acl_save_exec_prefix"
7587 prefix="$acl_save_prefix"
7588
7589 if test "X$x" = "X-L$found_dir"; then
7590 haveit=yes
7591 break
7592 fi
7593 done
7594 if test -z "$haveit"; then
7595 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
7596 fi
7597 if test "$hardcode_minus_L" != no; then
7598 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
7599 else
7600 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7601 fi
7602 fi
7603 fi
7604 fi
7605 else
7606 if test "X$found_a" != "X"; then
7607 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
7608 else
7609 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
7610 fi
7611 fi
7612 additional_includedir=
7613 case "$found_dir" in
7614 */lib | */lib/)
7615 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7616 additional_includedir="$basedir/include"
7617 ;;
7618 esac
7619 if test "X$additional_includedir" != "X"; then
7620 if test "X$additional_includedir" != "X/usr/include"; then
7621 haveit=
7622 if test "X$additional_includedir" = "X/usr/local/include"; then
7623 if test -n "$GCC"; then
7624 case $host_os in
7625 linux*) haveit=yes;;
7626 esac
7627 fi
7628 fi
7629 if test -z "$haveit"; then
7630 for x in $CPPFLAGS $INCEXPAT; do
7631
7632 acl_save_prefix="$prefix"
7633 prefix="$acl_final_prefix"
7634 acl_save_exec_prefix="$exec_prefix"
7635 exec_prefix="$acl_final_exec_prefix"
7636 eval x=\"$x\"
7637 exec_prefix="$acl_save_exec_prefix"
7638 prefix="$acl_save_prefix"
7639
7640 if test "X$x" = "X-I$additional_includedir"; then
7641 haveit=yes
7642 break
7643 fi
7644 done
7645 if test -z "$haveit"; then
7646 if test -d "$additional_includedir"; then
7647 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
7648 fi
7649 fi
7650 fi
7651 fi
7652 fi
7653 if test -n "$found_la"; then
7654 save_libdir="$libdir"
7655 case "$found_la" in
7656 */* | *\\*) . "$found_la" ;;
7657 *) . "./$found_la" ;;
7658 esac
7659 libdir="$save_libdir"
7660 for dep in $dependency_libs; do
7661 case "$dep" in
7662 -L*)
7663 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7664 if test "X$additional_libdir" != "X/usr/lib"; then
7665 haveit=
7666 if test "X$additional_libdir" = "X/usr/local/lib"; then
7667 if test -n "$GCC"; then
7668 case $host_os in
7669 linux*) haveit=yes;;
7670 esac
7671 fi
7672 fi
7673 if test -z "$haveit"; then
7674 haveit=
7675 for x in $LDFLAGS $LIBEXPAT; do
7676
7677 acl_save_prefix="$prefix"
7678 prefix="$acl_final_prefix"
7679 acl_save_exec_prefix="$exec_prefix"
7680 exec_prefix="$acl_final_exec_prefix"
7681 eval x=\"$x\"
7682 exec_prefix="$acl_save_exec_prefix"
7683 prefix="$acl_save_prefix"
7684
7685 if test "X$x" = "X-L$additional_libdir"; then
7686 haveit=yes
7687 break
7688 fi
7689 done
7690 if test -z "$haveit"; then
7691 if test -d "$additional_libdir"; then
7692 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
7693 fi
7694 fi
7695 haveit=
7696 for x in $LDFLAGS $LTLIBEXPAT; do
7697
7698 acl_save_prefix="$prefix"
7699 prefix="$acl_final_prefix"
7700 acl_save_exec_prefix="$exec_prefix"
7701 exec_prefix="$acl_final_exec_prefix"
7702 eval x=\"$x\"
7703 exec_prefix="$acl_save_exec_prefix"
7704 prefix="$acl_save_prefix"
7705
7706 if test "X$x" = "X-L$additional_libdir"; then
7707 haveit=yes
7708 break
7709 fi
7710 done
7711 if test -z "$haveit"; then
7712 if test -d "$additional_libdir"; then
7713 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
7714 fi
7715 fi
7716 fi
7717 fi
7718 ;;
7719 -R*)
7720 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7721 if test "$enable_rpath" != no; then
7722 haveit=
7723 for x in $rpathdirs; do
7724 if test "X$x" = "X$dir"; then
7725 haveit=yes
7726 break
7727 fi
7728 done
7729 if test -z "$haveit"; then
7730 rpathdirs="$rpathdirs $dir"
7731 fi
7732 haveit=
7733 for x in $ltrpathdirs; do
7734 if test "X$x" = "X$dir"; then
7735 haveit=yes
7736 break
7737 fi
7738 done
7739 if test -z "$haveit"; then
7740 ltrpathdirs="$ltrpathdirs $dir"
7741 fi
7742 fi
7743 ;;
7744 -l*)
7745 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7746 ;;
7747 *.la)
7748 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7749 ;;
7750 *)
7751 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
7752 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
7753 ;;
7754 esac
7755 done
7756 fi
7757 else
7758 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
7759 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
7760 fi
7761 fi
7762 fi
7763 done
7764 done
7765 if test "X$rpathdirs" != "X"; then
7766 if test -n "$hardcode_libdir_separator"; then
7767 alldirs=
7768 for found_dir in $rpathdirs; do
7769 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7770 done
7771 acl_save_libdir="$libdir"
7772 libdir="$alldirs"
7773 eval flag=\"$hardcode_libdir_flag_spec\"
7774 libdir="$acl_save_libdir"
7775 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7776 else
7777 for found_dir in $rpathdirs; do
7778 acl_save_libdir="$libdir"
7779 libdir="$found_dir"
7780 eval flag=\"$hardcode_libdir_flag_spec\"
7781 libdir="$acl_save_libdir"
7782 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
7783 done
7784 fi
7785 fi
7786 if test "X$ltrpathdirs" != "X"; then
7787 for found_dir in $ltrpathdirs; do
7788 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
7789 done
7790 fi
7791
7792
7793 ac_save_CPPFLAGS="$CPPFLAGS"
7794
7795 for element in $INCEXPAT; do
7796 haveit=
7797 for x in $CPPFLAGS; do
7798
7799 acl_save_prefix="$prefix"
7800 prefix="$acl_final_prefix"
7801 acl_save_exec_prefix="$exec_prefix"
7802 exec_prefix="$acl_final_exec_prefix"
7803 eval x=\"$x\"
7804 exec_prefix="$acl_save_exec_prefix"
7805 prefix="$acl_save_prefix"
7806
7807 if test "X$x" = "X$element"; then
7808 haveit=yes
7809 break
7810 fi
7811 done
7812 if test -z "$haveit"; then
7813 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7814 fi
7815 done
7816
7817
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
7819 $as_echo_n "checking for libexpat... " >&6; }
7820 if test "${ac_cv_libexpat+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823
7824 ac_save_LIBS="$LIBS"
7825 LIBS="$LIBS $LIBEXPAT"
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7828 #include "expat.h"
7829 int
7830 main ()
7831 {
7832 XML_Parser p = XML_ParserCreate (0);
7833 ;
7834 return 0;
7835 }
7836 _ACEOF
7837 if ac_fn_c_try_link "$LINENO"; then :
7838 ac_cv_libexpat=yes
7839 else
7840 ac_cv_libexpat=no
7841 fi
7842 rm -f core conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
7844 LIBS="$ac_save_LIBS"
7845
7846 fi
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
7848 $as_echo "$ac_cv_libexpat" >&6; }
7849 if test "$ac_cv_libexpat" = yes; then
7850 HAVE_LIBEXPAT=yes
7851
7852 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
7853
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
7855 $as_echo_n "checking how to link with libexpat... " >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
7857 $as_echo "$LIBEXPAT" >&6; }
7858 else
7859 HAVE_LIBEXPAT=no
7860 CPPFLAGS="$ac_save_CPPFLAGS"
7861 LIBEXPAT=
7862 LTLIBEXPAT=
7863 fi
7864
7865
7866
7867
7868
7869
7870 if test "$HAVE_LIBEXPAT" != yes; then
7871 if test "$with_expat" = yes; then
7872 as_fn_error "expat is missing or unusable" "$LINENO" 5
7873 else
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
7875 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
7876 fi
7877 else
7878 save_LIBS=$LIBS
7879 LIBS="$LIBS $LIBEXPAT"
7880 for ac_func in XML_StopParser
7881 do :
7882 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
7883 if test "x$ac_cv_func_XML_StopParser" = x""yes; then :
7884 cat >>confdefs.h <<_ACEOF
7885 #define HAVE_XML_STOPPARSER 1
7886 _ACEOF
7887
7888 fi
7889 done
7890
7891 LIBS=$save_LIBS
7892 fi
7893 fi
7894
7895
7896
7897
7898
7899
7900 # Check whether --with-python was given.
7901 if test "${with_python+set}" = set; then :
7902 withval=$with_python;
7903 else
7904 with_python=auto
7905 fi
7906
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
7908 $as_echo_n "checking whether to use python... " >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
7910 $as_echo "$with_python" >&6; }
7911
7912 if test "${with_python}" = no; then
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
7914 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
7915 have_libpython=no
7916 else
7917 case "${with_python}" in
7918 [\\/]* | ?:[\\/]*)
7919 if test -d ${with_python}; then
7920 # Assume the python binary is ${with_python}/bin/python.
7921 python_prog="${with_python}/bin/python"
7922 python_prefix=
7923 # If python does not exit ${with_python}/bin, then try in
7924 # ${with_python}. On Windows/MinGW, this is where the Python
7925 # executable is.
7926 if test ! -x "${python_prog}"; then
7927 python_prog="${with_python}/python"
7928 python_prefix=
7929 fi
7930 if test ! -x "${python_prog}"; then
7931 # Fall back to gdb 7.0/7.1 behaviour.
7932 python_prog=missing
7933 python_prefix=${with_python}
7934 fi
7935 elif test -x "${with_python}"; then
7936 # While we can't run python compiled for $host (unless host == build),
7937 # the user could write a script that provides the needed information,
7938 # so we support that.
7939 python_prog=${with_python}
7940 python_prefix=
7941 else
7942 as_fn_error "invalid value for --with-python" "$LINENO" 5
7943 fi
7944 ;;
7945 */*)
7946 # Disallow --with-python=foo/bar.
7947 as_fn_error "invalid value for --with-python" "$LINENO" 5
7948 ;;
7949 *)
7950 # The user has either specified auto, yes, or the name of the python
7951 # program assumed to be in $PATH.
7952 python_prefix=
7953 case "${with_python}" in
7954 yes | auto)
7955 if test ${build} = ${host}; then
7956 # Extract the first word of "python", so it can be a program name with args.
7957 set dummy python; ac_word=$2
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959 $as_echo_n "checking for $ac_word... " >&6; }
7960 if test "${ac_cv_path_python_prog_path+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 case $python_prog_path in
7964 [\\/]* | ?:[\\/]*)
7965 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
7966 ;;
7967 *)
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7970 do
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7975 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7978 fi
7979 done
7980 done
7981 IFS=$as_save_IFS
7982
7983 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
7984 ;;
7985 esac
7986 fi
7987 python_prog_path=$ac_cv_path_python_prog_path
7988 if test -n "$python_prog_path"; then
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
7990 $as_echo "$python_prog_path" >&6; }
7991 else
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7993 $as_echo "no" >&6; }
7994 fi
7995
7996
7997 if test "${python_prog_path}" = missing; then
7998 python_prog=missing
7999 else
8000 python_prog=${python_prog_path}
8001 fi
8002 else
8003 # Not much we can do except assume the cross-compiler will find the
8004 # right files.
8005 python_prog=missing
8006 fi
8007 ;;
8008 *)
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 # Extract the first word of "${python_prog}", so it can be a program name with args.
8014 set dummy ${python_prog}; ac_word=$2
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016 $as_echo_n "checking for $ac_word... " >&6; }
8017 if test "${ac_cv_path_python_prog_path+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
8019 else
8020 case $python_prog_path in
8021 [\\/]* | ?:[\\/]*)
8022 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
8023 ;;
8024 *)
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026 for as_dir in $PATH
8027 do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8032 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8034 break 2
8035 fi
8036 done
8037 done
8038 IFS=$as_save_IFS
8039
8040 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
8041 ;;
8042 esac
8043 fi
8044 python_prog_path=$ac_cv_path_python_prog_path
8045 if test -n "$python_prog_path"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
8047 $as_echo "$python_prog_path" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 fi
8052
8053
8054 if test "${python_prog_path}" = missing; then
8055 as_fn_error "unable to find python program ${python_prog}" "$LINENO" 5
8056 fi
8057 ;;
8058 esac
8059 esac
8060
8061 if test "${python_prog}" != missing; then
8062 # We have a python program to use, but it may be too old.
8063 # Don't flag an error for --with-python=auto (the default).
8064 have_python_config=yes
8065 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
8066 if test $? != 0; then
8067 have_python_config=failed
8068 if test "${with_python}" != auto; then
8069 as_fn_error "failure running python-config --includes" "$LINENO" 5
8070 fi
8071 fi
8072 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
8073 if test $? != 0; then
8074 have_python_config=failed
8075 if test "${with_python}" != auto; then
8076 as_fn_error "failure running python-config --ldflags" "$LINENO" 5
8077 fi
8078 fi
8079 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
8080 if test $? != 0; then
8081 have_python_config=failed
8082 if test "${with_python}" != auto; then
8083 as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5
8084 fi
8085 fi
8086 else
8087 # We do not have a python executable we can use to determine where
8088 # to find the Python headers and libs. We cannot guess the include
8089 # path from the python_prefix either, because that include path
8090 # depends on the Python version. So, there is nothing much we can
8091 # do except assume that the compiler will be able to find those files.
8092 python_includes=
8093 python_libs=
8094 have_python_config=no
8095 fi
8096
8097 # If we have python-config, only try the configuration it provides.
8098 # Otherwise fallback on the old way of trying different versions of
8099 # python in turn.
8100
8101 have_libpython=no
8102 if test "${have_python_config}" = yes; then
8103 # Determine the Python version by extracting "-lpython<version>"
8104 # part of the python_libs. <version> is usually X.Y with X and Y
8105 # being decimal numbers, but can also be XY (seen on Windows).
8106 #
8107 # The extraction is performed using sed with a regular expression.
8108 # Initially, the regexp used was using the '?' quantifier to make
8109 # the dot in the version number optional. Unfortunately, this
8110 # does not work with non-GNU versions of sed because, because of
8111 # what looks like a limitation (the '?' quantifier does not work
8112 # with back-references). We work around this limitation by using
8113 # the '*' quantifier instead. It means that, in theory, we might
8114 # match unexpected version strings such as "-lpython2..7", but
8115 # this seems unlikely in practice. And even if that happens,
8116 # an error will be triggered later on, when checking that version
8117 # number.
8118 python_version=`echo " ${python_libs} " \
8119 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
8120 case "${python_version}" in
8121 python*)
8122
8123 version=${python_version}
8124
8125 new_CPPFLAGS=${python_includes}
8126 new_LIBS=${python_libs}
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8128 $as_echo_n "checking for ${version}... " >&6; }
8129 save_CPPFLAGS=$CPPFLAGS
8130 save_LIBS=$LIBS
8131 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8132 LIBS="$LIBS $new_LIBS"
8133 found_usable_python=no
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 #include "Python.h"
8137 int
8138 main ()
8139 {
8140 Py_Initialize ();
8141 ;
8142 return 0;
8143 }
8144 _ACEOF
8145 if ac_fn_c_try_link "$LINENO"; then :
8146 have_libpython=${version}
8147 found_usable_python=yes
8148 PYTHON_CPPFLAGS=$new_CPPFLAGS
8149 PYTHON_LIBS=$new_LIBS
8150 fi
8151 rm -f core conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8153 CPPFLAGS=$save_CPPFLAGS
8154 LIBS=$save_LIBS
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8156 $as_echo "${found_usable_python}" >&6; }
8157
8158 ;;
8159 *)
8160 as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5
8161 ;;
8162 esac
8163 elif test "${have_python_config}" != failed; then
8164 if test "${have_libpython}" = no; then
8165
8166 version=python2.7
8167
8168 new_CPPFLAGS=${python_includes}
8169 new_LIBS="${python_libs} -lpython2.7"
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8171 $as_echo_n "checking for ${version}... " >&6; }
8172 save_CPPFLAGS=$CPPFLAGS
8173 save_LIBS=$LIBS
8174 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8175 LIBS="$LIBS $new_LIBS"
8176 found_usable_python=no
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #include "Python.h"
8180 int
8181 main ()
8182 {
8183 Py_Initialize ();
8184 ;
8185 return 0;
8186 }
8187 _ACEOF
8188 if ac_fn_c_try_link "$LINENO"; then :
8189 have_libpython=${version}
8190 found_usable_python=yes
8191 PYTHON_CPPFLAGS=$new_CPPFLAGS
8192 PYTHON_LIBS=$new_LIBS
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext \
8195 conftest$ac_exeext conftest.$ac_ext
8196 CPPFLAGS=$save_CPPFLAGS
8197 LIBS=$save_LIBS
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8199 $as_echo "${found_usable_python}" >&6; }
8200
8201 fi
8202 if test "${have_libpython}" = no; then
8203
8204 version=python2.6
8205
8206 new_CPPFLAGS=${python_includes}
8207 new_LIBS="${python_libs} -lpython2.6"
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8209 $as_echo_n "checking for ${version}... " >&6; }
8210 save_CPPFLAGS=$CPPFLAGS
8211 save_LIBS=$LIBS
8212 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8213 LIBS="$LIBS $new_LIBS"
8214 found_usable_python=no
8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8217 #include "Python.h"
8218 int
8219 main ()
8220 {
8221 Py_Initialize ();
8222 ;
8223 return 0;
8224 }
8225 _ACEOF
8226 if ac_fn_c_try_link "$LINENO"; then :
8227 have_libpython=${version}
8228 found_usable_python=yes
8229 PYTHON_CPPFLAGS=$new_CPPFLAGS
8230 PYTHON_LIBS=$new_LIBS
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext conftest.$ac_ext
8234 CPPFLAGS=$save_CPPFLAGS
8235 LIBS=$save_LIBS
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8237 $as_echo "${found_usable_python}" >&6; }
8238
8239 fi
8240 if test ${have_libpython} = no; then
8241
8242 version=python2.5
8243
8244 new_CPPFLAGS=${python_includes}
8245 new_LIBS="${python_libs} -lpython2.5"
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8247 $as_echo_n "checking for ${version}... " >&6; }
8248 save_CPPFLAGS=$CPPFLAGS
8249 save_LIBS=$LIBS
8250 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8251 LIBS="$LIBS $new_LIBS"
8252 found_usable_python=no
8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8254 /* end confdefs.h. */
8255 #include "Python.h"
8256 int
8257 main ()
8258 {
8259 Py_Initialize ();
8260 ;
8261 return 0;
8262 }
8263 _ACEOF
8264 if ac_fn_c_try_link "$LINENO"; then :
8265 have_libpython=${version}
8266 found_usable_python=yes
8267 PYTHON_CPPFLAGS=$new_CPPFLAGS
8268 PYTHON_LIBS=$new_LIBS
8269 fi
8270 rm -f core conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8272 CPPFLAGS=$save_CPPFLAGS
8273 LIBS=$save_LIBS
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8275 $as_echo "${found_usable_python}" >&6; }
8276
8277 fi
8278 if test ${have_libpython} = no; then
8279
8280 version=python2.4
8281
8282 new_CPPFLAGS=${python_includes}
8283 new_LIBS="${python_libs} -lpython2.4"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
8285 $as_echo_n "checking for ${version}... " >&6; }
8286 save_CPPFLAGS=$CPPFLAGS
8287 save_LIBS=$LIBS
8288 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
8289 LIBS="$LIBS $new_LIBS"
8290 found_usable_python=no
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293 #include "Python.h"
8294 int
8295 main ()
8296 {
8297 Py_Initialize ();
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 if ac_fn_c_try_link "$LINENO"; then :
8303 have_libpython=${version}
8304 found_usable_python=yes
8305 PYTHON_CPPFLAGS=$new_CPPFLAGS
8306 PYTHON_LIBS=$new_LIBS
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8310 CPPFLAGS=$save_CPPFLAGS
8311 LIBS=$save_LIBS
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
8313 $as_echo "${found_usable_python}" >&6; }
8314
8315 fi
8316 fi
8317 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
8318
8319 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
8320
8321 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
8322
8323 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
8324
8325 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
8326
8327 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
8328
8329 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
8330
8331 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
8332
8333 fi
8334
8335 if test "${have_libpython}" = no; then
8336 case "${with_python}" in
8337 yes)
8338 as_fn_error "python is missing or unusable" "$LINENO" 5
8339 ;;
8340 auto)
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
8342 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
8343 ;;
8344 *)
8345 as_fn_error "no usable python found at ${with_python}" "$LINENO" 5
8346 ;;
8347 esac
8348 else
8349 if test -n "${python_prefix}"; then
8350
8351 cat >>confdefs.h <<_ACEOF
8352 #define WITH_PYTHON_PATH "${python_prefix}"
8353 _ACEOF
8354
8355
8356 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8357 if test "x$prefix" = xNONE; then
8358 test_prefix=/usr/local
8359 else
8360 test_prefix=$prefix
8361 fi
8362 else
8363 test_prefix=$exec_prefix
8364 fi
8365 value=0
8366 case ${python_prefix} in
8367 "${test_prefix}"|"${test_prefix}/"*|\
8368 '${exec_prefix}'|'${exec_prefix}/'*)
8369 value=1
8370 ;;
8371 esac
8372
8373 cat >>confdefs.h <<_ACEOF
8374 #define PYTHON_PATH_RELOCATABLE $value
8375 _ACEOF
8376
8377
8378 fi
8379 fi
8380 fi
8381
8382 if test "${have_libpython}" != no; then
8383
8384 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
8385
8386 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
8387 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
8388 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
8389 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
8390 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
8391
8392 # Flags needed to compile Python code (taken from python-config --cflags).
8393 # We cannot call python-config directly because it will output whatever was
8394 # used when compiling the Python interpreter itself, including flags which
8395 # would make the python-related objects be compiled differently from the
8396 # rest of GDB (e.g., -O2 and -fPIC).
8397 if test "${GCC}" = yes; then
8398 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
8399 fi
8400
8401 if test "x${tentative_python_cflags}" != x; then
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
8403 $as_echo_n "checking compiler flags for python code... " >&6; }
8404 for flag in ${tentative_python_cflags}; do
8405 # Check that the compiler accepts it
8406 saved_CFLAGS="$CFLAGS"
8407 CFLAGS="$CFLAGS $flag"
8408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8409 /* end confdefs.h. */
8410
8411 int
8412 main ()
8413 {
8414
8415 ;
8416 return 0;
8417 }
8418 _ACEOF
8419 if ac_fn_c_try_compile "$LINENO"; then :
8420 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
8421 fi
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 CFLAGS="$saved_CFLAGS"
8424 done
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
8426 $as_echo "${PYTHON_CFLAGS}" >&6; }
8427 fi
8428
8429 # On IRIX, type siginfo is not defined. Instead, sys/siginfo.h provides:
8430 # #if _SGIAPI
8431 # #define siginfo __siginfo
8432 # #endif
8433 # The problem is that including Python causes some XOPEN macros to be
8434 # unilaterally defined, and that in turn causes _SGIAPI to evaluate
8435 # to false. So, we work around this issue by defining siginfo ourself
8436 # though the command-line.
8437 case "$gdb_host" in
8438 irix*) if test "${GCC}" = yes; then
8439 CPPFLAGS="$CPPFLAGS -Dsiginfo=__siginfo"
8440 fi
8441 ;;
8442 esac
8443 else
8444 # Even if Python support is not compiled in, we need to have these files
8445 # included.
8446 CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o"
8447 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \
8448 python/py-prettyprint.c python/py-auto-load.c"
8449 fi
8450
8451
8452
8453
8454 # ------------------------- #
8455 # Checks for header files. #
8456 # ------------------------- #
8457
8458 ac_header_dirent=no
8459 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8460 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8462 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8467 /* end confdefs.h. */
8468 #include <sys/types.h>
8469 #include <$ac_hdr>
8470
8471 int
8472 main ()
8473 {
8474 if ((DIR *) 0)
8475 return 0;
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_compile "$LINENO"; then :
8481 eval "$as_ac_Header=yes"
8482 else
8483 eval "$as_ac_Header=no"
8484 fi
8485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 fi
8487 eval ac_res=\$$as_ac_Header
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8489 $as_echo "$ac_res" >&6; }
8490 eval as_val=\$$as_ac_Header
8491 if test "x$as_val" = x""yes; then :
8492 cat >>confdefs.h <<_ACEOF
8493 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8494 _ACEOF
8495
8496 ac_header_dirent=$ac_hdr; break
8497 fi
8498
8499 done
8500 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8501 if test $ac_header_dirent = dirent.h; then
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8503 $as_echo_n "checking for library containing opendir... " >&6; }
8504 if test "${ac_cv_search_opendir+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8507 ac_func_search_save_LIBS=$LIBS
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510
8511 /* Override any GCC internal prototype to avoid an error.
8512 Use char because int might match the return type of a GCC
8513 builtin and then its argument prototype would still apply. */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 char opendir ();
8518 int
8519 main ()
8520 {
8521 return opendir ();
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 for ac_lib in '' dir; do
8527 if test -z "$ac_lib"; then
8528 ac_res="none required"
8529 else
8530 ac_res=-l$ac_lib
8531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8532 fi
8533 if ac_fn_c_try_link "$LINENO"; then :
8534 ac_cv_search_opendir=$ac_res
8535 fi
8536 rm -f core conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext
8538 if test "${ac_cv_search_opendir+set}" = set; then :
8539 break
8540 fi
8541 done
8542 if test "${ac_cv_search_opendir+set}" = set; then :
8543
8544 else
8545 ac_cv_search_opendir=no
8546 fi
8547 rm conftest.$ac_ext
8548 LIBS=$ac_func_search_save_LIBS
8549 fi
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8551 $as_echo "$ac_cv_search_opendir" >&6; }
8552 ac_res=$ac_cv_search_opendir
8553 if test "$ac_res" != no; then :
8554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8555
8556 fi
8557
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8560 $as_echo_n "checking for library containing opendir... " >&6; }
8561 if test "${ac_cv_search_opendir+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 ac_func_search_save_LIBS=$LIBS
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567
8568 /* Override any GCC internal prototype to avoid an error.
8569 Use char because int might match the return type of a GCC
8570 builtin and then its argument prototype would still apply. */
8571 #ifdef __cplusplus
8572 extern "C"
8573 #endif
8574 char opendir ();
8575 int
8576 main ()
8577 {
8578 return opendir ();
8579 ;
8580 return 0;
8581 }
8582 _ACEOF
8583 for ac_lib in '' x; do
8584 if test -z "$ac_lib"; then
8585 ac_res="none required"
8586 else
8587 ac_res=-l$ac_lib
8588 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8589 fi
8590 if ac_fn_c_try_link "$LINENO"; then :
8591 ac_cv_search_opendir=$ac_res
8592 fi
8593 rm -f core conftest.err conftest.$ac_objext \
8594 conftest$ac_exeext
8595 if test "${ac_cv_search_opendir+set}" = set; then :
8596 break
8597 fi
8598 done
8599 if test "${ac_cv_search_opendir+set}" = set; then :
8600
8601 else
8602 ac_cv_search_opendir=no
8603 fi
8604 rm conftest.$ac_ext
8605 LIBS=$ac_func_search_save_LIBS
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8608 $as_echo "$ac_cv_search_opendir" >&6; }
8609 ac_res=$ac_cv_search_opendir
8610 if test "$ac_res" != no; then :
8611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8612
8613 fi
8614
8615 fi
8616
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
8618 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
8619 if test "${ac_cv_header_stat_broken+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8621 else
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624 #include <sys/types.h>
8625 #include <sys/stat.h>
8626
8627 #if defined S_ISBLK && defined S_IFDIR
8628 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
8629 #endif
8630
8631 #if defined S_ISBLK && defined S_IFCHR
8632 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
8633 #endif
8634
8635 #if defined S_ISLNK && defined S_IFREG
8636 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
8637 #endif
8638
8639 #if defined S_ISSOCK && defined S_IFREG
8640 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
8641 #endif
8642
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"; then :
8645 ac_cv_header_stat_broken=no
8646 else
8647 ac_cv_header_stat_broken=yes
8648 fi
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 fi
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
8652 $as_echo "$ac_cv_header_stat_broken" >&6; }
8653 if test $ac_cv_header_stat_broken = yes; then
8654
8655 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
8656
8657 fi
8658
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8660 $as_echo_n "checking for ANSI C header files... " >&6; }
8661 if test "${ac_cv_header_stdc+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
8663 else
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 #include <stdlib.h>
8667 #include <stdarg.h>
8668 #include <string.h>
8669 #include <float.h>
8670
8671 int
8672 main ()
8673 {
8674
8675 ;
8676 return 0;
8677 }
8678 _ACEOF
8679 if ac_fn_c_try_compile "$LINENO"; then :
8680 ac_cv_header_stdc=yes
8681 else
8682 ac_cv_header_stdc=no
8683 fi
8684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685
8686 if test $ac_cv_header_stdc = yes; then
8687 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8690 #include <string.h>
8691
8692 _ACEOF
8693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8694 $EGREP "memchr" >/dev/null 2>&1; then :
8695
8696 else
8697 ac_cv_header_stdc=no
8698 fi
8699 rm -f conftest*
8700
8701 fi
8702
8703 if test $ac_cv_header_stdc = yes; then
8704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8707 #include <stdlib.h>
8708
8709 _ACEOF
8710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8711 $EGREP "free" >/dev/null 2>&1; then :
8712
8713 else
8714 ac_cv_header_stdc=no
8715 fi
8716 rm -f conftest*
8717
8718 fi
8719
8720 if test $ac_cv_header_stdc = yes; then
8721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8722 if test "$cross_compiling" = yes; then :
8723 :
8724 else
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 #include <ctype.h>
8728 #include <stdlib.h>
8729 #if ((' ' & 0x0FF) == 0x020)
8730 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8731 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8732 #else
8733 # define ISLOWER(c) \
8734 (('a' <= (c) && (c) <= 'i') \
8735 || ('j' <= (c) && (c) <= 'r') \
8736 || ('s' <= (c) && (c) <= 'z'))
8737 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8738 #endif
8739
8740 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8741 int
8742 main ()
8743 {
8744 int i;
8745 for (i = 0; i < 256; i++)
8746 if (XOR (islower (i), ISLOWER (i))
8747 || toupper (i) != TOUPPER (i))
8748 return 2;
8749 return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_c_try_run "$LINENO"; then :
8753
8754 else
8755 ac_cv_header_stdc=no
8756 fi
8757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8758 conftest.$ac_objext conftest.beam conftest.$ac_ext
8759 fi
8760
8761 fi
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8764 $as_echo "$ac_cv_header_stdc" >&6; }
8765 if test $ac_cv_header_stdc = yes; then
8766
8767 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8768
8769 fi
8770
8771 # elf_hp.h is for HP/UX 64-bit shared library support.
8772 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
8773 # unconditionally, so what's the point in checking these?
8774 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
8775 thread_db.h gnu/libc-version.h signal.h stddef.h \
8776 stdlib.h string.h memory.h strings.h sys/fault.h \
8777 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
8778 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
8779 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
8780 sys/types.h sys/wait.h wait.h termios.h termio.h \
8781 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h \
8782 dlfcn.h sys/socket.h sys/un.h
8783 do :
8784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8785 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8786 eval as_val=\$$as_ac_Header
8787 if test "x$as_val" = x""yes; then :
8788 cat >>confdefs.h <<_ACEOF
8789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8790 _ACEOF
8791
8792 fi
8793
8794 done
8795
8796 for ac_header in link.h
8797 do :
8798 ac_fn_c_check_header_compile "$LINENO" "link.h" "ac_cv_header_link_h" "#if HAVE_SYS_TYPES_H
8799 # include <sys/types.h>
8800 #endif
8801 #if HAVE_NLIST_H
8802 # include <nlist.h>
8803 #endif
8804
8805 "
8806 if test "x$ac_cv_header_link_h" = x""yes; then :
8807 cat >>confdefs.h <<_ACEOF
8808 #define HAVE_LINK_H 1
8809 _ACEOF
8810
8811 fi
8812
8813 done
8814
8815 for ac_header in sys/proc.h
8816 do :
8817 ac_fn_c_check_header_compile "$LINENO" "sys/proc.h" "ac_cv_header_sys_proc_h" "#if HAVE_SYS_PARAM_H
8818 # include <sys/param.h>
8819 #endif
8820
8821 "
8822 if test "x$ac_cv_header_sys_proc_h" = x""yes; then :
8823 cat >>confdefs.h <<_ACEOF
8824 #define HAVE_SYS_PROC_H 1
8825 _ACEOF
8826
8827 fi
8828
8829 done
8830
8831 for ac_header in sys/user.h
8832 do :
8833 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
8834 # include <sys/param.h>
8835 #endif
8836
8837 "
8838 if test "x$ac_cv_header_sys_user_h" = x""yes; then :
8839 cat >>confdefs.h <<_ACEOF
8840 #define HAVE_SYS_USER_H 1
8841 _ACEOF
8842
8843 fi
8844
8845 done
8846
8847
8848 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
8849 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
8850 # think that we don't have <curses.h> if we're using GCC.
8851 case $host_os in
8852 solaris2.[789])
8853 if test "$GCC" = yes; then
8854
8855 $as_echo "#define _MSE_INT_H 1" >>confdefs.h
8856
8857 fi ;;
8858 esac
8859 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
8860 do :
8861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8862 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8863 eval as_val=\$$as_ac_Header
8864 if test "x$as_val" = x""yes; then :
8865 cat >>confdefs.h <<_ACEOF
8866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8867 _ACEOF
8868
8869 fi
8870
8871 done
8872
8873 for ac_header in term.h
8874 do :
8875 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
8876 # include <curses.h>
8877 #endif
8878
8879 "
8880 if test "x$ac_cv_header_term_h" = x""yes; then :
8881 cat >>confdefs.h <<_ACEOF
8882 #define HAVE_TERM_H 1
8883 _ACEOF
8884
8885 fi
8886
8887 done
8888
8889
8890 # ------------------------- #
8891 # Checks for declarations. #
8892 # ------------------------- #
8893
8894 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
8895 if test "x$ac_cv_have_decl_free" = x""yes; then :
8896 ac_have_decl=1
8897 else
8898 ac_have_decl=0
8899 fi
8900
8901 cat >>confdefs.h <<_ACEOF
8902 #define HAVE_DECL_FREE $ac_have_decl
8903 _ACEOF
8904 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
8905 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
8906 ac_have_decl=1
8907 else
8908 ac_have_decl=0
8909 fi
8910
8911 cat >>confdefs.h <<_ACEOF
8912 #define HAVE_DECL_MALLOC $ac_have_decl
8913 _ACEOF
8914 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
8915 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
8916 ac_have_decl=1
8917 else
8918 ac_have_decl=0
8919 fi
8920
8921 cat >>confdefs.h <<_ACEOF
8922 #define HAVE_DECL_REALLOC $ac_have_decl
8923 _ACEOF
8924 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
8925 if test "x$ac_cv_have_decl_strerror" = x""yes; then :
8926 ac_have_decl=1
8927 else
8928 ac_have_decl=0
8929 fi
8930
8931 cat >>confdefs.h <<_ACEOF
8932 #define HAVE_DECL_STRERROR $ac_have_decl
8933 _ACEOF
8934 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
8935 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
8936 ac_have_decl=1
8937 else
8938 ac_have_decl=0
8939 fi
8940
8941 cat >>confdefs.h <<_ACEOF
8942 #define HAVE_DECL_STRSTR $ac_have_decl
8943 _ACEOF
8944 ac_fn_c_check_decl "$LINENO" "getopt" "ac_cv_have_decl_getopt" "$ac_includes_default"
8945 if test "x$ac_cv_have_decl_getopt" = x""yes; then :
8946 ac_have_decl=1
8947 else
8948 ac_have_decl=0
8949 fi
8950
8951 cat >>confdefs.h <<_ACEOF
8952 #define HAVE_DECL_GETOPT $ac_have_decl
8953 _ACEOF
8954 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
8955 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
8956 ac_have_decl=1
8957 else
8958 ac_have_decl=0
8959 fi
8960
8961 cat >>confdefs.h <<_ACEOF
8962 #define HAVE_DECL_SNPRINTF $ac_have_decl
8963 _ACEOF
8964 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
8965 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
8966 ac_have_decl=1
8967 else
8968 ac_have_decl=0
8969 fi
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define HAVE_DECL_VSNPRINTF $ac_have_decl
8973 _ACEOF
8974
8975
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8977 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8978 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 #include <locale.h>
8984 int
8985 main ()
8986 {
8987 return LC_MESSAGES
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 if ac_fn_c_try_link "$LINENO"; then :
8993 am_cv_val_LC_MESSAGES=yes
8994 else
8995 am_cv_val_LC_MESSAGES=no
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
9001 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9002 if test $am_cv_val_LC_MESSAGES = yes; then
9003
9004 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
9005
9006 fi
9007
9008
9009 # ----------------------- #
9010 # Checks for structures. #
9011 # ----------------------- #
9012
9013 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
9014 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
9015
9016 cat >>confdefs.h <<_ACEOF
9017 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9018 _ACEOF
9019
9020
9021 fi
9022 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
9023 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
9024
9025 cat >>confdefs.h <<_ACEOF
9026 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9027 _ACEOF
9028
9029
9030 fi
9031
9032
9033 # ------------------ #
9034 # Checks for types. #
9035 # ------------------ #
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9038 $as_echo_n "checking return type of signal handlers... " >&6; }
9039 if test "${ac_cv_type_signal+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9044 #include <sys/types.h>
9045 #include <signal.h>
9046
9047 int
9048 main ()
9049 {
9050 return *(signal (0, 0)) (0) == 1;
9051 ;
9052 return 0;
9053 }
9054 _ACEOF
9055 if ac_fn_c_try_compile "$LINENO"; then :
9056 ac_cv_type_signal=int
9057 else
9058 ac_cv_type_signal=void
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 fi
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9063 $as_echo "$ac_cv_type_signal" >&6; }
9064
9065 cat >>confdefs.h <<_ACEOF
9066 #define RETSIGTYPE $ac_cv_type_signal
9067 _ACEOF
9068
9069
9070 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
9071 #include <sys/socket.h>
9072
9073 "
9074 if test "x$ac_cv_type_socklen_t" = x""yes; then :
9075
9076 cat >>confdefs.h <<_ACEOF
9077 #define HAVE_SOCKLEN_T 1
9078 _ACEOF
9079
9080
9081 fi
9082
9083
9084 # ------------------------------------- #
9085 # Checks for compiler characteristics. #
9086 # ------------------------------------- #
9087
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9089 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9090 if test "${ac_cv_c_const+set}" = set; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9095
9096 int
9097 main ()
9098 {
9099 /* FIXME: Include the comments suggested by Paul. */
9100 #ifndef __cplusplus
9101 /* Ultrix mips cc rejects this. */
9102 typedef int charset[2];
9103 const charset cs;
9104 /* SunOS 4.1.1 cc rejects this. */
9105 char const *const *pcpcc;
9106 char **ppc;
9107 /* NEC SVR4.0.2 mips cc rejects this. */
9108 struct point {int x, y;};
9109 static struct point const zero = {0,0};
9110 /* AIX XL C 1.02.0.0 rejects this.
9111 It does not let you subtract one const X* pointer from another in
9112 an arm of an if-expression whose if-part is not a constant
9113 expression */
9114 const char *g = "string";
9115 pcpcc = &g + (g ? g-g : 0);
9116 /* HPUX 7.0 cc rejects these. */
9117 ++pcpcc;
9118 ppc = (char**) pcpcc;
9119 pcpcc = (char const *const *) ppc;
9120 { /* SCO 3.2v4 cc rejects this. */
9121 char *t;
9122 char const *s = 0 ? (char *) 0 : (char const *) 0;
9123
9124 *t++ = 0;
9125 if (s) return 0;
9126 }
9127 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9128 int x[] = {25, 17};
9129 const int *foo = &x[0];
9130 ++foo;
9131 }
9132 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9133 typedef const int *iptr;
9134 iptr p = 0;
9135 ++p;
9136 }
9137 { /* AIX XL C 1.02.0.0 rejects this saying
9138 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9139 struct s { int j; const int *ap[3]; };
9140 struct s *b; b->j = 5;
9141 }
9142 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9143 const int foo = 10;
9144 if (!foo) return 0;
9145 }
9146 return !cs[0] && !zero.x;
9147 #endif
9148
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 if ac_fn_c_try_compile "$LINENO"; then :
9154 ac_cv_c_const=yes
9155 else
9156 ac_cv_c_const=no
9157 fi
9158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9159 fi
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9161 $as_echo "$ac_cv_c_const" >&6; }
9162 if test $ac_cv_c_const = no; then
9163
9164 $as_echo "#define const /**/" >>confdefs.h
9165
9166 fi
9167
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9169 $as_echo_n "checking for inline... " >&6; }
9170 if test "${ac_cv_c_inline+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
9172 else
9173 ac_cv_c_inline=no
9174 for ac_kw in inline __inline__ __inline; do
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9177 #ifndef __cplusplus
9178 typedef int foo_t;
9179 static $ac_kw foo_t static_foo () {return 0; }
9180 $ac_kw foo_t foo () {return 0; }
9181 #endif
9182
9183 _ACEOF
9184 if ac_fn_c_try_compile "$LINENO"; then :
9185 ac_cv_c_inline=$ac_kw
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 test "$ac_cv_c_inline" != no && break
9189 done
9190
9191 fi
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9193 $as_echo "$ac_cv_c_inline" >&6; }
9194
9195 case $ac_cv_c_inline in
9196 inline | yes) ;;
9197 *)
9198 case $ac_cv_c_inline in
9199 no) ac_val=;;
9200 *) ac_val=$ac_cv_c_inline;;
9201 esac
9202 cat >>confdefs.h <<_ACEOF
9203 #ifndef __cplusplus
9204 #define inline $ac_val
9205 #endif
9206 _ACEOF
9207 ;;
9208 esac
9209
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9211 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9212 if test "${ac_cv_c_bigendian+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
9214 else
9215 ac_cv_c_bigendian=unknown
9216 # See if we're dealing with a universal compiler.
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 #ifndef __APPLE_CC__
9220 not a universal capable compiler
9221 #endif
9222 typedef int dummy;
9223
9224 _ACEOF
9225 if ac_fn_c_try_compile "$LINENO"; then :
9226
9227 # Check for potential -arch flags. It is not universal unless
9228 # there are at least two -arch flags with different values.
9229 ac_arch=
9230 ac_prev=
9231 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9232 if test -n "$ac_prev"; then
9233 case $ac_word in
9234 i?86 | x86_64 | ppc | ppc64)
9235 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9236 ac_arch=$ac_word
9237 else
9238 ac_cv_c_bigendian=universal
9239 break
9240 fi
9241 ;;
9242 esac
9243 ac_prev=
9244 elif test "x$ac_word" = "x-arch"; then
9245 ac_prev=arch
9246 fi
9247 done
9248 fi
9249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9250 if test $ac_cv_c_bigendian = unknown; then
9251 # See if sys/param.h defines the BYTE_ORDER macro.
9252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9253 /* end confdefs.h. */
9254 #include <sys/types.h>
9255 #include <sys/param.h>
9256
9257 int
9258 main ()
9259 {
9260 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9261 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9262 && LITTLE_ENDIAN)
9263 bogus endian macros
9264 #endif
9265
9266 ;
9267 return 0;
9268 }
9269 _ACEOF
9270 if ac_fn_c_try_compile "$LINENO"; then :
9271 # It does; now see whether it defined to BIG_ENDIAN or not.
9272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9274 #include <sys/types.h>
9275 #include <sys/param.h>
9276
9277 int
9278 main ()
9279 {
9280 #if BYTE_ORDER != BIG_ENDIAN
9281 not big endian
9282 #endif
9283
9284 ;
9285 return 0;
9286 }
9287 _ACEOF
9288 if ac_fn_c_try_compile "$LINENO"; then :
9289 ac_cv_c_bigendian=yes
9290 else
9291 ac_cv_c_bigendian=no
9292 fi
9293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9294 fi
9295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9296 fi
9297 if test $ac_cv_c_bigendian = unknown; then
9298 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <limits.h>
9302
9303 int
9304 main ()
9305 {
9306 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9307 bogus endian macros
9308 #endif
9309
9310 ;
9311 return 0;
9312 }
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"; then :
9315 # It does; now see whether it defined to _BIG_ENDIAN or not.
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 #include <limits.h>
9319
9320 int
9321 main ()
9322 {
9323 #ifndef _BIG_ENDIAN
9324 not big endian
9325 #endif
9326
9327 ;
9328 return 0;
9329 }
9330 _ACEOF
9331 if ac_fn_c_try_compile "$LINENO"; then :
9332 ac_cv_c_bigendian=yes
9333 else
9334 ac_cv_c_bigendian=no
9335 fi
9336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 fi
9338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339 fi
9340 if test $ac_cv_c_bigendian = unknown; then
9341 # Compile a test program.
9342 if test "$cross_compiling" = yes; then :
9343 # Try to guess by grepping values from an object file.
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 short int ascii_mm[] =
9347 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9348 short int ascii_ii[] =
9349 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9350 int use_ascii (int i) {
9351 return ascii_mm[i] + ascii_ii[i];
9352 }
9353 short int ebcdic_ii[] =
9354 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9355 short int ebcdic_mm[] =
9356 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9357 int use_ebcdic (int i) {
9358 return ebcdic_mm[i] + ebcdic_ii[i];
9359 }
9360 extern int foo;
9361
9362 int
9363 main ()
9364 {
9365 return use_ascii (foo) == use_ebcdic (foo);
9366 ;
9367 return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_compile "$LINENO"; then :
9371 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9372 ac_cv_c_bigendian=yes
9373 fi
9374 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9375 if test "$ac_cv_c_bigendian" = unknown; then
9376 ac_cv_c_bigendian=no
9377 else
9378 # finding both strings is unlikely to happen, but who knows?
9379 ac_cv_c_bigendian=unknown
9380 fi
9381 fi
9382 fi
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 else
9385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9387 $ac_includes_default
9388 int
9389 main ()
9390 {
9391
9392 /* Are we little or big endian? From Harbison&Steele. */
9393 union
9394 {
9395 long int l;
9396 char c[sizeof (long int)];
9397 } u;
9398 u.l = 1;
9399 return u.c[sizeof (long int) - 1] == 1;
9400
9401 ;
9402 return 0;
9403 }
9404 _ACEOF
9405 if ac_fn_c_try_run "$LINENO"; then :
9406 ac_cv_c_bigendian=no
9407 else
9408 ac_cv_c_bigendian=yes
9409 fi
9410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9411 conftest.$ac_objext conftest.beam conftest.$ac_ext
9412 fi
9413
9414 fi
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9417 $as_echo "$ac_cv_c_bigendian" >&6; }
9418 case $ac_cv_c_bigendian in #(
9419 yes)
9420 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9421 ;; #(
9422 no)
9423 ;; #(
9424 universal)
9425
9426 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9427
9428 ;; #(
9429 *)
9430 as_fn_error "unknown endianness
9431 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9432 esac
9433
9434
9435 # ------------------------------ #
9436 # Checks for library functions. #
9437 # ------------------------------ #
9438
9439 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9440 # for constant arguments. Useless!
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
9442 $as_echo_n "checking for working alloca.h... " >&6; }
9443 if test "${ac_cv_working_alloca_h+set}" = set; then :
9444 $as_echo_n "(cached) " >&6
9445 else
9446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9447 /* end confdefs.h. */
9448 #include <alloca.h>
9449 int
9450 main ()
9451 {
9452 char *p = (char *) alloca (2 * sizeof (int));
9453 if (p) return 0;
9454 ;
9455 return 0;
9456 }
9457 _ACEOF
9458 if ac_fn_c_try_link "$LINENO"; then :
9459 ac_cv_working_alloca_h=yes
9460 else
9461 ac_cv_working_alloca_h=no
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext \
9464 conftest$ac_exeext conftest.$ac_ext
9465 fi
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
9467 $as_echo "$ac_cv_working_alloca_h" >&6; }
9468 if test $ac_cv_working_alloca_h = yes; then
9469
9470 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
9471
9472 fi
9473
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
9475 $as_echo_n "checking for alloca... " >&6; }
9476 if test "${ac_cv_func_alloca_works+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 #ifdef __GNUC__
9482 # define alloca __builtin_alloca
9483 #else
9484 # ifdef _MSC_VER
9485 # include <malloc.h>
9486 # define alloca _alloca
9487 # else
9488 # ifdef HAVE_ALLOCA_H
9489 # include <alloca.h>
9490 # else
9491 # ifdef _AIX
9492 #pragma alloca
9493 # else
9494 # ifndef alloca /* predefined by HP cc +Olibcalls */
9495 char *alloca ();
9496 # endif
9497 # endif
9498 # endif
9499 # endif
9500 #endif
9501
9502 int
9503 main ()
9504 {
9505 char *p = (char *) alloca (1);
9506 if (p) return 0;
9507 ;
9508 return 0;
9509 }
9510 _ACEOF
9511 if ac_fn_c_try_link "$LINENO"; then :
9512 ac_cv_func_alloca_works=yes
9513 else
9514 ac_cv_func_alloca_works=no
9515 fi
9516 rm -f core conftest.err conftest.$ac_objext \
9517 conftest$ac_exeext conftest.$ac_ext
9518 fi
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
9520 $as_echo "$ac_cv_func_alloca_works" >&6; }
9521
9522 if test $ac_cv_func_alloca_works = yes; then
9523
9524 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9525
9526 else
9527 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9528 # that cause trouble. Some versions do not even contain alloca or
9529 # contain a buggy version. If you still want to use their alloca,
9530 # use ar to extract alloca.o from them instead of compiling alloca.c.
9531
9532 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9533
9534 $as_echo "#define C_ALLOCA 1" >>confdefs.h
9535
9536
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
9538 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9539 if test "${ac_cv_os_cray+set}" = set; then :
9540 $as_echo_n "(cached) " >&6
9541 else
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 #if defined CRAY && ! defined CRAY2
9545 webecray
9546 #else
9547 wenotbecray
9548 #endif
9549
9550 _ACEOF
9551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9552 $EGREP "webecray" >/dev/null 2>&1; then :
9553 ac_cv_os_cray=yes
9554 else
9555 ac_cv_os_cray=no
9556 fi
9557 rm -f conftest*
9558
9559 fi
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
9561 $as_echo "$ac_cv_os_cray" >&6; }
9562 if test $ac_cv_os_cray = yes; then
9563 for ac_func in _getb67 GETB67 getb67; do
9564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9565 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9566 eval as_val=\$$as_ac_var
9567 if test "x$as_val" = x""yes; then :
9568
9569 cat >>confdefs.h <<_ACEOF
9570 #define CRAY_STACKSEG_END $ac_func
9571 _ACEOF
9572
9573 break
9574 fi
9575
9576 done
9577 fi
9578
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
9580 $as_echo_n "checking stack direction for C alloca... " >&6; }
9581 if test "${ac_cv_c_stack_direction+set}" = set; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 if test "$cross_compiling" = yes; then :
9585 ac_cv_c_stack_direction=0
9586 else
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 $ac_includes_default
9590 int
9591 find_stack_direction ()
9592 {
9593 static char *addr = 0;
9594 auto char dummy;
9595 if (addr == 0)
9596 {
9597 addr = &dummy;
9598 return find_stack_direction ();
9599 }
9600 else
9601 return (&dummy > addr) ? 1 : -1;
9602 }
9603
9604 int
9605 main ()
9606 {
9607 return find_stack_direction () < 0;
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_run "$LINENO"; then :
9611 ac_cv_c_stack_direction=1
9612 else
9613 ac_cv_c_stack_direction=-1
9614 fi
9615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9616 conftest.$ac_objext conftest.beam conftest.$ac_ext
9617 fi
9618
9619 fi
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
9621 $as_echo "$ac_cv_c_stack_direction" >&6; }
9622 cat >>confdefs.h <<_ACEOF
9623 #define STACK_DIRECTION $ac_cv_c_stack_direction
9624 _ACEOF
9625
9626
9627 fi
9628
9629 for ac_header in stdlib.h unistd.h
9630 do :
9631 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9632 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9633 eval as_val=\$$as_ac_Header
9634 if test "x$as_val" = x""yes; then :
9635 cat >>confdefs.h <<_ACEOF
9636 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9637 _ACEOF
9638
9639 fi
9640
9641 done
9642
9643 for ac_func in getpagesize
9644 do :
9645 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9646 if test "x$ac_cv_func_getpagesize" = x""yes; then :
9647 cat >>confdefs.h <<_ACEOF
9648 #define HAVE_GETPAGESIZE 1
9649 _ACEOF
9650
9651 fi
9652 done
9653
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9655 $as_echo_n "checking for working mmap... " >&6; }
9656 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
9657 $as_echo_n "(cached) " >&6
9658 else
9659 if test "$cross_compiling" = yes; then :
9660 ac_cv_func_mmap_fixed_mapped=no
9661 else
9662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9663 /* end confdefs.h. */
9664 $ac_includes_default
9665 /* malloc might have been renamed as rpl_malloc. */
9666 #undef malloc
9667
9668 /* Thanks to Mike Haertel and Jim Avera for this test.
9669 Here is a matrix of mmap possibilities:
9670 mmap private not fixed
9671 mmap private fixed at somewhere currently unmapped
9672 mmap private fixed at somewhere already mapped
9673 mmap shared not fixed
9674 mmap shared fixed at somewhere currently unmapped
9675 mmap shared fixed at somewhere already mapped
9676 For private mappings, we should verify that changes cannot be read()
9677 back from the file, nor mmap's back from the file at a different
9678 address. (There have been systems where private was not correctly
9679 implemented like the infamous i386 svr4.0, and systems where the
9680 VM page cache was not coherent with the file system buffer cache
9681 like early versions of FreeBSD and possibly contemporary NetBSD.)
9682 For shared mappings, we should conversely verify that changes get
9683 propagated back to all the places they're supposed to be.
9684
9685 Grep wants private fixed already mapped.
9686 The main things grep needs to know about mmap are:
9687 * does it exist and is it safe to write into the mmap'd area
9688 * how to use it (BSD variants) */
9689
9690 #include <fcntl.h>
9691 #include <sys/mman.h>
9692
9693 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9694 char *malloc ();
9695 #endif
9696
9697 /* This mess was copied from the GNU getpagesize.h. */
9698 #ifndef HAVE_GETPAGESIZE
9699 /* Assume that all systems that can run configure have sys/param.h. */
9700 # ifndef HAVE_SYS_PARAM_H
9701 # define HAVE_SYS_PARAM_H 1
9702 # endif
9703
9704 # ifdef _SC_PAGESIZE
9705 # define getpagesize() sysconf(_SC_PAGESIZE)
9706 # else /* no _SC_PAGESIZE */
9707 # ifdef HAVE_SYS_PARAM_H
9708 # include <sys/param.h>
9709 # ifdef EXEC_PAGESIZE
9710 # define getpagesize() EXEC_PAGESIZE
9711 # else /* no EXEC_PAGESIZE */
9712 # ifdef NBPG
9713 # define getpagesize() NBPG * CLSIZE
9714 # ifndef CLSIZE
9715 # define CLSIZE 1
9716 # endif /* no CLSIZE */
9717 # else /* no NBPG */
9718 # ifdef NBPC
9719 # define getpagesize() NBPC
9720 # else /* no NBPC */
9721 # ifdef PAGESIZE
9722 # define getpagesize() PAGESIZE
9723 # endif /* PAGESIZE */
9724 # endif /* no NBPC */
9725 # endif /* no NBPG */
9726 # endif /* no EXEC_PAGESIZE */
9727 # else /* no HAVE_SYS_PARAM_H */
9728 # define getpagesize() 8192 /* punt totally */
9729 # endif /* no HAVE_SYS_PARAM_H */
9730 # endif /* no _SC_PAGESIZE */
9731
9732 #endif /* no HAVE_GETPAGESIZE */
9733
9734 int
9735 main ()
9736 {
9737 char *data, *data2, *data3;
9738 int i, pagesize;
9739 int fd;
9740
9741 pagesize = getpagesize ();
9742
9743 /* First, make a file with some known garbage in it. */
9744 data = (char *) malloc (pagesize);
9745 if (!data)
9746 return 1;
9747 for (i = 0; i < pagesize; ++i)
9748 *(data + i) = rand ();
9749 umask (0);
9750 fd = creat ("conftest.mmap", 0600);
9751 if (fd < 0)
9752 return 1;
9753 if (write (fd, data, pagesize) != pagesize)
9754 return 1;
9755 close (fd);
9756
9757 /* Next, try to mmap the file at a fixed address which already has
9758 something else allocated at it. If we can, also make sure that
9759 we see the same garbage. */
9760 fd = open ("conftest.mmap", O_RDWR);
9761 if (fd < 0)
9762 return 1;
9763 data2 = (char *) malloc (2 * pagesize);
9764 if (!data2)
9765 return 1;
9766 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9767 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9768 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9769 return 1;
9770 for (i = 0; i < pagesize; ++i)
9771 if (*(data + i) != *(data2 + i))
9772 return 1;
9773
9774 /* Finally, make sure that changes to the mapped area do not
9775 percolate back to the file as seen by read(). (This is a bug on
9776 some variants of i386 svr4.0.) */
9777 for (i = 0; i < pagesize; ++i)
9778 *(data2 + i) = *(data2 + i) + 1;
9779 data3 = (char *) malloc (pagesize);
9780 if (!data3)
9781 return 1;
9782 if (read (fd, data3, pagesize) != pagesize)
9783 return 1;
9784 for (i = 0; i < pagesize; ++i)
9785 if (*(data + i) != *(data3 + i))
9786 return 1;
9787 close (fd);
9788 return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_run "$LINENO"; then :
9792 ac_cv_func_mmap_fixed_mapped=yes
9793 else
9794 ac_cv_func_mmap_fixed_mapped=no
9795 fi
9796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9797 conftest.$ac_objext conftest.beam conftest.$ac_ext
9798 fi
9799
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9802 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9803 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9804
9805 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9806
9807 fi
9808 rm -f conftest.mmap
9809
9810 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9811 if test "x$ac_cv_type_pid_t" = x""yes; then :
9812
9813 else
9814
9815 cat >>confdefs.h <<_ACEOF
9816 #define pid_t int
9817 _ACEOF
9818
9819 fi
9820
9821 for ac_header in vfork.h
9822 do :
9823 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
9824 if test "x$ac_cv_header_vfork_h" = x""yes; then :
9825 cat >>confdefs.h <<_ACEOF
9826 #define HAVE_VFORK_H 1
9827 _ACEOF
9828
9829 fi
9830
9831 done
9832
9833 for ac_func in fork vfork
9834 do :
9835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9836 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9837 eval as_val=\$$as_ac_var
9838 if test "x$as_val" = x""yes; then :
9839 cat >>confdefs.h <<_ACEOF
9840 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9841 _ACEOF
9842
9843 fi
9844 done
9845
9846 if test "x$ac_cv_func_fork" = xyes; then
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
9848 $as_echo_n "checking for working fork... " >&6; }
9849 if test "${ac_cv_func_fork_works+set}" = set; then :
9850 $as_echo_n "(cached) " >&6
9851 else
9852 if test "$cross_compiling" = yes; then :
9853 ac_cv_func_fork_works=cross
9854 else
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9857 $ac_includes_default
9858 int
9859 main ()
9860 {
9861
9862 /* By Ruediger Kuhlmann. */
9863 return fork () < 0;
9864
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 if ac_fn_c_try_run "$LINENO"; then :
9870 ac_cv_func_fork_works=yes
9871 else
9872 ac_cv_func_fork_works=no
9873 fi
9874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9875 conftest.$ac_objext conftest.beam conftest.$ac_ext
9876 fi
9877
9878 fi
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
9880 $as_echo "$ac_cv_func_fork_works" >&6; }
9881
9882 else
9883 ac_cv_func_fork_works=$ac_cv_func_fork
9884 fi
9885 if test "x$ac_cv_func_fork_works" = xcross; then
9886 case $host in
9887 *-*-amigaos* | *-*-msdosdjgpp*)
9888 # Override, as these systems have only a dummy fork() stub
9889 ac_cv_func_fork_works=no
9890 ;;
9891 *)
9892 ac_cv_func_fork_works=yes
9893 ;;
9894 esac
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
9896 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
9897 fi
9898 ac_cv_func_vfork_works=$ac_cv_func_vfork
9899 if test "x$ac_cv_func_vfork" = xyes; then
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
9901 $as_echo_n "checking for working vfork... " >&6; }
9902 if test "${ac_cv_func_vfork_works+set}" = set; then :
9903 $as_echo_n "(cached) " >&6
9904 else
9905 if test "$cross_compiling" = yes; then :
9906 ac_cv_func_vfork_works=cross
9907 else
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 /* Thanks to Paul Eggert for this test. */
9911 $ac_includes_default
9912 #include <sys/wait.h>
9913 #ifdef HAVE_VFORK_H
9914 # include <vfork.h>
9915 #endif
9916 /* On some sparc systems, changes by the child to local and incoming
9917 argument registers are propagated back to the parent. The compiler
9918 is told about this with #include <vfork.h>, but some compilers
9919 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
9920 static variable whose address is put into a register that is
9921 clobbered by the vfork. */
9922 static void
9923 #ifdef __cplusplus
9924 sparc_address_test (int arg)
9925 # else
9926 sparc_address_test (arg) int arg;
9927 #endif
9928 {
9929 static pid_t child;
9930 if (!child) {
9931 child = vfork ();
9932 if (child < 0) {
9933 perror ("vfork");
9934 _exit(2);
9935 }
9936 if (!child) {
9937 arg = getpid();
9938 write(-1, "", 0);
9939 _exit (arg);
9940 }
9941 }
9942 }
9943
9944 int
9945 main ()
9946 {
9947 pid_t parent = getpid ();
9948 pid_t child;
9949
9950 sparc_address_test (0);
9951
9952 child = vfork ();
9953
9954 if (child == 0) {
9955 /* Here is another test for sparc vfork register problems. This
9956 test uses lots of local variables, at least as many local
9957 variables as main has allocated so far including compiler
9958 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
9959 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
9960 reuse the register of parent for one of the local variables,
9961 since it will think that parent can't possibly be used any more
9962 in this routine. Assigning to the local variable will thus
9963 munge parent in the parent process. */
9964 pid_t
9965 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
9966 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
9967 /* Convince the compiler that p..p7 are live; otherwise, it might
9968 use the same hardware register for all 8 local variables. */
9969 if (p != p1 || p != p2 || p != p3 || p != p4
9970 || p != p5 || p != p6 || p != p7)
9971 _exit(1);
9972
9973 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
9974 from child file descriptors. If the child closes a descriptor
9975 before it execs or exits, this munges the parent's descriptor
9976 as well. Test for this by closing stdout in the child. */
9977 _exit(close(fileno(stdout)) != 0);
9978 } else {
9979 int status;
9980 struct stat st;
9981
9982 while (wait(&status) != child)
9983 ;
9984 return (
9985 /* Was there some problem with vforking? */
9986 child < 0
9987
9988 /* Did the child fail? (This shouldn't happen.) */
9989 || status
9990
9991 /* Did the vfork/compiler bug occur? */
9992 || parent != getpid()
9993
9994 /* Did the file descriptor bug occur? */
9995 || fstat(fileno(stdout), &st) != 0
9996 );
9997 }
9998 }
9999 _ACEOF
10000 if ac_fn_c_try_run "$LINENO"; then :
10001 ac_cv_func_vfork_works=yes
10002 else
10003 ac_cv_func_vfork_works=no
10004 fi
10005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10006 conftest.$ac_objext conftest.beam conftest.$ac_ext
10007 fi
10008
10009 fi
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
10011 $as_echo "$ac_cv_func_vfork_works" >&6; }
10012
10013 fi;
10014 if test "x$ac_cv_func_fork_works" = xcross; then
10015 ac_cv_func_vfork_works=$ac_cv_func_vfork
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
10017 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
10018 fi
10019
10020 if test "x$ac_cv_func_vfork_works" = xyes; then
10021
10022 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
10023
10024 else
10025
10026 $as_echo "#define vfork fork" >>confdefs.h
10027
10028 fi
10029 if test "x$ac_cv_func_fork_works" = xyes; then
10030
10031 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
10032
10033 fi
10034
10035 for ac_func in canonicalize_file_name realpath getrusage getuid getgid \
10036 pipe poll pread pread64 pwrite readlink resize_term \
10037 sbrk setpgid setpgrp setsid \
10038 sigaction sigprocmask sigsetmask socketpair syscall \
10039 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
10040 setrlimit getrlimit posix_madvise waitpid lstat
10041 do :
10042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10044 eval as_val=\$$as_ac_var
10045 if test "x$as_val" = x""yes; then :
10046 cat >>confdefs.h <<_ACEOF
10047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10048 _ACEOF
10049
10050 fi
10051 done
10052
10053
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10055 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10056 if test "${am_cv_langinfo_codeset+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
10058 else
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 #include <langinfo.h>
10062 int
10063 main ()
10064 {
10065 char* cs = nl_langinfo(CODESET);
10066 ;
10067 return 0;
10068 }
10069 _ACEOF
10070 if ac_fn_c_try_link "$LINENO"; then :
10071 am_cv_langinfo_codeset=yes
10072 else
10073 am_cv_langinfo_codeset=no
10074 fi
10075 rm -f core conftest.err conftest.$ac_objext \
10076 conftest$ac_exeext conftest.$ac_ext
10077
10078 fi
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10080 $as_echo "$am_cv_langinfo_codeset" >&6; }
10081 if test $am_cv_langinfo_codeset = yes; then
10082
10083 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10084
10085 fi
10086
10087
10088 # Check the return and argument types of ptrace. No canned test for
10089 # this, so roll our own.
10090 gdb_ptrace_headers='
10091 #if HAVE_SYS_TYPES_H
10092 # include <sys/types.h>
10093 #endif
10094 #if HAVE_SYS_PTRACE_H
10095 # include <sys/ptrace.h>
10096 #endif
10097 #if HAVE_UNISTD_H
10098 # include <unistd.h>
10099 #endif
10100 '
10101 # There is no point in checking if we don't have a prototype.
10102 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
10103 "
10104 if test "x$ac_cv_have_decl_ptrace" = x""yes; then :
10105 ac_have_decl=1
10106 else
10107 ac_have_decl=0
10108 fi
10109
10110 cat >>confdefs.h <<_ACEOF
10111 #define HAVE_DECL_PTRACE $ac_have_decl
10112 _ACEOF
10113 if test $ac_have_decl = 1; then :
10114
10115 else
10116
10117 : ${gdb_cv_func_ptrace_ret='int'}
10118 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10119
10120 fi
10121
10122 # Check return type. Varargs (used on GNU/Linux) conflict with the
10123 # empty argument list, so check for that explicitly.
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
10125 $as_echo_n "checking return type of ptrace... " >&6; }
10126 if test "${gdb_cv_func_ptrace_ret+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10128 else
10129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10130 /* end confdefs.h. */
10131 $gdb_ptrace_headers
10132 int
10133 main ()
10134 {
10135 extern long ptrace (enum __ptrace_request, ...);
10136 ;
10137 return 0;
10138 }
10139 _ACEOF
10140 if ac_fn_c_try_compile "$LINENO"; then :
10141 gdb_cv_func_ptrace_ret='long'
10142 else
10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 $gdb_ptrace_headers
10146 int
10147 main ()
10148 {
10149 extern int ptrace ();
10150 ;
10151 return 0;
10152 }
10153 _ACEOF
10154 if ac_fn_c_try_compile "$LINENO"; then :
10155 gdb_cv_func_ptrace_ret='int'
10156 else
10157 gdb_cv_func_ptrace_ret='long'
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10160 fi
10161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10162 fi
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
10164 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
10165
10166 cat >>confdefs.h <<_ACEOF
10167 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
10168 _ACEOF
10169
10170 # Check argument types.
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
10172 $as_echo_n "checking types of arguments for ptrace... " >&6; }
10173 if test "${gdb_cv_func_ptrace_args+set}" = set; then :
10174 $as_echo_n "(cached) " >&6
10175 else
10176
10177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10178 /* end confdefs.h. */
10179 $gdb_ptrace_headers
10180 int
10181 main ()
10182 {
10183 extern long ptrace (enum __ptrace_request, ...);
10184 ;
10185 return 0;
10186 }
10187 _ACEOF
10188 if ac_fn_c_try_compile "$LINENO"; then :
10189 gdb_cv_func_ptrace_args='int,int,long,long'
10190 else
10191
10192 for gdb_arg1 in 'int' 'long'; do
10193 for gdb_arg2 in 'pid_t' 'int' 'long'; do
10194 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
10195 for gdb_arg4 in 'int' 'long'; do
10196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10197 /* end confdefs.h. */
10198 $gdb_ptrace_headers
10199 int
10200 main ()
10201 {
10202
10203 extern $gdb_cv_func_ptrace_ret
10204 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
10205
10206 ;
10207 return 0;
10208 }
10209 _ACEOF
10210 if ac_fn_c_try_compile "$LINENO"; then :
10211 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
10212 break 4;
10213 fi
10214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10215 for gdb_arg5 in 'int *' 'int' 'long'; do
10216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10217 /* end confdefs.h. */
10218 $gdb_ptrace_headers
10219 int
10220 main ()
10221 {
10222
10223 extern $gdb_cv_func_ptrace_ret
10224 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
10225
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 if ac_fn_c_try_compile "$LINENO"; then :
10231
10232 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
10233 break 5;
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10236 done
10237 done
10238 done
10239 done
10240 done
10241 # Provide a safe default value.
10242 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
10243
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
10248 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
10249 ac_save_IFS=$IFS; IFS=','
10250 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
10251 IFS=$ac_save_IFS
10252 shift
10253
10254 cat >>confdefs.h <<_ACEOF
10255 #define PTRACE_TYPE_ARG3 $3
10256 _ACEOF
10257
10258 if test -n "$5"; then
10259
10260 cat >>confdefs.h <<_ACEOF
10261 #define PTRACE_TYPE_ARG5 $5
10262 _ACEOF
10263
10264 fi
10265
10266 if test "$cross_compiling" = no; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10268 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10269 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272 if test "$cross_compiling" = yes; then :
10273 as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
10274 else
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10277 $ac_includes_default
10278 int
10279 main ()
10280 {
10281 /* If this system has a BSD-style setpgrp which takes arguments,
10282 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
10283 exit successfully. */
10284 return setpgrp (1,1) != -1;
10285 ;
10286 return 0;
10287 }
10288 _ACEOF
10289 if ac_fn_c_try_run "$LINENO"; then :
10290 ac_cv_func_setpgrp_void=no
10291 else
10292 ac_cv_func_setpgrp_void=yes
10293 fi
10294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10295 conftest.$ac_objext conftest.beam conftest.$ac_ext
10296 fi
10297
10298 fi
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10300 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10301 if test $ac_cv_func_setpgrp_void = yes; then
10302
10303 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10304
10305 fi
10306
10307 else
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
10309 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
10310 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10315
10316 #include <unistd.h>
10317
10318 int
10319 main ()
10320 {
10321
10322 if (setpgrp(1,1) == -1)
10323 exit (0);
10324 else
10325 exit (1);
10326
10327 ;
10328 return 0;
10329 }
10330 _ACEOF
10331 if ac_fn_c_try_compile "$LINENO"; then :
10332 ac_cv_func_setpgrp_void=no
10333 else
10334 ac_cv_func_setpgrp_void=yes
10335 fi
10336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10337 fi
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
10339 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
10340 if test $ac_cv_func_setpgrp_void = yes; then
10341 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
10342
10343 fi
10344 fi
10345
10346 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
10347 # since sigsetjmp might only be defined as a macro.
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
10349 $as_echo_n "checking for sigsetjmp... " >&6; }
10350 if test "${gdb_cv_func_sigsetjmp+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355
10356 #include <setjmp.h>
10357
10358 int
10359 main ()
10360 {
10361 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
10362 ;
10363 return 0;
10364 }
10365 _ACEOF
10366 if ac_fn_c_try_compile "$LINENO"; then :
10367 gdb_cv_func_sigsetjmp=yes
10368 else
10369 gdb_cv_func_sigsetjmp=no
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
10374 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
10375 if test $gdb_cv_func_sigsetjmp = yes; then
10376
10377 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
10378
10379 fi
10380
10381 # Assume we'll default to using the included libiberty regex.
10382 gdb_use_included_regex=yes
10383
10384 # However, if the system regex is GNU regex, then default to *not*
10385 # using the included regex.
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
10387 $as_echo_n "checking for GNU regex... " >&6; }
10388 if test "${gdb_cv_have_gnu_regex+set}" = set; then :
10389 $as_echo_n "(cached) " >&6
10390 else
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10393 #include <gnu-versions.h>
10394 int
10395 main ()
10396 {
10397 #define REGEX_INTERFACE_VERSION 1
10398 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
10399 # error "Version mismatch"
10400 #endif
10401 ;
10402 return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406 gdb_cv_have_gnu_regex=yes
10407 else
10408 gdb_cv_have_gnu_regex=no
10409 fi
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 fi
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
10413 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
10414 if test $gdb_cv_have_gnu_regex = yes; then
10415 gdb_use_included_regex=no
10416 fi
10417
10418
10419 # Check whether --with-included-regex was given.
10420 if test "${with_included_regex+set}" = set; then :
10421 withval=$with_included_regex; gdb_with_regex=$withval
10422 else
10423 gdb_with_regex=$gdb_use_included_regex
10424 fi
10425
10426 if test "$gdb_with_regex" = yes; then
10427
10428 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
10429
10430 fi
10431
10432 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
10433 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
10434 #include <sys/proc.h>
10435
10436 "
10437 if test "x$ac_cv_member_struct_thread_td_pcb" = x""yes; then :
10438
10439 cat >>confdefs.h <<_ACEOF
10440 #define HAVE_STRUCT_THREAD_TD_PCB 1
10441 _ACEOF
10442
10443
10444 fi
10445
10446
10447 # See if <sys/lwp.h> defines `struct lwp`.
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
10449 $as_echo_n "checking for struct lwp... " >&6; }
10450 if test "${gdb_cv_struct_lwp+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
10452 else
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 #include <sys/param.h>
10456 #include <sys/lwp.h>
10457 int
10458 main ()
10459 {
10460 struct lwp l;
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 if ac_fn_c_try_compile "$LINENO"; then :
10466 gdb_cv_struct_lwp=yes
10467 else
10468 gdb_cv_struct_lwp=no
10469 fi
10470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10471 fi
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
10473 $as_echo "$gdb_cv_struct_lwp" >&6; }
10474 if test $gdb_cv_struct_lwp = yes; then
10475
10476 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
10477
10478 fi
10479
10480 # See if <machine/reg.h> degines `struct reg'.
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
10482 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
10483 if test "${gdb_cv_struct_reg+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10485 else
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 #include <sys/types.h>
10489 #include <machine/reg.h>
10490 int
10491 main ()
10492 {
10493 struct reg r;
10494 ;
10495 return 0;
10496 }
10497 _ACEOF
10498 if ac_fn_c_try_compile "$LINENO"; then :
10499 gdb_cv_struct_reg=yes
10500 else
10501 gdb_cv_struct_reg=no
10502 fi
10503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10504 fi
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
10506 $as_echo "$gdb_cv_struct_reg" >&6; }
10507 if test $gdb_cv_struct_reg = yes; then
10508
10509 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
10510
10511 fi
10512
10513 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
10514 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
10515 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <machine/reg.h>
10516 "
10517 if test "x$ac_cv_member_struct_reg_r_fs" = x""yes; then :
10518
10519 cat >>confdefs.h <<_ACEOF
10520 #define HAVE_STRUCT_REG_R_FS 1
10521 _ACEOF
10522
10523
10524 fi
10525 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <machine/reg.h>
10526 "
10527 if test "x$ac_cv_member_struct_reg_r_gs" = x""yes; then :
10528
10529 cat >>confdefs.h <<_ACEOF
10530 #define HAVE_STRUCT_REG_R_GS 1
10531 _ACEOF
10532
10533
10534 fi
10535
10536
10537 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
10539 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
10540 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544 /* end confdefs.h. */
10545 #include <sys/ptrace.h>
10546 int
10547 main ()
10548 {
10549 PTRACE_GETREGS;
10550 ;
10551 return 0;
10552 }
10553 _ACEOF
10554 if ac_fn_c_try_compile "$LINENO"; then :
10555 gdb_cv_have_ptrace_getregs=yes
10556 else
10557 gdb_cv_have_ptrace_getregs=no
10558 fi
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560 fi
10561
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
10563 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
10564 if test $gdb_cv_have_ptrace_getregs = yes; then
10565
10566 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
10567
10568 fi
10569
10570 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
10572 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
10573 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then :
10574 $as_echo_n "(cached) " >&6
10575 else
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10578 #include <sys/ptrace.h>
10579 int
10580 main ()
10581 {
10582 PTRACE_GETFPXREGS;
10583 ;
10584 return 0;
10585 }
10586 _ACEOF
10587 if ac_fn_c_try_compile "$LINENO"; then :
10588 gdb_cv_have_ptrace_getfpxregs=yes
10589 else
10590 gdb_cv_have_ptrace_getfpxregs=no
10591 fi
10592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10593 fi
10594
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
10596 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
10597 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
10598
10599 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
10600
10601 fi
10602
10603 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
10605 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
10606 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then :
10607 $as_echo_n "(cached) " >&6
10608 else
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #include <sys/types.h>
10612 #include <sys/ptrace.h>
10613 int
10614 main ()
10615 {
10616 PT_GETDBREGS;
10617 ;
10618 return 0;
10619 }
10620 _ACEOF
10621 if ac_fn_c_try_compile "$LINENO"; then :
10622 gdb_cv_have_pt_getdbregs=yes
10623 else
10624 gdb_cv_have_pt_getdbregs=no
10625 fi
10626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 fi
10628
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
10630 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
10631 if test $gdb_cv_have_pt_getdbregs = yes; then
10632
10633 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
10634
10635 fi
10636
10637 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
10639 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
10640 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then :
10641 $as_echo_n "(cached) " >&6
10642 else
10643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644 /* end confdefs.h. */
10645 #include <sys/types.h>
10646 #include <sys/ptrace.h>
10647 int
10648 main ()
10649 {
10650 PT_GETXMMREGS;
10651 ;
10652 return 0;
10653 }
10654 _ACEOF
10655 if ac_fn_c_try_compile "$LINENO"; then :
10656 gdb_cv_have_pt_getxmmregs=yes
10657 else
10658 gdb_cv_have_pt_getxmmregs=no
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10661 fi
10662
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
10664 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
10665 if test $gdb_cv_have_pt_getxmmregs = yes; then
10666
10667 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
10668
10669 fi
10670
10671 # Detect which type of /proc is in use, such as for Unixware or Solaris.
10672
10673 if test "${target}" = "${host}"; then
10674 case "${host}" in
10675 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
10676
10677 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10678
10679 ;;
10680 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
10681
10682 $as_echo "#define NEW_PROC_API 1" >>confdefs.h
10683
10684 ;;
10685 mips-sgi-irix5*)
10686 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
10687
10688 $as_echo "#define _KMEMUSER 1" >>confdefs.h
10689
10690 ;;
10691 esac
10692 fi
10693
10694 if test "$ac_cv_header_sys_procfs_h" = yes; then
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
10696 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
10697 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
10698 $as_echo_n "(cached) " >&6
10699 else
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702
10703 #define _SYSCALL32
10704 /* Needed for new procfs interface on sparc-solaris. */
10705 #define _STRUCTURED_PROC 1
10706 #include <sys/procfs.h>
10707 int
10708 main ()
10709 {
10710 pstatus_t avar
10711 ;
10712 return 0;
10713 }
10714 _ACEOF
10715 if ac_fn_c_try_compile "$LINENO"; then :
10716 bfd_cv_have_sys_procfs_type_pstatus_t=yes
10717 else
10718 bfd_cv_have_sys_procfs_type_pstatus_t=no
10719
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10722 fi
10723
10724 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
10725
10726 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
10727
10728 fi
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
10730 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
10731
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prrun_t in sys/procfs.h" >&5
10733 $as_echo_n "checking for prrun_t in sys/procfs.h... " >&6; }
10734 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10736 else
10737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h. */
10739
10740 #define _SYSCALL32
10741 /* Needed for new procfs interface on sparc-solaris. */
10742 #define _STRUCTURED_PROC 1
10743 #include <sys/procfs.h>
10744 int
10745 main ()
10746 {
10747 prrun_t avar
10748 ;
10749 return 0;
10750 }
10751 _ACEOF
10752 if ac_fn_c_try_compile "$LINENO"; then :
10753 bfd_cv_have_sys_procfs_type_prrun_t=yes
10754 else
10755 bfd_cv_have_sys_procfs_type_prrun_t=no
10756
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10759 fi
10760
10761 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
10762
10763 $as_echo "#define HAVE_PRRUN_T 1" >>confdefs.h
10764
10765 fi
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
10767 $as_echo "$bfd_cv_have_sys_procfs_type_prrun_t" >&6; }
10768
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
10770 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
10771 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then :
10772 $as_echo_n "(cached) " >&6
10773 else
10774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h. */
10776
10777 #define _SYSCALL32
10778 /* Needed for new procfs interface on sparc-solaris. */
10779 #define _STRUCTURED_PROC 1
10780 #include <sys/procfs.h>
10781 int
10782 main ()
10783 {
10784 gregset_t avar
10785 ;
10786 return 0;
10787 }
10788 _ACEOF
10789 if ac_fn_c_try_compile "$LINENO"; then :
10790 bfd_cv_have_sys_procfs_type_gregset_t=yes
10791 else
10792 bfd_cv_have_sys_procfs_type_gregset_t=no
10793
10794 fi
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10796 fi
10797
10798 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
10799
10800 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
10801
10802 fi
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
10804 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
10805
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
10807 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
10808 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10813
10814 #define _SYSCALL32
10815 /* Needed for new procfs interface on sparc-solaris. */
10816 #define _STRUCTURED_PROC 1
10817 #include <sys/procfs.h>
10818 int
10819 main ()
10820 {
10821 fpregset_t avar
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_compile "$LINENO"; then :
10827 bfd_cv_have_sys_procfs_type_fpregset_t=yes
10828 else
10829 bfd_cv_have_sys_procfs_type_fpregset_t=no
10830
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833 fi
10834
10835 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
10836
10837 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
10838
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
10841 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
10842
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
10844 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
10845 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10849 /* end confdefs.h. */
10850
10851 #define _SYSCALL32
10852 /* Needed for new procfs interface on sparc-solaris. */
10853 #define _STRUCTURED_PROC 1
10854 #include <sys/procfs.h>
10855 int
10856 main ()
10857 {
10858 prgregset_t avar
10859 ;
10860 return 0;
10861 }
10862 _ACEOF
10863 if ac_fn_c_try_compile "$LINENO"; then :
10864 bfd_cv_have_sys_procfs_type_prgregset_t=yes
10865 else
10866 bfd_cv_have_sys_procfs_type_prgregset_t=no
10867
10868 fi
10869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10870 fi
10871
10872 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
10873
10874 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
10875
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
10878 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
10879
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
10881 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
10882 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then :
10883 $as_echo_n "(cached) " >&6
10884 else
10885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10886 /* end confdefs.h. */
10887
10888 #define _SYSCALL32
10889 /* Needed for new procfs interface on sparc-solaris. */
10890 #define _STRUCTURED_PROC 1
10891 #include <sys/procfs.h>
10892 int
10893 main ()
10894 {
10895 prfpregset_t avar
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 if ac_fn_c_try_compile "$LINENO"; then :
10901 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
10902 else
10903 bfd_cv_have_sys_procfs_type_prfpregset_t=no
10904
10905 fi
10906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10907 fi
10908
10909 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
10910
10911 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
10912
10913 fi
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
10915 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
10916
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
10918 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
10919 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then :
10920 $as_echo_n "(cached) " >&6
10921 else
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924
10925 #define _SYSCALL32
10926 /* Needed for new procfs interface on sparc-solaris. */
10927 #define _STRUCTURED_PROC 1
10928 #include <sys/procfs.h>
10929 int
10930 main ()
10931 {
10932 prgregset32_t avar
10933 ;
10934 return 0;
10935 }
10936 _ACEOF
10937 if ac_fn_c_try_compile "$LINENO"; then :
10938 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
10939 else
10940 bfd_cv_have_sys_procfs_type_prgregset32_t=no
10941
10942 fi
10943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944 fi
10945
10946 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
10947
10948 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
10949
10950 fi
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
10952 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
10953
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset32_t in sys/procfs.h" >&5
10955 $as_echo_n "checking for prfpregset32_t in sys/procfs.h... " >&6; }
10956 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then :
10957 $as_echo_n "(cached) " >&6
10958 else
10959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10960 /* end confdefs.h. */
10961
10962 #define _SYSCALL32
10963 /* Needed for new procfs interface on sparc-solaris. */
10964 #define _STRUCTURED_PROC 1
10965 #include <sys/procfs.h>
10966 int
10967 main ()
10968 {
10969 prfpregset32_t avar
10970 ;
10971 return 0;
10972 }
10973 _ACEOF
10974 if ac_fn_c_try_compile "$LINENO"; then :
10975 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
10976 else
10977 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
10978
10979 fi
10980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10981 fi
10982
10983 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
10984
10985 $as_echo "#define HAVE_PRFPREGSET32_T 1" >>confdefs.h
10986
10987 fi
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
10989 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6; }
10990
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
10992 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
10993 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998
10999 #define _SYSCALL32
11000 /* Needed for new procfs interface on sparc-solaris. */
11001 #define _STRUCTURED_PROC 1
11002 #include <sys/procfs.h>
11003 int
11004 main ()
11005 {
11006 lwpid_t avar
11007 ;
11008 return 0;
11009 }
11010 _ACEOF
11011 if ac_fn_c_try_compile "$LINENO"; then :
11012 bfd_cv_have_sys_procfs_type_lwpid_t=yes
11013 else
11014 bfd_cv_have_sys_procfs_type_lwpid_t=no
11015
11016 fi
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 fi
11019
11020 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
11021
11022 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
11023
11024 fi
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
11026 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
11027
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
11029 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
11030 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then :
11031 $as_echo_n "(cached) " >&6
11032 else
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035
11036 #define _SYSCALL32
11037 /* Needed for new procfs interface on sparc-solaris. */
11038 #define _STRUCTURED_PROC 1
11039 #include <sys/procfs.h>
11040 int
11041 main ()
11042 {
11043 psaddr_t avar
11044 ;
11045 return 0;
11046 }
11047 _ACEOF
11048 if ac_fn_c_try_compile "$LINENO"; then :
11049 bfd_cv_have_sys_procfs_type_psaddr_t=yes
11050 else
11051 bfd_cv_have_sys_procfs_type_psaddr_t=no
11052
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11055 fi
11056
11057 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
11058
11059 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
11060
11061 fi
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
11063 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
11064
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prsysent_t in sys/procfs.h" >&5
11066 $as_echo_n "checking for prsysent_t in sys/procfs.h... " >&6; }
11067 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11069 else
11070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11071 /* end confdefs.h. */
11072
11073 #define _SYSCALL32
11074 /* Needed for new procfs interface on sparc-solaris. */
11075 #define _STRUCTURED_PROC 1
11076 #include <sys/procfs.h>
11077 int
11078 main ()
11079 {
11080 prsysent_t avar
11081 ;
11082 return 0;
11083 }
11084 _ACEOF
11085 if ac_fn_c_try_compile "$LINENO"; then :
11086 bfd_cv_have_sys_procfs_type_prsysent_t=yes
11087 else
11088 bfd_cv_have_sys_procfs_type_prsysent_t=no
11089
11090 fi
11091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11092 fi
11093
11094 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
11095
11096 $as_echo "#define HAVE_PRSYSENT_T 1" >>confdefs.h
11097
11098 fi
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
11100 $as_echo "$bfd_cv_have_sys_procfs_type_prsysent_t" >&6; }
11101
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigset_t in sys/procfs.h" >&5
11103 $as_echo_n "checking for pr_sigset_t in sys/procfs.h... " >&6; }
11104 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then :
11105 $as_echo_n "(cached) " >&6
11106 else
11107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108 /* end confdefs.h. */
11109
11110 #define _SYSCALL32
11111 /* Needed for new procfs interface on sparc-solaris. */
11112 #define _STRUCTURED_PROC 1
11113 #include <sys/procfs.h>
11114 int
11115 main ()
11116 {
11117 pr_sigset_t avar
11118 ;
11119 return 0;
11120 }
11121 _ACEOF
11122 if ac_fn_c_try_compile "$LINENO"; then :
11123 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
11124 else
11125 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
11126
11127 fi
11128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11129 fi
11130
11131 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
11132
11133 $as_echo "#define HAVE_PR_SIGSET_T 1" >>confdefs.h
11134
11135 fi
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
11137 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6; }
11138
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_sigaction64_t in sys/procfs.h" >&5
11140 $as_echo_n "checking for pr_sigaction64_t in sys/procfs.h... " >&6; }
11141 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146
11147 #define _SYSCALL32
11148 /* Needed for new procfs interface on sparc-solaris. */
11149 #define _STRUCTURED_PROC 1
11150 #include <sys/procfs.h>
11151 int
11152 main ()
11153 {
11154 pr_sigaction64_t avar
11155 ;
11156 return 0;
11157 }
11158 _ACEOF
11159 if ac_fn_c_try_compile "$LINENO"; then :
11160 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
11161 else
11162 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
11163
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11166 fi
11167
11168 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
11169
11170 $as_echo "#define HAVE_PR_SIGACTION64_T 1" >>confdefs.h
11171
11172 fi
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
11174 $as_echo "$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6; }
11175
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pr_siginfo64_t in sys/procfs.h" >&5
11177 $as_echo_n "checking for pr_siginfo64_t in sys/procfs.h... " >&6; }
11178 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then :
11179 $as_echo_n "(cached) " >&6
11180 else
11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11183
11184 #define _SYSCALL32
11185 /* Needed for new procfs interface on sparc-solaris. */
11186 #define _STRUCTURED_PROC 1
11187 #include <sys/procfs.h>
11188 int
11189 main ()
11190 {
11191 pr_siginfo64_t avar
11192 ;
11193 return 0;
11194 }
11195 _ACEOF
11196 if ac_fn_c_try_compile "$LINENO"; then :
11197 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
11198 else
11199 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
11200
11201 fi
11202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11203 fi
11204
11205 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
11206
11207 $as_echo "#define HAVE_PR_SIGINFO64_T 1" >>confdefs.h
11208
11209 fi
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
11211 $as_echo "$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6; }
11212
11213
11214
11215
11216
11217 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether prfpregset_t type is broken" >&5
11219 $as_echo_n "checking whether prfpregset_t type is broken... " >&6; }
11220 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then :
11221 $as_echo_n "(cached) " >&6
11222 else
11223 if test "$cross_compiling" = yes; then :
11224 gdb_cv_prfpregset_t_broken=yes
11225 else
11226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 #include <sys/procfs.h>
11229 int main ()
11230 {
11231 if (sizeof (prfpregset_t) == sizeof (void *))
11232 return 1;
11233 return 0;
11234 }
11235 _ACEOF
11236 if ac_fn_c_try_run "$LINENO"; then :
11237 gdb_cv_prfpregset_t_broken=no
11238 else
11239 gdb_cv_prfpregset_t_broken=yes
11240 fi
11241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11242 conftest.$ac_objext conftest.beam conftest.$ac_ext
11243 fi
11244
11245 fi
11246
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_prfpregset_t_broken" >&5
11248 $as_echo "$gdb_cv_prfpregset_t_broken" >&6; }
11249 if test $gdb_cv_prfpregset_t_broken = yes; then
11250
11251 $as_echo "#define PRFPREGSET_T_BROKEN 1" >>confdefs.h
11252
11253 fi
11254 fi
11255
11256
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
11258 $as_echo_n "checking for PIOCSET ioctl entry in sys/procfs.h... " >&6; }
11259 if test "${gdb_cv_have_procfs_piocset+set}" = set; then :
11260 $as_echo_n "(cached) " >&6
11261 else
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11264 #include <unistd.h>
11265 #include <sys/types.h>
11266 #include <sys/procfs.h>
11267
11268 int
11269 main ()
11270 {
11271
11272 int dummy;;
11273 dummy = ioctl(0, PIOCSET, &dummy);
11274
11275 ;
11276 return 0;
11277 }
11278 _ACEOF
11279 if ac_fn_c_try_compile "$LINENO"; then :
11280 gdb_cv_have_procfs_piocset=yes
11281 else
11282 gdb_cv_have_procfs_piocset=no
11283 fi
11284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11285 fi
11286
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_procfs_piocset" >&5
11288 $as_echo "$gdb_cv_have_procfs_piocset" >&6; }
11289 if test $gdb_cv_have_procfs_piocset = yes; then
11290
11291 $as_echo "#define HAVE_PROCFS_PIOCSET 1" >>confdefs.h
11292
11293 fi
11294 fi
11295
11296 if test ${host} = ${target} ; then
11297
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member l_addr in struct link_map" >&5
11299 $as_echo_n "checking for member l_addr in struct link_map... " >&6; }
11300 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then :
11301 $as_echo_n "(cached) " >&6
11302 else
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305 #include <link.h>
11306 int
11307 main ()
11308 {
11309 struct link_map lm; (void) lm.l_addr;
11310 ;
11311 return 0;
11312 }
11313 _ACEOF
11314 if ac_fn_c_try_compile "$LINENO"; then :
11315 gdb_cv_have_struct_link_map_with_l_members=yes
11316 else
11317 gdb_cv_have_struct_link_map_with_l_members=no
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320 fi
11321
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
11323 $as_echo "$gdb_cv_have_struct_link_map_with_l_members" >&6; }
11324 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
11325
11326 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1" >>confdefs.h
11327
11328 fi
11329
11330
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member lm_addr in struct link_map" >&5
11332 $as_echo_n "checking for member lm_addr in struct link_map... " >&6; }
11333 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
11335 else
11336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11337 /* end confdefs.h. */
11338 #include <sys/types.h>
11339 #include <link.h>
11340 int
11341 main ()
11342 {
11343 struct link_map lm; (void) lm.lm_addr;
11344 ;
11345 return 0;
11346 }
11347 _ACEOF
11348 if ac_fn_c_try_compile "$LINENO"; then :
11349 gdb_cv_have_struct_link_map_with_lm_members=yes
11350 else
11351 gdb_cv_have_struct_link_map_with_lm_members=no
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 fi
11355
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
11357 $as_echo "$gdb_cv_have_struct_link_map_with_lm_members" >&6; }
11358 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
11359
11360 $as_echo "#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1" >>confdefs.h
11361
11362 fi
11363
11364
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for member som_addr in struct so_map" >&5
11366 $as_echo_n "checking for member som_addr in struct so_map... " >&6; }
11367 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then :
11368 $as_echo_n "(cached) " >&6
11369 else
11370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11371 /* end confdefs.h. */
11372 #include <sys/types.h>
11373 #ifdef HAVE_NLIST_H
11374 #include <nlist.h>
11375 #endif
11376 #include <link.h>
11377 int
11378 main ()
11379 {
11380 struct so_map lm; (void) lm.som_addr;
11381 ;
11382 return 0;
11383 }
11384 _ACEOF
11385 if ac_fn_c_try_compile "$LINENO"; then :
11386 gdb_cv_have_struct_so_map_with_som_members=yes
11387 else
11388 gdb_cv_have_struct_so_map_with_som_members=no
11389 fi
11390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11391 fi
11392
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
11394 $as_echo "$gdb_cv_have_struct_so_map_with_som_members" >&6; }
11395 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
11396
11397 $as_echo "#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1" >>confdefs.h
11398
11399 fi
11400
11401
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct link_map32 in sys/link.h" >&5
11403 $as_echo_n "checking for struct link_map32 in sys/link.h... " >&6; }
11404 if test "${gdb_cv_have_struct_link_map32+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
11406 else
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409 #define _SYSCALL32
11410 #include <sys/link.h>
11411 int
11412 main ()
11413 {
11414 struct link_map32 l;
11415 ;
11416 return 0;
11417 }
11418 _ACEOF
11419 if ac_fn_c_try_compile "$LINENO"; then :
11420 gdb_cv_have_struct_link_map32=yes
11421 else
11422 gdb_cv_have_struct_link_map32=no
11423 fi
11424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425 fi
11426
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_struct_link_map32" >&5
11428 $as_echo "$gdb_cv_have_struct_link_map32" >&6; }
11429 if test $gdb_cv_have_struct_link_map32 = yes; then
11430
11431 $as_echo "#define HAVE_STRUCT_LINK_MAP32 1" >>confdefs.h
11432
11433
11434 $as_echo "#define _SYSCALL32 1" >>confdefs.h
11435
11436 fi
11437 fi
11438
11439 # Check if the compiler supports the `long long' type.
11440
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
11442 $as_echo_n "checking for long long support in compiler... " >&6; }
11443 if test "${gdb_cv_c_long_long+set}" = set; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11448 extern long long foo;
11449 int
11450 main ()
11451 {
11452 switch (foo & 2) { case 0: return 1; }
11453 ;
11454 return 0;
11455 }
11456 _ACEOF
11457 if ac_fn_c_try_compile "$LINENO"; then :
11458 gdb_cv_c_long_long=yes
11459 else
11460 gdb_cv_c_long_long=no
11461 fi
11462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463 fi
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
11465 $as_echo "$gdb_cv_c_long_long" >&6; }
11466 if test $gdb_cv_c_long_long = yes; then
11467
11468 $as_echo "#define CC_HAS_LONG_LONG 1" >>confdefs.h
11469
11470 fi
11471
11472 # Check if the compiler and runtime support printing long longs.
11473
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
11475 $as_echo_n "checking for long long support in printf... " >&6; }
11476 if test "${gdb_cv_printf_has_long_long+set}" = set; then :
11477 $as_echo_n "(cached) " >&6
11478 else
11479 if test "$cross_compiling" = yes; then :
11480 gdb_cv_printf_has_long_long=no
11481 else
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483 /* end confdefs.h. */
11484 $ac_includes_default
11485 int
11486 main ()
11487 {
11488 char buf[32];
11489 long long l = 0;
11490 l = (l << 16) + 0x0123;
11491 l = (l << 16) + 0x4567;
11492 l = (l << 16) + 0x89ab;
11493 l = (l << 16) + 0xcdef;
11494 sprintf (buf, "0x%016llx", l);
11495 return (strcmp ("0x0123456789abcdef", buf));
11496 ;
11497 return 0;
11498 }
11499 _ACEOF
11500 if ac_fn_c_try_run "$LINENO"; then :
11501 gdb_cv_printf_has_long_long=yes
11502 else
11503 gdb_cv_printf_has_long_long=no
11504 fi
11505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11506 conftest.$ac_objext conftest.beam conftest.$ac_ext
11507 fi
11508
11509 fi
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
11511 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
11512 if test $gdb_cv_printf_has_long_long = yes; then
11513
11514 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
11515
11516 fi
11517
11518 # Check if the compiler and runtime support printing decfloats.
11519
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
11521 $as_echo_n "checking for decfloat support in printf... " >&6; }
11522 if test "${gdb_cv_printf_has_decfloat+set}" = set; then :
11523 $as_echo_n "(cached) " >&6
11524 else
11525 if test "$cross_compiling" = yes; then :
11526 gdb_cv_printf_has_decfloat=no
11527 else
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 $ac_includes_default
11531 int
11532 main ()
11533 {
11534 char buf[64];
11535 _Decimal32 d32 = 1.2345df;
11536 _Decimal64 d64 = 1.2345dd;
11537 _Decimal128 d128 = 1.2345dl;
11538 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
11539 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
11540 ;
11541 return 0;
11542 }
11543 _ACEOF
11544 if ac_fn_c_try_run "$LINENO"; then :
11545 gdb_cv_printf_has_decfloat=yes
11546 else
11547 gdb_cv_printf_has_decfloat=no
11548 fi
11549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11550 conftest.$ac_objext conftest.beam conftest.$ac_ext
11551 fi
11552
11553 fi
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
11555 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
11556 if test $gdb_cv_printf_has_decfloat = yes; then
11557
11558 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
11559
11560 fi
11561
11562 # Check if the compiler supports the `long double' type. We can't use
11563 # AC_C_LONG_DOUBLE because that one does additional checks on the
11564 # constants defined in <float.h> that fail on some systems,
11565 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
11566
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
11568 $as_echo_n "checking for long double support in compiler... " >&6; }
11569 if test "${gdb_cv_c_long_double+set}" = set; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h. */
11574 long double foo;
11575 _ACEOF
11576 if ac_fn_c_try_compile "$LINENO"; then :
11577 gdb_cv_c_long_double=yes
11578 else
11579 gdb_cv_c_long_double=no
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
11584 $as_echo "$gdb_cv_c_long_double" >&6; }
11585 if test $gdb_cv_c_long_double = yes; then
11586
11587 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
11588
11589 fi
11590
11591 # Check if the compiler and runtime support printing long doubles.
11592
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
11594 $as_echo_n "checking for long double support in printf... " >&6; }
11595 if test "${gdb_cv_printf_has_long_double+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597 else
11598 if test "$cross_compiling" = yes; then :
11599 gdb_cv_printf_has_long_double=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[16];
11608 long double f = 3.141592653;
11609 sprintf (buf, "%Lg", f);
11610 return (strncmp ("3.14159", buf, 7));
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_run "$LINENO"; then :
11616 gdb_cv_printf_has_long_double=yes
11617 else
11618 gdb_cv_printf_has_long_double=no
11619 fi
11620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11621 conftest.$ac_objext conftest.beam conftest.$ac_ext
11622 fi
11623
11624 fi
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
11626 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
11627 if test $gdb_cv_printf_has_long_double = yes; then
11628
11629 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
11630
11631 fi
11632
11633 # Check if the compiler and runtime support scanning long doubles.
11634
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
11636 $as_echo_n "checking for long double support in scanf... " >&6; }
11637 if test "${gdb_cv_scanf_has_long_double+set}" = set; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 if test "$cross_compiling" = yes; then :
11641 gdb_cv_scanf_has_long_double=no
11642 else
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645 #include <stdio.h>
11646 int
11647 main ()
11648 {
11649 char *buf = "3.141592653";
11650 long double f = 0;
11651 sscanf (buf, "%Lg", &f);
11652 return !(f > 3.14159 && f < 3.14160);
11653 ;
11654 return 0;
11655 }
11656 _ACEOF
11657 if ac_fn_c_try_run "$LINENO"; then :
11658 gdb_cv_scanf_has_long_double=yes
11659 else
11660 gdb_cv_scanf_has_long_double=no
11661 fi
11662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11663 conftest.$ac_objext conftest.beam conftest.$ac_ext
11664 fi
11665
11666 fi
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
11668 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
11669 if test $gdb_cv_scanf_has_long_double = yes; then
11670
11671 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
11672
11673 fi
11674
11675 case ${host_os} in
11676 aix*)
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
11678 $as_echo_n "checking for -bbigtoc option... " >&6; }
11679 if test "${gdb_cv_bigtoc+set}" = set; then :
11680 $as_echo_n "(cached) " >&6
11681 else
11682
11683 SAVE_LDFLAGS=$LDFLAGS
11684
11685 case $GCC in
11686 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11687 *) gdb_cv_bigtoc=-bbigtoc ;;
11688 esac
11689
11690 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11693
11694 int
11695 main ()
11696 {
11697 int i;
11698 ;
11699 return 0;
11700 }
11701 _ACEOF
11702 if ac_fn_c_try_link "$LINENO"; then :
11703
11704 else
11705 gdb_cv_bigtoc=
11706 fi
11707 rm -f core conftest.err conftest.$ac_objext \
11708 conftest$ac_exeext conftest.$ac_ext
11709 LDFLAGS="${SAVE_LDFLAGS}"
11710
11711 fi
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
11713 $as_echo "$gdb_cv_bigtoc" >&6; }
11714 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
11715 ;;
11716 esac
11717
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
11719 $as_echo_n "checking for the dynamic export flag... " >&6; }
11720 dynamic_list=false
11721 if test "${gdb_native}" = yes; then
11722 # The dynamically loaded libthread_db needs access to symbols in the gdb
11723 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
11724 # may not be supported there.
11725 old_LDFLAGS="$LDFLAGS"
11726 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
11727 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
11728 LDFLAGS="$LDFLAGS $RDYNAMIC"
11729 if test "${have_libpython}" = no; then
11730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11731 /* end confdefs.h. */
11732
11733 int
11734 main ()
11735 {
11736
11737 ;
11738 return 0;
11739 }
11740 _ACEOF
11741 if ac_fn_c_try_link "$LINENO"; then :
11742 dynamic_list=true
11743 fi
11744 rm -f core conftest.err conftest.$ac_objext \
11745 conftest$ac_exeext conftest.$ac_ext
11746 else
11747 # Workaround http://bugs.python.org/issue4434 where static
11748 # libpythonX.Y.a would get its symbols required for
11749 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
11750 # Problem does not happen for the recommended libpythonX.Y.so linkage.
11751 old_CFLAGS="$CFLAGS"
11752 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
11753 if test "$cross_compiling" = yes; then :
11754 true
11755 else
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758 #include "${have_libpython}/Python.h"
11759 int
11760 main ()
11761 {
11762 int err;
11763 Py_Initialize ();
11764 err = PyRun_SimpleString ("import itertools\n");
11765 Py_Finalize ();
11766 return err == 0 ? 0 : 1;
11767 ;
11768 return 0;
11769 }
11770 _ACEOF
11771 if ac_fn_c_try_run "$LINENO"; then :
11772 dynamic_list=true
11773 fi
11774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11775 conftest.$ac_objext conftest.beam conftest.$ac_ext
11776 fi
11777
11778 CFLAGS="$old_CFLAGS"
11779 fi
11780 LDFLAGS="$old_LDFLAGS"
11781 fi
11782 if $dynamic_list; then
11783 found="-Wl,--dynamic-list"
11784 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
11785 else
11786 found="-rdynamic"
11787 RDYNAMIC="-rdynamic"
11788 fi
11789
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
11791 $as_echo "$found" >&6; }
11792
11793
11794 if test ${build} = ${host} -a ${host} = ${target} ; then
11795 case ${host_os} in
11796 solaris*)
11797 # See if thread_db library is around for Solaris thread debugging.
11798 # Note that we must explicitly test for version 1 of the library
11799 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
11800 # the same API.
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris thread debugging library" >&5
11802 $as_echo_n "checking for Solaris thread debugging library... " >&6; }
11803 if test -f /usr/lib/libthread_db.so.1 ; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11806
11807 $as_echo "#define HAVE_THREAD_DB_LIB 1" >>confdefs.h
11808
11809 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
11810 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11813 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 ac_check_lib_save_LIBS=$LIBS
11817 LIBS="-ldl $LIBS"
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11820
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11824 #ifdef __cplusplus
11825 extern "C"
11826 #endif
11827 char dlopen ();
11828 int
11829 main ()
11830 {
11831 return dlopen ();
11832 ;
11833 return 0;
11834 }
11835 _ACEOF
11836 if ac_fn_c_try_link "$LINENO"; then :
11837 ac_cv_lib_dl_dlopen=yes
11838 else
11839 ac_cv_lib_dl_dlopen=no
11840 fi
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11844 fi
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11848 cat >>confdefs.h <<_ACEOF
11849 #define HAVE_LIBDL 1
11850 _ACEOF
11851
11852 LIBS="-ldl $LIBS"
11853
11854 fi
11855
11856 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} $RDYNAMIC"
11857 # Sun randomly tweaked the prototypes in <proc_service.h>
11858 # at one point.
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if <proc_service.h> is old" >&5
11860 $as_echo_n "checking if <proc_service.h> is old... " >&6; }
11861 if test "${gdb_cv_proc_service_is_old+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11867
11868 #include <proc_service.h>
11869 ps_err_e ps_pdwrite
11870 (struct ps_prochandle*, psaddr_t, const void*, size_t);
11871
11872 int
11873 main ()
11874 {
11875
11876 ;
11877 return 0;
11878 }
11879 _ACEOF
11880 if ac_fn_c_try_compile "$LINENO"; then :
11881 gdb_cv_proc_service_is_old=no
11882 else
11883 gdb_cv_proc_service_is_old=yes
11884 fi
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886
11887 fi
11888
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_proc_service_is_old" >&5
11890 $as_echo "$gdb_cv_proc_service_is_old" >&6; }
11891 if test $gdb_cv_proc_service_is_old = yes; then
11892
11893 $as_echo "#define PROC_SERVICE_IS_OLD 1" >>confdefs.h
11894
11895 fi
11896 else
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11899 fi
11900 ;;
11901 aix*)
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
11903 $as_echo_n "checking for AiX thread debugging library... " >&6; }
11904 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
11906 else
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11909 #include <sys/pthdebug.h>
11910 int
11911 main ()
11912 {
11913 #ifndef PTHDB_VERSION_3
11914 #error
11915 #endif
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_compile "$LINENO"; then :
11921 gdb_cv_have_aix_thread_debug=yes
11922 else
11923 gdb_cv_have_aix_thread_debug=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926 fi
11927
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
11929 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
11930 if test $gdb_cv_have_aix_thread_debug = yes; then
11931 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
11932 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
11933 LIBS="$LIBS -lpthdebug"
11934
11935 # Older versions of AIX do not provide the declaration for
11936 # the getthrds function (it appears that it was introduced
11937 # with AIX 6.x).
11938 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
11939 "
11940 if test "x$ac_cv_have_decl_getthrds" = x""yes; then :
11941 ac_have_decl=1
11942 else
11943 ac_have_decl=0
11944 fi
11945
11946 cat >>confdefs.h <<_ACEOF
11947 #define HAVE_DECL_GETTHRDS $ac_have_decl
11948 _ACEOF
11949
11950 fi
11951 ;;
11952 esac
11953
11954 fi
11955
11956 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
11958 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
11959 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
11964 #include <thread_db.h>
11965 int
11966 main ()
11967 {
11968 int i = TD_NOTALLOC;
11969 ;
11970 return 0;
11971 }
11972 _ACEOF
11973 if ac_fn_c_try_compile "$LINENO"; then :
11974 gdb_cv_thread_db_h_has_td_notalloc=yes
11975 else
11976 gdb_cv_thread_db_h_has_td_notalloc=no
11977
11978 fi
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980
11981 fi
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
11983 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
11985 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
11986 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then :
11987 $as_echo_n "(cached) " >&6
11988 else
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11991 #include <thread_db.h>
11992 int
11993 main ()
11994 {
11995 int i = TD_VERSION;
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_compile "$LINENO"; then :
12001 gdb_cv_thread_db_h_has_td_version=yes
12002 else
12003 gdb_cv_thread_db_h_has_td_version=no
12004
12005 fi
12006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12007
12008 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
12010 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
12012 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
12013 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018 #include <thread_db.h>
12019 int
12020 main ()
12021 {
12022 int i = TD_NOTLS;
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_compile "$LINENO"; then :
12028 gdb_cv_thread_db_h_has_td_notls=yes
12029 else
12030 gdb_cv_thread_db_h_has_td_notls=no
12031
12032 fi
12033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12034
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
12037 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
12038 fi
12039 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
12040
12041 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
12042
12043 fi
12044 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
12045
12046 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
12047
12048 fi
12049 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
12050
12051 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
12052
12053 fi
12054
12055 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/syscall.h> has __NR_tkill" >&5
12057 $as_echo_n "checking whether <sys/syscall.h> has __NR_tkill... " >&6; }
12058 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then :
12059 $as_echo_n "(cached) " >&6
12060 else
12061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12062 /* end confdefs.h. */
12063 #include <sys/syscall.h>
12064 int
12065 main ()
12066 {
12067 int i = __NR_tkill;
12068 ;
12069 return 0;
12070 }
12071 _ACEOF
12072 if ac_fn_c_try_compile "$LINENO"; then :
12073 gdb_cv_sys_syscall_h_has_tkill=yes
12074 else
12075 gdb_cv_sys_syscall_h_has_tkill=no
12076
12077 fi
12078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079
12080 fi
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
12082 $as_echo "$gdb_cv_sys_syscall_h_has_tkill" >&6; }
12083 fi
12084 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
12085
12086 $as_echo "#define HAVE_TKILL_SYSCALL 1" >>confdefs.h
12087
12088 fi
12089
12090 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
12091 "
12092 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = x""yes; then :
12093 ac_have_decl=1
12094 else
12095 ac_have_decl=0
12096 fi
12097
12098 cat >>confdefs.h <<_ACEOF
12099 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
12100 _ACEOF
12101
12102
12103 if test "$cross_compiling" = yes; then :
12104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 #include <sys/personality.h>
12107 int
12108 main ()
12109 {
12110
12111 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12112 # define ADDR_NO_RANDOMIZE 0x0040000
12113 # endif
12114 /* Test the flag could be set and stays set. */
12115 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12116 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12117 return 1
12118 ;
12119 return 0;
12120 }
12121 _ACEOF
12122 if ac_fn_c_try_link "$LINENO"; then :
12123 have_personality=true
12124 else
12125 have_personality=false
12126 fi
12127 rm -f core conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
12129 else
12130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 /* end confdefs.h. */
12132 #include <sys/personality.h>
12133 int
12134 main ()
12135 {
12136
12137 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
12138 # define ADDR_NO_RANDOMIZE 0x0040000
12139 # endif
12140 /* Test the flag could be set and stays set. */
12141 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
12142 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
12143 return 1
12144 ;
12145 return 0;
12146 }
12147 _ACEOF
12148 if ac_fn_c_try_run "$LINENO"; then :
12149 have_personality=true
12150 else
12151 have_personality=false
12152 fi
12153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12154 conftest.$ac_objext conftest.beam conftest.$ac_ext
12155 fi
12156
12157 if $have_personality
12158 then
12159
12160 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
12161
12162 fi
12163
12164
12165 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
12166 # except that the argument to --with-sysroot is optional.
12167 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
12168 if test "x$with_sysroot" = xyes; then
12169 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
12170 fi
12171
12172 # Check whether --with-sysroot was given.
12173 if test "${with_sysroot+set}" = set; then :
12174 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
12175 else
12176 TARGET_SYSTEM_ROOT=
12177 fi
12178
12179
12180 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12182 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
12183 ac_define_dir=`eval echo $ac_define_dir`
12184
12185 cat >>confdefs.h <<_ACEOF
12186 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
12187 _ACEOF
12188
12189
12190
12191
12192 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12193 if test "x$prefix" = xNONE; then
12194 test_prefix=/usr/local
12195 else
12196 test_prefix=$prefix
12197 fi
12198 else
12199 test_prefix=$exec_prefix
12200 fi
12201 value=0
12202 case ${ac_define_dir} in
12203 "${test_prefix}"|"${test_prefix}/"*|\
12204 '${exec_prefix}'|'${exec_prefix}/'*)
12205 value=1
12206 ;;
12207 esac
12208
12209 cat >>confdefs.h <<_ACEOF
12210 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
12211 _ACEOF
12212
12213
12214
12215
12216
12217 # Check whether --with-system-gdbinit was given.
12218 if test "${with_system_gdbinit+set}" = set; then :
12219 withval=$with_system_gdbinit;
12220 SYSTEM_GDBINIT=$withval
12221 else
12222 SYSTEM_GDBINIT=
12223 fi
12224
12225
12226 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
12227 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12228 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
12229 ac_define_dir=`eval echo $ac_define_dir`
12230
12231 cat >>confdefs.h <<_ACEOF
12232 #define SYSTEM_GDBINIT "$ac_define_dir"
12233 _ACEOF
12234
12235
12236
12237
12238 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
12239 if test "x$prefix" = xNONE; then
12240 test_prefix=/usr/local
12241 else
12242 test_prefix=$prefix
12243 fi
12244 else
12245 test_prefix=$exec_prefix
12246 fi
12247 value=0
12248 case ${ac_define_dir} in
12249 "${test_prefix}"|"${test_prefix}/"*|\
12250 '${exec_prefix}'|'${exec_prefix}/'*)
12251 value=1
12252 ;;
12253 esac
12254
12255 cat >>confdefs.h <<_ACEOF
12256 #define SYSTEM_GDBINIT_RELOCATABLE $value
12257 _ACEOF
12258
12259
12260
12261
12262 # Check whether --enable-werror was given.
12263 if test "${enable_werror+set}" = set; then :
12264 enableval=$enable_werror; case "${enableval}" in
12265 yes | y) ERROR_ON_WARNING="yes" ;;
12266 no | n) ERROR_ON_WARNING="no" ;;
12267 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12268 esac
12269 fi
12270
12271
12272 # Enable -Werror by default when using gcc
12273 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12274 ERROR_ON_WARNING=yes
12275 fi
12276
12277 WERROR_CFLAGS=""
12278 if test "${ERROR_ON_WARNING}" = yes ; then
12279 WERROR_CFLAGS="-Werror"
12280 fi
12281
12282 # The entries after -Wno-pointer-sign are disabled warnings which may
12283 # be enabled in the future, which can not currently be used to build
12284 # GDB.
12285 # NOTE: If you change this list, remember to update
12286 # gdb/doc/gdbint.texinfo.
12287 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
12288 -Wformat-nonliteral -Wno-pointer-sign \
12289 -Wno-unused -Wunused-value -Wunused-function \
12290 -Wno-switch -Wno-char-subscripts -Wmissing-prototypes"
12291
12292 # Enable -Wno-format by default when using gcc on mingw since many
12293 # GCC versions complain about %I64.
12294 case "${host}" in
12295 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
12296 esac
12297
12298 # Check whether --enable-build-warnings was given.
12299 if test "${enable_build_warnings+set}" = set; then :
12300 enableval=$enable_build_warnings; case "${enableval}" in
12301 yes) ;;
12302 no) build_warnings="-w";;
12303 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12304 build_warnings="${build_warnings} ${t}";;
12305 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12306 build_warnings="${t} ${build_warnings}";;
12307 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12308 esac
12309 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12310 echo "Setting compiler warning flags = $build_warnings" 6>&1
12311 fi
12312 fi
12313 # Check whether --enable-gdb-build-warnings was given.
12314 if test "${enable_gdb_build_warnings+set}" = set; then :
12315 enableval=$enable_gdb_build_warnings; case "${enableval}" in
12316 yes) ;;
12317 no) build_warnings="-w";;
12318 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12319 build_warnings="${build_warnings} ${t}";;
12320 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12321 build_warnings="${t} ${build_warnings}";;
12322 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12323 esac
12324 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
12325 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
12326 fi
12327 fi
12328 WARN_CFLAGS=""
12329 if test "x${build_warnings}" != x -a "x$GCC" = xyes
12330 then
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
12332 $as_echo_n "checking compiler warning flags... " >&6; }
12333 # Separate out the -Werror flag as some files just cannot be
12334 # compiled with it enabled.
12335 for w in ${build_warnings}; do
12336 case $w in
12337 -Werr*) WERROR_CFLAGS=-Werror ;;
12338 *) # Check that GCC accepts it
12339 saved_CFLAGS="$CFLAGS"
12340 CFLAGS="$CFLAGS $w"
12341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h. */
12343
12344 int
12345 main ()
12346 {
12347
12348 ;
12349 return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_compile "$LINENO"; then :
12353 WARN_CFLAGS="${WARN_CFLAGS} $w"
12354 fi
12355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 CFLAGS="$saved_CFLAGS"
12357 esac
12358 done
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
12360 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
12361 fi
12362
12363
12364
12365 # In the Cygwin environment, we need some additional flags.
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
12367 $as_echo_n "checking for cygwin... " >&6; }
12368 if test "${gdb_cv_os_cygwin+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
12370 else
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373
12374 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
12375 lose
12376 #endif
12377 _ACEOF
12378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12379 $EGREP "lose" >/dev/null 2>&1; then :
12380 gdb_cv_os_cygwin=yes
12381 else
12382 gdb_cv_os_cygwin=no
12383 fi
12384 rm -f conftest*
12385
12386 fi
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
12388 $as_echo "$gdb_cv_os_cygwin" >&6; }
12389
12390
12391 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
12392 case ${host} in
12393 *go32* ) SER_HARDWIRE=ser-go32.o ;;
12394 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
12395 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
12396 esac
12397
12398
12399 # libreadline needs libuser32.a in a cygwin environment
12400 WIN32LIBS=
12401 if test x$gdb_cv_os_cygwin = xyes; then
12402 WIN32LIBS="-luser32"
12403 case "${target}" in
12404 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
12405 ;;
12406 esac
12407 fi
12408
12409 # The ser-tcp.c module requires sockets.
12410 case ${host} in
12411 *mingw32*)
12412
12413 $as_echo "#define USE_WIN32API 1" >>confdefs.h
12414
12415 WIN32LIBS="$WIN32LIBS -lws2_32"
12416 ;;
12417 esac
12418
12419
12420 # Add ELF support to GDB, but only if BFD includes ELF support.
12421 OLD_CFLAGS=$CFLAGS
12422 OLD_LDFLAGS=$LDFLAGS
12423 OLD_LIBS=$LIBS
12424 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
12425 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
12426 # always want our bfd.
12427 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
12428 LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
12429 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
12430 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12431 if test "$plugins" = "yes"; then
12432 LIBS="-ldl $LIBS"
12433 fi
12434 LIBS="-lbfd -liberty $intl $LIBS"
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
12436 $as_echo_n "checking for ELF support in BFD... " >&6; }
12437 if test "${gdb_cv_var_elf+set}" = set; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #include <stdlib.h>
12443 #include "bfd.h"
12444 #include "elf-bfd.h"
12445
12446 int
12447 main ()
12448 {
12449 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_link "$LINENO"; then :
12455 gdb_cv_var_elf=yes
12456 else
12457 gdb_cv_var_elf=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext \
12460 conftest$ac_exeext conftest.$ac_ext
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
12463 $as_echo "$gdb_cv_var_elf" >&6; }
12464 if test $gdb_cv_var_elf = yes; then
12465 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o"
12466
12467 $as_echo "#define HAVE_ELF 1" >>confdefs.h
12468
12469 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
12470 if test "$plugins" = "yes"; then
12471 OLD_LIBS="-ldl $OLD_LIBS"
12472 fi
12473 fi
12474 CFLAGS=$OLD_CFLAGS
12475 LDFLAGS=$OLD_LDFLAGS
12476 LIBS=$OLD_LIBS
12477
12478 # Add any host-specific objects to GDB.
12479 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
12480
12481 LIBGUI="../libgui/src/libgui.a"
12482 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
12483
12484
12485
12486 WIN32LDAPP=
12487
12488
12489
12490 case "${host}" in
12491 *-*-cygwin* | *-*-mingw* )
12492 configdir="win"
12493 ;;
12494 *)
12495 configdir="unix"
12496 ;;
12497 esac
12498
12499 GDBTKLIBS=
12500 if test "${enable_gdbtk}" = "yes"; then
12501
12502 # Gdbtk must have an absolute path to srcdir in order to run
12503 # properly when not installed.
12504 here=`pwd`
12505 cd ${srcdir}
12506 GDBTK_SRC_DIR=`pwd`
12507 cd $here
12508
12509
12510 #
12511 # Ok, lets find the tcl configuration
12512 # First, look for one uninstalled.
12513 # the alternative search directory is invoked by --with-tcl
12514 #
12515
12516 if test x"${no_tcl}" = x ; then
12517 # we reset no_tcl in case something fails here
12518 no_tcl=true
12519
12520 # Check whether --with-tcl was given.
12521 if test "${with_tcl+set}" = set; then :
12522 withval=$with_tcl; with_tclconfig=${withval}
12523 fi
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
12526 $as_echo_n "checking for Tcl configuration... " >&6; }
12527 if test "${ac_cv_c_tclconfig+set}" = set; then :
12528 $as_echo_n "(cached) " >&6
12529 else
12530
12531
12532 # First check to see if --with-tcl was specified.
12533 case "${host}" in
12534 *-*-cygwin*) platDir="win" ;;
12535 *) platDir="unix" ;;
12536 esac
12537 if test x"${with_tclconfig}" != x ; then
12538 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12539 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12540 else
12541 as_fn_error "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
12542 fi
12543 fi
12544
12545 # then check for a private Tcl installation
12546 if test x"${ac_cv_c_tclconfig}" = x ; then
12547 for i in \
12548 ../tcl \
12549 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12550 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12551 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12552 ../../tcl \
12553 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12554 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12555 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12556 ../../../tcl \
12557 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12558 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12559 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
12560 if test -f "$i/$platDir/tclConfig.sh" ; then
12561 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
12562 break
12563 fi
12564 done
12565 fi
12566
12567 # on Darwin, check in Framework installation locations
12568 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
12569 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
12570 `ls -d /Library/Frameworks 2>/dev/null` \
12571 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12572 `ls -d /System/Library/Frameworks 2>/dev/null` \
12573 ; do
12574 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
12575 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
12576 break
12577 fi
12578 done
12579 fi
12580
12581 # check in a few common install locations
12582 if test x"${ac_cv_c_tclconfig}" = x ; then
12583 for i in `ls -d ${libdir} 2>/dev/null` \
12584 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12585 `ls -d ${prefix}/lib 2>/dev/null` \
12586 `ls -d /usr/local/lib 2>/dev/null` \
12587 `ls -d /usr/contrib/lib 2>/dev/null` \
12588 `ls -d /usr/lib 2>/dev/null` \
12589 ; do
12590 if test -f "$i/tclConfig.sh" ; then
12591 ac_cv_c_tclconfig=`(cd $i; pwd)`
12592 break
12593 fi
12594 done
12595 fi
12596
12597 # check in a few other private locations
12598 if test x"${ac_cv_c_tclconfig}" = x ; then
12599 for i in \
12600 ${srcdir}/../tcl \
12601 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12602 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12603 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
12604 if test -f "$i/$platDir/tclConfig.sh" ; then
12605 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
12606 break
12607 fi
12608 done
12609 fi
12610
12611 fi
12612
12613
12614 if test x"${ac_cv_c_tclconfig}" = x ; then
12615 TCL_BIN_DIR="# no Tcl configs found"
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
12617 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
12618 else
12619 no_tcl=
12620 TCL_BIN_DIR=${ac_cv_c_tclconfig}
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
12622 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12623 fi
12624 fi
12625
12626
12627 # If $no_tk is nonempty, then we can't do Tk, and there is no
12628 # point to doing Tcl.
12629
12630 #
12631 # Ok, lets find the tk configuration
12632 # First, look for one uninstalled.
12633 # the alternative search directory is invoked by --with-tk
12634 #
12635
12636 if test x"${no_tk}" = x ; then
12637 # we reset no_tk in case something fails here
12638 no_tk=true
12639
12640 # Check whether --with-tk was given.
12641 if test "${with_tk+set}" = set; then :
12642 withval=$with_tk; with_tkconfig=${withval}
12643 fi
12644
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
12646 $as_echo_n "checking for Tk configuration... " >&6; }
12647 if test "${ac_cv_c_tkconfig+set}" = set; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650
12651
12652 # First check to see if --with-tkconfig was specified.
12653 if test x"${with_tkconfig}" != x ; then
12654 if test -f "${with_tkconfig}/tkConfig.sh" ; then
12655 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
12656 else
12657 as_fn_error "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
12658 fi
12659 fi
12660
12661 # then check for a private Tk library
12662 case "${host}" in
12663 *-*-cygwin*) platDir="win" ;;
12664 *) platDir="unix" ;;
12665 esac
12666 if test x"${ac_cv_c_tkconfig}" = x ; then
12667 for i in \
12668 ../tk \
12669 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12670 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
12671 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
12672 ../../tk \
12673 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12674 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
12675 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
12676 ../../../tk \
12677 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12678 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
12679 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
12680 if test -f "$i/$platDir/tkConfig.sh" ; then
12681 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
12682 break
12683 fi
12684 done
12685 fi
12686
12687 # on Darwin, check in Framework installation locations
12688 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
12689 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
12690 `ls -d /Library/Frameworks 2>/dev/null` \
12691 `ls -d /Network/Library/Frameworks 2>/dev/null` \
12692 `ls -d /System/Library/Frameworks 2>/dev/null` \
12693 ; do
12694 if test -f "$i/Tk.framework/tkConfig.sh" ; then
12695 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
12696 break
12697 fi
12698 done
12699 fi
12700
12701 # check in a few common install locations
12702 if test x"${ac_cv_c_tkconfig}" = x ; then
12703 for i in `ls -d ${libdir} 2>/dev/null` \
12704 `ls -d ${exec_prefix}/lib 2>/dev/null` \
12705 `ls -d ${prefix}/lib 2>/dev/null` \
12706 `ls -d /usr/local/lib 2>/dev/null` \
12707 `ls -d /usr/contrib/lib 2>/dev/null` \
12708 `ls -d /usr/lib 2>/dev/null` \
12709 ; do
12710 if test -f "$i/tkConfig.sh" ; then
12711 ac_cv_c_tkconfig=`(cd $i; pwd)`
12712 break
12713 fi
12714 done
12715 fi
12716 # check in a few other private locations
12717 if test x"${ac_cv_c_tkconfig}" = x ; then
12718 for i in \
12719 ${srcdir}/../tk \
12720 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
12721 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
12722 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
12723 if test -f "$i/$platDir/tkConfig.sh" ; then
12724 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
12725 break
12726 fi
12727 done
12728 fi
12729
12730 fi
12731
12732
12733 if test x"${ac_cv_c_tkconfig}" = x ; then
12734 TK_BIN_DIR="# no Tk configs found"
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
12736 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
12737 else
12738 no_tk=
12739 TK_BIN_DIR=${ac_cv_c_tkconfig}
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
12741 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12742 fi
12743 fi
12744
12745
12746 if test -z "${no_tcl}" -a -z "${no_tk}"; then
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
12749 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
12750
12751 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12753 $as_echo "loading" >&6; }
12754 . ${TCL_BIN_DIR}/tclConfig.sh
12755 else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
12757 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
12758 fi
12759
12760 # eval is required to do the TCL_DBGX substitution
12761 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12762 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12763
12764 # If the TCL_BIN_DIR is the build directory (not the install directory),
12765 # then set the common variable name to the value of the build variables.
12766 # For example, the variable TCL_LIB_SPEC will be set to the value
12767 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12768 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12769 # installed and uninstalled version of Tcl.
12770 if test -f "${TCL_BIN_DIR}/Makefile" ; then
12771 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12772 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12773 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12774 elif test "`uname -s`" = "Darwin"; then
12775 # If Tcl was built as a framework, attempt to use the libraries
12776 # from the framework at the given location so that linking works
12777 # against Tcl.framework installed in an arbitary location.
12778 case ${TCL_DEFS} in
12779 *TCL_FRAMEWORK*)
12780 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
12781 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
12782 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
12783 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
12784 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
12785 break
12786 fi
12787 done
12788 fi
12789 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
12790 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
12791 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
12792 fi
12793 ;;
12794 esac
12795 fi
12796
12797 # eval is required to do the TCL_DBGX substitution
12798 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12799 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12800 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12801 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817 # Check for in-tree tcl
12818 here=`pwd`
12819 cd ${srcdir}/..
12820 topdir=`pwd`
12821 cd ${here}
12822
12823 intree="no"
12824 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
12825 intree="yes"
12826 fi
12827
12828 # Find Tcl private headers
12829 if test x"${intree}" = xno; then
12830
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
12832 $as_echo_n "checking for Tcl private headers... " >&6; }
12833 private_dir=""
12834 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
12835 if test -f ${dir}/tclInt.h ; then
12836 private_dir=${dir}
12837 fi
12838
12839 if test x"${private_dir}" = x; then
12840 as_fn_error "could not find private Tcl headers" "$LINENO" 5
12841 else
12842 TCL_PRIVATE_INCLUDE="-I${private_dir}"
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12844 $as_echo "${private_dir}" >&6; }
12845 fi
12846
12847 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
12848 TCL_LIBRARY="${TCL_LIB_SPEC}"
12849 TCL_DEPS=""
12850 else
12851 # If building tcl in the same src tree, private headers
12852 # are not needed, but we need to be sure to use the right
12853 # headers library
12854 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
12855 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
12856 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
12857 fi
12858
12859
12860
12861
12862
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
12864 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
12865
12866 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
12868 $as_echo "loading" >&6; }
12869 . ${TK_BIN_DIR}/tkConfig.sh
12870 else
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
12872 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
12873 fi
12874
12875 # eval is required to do the TK_DBGX substitution
12876 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
12877 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
12878
12879 # If the TK_BIN_DIR is the build directory (not the install directory),
12880 # then set the common variable name to the value of the build variables.
12881 # For example, the variable TK_LIB_SPEC will be set to the value
12882 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
12883 # instead of TK_BUILD_LIB_SPEC since it will work with both an
12884 # installed and uninstalled version of Tcl.
12885 if test -f "${TK_BIN_DIR}/Makefile" ; then
12886 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
12887 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
12888 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
12889 elif test "`uname -s`" = "Darwin"; then
12890 # If Tk was built as a framework, attempt to use the libraries
12891 # from the framework at the given location so that linking works
12892 # against Tk.framework installed in an arbitary location.
12893 case ${TK_DEFS} in
12894 *TK_FRAMEWORK*)
12895 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
12896 for i in "`cd ${TK_BIN_DIR}; pwd`" \
12897 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
12898 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
12899 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
12900 break
12901 fi
12902 done
12903 fi
12904 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
12905 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
12906 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
12907 fi
12908 ;;
12909 esac
12910 fi
12911
12912 # eval is required to do the TK_DBGX substitution
12913 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
12914 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
12915 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
12916 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931 # Check for in-tree Tk
12932 intree="no"
12933 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
12934 intree="yes"
12935 fi
12936
12937 # Find Tk private headers
12938 if test x"${intree}" = xno; then
12939
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
12941 $as_echo_n "checking for Tk private headers... " >&6; }
12942 private_dir=""
12943 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
12944 if test -f ${dir}/tkInt.h; then
12945 private_dir=${dir}
12946 fi
12947
12948 if test x"${private_dir}" = x; then
12949 as_fn_error "could not find Tk private headers" "$LINENO" 5
12950 else
12951 TK_PRIVATE_INCLUDE="-I${private_dir}"
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
12953 $as_echo "${private_dir}" >&6; }
12954 fi
12955
12956 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
12957 TK_LIBRARY=${TK_LIB_SPEC}
12958 TK_DEPS=""
12959 else
12960 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
12961 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
12962 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
12963 fi
12964
12965
12966
12967
12968
12969 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
12970
12971 # Include some libraries that Tcl and Tk want.
12972 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
12973 # Yes, the ordering seems wrong here. But it isn't.
12974 # TK_LIBS is the list of libraries that need to be linked
12975 # after Tcl/Tk. Note that this isn't put into LIBS. If it
12976 # were in LIBS then any link tests after this point would
12977 # try to include things like `$(LIBGUI)', which wouldn't work.
12978 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
12979
12980 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
12981 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
12982 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
12983 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
12984 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
12985 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
12986 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
12987
12988 if test x$gdb_cv_os_cygwin = xyes; then
12989 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
12990 WIN32LDAPP="-Wl,--subsystem,console"
12991 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
12992 fi
12993
12994 subdirs="$subdirs gdbtk"
12995
12996 fi
12997 fi
12998
12999
13000
13001
13002
13003
13004
13005
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13007 $as_echo_n "checking for X... " >&6; }
13008
13009
13010 # Check whether --with-x was given.
13011 if test "${with_x+set}" = set; then :
13012 withval=$with_x;
13013 fi
13014
13015 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13016 if test "x$with_x" = xno; then
13017 # The user explicitly disabled X.
13018 have_x=disabled
13019 else
13020 case $x_includes,$x_libraries in #(
13021 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
13022 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
13023 $as_echo_n "(cached) " >&6
13024 else
13025 # One or both of the vars are not set, and there is no cached value.
13026 ac_x_includes=no ac_x_libraries=no
13027 rm -f -r conftest.dir
13028 if mkdir conftest.dir; then
13029 cd conftest.dir
13030 cat >Imakefile <<'_ACEOF'
13031 incroot:
13032 @echo incroot='${INCROOT}'
13033 usrlibdir:
13034 @echo usrlibdir='${USRLIBDIR}'
13035 libdir:
13036 @echo libdir='${LIBDIR}'
13037 _ACEOF
13038 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13039 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13040 for ac_var in incroot usrlibdir libdir; do
13041 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13042 done
13043 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13044 for ac_extension in a so sl dylib la dll; do
13045 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13046 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13047 ac_im_usrlibdir=$ac_im_libdir; break
13048 fi
13049 done
13050 # Screen out bogus values from the imake configuration. They are
13051 # bogus both because they are the default anyway, and because
13052 # using them would break gcc on systems where it needs fixed includes.
13053 case $ac_im_incroot in
13054 /usr/include) ac_x_includes= ;;
13055 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13056 esac
13057 case $ac_im_usrlibdir in
13058 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13059 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13060 esac
13061 fi
13062 cd ..
13063 rm -f -r conftest.dir
13064 fi
13065
13066 # Standard set of common directories for X headers.
13067 # Check X11 before X11Rn because it is often a symlink to the current release.
13068 ac_x_header_dirs='
13069 /usr/X11/include
13070 /usr/X11R7/include
13071 /usr/X11R6/include
13072 /usr/X11R5/include
13073 /usr/X11R4/include
13074
13075 /usr/include/X11
13076 /usr/include/X11R7
13077 /usr/include/X11R6
13078 /usr/include/X11R5
13079 /usr/include/X11R4
13080
13081 /usr/local/X11/include
13082 /usr/local/X11R7/include
13083 /usr/local/X11R6/include
13084 /usr/local/X11R5/include
13085 /usr/local/X11R4/include
13086
13087 /usr/local/include/X11
13088 /usr/local/include/X11R7
13089 /usr/local/include/X11R6
13090 /usr/local/include/X11R5
13091 /usr/local/include/X11R4
13092
13093 /usr/X386/include
13094 /usr/x386/include
13095 /usr/XFree86/include/X11
13096
13097 /usr/include
13098 /usr/local/include
13099 /usr/unsupported/include
13100 /usr/athena/include
13101 /usr/local/x11r5/include
13102 /usr/lpp/Xamples/include
13103
13104 /usr/openwin/include
13105 /usr/openwin/share/include'
13106
13107 if test "$ac_x_includes" = no; then
13108 # Guess where to find include files, by looking for Xlib.h.
13109 # First, try using that file with no special directory specified.
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 #include <X11/Xlib.h>
13113 _ACEOF
13114 if ac_fn_c_try_cpp "$LINENO"; then :
13115 # We can compile using X headers with no special include directory.
13116 ac_x_includes=
13117 else
13118 for ac_dir in $ac_x_header_dirs; do
13119 if test -r "$ac_dir/X11/Xlib.h"; then
13120 ac_x_includes=$ac_dir
13121 break
13122 fi
13123 done
13124 fi
13125 rm -f conftest.err conftest.$ac_ext
13126 fi # $ac_x_includes = no
13127
13128 if test "$ac_x_libraries" = no; then
13129 # Check for the libraries.
13130 # See if we find them without any special options.
13131 # Don't add to $LIBS permanently.
13132 ac_save_LIBS=$LIBS
13133 LIBS="-lX11 $LIBS"
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 #include <X11/Xlib.h>
13137 int
13138 main ()
13139 {
13140 XrmInitialize ()
13141 ;
13142 return 0;
13143 }
13144 _ACEOF
13145 if ac_fn_c_try_link "$LINENO"; then :
13146 LIBS=$ac_save_LIBS
13147 # We can link X programs with no special library path.
13148 ac_x_libraries=
13149 else
13150 LIBS=$ac_save_LIBS
13151 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13152 do
13153 # Don't even attempt the hair of trying to link an X program!
13154 for ac_extension in a so sl dylib la dll; do
13155 if test -r "$ac_dir/libX11.$ac_extension"; then
13156 ac_x_libraries=$ac_dir
13157 break 2
13158 fi
13159 done
13160 done
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164 fi # $ac_x_libraries = no
13165
13166 case $ac_x_includes,$ac_x_libraries in #(
13167 no,* | *,no | *\'*)
13168 # Didn't find X, or a directory has "'" in its name.
13169 ac_cv_have_x="have_x=no";; #(
13170 *)
13171 # Record where we found X for the cache.
13172 ac_cv_have_x="have_x=yes\
13173 ac_x_includes='$ac_x_includes'\
13174 ac_x_libraries='$ac_x_libraries'"
13175 esac
13176 fi
13177 ;; #(
13178 *) have_x=yes;;
13179 esac
13180 eval "$ac_cv_have_x"
13181 fi # $with_x != no
13182
13183 if test "$have_x" != yes; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13185 $as_echo "$have_x" >&6; }
13186 no_x=yes
13187 else
13188 # If each of the values was on the command line, it overrides each guess.
13189 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13190 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13191 # Update the cache value to reflect the command line values.
13192 ac_cv_have_x="have_x=yes\
13193 ac_x_includes='$x_includes'\
13194 ac_x_libraries='$x_libraries'"
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13196 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13197 fi
13198
13199
13200 # Unlike the sim directory, whether a simulator is linked is controlled by
13201 # presence of a gdb_sim definition in the target configure.tgt entry.
13202 # This code just checks for a few cases where we'd like to ignore those
13203 # definitions, even when they're present in the '.mt' file. These cases
13204 # are when --disable-sim is specified, or if the simulator directory is
13205 # not part of the source tree.
13206 #
13207 # Check whether --enable-sim was given.
13208 if test "${enable_sim+set}" = set; then :
13209 enableval=$enable_sim; echo "enable_sim = $enable_sim";
13210 echo "enableval = ${enableval}";
13211 case "${enableval}" in
13212 yes) ignore_sim=false ;;
13213 no) ignore_sim=true ;;
13214 *) ignore_sim=false ;;
13215 esac
13216 else
13217 ignore_sim=false
13218 fi
13219
13220
13221 if test ! -d "${srcdir}/../sim"; then
13222 ignore_sim=true
13223 fi
13224
13225 SIM=
13226 SIM_OBS=
13227 if test "${ignore_sim}" = "false"; then
13228 if test x"${gdb_sim}" != x ; then
13229 SIM="${gdb_sim}"
13230 SIM_OBS="remote-sim.o"
13231
13232 $as_echo "#define WITH_SIM 1" >>confdefs.h
13233
13234 fi
13235 fi
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250 # List of host floatformats.
13251
13252 cat >>confdefs.h <<_ACEOF
13253 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
13254 _ACEOF
13255
13256
13257 cat >>confdefs.h <<_ACEOF
13258 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
13259 _ACEOF
13260
13261
13262 cat >>confdefs.h <<_ACEOF
13263 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
13264 _ACEOF
13265
13266
13267 # target_subdir is used by the testsuite to find the target libraries.
13268 target_subdir=
13269 if test "${host}" != "${target}"; then
13270 target_subdir="${target_alias}/"
13271 fi
13272
13273
13274 frags=
13275 if test "${gdb_native}" = "yes"; then
13276 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
13277 if test ! -f ${host_makefile_frag}; then
13278 as_fn_error "\"*** Gdb does not support native target ${host}\"" "$LINENO" 5
13279 fi
13280 frags="$frags $host_makefile_frag"
13281 else
13282 host_makefile_frag=/dev/null
13283 fi
13284
13285
13286
13287
13288 if test "${gdb_native}" = "yes"; then
13289 # We pick this up from the host configuration file (.mh) because we
13290 # do not have a native configuration Makefile fragment.
13291 nativefile=`sed -n '
13292 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
13293 ' ${host_makefile_frag}`
13294 fi
13295
13296
13297 if test x"${gdb_osabi}" != x ; then
13298
13299 cat >>confdefs.h <<_ACEOF
13300 #define GDB_OSABI_DEFAULT $gdb_osabi
13301 _ACEOF
13302
13303 fi
13304
13305 # Enable multi-ice-gdb-server.
13306 # Check whether --enable-multi-ice was given.
13307 if test "${enable_multi_ice+set}" = set; then :
13308 enableval=$enable_multi_ice; case $enableval in
13309 yes | no)
13310 ;;
13311 *) as_fn_error "bad value $enableval for --enable-multi-ice" "$LINENO" 5 ;;
13312 esac
13313 fi
13314
13315 if test "x$enable_multi_ice" = xyes; then
13316 subdirs="$subdirs multi-ice"
13317
13318 fi
13319
13320 # Check whether --enable-gdbserver was given.
13321 if test "${enable_gdbserver+set}" = set; then :
13322 enableval=$enable_gdbserver; case "${enableval}" in
13323 yes| no|auto) ;;
13324 *) as_fn_error "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
13325 esac
13326 else
13327 enable_gdbserver=auto
13328 fi
13329
13330
13331 # We only build gdbserver automatically in a native configuration, and
13332 # only if the user did not explicitly disable its build.
13333 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
13335 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
13336 if test "x$build_gdbserver" = xyes; then
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 $as_echo "yes" >&6; }
13339 subdirs="$subdirs gdbserver"
13340
13341 gdbserver_build_enabled=yes
13342 else
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13344 $as_echo "no" >&6; }
13345 fi
13346 fi
13347
13348 # If the user explicitly request the gdbserver to be built, verify that
13349 # we were in fact able to enable it.
13350 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
13351 as_fn_error "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
13352 fi
13353
13354 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
13355 # to an empty version.
13356
13357 files=
13358 links=
13359
13360 rm -f nm.h
13361 if test "${nativefile}" != ""; then
13362 case "${nativefile}" in
13363 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
13364 * ) GDB_NM_FILE="${nativefile}"
13365 esac
13366 files="${files} ${GDB_NM_FILE}"
13367 links="${links} nm.h"
13368
13369 cat >>confdefs.h <<_ACEOF
13370 #define GDB_NM_FILE "${GDB_NM_FILE}"
13371 _ACEOF
13372
13373 fi
13374
13375
13376 ac_sources="$files"
13377 ac_dests="$links"
13378 while test -n "$ac_sources"; do
13379 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
13380 set $ac_sources; ac_source=$1; shift; ac_sources=$*
13381 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
13382 done
13383 ac_config_links="$ac_config_links $ac_config_links_1"
13384
13385
13386
13387
13388
13389 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
13390
13391
13392 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb doc/Makefile data-directory/Makefile"
13393
13394 ac_config_commands="$ac_config_commands default"
13395
13396 cat >confcache <<\_ACEOF
13397 # This file is a shell script that caches the results of configure
13398 # tests run on this system so they can be shared between configure
13399 # scripts and configure runs, see configure's option --config-cache.
13400 # It is not useful on other systems. If it contains results you don't
13401 # want to keep, you may remove or edit it.
13402 #
13403 # config.status only pays attention to the cache file if you give it
13404 # the --recheck option to rerun configure.
13405 #
13406 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13407 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13408 # following values.
13409
13410 _ACEOF
13411
13412 # The following way of writing the cache mishandles newlines in values,
13413 # but we know of no workaround that is simple, portable, and efficient.
13414 # So, we kill variables containing newlines.
13415 # Ultrix sh set writes to stderr and can't be redirected directly,
13416 # and sets the high bit in the cache file unless we assign to the vars.
13417 (
13418 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13419 eval ac_val=\$$ac_var
13420 case $ac_val in #(
13421 *${as_nl}*)
13422 case $ac_var in #(
13423 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13424 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13425 esac
13426 case $ac_var in #(
13427 _ | IFS | as_nl) ;; #(
13428 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13429 *) { eval $ac_var=; unset $ac_var;} ;;
13430 esac ;;
13431 esac
13432 done
13433
13434 (set) 2>&1 |
13435 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13436 *${as_nl}ac_space=\ *)
13437 # `set' does not quote correctly, so add quotes: double-quote
13438 # substitution turns \\\\ into \\, and sed turns \\ into \.
13439 sed -n \
13440 "s/'/'\\\\''/g;
13441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13442 ;; #(
13443 *)
13444 # `set' quotes correctly as required by POSIX, so do not add quotes.
13445 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13446 ;;
13447 esac |
13448 sort
13449 ) |
13450 sed '
13451 /^ac_cv_env_/b end
13452 t clear
13453 :clear
13454 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13455 t end
13456 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13457 :end' >>confcache
13458 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13459 if test -w "$cache_file"; then
13460 test "x$cache_file" != "x/dev/null" &&
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13462 $as_echo "$as_me: updating cache $cache_file" >&6;}
13463 cat confcache >$cache_file
13464 else
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13466 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13467 fi
13468 fi
13469 rm -f confcache
13470
13471 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13472 # Let make expand exec_prefix.
13473 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13474
13475 DEFS=-DHAVE_CONFIG_H
13476
13477 ac_libobjs=
13478 ac_ltlibobjs=
13479 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13480 # 1. Remove the extension, and $U if already installed.
13481 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13482 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13483 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13484 # will be set to the directory where LIBOBJS objects are built.
13485 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13486 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13487 done
13488 LIBOBJS=$ac_libobjs
13489
13490 LTLIBOBJS=$ac_ltlibobjs
13491
13492
13493 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13494 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13495 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13496 fi
13497 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
13498 as_fn_error "conditional \"GMAKE\" was never defined.
13499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13500 fi
13501
13502
13503 : ${CONFIG_STATUS=./config.status}
13504 ac_write_fail=0
13505 ac_clean_files_save=$ac_clean_files
13506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13508 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13509 as_write_fail=0
13510 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13511 #! $SHELL
13512 # Generated by $as_me.
13513 # Run this file to recreate the current configuration.
13514 # Compiler output produced by configure, useful for debugging
13515 # configure, is in config.log if it exists.
13516
13517 debug=false
13518 ac_cs_recheck=false
13519 ac_cs_silent=false
13520
13521 SHELL=\${CONFIG_SHELL-$SHELL}
13522 export SHELL
13523 _ASEOF
13524 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13525 ## -------------------- ##
13526 ## M4sh Initialization. ##
13527 ## -------------------- ##
13528
13529 # Be more Bourne compatible
13530 DUALCASE=1; export DUALCASE # for MKS sh
13531 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13532 emulate sh
13533 NULLCMD=:
13534 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13535 # is contrary to our usage. Disable this feature.
13536 alias -g '${1+"$@"}'='"$@"'
13537 setopt NO_GLOB_SUBST
13538 else
13539 case `(set -o) 2>/dev/null` in #(
13540 *posix*) :
13541 set -o posix ;; #(
13542 *) :
13543 ;;
13544 esac
13545 fi
13546
13547
13548 as_nl='
13549 '
13550 export as_nl
13551 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13552 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13553 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13555 # Prefer a ksh shell builtin over an external printf program on Solaris,
13556 # but without wasting forks for bash or zsh.
13557 if test -z "$BASH_VERSION$ZSH_VERSION" \
13558 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13559 as_echo='print -r --'
13560 as_echo_n='print -rn --'
13561 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13562 as_echo='printf %s\n'
13563 as_echo_n='printf %s'
13564 else
13565 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13566 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13567 as_echo_n='/usr/ucb/echo -n'
13568 else
13569 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13570 as_echo_n_body='eval
13571 arg=$1;
13572 case $arg in #(
13573 *"$as_nl"*)
13574 expr "X$arg" : "X\\(.*\\)$as_nl";
13575 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13576 esac;
13577 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13578 '
13579 export as_echo_n_body
13580 as_echo_n='sh -c $as_echo_n_body as_echo'
13581 fi
13582 export as_echo_body
13583 as_echo='sh -c $as_echo_body as_echo'
13584 fi
13585
13586 # The user is always right.
13587 if test "${PATH_SEPARATOR+set}" != set; then
13588 PATH_SEPARATOR=:
13589 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13590 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13591 PATH_SEPARATOR=';'
13592 }
13593 fi
13594
13595
13596 # IFS
13597 # We need space, tab and new line, in precisely that order. Quoting is
13598 # there to prevent editors from complaining about space-tab.
13599 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13600 # splitting by setting IFS to empty value.)
13601 IFS=" "" $as_nl"
13602
13603 # Find who we are. Look in the path if we contain no directory separator.
13604 case $0 in #((
13605 *[\\/]* ) as_myself=$0 ;;
13606 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13607 for as_dir in $PATH
13608 do
13609 IFS=$as_save_IFS
13610 test -z "$as_dir" && as_dir=.
13611 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13612 done
13613 IFS=$as_save_IFS
13614
13615 ;;
13616 esac
13617 # We did not find ourselves, most probably we were run as `sh COMMAND'
13618 # in which case we are not to be found in the path.
13619 if test "x$as_myself" = x; then
13620 as_myself=$0
13621 fi
13622 if test ! -f "$as_myself"; then
13623 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13624 exit 1
13625 fi
13626
13627 # Unset variables that we do not need and which cause bugs (e.g. in
13628 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13629 # suppresses any "Segmentation fault" message there. '((' could
13630 # trigger a bug in pdksh 5.2.14.
13631 for as_var in BASH_ENV ENV MAIL MAILPATH
13632 do eval test x\${$as_var+set} = xset \
13633 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13634 done
13635 PS1='$ '
13636 PS2='> '
13637 PS4='+ '
13638
13639 # NLS nuisances.
13640 LC_ALL=C
13641 export LC_ALL
13642 LANGUAGE=C
13643 export LANGUAGE
13644
13645 # CDPATH.
13646 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13647
13648
13649 # as_fn_error ERROR [LINENO LOG_FD]
13650 # ---------------------------------
13651 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13652 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13653 # script with status $?, using 1 if that was 0.
13654 as_fn_error ()
13655 {
13656 as_status=$?; test $as_status -eq 0 && as_status=1
13657 if test "$3"; then
13658 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13659 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13660 fi
13661 $as_echo "$as_me: error: $1" >&2
13662 as_fn_exit $as_status
13663 } # as_fn_error
13664
13665
13666 # as_fn_set_status STATUS
13667 # -----------------------
13668 # Set $? to STATUS, without forking.
13669 as_fn_set_status ()
13670 {
13671 return $1
13672 } # as_fn_set_status
13673
13674 # as_fn_exit STATUS
13675 # -----------------
13676 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13677 as_fn_exit ()
13678 {
13679 set +e
13680 as_fn_set_status $1
13681 exit $1
13682 } # as_fn_exit
13683
13684 # as_fn_unset VAR
13685 # ---------------
13686 # Portably unset VAR.
13687 as_fn_unset ()
13688 {
13689 { eval $1=; unset $1;}
13690 }
13691 as_unset=as_fn_unset
13692 # as_fn_append VAR VALUE
13693 # ----------------------
13694 # Append the text in VALUE to the end of the definition contained in VAR. Take
13695 # advantage of any shell optimizations that allow amortized linear growth over
13696 # repeated appends, instead of the typical quadratic growth present in naive
13697 # implementations.
13698 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13699 eval 'as_fn_append ()
13700 {
13701 eval $1+=\$2
13702 }'
13703 else
13704 as_fn_append ()
13705 {
13706 eval $1=\$$1\$2
13707 }
13708 fi # as_fn_append
13709
13710 # as_fn_arith ARG...
13711 # ------------------
13712 # Perform arithmetic evaluation on the ARGs, and store the result in the
13713 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13714 # must be portable across $(()) and expr.
13715 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13716 eval 'as_fn_arith ()
13717 {
13718 as_val=$(( $* ))
13719 }'
13720 else
13721 as_fn_arith ()
13722 {
13723 as_val=`expr "$@" || test $? -eq 1`
13724 }
13725 fi # as_fn_arith
13726
13727
13728 if expr a : '\(a\)' >/dev/null 2>&1 &&
13729 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13730 as_expr=expr
13731 else
13732 as_expr=false
13733 fi
13734
13735 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13736 as_basename=basename
13737 else
13738 as_basename=false
13739 fi
13740
13741 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13742 as_dirname=dirname
13743 else
13744 as_dirname=false
13745 fi
13746
13747 as_me=`$as_basename -- "$0" ||
13748 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13749 X"$0" : 'X\(//\)$' \| \
13750 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13751 $as_echo X/"$0" |
13752 sed '/^.*\/\([^/][^/]*\)\/*$/{
13753 s//\1/
13754 q
13755 }
13756 /^X\/\(\/\/\)$/{
13757 s//\1/
13758 q
13759 }
13760 /^X\/\(\/\).*/{
13761 s//\1/
13762 q
13763 }
13764 s/.*/./; q'`
13765
13766 # Avoid depending upon Character Ranges.
13767 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13768 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13769 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13770 as_cr_digits='0123456789'
13771 as_cr_alnum=$as_cr_Letters$as_cr_digits
13772
13773 ECHO_C= ECHO_N= ECHO_T=
13774 case `echo -n x` in #(((((
13775 -n*)
13776 case `echo 'xy\c'` in
13777 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13778 xy) ECHO_C='\c';;
13779 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13780 ECHO_T=' ';;
13781 esac;;
13782 *)
13783 ECHO_N='-n';;
13784 esac
13785
13786 rm -f conf$$ conf$$.exe conf$$.file
13787 if test -d conf$$.dir; then
13788 rm -f conf$$.dir/conf$$.file
13789 else
13790 rm -f conf$$.dir
13791 mkdir conf$$.dir 2>/dev/null
13792 fi
13793 if (echo >conf$$.file) 2>/dev/null; then
13794 if ln -s conf$$.file conf$$ 2>/dev/null; then
13795 as_ln_s='ln -s'
13796 # ... but there are two gotchas:
13797 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13798 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13799 # In both cases, we have to default to `cp -p'.
13800 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13801 as_ln_s='cp -p'
13802 elif ln conf$$.file conf$$ 2>/dev/null; then
13803 as_ln_s=ln
13804 else
13805 as_ln_s='cp -p'
13806 fi
13807 else
13808 as_ln_s='cp -p'
13809 fi
13810 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13811 rmdir conf$$.dir 2>/dev/null
13812
13813
13814 # as_fn_mkdir_p
13815 # -------------
13816 # Create "$as_dir" as a directory, including parents if necessary.
13817 as_fn_mkdir_p ()
13818 {
13819
13820 case $as_dir in #(
13821 -*) as_dir=./$as_dir;;
13822 esac
13823 test -d "$as_dir" || eval $as_mkdir_p || {
13824 as_dirs=
13825 while :; do
13826 case $as_dir in #(
13827 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13828 *) as_qdir=$as_dir;;
13829 esac
13830 as_dirs="'$as_qdir' $as_dirs"
13831 as_dir=`$as_dirname -- "$as_dir" ||
13832 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833 X"$as_dir" : 'X\(//\)[^/]' \| \
13834 X"$as_dir" : 'X\(//\)$' \| \
13835 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13836 $as_echo X"$as_dir" |
13837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13838 s//\1/
13839 q
13840 }
13841 /^X\(\/\/\)[^/].*/{
13842 s//\1/
13843 q
13844 }
13845 /^X\(\/\/\)$/{
13846 s//\1/
13847 q
13848 }
13849 /^X\(\/\).*/{
13850 s//\1/
13851 q
13852 }
13853 s/.*/./; q'`
13854 test -d "$as_dir" && break
13855 done
13856 test -z "$as_dirs" || eval "mkdir $as_dirs"
13857 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13858
13859
13860 } # as_fn_mkdir_p
13861 if mkdir -p . 2>/dev/null; then
13862 as_mkdir_p='mkdir -p "$as_dir"'
13863 else
13864 test -d ./-p && rmdir ./-p
13865 as_mkdir_p=false
13866 fi
13867
13868 if test -x / >/dev/null 2>&1; then
13869 as_test_x='test -x'
13870 else
13871 if ls -dL / >/dev/null 2>&1; then
13872 as_ls_L_option=L
13873 else
13874 as_ls_L_option=
13875 fi
13876 as_test_x='
13877 eval sh -c '\''
13878 if test -d "$1"; then
13879 test -d "$1/.";
13880 else
13881 case $1 in #(
13882 -*)set "./$1";;
13883 esac;
13884 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13885 ???[sx]*):;;*)false;;esac;fi
13886 '\'' sh
13887 '
13888 fi
13889 as_executable_p=$as_test_x
13890
13891 # Sed expression to map a string onto a valid CPP name.
13892 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13893
13894 # Sed expression to map a string onto a valid variable name.
13895 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13896
13897
13898 exec 6>&1
13899 ## ----------------------------------- ##
13900 ## Main body of $CONFIG_STATUS script. ##
13901 ## ----------------------------------- ##
13902 _ASEOF
13903 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13904
13905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13906 # Save the log message, to keep $0 and so on meaningful, and to
13907 # report actual input values of CONFIG_FILES etc. instead of their
13908 # values after options handling.
13909 ac_log="
13910 This file was extended by $as_me, which was
13911 generated by GNU Autoconf 2.64. Invocation command line was
13912
13913 CONFIG_FILES = $CONFIG_FILES
13914 CONFIG_HEADERS = $CONFIG_HEADERS
13915 CONFIG_LINKS = $CONFIG_LINKS
13916 CONFIG_COMMANDS = $CONFIG_COMMANDS
13917 $ $0 $@
13918
13919 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13920 "
13921
13922 _ACEOF
13923
13924 case $ac_config_files in *"
13925 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13926 esac
13927
13928 case $ac_config_headers in *"
13929 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13930 esac
13931
13932
13933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13934 # Files that config.status was made for.
13935 config_files="$ac_config_files"
13936 config_headers="$ac_config_headers"
13937 config_links="$ac_config_links"
13938 config_commands="$ac_config_commands"
13939
13940 _ACEOF
13941
13942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13943 ac_cs_usage="\
13944 \`$as_me' instantiates files and other configuration actions
13945 from templates according to the current configuration. Unless the files
13946 and actions are specified as TAGs, all are instantiated by default.
13947
13948 Usage: $0 [OPTION]... [TAG]...
13949
13950 -h, --help print this help, then exit
13951 -V, --version print version number and configuration settings, then exit
13952 -q, --quiet, --silent
13953 do not print progress messages
13954 -d, --debug don't remove temporary files
13955 --recheck update $as_me by reconfiguring in the same conditions
13956 --file=FILE[:TEMPLATE]
13957 instantiate the configuration file FILE
13958 --header=FILE[:TEMPLATE]
13959 instantiate the configuration header FILE
13960
13961 Configuration files:
13962 $config_files
13963
13964 Configuration headers:
13965 $config_headers
13966
13967 Configuration links:
13968 $config_links
13969
13970 Configuration commands:
13971 $config_commands
13972
13973 Report bugs to the package provider."
13974
13975 _ACEOF
13976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13977 ac_cs_version="\\
13978 config.status
13979 configured by $0, generated by GNU Autoconf 2.64,
13980 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13981
13982 Copyright (C) 2009 Free Software Foundation, Inc.
13983 This config.status script is free software; the Free Software Foundation
13984 gives unlimited permission to copy, distribute and modify it."
13985
13986 ac_pwd='$ac_pwd'
13987 srcdir='$srcdir'
13988 INSTALL='$INSTALL'
13989 AWK='$AWK'
13990 test -n "\$AWK" || AWK=awk
13991 _ACEOF
13992
13993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13994 # The default lists apply if the user does not specify any file.
13995 ac_need_defaults=:
13996 while test $# != 0
13997 do
13998 case $1 in
13999 --*=*)
14000 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14001 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14002 ac_shift=:
14003 ;;
14004 *)
14005 ac_option=$1
14006 ac_optarg=$2
14007 ac_shift=shift
14008 ;;
14009 esac
14010
14011 case $ac_option in
14012 # Handling of the options.
14013 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14014 ac_cs_recheck=: ;;
14015 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14016 $as_echo "$ac_cs_version"; exit ;;
14017 --debug | --debu | --deb | --de | --d | -d )
14018 debug=: ;;
14019 --file | --fil | --fi | --f )
14020 $ac_shift
14021 case $ac_optarg in
14022 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14023 esac
14024 as_fn_append CONFIG_FILES " '$ac_optarg'"
14025 ac_need_defaults=false;;
14026 --header | --heade | --head | --hea )
14027 $ac_shift
14028 case $ac_optarg in
14029 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14030 esac
14031 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14032 ac_need_defaults=false;;
14033 --he | --h)
14034 # Conflict between --help and --header
14035 as_fn_error "ambiguous option: \`$1'
14036 Try \`$0 --help' for more information.";;
14037 --help | --hel | -h )
14038 $as_echo "$ac_cs_usage"; exit ;;
14039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14040 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14041 ac_cs_silent=: ;;
14042
14043 # This is an error.
14044 -*) as_fn_error "unrecognized option: \`$1'
14045 Try \`$0 --help' for more information." ;;
14046
14047 *) as_fn_append ac_config_targets " $1"
14048 ac_need_defaults=false ;;
14049
14050 esac
14051 shift
14052 done
14053
14054 ac_configure_extra_args=
14055
14056 if $ac_cs_silent; then
14057 exec 6>/dev/null
14058 ac_configure_extra_args="$ac_configure_extra_args --silent"
14059 fi
14060
14061 _ACEOF
14062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14063 if \$ac_cs_recheck; then
14064 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14065 shift
14066 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14067 CONFIG_SHELL='$SHELL'
14068 export CONFIG_SHELL
14069 exec "\$@"
14070 fi
14071
14072 _ACEOF
14073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14074 exec 5>>config.log
14075 {
14076 echo
14077 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14078 ## Running $as_me. ##
14079 _ASBOX
14080 $as_echo "$ac_log"
14081 } >&5
14082
14083 _ACEOF
14084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14085 #
14086 # INIT-COMMANDS
14087 #
14088 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
14089
14090 _ACEOF
14091
14092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14093
14094 # Handling of arguments.
14095 for ac_config_target in $ac_config_targets
14096 do
14097 case $ac_config_target in
14098 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14099 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
14100 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
14101 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
14102 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14103 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
14104 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14105 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
14106 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14107
14108 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14109 esac
14110 done
14111
14112
14113 # If the user did not use the arguments to specify the items to instantiate,
14114 # then the envvar interface is used. Set only those that are not.
14115 # We use the long form for the default assignment because of an extremely
14116 # bizarre bug on SunOS 4.1.3.
14117 if $ac_need_defaults; then
14118 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14119 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14120 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14121 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14122 fi
14123
14124 # Have a temporary directory for convenience. Make it in the build tree
14125 # simply because there is no reason against having it here, and in addition,
14126 # creating and moving files from /tmp can sometimes cause problems.
14127 # Hook for its removal unless debugging.
14128 # Note that there is a small window in which the directory will not be cleaned:
14129 # after its creation but before its name has been assigned to `$tmp'.
14130 $debug ||
14131 {
14132 tmp=
14133 trap 'exit_status=$?
14134 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14135 ' 0
14136 trap 'as_fn_exit 1' 1 2 13 15
14137 }
14138 # Create a (secure) tmp directory for tmp files.
14139
14140 {
14141 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14142 test -n "$tmp" && test -d "$tmp"
14143 } ||
14144 {
14145 tmp=./conf$$-$RANDOM
14146 (umask 077 && mkdir "$tmp")
14147 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14148
14149 # Set up the scripts for CONFIG_FILES section.
14150 # No need to generate them if there are no CONFIG_FILES.
14151 # This happens for instance with `./config.status config.h'.
14152 if test -n "$CONFIG_FILES"; then
14153
14154 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14155 ac_cs_awk_getline=:
14156 ac_cs_awk_pipe_init=
14157 ac_cs_awk_read_file='
14158 while ((getline aline < (F[key])) > 0)
14159 print(aline)
14160 close(F[key])'
14161 ac_cs_awk_pipe_fini=
14162 else
14163 ac_cs_awk_getline=false
14164 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14165 ac_cs_awk_read_file='
14166 print "|#_!!_#|"
14167 print "cat " F[key] " &&"
14168 '$ac_cs_awk_pipe_init
14169 # The final `:' finishes the AND list.
14170 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14171 fi
14172 ac_cr=`echo X | tr X '\015'`
14173 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14174 # But we know of no other shell where ac_cr would be empty at this
14175 # point, so we can use a bashism as a fallback.
14176 if test "x$ac_cr" = x; then
14177 eval ac_cr=\$\'\\r\'
14178 fi
14179 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14180 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14181 ac_cs_awk_cr='\r'
14182 else
14183 ac_cs_awk_cr=$ac_cr
14184 fi
14185
14186 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14187 _ACEOF
14188
14189 # Create commands to substitute file output variables.
14190 {
14191 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14192 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14193 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14194 echo "_ACAWK" &&
14195 echo "_ACEOF"
14196 } >conf$$files.sh &&
14197 . ./conf$$files.sh ||
14198 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14199 rm -f conf$$files.sh
14200
14201 {
14202 echo "cat >conf$$subs.awk <<_ACEOF" &&
14203 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14204 echo "_ACEOF"
14205 } >conf$$subs.sh ||
14206 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14207 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14208 ac_delim='%!_!# '
14209 for ac_last_try in false false false false false :; do
14210 . ./conf$$subs.sh ||
14211 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14212
14213 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14214 if test $ac_delim_n = $ac_delim_num; then
14215 break
14216 elif $ac_last_try; then
14217 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14218 else
14219 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14220 fi
14221 done
14222 rm -f conf$$subs.sh
14223
14224 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14225 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14226 _ACEOF
14227 sed -n '
14228 h
14229 s/^/S["/; s/!.*/"]=/
14230 p
14231 g
14232 s/^[^!]*!//
14233 :repl
14234 t repl
14235 s/'"$ac_delim"'$//
14236 t delim
14237 :nl
14238 h
14239 s/\(.\{148\}\).*/\1/
14240 t more1
14241 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14242 p
14243 n
14244 b repl
14245 :more1
14246 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14247 p
14248 g
14249 s/.\{148\}//
14250 t nl
14251 :delim
14252 h
14253 s/\(.\{148\}\).*/\1/
14254 t more2
14255 s/["\\]/\\&/g; s/^/"/; s/$/"/
14256 p
14257 b
14258 :more2
14259 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14260 p
14261 g
14262 s/.\{148\}//
14263 t delim
14264 ' <conf$$subs.awk | sed '
14265 /^[^""]/{
14266 N
14267 s/\n//
14268 }
14269 ' >>$CONFIG_STATUS || ac_write_fail=1
14270 rm -f conf$$subs.awk
14271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14272 _ACAWK
14273 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14274 for (key in S) S_is_set[key] = 1
14275 FS = "\a"
14276 \$ac_cs_awk_pipe_init
14277 }
14278 {
14279 line = $ 0
14280 nfields = split(line, field, "@")
14281 substed = 0
14282 len = length(field[1])
14283 for (i = 2; i < nfields; i++) {
14284 key = field[i]
14285 keylen = length(key)
14286 if (S_is_set[key]) {
14287 value = S[key]
14288 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14289 len += length(value) + length(field[++i])
14290 substed = 1
14291 } else
14292 len += 1 + keylen
14293 }
14294 if (nfields == 3 && !substed) {
14295 key = field[2]
14296 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14297 \$ac_cs_awk_read_file
14298 next
14299 }
14300 }
14301 print line
14302 }
14303 \$ac_cs_awk_pipe_fini
14304 _ACAWK
14305 _ACEOF
14306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14307 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14308 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14309 else
14310 cat
14311 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14312 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14313 _ACEOF
14314
14315 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14316 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14317 # trailing colons and then remove the whole line if VPATH becomes empty
14318 # (actually we leave an empty line to preserve line numbers).
14319 if test "x$srcdir" = x.; then
14320 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14321 s/:*\$(srcdir):*/:/
14322 s/:*\${srcdir}:*/:/
14323 s/:*@srcdir@:*/:/
14324 s/^\([^=]*=[ ]*\):*/\1/
14325 s/:*$//
14326 s/^[^=]*=[ ]*$//
14327 }'
14328 fi
14329
14330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14331 fi # test -n "$CONFIG_FILES"
14332
14333 # Set up the scripts for CONFIG_HEADERS section.
14334 # No need to generate them if there are no CONFIG_HEADERS.
14335 # This happens for instance with `./config.status Makefile'.
14336 if test -n "$CONFIG_HEADERS"; then
14337 cat >"$tmp/defines.awk" <<\_ACAWK ||
14338 BEGIN {
14339 _ACEOF
14340
14341 # Transform confdefs.h into an awk script `defines.awk', embedded as
14342 # here-document in config.status, that substitutes the proper values into
14343 # config.h.in to produce config.h.
14344
14345 # Create a delimiter string that does not exist in confdefs.h, to ease
14346 # handling of long lines.
14347 ac_delim='%!_!# '
14348 for ac_last_try in false false :; do
14349 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14350 if test -z "$ac_t"; then
14351 break
14352 elif $ac_last_try; then
14353 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14354 else
14355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14356 fi
14357 done
14358
14359 # For the awk script, D is an array of macro values keyed by name,
14360 # likewise P contains macro parameters if any. Preserve backslash
14361 # newline sequences.
14362
14363 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14364 sed -n '
14365 s/.\{148\}/&'"$ac_delim"'/g
14366 t rset
14367 :rset
14368 s/^[ ]*#[ ]*define[ ][ ]*/ /
14369 t def
14370 d
14371 :def
14372 s/\\$//
14373 t bsnl
14374 s/["\\]/\\&/g
14375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14376 D["\1"]=" \3"/p
14377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14378 d
14379 :bsnl
14380 s/["\\]/\\&/g
14381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14382 D["\1"]=" \3\\\\\\n"\\/p
14383 t cont
14384 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14385 t cont
14386 d
14387 :cont
14388 n
14389 s/.\{148\}/&'"$ac_delim"'/g
14390 t clear
14391 :clear
14392 s/\\$//
14393 t bsnlc
14394 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14395 d
14396 :bsnlc
14397 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14398 b cont
14399 ' <confdefs.h | sed '
14400 s/'"$ac_delim"'/"\\\
14401 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14402
14403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14404 for (key in D) D_is_set[key] = 1
14405 FS = "\a"
14406 }
14407 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14408 line = \$ 0
14409 split(line, arg, " ")
14410 if (arg[1] == "#") {
14411 defundef = arg[2]
14412 mac1 = arg[3]
14413 } else {
14414 defundef = substr(arg[1], 2)
14415 mac1 = arg[2]
14416 }
14417 split(mac1, mac2, "(") #)
14418 macro = mac2[1]
14419 prefix = substr(line, 1, index(line, defundef) - 1)
14420 if (D_is_set[macro]) {
14421 # Preserve the white space surrounding the "#".
14422 print prefix "define", macro P[macro] D[macro]
14423 next
14424 } else {
14425 # Replace #undef with comments. This is necessary, for example,
14426 # in the case of _POSIX_SOURCE, which is predefined and required
14427 # on some systems where configure will not decide to define it.
14428 if (defundef == "undef") {
14429 print "/*", prefix defundef, macro, "*/"
14430 next
14431 }
14432 }
14433 }
14434 { print }
14435 _ACAWK
14436 _ACEOF
14437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14438 as_fn_error "could not setup config headers machinery" "$LINENO" 5
14439 fi # test -n "$CONFIG_HEADERS"
14440
14441
14442 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
14443 shift
14444 for ac_tag
14445 do
14446 case $ac_tag in
14447 :[FHLC]) ac_mode=$ac_tag; continue;;
14448 esac
14449 case $ac_mode$ac_tag in
14450 :[FHL]*:*);;
14451 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14452 :[FH]-) ac_tag=-:-;;
14453 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14454 esac
14455 ac_save_IFS=$IFS
14456 IFS=:
14457 set x $ac_tag
14458 IFS=$ac_save_IFS
14459 shift
14460 ac_file=$1
14461 shift
14462
14463 case $ac_mode in
14464 :L) ac_source=$1;;
14465 :[FH])
14466 ac_file_inputs=
14467 for ac_f
14468 do
14469 case $ac_f in
14470 -) ac_f="$tmp/stdin";;
14471 *) # Look for the file first in the build tree, then in the source tree
14472 # (if the path is not absolute). The absolute path cannot be DOS-style,
14473 # because $ac_f cannot contain `:'.
14474 test -f "$ac_f" ||
14475 case $ac_f in
14476 [\\/$]*) false;;
14477 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14478 esac ||
14479 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14480 esac
14481 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14482 as_fn_append ac_file_inputs " '$ac_f'"
14483 done
14484
14485 # Let's still pretend it is `configure' which instantiates (i.e., don't
14486 # use $as_me), people would be surprised to read:
14487 # /* config.h. Generated by config.status. */
14488 configure_input='Generated from '`
14489 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14490 `' by configure.'
14491 if test x"$ac_file" != x-; then
14492 configure_input="$ac_file. $configure_input"
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14494 $as_echo "$as_me: creating $ac_file" >&6;}
14495 fi
14496 # Neutralize special characters interpreted by sed in replacement strings.
14497 case $configure_input in #(
14498 *\&* | *\|* | *\\* )
14499 ac_sed_conf_input=`$as_echo "$configure_input" |
14500 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14501 *) ac_sed_conf_input=$configure_input;;
14502 esac
14503
14504 case $ac_tag in
14505 *:-:* | *:-) cat >"$tmp/stdin" \
14506 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14507 esac
14508 ;;
14509 esac
14510
14511 ac_dir=`$as_dirname -- "$ac_file" ||
14512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14513 X"$ac_file" : 'X\(//\)[^/]' \| \
14514 X"$ac_file" : 'X\(//\)$' \| \
14515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14516 $as_echo X"$ac_file" |
14517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14518 s//\1/
14519 q
14520 }
14521 /^X\(\/\/\)[^/].*/{
14522 s//\1/
14523 q
14524 }
14525 /^X\(\/\/\)$/{
14526 s//\1/
14527 q
14528 }
14529 /^X\(\/\).*/{
14530 s//\1/
14531 q
14532 }
14533 s/.*/./; q'`
14534 as_dir="$ac_dir"; as_fn_mkdir_p
14535 ac_builddir=.
14536
14537 case "$ac_dir" in
14538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14539 *)
14540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14541 # A ".." for each directory in $ac_dir_suffix.
14542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14543 case $ac_top_builddir_sub in
14544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14546 esac ;;
14547 esac
14548 ac_abs_top_builddir=$ac_pwd
14549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14550 # for backward compatibility:
14551 ac_top_builddir=$ac_top_build_prefix
14552
14553 case $srcdir in
14554 .) # We are building in place.
14555 ac_srcdir=.
14556 ac_top_srcdir=$ac_top_builddir_sub
14557 ac_abs_top_srcdir=$ac_pwd ;;
14558 [\\/]* | ?:[\\/]* ) # Absolute name.
14559 ac_srcdir=$srcdir$ac_dir_suffix;
14560 ac_top_srcdir=$srcdir
14561 ac_abs_top_srcdir=$srcdir ;;
14562 *) # Relative name.
14563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14564 ac_top_srcdir=$ac_top_build_prefix$srcdir
14565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14566 esac
14567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14568
14569
14570 case $ac_mode in
14571 :F)
14572 #
14573 # CONFIG_FILE
14574 #
14575
14576 case $INSTALL in
14577 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14578 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14579 esac
14580 _ACEOF
14581
14582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14583 # If the template does not know about datarootdir, expand it.
14584 # FIXME: This hack should be removed a few years after 2.60.
14585 ac_datarootdir_hack=; ac_datarootdir_seen=
14586 ac_sed_dataroot='
14587 /datarootdir/ {
14588 p
14589 q
14590 }
14591 /@datadir@/p
14592 /@docdir@/p
14593 /@infodir@/p
14594 /@localedir@/p
14595 /@mandir@/p'
14596 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14597 *datarootdir*) ac_datarootdir_seen=yes;;
14598 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14600 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14601 _ACEOF
14602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14603 ac_datarootdir_hack='
14604 s&@datadir@&$datadir&g
14605 s&@docdir@&$docdir&g
14606 s&@infodir@&$infodir&g
14607 s&@localedir@&$localedir&g
14608 s&@mandir@&$mandir&g
14609 s&\\\${datarootdir}&$datarootdir&g' ;;
14610 esac
14611 _ACEOF
14612
14613 # Neutralize VPATH when `$srcdir' = `.'.
14614 # Shell code in configure.ac might set extrasub.
14615 # FIXME: do we really want to maintain this feature?
14616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14617 ac_sed_extra="$ac_vpsub
14618 $extrasub
14619 _ACEOF
14620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14621 :t
14622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14623 s|@configure_input@|$ac_sed_conf_input|;t t
14624 s&@top_builddir@&$ac_top_builddir_sub&;t t
14625 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14626 s&@srcdir@&$ac_srcdir&;t t
14627 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14628 s&@top_srcdir@&$ac_top_srcdir&;t t
14629 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14630 s&@builddir@&$ac_builddir&;t t
14631 s&@abs_builddir@&$ac_abs_builddir&;t t
14632 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14633 s&@INSTALL@&$ac_INSTALL&;t t
14634 $ac_datarootdir_hack
14635 "
14636 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14637 if $ac_cs_awk_getline; then
14638 $AWK -f "$tmp/subs.awk"
14639 else
14640 $AWK -f "$tmp/subs.awk" | $SHELL
14641 fi >$tmp/out \
14642 || as_fn_error "could not create $ac_file" "$LINENO" 5
14643
14644 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14645 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14646 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14648 which seems to be undefined. Please make sure it is defined." >&5
14649 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14650 which seems to be undefined. Please make sure it is defined." >&2;}
14651
14652 rm -f "$tmp/stdin"
14653 case $ac_file in
14654 -) cat "$tmp/out" && rm -f "$tmp/out";;
14655 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14656 esac \
14657 || as_fn_error "could not create $ac_file" "$LINENO" 5
14658 ;;
14659 :H)
14660 #
14661 # CONFIG_HEADER
14662 #
14663 if test x"$ac_file" != x-; then
14664 {
14665 $as_echo "/* $configure_input */" \
14666 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14667 } >"$tmp/config.h" \
14668 || as_fn_error "could not create $ac_file" "$LINENO" 5
14669 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14671 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14672 else
14673 rm -f "$ac_file"
14674 mv "$tmp/config.h" "$ac_file" \
14675 || as_fn_error "could not create $ac_file" "$LINENO" 5
14676 fi
14677 else
14678 $as_echo "/* $configure_input */" \
14679 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14680 || as_fn_error "could not create -" "$LINENO" 5
14681 fi
14682 ;;
14683 :L)
14684 #
14685 # CONFIG_LINK
14686 #
14687
14688 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14689 :
14690 else
14691 # Prefer the file from the source tree if names are identical.
14692 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14693 ac_source=$srcdir/$ac_source
14694 fi
14695
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14697 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14698
14699 if test ! -r "$ac_source"; then
14700 as_fn_error "$ac_source: file not found" "$LINENO" 5
14701 fi
14702 rm -f "$ac_file"
14703
14704 # Try a relative symlink, then a hard link, then a copy.
14705 case $srcdir in
14706 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14707 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14708 esac
14709 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14710 ln "$ac_source" "$ac_file" 2>/dev/null ||
14711 cp -p "$ac_source" "$ac_file" ||
14712 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14713 fi
14714 ;;
14715 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14716 $as_echo "$as_me: executing $ac_file commands" >&6;}
14717 ;;
14718 esac
14719
14720
14721 case $ac_file$ac_mode in
14722 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
14723 "default":C)
14724 case x$CONFIG_HEADERS in
14725 xconfig.h:config.in)
14726 echo > stamp-h ;;
14727 esac
14728 ;;
14729
14730 esac
14731 done # for ac_tag
14732
14733
14734 as_fn_exit 0
14735 _ACEOF
14736 ac_clean_files=$ac_clean_files_save
14737
14738 test $ac_write_fail = 0 ||
14739 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14740
14741
14742 # configure is writing to config.log, and then calls config.status.
14743 # config.status does its own redirection, appending to config.log.
14744 # Unfortunately, on DOS this fails, as config.log is still kept open
14745 # by configure, so config.status won't be able to write to it; its
14746 # output is simply discarded. So we exec the FD to /dev/null,
14747 # effectively closing config.log, so it can be properly (re)opened and
14748 # appended to by config.status. When coming back to configure, we
14749 # need to make the FD available again.
14750 if test "$no_create" != yes; then
14751 ac_cs_success=:
14752 ac_config_status_args=
14753 test "$silent" = yes &&
14754 ac_config_status_args="$ac_config_status_args --quiet"
14755 exec 5>/dev/null
14756 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14757 exec 5>>config.log
14758 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14759 # would make configure fail if this is the last instruction.
14760 $ac_cs_success || as_fn_exit $?
14761 fi
14762
14763 #
14764 # CONFIG_SUBDIRS section.
14765 #
14766 if test "$no_recursion" != yes; then
14767
14768 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14769 # so they do not pile up.
14770 ac_sub_configure_args=
14771 ac_prev=
14772 eval "set x $ac_configure_args"
14773 shift
14774 for ac_arg
14775 do
14776 if test -n "$ac_prev"; then
14777 ac_prev=
14778 continue
14779 fi
14780 case $ac_arg in
14781 -cache-file | --cache-file | --cache-fil | --cache-fi \
14782 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14783 ac_prev=cache_file ;;
14784 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14785 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14786 | --c=*)
14787 ;;
14788 --config-cache | -C)
14789 ;;
14790 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14791 ac_prev=srcdir ;;
14792 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14793 ;;
14794 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14795 ac_prev=prefix ;;
14796 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14797 ;;
14798 --disable-option-checking)
14799 ;;
14800 *)
14801 case $ac_arg in
14802 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14803 esac
14804 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14805 esac
14806 done
14807
14808 # Always prepend --prefix to ensure using the same prefix
14809 # in subdir configurations.
14810 ac_arg="--prefix=$prefix"
14811 case $ac_arg in
14812 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14813 esac
14814 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14815
14816 # Pass --silent
14817 if test "$silent" = yes; then
14818 ac_sub_configure_args="--silent $ac_sub_configure_args"
14819 fi
14820
14821 # Always prepend --disable-option-checking to silence warnings, since
14822 # different subdirs can have different --enable and --with options.
14823 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14824
14825 ac_popdir=`pwd`
14826 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14827
14828 # Do not complain, so a configure script can configure whichever
14829 # parts of a large source tree are present.
14830 test -d "$srcdir/$ac_dir" || continue
14831
14832 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14833 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14834 $as_echo "$ac_msg" >&6
14835 as_dir="$ac_dir"; as_fn_mkdir_p
14836 ac_builddir=.
14837
14838 case "$ac_dir" in
14839 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14840 *)
14841 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14842 # A ".." for each directory in $ac_dir_suffix.
14843 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14844 case $ac_top_builddir_sub in
14845 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14846 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14847 esac ;;
14848 esac
14849 ac_abs_top_builddir=$ac_pwd
14850 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14851 # for backward compatibility:
14852 ac_top_builddir=$ac_top_build_prefix
14853
14854 case $srcdir in
14855 .) # We are building in place.
14856 ac_srcdir=.
14857 ac_top_srcdir=$ac_top_builddir_sub
14858 ac_abs_top_srcdir=$ac_pwd ;;
14859 [\\/]* | ?:[\\/]* ) # Absolute name.
14860 ac_srcdir=$srcdir$ac_dir_suffix;
14861 ac_top_srcdir=$srcdir
14862 ac_abs_top_srcdir=$srcdir ;;
14863 *) # Relative name.
14864 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14865 ac_top_srcdir=$ac_top_build_prefix$srcdir
14866 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14867 esac
14868 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14869
14870
14871 cd "$ac_dir"
14872
14873 # Check for guested configure; otherwise get Cygnus style configure.
14874 if test -f "$ac_srcdir/configure.gnu"; then
14875 ac_sub_configure=$ac_srcdir/configure.gnu
14876 elif test -f "$ac_srcdir/configure"; then
14877 ac_sub_configure=$ac_srcdir/configure
14878 elif test -f "$ac_srcdir/configure.in"; then
14879 # This should be Cygnus configure.
14880 ac_sub_configure=$ac_aux_dir/configure
14881 else
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14883 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14884 ac_sub_configure=
14885 fi
14886
14887 # The recursion is here.
14888 if test -n "$ac_sub_configure"; then
14889 # Make the cache file name correct relative to the subdirectory.
14890 case $cache_file in
14891 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14892 *) # Relative name.
14893 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14894 esac
14895
14896 { $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
14897 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14898 # The eval makes quoting arguments work.
14899 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14900 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14901 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14902 fi
14903
14904 cd "$ac_popdir"
14905 done
14906 fi
14907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14910 fi
14911
14912
14913 exit 0
This page took 0.553379 seconds and 4 git commands to generate.