0ba80147c6837811db3773f02254fa95160be12c
[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.69.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
204 fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211 do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
258 fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
298 {
299 return $1
300 } # as_fn_set_status
301
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
306 {
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
311
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
316 {
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358 } # as_fn_mkdir_p
359
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
364 {
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378 else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383 fi # as_fn_append
384
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395 else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400 fi # as_fn_arith
401
402
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
409 {
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
418
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
424 fi
425
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
430 fi
431
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
436 fi
437
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498 }
499
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509 *)
510 ECHO_N='-n';;
511 esac
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534 else
535 as_ln_s='cp -pR'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545 fi
546
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
549
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
559
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565 #
566 # Initializations.
567 #
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
576
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
584
585 ac_unique_file="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
621
622 enable_option_checking=no
623 ac_header_list=
624 ac_subst_vars='LTLIBOBJS
625 LIBOBJS
626 GCORE_TRANSFORM_NAME
627 GDB_TRANSFORM_NAME
628 XSLTPROC
629 GDB_NM_FILE
630 LTLIBBABELTRACE
631 LIBBABELTRACE
632 HAVE_LIBBABELTRACE
633 HAVE_NATIVE_GCORE_HOST
634 NAT_GENERATED_FILES
635 XM_CLIBS
636 MH_CFLAGS
637 LOADLIBES
638 NAT_CDEPS
639 NATDEPFILES
640 NAT_FILE
641 target_subdir
642 CONFIG_UNINSTALL
643 CONFIG_INSTALL
644 CONFIG_CLEAN
645 CONFIG_ALL
646 CONFIG_SRCS
647 CONFIG_DEPS
648 CONFIG_OBS
649 PROFILE_CFLAGS
650 ENABLE_CFLAGS
651 SIM_OBS
652 SIM
653 XMKMF
654 GDBTK_SRC_DIR
655 GDBTK_CFLAGS
656 GDBTKLIBS
657 X_LIBS
658 X_LDFLAGS
659 X_CFLAGS
660 TK_XINCLUDES
661 TK_DEPS
662 TK_LIBRARY
663 TK_INCLUDE
664 TK_STUB_LIB_SPEC
665 TK_STUB_LIB_FLAG
666 TK_STUB_LIB_FILE
667 TK_LIB_SPEC
668 TK_LIB_FLAG
669 TK_LIB_FILE
670 TK_SRC_DIR
671 TK_BIN_DIR
672 TK_VERSION
673 TCL_DEPS
674 TCL_LIBRARY
675 TCL_INCLUDE
676 TCL_STUB_LIB_SPEC
677 TCL_STUB_LIB_FLAG
678 TCL_STUB_LIB_FILE
679 TCL_LIB_SPEC
680 TCL_LIB_FLAG
681 TCL_LIB_FILE
682 TCL_SRC_DIR
683 TCL_BIN_DIR
684 TCL_PATCH_LEVEL
685 TCL_VERSION
686 WIN32LDAPP
687 GUI_CFLAGS_X
688 LIBGUI
689 LTLIBLZMA
690 LIBLZMA
691 HAVE_LIBLZMA
692 WIN32LIBS
693 SER_HARDWIRE
694 WERROR_CFLAGS
695 WARN_CFLAGS
696 SYSTEM_GDBINIT
697 TARGET_SYSTEM_ROOT
698 CONFIG_LDFLAGS
699 RDYNAMIC
700 ALLOCA
701 LTLIBIPT
702 LIBIPT
703 HAVE_LIBIPT
704 HAVE_GUILE_FALSE
705 HAVE_GUILE_TRUE
706 GUILE_LIBS
707 GUILE_CPPFLAGS
708 GUILD_TARGET_FLAG
709 GUILD
710 pkg_config_prog_path
711 HAVE_PYTHON_FALSE
712 HAVE_PYTHON_TRUE
713 PYTHON_LIBS
714 PYTHON_CPPFLAGS
715 PYTHON_CFLAGS
716 python_prog_path
717 LTLIBMPFR
718 LIBMPFR
719 HAVE_LIBMPFR
720 LTLIBEXPAT
721 LIBEXPAT
722 HAVE_LIBEXPAT
723 JIT_READER_DIR
724 TARGET_PTR
725 READLINE_TEXI_INCFLAG
726 READLINE_CFLAGS
727 READLINE_DEPS
728 READLINE
729 LTLIBICONV
730 LIBICONV
731 zlibinc
732 zlibdir
733 MIG
734 WINDRES
735 DLLTOOL
736 AR
737 YFLAGS
738 YACC
739 RANLIB
740 LN_S
741 INSTALL_DATA
742 INSTALL_SCRIPT
743 INSTALL_PROGRAM
744 AWK
745 REPORT_BUGS_TEXI
746 REPORT_BUGS_TO
747 PKGVERSION
748 CODESIGN_CERT
749 HAVE_NATIVE_GCORE_TARGET
750 TARGET_OBS
751 subdirs
752 GDB_DATADIR
753 DEBUGDIR
754 MAKEINFO_EXTRA_FLAGS
755 MAKEINFOFLAGS
756 MAKEINFO
757 PACKAGE
758 GNULIB_STDINT_H
759 CATOBJEXT
760 GENCAT
761 INSTOBJEXT
762 DATADIRNAME
763 CATALOGS
764 POSUB
765 GMSGFMT
766 XGETTEXT
767 INCINTL
768 LIBINTL_DEP
769 LIBINTL
770 USE_NLS
771 CCDEPMODE
772 DEPDIR
773 am__leading_dot
774 CXX_DIALECT
775 HAVE_CXX11
776 INSTALL_STRIP_PROGRAM
777 STRIP
778 install_sh
779 target_os
780 target_vendor
781 target_cpu
782 target
783 host_os
784 host_vendor
785 host_cpu
786 host
787 build_os
788 build_vendor
789 build_cpu
790 build
791 EGREP
792 GREP
793 CPP
794 ac_ct_CXX
795 CXXFLAGS
796 CXX
797 OBJEXT
798 EXEEXT
799 ac_ct_CC
800 CPPFLAGS
801 LDFLAGS
802 CFLAGS
803 CC
804 MAINT
805 MAINTAINER_MODE_FALSE
806 MAINTAINER_MODE_TRUE
807 target_alias
808 host_alias
809 build_alias
810 LIBS
811 ECHO_T
812 ECHO_N
813 ECHO_C
814 DEFS
815 mandir
816 localedir
817 libdir
818 psdir
819 pdfdir
820 dvidir
821 htmldir
822 infodir
823 docdir
824 oldincludedir
825 includedir
826 localstatedir
827 sharedstatedir
828 sysconfdir
829 datadir
830 datarootdir
831 libexecdir
832 sbindir
833 bindir
834 program_transform_name
835 prefix
836 exec_prefix
837 PACKAGE_URL
838 PACKAGE_BUGREPORT
839 PACKAGE_STRING
840 PACKAGE_VERSION
841 PACKAGE_TARNAME
842 PACKAGE_NAME
843 PATH_SEPARATOR
844 SHELL'
845 ac_subst_files='nat_makefile_frag'
846 ac_user_opts='
847 enable_option_checking
848 enable_maintainer_mode
849 enable_plugins
850 enable_largefile
851 with_separate_debug_dir
852 with_gdb_datadir
853 with_relocated_sources
854 with_auto_load_dir
855 with_auto_load_safe_path
856 enable_targets
857 enable_64_bit_bfd
858 enable_gdbmi
859 enable_tui
860 enable_gdbtk
861 with_libunwind_ia64
862 with_curses
863 enable_profiling
864 enable_codesign
865 with_pkgversion
866 with_bugurl
867 with_system_zlib
868 with_gnu_ld
869 enable_rpath
870 with_libiconv_prefix
871 with_iconv_bin
872 with_system_readline
873 with_jit_reader_dir
874 with_expat
875 with_libexpat_prefix
876 with_mpfr
877 with_libmpfr_prefix
878 with_python
879 with_guile
880 enable_libmcheck
881 with_intel_pt
882 with_libipt_prefix
883 with_included_regex
884 with_sysroot
885 with_system_gdbinit
886 enable_werror
887 enable_build_warnings
888 enable_gdb_build_warnings
889 enable_ubsan
890 with_lzma
891 with_liblzma_prefix
892 with_tcl
893 with_tk
894 with_x
895 enable_sim
896 enable_gdbserver
897 with_babeltrace
898 with_libbabeltrace_prefix
899 '
900 ac_precious_vars='build_alias
901 host_alias
902 target_alias
903 CC
904 CFLAGS
905 LDFLAGS
906 LIBS
907 CPPFLAGS
908 CXX
909 CXXFLAGS
910 CCC
911 CPP
912 MAKEINFO
913 MAKEINFOFLAGS
914 YACC
915 YFLAGS
916 XMKMF'
917 ac_subdirs_all='testsuite
918 gdbtk
919 gdbserver'
920
921 # Initialize some variables set by options.
922 ac_init_help=
923 ac_init_version=false
924 ac_unrecognized_opts=
925 ac_unrecognized_sep=
926 # The variables have the same names as the options, with
927 # dashes changed to underlines.
928 cache_file=/dev/null
929 exec_prefix=NONE
930 no_create=
931 no_recursion=
932 prefix=NONE
933 program_prefix=NONE
934 program_suffix=NONE
935 program_transform_name=s,x,x,
936 silent=
937 site=
938 srcdir=
939 verbose=
940 x_includes=NONE
941 x_libraries=NONE
942
943 # Installation directory options.
944 # These are left unexpanded so users can "make install exec_prefix=/foo"
945 # and all the variables that are supposed to be based on exec_prefix
946 # by default will actually change.
947 # Use braces instead of parens because sh, perl, etc. also accept them.
948 # (The list follows the same order as the GNU Coding Standards.)
949 bindir='${exec_prefix}/bin'
950 sbindir='${exec_prefix}/sbin'
951 libexecdir='${exec_prefix}/libexec'
952 datarootdir='${prefix}/share'
953 datadir='${datarootdir}'
954 sysconfdir='${prefix}/etc'
955 sharedstatedir='${prefix}/com'
956 localstatedir='${prefix}/var'
957 includedir='${prefix}/include'
958 oldincludedir='/usr/include'
959 docdir='${datarootdir}/doc/${PACKAGE}'
960 infodir='${datarootdir}/info'
961 htmldir='${docdir}'
962 dvidir='${docdir}'
963 pdfdir='${docdir}'
964 psdir='${docdir}'
965 libdir='${exec_prefix}/lib'
966 localedir='${datarootdir}/locale'
967 mandir='${datarootdir}/man'
968
969 ac_prev=
970 ac_dashdash=
971 for ac_option
972 do
973 # If the previous option needs an argument, assign it.
974 if test -n "$ac_prev"; then
975 eval $ac_prev=\$ac_option
976 ac_prev=
977 continue
978 fi
979
980 case $ac_option in
981 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 *=) ac_optarg= ;;
983 *) ac_optarg=yes ;;
984 esac
985
986 # Accept the important Cygnus configure options, so we can diagnose typos.
987
988 case $ac_dashdash$ac_option in
989 --)
990 ac_dashdash=yes ;;
991
992 -bindir | --bindir | --bindi | --bind | --bin | --bi)
993 ac_prev=bindir ;;
994 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
995 bindir=$ac_optarg ;;
996
997 -build | --build | --buil | --bui | --bu)
998 ac_prev=build_alias ;;
999 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1000 build_alias=$ac_optarg ;;
1001
1002 -cache-file | --cache-file | --cache-fil | --cache-fi \
1003 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1004 ac_prev=cache_file ;;
1005 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1006 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1007 cache_file=$ac_optarg ;;
1008
1009 --config-cache | -C)
1010 cache_file=config.cache ;;
1011
1012 -datadir | --datadir | --datadi | --datad)
1013 ac_prev=datadir ;;
1014 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1015 datadir=$ac_optarg ;;
1016
1017 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1018 | --dataroo | --dataro | --datar)
1019 ac_prev=datarootdir ;;
1020 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1021 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1022 datarootdir=$ac_optarg ;;
1023
1024 -disable-* | --disable-*)
1025 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028 as_fn_error $? "invalid feature name: $ac_useropt"
1029 ac_useropt_orig=$ac_useropt
1030 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1032 *"
1033 "enable_$ac_useropt"
1034 "*) ;;
1035 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1036 ac_unrecognized_sep=', ';;
1037 esac
1038 eval enable_$ac_useropt=no ;;
1039
1040 -docdir | --docdir | --docdi | --doc | --do)
1041 ac_prev=docdir ;;
1042 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1043 docdir=$ac_optarg ;;
1044
1045 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1046 ac_prev=dvidir ;;
1047 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1048 dvidir=$ac_optarg ;;
1049
1050 -enable-* | --enable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=\$ac_optarg ;;
1065
1066 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1067 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1068 | --exec | --exe | --ex)
1069 ac_prev=exec_prefix ;;
1070 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1071 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1072 | --exec=* | --exe=* | --ex=*)
1073 exec_prefix=$ac_optarg ;;
1074
1075 -gas | --gas | --ga | --g)
1076 # Obsolete; use --with-gas.
1077 with_gas=yes ;;
1078
1079 -help | --help | --hel | --he | -h)
1080 ac_init_help=long ;;
1081 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1082 ac_init_help=recursive ;;
1083 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1084 ac_init_help=short ;;
1085
1086 -host | --host | --hos | --ho)
1087 ac_prev=host_alias ;;
1088 -host=* | --host=* | --hos=* | --ho=*)
1089 host_alias=$ac_optarg ;;
1090
1091 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1092 ac_prev=htmldir ;;
1093 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1094 | --ht=*)
1095 htmldir=$ac_optarg ;;
1096
1097 -includedir | --includedir | --includedi | --included | --include \
1098 | --includ | --inclu | --incl | --inc)
1099 ac_prev=includedir ;;
1100 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1101 | --includ=* | --inclu=* | --incl=* | --inc=*)
1102 includedir=$ac_optarg ;;
1103
1104 -infodir | --infodir | --infodi | --infod | --info | --inf)
1105 ac_prev=infodir ;;
1106 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1107 infodir=$ac_optarg ;;
1108
1109 -libdir | --libdir | --libdi | --libd)
1110 ac_prev=libdir ;;
1111 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1112 libdir=$ac_optarg ;;
1113
1114 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1115 | --libexe | --libex | --libe)
1116 ac_prev=libexecdir ;;
1117 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1118 | --libexe=* | --libex=* | --libe=*)
1119 libexecdir=$ac_optarg ;;
1120
1121 -localedir | --localedir | --localedi | --localed | --locale)
1122 ac_prev=localedir ;;
1123 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1124 localedir=$ac_optarg ;;
1125
1126 -localstatedir | --localstatedir | --localstatedi | --localstated \
1127 | --localstate | --localstat | --localsta | --localst | --locals)
1128 ac_prev=localstatedir ;;
1129 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1130 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1131 localstatedir=$ac_optarg ;;
1132
1133 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1134 ac_prev=mandir ;;
1135 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1136 mandir=$ac_optarg ;;
1137
1138 -nfp | --nfp | --nf)
1139 # Obsolete; use --without-fp.
1140 with_fp=no ;;
1141
1142 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1143 | --no-cr | --no-c | -n)
1144 no_create=yes ;;
1145
1146 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1147 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1148 no_recursion=yes ;;
1149
1150 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1151 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1152 | --oldin | --oldi | --old | --ol | --o)
1153 ac_prev=oldincludedir ;;
1154 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1155 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1156 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1157 oldincludedir=$ac_optarg ;;
1158
1159 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1160 ac_prev=prefix ;;
1161 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1162 prefix=$ac_optarg ;;
1163
1164 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1165 | --program-pre | --program-pr | --program-p)
1166 ac_prev=program_prefix ;;
1167 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1168 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1169 program_prefix=$ac_optarg ;;
1170
1171 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1172 | --program-suf | --program-su | --program-s)
1173 ac_prev=program_suffix ;;
1174 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1175 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1176 program_suffix=$ac_optarg ;;
1177
1178 -program-transform-name | --program-transform-name \
1179 | --program-transform-nam | --program-transform-na \
1180 | --program-transform-n | --program-transform- \
1181 | --program-transform | --program-transfor \
1182 | --program-transfo | --program-transf \
1183 | --program-trans | --program-tran \
1184 | --progr-tra | --program-tr | --program-t)
1185 ac_prev=program_transform_name ;;
1186 -program-transform-name=* | --program-transform-name=* \
1187 | --program-transform-nam=* | --program-transform-na=* \
1188 | --program-transform-n=* | --program-transform-=* \
1189 | --program-transform=* | --program-transfor=* \
1190 | --program-transfo=* | --program-transf=* \
1191 | --program-trans=* | --program-tran=* \
1192 | --progr-tra=* | --program-tr=* | --program-t=*)
1193 program_transform_name=$ac_optarg ;;
1194
1195 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1196 ac_prev=pdfdir ;;
1197 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1198 pdfdir=$ac_optarg ;;
1199
1200 -psdir | --psdir | --psdi | --psd | --ps)
1201 ac_prev=psdir ;;
1202 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1203 psdir=$ac_optarg ;;
1204
1205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1206 | -silent | --silent | --silen | --sile | --sil)
1207 silent=yes ;;
1208
1209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 ac_prev=sbindir ;;
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 | --sbi=* | --sb=*)
1213 sbindir=$ac_optarg ;;
1214
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1218 | --sha | --sh)
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 | --sha=* | --sh=*)
1224 sharedstatedir=$ac_optarg ;;
1225
1226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
1229 site=$ac_optarg ;;
1230
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1234 srcdir=$ac_optarg ;;
1235
1236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1241 sysconfdir=$ac_optarg ;;
1242
1243 -target | --target | --targe | --targ | --tar | --ta | --t)
1244 ac_prev=target_alias ;;
1245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1246 target_alias=$ac_optarg ;;
1247
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1250
1251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
1253
1254 -with-* | --with-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=\$ac_optarg ;;
1269
1270 -without-* | --without-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 as_fn_error $? "invalid package name: $ac_useropt"
1275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1278 *"
1279 "with_$ac_useropt"
1280 "*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=no ;;
1285
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1289
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1295 x_includes=$ac_optarg ;;
1296
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1302 x_libraries=$ac_optarg ;;
1303
1304 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305 Try \`$0 --help' for more information"
1306 ;;
1307
1308 *=*)
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
1311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
1313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1314 esac
1315 eval $ac_envvar=\$ac_optarg
1316 export $ac_envvar ;;
1317
1318 *)
1319 # FIXME: should be removed in autoconf 3.0.
1320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324 ;;
1325
1326 esac
1327 done
1328
1329 if test -n "$ac_prev"; then
1330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1331 as_fn_error $? "missing argument to $ac_option"
1332 fi
1333
1334 if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1336 no) ;;
1337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 esac
1340 fi
1341
1342 # Check all directory arguments for consistency.
1343 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1346 libdir localedir mandir
1347 do
1348 eval ac_val=\$$ac_var
1349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
1356 case $ac_val in
1357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1359 esac
1360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1361 done
1362
1363 # There might be people who depend on the old broken behavior: `$host'
1364 # used to hold the argument of --host etc.
1365 # FIXME: To remove some day.
1366 build=$build_alias
1367 host=$host_alias
1368 target=$target_alias
1369
1370 # FIXME: To remove some day.
1371 if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
1374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377 fi
1378
1379 ac_tool_prefix=
1380 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382 test "$silent" = yes && exec 6>/dev/null
1383
1384
1385 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di=`ls -di .` &&
1387 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $? "working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $? "pwd does not report name of working directory"
1391
1392
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
1420 srcdir=$ac_confdir
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1422 srcdir=..
1423 fi
1424 else
1425 ac_srcdir_defaulted=no
1426 fi
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1430 fi
1431 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 ac_abs_confdir=`(
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 pwd)`
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1438 fi
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1442 case $srcdir in
1443 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 esac
1445 for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450 done
1451
1452 #
1453 # Report the --help message.
1454 #
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459 \`configure' configures this package to adapt to many kinds of systems.
1460
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466 Defaults for the options are specified in brackets.
1467
1468 Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 [PREFIX]
1484
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1489
1490 For better control, use the options below.
1491
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1512 _ACEOF
1513
1514 cat <<\_ACEOF
1515
1516 Program names:
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1520
1521 X features:
1522 --x-includes=DIR X include files are in DIR
1523 --x-libraries=DIR X library files are in DIR
1524
1525 System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528 --target=TARGET configure for building compilers for TARGET [HOST]
1529 _ACEOF
1530 fi
1531
1532 if test -n "$ac_init_help"; then
1533
1534 cat <<\_ACEOF
1535
1536 Optional Features:
1537 --disable-option-checking ignore unrecognized --enable/--with options
1538 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1539 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1540 --enable-maintainer-mode
1541 enable make rules and dependencies not useful (and
1542 sometimes confusing) to the casual installer
1543 --enable-plugins Enable support for plugins
1544 --disable-largefile omit support for large files
1545 --enable-targets=TARGETS
1546 alternative target configurations
1547 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1548 --disable-gdbmi disable machine-interface (MI)
1549 --enable-tui enable full-screen terminal user interface (TUI)
1550 --enable-gdbtk enable gdbtk graphical user interface (GUI)
1551 --enable-profiling enable profiling of GDB
1552 --enable-codesign=CERT sign gdb with 'codesign -s CERT'
1553 --disable-rpath do not hardcode runtime library paths
1554 --enable-libmcheck Try linking with -lmcheck if available
1555 --enable-werror treat compile warnings as errors
1556 --enable-build-warnings enable build-time compiler warnings if gcc is used
1557 --enable-gdb-build-warnings
1558 enable GDB specific build-time compiler warnings if
1559 gcc is used
1560 --enable-ubsan enable undefined behavior sanitizer (auto/yes/no)
1561 --enable-sim link gdb with simulator
1562 --enable-gdbserver automatically build gdbserver (yes/no/auto, default
1563 is auto)
1564
1565 Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1568 --with-separate-debug-dir=PATH
1569 look for global separate debug info in this path
1570 [LIBDIR/debug]
1571 --with-gdb-datadir=PATH look for global separate data files in this path
1572 [DATADIR/gdb]
1573 --with-relocated-sources=PATH
1574 automatically relocate this path for source files
1575 --with-auto-load-dir=PATH
1576 directories from which to load auto-loaded scripts
1577 [$debugdir:$datadir/auto-load]
1578 --with-auto-load-safe-path=PATH
1579 directories safe to hold auto-loaded files
1580 [--with-auto-load-dir]
1581 --without-auto-load-safe-path
1582 do not restrict auto-loaded files locations
1583 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets
1584 --with-curses use the curses library instead of the termcap
1585 library
1586 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
1587 --with-bugurl=URL Direct users to URL to report a bug
1588 --with-system-zlib use installed libz
1589 --with-gnu-ld assume the C compiler uses GNU ld default=no
1590 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1591 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1592 --with-iconv-bin=PATH specify where to find the iconv program
1593 --with-system-readline use installed readline library
1594 --with-jit-reader-dir=PATH
1595 directory to load the JIT readers from
1596 --with-expat include expat support (auto/yes/no)
1597 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1598 --without-libexpat-prefix don't search for libexpat in includedir and libdir
1599 --with-mpfr include MPFR support (auto/yes/no)
1600 --with-libmpfr-prefix[=DIR] search for libmpfr in DIR/include and DIR/lib
1601 --without-libmpfr-prefix don't search for libmpfr in includedir and libdir
1602 --with-python[=PYTHON] include python support
1603 (auto/yes/no/<python-program>)
1604 --with-guile[=GUILE] include guile support
1605 (auto/yes/no/<guile-version>/<pkg-config-program>)
1606 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1607 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1608 --without-libipt-prefix don't search for libipt in includedir and libdir
1609 --without-included-regex
1610 don't use included regex; this is the default on
1611 systems with version 2 of the GNU C library (use
1612 with caution on other system)
1613 --with-sysroot[=DIR] search for usr/lib et al within DIR
1614 --with-system-gdbinit=PATH
1615 automatically load a system-wide gdbinit file
1616 --with-lzma support lzma compression (auto/yes/no)
1617 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1618 --without-liblzma-prefix don't search for liblzma in includedir and libdir
1619 --with-tcl directory containing tcl configuration (tclConfig.sh)
1620 --with-tk directory containing tk configuration (tkConfig.sh)
1621 --with-x use the X Window System
1622 --with-babeltrace include babeltrace support (auto/yes/no)
1623 --with-libbabeltrace-prefix[=DIR] search for libbabeltrace in DIR/include and DIR/lib
1624 --without-libbabeltrace-prefix don't search for libbabeltrace in includedir and libdir
1625
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1636 CPP C preprocessor
1637 MAKEINFO Parent configure detects if it is of sufficient version.
1638 MAKEINFOFLAGS
1639 Parameters for MAKEINFO.
1640 YACC The `Yet Another Compiler Compiler' implementation to use.
1641 Defaults to the first program found out of: `bison -y', `byacc',
1642 `yacc'.
1643 YFLAGS The list of arguments that will be passed by default to $YACC.
1644 This script will default YFLAGS to the empty string to avoid a
1645 default value of `-d' given by some make applications.
1646 XMKMF Path to xmkmf, Makefile generator for X Window System
1647
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1650
1651 Report bugs to the package provider.
1652 _ACEOF
1653 ac_status=$?
1654 fi
1655
1656 if test "$ac_init_help" = "recursive"; then
1657 # If there are subdirs, report their specific --help.
1658 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1659 test -d "$ac_dir" ||
1660 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1661 continue
1662 ac_builddir=.
1663
1664 case "$ac_dir" in
1665 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *)
1667 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1668 # A ".." for each directory in $ac_dir_suffix.
1669 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1670 case $ac_top_builddir_sub in
1671 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1672 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1673 esac ;;
1674 esac
1675 ac_abs_top_builddir=$ac_pwd
1676 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1677 # for backward compatibility:
1678 ac_top_builddir=$ac_top_build_prefix
1679
1680 case $srcdir in
1681 .) # We are building in place.
1682 ac_srcdir=.
1683 ac_top_srcdir=$ac_top_builddir_sub
1684 ac_abs_top_srcdir=$ac_pwd ;;
1685 [\\/]* | ?:[\\/]* ) # Absolute name.
1686 ac_srcdir=$srcdir$ac_dir_suffix;
1687 ac_top_srcdir=$srcdir
1688 ac_abs_top_srcdir=$srcdir ;;
1689 *) # Relative name.
1690 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1691 ac_top_srcdir=$ac_top_build_prefix$srcdir
1692 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1693 esac
1694 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1695
1696 cd "$ac_dir" || { ac_status=$?; continue; }
1697 # Check for guested configure.
1698 if test -f "$ac_srcdir/configure.gnu"; then
1699 echo &&
1700 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1701 elif test -f "$ac_srcdir/configure"; then
1702 echo &&
1703 $SHELL "$ac_srcdir/configure" --help=recursive
1704 else
1705 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1706 fi || ac_status=$?
1707 cd "$ac_pwd" || { ac_status=$?; break; }
1708 done
1709 fi
1710
1711 test -n "$ac_init_help" && exit $ac_status
1712 if $ac_init_version; then
1713 cat <<\_ACEOF
1714 configure
1715 generated by GNU Autoconf 2.69
1716
1717 Copyright (C) 2012 Free Software Foundation, Inc.
1718 This configure script is free software; the Free Software Foundation
1719 gives unlimited permission to copy, distribute and modify it.
1720 _ACEOF
1721 exit
1722 fi
1723
1724 ## ------------------------ ##
1725 ## Autoconf initialization. ##
1726 ## ------------------------ ##
1727
1728 # ac_fn_c_try_compile LINENO
1729 # --------------------------
1730 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_compile ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 rm -f conftest.$ac_objext
1735 if { { ac_try="$ac_compile"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_compile") 2>conftest.err
1743 ac_status=$?
1744 if test -s conftest.err; then
1745 grep -v '^ *+' conftest.err >conftest.er1
1746 cat conftest.er1 >&5
1747 mv -f conftest.er1 conftest.err
1748 fi
1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750 test $ac_status = 0; } && {
1751 test -z "$ac_c_werror_flag" ||
1752 test ! -s conftest.err
1753 } && test -s conftest.$ac_objext; then :
1754 ac_retval=0
1755 else
1756 $as_echo "$as_me: failed program was:" >&5
1757 sed 's/^/| /' conftest.$ac_ext >&5
1758
1759 ac_retval=1
1760 fi
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1763
1764 } # ac_fn_c_try_compile
1765
1766 # ac_fn_cxx_try_compile LINENO
1767 # ----------------------------
1768 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_cxx_try_compile ()
1770 {
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 rm -f conftest.$ac_objext
1773 if { { ac_try="$ac_compile"
1774 case "(($ac_try" in
1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1776 *) ac_try_echo=$ac_try;;
1777 esac
1778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1779 $as_echo "$ac_try_echo"; } >&5
1780 (eval "$ac_compile") 2>conftest.err
1781 ac_status=$?
1782 if test -s conftest.err; then
1783 grep -v '^ *+' conftest.err >conftest.er1
1784 cat conftest.er1 >&5
1785 mv -f conftest.er1 conftest.err
1786 fi
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && {
1789 test -z "$ac_cxx_werror_flag" ||
1790 test ! -s conftest.err
1791 } && test -s conftest.$ac_objext; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798 fi
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1801
1802 } # ac_fn_cxx_try_compile
1803
1804 # ac_fn_c_try_cpp LINENO
1805 # ----------------------
1806 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_cpp ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 ac_status=$?
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1823 fi
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } > conftest.i && {
1826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1828 }; then :
1829 ac_retval=0
1830 else
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835 fi
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1838
1839 } # ac_fn_c_try_cpp
1840
1841 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1842 # -------------------------------------------------------
1843 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1844 # the include files in INCLUDES and setting the cache variable VAR
1845 # accordingly.
1846 ac_fn_c_check_header_mongrel ()
1847 {
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 if eval \${$3+:} false; then :
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851 $as_echo_n "checking for $2... " >&6; }
1852 if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 else
1859 # Is the header compilable?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1861 $as_echo_n "checking $2 usability... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 $4
1865 #include <$2>
1866 _ACEOF
1867 if ac_fn_c_try_compile "$LINENO"; then :
1868 ac_header_compiler=yes
1869 else
1870 ac_header_compiler=no
1871 fi
1872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1874 $as_echo "$ac_header_compiler" >&6; }
1875
1876 # Is the header present?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1878 $as_echo_n "checking $2 presence... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1881 #include <$2>
1882 _ACEOF
1883 if ac_fn_c_try_cpp "$LINENO"; then :
1884 ac_header_preproc=yes
1885 else
1886 ac_header_preproc=no
1887 fi
1888 rm -f conftest.err conftest.i conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1890 $as_echo "$ac_header_preproc" >&6; }
1891
1892 # So? What about this header?
1893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1894 yes:no: )
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1896 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1898 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1899 ;;
1900 no:yes:* )
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1902 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1904 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1906 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1908 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1910 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1911 ;;
1912 esac
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 eval "$3=\$ac_header_compiler"
1919 fi
1920 eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922 $as_echo "$ac_res" >&6; }
1923 fi
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_header_mongrel
1927
1928 # ac_fn_c_try_run LINENO
1929 # ----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1931 # that executables *can* be run.
1932 ac_fn_c_try_run ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>&5
1943 ac_status=$?
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1946 { { case "(($ac_try" in
1947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948 *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952 (eval "$ac_try") 2>&5
1953 ac_status=$?
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; }; }; then :
1956 ac_retval=0
1957 else
1958 $as_echo "$as_me: program exited with status $ac_status" >&5
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_retval=$ac_status
1963 fi
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1967
1968 } # ac_fn_c_try_run
1969
1970 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1971 # -------------------------------------------------------
1972 # Tests whether HEADER exists and can be compiled using the include files in
1973 # INCLUDES, setting the cache variable VAR accordingly.
1974 ac_fn_c_check_header_compile ()
1975 {
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1981 else
1982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 #include <$2>
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 eval "$3=yes"
1989 else
1990 eval "$3=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998
1999 } # ac_fn_c_check_header_compile
2000
2001 # ac_fn_c_try_link LINENO
2002 # -----------------------
2003 # Try to link conftest.$ac_ext, and return whether this succeeded.
2004 ac_fn_c_try_link ()
2005 {
2006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007 rm -f conftest.$ac_objext conftest$ac_exeext
2008 if { { ac_try="$ac_link"
2009 case "(($ac_try" in
2010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011 *) ac_try_echo=$ac_try;;
2012 esac
2013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014 $as_echo "$ac_try_echo"; } >&5
2015 (eval "$ac_link") 2>conftest.err
2016 ac_status=$?
2017 if test -s conftest.err; then
2018 grep -v '^ *+' conftest.err >conftest.er1
2019 cat conftest.er1 >&5
2020 mv -f conftest.er1 conftest.err
2021 fi
2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023 test $ac_status = 0; } && {
2024 test -z "$ac_c_werror_flag" ||
2025 test ! -s conftest.err
2026 } && test -s conftest$ac_exeext && {
2027 test "$cross_compiling" = yes ||
2028 test -x conftest$ac_exeext
2029 }; then :
2030 ac_retval=0
2031 else
2032 $as_echo "$as_me: failed program was:" >&5
2033 sed 's/^/| /' conftest.$ac_ext >&5
2034
2035 ac_retval=1
2036 fi
2037 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2038 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2039 # interfere with the next link command; also delete a directory that is
2040 # left behind by Apple's compiler. We do this before executing the actions.
2041 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2042 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2043 as_fn_set_status $ac_retval
2044
2045 } # ac_fn_c_try_link
2046
2047 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2048 # --------------------------------------------
2049 # Tries to find the compile-time value of EXPR in a program that includes
2050 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2051 # computed
2052 ac_fn_c_compute_int ()
2053 {
2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055 if test "$cross_compiling" = yes; then
2056 # Depending upon the size, compute the lo and hi bounds.
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2059 $4
2060 int
2061 main ()
2062 {
2063 static int test_array [1 - 2 * !(($2) >= 0)];
2064 test_array [0] = 0;
2065 return test_array [0];
2066
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_lo=0 ac_mid=0
2073 while :; do
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h. */
2076 $4
2077 int
2078 main ()
2079 {
2080 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2081 test_array [0] = 0;
2082 return test_array [0];
2083
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_hi=$ac_mid; break
2090 else
2091 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2092 if test $ac_lo -le $ac_mid; then
2093 ac_lo= ac_hi=
2094 break
2095 fi
2096 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 done
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 $4
2104 int
2105 main ()
2106 {
2107 static int test_array [1 - 2 * !(($2) < 0)];
2108 test_array [0] = 0;
2109 return test_array [0];
2110
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 ac_hi=-1 ac_mid=-1
2117 while :; do
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 int
2122 main ()
2123 {
2124 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2125 test_array [0] = 0;
2126 return test_array [0];
2127
2128 ;
2129 return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_lo=$ac_mid; break
2134 else
2135 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2136 if test $ac_mid -le $ac_hi; then
2137 ac_lo= ac_hi=
2138 break
2139 fi
2140 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 done
2144 else
2145 ac_lo= ac_hi=
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148 fi
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 # Binary search between lo and hi bounds.
2151 while test "x$ac_lo" != "x$ac_hi"; do
2152 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2155 $4
2156 int
2157 main ()
2158 {
2159 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2160 test_array [0] = 0;
2161 return test_array [0];
2162
2163 ;
2164 return 0;
2165 }
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168 ac_hi=$ac_mid
2169 else
2170 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2171 fi
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 done
2174 case $ac_lo in #((
2175 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2176 '') ac_retval=1 ;;
2177 esac
2178 else
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2181 $4
2182 static long int longval () { return $2; }
2183 static unsigned long int ulongval () { return $2; }
2184 #include <stdio.h>
2185 #include <stdlib.h>
2186 int
2187 main ()
2188 {
2189
2190 FILE *f = fopen ("conftest.val", "w");
2191 if (! f)
2192 return 1;
2193 if (($2) < 0)
2194 {
2195 long int i = longval ();
2196 if (i != ($2))
2197 return 1;
2198 fprintf (f, "%ld", i);
2199 }
2200 else
2201 {
2202 unsigned long int i = ulongval ();
2203 if (i != ($2))
2204 return 1;
2205 fprintf (f, "%lu", i);
2206 }
2207 /* Do not output a trailing newline, as this causes \r\n confusion
2208 on some platforms. */
2209 return ferror (f) || fclose (f) != 0;
2210
2211 ;
2212 return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_run "$LINENO"; then :
2216 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2217 else
2218 ac_retval=1
2219 fi
2220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2221 conftest.$ac_objext conftest.beam conftest.$ac_ext
2222 rm -f conftest.val
2223
2224 fi
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status $ac_retval
2227
2228 } # ac_fn_c_compute_int
2229
2230 # ac_fn_c_check_func LINENO FUNC VAR
2231 # ----------------------------------
2232 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2233 ac_fn_c_check_func ()
2234 {
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if eval \${$3+:} false; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2245 #define $2 innocuous_$2
2246
2247 /* System header to define __stub macros and hopefully few prototypes,
2248 which can conflict with char $2 (); below.
2249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2250 <limits.h> exists even on freestanding compilers. */
2251
2252 #ifdef __STDC__
2253 # include <limits.h>
2254 #else
2255 # include <assert.h>
2256 #endif
2257
2258 #undef $2
2259
2260 /* Override any GCC internal prototype to avoid an error.
2261 Use char because int might match the return type of a GCC
2262 builtin and then its argument prototype would still apply. */
2263 #ifdef __cplusplus
2264 extern "C"
2265 #endif
2266 char $2 ();
2267 /* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270 #if defined __stub_$2 || defined __stub___$2
2271 choke me
2272 #endif
2273
2274 int
2275 main ()
2276 {
2277 return $2 ();
2278 ;
2279 return 0;
2280 }
2281 _ACEOF
2282 if ac_fn_c_try_link "$LINENO"; then :
2283 eval "$3=yes"
2284 else
2285 eval "$3=no"
2286 fi
2287 rm -f core conftest.err conftest.$ac_objext \
2288 conftest$ac_exeext conftest.$ac_ext
2289 fi
2290 eval ac_res=\$$3
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294
2295 } # ac_fn_c_check_func
2296
2297 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2298 # ----------------------------------------------------
2299 # Tries to find if the field MEMBER exists in type AGGR, after including
2300 # INCLUDES, setting cache variable VAR accordingly.
2301 ac_fn_c_check_member ()
2302 {
2303 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2305 $as_echo_n "checking for $2.$3... " >&6; }
2306 if eval \${$4+:} false; then :
2307 $as_echo_n "(cached) " >&6
2308 else
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2311 $5
2312 int
2313 main ()
2314 {
2315 static $2 ac_aggr;
2316 if (ac_aggr.$3)
2317 return 0;
2318 ;
2319 return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323 eval "$4=yes"
2324 else
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2327 $5
2328 int
2329 main ()
2330 {
2331 static $2 ac_aggr;
2332 if (sizeof ac_aggr.$3)
2333 return 0;
2334 ;
2335 return 0;
2336 }
2337 _ACEOF
2338 if ac_fn_c_try_compile "$LINENO"; then :
2339 eval "$4=yes"
2340 else
2341 eval "$4=no"
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 fi
2345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346 fi
2347 eval ac_res=\$$4
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2351
2352 } # ac_fn_c_check_member
2353
2354 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2355 # -------------------------------------------
2356 # Tests whether TYPE exists after having included INCLUDES, setting cache
2357 # variable VAR accordingly.
2358 ac_fn_c_check_type ()
2359 {
2360 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if eval \${$3+:} false; then :
2364 $as_echo_n "(cached) " >&6
2365 else
2366 eval "$3=no"
2367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h. */
2369 $4
2370 int
2371 main ()
2372 {
2373 if (sizeof ($2))
2374 return 0;
2375 ;
2376 return 0;
2377 }
2378 _ACEOF
2379 if ac_fn_c_try_compile "$LINENO"; then :
2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2381 /* end confdefs.h. */
2382 $4
2383 int
2384 main ()
2385 {
2386 if (sizeof (($2)))
2387 return 0;
2388 ;
2389 return 0;
2390 }
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2393
2394 else
2395 eval "$3=yes"
2396 fi
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398 fi
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 fi
2401 eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2405
2406 } # ac_fn_c_check_type
2407
2408 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2409 # ---------------------------------------------
2410 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2411 # accordingly.
2412 ac_fn_c_check_decl ()
2413 {
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 as_decl_name=`echo $2|sed 's/ *(.*//'`
2416 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2418 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2419 if eval \${$3+:} false; then :
2420 $as_echo_n "(cached) " >&6
2421 else
2422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2423 /* end confdefs.h. */
2424 $4
2425 int
2426 main ()
2427 {
2428 #ifndef $as_decl_name
2429 #ifdef __cplusplus
2430 (void) $as_decl_use;
2431 #else
2432 (void) $as_decl_name;
2433 #endif
2434 #endif
2435
2436 ;
2437 return 0;
2438 }
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441 eval "$3=yes"
2442 else
2443 eval "$3=no"
2444 fi
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 fi
2447 eval ac_res=\$$3
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2449 $as_echo "$ac_res" >&6; }
2450 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2451
2452 } # ac_fn_c_check_decl
2453
2454 # ac_fn_cxx_try_link LINENO
2455 # -------------------------
2456 # Try to link conftest.$ac_ext, and return whether this succeeded.
2457 ac_fn_cxx_try_link ()
2458 {
2459 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2460 rm -f conftest.$ac_objext conftest$ac_exeext
2461 if { { ac_try="$ac_link"
2462 case "(($ac_try" in
2463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2464 *) ac_try_echo=$ac_try;;
2465 esac
2466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2467 $as_echo "$ac_try_echo"; } >&5
2468 (eval "$ac_link") 2>conftest.err
2469 ac_status=$?
2470 if test -s conftest.err; then
2471 grep -v '^ *+' conftest.err >conftest.er1
2472 cat conftest.er1 >&5
2473 mv -f conftest.er1 conftest.err
2474 fi
2475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2476 test $ac_status = 0; } && {
2477 test -z "$ac_cxx_werror_flag" ||
2478 test ! -s conftest.err
2479 } && test -s conftest$ac_exeext && {
2480 test "$cross_compiling" = yes ||
2481 test -x conftest$ac_exeext
2482 }; then :
2483 ac_retval=0
2484 else
2485 $as_echo "$as_me: failed program was:" >&5
2486 sed 's/^/| /' conftest.$ac_ext >&5
2487
2488 ac_retval=1
2489 fi
2490 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2491 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2492 # interfere with the next link command; also delete a directory that is
2493 # left behind by Apple's compiler. We do this before executing the actions.
2494 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496 as_fn_set_status $ac_retval
2497
2498 } # ac_fn_cxx_try_link
2499 cat >config.log <<_ACEOF
2500 This file contains any messages produced by compilers while
2501 running configure, to aid debugging if configure makes a mistake.
2502
2503 It was created by $as_me, which was
2504 generated by GNU Autoconf 2.69. Invocation command line was
2505
2506 $ $0 $@
2507
2508 _ACEOF
2509 exec 5>>config.log
2510 {
2511 cat <<_ASUNAME
2512 ## --------- ##
2513 ## Platform. ##
2514 ## --------- ##
2515
2516 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2517 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2518 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2519 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2520 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2521
2522 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2523 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2524
2525 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2526 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2527 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2528 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2529 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2530 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2531 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2532
2533 _ASUNAME
2534
2535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536 for as_dir in $PATH
2537 do
2538 IFS=$as_save_IFS
2539 test -z "$as_dir" && as_dir=.
2540 $as_echo "PATH: $as_dir"
2541 done
2542 IFS=$as_save_IFS
2543
2544 } >&5
2545
2546 cat >&5 <<_ACEOF
2547
2548
2549 ## ----------- ##
2550 ## Core tests. ##
2551 ## ----------- ##
2552
2553 _ACEOF
2554
2555
2556 # Keep a trace of the command line.
2557 # Strip out --no-create and --no-recursion so they do not pile up.
2558 # Strip out --silent because we don't want to record it for future runs.
2559 # Also quote any args containing shell meta-characters.
2560 # Make two passes to allow for proper duplicate-argument suppression.
2561 ac_configure_args=
2562 ac_configure_args0=
2563 ac_configure_args1=
2564 ac_must_keep_next=false
2565 for ac_pass in 1 2
2566 do
2567 for ac_arg
2568 do
2569 case $ac_arg in
2570 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2571 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2572 | -silent | --silent | --silen | --sile | --sil)
2573 continue ;;
2574 *\'*)
2575 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2576 esac
2577 case $ac_pass in
2578 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2579 2)
2580 as_fn_append ac_configure_args1 " '$ac_arg'"
2581 if test $ac_must_keep_next = true; then
2582 ac_must_keep_next=false # Got value, back to normal.
2583 else
2584 case $ac_arg in
2585 *=* | --config-cache | -C | -disable-* | --disable-* \
2586 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2587 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2588 | -with-* | --with-* | -without-* | --without-* | --x)
2589 case "$ac_configure_args0 " in
2590 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2591 esac
2592 ;;
2593 -* ) ac_must_keep_next=true ;;
2594 esac
2595 fi
2596 as_fn_append ac_configure_args " '$ac_arg'"
2597 ;;
2598 esac
2599 done
2600 done
2601 { ac_configure_args0=; unset ac_configure_args0;}
2602 { ac_configure_args1=; unset ac_configure_args1;}
2603
2604 # When interrupted or exit'd, cleanup temporary files, and complete
2605 # config.log. We remove comments because anyway the quotes in there
2606 # would cause problems or look ugly.
2607 # WARNING: Use '\'' to represent an apostrophe within the trap.
2608 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2609 trap 'exit_status=$?
2610 # Save into config.log some information that might help in debugging.
2611 {
2612 echo
2613
2614 $as_echo "## ---------------- ##
2615 ## Cache variables. ##
2616 ## ---------------- ##"
2617 echo
2618 # The following way of writing the cache mishandles newlines in values,
2619 (
2620 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2621 eval ac_val=\$$ac_var
2622 case $ac_val in #(
2623 *${as_nl}*)
2624 case $ac_var in #(
2625 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2627 esac
2628 case $ac_var in #(
2629 _ | IFS | as_nl) ;; #(
2630 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2631 *) { eval $ac_var=; unset $ac_var;} ;;
2632 esac ;;
2633 esac
2634 done
2635 (set) 2>&1 |
2636 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2637 *${as_nl}ac_space=\ *)
2638 sed -n \
2639 "s/'\''/'\''\\\\'\'''\''/g;
2640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2641 ;; #(
2642 *)
2643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2644 ;;
2645 esac |
2646 sort
2647 )
2648 echo
2649
2650 $as_echo "## ----------------- ##
2651 ## Output variables. ##
2652 ## ----------------- ##"
2653 echo
2654 for ac_var in $ac_subst_vars
2655 do
2656 eval ac_val=\$$ac_var
2657 case $ac_val in
2658 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2659 esac
2660 $as_echo "$ac_var='\''$ac_val'\''"
2661 done | sort
2662 echo
2663
2664 if test -n "$ac_subst_files"; then
2665 $as_echo "## ------------------- ##
2666 ## File substitutions. ##
2667 ## ------------------- ##"
2668 echo
2669 for ac_var in $ac_subst_files
2670 do
2671 eval ac_val=\$$ac_var
2672 case $ac_val in
2673 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2674 esac
2675 $as_echo "$ac_var='\''$ac_val'\''"
2676 done | sort
2677 echo
2678 fi
2679
2680 if test -s confdefs.h; then
2681 $as_echo "## ----------- ##
2682 ## confdefs.h. ##
2683 ## ----------- ##"
2684 echo
2685 cat confdefs.h
2686 echo
2687 fi
2688 test "$ac_signal" != 0 &&
2689 $as_echo "$as_me: caught signal $ac_signal"
2690 $as_echo "$as_me: exit $exit_status"
2691 } >&5
2692 rm -f core *.core core.conftest.* &&
2693 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2694 exit $exit_status
2695 ' 0
2696 for ac_signal in 1 2 13 15; do
2697 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2698 done
2699 ac_signal=0
2700
2701 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2702 rm -f -r conftest* confdefs.h
2703
2704 $as_echo "/* confdefs.h */" > confdefs.h
2705
2706 # Predefined preprocessor variables.
2707
2708 cat >>confdefs.h <<_ACEOF
2709 #define PACKAGE_NAME "$PACKAGE_NAME"
2710 _ACEOF
2711
2712 cat >>confdefs.h <<_ACEOF
2713 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2714 _ACEOF
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2718 _ACEOF
2719
2720 cat >>confdefs.h <<_ACEOF
2721 #define PACKAGE_STRING "$PACKAGE_STRING"
2722 _ACEOF
2723
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2726 _ACEOF
2727
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE_URL "$PACKAGE_URL"
2730 _ACEOF
2731
2732
2733 # Let the site file select an alternate cache file if it wants to.
2734 # Prefer an explicitly selected file to automatically selected ones.
2735 ac_site_file1=NONE
2736 ac_site_file2=NONE
2737 if test -n "$CONFIG_SITE"; then
2738 # We do not want a PATH search for config.site.
2739 case $CONFIG_SITE in #((
2740 -*) ac_site_file1=./$CONFIG_SITE;;
2741 */*) ac_site_file1=$CONFIG_SITE;;
2742 *) ac_site_file1=./$CONFIG_SITE;;
2743 esac
2744 elif test "x$prefix" != xNONE; then
2745 ac_site_file1=$prefix/share/config.site
2746 ac_site_file2=$prefix/etc/config.site
2747 else
2748 ac_site_file1=$ac_default_prefix/share/config.site
2749 ac_site_file2=$ac_default_prefix/etc/config.site
2750 fi
2751 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2752 do
2753 test "x$ac_site_file" = xNONE && continue
2754 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2756 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2757 sed 's/^/| /' "$ac_site_file" >&5
2758 . "$ac_site_file" \
2759 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761 as_fn_error $? "failed to load site script $ac_site_file
2762 See \`config.log' for more details" "$LINENO" 5; }
2763 fi
2764 done
2765
2766 if test -r "$cache_file"; then
2767 # Some versions of bash will fail to source /dev/null (special files
2768 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2769 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2771 $as_echo "$as_me: loading cache $cache_file" >&6;}
2772 case $cache_file in
2773 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2774 *) . "./$cache_file";;
2775 esac
2776 fi
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2779 $as_echo "$as_me: creating cache $cache_file" >&6;}
2780 >$cache_file
2781 fi
2782
2783 as_fn_append ac_header_list " stdlib.h"
2784 as_fn_append ac_header_list " unistd.h"
2785 as_fn_append ac_header_list " sys/param.h"
2786 # Check that the precious variables saved in the cache have kept the same
2787 # value.
2788 ac_cache_corrupted=false
2789 for ac_var in $ac_precious_vars; do
2790 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2791 eval ac_new_set=\$ac_env_${ac_var}_set
2792 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2793 eval ac_new_val=\$ac_env_${ac_var}_value
2794 case $ac_old_set,$ac_new_set in
2795 set,)
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2797 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2798 ac_cache_corrupted=: ;;
2799 ,set)
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2801 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2802 ac_cache_corrupted=: ;;
2803 ,);;
2804 *)
2805 if test "x$ac_old_val" != "x$ac_new_val"; then
2806 # differences in whitespace do not lead to failure.
2807 ac_old_val_w=`echo x $ac_old_val`
2808 ac_new_val_w=`echo x $ac_new_val`
2809 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2811 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2812 ac_cache_corrupted=:
2813 else
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2815 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2816 eval $ac_var=\$ac_old_val
2817 fi
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2819 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2821 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2822 fi;;
2823 esac
2824 # Pass precious variables to config.status.
2825 if test "$ac_new_set" = set; then
2826 case $ac_new_val in
2827 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2828 *) ac_arg=$ac_var=$ac_new_val ;;
2829 esac
2830 case " $ac_configure_args " in
2831 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2832 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2833 esac
2834 fi
2835 done
2836 if $ac_cache_corrupted; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2840 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2841 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2842 fi
2843 ## -------------------- ##
2844 ## Main body of script. ##
2845 ## -------------------- ##
2846
2847 ac_ext=c
2848 ac_cpp='$CPP $CPPFLAGS'
2849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2852
2853
2854
2855
2856
2857 ac_config_headers="$ac_config_headers config.h:config.in"
2858
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2861 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2862 # Check whether --enable-maintainer-mode was given.
2863 if test "${enable_maintainer_mode+set}" = set; then :
2864 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2865 else
2866 USE_MAINTAINER_MODE=no
2867 fi
2868
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2870 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2871 if test $USE_MAINTAINER_MODE = yes; then
2872 MAINTAINER_MODE_TRUE=
2873 MAINTAINER_MODE_FALSE='#'
2874 else
2875 MAINTAINER_MODE_TRUE='#'
2876 MAINTAINER_MODE_FALSE=
2877 fi
2878
2879 MAINT=$MAINTAINER_MODE_TRUE
2880
2881
2882
2883 # Set the 'development' global.
2884 . $srcdir/../bfd/development.sh
2885
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2904 do
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2909 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2912 fi
2913 done
2914 done
2915 IFS=$as_save_IFS
2916
2917 fi
2918 fi
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2922 $as_echo "$CC" >&6; }
2923 else
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925 $as_echo "no" >&6; }
2926 fi
2927
2928
2929 fi
2930 if test -z "$ac_cv_prog_CC"; then
2931 ac_ct_CC=$CC
2932 # Extract the first word of "gcc", so it can be a program name with args.
2933 set dummy gcc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949 ac_cv_prog_ac_ct_CC="gcc"
2950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2952 fi
2953 done
2954 done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2962 $as_echo "$ac_ct_CC" >&6; }
2963 else
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968 if test "x$ac_ct_CC" = x; then
2969 CC=""
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2975 ac_tool_warned=yes ;;
2976 esac
2977 CC=$ac_ct_CC
2978 fi
2979 else
2980 CC="$ac_cv_prog_CC"
2981 fi
2982
2983 if test -z "$CC"; then
2984 if test -n "$ac_tool_prefix"; then
2985 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2986 set dummy ${ac_tool_prefix}cc; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_CC+:} false; then :
2990 $as_echo_n "(cached) " >&6
2991 else
2992 if test -n "$CC"; then
2993 ac_cv_prog_CC="$CC" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_exec_ext in '' $ac_executable_extensions; do
3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 ac_cv_prog_CC="${ac_tool_prefix}cc"
3003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 break 2
3005 fi
3006 done
3007 done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 fi
3023 fi
3024 if test -z "$CC"; then
3025 # Extract the first word of "cc", so it can be a program name with args.
3026 set dummy cc; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_CC+:} false; then :
3030 $as_echo_n "(cached) " >&6
3031 else
3032 if test -n "$CC"; then
3033 ac_cv_prog_CC="$CC" # Let the user override the test.
3034 else
3035 ac_prog_rejected=no
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 for as_dir in $PATH
3038 do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3043 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3044 ac_prog_rejected=yes
3045 continue
3046 fi
3047 ac_cv_prog_CC="cc"
3048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 break 2
3050 fi
3051 done
3052 done
3053 IFS=$as_save_IFS
3054
3055 if test $ac_prog_rejected = yes; then
3056 # We found a bogon in the path, so make sure we never use it.
3057 set dummy $ac_cv_prog_CC
3058 shift
3059 if test $# != 0; then
3060 # We chose a different compiler from the bogus one.
3061 # However, it has the same basename, so the bogon will be chosen
3062 # first if we set CC to just the basename; use the full file name.
3063 shift
3064 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3065 fi
3066 fi
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079 fi
3080 if test -z "$CC"; then
3081 if test -n "$ac_tool_prefix"; then
3082 for ac_prog in cl.exe
3083 do
3084 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3085 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105 done
3106 done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 CC=$ac_cv_prog_CC
3112 if test -n "$CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3114 $as_echo "$CC" >&6; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121 test -n "$CC" && break
3122 done
3123 fi
3124 if test -z "$CC"; then
3125 ac_ct_CC=$CC
3126 for ac_prog in cl.exe
3127 do
3128 # Extract the first word of "$ac_prog", so it can be a program name with args.
3129 set dummy $ac_prog; ac_word=$2
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131 $as_echo_n "checking for $ac_word... " >&6; }
3132 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 if test -n "$ac_ct_CC"; then
3136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3137 else
3138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139 for as_dir in $PATH
3140 do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3145 ac_cv_prog_ac_ct_CC="$ac_prog"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149 done
3150 done
3151 IFS=$as_save_IFS
3152
3153 fi
3154 fi
3155 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3156 if test -n "$ac_ct_CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3158 $as_echo "$ac_ct_CC" >&6; }
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 fi
3163
3164
3165 test -n "$ac_ct_CC" && break
3166 done
3167
3168 if test "x$ac_ct_CC" = x; then
3169 CC=""
3170 else
3171 case $cross_compiling:$ac_tool_warned in
3172 yes:)
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3174 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3175 ac_tool_warned=yes ;;
3176 esac
3177 CC=$ac_ct_CC
3178 fi
3179 fi
3180
3181 fi
3182
3183
3184 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error $? "no acceptable C compiler found in \$PATH
3187 See \`config.log' for more details" "$LINENO" 5; }
3188
3189 # Provide some information about the compiler.
3190 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3191 set X $ac_compile
3192 ac_compiler=$2
3193 for ac_option in --version -v -V -qversion; do
3194 { { ac_try="$ac_compiler $ac_option >&5"
3195 case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3202 ac_status=$?
3203 if test -s conftest.err; then
3204 sed '10a\
3205 ... rest of stderr output deleted ...
3206 10q' conftest.err >conftest.er1
3207 cat conftest.er1 >&5
3208 fi
3209 rm -f conftest.er1 conftest.err
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }
3212 done
3213
3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3215 /* end confdefs.h. */
3216
3217 int
3218 main ()
3219 {
3220
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 ac_clean_files_save=$ac_clean_files
3226 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3227 # Try to create an executable without -o first, disregard a.out.
3228 # It will help us diagnose broken compilers, and finding out an intuition
3229 # of exeext.
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3231 $as_echo_n "checking whether the C compiler works... " >&6; }
3232 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3233
3234 # The possible output files:
3235 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3236
3237 ac_rmfiles=
3238 for ac_file in $ac_files
3239 do
3240 case $ac_file in
3241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3242 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3243 esac
3244 done
3245 rm -f $ac_rmfiles
3246
3247 if { { ac_try="$ac_link_default"
3248 case "(($ac_try" in
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253 $as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link_default") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }; then :
3258 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3261 # so that the user can short-circuit this test for compilers unknown to
3262 # Autoconf.
3263 for ac_file in $ac_files ''
3264 do
3265 test -f "$ac_file" || continue
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3268 ;;
3269 [ab].out )
3270 # We found the default executable, but exeext='' is most
3271 # certainly right.
3272 break;;
3273 *.* )
3274 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3275 then :; else
3276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277 fi
3278 # We set ac_cv_exeext here because the later test for it is not
3279 # safe: cross compilers may not add the suffix if given an `-o'
3280 # argument, so we may need to know it at that point already.
3281 # Even if this section looks crufty: it has the advantage of
3282 # actually working.
3283 break;;
3284 * )
3285 break;;
3286 esac
3287 done
3288 test "$ac_cv_exeext" = no && ac_cv_exeext=
3289
3290 else
3291 ac_file=''
3292 fi
3293 if test -z "$ac_file"; then :
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 $as_echo "$as_me: failed program was:" >&5
3297 sed 's/^/| /' conftest.$ac_ext >&5
3298
3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error 77 "C compiler cannot create executables
3302 See \`config.log' for more details" "$LINENO" 5; }
3303 else
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 $as_echo "yes" >&6; }
3306 fi
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3308 $as_echo_n "checking for C compiler default output file name... " >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3310 $as_echo "$ac_file" >&6; }
3311 ac_exeext=$ac_cv_exeext
3312
3313 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3314 ac_clean_files=$ac_clean_files_save
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3316 $as_echo_n "checking for suffix of executables... " >&6; }
3317 if { { ac_try="$ac_link"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_link") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3329 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3330 # work properly (i.e., refer to `conftest.exe'), while it won't with
3331 # `rm'.
3332 for ac_file in conftest.exe conftest conftest.*; do
3333 test -f "$ac_file" || continue
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3336 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3337 break;;
3338 * ) break;;
3339 esac
3340 done
3341 else
3342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3344 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3345 See \`config.log' for more details" "$LINENO" 5; }
3346 fi
3347 rm -f conftest conftest$ac_cv_exeext
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3349 $as_echo "$ac_cv_exeext" >&6; }
3350
3351 rm -f conftest.$ac_ext
3352 EXEEXT=$ac_cv_exeext
3353 ac_exeext=$EXEEXT
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3356 #include <stdio.h>
3357 int
3358 main ()
3359 {
3360 FILE *f = fopen ("conftest.out", "w");
3361 return ferror (f) || fclose (f) != 0;
3362
3363 ;
3364 return 0;
3365 }
3366 _ACEOF
3367 ac_clean_files="$ac_clean_files conftest.out"
3368 # Check that the compiler produces executables we can run. If not, either
3369 # the compiler is broken, or we cross compile.
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3371 $as_echo_n "checking whether we are cross compiling... " >&6; }
3372 if test "$cross_compiling" != yes; then
3373 { { ac_try="$ac_link"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_link") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }
3384 if { ac_try='./conftest$ac_cv_exeext'
3385 { { case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3390 $as_echo "$ac_try_echo"; } >&5
3391 (eval "$ac_try") 2>&5
3392 ac_status=$?
3393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394 test $ac_status = 0; }; }; then
3395 cross_compiling=no
3396 else
3397 if test "$cross_compiling" = maybe; then
3398 cross_compiling=yes
3399 else
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details" "$LINENO" 5; }
3405 fi
3406 fi
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3409 $as_echo "$cross_compiling" >&6; }
3410
3411 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3412 ac_clean_files=$ac_clean_files_save
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3414 $as_echo_n "checking for suffix of object files... " >&6; }
3415 if ${ac_cv_objext+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420
3421 int
3422 main ()
3423 {
3424
3425 ;
3426 return 0;
3427 }
3428 _ACEOF
3429 rm -f conftest.o conftest.obj
3430 if { { ac_try="$ac_compile"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_compile") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }; then :
3441 for ac_file in conftest.o conftest.obj conftest.*; do
3442 test -f "$ac_file" || continue;
3443 case $ac_file in
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3446 break;;
3447 esac
3448 done
3449 else
3450 $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3452
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "cannot compute suffix of object files: cannot compile
3456 See \`config.log' for more details" "$LINENO" 5; }
3457 fi
3458 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3459 fi
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3461 $as_echo "$ac_cv_objext" >&6; }
3462 OBJEXT=$ac_cv_objext
3463 ac_objext=$OBJEXT
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3465 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3466 if ${ac_cv_c_compiler_gnu+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471
3472 int
3473 main ()
3474 {
3475 #ifndef __GNUC__
3476 choke me
3477 #endif
3478
3479 ;
3480 return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484 ac_compiler_gnu=yes
3485 else
3486 ac_compiler_gnu=no
3487 fi
3488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3490
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3493 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3494 if test $ac_compiler_gnu = yes; then
3495 GCC=yes
3496 else
3497 GCC=
3498 fi
3499 ac_test_CFLAGS=${CFLAGS+set}
3500 ac_save_CFLAGS=$CFLAGS
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3502 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3503 if ${ac_cv_prog_cc_g+:} false; then :
3504 $as_echo_n "(cached) " >&6
3505 else
3506 ac_save_c_werror_flag=$ac_c_werror_flag
3507 ac_c_werror_flag=yes
3508 ac_cv_prog_cc_g=no
3509 CFLAGS="-g"
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512
3513 int
3514 main ()
3515 {
3516
3517 ;
3518 return 0;
3519 }
3520 _ACEOF
3521 if ac_fn_c_try_compile "$LINENO"; then :
3522 ac_cv_prog_cc_g=yes
3523 else
3524 CFLAGS=""
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527
3528 int
3529 main ()
3530 {
3531
3532 ;
3533 return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537
3538 else
3539 ac_c_werror_flag=$ac_save_c_werror_flag
3540 CFLAGS="-g"
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main ()
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_cv_prog_cc_g=yes
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 fi
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3558 fi
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3560 ac_c_werror_flag=$ac_save_c_werror_flag
3561 fi
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3563 $as_echo "$ac_cv_prog_cc_g" >&6; }
3564 if test "$ac_test_CFLAGS" = set; then
3565 CFLAGS=$ac_save_CFLAGS
3566 elif test $ac_cv_prog_cc_g = yes; then
3567 if test "$GCC" = yes; then
3568 CFLAGS="-g -O2"
3569 else
3570 CFLAGS="-g"
3571 fi
3572 else
3573 if test "$GCC" = yes; then
3574 CFLAGS="-O2"
3575 else
3576 CFLAGS=
3577 fi
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3580 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3581 if ${ac_cv_prog_cc_c89+:} false; then :
3582 $as_echo_n "(cached) " >&6
3583 else
3584 ac_cv_prog_cc_c89=no
3585 ac_save_CC=$CC
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3588 #include <stdarg.h>
3589 #include <stdio.h>
3590 struct stat;
3591 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592 struct buf { int x; };
3593 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594 static char *e (p, i)
3595 char **p;
3596 int i;
3597 {
3598 return p[i];
3599 }
3600 static char *f (char * (*g) (char **, int), char **p, ...)
3601 {
3602 char *s;
3603 va_list v;
3604 va_start (v,p);
3605 s = g (p, va_arg (v,int));
3606 va_end (v);
3607 return s;
3608 }
3609
3610 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
3613 as 'x'. The following induces an error, until -std is added to get
3614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
3616 that's true only with -std. */
3617 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618
3619 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620 inside strings and character constants. */
3621 #define FOO(x) 'x'
3622 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3623
3624 int test (int i, double x);
3625 struct s1 {int (*f) (int a);};
3626 struct s2 {int (*f) (double a);};
3627 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628 int argc;
3629 char **argv;
3630 int
3631 main ()
3632 {
3633 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3634 ;
3635 return 0;
3636 }
3637 _ACEOF
3638 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3640 do
3641 CC="$ac_save_CC $ac_arg"
3642 if ac_fn_c_try_compile "$LINENO"; then :
3643 ac_cv_prog_cc_c89=$ac_arg
3644 fi
3645 rm -f core conftest.err conftest.$ac_objext
3646 test "x$ac_cv_prog_cc_c89" != "xno" && break
3647 done
3648 rm -f conftest.$ac_ext
3649 CC=$ac_save_CC
3650
3651 fi
3652 # AC_CACHE_VAL
3653 case "x$ac_cv_prog_cc_c89" in
3654 x)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3656 $as_echo "none needed" >&6; } ;;
3657 xno)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3659 $as_echo "unsupported" >&6; } ;;
3660 *)
3661 CC="$CC $ac_cv_prog_cc_c89"
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3663 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3664 esac
3665 if test "x$ac_cv_prog_cc_c89" != xno; then :
3666
3667 fi
3668
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
3675 ac_ext=cpp
3676 ac_cpp='$CXXCPP $CPPFLAGS'
3677 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3680 if test -z "$CXX"; then
3681 if test -n "$CCC"; then
3682 CXX=$CCC
3683 else
3684 if test -n "$ac_tool_prefix"; then
3685 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3686 do
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3690 $as_echo_n "checking for $ac_word... " >&6; }
3691 if ${ac_cv_prog_CXX+:} false; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 if test -n "$CXX"; then
3695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3696 else
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3699 do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3707 fi
3708 done
3709 done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CXX=$ac_cv_prog_CXX
3715 if test -n "$CXX"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3717 $as_echo "$CXX" >&6; }
3718 else
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3721 fi
3722
3723
3724 test -n "$CXX" && break
3725 done
3726 fi
3727 if test -z "$CXX"; then
3728 ac_ct_CXX=$CXX
3729 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3730 do
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732 set dummy $ac_prog; ac_word=$2
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3734 $as_echo_n "checking for $ac_word... " >&6; }
3735 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 if test -n "$ac_ct_CXX"; then
3739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3740 else
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH
3743 do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_ac_ct_CXX="$ac_prog"
3749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3750 break 2
3751 fi
3752 done
3753 done
3754 IFS=$as_save_IFS
3755
3756 fi
3757 fi
3758 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3759 if test -n "$ac_ct_CXX"; then
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3761 $as_echo "$ac_ct_CXX" >&6; }
3762 else
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3764 $as_echo "no" >&6; }
3765 fi
3766
3767
3768 test -n "$ac_ct_CXX" && break
3769 done
3770
3771 if test "x$ac_ct_CXX" = x; then
3772 CXX="g++"
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780 CXX=$ac_ct_CXX
3781 fi
3782 fi
3783
3784 fi
3785 fi
3786 # Provide some information about the compiler.
3787 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3788 set X $ac_compile
3789 ac_compiler=$2
3790 for ac_option in --version -v -V -qversion; do
3791 { { ac_try="$ac_compiler $ac_option >&5"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3799 ac_status=$?
3800 if test -s conftest.err; then
3801 sed '10a\
3802 ... rest of stderr output deleted ...
3803 10q' conftest.err >conftest.er1
3804 cat conftest.er1 >&5
3805 fi
3806 rm -f conftest.er1 conftest.err
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809 done
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3812 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3813 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3814 $as_echo_n "(cached) " >&6
3815 else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818
3819 int
3820 main ()
3821 {
3822 #ifndef __GNUC__
3823 choke me
3824 #endif
3825
3826 ;
3827 return 0;
3828 }
3829 _ACEOF
3830 if ac_fn_cxx_try_compile "$LINENO"; then :
3831 ac_compiler_gnu=yes
3832 else
3833 ac_compiler_gnu=no
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3837
3838 fi
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3840 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3841 if test $ac_compiler_gnu = yes; then
3842 GXX=yes
3843 else
3844 GXX=
3845 fi
3846 ac_test_CXXFLAGS=${CXXFLAGS+set}
3847 ac_save_CXXFLAGS=$CXXFLAGS
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3849 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3850 if ${ac_cv_prog_cxx_g+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3854 ac_cxx_werror_flag=yes
3855 ac_cv_prog_cxx_g=no
3856 CXXFLAGS="-g"
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859
3860 int
3861 main ()
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 if ac_fn_cxx_try_compile "$LINENO"; then :
3869 ac_cv_prog_cxx_g=yes
3870 else
3871 CXXFLAGS=""
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3874
3875 int
3876 main ()
3877 {
3878
3879 ;
3880 return 0;
3881 }
3882 _ACEOF
3883 if ac_fn_cxx_try_compile "$LINENO"; then :
3884
3885 else
3886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3887 CXXFLAGS="-g"
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890
3891 int
3892 main ()
3893 {
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 if ac_fn_cxx_try_compile "$LINENO"; then :
3900 ac_cv_prog_cxx_g=yes
3901 fi
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 fi
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 fi
3906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3910 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3911 if test "$ac_test_CXXFLAGS" = set; then
3912 CXXFLAGS=$ac_save_CXXFLAGS
3913 elif test $ac_cv_prog_cxx_g = yes; then
3914 if test "$GXX" = yes; then
3915 CXXFLAGS="-g -O2"
3916 else
3917 CXXFLAGS="-g"
3918 fi
3919 else
3920 if test "$GXX" = yes; then
3921 CXXFLAGS="-O2"
3922 else
3923 CXXFLAGS=
3924 fi
3925 fi
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
3932
3933
3934 ac_ext=c
3935 ac_cpp='$CPP $CPPFLAGS'
3936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3940 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3941 # On Suns, sometimes $CPP names a directory.
3942 if test -n "$CPP" && test -d "$CPP"; then
3943 CPP=
3944 fi
3945 if test -z "$CPP"; then
3946 if ${ac_cv_prog_CPP+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 # Double quotes because CPP needs to be expanded
3950 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3951 do
3952 ac_preproc_ok=false
3953 for ac_c_preproc_warn_flag in '' yes
3954 do
3955 # Use a header file that comes with gcc, so configuring glibc
3956 # with a fresh cross-compiler works.
3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3958 # <limits.h> exists even on freestanding compilers.
3959 # On the NeXT, cc -E runs the code through the compiler's parser,
3960 # not just through cpp. "Syntax error" is here to catch this case.
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3963 #ifdef __STDC__
3964 # include <limits.h>
3965 #else
3966 # include <assert.h>
3967 #endif
3968 Syntax error
3969 _ACEOF
3970 if ac_fn_c_try_cpp "$LINENO"; then :
3971
3972 else
3973 # Broken: fails on valid input.
3974 continue
3975 fi
3976 rm -f conftest.err conftest.i conftest.$ac_ext
3977
3978 # OK, works on sane cases. Now check whether nonexistent headers
3979 # can be detected and how.
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981 /* end confdefs.h. */
3982 #include <ac_nonexistent.h>
3983 _ACEOF
3984 if ac_fn_c_try_cpp "$LINENO"; then :
3985 # Broken: success on invalid input.
3986 continue
3987 else
3988 # Passes both tests.
3989 ac_preproc_ok=:
3990 break
3991 fi
3992 rm -f conftest.err conftest.i conftest.$ac_ext
3993
3994 done
3995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3996 rm -f conftest.i conftest.err conftest.$ac_ext
3997 if $ac_preproc_ok; then :
3998 break
3999 fi
4000
4001 done
4002 ac_cv_prog_CPP=$CPP
4003
4004 fi
4005 CPP=$ac_cv_prog_CPP
4006 else
4007 ac_cv_prog_CPP=$CPP
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4010 $as_echo "$CPP" >&6; }
4011 ac_preproc_ok=false
4012 for ac_c_preproc_warn_flag in '' yes
4013 do
4014 # Use a header file that comes with gcc, so configuring glibc
4015 # with a fresh cross-compiler works.
4016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4017 # <limits.h> exists even on freestanding compilers.
4018 # On the NeXT, cc -E runs the code through the compiler's parser,
4019 # not just through cpp. "Syntax error" is here to catch this case.
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h. */
4022 #ifdef __STDC__
4023 # include <limits.h>
4024 #else
4025 # include <assert.h>
4026 #endif
4027 Syntax error
4028 _ACEOF
4029 if ac_fn_c_try_cpp "$LINENO"; then :
4030
4031 else
4032 # Broken: fails on valid input.
4033 continue
4034 fi
4035 rm -f conftest.err conftest.i conftest.$ac_ext
4036
4037 # OK, works on sane cases. Now check whether nonexistent headers
4038 # can be detected and how.
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041 #include <ac_nonexistent.h>
4042 _ACEOF
4043 if ac_fn_c_try_cpp "$LINENO"; then :
4044 # Broken: success on invalid input.
4045 continue
4046 else
4047 # Passes both tests.
4048 ac_preproc_ok=:
4049 break
4050 fi
4051 rm -f conftest.err conftest.i conftest.$ac_ext
4052
4053 done
4054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4055 rm -f conftest.i conftest.err conftest.$ac_ext
4056 if $ac_preproc_ok; then :
4057
4058 else
4059 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4060 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4061 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4062 See \`config.log' for more details" "$LINENO" 5; }
4063 fi
4064
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070
4071
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4073 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4074 if ${ac_cv_path_GREP+:} false; then :
4075 $as_echo_n "(cached) " >&6
4076 else
4077 if test -z "$GREP"; then
4078 ac_path_GREP_found=false
4079 # Loop through the user's path and test for each of PROGNAME-LIST
4080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4082 do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
4085 for ac_prog in grep ggrep; do
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4088 as_fn_executable_p "$ac_path_GREP" || continue
4089 # Check for GNU ac_path_GREP and select it if it is found.
4090 # Check for GNU $ac_path_GREP
4091 case `"$ac_path_GREP" --version 2>&1` in
4092 *GNU*)
4093 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4094 *)
4095 ac_count=0
4096 $as_echo_n 0123456789 >"conftest.in"
4097 while :
4098 do
4099 cat "conftest.in" "conftest.in" >"conftest.tmp"
4100 mv "conftest.tmp" "conftest.in"
4101 cp "conftest.in" "conftest.nl"
4102 $as_echo 'GREP' >> "conftest.nl"
4103 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4104 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4105 as_fn_arith $ac_count + 1 && ac_count=$as_val
4106 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4107 # Best one so far, save it but keep looking for a better one
4108 ac_cv_path_GREP="$ac_path_GREP"
4109 ac_path_GREP_max=$ac_count
4110 fi
4111 # 10*(2^10) chars as input seems more than enough
4112 test $ac_count -gt 10 && break
4113 done
4114 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4115 esac
4116
4117 $ac_path_GREP_found && break 3
4118 done
4119 done
4120 done
4121 IFS=$as_save_IFS
4122 if test -z "$ac_cv_path_GREP"; then
4123 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4124 fi
4125 else
4126 ac_cv_path_GREP=$GREP
4127 fi
4128
4129 fi
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4131 $as_echo "$ac_cv_path_GREP" >&6; }
4132 GREP="$ac_cv_path_GREP"
4133
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4136 $as_echo_n "checking for egrep... " >&6; }
4137 if ${ac_cv_path_EGREP+:} false; then :
4138 $as_echo_n "(cached) " >&6
4139 else
4140 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4141 then ac_cv_path_EGREP="$GREP -E"
4142 else
4143 if test -z "$EGREP"; then
4144 ac_path_EGREP_found=false
4145 # Loop through the user's path and test for each of PROGNAME-LIST
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4148 do
4149 IFS=$as_save_IFS
4150 test -z "$as_dir" && as_dir=.
4151 for ac_prog in egrep; do
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4154 as_fn_executable_p "$ac_path_EGREP" || continue
4155 # Check for GNU ac_path_EGREP and select it if it is found.
4156 # Check for GNU $ac_path_EGREP
4157 case `"$ac_path_EGREP" --version 2>&1` in
4158 *GNU*)
4159 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4160 *)
4161 ac_count=0
4162 $as_echo_n 0123456789 >"conftest.in"
4163 while :
4164 do
4165 cat "conftest.in" "conftest.in" >"conftest.tmp"
4166 mv "conftest.tmp" "conftest.in"
4167 cp "conftest.in" "conftest.nl"
4168 $as_echo 'EGREP' >> "conftest.nl"
4169 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4171 as_fn_arith $ac_count + 1 && ac_count=$as_val
4172 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4173 # Best one so far, save it but keep looking for a better one
4174 ac_cv_path_EGREP="$ac_path_EGREP"
4175 ac_path_EGREP_max=$ac_count
4176 fi
4177 # 10*(2^10) chars as input seems more than enough
4178 test $ac_count -gt 10 && break
4179 done
4180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4181 esac
4182
4183 $ac_path_EGREP_found && break 3
4184 done
4185 done
4186 done
4187 IFS=$as_save_IFS
4188 if test -z "$ac_cv_path_EGREP"; then
4189 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4190 fi
4191 else
4192 ac_cv_path_EGREP=$EGREP
4193 fi
4194
4195 fi
4196 fi
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4198 $as_echo "$ac_cv_path_EGREP" >&6; }
4199 EGREP="$ac_cv_path_EGREP"
4200
4201
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4203 $as_echo_n "checking for ANSI C header files... " >&6; }
4204 if ${ac_cv_header_stdc+:} false; then :
4205 $as_echo_n "(cached) " >&6
4206 else
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4209 #include <stdlib.h>
4210 #include <stdarg.h>
4211 #include <string.h>
4212 #include <float.h>
4213
4214 int
4215 main ()
4216 {
4217
4218 ;
4219 return 0;
4220 }
4221 _ACEOF
4222 if ac_fn_c_try_compile "$LINENO"; then :
4223 ac_cv_header_stdc=yes
4224 else
4225 ac_cv_header_stdc=no
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228
4229 if test $ac_cv_header_stdc = yes; then
4230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4232 /* end confdefs.h. */
4233 #include <string.h>
4234
4235 _ACEOF
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "memchr" >/dev/null 2>&1; then :
4238
4239 else
4240 ac_cv_header_stdc=no
4241 fi
4242 rm -f conftest*
4243
4244 fi
4245
4246 if test $ac_cv_header_stdc = yes; then
4247 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <stdlib.h>
4251
4252 _ACEOF
4253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4254 $EGREP "free" >/dev/null 2>&1; then :
4255
4256 else
4257 ac_cv_header_stdc=no
4258 fi
4259 rm -f conftest*
4260
4261 fi
4262
4263 if test $ac_cv_header_stdc = yes; then
4264 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4265 if test "$cross_compiling" = yes; then :
4266 :
4267 else
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <ctype.h>
4271 #include <stdlib.h>
4272 #if ((' ' & 0x0FF) == 0x020)
4273 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4274 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4275 #else
4276 # define ISLOWER(c) \
4277 (('a' <= (c) && (c) <= 'i') \
4278 || ('j' <= (c) && (c) <= 'r') \
4279 || ('s' <= (c) && (c) <= 'z'))
4280 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4281 #endif
4282
4283 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4284 int
4285 main ()
4286 {
4287 int i;
4288 for (i = 0; i < 256; i++)
4289 if (XOR (islower (i), ISLOWER (i))
4290 || toupper (i) != TOUPPER (i))
4291 return 2;
4292 return 0;
4293 }
4294 _ACEOF
4295 if ac_fn_c_try_run "$LINENO"; then :
4296
4297 else
4298 ac_cv_header_stdc=no
4299 fi
4300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4301 conftest.$ac_objext conftest.beam conftest.$ac_ext
4302 fi
4303
4304 fi
4305 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4307 $as_echo "$ac_cv_header_stdc" >&6; }
4308 if test $ac_cv_header_stdc = yes; then
4309
4310 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4311
4312 fi
4313
4314 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4315 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316 inttypes.h stdint.h unistd.h
4317 do :
4318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4320 "
4321 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4322 cat >>confdefs.h <<_ACEOF
4323 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4324 _ACEOF
4325
4326 fi
4327
4328 done
4329
4330
4331
4332 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4333 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4334 MINIX=yes
4335 else
4336 MINIX=
4337 fi
4338
4339
4340 if test "$MINIX" = yes; then
4341
4342 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4343
4344
4345 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4346
4347
4348 $as_echo "#define _MINIX 1" >>confdefs.h
4349
4350 fi
4351
4352
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4354 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4355 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4356 $as_echo_n "(cached) " >&6
4357 else
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360
4361 # define __EXTENSIONS__ 1
4362 $ac_includes_default
4363 int
4364 main ()
4365 {
4366
4367 ;
4368 return 0;
4369 }
4370 _ACEOF
4371 if ac_fn_c_try_compile "$LINENO"; then :
4372 ac_cv_safe_to_define___extensions__=yes
4373 else
4374 ac_cv_safe_to_define___extensions__=no
4375 fi
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 fi
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4379 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4380 test $ac_cv_safe_to_define___extensions__ = yes &&
4381 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4382
4383 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4384
4385 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4386
4387 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4388
4389 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4390
4391
4392 ac_aux_dir=
4393 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4394 if test -f "$ac_dir/install-sh"; then
4395 ac_aux_dir=$ac_dir
4396 ac_install_sh="$ac_aux_dir/install-sh -c"
4397 break
4398 elif test -f "$ac_dir/install.sh"; then
4399 ac_aux_dir=$ac_dir
4400 ac_install_sh="$ac_aux_dir/install.sh -c"
4401 break
4402 elif test -f "$ac_dir/shtool"; then
4403 ac_aux_dir=$ac_dir
4404 ac_install_sh="$ac_aux_dir/shtool install -c"
4405 break
4406 fi
4407 done
4408 if test -z "$ac_aux_dir"; then
4409 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4410 fi
4411
4412 # These three variables are undocumented and unsupported,
4413 # and are intended to be withdrawn in a future Autoconf release.
4414 # They can cause serious problems if a builder's source tree is in a directory
4415 # whose full name contains unusual characters.
4416 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4417 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4418 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4419
4420
4421 # Make sure we can run config.sub.
4422 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4423 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4426 $as_echo_n "checking build system type... " >&6; }
4427 if ${ac_cv_build+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 ac_build_alias=$build_alias
4431 test "x$ac_build_alias" = x &&
4432 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4433 test "x$ac_build_alias" = x &&
4434 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4435 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4436 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4437
4438 fi
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4440 $as_echo "$ac_cv_build" >&6; }
4441 case $ac_cv_build in
4442 *-*-*) ;;
4443 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4444 esac
4445 build=$ac_cv_build
4446 ac_save_IFS=$IFS; IFS='-'
4447 set x $ac_cv_build
4448 shift
4449 build_cpu=$1
4450 build_vendor=$2
4451 shift; shift
4452 # Remember, the first character of IFS is used to create $*,
4453 # except with old shells:
4454 build_os=$*
4455 IFS=$ac_save_IFS
4456 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4457
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4460 $as_echo_n "checking host system type... " >&6; }
4461 if ${ac_cv_host+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test "x$host_alias" = x; then
4465 ac_cv_host=$ac_cv_build
4466 else
4467 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4468 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4469 fi
4470
4471 fi
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4473 $as_echo "$ac_cv_host" >&6; }
4474 case $ac_cv_host in
4475 *-*-*) ;;
4476 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4477 esac
4478 host=$ac_cv_host
4479 ac_save_IFS=$IFS; IFS='-'
4480 set x $ac_cv_host
4481 shift
4482 host_cpu=$1
4483 host_vendor=$2
4484 shift; shift
4485 # Remember, the first character of IFS is used to create $*,
4486 # except with old shells:
4487 host_os=$*
4488 IFS=$ac_save_IFS
4489 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4490
4491
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4493 $as_echo_n "checking target system type... " >&6; }
4494 if ${ac_cv_target+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 if test "x$target_alias" = x; then
4498 ac_cv_target=$ac_cv_host
4499 else
4500 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4501 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4502 fi
4503
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4506 $as_echo "$ac_cv_target" >&6; }
4507 case $ac_cv_target in
4508 *-*-*) ;;
4509 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4510 esac
4511 target=$ac_cv_target
4512 ac_save_IFS=$IFS; IFS='-'
4513 set x $ac_cv_target
4514 shift
4515 target_cpu=$1
4516 target_vendor=$2
4517 shift; shift
4518 # Remember, the first character of IFS is used to create $*,
4519 # except with old shells:
4520 target_os=$*
4521 IFS=$ac_save_IFS
4522 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4523
4524
4525 # The aliases save the names the user supplied, while $host etc.
4526 # will get canonicalized.
4527 test -n "$target_alias" &&
4528 test "$program_prefix$program_suffix$program_transform_name" = \
4529 NONENONEs,x,x, &&
4530 program_prefix=${target_alias}-
4531
4532 # The tests for host and target for $enable_largefile require
4533 # canonical names.
4534
4535
4536
4537 # As the $enable_largefile decision depends on --enable-plugins we must set it
4538 # even in directories otherwise not depending on the $plugins option.
4539
4540
4541 maybe_plugins=no
4542 for ac_header in dlfcn.h
4543 do :
4544 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4545 "
4546 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
4547 cat >>confdefs.h <<_ACEOF
4548 #define HAVE_DLFCN_H 1
4549 _ACEOF
4550 maybe_plugins=yes
4551 fi
4552
4553 done
4554
4555 for ac_header in windows.h
4556 do :
4557 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4558 "
4559 if test "x$ac_cv_header_windows_h" = xyes; then :
4560 cat >>confdefs.h <<_ACEOF
4561 #define HAVE_WINDOWS_H 1
4562 _ACEOF
4563 maybe_plugins=yes
4564 fi
4565
4566 done
4567
4568
4569 # Check whether --enable-plugins was given.
4570 if test "${enable_plugins+set}" = set; then :
4571 enableval=$enable_plugins; case "${enableval}" in
4572 no) plugins=no ;;
4573 *) plugins=yes
4574 if test "$maybe_plugins" != "yes" ; then
4575 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4576 fi ;;
4577 esac
4578 else
4579 plugins=$maybe_plugins
4580
4581 fi
4582
4583 if test "$plugins" = "yes"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4585 $as_echo_n "checking for library containing dlsym... " >&6; }
4586 if ${ac_cv_search_dlsym+:} false; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 ac_func_search_save_LIBS=$LIBS
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4592
4593 /* Override any GCC internal prototype to avoid an error.
4594 Use char because int might match the return type of a GCC
4595 builtin and then its argument prototype would still apply. */
4596 #ifdef __cplusplus
4597 extern "C"
4598 #endif
4599 char dlsym ();
4600 int
4601 main ()
4602 {
4603 return dlsym ();
4604 ;
4605 return 0;
4606 }
4607 _ACEOF
4608 for ac_lib in '' dl; do
4609 if test -z "$ac_lib"; then
4610 ac_res="none required"
4611 else
4612 ac_res=-l$ac_lib
4613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4614 fi
4615 if ac_fn_c_try_link "$LINENO"; then :
4616 ac_cv_search_dlsym=$ac_res
4617 fi
4618 rm -f core conftest.err conftest.$ac_objext \
4619 conftest$ac_exeext
4620 if ${ac_cv_search_dlsym+:} false; then :
4621 break
4622 fi
4623 done
4624 if ${ac_cv_search_dlsym+:} false; then :
4625
4626 else
4627 ac_cv_search_dlsym=no
4628 fi
4629 rm conftest.$ac_ext
4630 LIBS=$ac_func_search_save_LIBS
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4633 $as_echo "$ac_cv_search_dlsym" >&6; }
4634 ac_res=$ac_cv_search_dlsym
4635 if test "$ac_res" != no; then :
4636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4637
4638 fi
4639
4640 fi
4641
4642
4643 case "${host}" in
4644 sparc-*-solaris*|i[3-7]86-*-solaris*)
4645 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4646 # are mutually exclusive; and without procfs support, the bfd/ elf module
4647 # cannot provide certain routines such as elfcore_write_prpsinfo
4648 # or elfcore_write_prstatus. So unless the user explicitly requested
4649 # large-file support through the --enable-largefile switch, disable
4650 # large-file support in favor of procfs support.
4651 test "${target}" = "${host}" -a "x$plugins" = xno \
4652 && : ${enable_largefile="no"}
4653 ;;
4654 esac
4655
4656 # Check whether --enable-largefile was given.
4657 if test "${enable_largefile+set}" = set; then :
4658 enableval=$enable_largefile;
4659 fi
4660
4661 if test "$enable_largefile" != no; then
4662
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4664 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4665 if ${ac_cv_sys_largefile_CC+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 ac_cv_sys_largefile_CC=no
4669 if test "$GCC" != yes; then
4670 ac_save_CC=$CC
4671 while :; do
4672 # IRIX 6.2 and later do not support large files by default,
4673 # so use the C compiler's -n32 option if that helps.
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 #include <sys/types.h>
4677 /* Check that off_t can represent 2**63 - 1 correctly.
4678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4679 since some C++ compilers masquerading as C compilers
4680 incorrectly reject 9223372036854775807. */
4681 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4683 && LARGE_OFF_T % 2147483647 == 1)
4684 ? 1 : -1];
4685 int
4686 main ()
4687 {
4688
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_c_try_compile "$LINENO"; then :
4694 break
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext
4697 CC="$CC -n32"
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_sys_largefile_CC=' -n32'; break
4700 fi
4701 rm -f core conftest.err conftest.$ac_objext
4702 break
4703 done
4704 CC=$ac_save_CC
4705 rm -f conftest.$ac_ext
4706 fi
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4709 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4710 if test "$ac_cv_sys_largefile_CC" != no; then
4711 CC=$CC$ac_cv_sys_largefile_CC
4712 fi
4713
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4715 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4716 if ${ac_cv_sys_file_offset_bits+:} false; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 while :; do
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 #include <sys/types.h>
4723 /* Check that off_t can represent 2**63 - 1 correctly.
4724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4725 since some C++ compilers masquerading as C compilers
4726 incorrectly reject 9223372036854775807. */
4727 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4729 && LARGE_OFF_T % 2147483647 == 1)
4730 ? 1 : -1];
4731 int
4732 main ()
4733 {
4734
4735 ;
4736 return 0;
4737 }
4738 _ACEOF
4739 if ac_fn_c_try_compile "$LINENO"; then :
4740 ac_cv_sys_file_offset_bits=no; break
4741 fi
4742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #define _FILE_OFFSET_BITS 64
4746 #include <sys/types.h>
4747 /* Check that off_t can represent 2**63 - 1 correctly.
4748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4749 since some C++ compilers masquerading as C compilers
4750 incorrectly reject 9223372036854775807. */
4751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4753 && LARGE_OFF_T % 2147483647 == 1)
4754 ? 1 : -1];
4755 int
4756 main ()
4757 {
4758
4759 ;
4760 return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 ac_cv_sys_file_offset_bits=64; break
4765 fi
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 ac_cv_sys_file_offset_bits=unknown
4768 break
4769 done
4770 fi
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4772 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4773 case $ac_cv_sys_file_offset_bits in #(
4774 no | unknown) ;;
4775 *)
4776 cat >>confdefs.h <<_ACEOF
4777 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4778 _ACEOF
4779 ;;
4780 esac
4781 rm -rf conftest*
4782 if test $ac_cv_sys_file_offset_bits = unknown; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4784 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4785 if ${ac_cv_sys_large_files+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 while :; do
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791 #include <sys/types.h>
4792 /* Check that off_t can represent 2**63 - 1 correctly.
4793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4794 since some C++ compilers masquerading as C compilers
4795 incorrectly reject 9223372036854775807. */
4796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4798 && LARGE_OFF_T % 2147483647 == 1)
4799 ? 1 : -1];
4800 int
4801 main ()
4802 {
4803
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 if ac_fn_c_try_compile "$LINENO"; then :
4809 ac_cv_sys_large_files=no; break
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #define _LARGE_FILES 1
4815 #include <sys/types.h>
4816 /* Check that off_t can represent 2**63 - 1 correctly.
4817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4818 since some C++ compilers masquerading as C compilers
4819 incorrectly reject 9223372036854775807. */
4820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4822 && LARGE_OFF_T % 2147483647 == 1)
4823 ? 1 : -1];
4824 int
4825 main ()
4826 {
4827
4828 ;
4829 return 0;
4830 }
4831 _ACEOF
4832 if ac_fn_c_try_compile "$LINENO"; then :
4833 ac_cv_sys_large_files=1; break
4834 fi
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836 ac_cv_sys_large_files=unknown
4837 break
4838 done
4839 fi
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4841 $as_echo "$ac_cv_sys_large_files" >&6; }
4842 case $ac_cv_sys_large_files in #(
4843 no | unknown) ;;
4844 *)
4845 cat >>confdefs.h <<_ACEOF
4846 #define _LARGE_FILES $ac_cv_sys_large_files
4847 _ACEOF
4848 ;;
4849 esac
4850 rm -rf conftest*
4851 fi
4852
4853
4854 fi
4855
4856
4857
4858
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4861 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4862 if ${am_cv_prog_cc_stdc+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 am_cv_prog_cc_stdc=no
4866 ac_save_CC="$CC"
4867 # Don't try gcc -ansi; that turns off useful extensions and
4868 # breaks some systems' header files.
4869 # AIX -qlanglvl=ansi
4870 # Ultrix and OSF/1 -std1
4871 # HP-UX 10.20 and later -Ae
4872 # HP-UX older versions -Aa -D_HPUX_SOURCE
4873 # SVR4 -Xc -D__EXTENSIONS__
4874 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4875 do
4876 CC="$ac_save_CC $ac_arg"
4877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4878 /* end confdefs.h. */
4879 #include <stdarg.h>
4880 #include <stdio.h>
4881 #include <sys/types.h>
4882 #include <sys/stat.h>
4883 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4884 struct buf { int x; };
4885 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4886 static char *e (p, i)
4887 char **p;
4888 int i;
4889 {
4890 return p[i];
4891 }
4892 static char *f (char * (*g) (char **, int), char **p, ...)
4893 {
4894 char *s;
4895 va_list v;
4896 va_start (v,p);
4897 s = g (p, va_arg (v,int));
4898 va_end (v);
4899 return s;
4900 }
4901 int test (int i, double x);
4902 struct s1 {int (*f) (int a);};
4903 struct s2 {int (*f) (double a);};
4904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4905 int argc;
4906 char **argv;
4907
4908 int
4909 main ()
4910 {
4911
4912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4913
4914 ;
4915 return 0;
4916 }
4917 _ACEOF
4918 if ac_fn_c_try_compile "$LINENO"; then :
4919 am_cv_prog_cc_stdc="$ac_arg"; break
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 done
4923 CC="$ac_save_CC"
4924
4925 fi
4926
4927 if test -z "$am_cv_prog_cc_stdc"; then
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4929 $as_echo "none needed" >&6; }
4930 else
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4932 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4933 fi
4934 case "x$am_cv_prog_cc_stdc" in
4935 x|xno) ;;
4936 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4937 esac
4938
4939 # Expand $ac_aux_dir to an absolute path.
4940 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4941
4942 if test x"${install_sh+set}" != xset; then
4943 case $am_aux_dir in
4944 *\ * | *\ *)
4945 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4946 *)
4947 install_sh="\${SHELL} $am_aux_dir/install-sh"
4948 esac
4949 fi
4950
4951 # Installed binaries are usually stripped using 'strip' when the user
4952 # run "make install-strip". However 'strip' might not be the right
4953 # tool to use in cross-compilation environments, therefore Automake
4954 # will honor the 'STRIP' environment variable to overrule this program.
4955 if test "$cross_compiling" != no; then
4956 if test -n "$ac_tool_prefix"; then
4957 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4958 set dummy ${ac_tool_prefix}strip; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_prog_STRIP+:} false; then :
4962 $as_echo_n "(cached) " >&6
4963 else
4964 if test -n "$STRIP"; then
4965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4966 else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4977 fi
4978 done
4979 done
4980 IFS=$as_save_IFS
4981
4982 fi
4983 fi
4984 STRIP=$ac_cv_prog_STRIP
4985 if test -n "$STRIP"; then
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4987 $as_echo "$STRIP" >&6; }
4988 else
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990 $as_echo "no" >&6; }
4991 fi
4992
4993
4994 fi
4995 if test -z "$ac_cv_prog_STRIP"; then
4996 ac_ct_STRIP=$STRIP
4997 # Extract the first word of "strip", so it can be a program name with args.
4998 set dummy strip; ac_word=$2
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5000 $as_echo_n "checking for $ac_word... " >&6; }
5001 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -n "$ac_ct_STRIP"; then
5005 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5006 else
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 for as_dir in $PATH
5009 do
5010 IFS=$as_save_IFS
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_ac_ct_STRIP="strip"
5015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 break 2
5017 fi
5018 done
5019 done
5020 IFS=$as_save_IFS
5021
5022 fi
5023 fi
5024 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5025 if test -n "$ac_ct_STRIP"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5027 $as_echo "$ac_ct_STRIP" >&6; }
5028 else
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5030 $as_echo "no" >&6; }
5031 fi
5032
5033 if test "x$ac_ct_STRIP" = x; then
5034 STRIP=":"
5035 else
5036 case $cross_compiling:$ac_tool_warned in
5037 yes:)
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5040 ac_tool_warned=yes ;;
5041 esac
5042 STRIP=$ac_ct_STRIP
5043 fi
5044 else
5045 STRIP="$ac_cv_prog_STRIP"
5046 fi
5047
5048 fi
5049 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5050
5051
5052 ac_aux_dir=
5053 for ac_dir in .. "$srcdir"/..; do
5054 if test -f "$ac_dir/install-sh"; then
5055 ac_aux_dir=$ac_dir
5056 ac_install_sh="$ac_aux_dir/install-sh -c"
5057 break
5058 elif test -f "$ac_dir/install.sh"; then
5059 ac_aux_dir=$ac_dir
5060 ac_install_sh="$ac_aux_dir/install.sh -c"
5061 break
5062 elif test -f "$ac_dir/shtool"; then
5063 ac_aux_dir=$ac_dir
5064 ac_install_sh="$ac_aux_dir/shtool install -c"
5065 break
5066 fi
5067 done
5068 if test -z "$ac_aux_dir"; then
5069 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5070 fi
5071
5072 # These three variables are undocumented and unsupported,
5073 # and are intended to be withdrawn in a future Autoconf release.
5074 # They can cause serious problems if a builder's source tree is in a directory
5075 # whose full name contains unusual characters.
5076 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5077 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5078 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5079
5080
5081
5082 test "$program_prefix" != NONE &&
5083 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5084 # Use a double $ so make ignores it.
5085 test "$program_suffix" != NONE &&
5086 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5087 # Double any \ or $.
5088 # By default was `s,x,x', remove it if useless.
5089 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5090 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5091
5092
5093 # We require a C++11 compiler. Check if one is available, and if
5094 # necessary, set CXX_DIALECT to some -std=xxx switch.
5095
5096 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5097 ac_ext=cpp
5098 ac_cpp='$CXXCPP $CPPFLAGS'
5099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5102 CXX_DIALECT=""
5103 ac_success=no
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5105 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5106 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111
5112
5113 // If the compiler admits that it is not ready for C++11, why torture it?
5114 // Hopefully, this will speed up the test.
5115
5116 #ifndef __cplusplus
5117
5118 #error "This is not a C++ compiler"
5119
5120 #elif __cplusplus < 201103L
5121
5122 #error "This is not a C++11 compiler"
5123
5124 #else
5125
5126 namespace cxx11
5127 {
5128
5129 namespace test_static_assert
5130 {
5131
5132 template <typename T>
5133 struct check
5134 {
5135 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5136 };
5137
5138 }
5139
5140 namespace test_final_override
5141 {
5142
5143 struct Base
5144 {
5145 virtual void f() {}
5146 };
5147
5148 struct Derived : public Base
5149 {
5150 virtual void f() override {}
5151 };
5152
5153 }
5154
5155 namespace test_double_right_angle_brackets
5156 {
5157
5158 template < typename T >
5159 struct check {};
5160
5161 typedef check<void> single_type;
5162 typedef check<check<void>> double_type;
5163 typedef check<check<check<void>>> triple_type;
5164 typedef check<check<check<check<void>>>> quadruple_type;
5165
5166 }
5167
5168 namespace test_decltype
5169 {
5170
5171 int
5172 f()
5173 {
5174 int a = 1;
5175 decltype(a) b = 2;
5176 return a + b;
5177 }
5178
5179 }
5180
5181 namespace test_type_deduction
5182 {
5183
5184 template < typename T1, typename T2 >
5185 struct is_same
5186 {
5187 static const bool value = false;
5188 };
5189
5190 template < typename T >
5191 struct is_same<T, T>
5192 {
5193 static const bool value = true;
5194 };
5195
5196 template < typename T1, typename T2 >
5197 auto
5198 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5199 {
5200 return a1 + a2;
5201 }
5202
5203 int
5204 test(const int c, volatile int v)
5205 {
5206 static_assert(is_same<int, decltype(0)>::value == true, "");
5207 static_assert(is_same<int, decltype(c)>::value == false, "");
5208 static_assert(is_same<int, decltype(v)>::value == false, "");
5209 auto ac = c;
5210 auto av = v;
5211 auto sumi = ac + av + 'x';
5212 auto sumf = ac + av + 1.0;
5213 static_assert(is_same<int, decltype(ac)>::value == true, "");
5214 static_assert(is_same<int, decltype(av)>::value == true, "");
5215 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5216 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5217 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5218 return (sumf > 0.0) ? sumi : add(c, v);
5219 }
5220
5221 }
5222
5223 namespace test_noexcept
5224 {
5225
5226 int f() { return 0; }
5227 int g() noexcept { return 0; }
5228
5229 static_assert(noexcept(f()) == false, "");
5230 static_assert(noexcept(g()) == true, "");
5231
5232 }
5233
5234 namespace test_constexpr
5235 {
5236
5237 template < typename CharT >
5238 unsigned long constexpr
5239 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5240 {
5241 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5242 }
5243
5244 template < typename CharT >
5245 unsigned long constexpr
5246 strlen_c(const CharT *const s) noexcept
5247 {
5248 return strlen_c_r(s, 0UL);
5249 }
5250
5251 static_assert(strlen_c("") == 0UL, "");
5252 static_assert(strlen_c("1") == 1UL, "");
5253 static_assert(strlen_c("example") == 7UL, "");
5254 static_assert(strlen_c("another\0example") == 7UL, "");
5255
5256 }
5257
5258 namespace test_rvalue_references
5259 {
5260
5261 template < int N >
5262 struct answer
5263 {
5264 static constexpr int value = N;
5265 };
5266
5267 answer<1> f(int&) { return answer<1>(); }
5268 answer<2> f(const int&) { return answer<2>(); }
5269 answer<3> f(int&&) { return answer<3>(); }
5270
5271 void
5272 test()
5273 {
5274 int i = 0;
5275 const int c = 0;
5276 static_assert(decltype(f(i))::value == 1, "");
5277 static_assert(decltype(f(c))::value == 2, "");
5278 static_assert(decltype(f(0))::value == 3, "");
5279 }
5280
5281 }
5282
5283 namespace test_uniform_initialization
5284 {
5285
5286 struct test
5287 {
5288 static const int zero {};
5289 static const int one {1};
5290 };
5291
5292 static_assert(test::zero == 0, "");
5293 static_assert(test::one == 1, "");
5294
5295 }
5296
5297 namespace test_lambdas
5298 {
5299
5300 void
5301 test1()
5302 {
5303 auto lambda1 = [](){};
5304 auto lambda2 = lambda1;
5305 lambda1();
5306 lambda2();
5307 }
5308
5309 int
5310 test2()
5311 {
5312 auto a = [](int i, int j){ return i + j; }(1, 2);
5313 auto b = []() -> int { return '0'; }();
5314 auto c = [=](){ return a + b; }();
5315 auto d = [&](){ return c; }();
5316 auto e = [a, &b](int x) mutable {
5317 const auto identity = [](int y){ return y; };
5318 for (auto i = 0; i < a; ++i)
5319 a += b--;
5320 return x + identity(a + b);
5321 }(0);
5322 return a + b + c + d + e;
5323 }
5324
5325 int
5326 test3()
5327 {
5328 const auto nullary = [](){ return 0; };
5329 const auto unary = [](int x){ return x; };
5330 using nullary_t = decltype(nullary);
5331 using unary_t = decltype(unary);
5332 const auto higher1st = [](nullary_t f){ return f(); };
5333 const auto higher2nd = [unary](nullary_t f1){
5334 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5335 };
5336 return higher1st(nullary) + higher2nd(nullary)(unary);
5337 }
5338
5339 }
5340
5341 namespace test_variadic_templates
5342 {
5343
5344 template <int...>
5345 struct sum;
5346
5347 template <int N0, int... N1toN>
5348 struct sum<N0, N1toN...>
5349 {
5350 static constexpr auto value = N0 + sum<N1toN...>::value;
5351 };
5352
5353 template <>
5354 struct sum<>
5355 {
5356 static constexpr auto value = 0;
5357 };
5358
5359 static_assert(sum<>::value == 0, "");
5360 static_assert(sum<1>::value == 1, "");
5361 static_assert(sum<23>::value == 23, "");
5362 static_assert(sum<1, 2>::value == 3, "");
5363 static_assert(sum<5, 5, 11>::value == 21, "");
5364 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5365
5366 }
5367
5368 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5369 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5370 // because of this.
5371 namespace test_template_alias_sfinae
5372 {
5373
5374 struct foo {};
5375
5376 template<typename T>
5377 using member = typename T::member_type;
5378
5379 template<typename T>
5380 void func(...) {}
5381
5382 template<typename T>
5383 void func(member<T>*) {}
5384
5385 void test();
5386
5387 void test() { func<foo>(0); }
5388
5389 }
5390
5391 } // namespace cxx11
5392
5393 #endif // __cplusplus >= 201103L
5394
5395
5396
5397 _ACEOF
5398 if ac_fn_cxx_try_compile "$LINENO"; then :
5399 ax_cv_cxx_compile_cxx11=yes
5400 else
5401 ax_cv_cxx_compile_cxx11=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 fi
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5406 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5407 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5408 ac_success=yes
5409 fi
5410
5411 if test x$ac_success = xno; then
5412 for alternative in ${ax_cxx_compile_alternatives}; do
5413 switch="-std=gnu++${alternative}"
5414 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5416 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5417 if eval \${$cachevar+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 ac_save_CXX="$CXX"
5421 CXX="$CXX $switch"
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5424
5425
5426 // If the compiler admits that it is not ready for C++11, why torture it?
5427 // Hopefully, this will speed up the test.
5428
5429 #ifndef __cplusplus
5430
5431 #error "This is not a C++ compiler"
5432
5433 #elif __cplusplus < 201103L
5434
5435 #error "This is not a C++11 compiler"
5436
5437 #else
5438
5439 namespace cxx11
5440 {
5441
5442 namespace test_static_assert
5443 {
5444
5445 template <typename T>
5446 struct check
5447 {
5448 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5449 };
5450
5451 }
5452
5453 namespace test_final_override
5454 {
5455
5456 struct Base
5457 {
5458 virtual void f() {}
5459 };
5460
5461 struct Derived : public Base
5462 {
5463 virtual void f() override {}
5464 };
5465
5466 }
5467
5468 namespace test_double_right_angle_brackets
5469 {
5470
5471 template < typename T >
5472 struct check {};
5473
5474 typedef check<void> single_type;
5475 typedef check<check<void>> double_type;
5476 typedef check<check<check<void>>> triple_type;
5477 typedef check<check<check<check<void>>>> quadruple_type;
5478
5479 }
5480
5481 namespace test_decltype
5482 {
5483
5484 int
5485 f()
5486 {
5487 int a = 1;
5488 decltype(a) b = 2;
5489 return a + b;
5490 }
5491
5492 }
5493
5494 namespace test_type_deduction
5495 {
5496
5497 template < typename T1, typename T2 >
5498 struct is_same
5499 {
5500 static const bool value = false;
5501 };
5502
5503 template < typename T >
5504 struct is_same<T, T>
5505 {
5506 static const bool value = true;
5507 };
5508
5509 template < typename T1, typename T2 >
5510 auto
5511 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5512 {
5513 return a1 + a2;
5514 }
5515
5516 int
5517 test(const int c, volatile int v)
5518 {
5519 static_assert(is_same<int, decltype(0)>::value == true, "");
5520 static_assert(is_same<int, decltype(c)>::value == false, "");
5521 static_assert(is_same<int, decltype(v)>::value == false, "");
5522 auto ac = c;
5523 auto av = v;
5524 auto sumi = ac + av + 'x';
5525 auto sumf = ac + av + 1.0;
5526 static_assert(is_same<int, decltype(ac)>::value == true, "");
5527 static_assert(is_same<int, decltype(av)>::value == true, "");
5528 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5529 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5530 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5531 return (sumf > 0.0) ? sumi : add(c, v);
5532 }
5533
5534 }
5535
5536 namespace test_noexcept
5537 {
5538
5539 int f() { return 0; }
5540 int g() noexcept { return 0; }
5541
5542 static_assert(noexcept(f()) == false, "");
5543 static_assert(noexcept(g()) == true, "");
5544
5545 }
5546
5547 namespace test_constexpr
5548 {
5549
5550 template < typename CharT >
5551 unsigned long constexpr
5552 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5553 {
5554 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5555 }
5556
5557 template < typename CharT >
5558 unsigned long constexpr
5559 strlen_c(const CharT *const s) noexcept
5560 {
5561 return strlen_c_r(s, 0UL);
5562 }
5563
5564 static_assert(strlen_c("") == 0UL, "");
5565 static_assert(strlen_c("1") == 1UL, "");
5566 static_assert(strlen_c("example") == 7UL, "");
5567 static_assert(strlen_c("another\0example") == 7UL, "");
5568
5569 }
5570
5571 namespace test_rvalue_references
5572 {
5573
5574 template < int N >
5575 struct answer
5576 {
5577 static constexpr int value = N;
5578 };
5579
5580 answer<1> f(int&) { return answer<1>(); }
5581 answer<2> f(const int&) { return answer<2>(); }
5582 answer<3> f(int&&) { return answer<3>(); }
5583
5584 void
5585 test()
5586 {
5587 int i = 0;
5588 const int c = 0;
5589 static_assert(decltype(f(i))::value == 1, "");
5590 static_assert(decltype(f(c))::value == 2, "");
5591 static_assert(decltype(f(0))::value == 3, "");
5592 }
5593
5594 }
5595
5596 namespace test_uniform_initialization
5597 {
5598
5599 struct test
5600 {
5601 static const int zero {};
5602 static const int one {1};
5603 };
5604
5605 static_assert(test::zero == 0, "");
5606 static_assert(test::one == 1, "");
5607
5608 }
5609
5610 namespace test_lambdas
5611 {
5612
5613 void
5614 test1()
5615 {
5616 auto lambda1 = [](){};
5617 auto lambda2 = lambda1;
5618 lambda1();
5619 lambda2();
5620 }
5621
5622 int
5623 test2()
5624 {
5625 auto a = [](int i, int j){ return i + j; }(1, 2);
5626 auto b = []() -> int { return '0'; }();
5627 auto c = [=](){ return a + b; }();
5628 auto d = [&](){ return c; }();
5629 auto e = [a, &b](int x) mutable {
5630 const auto identity = [](int y){ return y; };
5631 for (auto i = 0; i < a; ++i)
5632 a += b--;
5633 return x + identity(a + b);
5634 }(0);
5635 return a + b + c + d + e;
5636 }
5637
5638 int
5639 test3()
5640 {
5641 const auto nullary = [](){ return 0; };
5642 const auto unary = [](int x){ return x; };
5643 using nullary_t = decltype(nullary);
5644 using unary_t = decltype(unary);
5645 const auto higher1st = [](nullary_t f){ return f(); };
5646 const auto higher2nd = [unary](nullary_t f1){
5647 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5648 };
5649 return higher1st(nullary) + higher2nd(nullary)(unary);
5650 }
5651
5652 }
5653
5654 namespace test_variadic_templates
5655 {
5656
5657 template <int...>
5658 struct sum;
5659
5660 template <int N0, int... N1toN>
5661 struct sum<N0, N1toN...>
5662 {
5663 static constexpr auto value = N0 + sum<N1toN...>::value;
5664 };
5665
5666 template <>
5667 struct sum<>
5668 {
5669 static constexpr auto value = 0;
5670 };
5671
5672 static_assert(sum<>::value == 0, "");
5673 static_assert(sum<1>::value == 1, "");
5674 static_assert(sum<23>::value == 23, "");
5675 static_assert(sum<1, 2>::value == 3, "");
5676 static_assert(sum<5, 5, 11>::value == 21, "");
5677 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5678
5679 }
5680
5681 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5682 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5683 // because of this.
5684 namespace test_template_alias_sfinae
5685 {
5686
5687 struct foo {};
5688
5689 template<typename T>
5690 using member = typename T::member_type;
5691
5692 template<typename T>
5693 void func(...) {}
5694
5695 template<typename T>
5696 void func(member<T>*) {}
5697
5698 void test();
5699
5700 void test() { func<foo>(0); }
5701
5702 }
5703
5704 } // namespace cxx11
5705
5706 #endif // __cplusplus >= 201103L
5707
5708
5709
5710 _ACEOF
5711 if ac_fn_cxx_try_compile "$LINENO"; then :
5712 eval $cachevar=yes
5713 else
5714 eval $cachevar=no
5715 fi
5716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5717 CXX="$ac_save_CXX"
5718 fi
5719 eval ac_res=\$$cachevar
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5721 $as_echo "$ac_res" >&6; }
5722 if eval test x\$$cachevar = xyes; then
5723 CXX_DIALECT="$switch"
5724 ac_success=yes
5725 break
5726 fi
5727 done
5728 fi
5729
5730 if test x$ac_success = xno; then
5731 for alternative in ${ax_cxx_compile_alternatives}; do
5732 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5733 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5735 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5736 if eval \${$cachevar+:} false; then :
5737 $as_echo_n "(cached) " >&6
5738 else
5739 ac_save_CXX="$CXX"
5740 CXX="$CXX $switch"
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743
5744
5745 // If the compiler admits that it is not ready for C++11, why torture it?
5746 // Hopefully, this will speed up the test.
5747
5748 #ifndef __cplusplus
5749
5750 #error "This is not a C++ compiler"
5751
5752 #elif __cplusplus < 201103L
5753
5754 #error "This is not a C++11 compiler"
5755
5756 #else
5757
5758 namespace cxx11
5759 {
5760
5761 namespace test_static_assert
5762 {
5763
5764 template <typename T>
5765 struct check
5766 {
5767 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5768 };
5769
5770 }
5771
5772 namespace test_final_override
5773 {
5774
5775 struct Base
5776 {
5777 virtual void f() {}
5778 };
5779
5780 struct Derived : public Base
5781 {
5782 virtual void f() override {}
5783 };
5784
5785 }
5786
5787 namespace test_double_right_angle_brackets
5788 {
5789
5790 template < typename T >
5791 struct check {};
5792
5793 typedef check<void> single_type;
5794 typedef check<check<void>> double_type;
5795 typedef check<check<check<void>>> triple_type;
5796 typedef check<check<check<check<void>>>> quadruple_type;
5797
5798 }
5799
5800 namespace test_decltype
5801 {
5802
5803 int
5804 f()
5805 {
5806 int a = 1;
5807 decltype(a) b = 2;
5808 return a + b;
5809 }
5810
5811 }
5812
5813 namespace test_type_deduction
5814 {
5815
5816 template < typename T1, typename T2 >
5817 struct is_same
5818 {
5819 static const bool value = false;
5820 };
5821
5822 template < typename T >
5823 struct is_same<T, T>
5824 {
5825 static const bool value = true;
5826 };
5827
5828 template < typename T1, typename T2 >
5829 auto
5830 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5831 {
5832 return a1 + a2;
5833 }
5834
5835 int
5836 test(const int c, volatile int v)
5837 {
5838 static_assert(is_same<int, decltype(0)>::value == true, "");
5839 static_assert(is_same<int, decltype(c)>::value == false, "");
5840 static_assert(is_same<int, decltype(v)>::value == false, "");
5841 auto ac = c;
5842 auto av = v;
5843 auto sumi = ac + av + 'x';
5844 auto sumf = ac + av + 1.0;
5845 static_assert(is_same<int, decltype(ac)>::value == true, "");
5846 static_assert(is_same<int, decltype(av)>::value == true, "");
5847 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5848 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5849 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5850 return (sumf > 0.0) ? sumi : add(c, v);
5851 }
5852
5853 }
5854
5855 namespace test_noexcept
5856 {
5857
5858 int f() { return 0; }
5859 int g() noexcept { return 0; }
5860
5861 static_assert(noexcept(f()) == false, "");
5862 static_assert(noexcept(g()) == true, "");
5863
5864 }
5865
5866 namespace test_constexpr
5867 {
5868
5869 template < typename CharT >
5870 unsigned long constexpr
5871 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5872 {
5873 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5874 }
5875
5876 template < typename CharT >
5877 unsigned long constexpr
5878 strlen_c(const CharT *const s) noexcept
5879 {
5880 return strlen_c_r(s, 0UL);
5881 }
5882
5883 static_assert(strlen_c("") == 0UL, "");
5884 static_assert(strlen_c("1") == 1UL, "");
5885 static_assert(strlen_c("example") == 7UL, "");
5886 static_assert(strlen_c("another\0example") == 7UL, "");
5887
5888 }
5889
5890 namespace test_rvalue_references
5891 {
5892
5893 template < int N >
5894 struct answer
5895 {
5896 static constexpr int value = N;
5897 };
5898
5899 answer<1> f(int&) { return answer<1>(); }
5900 answer<2> f(const int&) { return answer<2>(); }
5901 answer<3> f(int&&) { return answer<3>(); }
5902
5903 void
5904 test()
5905 {
5906 int i = 0;
5907 const int c = 0;
5908 static_assert(decltype(f(i))::value == 1, "");
5909 static_assert(decltype(f(c))::value == 2, "");
5910 static_assert(decltype(f(0))::value == 3, "");
5911 }
5912
5913 }
5914
5915 namespace test_uniform_initialization
5916 {
5917
5918 struct test
5919 {
5920 static const int zero {};
5921 static const int one {1};
5922 };
5923
5924 static_assert(test::zero == 0, "");
5925 static_assert(test::one == 1, "");
5926
5927 }
5928
5929 namespace test_lambdas
5930 {
5931
5932 void
5933 test1()
5934 {
5935 auto lambda1 = [](){};
5936 auto lambda2 = lambda1;
5937 lambda1();
5938 lambda2();
5939 }
5940
5941 int
5942 test2()
5943 {
5944 auto a = [](int i, int j){ return i + j; }(1, 2);
5945 auto b = []() -> int { return '0'; }();
5946 auto c = [=](){ return a + b; }();
5947 auto d = [&](){ return c; }();
5948 auto e = [a, &b](int x) mutable {
5949 const auto identity = [](int y){ return y; };
5950 for (auto i = 0; i < a; ++i)
5951 a += b--;
5952 return x + identity(a + b);
5953 }(0);
5954 return a + b + c + d + e;
5955 }
5956
5957 int
5958 test3()
5959 {
5960 const auto nullary = [](){ return 0; };
5961 const auto unary = [](int x){ return x; };
5962 using nullary_t = decltype(nullary);
5963 using unary_t = decltype(unary);
5964 const auto higher1st = [](nullary_t f){ return f(); };
5965 const auto higher2nd = [unary](nullary_t f1){
5966 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5967 };
5968 return higher1st(nullary) + higher2nd(nullary)(unary);
5969 }
5970
5971 }
5972
5973 namespace test_variadic_templates
5974 {
5975
5976 template <int...>
5977 struct sum;
5978
5979 template <int N0, int... N1toN>
5980 struct sum<N0, N1toN...>
5981 {
5982 static constexpr auto value = N0 + sum<N1toN...>::value;
5983 };
5984
5985 template <>
5986 struct sum<>
5987 {
5988 static constexpr auto value = 0;
5989 };
5990
5991 static_assert(sum<>::value == 0, "");
5992 static_assert(sum<1>::value == 1, "");
5993 static_assert(sum<23>::value == 23, "");
5994 static_assert(sum<1, 2>::value == 3, "");
5995 static_assert(sum<5, 5, 11>::value == 21, "");
5996 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5997
5998 }
5999
6000 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6001 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6002 // because of this.
6003 namespace test_template_alias_sfinae
6004 {
6005
6006 struct foo {};
6007
6008 template<typename T>
6009 using member = typename T::member_type;
6010
6011 template<typename T>
6012 void func(...) {}
6013
6014 template<typename T>
6015 void func(member<T>*) {}
6016
6017 void test();
6018
6019 void test() { func<foo>(0); }
6020
6021 }
6022
6023 } // namespace cxx11
6024
6025 #endif // __cplusplus >= 201103L
6026
6027
6028
6029 _ACEOF
6030 if ac_fn_cxx_try_compile "$LINENO"; then :
6031 eval $cachevar=yes
6032 else
6033 eval $cachevar=no
6034 fi
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 CXX="$ac_save_CXX"
6037 fi
6038 eval ac_res=\$$cachevar
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6040 $as_echo "$ac_res" >&6; }
6041 if eval test x\$$cachevar = xyes; then
6042 CXX_DIALECT="$switch"
6043 ac_success=yes
6044 break
6045 fi
6046 done
6047 if test x$ac_success = xyes; then
6048 break
6049 fi
6050 done
6051 fi
6052 ac_ext=c
6053 ac_cpp='$CPP $CPPFLAGS'
6054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6057
6058 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6059 if test x$ac_success = xno; then
6060 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6061 fi
6062 fi
6063 if test x$ac_success = xno; then
6064 HAVE_CXX11=0
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6066 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6067 else
6068 HAVE_CXX11=1
6069
6070 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6071
6072 fi
6073
6074
6075
6076
6077 # Dependency checking.
6078 rm -rf .tst 2>/dev/null
6079 mkdir .tst 2>/dev/null
6080 if test -d .tst; then
6081 am__leading_dot=.
6082 else
6083 am__leading_dot=_
6084 fi
6085 rmdir .tst 2>/dev/null
6086
6087 DEPDIR="${am__leading_dot}deps"
6088
6089 ac_config_commands="$ac_config_commands depdir"
6090
6091
6092 depcc="$CC" am_compiler_list=
6093
6094 am_depcomp=$ac_aux_dir/depcomp
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6096 $as_echo_n "checking dependency style of $depcc... " >&6; }
6097 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6098 $as_echo_n "(cached) " >&6
6099 else
6100 if test -f "$am_depcomp"; then
6101 # We make a subdir and do the tests there. Otherwise we can end up
6102 # making bogus files that we don't know about and never remove. For
6103 # instance it was reported that on HP-UX the gcc test will end up
6104 # making a dummy file named `D' -- because `-MD' means `put the output
6105 # in D'.
6106 mkdir conftest.dir
6107 # Copy depcomp to subdir because otherwise we won't find it if we're
6108 # using a relative directory.
6109 cp "$am_depcomp" conftest.dir
6110 cd conftest.dir
6111 # We will build objects and dependencies in a subdirectory because
6112 # it helps to detect inapplicable dependency modes. For instance
6113 # both Tru64's cc and ICC support -MD to output dependencies as a
6114 # side effect of compilation, but ICC will put the dependencies in
6115 # the current directory while Tru64 will put them in the object
6116 # directory.
6117 mkdir sub
6118
6119 am_cv_CC_dependencies_compiler_type=none
6120 if test "$am_compiler_list" = ""; then
6121 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6122 fi
6123 for depmode in $am_compiler_list; do
6124 if test $depmode = none; then break; fi
6125
6126 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6127 # Setup a source with many dependencies, because some compilers
6128 # like to wrap large dependency lists on column 80 (with \), and
6129 # we should not choose a depcomp mode which is confused by this.
6130 #
6131 # We need to recreate these files for each test, as the compiler may
6132 # overwrite some of them when testing with obscure command lines.
6133 # This happens at least with the AIX C compiler.
6134 : > sub/conftest.c
6135 for i in 1 2 3 4 5 6; do
6136 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6137 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6138 # Solaris 8's {/usr,}/bin/sh.
6139 touch sub/conftst$i.h
6140 done
6141 echo "include sub/conftest.Po" > confmf
6142
6143 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6144 # mode. It turns out that the SunPro C++ compiler does not properly
6145 # handle `-M -o', and we need to detect this.
6146 depcmd="depmode=$depmode \
6147 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6149 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6150 echo "| $depcmd" | sed -e 's/ */ /g' >&5
6151 if env $depcmd > conftest.err 2>&1 &&
6152 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
6153 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
6154 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
6155 # icc doesn't choke on unknown options, it will just issue warnings
6156 # or remarks (even with -Werror). So we grep stderr for any message
6157 # that says an option was ignored or not supported.
6158 # When given -MP, icc 7.0 and 7.1 complain thusly:
6159 # icc: Command line warning: ignoring option '-M'; no argument required
6160 # The diagnosis changed in icc 8.0:
6161 # icc: Command line remark: option '-MP' not supported
6162 if (grep 'ignoring option' conftest.err ||
6163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6164 am_cv_CC_dependencies_compiler_type=$depmode
6165 $as_echo "$as_me:$LINENO: success" >&5
6166 break
6167 fi
6168 fi
6169 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6170 sed -e 's/^/| /' < conftest.err >&5
6171 done
6172
6173 cd ..
6174 rm -rf conftest.dir
6175 else
6176 am_cv_CC_dependencies_compiler_type=none
6177 fi
6178
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6181 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6182 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
6183 then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6184 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6185
6186 fi
6187
6188
6189 gnulib_extra_configure_args=
6190 # If large-file support is disabled, make sure gnulib does the same.
6191 if test "$enable_largefile" = no; then
6192 gnulib_extra_configure_args="$gnulib_extra_configure_args --disable-largefile"
6193 fi
6194
6195 # Configure gnulib. We need to build gnulib under some other
6196 # directory not "gnulib", to avoid the problem of both GDB and
6197 # GDBserver wanting to build it in the same directory, when building
6198 # in the source dir.
6199
6200 in_src="gnulib"
6201 in_build="build-gnulib"
6202 in_extra_args="$gnulib_extra_configure_args"
6203
6204 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6205 # so they do not pile up.
6206 ac_sub_configure_args=
6207 ac_prev=
6208 eval "set x $ac_configure_args"
6209 shift
6210 for ac_arg
6211 do
6212 if test -n "$ac_prev"; then
6213 ac_prev=
6214 continue
6215 fi
6216 case $ac_arg in
6217 -cache-file | --cache-file | --cache-fil | --cache-fi \
6218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
6219 ac_prev=cache_file ;;
6220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
6221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
6222 | --c=*)
6223 ;;
6224 --config-cache | -C)
6225 ;;
6226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
6227 ac_prev=srcdir ;;
6228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
6229 ;;
6230 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
6231 ac_prev=prefix ;;
6232 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
6233 ;;
6234 --disable-option-checking)
6235 ;;
6236 *)
6237 case $ac_arg in
6238 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6239 esac
6240 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
6241 esac
6242 done
6243
6244 # Always prepend --prefix to ensure using the same prefix
6245 # in subdir configurations.
6246 ac_arg="--prefix=$prefix"
6247 case $ac_arg in
6248 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6249 esac
6250 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
6251
6252 # Pass --silent
6253 if test "$silent" = yes; then
6254 ac_sub_configure_args="--silent $ac_sub_configure_args"
6255 fi
6256
6257 # Always prepend --disable-option-checking to silence warnings, since
6258 # different subdirs can have different --enable and --with options.
6259 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
6260
6261 ac_popdir=`pwd`
6262 ac_dir=$in_build
6263
6264 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6265 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6266 $as_echo "$ac_msg" >&6
6267 as_dir="$ac_dir"; as_fn_mkdir_p
6268
6269 case $srcdir in
6270 [\\/]* | ?:[\\/]* )
6271 ac_srcdir=$srcdir/$in_src ;;
6272 *) # Relative name.
6273 ac_srcdir=../$srcdir/$in_src ;;
6274 esac
6275
6276 cd "$ac_dir"
6277
6278 ac_sub_configure=$ac_srcdir/configure
6279
6280 # Make the cache file name correct relative to the subdirectory.
6281 case $cache_file in
6282 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
6283 *) # Relative name.
6284 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
6285 esac
6286
6287 if test -n "$in_extra_args"; then
6288 # Add the extra args at the end.
6289 ac_sub_configure_args="$ac_sub_configure_args $in_extra_args"
6290 fi
6291
6292 { $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
6293 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6294 # The eval makes quoting arguments work.
6295 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6296 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6297 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6298
6299 cd "$ac_popdir"
6300
6301
6302
6303 CONFIG_OBS=
6304 CONFIG_DEPS=
6305 CONFIG_SRCS=
6306 ENABLE_CFLAGS=
6307
6308 CONFIG_ALL=
6309 CONFIG_CLEAN=
6310 CONFIG_INSTALL=
6311 CONFIG_UNINSTALL=
6312
6313 # If we haven't got the data from the intl directory,
6314 # assume NLS is disabled.
6315 USE_NLS=no
6316 LIBINTL=
6317 LIBINTL_DEP=
6318 INCINTL=
6319 XGETTEXT=
6320 GMSGFMT=
6321 POSUB=
6322
6323 if test -f ../intl/config.intl; then
6324 . ../intl/config.intl
6325 fi
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6327 $as_echo_n "checking whether NLS is requested... " >&6; }
6328 if test x"$USE_NLS" != xyes; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6333 $as_echo "yes" >&6; }
6334
6335 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6336
6337
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6339 $as_echo_n "checking for catalogs to be installed... " >&6; }
6340 # Look for .po and .gmo files in the source directory.
6341 CATALOGS=
6342 XLINGUAS=
6343 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
6344 # If there aren't any .gmo files the shell will give us the
6345 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6346 # weeded out.
6347 case "$cat" in *\**)
6348 continue;;
6349 esac
6350 # The quadruple backslash is collapsed to a double backslash
6351 # by the backticks, then collapsed again by the double quotes,
6352 # leaving us with one backslash in the sed expression (right
6353 # before the dot that mustn't act as a wildcard).
6354 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6355 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
6356 # The user is allowed to set LINGUAS to a list of languages to
6357 # install catalogs for. If it's empty that means "all of them."
6358 if test "x$LINGUAS" = x; then
6359 CATALOGS="$CATALOGS $cat"
6360 XLINGUAS="$XLINGUAS $lang"
6361 else
6362 case "$LINGUAS" in *$lang*)
6363 CATALOGS="$CATALOGS $cat"
6364 XLINGUAS="$XLINGUAS $lang"
6365 ;;
6366 esac
6367 fi
6368 done
6369 LINGUAS="$XLINGUAS"
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6371 $as_echo "$LINGUAS" >&6; }
6372
6373
6374 DATADIRNAME=share
6375
6376 INSTOBJEXT=.mo
6377
6378 GENCAT=gencat
6379
6380 CATOBJEXT=.gmo
6381
6382 fi
6383
6384 localedir='${datadir}/locale'
6385
6386
6387 if test x"$USE_NLS" = xyes; then
6388 CONFIG_ALL="$CONFIG_ALL all-po"
6389 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
6390 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
6391 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
6392 fi
6393
6394 GNULIB=build-gnulib/import
6395
6396 # For Makefile dependencies.
6397 GNULIB_STDINT_H=
6398 if test x"$STDINT_H" != x; then
6399 GNULIB_STDINT_H=$GNULIB/$STDINT_H
6400 fi
6401
6402
6403 PACKAGE=gdb
6404
6405 cat >>confdefs.h <<_ACEOF
6406 #define PACKAGE "$PACKAGE"
6407 _ACEOF
6408
6409
6410
6411 # We never need to detect it in this sub-configure.
6412 # But preserve it for config.status --recheck.
6413
6414
6415
6416 MAKEINFO_EXTRA_FLAGS=""
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6418 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6419 if ${gdb_cv_have_makeinfo_click+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6423 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6424 gdb_cv_have_makeinfo_click=yes
6425 else
6426 gdb_cv_have_makeinfo_click=no
6427 fi
6428 fi
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6430 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6431 if test x"$gdb_cv_have_makeinfo_click" = xyes; then
6432 MAKEINFO_EXTRA_FLAGS="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6433 fi
6434
6435
6436
6437
6438 # Check whether --with-separate-debug-dir was given.
6439 if test "${with_separate_debug_dir+set}" = set; then :
6440 withval=$with_separate_debug_dir;
6441 DEBUGDIR=$withval
6442 else
6443 DEBUGDIR=${libdir}/debug
6444 fi
6445
6446
6447 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6449 ac_define_dir=`eval echo $DEBUGDIR`
6450 ac_define_dir=`eval echo $ac_define_dir`
6451
6452 cat >>confdefs.h <<_ACEOF
6453 #define DEBUGDIR "$ac_define_dir"
6454 _ACEOF
6455
6456
6457
6458
6459 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6460 if test "x$prefix" = xNONE; then
6461 test_prefix=/usr/local
6462 else
6463 test_prefix=$prefix
6464 fi
6465 else
6466 test_prefix=$exec_prefix
6467 fi
6468 value=0
6469 case ${ac_define_dir} in
6470 "${test_prefix}"|"${test_prefix}/"*|\
6471 '${exec_prefix}'|'${exec_prefix}/'*)
6472 value=1
6473 ;;
6474 esac
6475
6476 cat >>confdefs.h <<_ACEOF
6477 #define DEBUGDIR_RELOCATABLE $value
6478 _ACEOF
6479
6480
6481
6482
6483 # We can't pass paths as command line arguments.
6484 # Mingw32 tries to be clever and will convert the paths for us.
6485 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6486 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6487 # This breaks GDB's relocatable path conversions since paths passed in
6488 # config.h would not get so translated, the path prefixes no longer match.
6489
6490 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6492 ac_define_dir=`eval echo $bindir`
6493 ac_define_dir=`eval echo $ac_define_dir`
6494
6495 cat >>confdefs.h <<_ACEOF
6496 #define BINDIR "$ac_define_dir"
6497 _ACEOF
6498
6499
6500
6501 # GDB's datadir relocation
6502
6503
6504
6505 # Check whether --with-gdb-datadir was given.
6506 if test "${with_gdb_datadir+set}" = set; then :
6507 withval=$with_gdb_datadir;
6508 GDB_DATADIR=$withval
6509 else
6510 GDB_DATADIR=${datadir}/gdb
6511 fi
6512
6513
6514 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6516 ac_define_dir=`eval echo $GDB_DATADIR`
6517 ac_define_dir=`eval echo $ac_define_dir`
6518
6519 cat >>confdefs.h <<_ACEOF
6520 #define GDB_DATADIR "$ac_define_dir"
6521 _ACEOF
6522
6523
6524
6525
6526 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6527 if test "x$prefix" = xNONE; then
6528 test_prefix=/usr/local
6529 else
6530 test_prefix=$prefix
6531 fi
6532 else
6533 test_prefix=$exec_prefix
6534 fi
6535 value=0
6536 case ${ac_define_dir} in
6537 "${test_prefix}"|"${test_prefix}/"*|\
6538 '${exec_prefix}'|'${exec_prefix}/'*)
6539 value=1
6540 ;;
6541 esac
6542
6543 cat >>confdefs.h <<_ACEOF
6544 #define GDB_DATADIR_RELOCATABLE $value
6545 _ACEOF
6546
6547
6548
6549
6550
6551 # Check whether --with-relocated-sources was given.
6552 if test "${with_relocated_sources+set}" = set; then :
6553 withval=$with_relocated_sources; reloc_srcdir="${withval}"
6554
6555 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6556 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6557 ac_define_dir=`eval echo $reloc_srcdir`
6558 ac_define_dir=`eval echo $ac_define_dir`
6559
6560 cat >>confdefs.h <<_ACEOF
6561 #define RELOC_SRCDIR "$ac_define_dir"
6562 _ACEOF
6563
6564
6565
6566 fi
6567
6568
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6570 $as_echo_n "checking for default auto-load directory... " >&6; }
6571
6572 # Check whether --with-auto-load-dir was given.
6573 if test "${with_auto_load_dir+set}" = set; then :
6574 withval=$with_auto_load_dir;
6575 else
6576 with_auto_load_dir='$debugdir:$datadir/auto-load'
6577 fi
6578
6579 escape_dir=`echo $with_auto_load_dir | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6580
6581 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6582 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6583 ac_define_dir=`eval echo $escape_dir`
6584 ac_define_dir=`eval echo $ac_define_dir`
6585
6586 cat >>confdefs.h <<_ACEOF
6587 #define AUTO_LOAD_DIR "$ac_define_dir"
6588 _ACEOF
6589
6590
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6592 $as_echo "$with_auto_load_dir" >&6; }
6593
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6595 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6596
6597 # Check whether --with-auto-load-safe-path was given.
6598 if test "${with_auto_load_safe_path+set}" = set; then :
6599 withval=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6600 with_auto_load_safe_path="/"
6601 fi
6602 else
6603 with_auto_load_safe_path="$with_auto_load_dir"
6604 fi
6605
6606 escape_dir=`echo $with_auto_load_safe_path | sed 's/[$]\(datadir\|debugdir\)\>/\\\\\\\\\\\\&/g'`
6607
6608 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6610 ac_define_dir=`eval echo $escape_dir`
6611 ac_define_dir=`eval echo $ac_define_dir`
6612
6613 cat >>confdefs.h <<_ACEOF
6614 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6615 _ACEOF
6616
6617
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6619 $as_echo "$with_auto_load_safe_path" >&6; }
6620
6621
6622
6623 subdirs="$subdirs testsuite"
6624
6625
6626 # Check whether to support alternative target configurations
6627 # Check whether --enable-targets was given.
6628 if test "${enable_targets+set}" = set; then :
6629 enableval=$enable_targets; case "${enableval}" in
6630 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
6631 ;;
6632 no) enable_targets= ;;
6633 *) enable_targets=$enableval ;;
6634 esac
6635 fi
6636
6637
6638 # Check whether to enable 64-bit support on 32-bit hosts
6639 # Check whether --enable-64-bit-bfd was given.
6640 if test "${enable_64_bit_bfd+set}" = set; then :
6641 enableval=$enable_64_bit_bfd; case "${enableval}" in
6642 yes) want64=true ;;
6643 no) want64=false ;;
6644 *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6645 esac
6646 else
6647 want64=false
6648 fi
6649
6650 # Provide defaults for some variables set by the per-host and per-target
6651 # configuration.
6652 gdb_host_obs=posix-hdep.o
6653
6654 if test "${target}" = "${host}"; then
6655 gdb_native=yes
6656 else
6657 gdb_native=no
6658 fi
6659
6660 . $srcdir/configure.host
6661
6662 # Add in the common host objects.
6663 . $srcdir/common/common.host
6664 gdb_host_obs="$gdb_host_obs $common_host_obs"
6665
6666 # Accumulate some settings from configure.tgt over all enabled targets
6667
6668 TARGET_OBS=
6669 all_targets=
6670 HAVE_NATIVE_GCORE_TARGET=
6671
6672 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6673 do
6674 if test "$targ_alias" = "all"; then
6675 all_targets=true
6676 else
6677 # Canonicalize the secondary target names.
6678 result=`$ac_config_sub $targ_alias 2>/dev/null`
6679 if test -n "$result"; then
6680 targ=$result
6681 else
6682 targ=$targ_alias
6683 fi
6684
6685 . ${srcdir}/configure.tgt
6686
6687 if test -z "${gdb_target_obs}"; then :
6688 as_fn_error $? "configuration ${targ} is unsupported." "$LINENO" 5
6689 fi
6690
6691 # Target-specific object files
6692 for i in ${gdb_target_obs}; do
6693 case " $TARGET_OBS " in
6694 *" ${i} "*) ;;
6695 *)
6696 TARGET_OBS="$TARGET_OBS ${i}"
6697 ;;
6698 esac
6699 done
6700
6701 # Check whether this target needs 64-bit CORE_ADDR
6702 if test x${want64} = xfalse; then
6703 . ${srcdir}/../bfd/config.bfd
6704 fi
6705
6706 # Check whether this target is native and supports gcore.
6707 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6708 && $gdb_have_gcore; then
6709 HAVE_NATIVE_GCORE_TARGET=1
6710 fi
6711 fi
6712 done
6713
6714 if test x${all_targets} = xtrue; then
6715
6716 # We want all 64-bit targets if we either:
6717 # - run on a 64-bit host or
6718 # - already require 64-bit support for some other target or
6719 # - the --enable-64-bit-bfd option was supplied
6720 # Otherwise we only support all 32-bit targets.
6721 #
6722 # NOTE: This test must be in sync with the corresponding
6723 # tests in BFD!
6724
6725 if test x${want64} = xfalse; then
6726 # The cast to long int works around a bug in the HP C Compiler
6727 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6728 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6729 # This bug is HP SR number 8606223364.
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6731 $as_echo_n "checking size of long... " >&6; }
6732 if ${ac_cv_sizeof_long+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6736
6737 else
6738 if test "$ac_cv_type_long" = yes; then
6739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6741 as_fn_error 77 "cannot compute sizeof (long)
6742 See \`config.log' for more details" "$LINENO" 5; }
6743 else
6744 ac_cv_sizeof_long=0
6745 fi
6746 fi
6747
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6750 $as_echo "$ac_cv_sizeof_long" >&6; }
6751
6752
6753
6754 cat >>confdefs.h <<_ACEOF
6755 #define SIZEOF_LONG $ac_cv_sizeof_long
6756 _ACEOF
6757
6758
6759 if test "x${ac_cv_sizeof_long}" = "x8"; then
6760 want64=true
6761 fi
6762 fi
6763 if test x${want64} = xtrue; then
6764 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6765 else
6766 TARGET_OBS='$(ALL_TARGET_OBS)'
6767 fi
6768 fi
6769
6770
6771
6772
6773 # For other settings, only the main target counts.
6774 gdb_sim=
6775 gdb_osabi=
6776 build_gdbserver=
6777 targ=$target; . ${srcdir}/configure.tgt
6778
6779 # Fetch the default architecture and default target vector from BFD.
6780 targ=$target; . $srcdir/../bfd/config.bfd
6781
6782 # We only want the first architecture, so strip off the others if
6783 # there is more than one.
6784 targ_archs=`echo $targ_archs | sed 's/ .*//'`
6785
6786 if test "x$targ_archs" != x; then
6787
6788 cat >>confdefs.h <<_ACEOF
6789 #define DEFAULT_BFD_ARCH $targ_archs
6790 _ACEOF
6791
6792 fi
6793 if test "x$targ_defvec" != x; then
6794
6795 cat >>confdefs.h <<_ACEOF
6796 #define DEFAULT_BFD_VEC $targ_defvec
6797 _ACEOF
6798
6799 fi
6800
6801 # Enable MI.
6802 # Check whether --enable-gdbmi was given.
6803 if test "${enable_gdbmi+set}" = set; then :
6804 enableval=$enable_gdbmi; case $enableval in
6805 yes | no)
6806 ;;
6807 *)
6808 as_fn_error $? "bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6809 esac
6810 else
6811 enable_gdbmi=yes
6812 fi
6813
6814 if test x"$enable_gdbmi" = xyes; then
6815 if test -d $srcdir/mi; then
6816 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6817 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6818 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6819 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6820 fi
6821 fi
6822
6823 # Enable TUI.
6824 # Check whether --enable-tui was given.
6825 if test "${enable_tui+set}" = set; then :
6826 enableval=$enable_tui; case $enableval in
6827 yes | no | auto)
6828 ;;
6829 *)
6830 as_fn_error $? "bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6831 esac
6832 else
6833 enable_tui=auto
6834 fi
6835
6836
6837 # Enable gdbtk.
6838 # Check whether --enable-gdbtk was given.
6839 if test "${enable_gdbtk+set}" = set; then :
6840 enableval=$enable_gdbtk; case $enableval in
6841 yes | no)
6842 ;;
6843 *)
6844 as_fn_error $? "bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6845 esac
6846 else
6847 if test -d $srcdir/gdbtk; then
6848 enable_gdbtk=yes
6849 else
6850 enable_gdbtk=no
6851 fi
6852 fi
6853
6854 # We unconditionally disable gdbtk tests on selected platforms.
6855 case $host_os in
6856 go32* | windows*)
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6858 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6859 enable_gdbtk=no ;;
6860 esac
6861
6862 # Libunwind support for ia64.
6863
6864
6865 # Check whether --with-libunwind-ia64 was given.
6866 if test "${with_libunwind_ia64+set}" = set; then :
6867 withval=$with_libunwind_ia64;
6868 else
6869 with_libunwind_ia64=auto
6870 fi
6871
6872
6873 # Backward compatibility option.
6874 if test "${with_libunwind+set}" = set; then
6875 if test x"$with_libunwind_ia64" != xauto; then
6876 as_fn_error $? "option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6879 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6880 with_libunwind_ia64="$with_libunwind"
6881 fi
6882
6883 case "$with_libunwind_ia64" in
6884 yes | no)
6885 ;;
6886 auto)
6887 for ac_header in libunwind-ia64.h
6888 do :
6889 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6890 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6891 cat >>confdefs.h <<_ACEOF
6892 #define HAVE_LIBUNWIND_IA64_H 1
6893 _ACEOF
6894
6895 fi
6896
6897 done
6898
6899 with_libunwind_ia64=$ac_cv_header_libunwind_ia64_h
6900 ;;
6901 *)
6902 as_fn_error $? "bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6903 ;;
6904 esac
6905
6906 if test x"$with_libunwind_ia64" = xyes; then
6907 for ac_header in libunwind-ia64.h
6908 do :
6909 ac_fn_c_check_header_mongrel "$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6910 if test "x$ac_cv_header_libunwind_ia64_h" = xyes; then :
6911 cat >>confdefs.h <<_ACEOF
6912 #define HAVE_LIBUNWIND_IA64_H 1
6913 _ACEOF
6914
6915 fi
6916
6917 done
6918
6919 if test x"$ac_cv_header_libunwind_ia64_h" != xyes; then
6920 as_fn_error $? "GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6921 fi
6922 CONFIG_OBS="$CONFIG_OBS ia64-libunwind-tdep.o"
6923 CONFIG_DEPS="$CONFIG_DEPS ia64-libunwind-tdep.o"
6924 CONFIG_SRCS="$CONFIG_SRCS ia64-libunwind-tdep.c"
6925 fi
6926
6927 opt_curses=no
6928
6929 # Check whether --with-curses was given.
6930 if test "${with_curses+set}" = set; then :
6931 withval=$with_curses; opt_curses=$withval
6932 fi
6933
6934
6935 prefer_curses=no
6936 if test "$opt_curses" = "yes"; then
6937 prefer_curses=yes
6938 fi
6939
6940 # Profiling support.
6941 # Check whether --enable-profiling was given.
6942 if test "${enable_profiling+set}" = set; then :
6943 enableval=$enable_profiling; case $enableval in
6944 yes | no)
6945 ;;
6946 *)
6947 as_fn_error $? "bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6948 esac
6949 else
6950 enable_profiling=no
6951 fi
6952
6953
6954 for ac_func in monstartup _mcleanup
6955 do :
6956 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6957 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6958 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6959 cat >>confdefs.h <<_ACEOF
6960 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6961 _ACEOF
6962
6963 fi
6964 done
6965
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6967 $as_echo_n "checking for _etext... " >&6; }
6968 if ${ac_cv_var__etext+:} false; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972 /* end confdefs.h. */
6973 #include <stdlib.h>
6974 extern char _etext;
6975
6976 int
6977 main ()
6978 {
6979 free (&_etext);
6980 ;
6981 return 0;
6982 }
6983 _ACEOF
6984 if ac_fn_c_try_link "$LINENO"; then :
6985 ac_cv_var__etext=yes
6986 else
6987 ac_cv_var__etext=no
6988 fi
6989 rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6993 $as_echo "$ac_cv_var__etext" >&6; }
6994 if test $ac_cv_var__etext = yes; then
6995
6996 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6997
6998 fi
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7000 $as_echo_n "checking for etext... " >&6; }
7001 if ${ac_cv_var_etext+:} false; then :
7002 $as_echo_n "(cached) " >&6
7003 else
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006 #include <stdlib.h>
7007 extern char etext;
7008
7009 int
7010 main ()
7011 {
7012 free (&etext);
7013 ;
7014 return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_link "$LINENO"; then :
7018 ac_cv_var_etext=yes
7019 else
7020 ac_cv_var_etext=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext \
7023 conftest$ac_exeext conftest.$ac_ext
7024 fi
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7026 $as_echo "$ac_cv_var_etext" >&6; }
7027 if test $ac_cv_var_etext = yes; then
7028
7029 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7030
7031 fi
7032 if test "$enable_profiling" = yes ; then
7033 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
7034 as_fn_error $? "--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7035 fi
7036 PROFILE_CFLAGS=-pg
7037 OLD_CFLAGS="$CFLAGS"
7038 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
7039
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7041 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7042 if ${ac_cv_cc_supports_pg+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7047
7048 int
7049 main ()
7050 {
7051 int x;
7052 ;
7053 return 0;
7054 }
7055 _ACEOF
7056 if ac_fn_c_try_compile "$LINENO"; then :
7057 ac_cv_cc_supports_pg=yes
7058 else
7059 ac_cv_cc_supports_pg=no
7060 fi
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7064 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7065
7066 if test $ac_cv_cc_supports_pg = no; then
7067 as_fn_error $? "--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7068 fi
7069
7070 CFLAGS="$OLD_CFLAGS"
7071 fi
7072
7073 CODESIGN_CERT=
7074 # Check whether --enable-codesign was given.
7075 if test "${enable_codesign+set}" = set; then :
7076 enableval=$enable_codesign; CODESIGN_CERT=$enableval
7077 fi
7078
7079
7080
7081
7082
7083 # Check whether --with-pkgversion was given.
7084 if test "${with_pkgversion+set}" = set; then :
7085 withval=$with_pkgversion; case "$withval" in
7086 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
7087 no) PKGVERSION= ;;
7088 *) PKGVERSION="($withval) " ;;
7089 esac
7090 else
7091 PKGVERSION="(GDB) "
7092
7093 fi
7094
7095
7096
7097
7098
7099 # Check whether --with-bugurl was given.
7100 if test "${with_bugurl+set}" = set; then :
7101 withval=$with_bugurl; case "$withval" in
7102 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
7103 no) BUGURL=
7104 ;;
7105 *) BUGURL="$withval"
7106 ;;
7107 esac
7108 else
7109 BUGURL="http://www.gnu.org/software/gdb/bugs/"
7110
7111 fi
7112
7113 case ${BUGURL} in
7114 "")
7115 REPORT_BUGS_TO=
7116 REPORT_BUGS_TEXI=
7117 ;;
7118 *)
7119 REPORT_BUGS_TO="<$BUGURL>"
7120 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
7121 ;;
7122 esac;
7123
7124
7125
7126
7127 cat >>confdefs.h <<_ACEOF
7128 #define PKGVERSION "$PKGVERSION"
7129 _ACEOF
7130
7131
7132 cat >>confdefs.h <<_ACEOF
7133 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7134 _ACEOF
7135
7136
7137 # --------------------- #
7138 # Checks for programs. #
7139 # --------------------- #
7140
7141 for ac_prog in gawk mawk nawk awk
7142 do
7143 # Extract the first word of "$ac_prog", so it can be a program name with args.
7144 set dummy $ac_prog; ac_word=$2
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146 $as_echo_n "checking for $ac_word... " >&6; }
7147 if ${ac_cv_prog_AWK+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 if test -n "$AWK"; then
7151 ac_cv_prog_AWK="$AWK" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156 IFS=$as_save_IFS
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7160 ac_cv_prog_AWK="$ac_prog"
7161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7162 break 2
7163 fi
7164 done
7165 done
7166 IFS=$as_save_IFS
7167
7168 fi
7169 fi
7170 AWK=$ac_cv_prog_AWK
7171 if test -n "$AWK"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7173 $as_echo "$AWK" >&6; }
7174 else
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7176 $as_echo "no" >&6; }
7177 fi
7178
7179
7180 test -n "$AWK" && break
7181 done
7182
7183 # Find a good install program. We prefer a C program (faster),
7184 # so one script is as good as another. But avoid the broken or
7185 # incompatible versions:
7186 # SysV /etc/install, /usr/sbin/install
7187 # SunOS /usr/etc/install
7188 # IRIX /sbin/install
7189 # AIX /bin/install
7190 # AmigaOS /C/install, which installs bootblocks on floppy discs
7191 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7192 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7193 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7194 # OS/2's system install, which has a completely different semantic
7195 # ./install, which can be erroneously created by make from ./install.sh.
7196 # Reject install programs that cannot install multiple files.
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7198 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7199 if test -z "$INSTALL"; then
7200 if ${ac_cv_path_install+:} false; then :
7201 $as_echo_n "(cached) " >&6
7202 else
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 # Account for people who put trailing slashes in PATH elements.
7209 case $as_dir/ in #((
7210 ./ | .// | /[cC]/* | \
7211 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7212 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
7213 /usr/ucb/* ) ;;
7214 *)
7215 # OSF1 and SCO ODT 3.0 have their own names for install.
7216 # Don't use installbsd from OSF since it installs stuff as root
7217 # by default.
7218 for ac_prog in ginstall scoinst install; do
7219 for ac_exec_ext in '' $ac_executable_extensions; do
7220 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7221 if test $ac_prog = install &&
7222 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7223 # AIX install. It has an incompatible calling convention.
7224 :
7225 elif test $ac_prog = install &&
7226 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7227 # program-specific install script used by HP pwplus--don't use.
7228 :
7229 else
7230 rm -rf conftest.one conftest.two conftest.dir
7231 echo one > conftest.one
7232 echo two > conftest.two
7233 mkdir conftest.dir
7234 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7235 test -s conftest.one && test -s conftest.two &&
7236 test -s conftest.dir/conftest.one &&
7237 test -s conftest.dir/conftest.two
7238 then
7239 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7240 break 3
7241 fi
7242 fi
7243 fi
7244 done
7245 done
7246 ;;
7247 esac
7248
7249 done
7250 IFS=$as_save_IFS
7251
7252 rm -rf conftest.one conftest.two conftest.dir
7253
7254 fi
7255 if test "${ac_cv_path_install+set}" = set; then
7256 INSTALL=$ac_cv_path_install
7257 else
7258 # As a last resort, use the slow shell script. Don't cache a
7259 # value for INSTALL within a source directory, because that will
7260 # break other packages using the cache if that directory is
7261 # removed, or if the value is a relative name.
7262 INSTALL=$ac_install_sh
7263 fi
7264 fi
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7266 $as_echo "$INSTALL" >&6; }
7267
7268 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7269 # It thinks the first close brace ends the variable substitution.
7270 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7271
7272 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7273
7274 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7275
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7277 $as_echo_n "checking whether ln -s works... " >&6; }
7278 LN_S=$as_ln_s
7279 if test "$LN_S" = "ln -s"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7281 $as_echo "yes" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7284 $as_echo "no, using $LN_S" >&6; }
7285 fi
7286
7287 if test -n "$ac_tool_prefix"; then
7288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_RANLIB+:} false; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 if test -n "$RANLIB"; then
7296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 break 2
7308 fi
7309 done
7310 done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 RANLIB=$ac_cv_prog_RANLIB
7316 if test -n "$RANLIB"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7318 $as_echo "$RANLIB" >&6; }
7319 else
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323
7324
7325 fi
7326 if test -z "$ac_cv_prog_RANLIB"; then
7327 ac_ct_RANLIB=$RANLIB
7328 # Extract the first word of "ranlib", so it can be a program name with args.
7329 set dummy ranlib; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 if test -n "$ac_ct_RANLIB"; then
7336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_prog_ac_ct_RANLIB="ranlib"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7348 fi
7349 done
7350 done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7356 if test -n "$ac_ct_RANLIB"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7358 $as_echo "$ac_ct_RANLIB" >&6; }
7359 else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364 if test "x$ac_ct_RANLIB" = x; then
7365 RANLIB=":"
7366 else
7367 case $cross_compiling:$ac_tool_warned in
7368 yes:)
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7372 esac
7373 RANLIB=$ac_ct_RANLIB
7374 fi
7375 else
7376 RANLIB="$ac_cv_prog_RANLIB"
7377 fi
7378
7379 for ac_prog in 'bison -y' byacc
7380 do
7381 # Extract the first word of "$ac_prog", so it can be a program name with args.
7382 set dummy $ac_prog; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_YACC+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 if test -n "$YACC"; then
7389 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_YACC="$ac_prog"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 YACC=$ac_cv_prog_YACC
7409 if test -n "$YACC"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7411 $as_echo "$YACC" >&6; }
7412 else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417
7418 test -n "$YACC" && break
7419 done
7420 test -n "$YACC" || YACC="yacc"
7421
7422
7423 if test -n "$ac_tool_prefix"; then
7424 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7425 set dummy ${ac_tool_prefix}ar; ac_word=$2
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7427 $as_echo_n "checking for $ac_word... " >&6; }
7428 if ${ac_cv_prog_AR+:} false; then :
7429 $as_echo_n "(cached) " >&6
7430 else
7431 if test -n "$AR"; then
7432 ac_cv_prog_AR="$AR" # Let the user override the test.
7433 else
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 for as_dir in $PATH
7436 do
7437 IFS=$as_save_IFS
7438 test -z "$as_dir" && as_dir=.
7439 for ac_exec_ext in '' $ac_executable_extensions; do
7440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7441 ac_cv_prog_AR="${ac_tool_prefix}ar"
7442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 break 2
7444 fi
7445 done
7446 done
7447 IFS=$as_save_IFS
7448
7449 fi
7450 fi
7451 AR=$ac_cv_prog_AR
7452 if test -n "$AR"; then
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7454 $as_echo "$AR" >&6; }
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459
7460
7461 fi
7462 if test -z "$ac_cv_prog_AR"; then
7463 ac_ct_AR=$AR
7464 # Extract the first word of "ar", so it can be a program name with args.
7465 set dummy ar; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 if test -n "$ac_ct_AR"; then
7472 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7481 ac_cv_prog_ac_ct_AR="ar"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7492 if test -n "$ac_ct_AR"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7494 $as_echo "$ac_ct_AR" >&6; }
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500 if test "x$ac_ct_AR" = x; then
7501 AR=""
7502 else
7503 case $cross_compiling:$ac_tool_warned in
7504 yes:)
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7507 ac_tool_warned=yes ;;
7508 esac
7509 AR=$ac_ct_AR
7510 fi
7511 else
7512 AR="$ac_cv_prog_AR"
7513 fi
7514
7515 if test -n "$ac_tool_prefix"; then
7516 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7517 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7519 $as_echo_n "checking for $ac_word... " >&6; }
7520 if ${ac_cv_prog_DLLTOOL+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7523 if test -n "$DLLTOOL"; then
7524 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7525 else
7526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7527 for as_dir in $PATH
7528 do
7529 IFS=$as_save_IFS
7530 test -z "$as_dir" && as_dir=.
7531 for ac_exec_ext in '' $ac_executable_extensions; do
7532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7533 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 break 2
7536 fi
7537 done
7538 done
7539 IFS=$as_save_IFS
7540
7541 fi
7542 fi
7543 DLLTOOL=$ac_cv_prog_DLLTOOL
7544 if test -n "$DLLTOOL"; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7546 $as_echo "$DLLTOOL" >&6; }
7547 else
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7549 $as_echo "no" >&6; }
7550 fi
7551
7552
7553 fi
7554 if test -z "$ac_cv_prog_DLLTOOL"; then
7555 ac_ct_DLLTOOL=$DLLTOOL
7556 # Extract the first word of "dlltool", so it can be a program name with args.
7557 set dummy dlltool; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 if test -n "$ac_ct_DLLTOOL"; then
7564 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7573 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577 done
7578 done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7584 if test -n "$ac_ct_DLLTOOL"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7586 $as_echo "$ac_ct_DLLTOOL" >&6; }
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592 if test "x$ac_ct_DLLTOOL" = x; then
7593 DLLTOOL=""
7594 else
7595 case $cross_compiling:$ac_tool_warned in
7596 yes:)
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7599 ac_tool_warned=yes ;;
7600 esac
7601 DLLTOOL=$ac_ct_DLLTOOL
7602 fi
7603 else
7604 DLLTOOL="$ac_cv_prog_DLLTOOL"
7605 fi
7606
7607 if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}windres; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_prog_WINDRES+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 if test -n "$WINDRES"; then
7616 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7617 else
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 for as_dir in $PATH
7620 do
7621 IFS=$as_save_IFS
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629 done
7630 done
7631 IFS=$as_save_IFS
7632
7633 fi
7634 fi
7635 WINDRES=$ac_cv_prog_WINDRES
7636 if test -n "$WINDRES"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7638 $as_echo "$WINDRES" >&6; }
7639 else
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7642 fi
7643
7644
7645 fi
7646 if test -z "$ac_cv_prog_WINDRES"; then
7647 ac_ct_WINDRES=$WINDRES
7648 # Extract the first word of "windres", so it can be a program name with args.
7649 set dummy windres; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if test -n "$ac_ct_WINDRES"; then
7656 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7660 do
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_ac_ct_WINDRES="windres"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7668 fi
7669 done
7670 done
7671 IFS=$as_save_IFS
7672
7673 fi
7674 fi
7675 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7676 if test -n "$ac_ct_WINDRES"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7678 $as_echo "$ac_ct_WINDRES" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7682 fi
7683
7684 if test "x$ac_ct_WINDRES" = x; then
7685 WINDRES=""
7686 else
7687 case $cross_compiling:$ac_tool_warned in
7688 yes:)
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7691 ac_tool_warned=yes ;;
7692 esac
7693 WINDRES=$ac_ct_WINDRES
7694 fi
7695 else
7696 WINDRES="$ac_cv_prog_WINDRES"
7697 fi
7698
7699
7700 case $host_os in
7701 gnu*)
7702 # Needed for GNU Hurd hosts.
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}mig; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_MIG+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$MIG"; then
7712 ac_cv_prog_MIG="$MIG" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7716 do
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_MIG="${ac_tool_prefix}mig"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7724 fi
7725 done
7726 done
7727 IFS=$as_save_IFS
7728
7729 fi
7730 fi
7731 MIG=$ac_cv_prog_MIG
7732 if test -n "$MIG"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7734 $as_echo "$MIG" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7738 fi
7739
7740
7741 fi
7742 if test -z "$ac_cv_prog_MIG"; then
7743 ac_ct_MIG=$MIG
7744 # Extract the first word of "mig", so it can be a program name with args.
7745 set dummy mig; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_prog_ac_ct_MIG+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 if test -n "$ac_ct_MIG"; then
7752 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7756 do
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_ac_ct_MIG="mig"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7764 fi
7765 done
7766 done
7767 IFS=$as_save_IFS
7768
7769 fi
7770 fi
7771 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
7772 if test -n "$ac_ct_MIG"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7774 $as_echo "$ac_ct_MIG" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7778 fi
7779
7780 if test "x$ac_ct_MIG" = x; then
7781 MIG=""
7782 else
7783 case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789 MIG=$ac_ct_MIG
7790 fi
7791 else
7792 MIG="$ac_cv_prog_MIG"
7793 fi
7794
7795 if test x"$MIG" = x; then
7796 as_fn_error $? "MIG not found but required for $host hosts" "$LINENO" 5
7797 fi
7798 ;;
7799 esac
7800
7801 # ---------------------- #
7802 # Checks for libraries. #
7803 # ---------------------- #
7804
7805 # We might need to link with -lm; most simulators need it.
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7807 $as_echo_n "checking for main in -lm... " >&6; }
7808 if ${ac_cv_lib_m_main+:} false; then :
7809 $as_echo_n "(cached) " >&6
7810 else
7811 ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-lm $LIBS"
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815
7816
7817 int
7818 main ()
7819 {
7820 return main ();
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 if ac_fn_c_try_link "$LINENO"; then :
7826 ac_cv_lib_m_main=yes
7827 else
7828 ac_cv_lib_m_main=no
7829 fi
7830 rm -f core conftest.err conftest.$ac_objext \
7831 conftest$ac_exeext conftest.$ac_ext
7832 LIBS=$ac_check_lib_save_LIBS
7833 fi
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7835 $as_echo "$ac_cv_lib_m_main" >&6; }
7836 if test "x$ac_cv_lib_m_main" = xyes; then :
7837 cat >>confdefs.h <<_ACEOF
7838 #define HAVE_LIBM 1
7839 _ACEOF
7840
7841 LIBS="-lm $LIBS"
7842
7843 fi
7844
7845
7846 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7848 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7849 if ${ac_cv_search_gethostbyname+:} false; then :
7850 $as_echo_n "(cached) " >&6
7851 else
7852 ac_func_search_save_LIBS=$LIBS
7853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h. */
7855
7856 /* Override any GCC internal prototype to avoid an error.
7857 Use char because int might match the return type of a GCC
7858 builtin and then its argument prototype would still apply. */
7859 #ifdef __cplusplus
7860 extern "C"
7861 #endif
7862 char gethostbyname ();
7863 int
7864 main ()
7865 {
7866 return gethostbyname ();
7867 ;
7868 return 0;
7869 }
7870 _ACEOF
7871 for ac_lib in '' nsl; do
7872 if test -z "$ac_lib"; then
7873 ac_res="none required"
7874 else
7875 ac_res=-l$ac_lib
7876 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7877 fi
7878 if ac_fn_c_try_link "$LINENO"; then :
7879 ac_cv_search_gethostbyname=$ac_res
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext \
7882 conftest$ac_exeext
7883 if ${ac_cv_search_gethostbyname+:} false; then :
7884 break
7885 fi
7886 done
7887 if ${ac_cv_search_gethostbyname+:} false; then :
7888
7889 else
7890 ac_cv_search_gethostbyname=no
7891 fi
7892 rm conftest.$ac_ext
7893 LIBS=$ac_func_search_save_LIBS
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7896 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7897 ac_res=$ac_cv_search_gethostbyname
7898 if test "$ac_res" != no; then :
7899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7900
7901 fi
7902
7903
7904 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7906 $as_echo_n "checking for library containing socketpair... " >&6; }
7907 if ${ac_cv_search_socketpair+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 ac_func_search_save_LIBS=$LIBS
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913
7914 /* Override any GCC internal prototype to avoid an error.
7915 Use char because int might match the return type of a GCC
7916 builtin and then its argument prototype would still apply. */
7917 #ifdef __cplusplus
7918 extern "C"
7919 #endif
7920 char socketpair ();
7921 int
7922 main ()
7923 {
7924 return socketpair ();
7925 ;
7926 return 0;
7927 }
7928 _ACEOF
7929 for ac_lib in '' socket; do
7930 if test -z "$ac_lib"; then
7931 ac_res="none required"
7932 else
7933 ac_res=-l$ac_lib
7934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7935 fi
7936 if ac_fn_c_try_link "$LINENO"; then :
7937 ac_cv_search_socketpair=$ac_res
7938 fi
7939 rm -f core conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext
7941 if ${ac_cv_search_socketpair+:} false; then :
7942 break
7943 fi
7944 done
7945 if ${ac_cv_search_socketpair+:} false; then :
7946
7947 else
7948 ac_cv_search_socketpair=no
7949 fi
7950 rm conftest.$ac_ext
7951 LIBS=$ac_func_search_save_LIBS
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7954 $as_echo "$ac_cv_search_socketpair" >&6; }
7955 ac_res=$ac_cv_search_socketpair
7956 if test "$ac_res" != no; then :
7957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7958
7959 fi
7960
7961
7962 # Link in zlib if we can. This allows us to read compressed debug sections.
7963
7964 # Use the system's zlib library.
7965 zlibdir="-L\$(top_builddir)/../zlib"
7966 zlibinc="-I\$(top_srcdir)/../zlib"
7967
7968 # Check whether --with-system-zlib was given.
7969 if test "${with_system_zlib+set}" = set; then :
7970 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7971 zlibdir=
7972 zlibinc=
7973 fi
7974
7975 fi
7976
7977
7978
7979
7980
7981 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7982 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7984 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7985 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
7986 $as_echo_n "(cached) " >&6
7987 else
7988 ac_func_search_save_LIBS=$LIBS
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991
7992 /* Override any GCC internal prototype to avoid an error.
7993 Use char because int might match the return type of a GCC
7994 builtin and then its argument prototype would still apply. */
7995 #ifdef __cplusplus
7996 extern "C"
7997 #endif
7998 char kinfo_getvmmap ();
7999 int
8000 main ()
8001 {
8002 return kinfo_getvmmap ();
8003 ;
8004 return 0;
8005 }
8006 _ACEOF
8007 for ac_lib in '' util util-freebsd; do
8008 if test -z "$ac_lib"; then
8009 ac_res="none required"
8010 else
8011 ac_res=-l$ac_lib
8012 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8013 fi
8014 if ac_fn_c_try_link "$LINENO"; then :
8015 ac_cv_search_kinfo_getvmmap=$ac_res
8016 fi
8017 rm -f core conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext
8019 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
8020 break
8021 fi
8022 done
8023 if ${ac_cv_search_kinfo_getvmmap+:} false; then :
8024
8025 else
8026 ac_cv_search_kinfo_getvmmap=no
8027 fi
8028 rm conftest.$ac_ext
8029 LIBS=$ac_func_search_save_LIBS
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8032 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8033 ac_res=$ac_cv_search_kinfo_getvmmap
8034 if test "$ac_res" != no; then :
8035 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8036
8037 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8038
8039 fi
8040
8041
8042 # fbsd-nat.c can also use kinfo_getfile.
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8044 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8045 if ${ac_cv_search_kinfo_getfile+:} false; then :
8046 $as_echo_n "(cached) " >&6
8047 else
8048 ac_func_search_save_LIBS=$LIBS
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8051
8052 /* Override any GCC internal prototype to avoid an error.
8053 Use char because int might match the return type of a GCC
8054 builtin and then its argument prototype would still apply. */
8055 #ifdef __cplusplus
8056 extern "C"
8057 #endif
8058 char kinfo_getfile ();
8059 int
8060 main ()
8061 {
8062 return kinfo_getfile ();
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 for ac_lib in '' util util-freebsd; do
8068 if test -z "$ac_lib"; then
8069 ac_res="none required"
8070 else
8071 ac_res=-l$ac_lib
8072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8073 fi
8074 if ac_fn_c_try_link "$LINENO"; then :
8075 ac_cv_search_kinfo_getfile=$ac_res
8076 fi
8077 rm -f core conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext
8079 if ${ac_cv_search_kinfo_getfile+:} false; then :
8080 break
8081 fi
8082 done
8083 if ${ac_cv_search_kinfo_getfile+:} false; then :
8084
8085 else
8086 ac_cv_search_kinfo_getfile=no
8087 fi
8088 rm conftest.$ac_ext
8089 LIBS=$ac_func_search_save_LIBS
8090 fi
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8092 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8093 ac_res=$ac_cv_search_kinfo_getfile
8094 if test "$ac_res" != no; then :
8095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8096
8097 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8098
8099 fi
8100
8101
8102
8103 if test "X$prefix" = "XNONE"; then
8104 acl_final_prefix="$ac_default_prefix"
8105 else
8106 acl_final_prefix="$prefix"
8107 fi
8108 if test "X$exec_prefix" = "XNONE"; then
8109 acl_final_exec_prefix='${prefix}'
8110 else
8111 acl_final_exec_prefix="$exec_prefix"
8112 fi
8113 acl_save_prefix="$prefix"
8114 prefix="$acl_final_prefix"
8115 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8116 prefix="$acl_save_prefix"
8117
8118
8119 # Check whether --with-gnu-ld was given.
8120 if test "${with_gnu_ld+set}" = set; then :
8121 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8122 else
8123 with_gnu_ld=no
8124 fi
8125
8126 # Prepare PATH_SEPARATOR.
8127 # The user is always right.
8128 if test "${PATH_SEPARATOR+set}" != set; then
8129 echo "#! /bin/sh" >conf$$.sh
8130 echo "exit 0" >>conf$$.sh
8131 chmod +x conf$$.sh
8132 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8133 PATH_SEPARATOR=';'
8134 else
8135 PATH_SEPARATOR=:
8136 fi
8137 rm -f conf$$.sh
8138 fi
8139 ac_prog=ld
8140 if test "$GCC" = yes; then
8141 # Check if gcc -print-prog-name=ld gives a path.
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8143 $as_echo_n "checking for ld used by GCC... " >&6; }
8144 case $host in
8145 *-*-mingw*)
8146 # gcc leaves a trailing carriage return which upsets mingw
8147 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8148 *)
8149 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8150 esac
8151 case $ac_prog in
8152 # Accept absolute paths.
8153 [\\/]* | [A-Za-z]:[\\/]*)
8154 re_direlt='/[^/][^/]*/\.\./'
8155 # Canonicalize the path of ld
8156 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8157 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8158 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8159 done
8160 test -z "$LD" && LD="$ac_prog"
8161 ;;
8162 "")
8163 # If it fails, then pretend we aren't using GCC.
8164 ac_prog=ld
8165 ;;
8166 *)
8167 # If it is relative, then search for the first ld in PATH.
8168 with_gnu_ld=unknown
8169 ;;
8170 esac
8171 elif test "$with_gnu_ld" = yes; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8173 $as_echo_n "checking for GNU ld... " >&6; }
8174 else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8176 $as_echo_n "checking for non-GNU ld... " >&6; }
8177 fi
8178 if ${acl_cv_path_LD+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180 else
8181 if test -z "$LD"; then
8182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8183 for ac_dir in $PATH; do
8184 test -z "$ac_dir" && ac_dir=.
8185 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8186 acl_cv_path_LD="$ac_dir/$ac_prog"
8187 # Check to see if the program is GNU ld. I'd rather use --version,
8188 # but apparently some GNU ld's only accept -v.
8189 # Break only if it was the GNU/non-GNU ld that we prefer.
8190 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
8191 test "$with_gnu_ld" != no && break
8192 else
8193 test "$with_gnu_ld" != yes && break
8194 fi
8195 fi
8196 done
8197 IFS="$ac_save_ifs"
8198 else
8199 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8200 fi
8201 fi
8202
8203 LD="$acl_cv_path_LD"
8204 if test -n "$LD"; then
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8206 $as_echo "$LD" >&6; }
8207 else
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }
8210 fi
8211 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8213 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8214 if ${acl_cv_prog_gnu_ld+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8218 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
8219 acl_cv_prog_gnu_ld=yes
8220 else
8221 acl_cv_prog_gnu_ld=no
8222 fi
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8225 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8226 with_gnu_ld=$acl_cv_prog_gnu_ld
8227
8228
8229
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8231 $as_echo_n "checking for shared library run path origin... " >&6; }
8232 if ${acl_cv_rpath+:} false; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235
8236 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8237 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8238 . ./conftest.sh
8239 rm -f ./conftest.sh
8240 acl_cv_rpath=done
8241
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8244 $as_echo "$acl_cv_rpath" >&6; }
8245 wl="$acl_cv_wl"
8246 libext="$acl_cv_libext"
8247 shlibext="$acl_cv_shlibext"
8248 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8249 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8250 hardcode_direct="$acl_cv_hardcode_direct"
8251 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8252 # Check whether --enable-rpath was given.
8253 if test "${enable_rpath+set}" = set; then :
8254 enableval=$enable_rpath; :
8255 else
8256 enable_rpath=yes
8257 fi
8258
8259
8260
8261
8262
8263
8264
8265
8266 use_additional=yes
8267
8268 acl_save_prefix="$prefix"
8269 prefix="$acl_final_prefix"
8270 acl_save_exec_prefix="$exec_prefix"
8271 exec_prefix="$acl_final_exec_prefix"
8272
8273 eval additional_includedir=\"$includedir\"
8274 eval additional_libdir=\"$libdir\"
8275
8276 exec_prefix="$acl_save_exec_prefix"
8277 prefix="$acl_save_prefix"
8278
8279
8280 # Check whether --with-libiconv-prefix was given.
8281 if test "${with_libiconv_prefix+set}" = set; then :
8282 withval=$with_libiconv_prefix;
8283 if test "X$withval" = "Xno"; then
8284 use_additional=no
8285 else
8286 if test "X$withval" = "X"; then
8287
8288 acl_save_prefix="$prefix"
8289 prefix="$acl_final_prefix"
8290 acl_save_exec_prefix="$exec_prefix"
8291 exec_prefix="$acl_final_exec_prefix"
8292
8293 eval additional_includedir=\"$includedir\"
8294 eval additional_libdir=\"$libdir\"
8295
8296 exec_prefix="$acl_save_exec_prefix"
8297 prefix="$acl_save_prefix"
8298
8299 else
8300 additional_includedir="$withval/include"
8301 additional_libdir="$withval/lib"
8302 fi
8303 fi
8304
8305 fi
8306
8307 LIBICONV=
8308 LTLIBICONV=
8309 INCICONV=
8310 rpathdirs=
8311 ltrpathdirs=
8312 names_already_handled=
8313 names_next_round='iconv '
8314 while test -n "$names_next_round"; do
8315 names_this_round="$names_next_round"
8316 names_next_round=
8317 for name in $names_this_round; do
8318 already_handled=
8319 for n in $names_already_handled; do
8320 if test "$n" = "$name"; then
8321 already_handled=yes
8322 break
8323 fi
8324 done
8325 if test -z "$already_handled"; then
8326 names_already_handled="$names_already_handled $name"
8327 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8328 eval value=\"\$HAVE_LIB$uppername\"
8329 if test -n "$value"; then
8330 if test "$value" = yes; then
8331 eval value=\"\$LIB$uppername\"
8332 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8333 eval value=\"\$LTLIB$uppername\"
8334 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8335 else
8336 :
8337 fi
8338 else
8339 found_dir=
8340 found_la=
8341 found_so=
8342 found_a=
8343 if test $use_additional = yes; then
8344 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8345 found_dir="$additional_libdir"
8346 found_so="$additional_libdir/lib$name.$shlibext"
8347 if test -f "$additional_libdir/lib$name.la"; then
8348 found_la="$additional_libdir/lib$name.la"
8349 fi
8350 else
8351 if test -f "$additional_libdir/lib$name.$libext"; then
8352 found_dir="$additional_libdir"
8353 found_a="$additional_libdir/lib$name.$libext"
8354 if test -f "$additional_libdir/lib$name.la"; then
8355 found_la="$additional_libdir/lib$name.la"
8356 fi
8357 fi
8358 fi
8359 fi
8360 if test "X$found_dir" = "X"; then
8361 for x in $LDFLAGS $LTLIBICONV; do
8362
8363 acl_save_prefix="$prefix"
8364 prefix="$acl_final_prefix"
8365 acl_save_exec_prefix="$exec_prefix"
8366 exec_prefix="$acl_final_exec_prefix"
8367 eval x=\"$x\"
8368 exec_prefix="$acl_save_exec_prefix"
8369 prefix="$acl_save_prefix"
8370
8371 case "$x" in
8372 -L*)
8373 dir=`echo "X$x" | sed -e 's/^X-L//'`
8374 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8375 found_dir="$dir"
8376 found_so="$dir/lib$name.$shlibext"
8377 if test -f "$dir/lib$name.la"; then
8378 found_la="$dir/lib$name.la"
8379 fi
8380 else
8381 if test -f "$dir/lib$name.$libext"; then
8382 found_dir="$dir"
8383 found_a="$dir/lib$name.$libext"
8384 if test -f "$dir/lib$name.la"; then
8385 found_la="$dir/lib$name.la"
8386 fi
8387 fi
8388 fi
8389 ;;
8390 esac
8391 if test "X$found_dir" != "X"; then
8392 break
8393 fi
8394 done
8395 fi
8396 if test "X$found_dir" != "X"; then
8397 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8398 if test "X$found_so" != "X"; then
8399 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8400 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8401 else
8402 haveit=
8403 for x in $ltrpathdirs; do
8404 if test "X$x" = "X$found_dir"; then
8405 haveit=yes
8406 break
8407 fi
8408 done
8409 if test -z "$haveit"; then
8410 ltrpathdirs="$ltrpathdirs $found_dir"
8411 fi
8412 if test "$hardcode_direct" = yes; then
8413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8414 else
8415 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8416 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8417 haveit=
8418 for x in $rpathdirs; do
8419 if test "X$x" = "X$found_dir"; then
8420 haveit=yes
8421 break
8422 fi
8423 done
8424 if test -z "$haveit"; then
8425 rpathdirs="$rpathdirs $found_dir"
8426 fi
8427 else
8428 haveit=
8429 for x in $LDFLAGS $LIBICONV; do
8430
8431 acl_save_prefix="$prefix"
8432 prefix="$acl_final_prefix"
8433 acl_save_exec_prefix="$exec_prefix"
8434 exec_prefix="$acl_final_exec_prefix"
8435 eval x=\"$x\"
8436 exec_prefix="$acl_save_exec_prefix"
8437 prefix="$acl_save_prefix"
8438
8439 if test "X$x" = "X-L$found_dir"; then
8440 haveit=yes
8441 break
8442 fi
8443 done
8444 if test -z "$haveit"; then
8445 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8446 fi
8447 if test "$hardcode_minus_L" != no; then
8448 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8449 else
8450 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8451 fi
8452 fi
8453 fi
8454 fi
8455 else
8456 if test "X$found_a" != "X"; then
8457 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8458 else
8459 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8460 fi
8461 fi
8462 additional_includedir=
8463 case "$found_dir" in
8464 */lib | */lib/)
8465 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8466 additional_includedir="$basedir/include"
8467 ;;
8468 esac
8469 if test "X$additional_includedir" != "X"; then
8470 if test "X$additional_includedir" != "X/usr/include"; then
8471 haveit=
8472 if test "X$additional_includedir" = "X/usr/local/include"; then
8473 if test -n "$GCC"; then
8474 case $host_os in
8475 linux*) haveit=yes;;
8476 esac
8477 fi
8478 fi
8479 if test -z "$haveit"; then
8480 for x in $CPPFLAGS $INCICONV; do
8481
8482 acl_save_prefix="$prefix"
8483 prefix="$acl_final_prefix"
8484 acl_save_exec_prefix="$exec_prefix"
8485 exec_prefix="$acl_final_exec_prefix"
8486 eval x=\"$x\"
8487 exec_prefix="$acl_save_exec_prefix"
8488 prefix="$acl_save_prefix"
8489
8490 if test "X$x" = "X-I$additional_includedir"; then
8491 haveit=yes
8492 break
8493 fi
8494 done
8495 if test -z "$haveit"; then
8496 if test -d "$additional_includedir"; then
8497 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8498 fi
8499 fi
8500 fi
8501 fi
8502 fi
8503 if test -n "$found_la"; then
8504 save_libdir="$libdir"
8505 case "$found_la" in
8506 */* | *\\*) . "$found_la" ;;
8507 *) . "./$found_la" ;;
8508 esac
8509 libdir="$save_libdir"
8510 for dep in $dependency_libs; do
8511 case "$dep" in
8512 -L*)
8513 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8514 if test "X$additional_libdir" != "X/usr/lib"; then
8515 haveit=
8516 if test "X$additional_libdir" = "X/usr/local/lib"; then
8517 if test -n "$GCC"; then
8518 case $host_os in
8519 linux*) haveit=yes;;
8520 esac
8521 fi
8522 fi
8523 if test -z "$haveit"; then
8524 haveit=
8525 for x in $LDFLAGS $LIBICONV; do
8526
8527 acl_save_prefix="$prefix"
8528 prefix="$acl_final_prefix"
8529 acl_save_exec_prefix="$exec_prefix"
8530 exec_prefix="$acl_final_exec_prefix"
8531 eval x=\"$x\"
8532 exec_prefix="$acl_save_exec_prefix"
8533 prefix="$acl_save_prefix"
8534
8535 if test "X$x" = "X-L$additional_libdir"; then
8536 haveit=yes
8537 break
8538 fi
8539 done
8540 if test -z "$haveit"; then
8541 if test -d "$additional_libdir"; then
8542 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8543 fi
8544 fi
8545 haveit=
8546 for x in $LDFLAGS $LTLIBICONV; do
8547
8548 acl_save_prefix="$prefix"
8549 prefix="$acl_final_prefix"
8550 acl_save_exec_prefix="$exec_prefix"
8551 exec_prefix="$acl_final_exec_prefix"
8552 eval x=\"$x\"
8553 exec_prefix="$acl_save_exec_prefix"
8554 prefix="$acl_save_prefix"
8555
8556 if test "X$x" = "X-L$additional_libdir"; then
8557 haveit=yes
8558 break
8559 fi
8560 done
8561 if test -z "$haveit"; then
8562 if test -d "$additional_libdir"; then
8563 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8564 fi
8565 fi
8566 fi
8567 fi
8568 ;;
8569 -R*)
8570 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8571 if test "$enable_rpath" != no; then
8572 haveit=
8573 for x in $rpathdirs; do
8574 if test "X$x" = "X$dir"; then
8575 haveit=yes
8576 break
8577 fi
8578 done
8579 if test -z "$haveit"; then
8580 rpathdirs="$rpathdirs $dir"
8581 fi
8582 haveit=
8583 for x in $ltrpathdirs; do
8584 if test "X$x" = "X$dir"; then
8585 haveit=yes
8586 break
8587 fi
8588 done
8589 if test -z "$haveit"; then
8590 ltrpathdirs="$ltrpathdirs $dir"
8591 fi
8592 fi
8593 ;;
8594 -l*)
8595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8596 ;;
8597 *.la)
8598 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8599 ;;
8600 *)
8601 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8602 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8603 ;;
8604 esac
8605 done
8606 fi
8607 else
8608 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8609 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8610 fi
8611 fi
8612 fi
8613 done
8614 done
8615 if test "X$rpathdirs" != "X"; then
8616 if test -n "$hardcode_libdir_separator"; then
8617 alldirs=
8618 for found_dir in $rpathdirs; do
8619 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8620 done
8621 acl_save_libdir="$libdir"
8622 libdir="$alldirs"
8623 eval flag=\"$hardcode_libdir_flag_spec\"
8624 libdir="$acl_save_libdir"
8625 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8626 else
8627 for found_dir in $rpathdirs; do
8628 acl_save_libdir="$libdir"
8629 libdir="$found_dir"
8630 eval flag=\"$hardcode_libdir_flag_spec\"
8631 libdir="$acl_save_libdir"
8632 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8633 done
8634 fi
8635 fi
8636 if test "X$ltrpathdirs" != "X"; then
8637 for found_dir in $ltrpathdirs; do
8638 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8639 done
8640 fi
8641
8642
8643
8644
8645
8646
8647
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8649 $as_echo_n "checking for iconv... " >&6; }
8650 if ${am_cv_func_iconv+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653
8654 am_cv_func_iconv="no, consider installing GNU libiconv"
8655 am_cv_lib_iconv=no
8656 am_save_CPPFLAGS="$CPPFLAGS"
8657 CPPFLAGS="$CPPFLAGS $INCICONV"
8658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8659 /* end confdefs.h. */
8660 #include <stdlib.h>
8661 #include <iconv.h>
8662 int
8663 main ()
8664 {
8665 iconv_t cd = iconv_open("","");
8666 iconv(cd,NULL,NULL,NULL,NULL);
8667 iconv_close(cd);
8668 ;
8669 return 0;
8670 }
8671 _ACEOF
8672 if ac_fn_c_try_link "$LINENO"; then :
8673 am_cv_func_iconv=yes
8674 fi
8675 rm -f core conftest.err conftest.$ac_objext \
8676 conftest$ac_exeext conftest.$ac_ext
8677 CPPFLAGS="$am_save_CPPFLAGS"
8678
8679 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
8680 for _libs in .libs _libs; do
8681 am_save_CPPFLAGS="$CPPFLAGS"
8682 am_save_LIBS="$LIBS"
8683 CPPFLAGS="$CPPFLAGS -I../libiconv/include"
8684 LIBS="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <stdlib.h>
8688 #include <iconv.h>
8689 int
8690 main ()
8691 {
8692 iconv_t cd = iconv_open("","");
8693 iconv(cd,NULL,NULL,NULL,NULL);
8694 iconv_close(cd);
8695 ;
8696 return 0;
8697 }
8698 _ACEOF
8699 if ac_fn_c_try_link "$LINENO"; then :
8700 INCICONV="-I../libiconv/include"
8701 LIBICONV='${top_builddir}'/../libiconv/lib/$_libs/libiconv.a
8702 LTLIBICONV='${top_builddir}'/../libiconv/lib/libiconv.la
8703 am_cv_lib_iconv=yes
8704 am_cv_func_iconv=yes
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext \
8707 conftest$ac_exeext conftest.$ac_ext
8708 CPPFLAGS="$am_save_CPPFLAGS"
8709 LIBS="$am_save_LIBS"
8710 if test "$am_cv_func_iconv" = "yes"; then
8711 break
8712 fi
8713 done
8714 fi
8715
8716 if test "$am_cv_func_iconv" != yes; then
8717 am_save_CPPFLAGS="$CPPFLAGS"
8718 am_save_LIBS="$LIBS"
8719 CPPFLAGS="$LIBS $INCICONV"
8720 LIBS="$LIBS $LIBICONV"
8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722 /* end confdefs.h. */
8723 #include <stdlib.h>
8724 #include <iconv.h>
8725 int
8726 main ()
8727 {
8728 iconv_t cd = iconv_open("","");
8729 iconv(cd,NULL,NULL,NULL,NULL);
8730 iconv_close(cd);
8731 ;
8732 return 0;
8733 }
8734 _ACEOF
8735 if ac_fn_c_try_link "$LINENO"; then :
8736 am_cv_lib_iconv=yes
8737 am_cv_func_iconv=yes
8738 fi
8739 rm -f core conftest.err conftest.$ac_objext \
8740 conftest$ac_exeext conftest.$ac_ext
8741 CPPFLAGS="$am_save_CPPFLAGS"
8742 LIBS="$am_save_LIBS"
8743 fi
8744
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8747 $as_echo "$am_cv_func_iconv" >&6; }
8748 if test "$am_cv_func_iconv" = yes; then
8749
8750 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8751
8752 fi
8753 if test "$am_cv_lib_iconv" = yes; then
8754
8755 for element in $INCICONV; do
8756 haveit=
8757 for x in $CPPFLAGS; do
8758
8759 acl_save_prefix="$prefix"
8760 prefix="$acl_final_prefix"
8761 acl_save_exec_prefix="$exec_prefix"
8762 exec_prefix="$acl_final_exec_prefix"
8763 eval x=\"$x\"
8764 exec_prefix="$acl_save_exec_prefix"
8765 prefix="$acl_save_prefix"
8766
8767 if test "X$x" = "X$element"; then
8768 haveit=yes
8769 break
8770 fi
8771 done
8772 if test -z "$haveit"; then
8773 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8774 fi
8775 done
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8778 $as_echo_n "checking how to link with libiconv... " >&6; }
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8780 $as_echo "$LIBICONV" >&6; }
8781 else
8782 LIBICONV=
8783 LTLIBICONV=
8784 fi
8785
8786
8787
8788 if test "$am_cv_func_iconv" = yes; then
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8790 $as_echo_n "checking for iconv declaration... " >&6; }
8791 if ${am_cv_proto_iconv+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794
8795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8796 /* end confdefs.h. */
8797
8798 #include <stdlib.h>
8799 #include <iconv.h>
8800 extern
8801 #ifdef __cplusplus
8802 "C"
8803 #endif
8804 #if defined(__STDC__) || defined(__cplusplus)
8805 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8806 #else
8807 size_t iconv();
8808 #endif
8809
8810 int
8811 main ()
8812 {
8813
8814 ;
8815 return 0;
8816 }
8817 _ACEOF
8818 if ac_fn_c_try_compile "$LINENO"; then :
8819 am_cv_proto_iconv_arg1=""
8820 else
8821 am_cv_proto_iconv_arg1="const"
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 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);"
8825 fi
8826
8827 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8829 }$am_cv_proto_iconv" >&5
8830 $as_echo "${ac_t:-
8831 }$am_cv_proto_iconv" >&6; }
8832
8833 cat >>confdefs.h <<_ACEOF
8834 #define ICONV_CONST $am_cv_proto_iconv_arg1
8835 _ACEOF
8836
8837 fi
8838
8839
8840 # GDB may fork/exec the iconv program to get the list of supported character
8841 # sets. Allow the user to specify where to find it.
8842 # There are several factors affecting the choice of option name:
8843 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8844 # the build-time location of libiconv files.
8845 # - The program we need to find is iconv, which comes with glibc. The user
8846 # doesn't necessarily have libiconv installed. Therefore naming this
8847 # --with-libiconv-foo feels wrong.
8848 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8849 # defined to work on directories not files (though it really doesn't know
8850 # the difference).
8851 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8852 # with --with-libiconv-prefix.
8853 # Putting these together is why the option name is --with-iconv-bin.
8854
8855
8856 # Check whether --with-iconv-bin was given.
8857 if test "${with_iconv_bin+set}" = set; then :
8858 withval=$with_iconv_bin; iconv_bin="${withval}"
8859
8860 cat >>confdefs.h <<_ACEOF
8861 #define ICONV_BIN "${iconv_bin}"
8862 _ACEOF
8863
8864
8865 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
8866 if test "x$prefix" = xNONE; then
8867 test_prefix=/usr/local
8868 else
8869 test_prefix=$prefix
8870 fi
8871 else
8872 test_prefix=$exec_prefix
8873 fi
8874 value=0
8875 case ${iconv_bin} in
8876 "${test_prefix}"|"${test_prefix}/"*|\
8877 '${exec_prefix}'|'${exec_prefix}/'*)
8878 value=1
8879 ;;
8880 esac
8881
8882 cat >>confdefs.h <<_ACEOF
8883 #define ICONV_BIN_RELOCATABLE $value
8884 _ACEOF
8885
8886
8887
8888 fi
8889
8890
8891 # For the TUI, we need enhanced curses functionality.
8892 if test x"$enable_tui" != xno; then
8893 prefer_curses=yes
8894 fi
8895
8896 curses_found=no
8897 if test x"$prefer_curses" = xyes; then
8898 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8899 # curses library because the latter might not provide all the
8900 # functionality we need. However, this leads to problems on systems
8901 # where the linker searches /usr/local/lib, but the compiler doesn't
8902 # search /usr/local/include, if ncurses is installed in /usr/local. A
8903 # default installation of ncurses on alpha*-dec-osf* will lead to such
8904 # a situation.
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8906 $as_echo_n "checking for library containing waddstr... " >&6; }
8907 if ${ac_cv_search_waddstr+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 ac_func_search_save_LIBS=$LIBS
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8913
8914 /* Override any GCC internal prototype to avoid an error.
8915 Use char because int might match the return type of a GCC
8916 builtin and then its argument prototype would still apply. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 char waddstr ();
8921 int
8922 main ()
8923 {
8924 return waddstr ();
8925 ;
8926 return 0;
8927 }
8928 _ACEOF
8929 for ac_lib in '' ncursesw ncurses cursesX curses; do
8930 if test -z "$ac_lib"; then
8931 ac_res="none required"
8932 else
8933 ac_res=-l$ac_lib
8934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8935 fi
8936 if ac_fn_c_try_link "$LINENO"; then :
8937 ac_cv_search_waddstr=$ac_res
8938 fi
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext
8941 if ${ac_cv_search_waddstr+:} false; then :
8942 break
8943 fi
8944 done
8945 if ${ac_cv_search_waddstr+:} false; then :
8946
8947 else
8948 ac_cv_search_waddstr=no
8949 fi
8950 rm conftest.$ac_ext
8951 LIBS=$ac_func_search_save_LIBS
8952 fi
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8954 $as_echo "$ac_cv_search_waddstr" >&6; }
8955 ac_res=$ac_cv_search_waddstr
8956 if test "$ac_res" != no; then :
8957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8958
8959 fi
8960
8961
8962 if test "$ac_cv_search_waddstr" != no; then
8963 curses_found=yes
8964 fi
8965 fi
8966
8967 # Check whether we should enable the TUI, but only do so if we really
8968 # can.
8969 if test x"$enable_tui" != xno; then
8970 if test -d $srcdir/tui; then
8971 if test "$curses_found" != no; then
8972 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8973 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8974 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8975 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8976 else
8977 if test x"$enable_tui" = xyes; then
8978 as_fn_error $? "no enhanced curses library found; disable TUI" "$LINENO" 5
8979 else
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8981 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8982 fi
8983 fi
8984 fi
8985 fi
8986
8987 # Since GDB uses Readline, we need termcap functionality. In many
8988 # cases this will be provided by the curses library, but some systems
8989 # have a separate termcap library, or no curses library at all.
8990
8991 case $host_os in
8992 cygwin*)
8993 if test -d $srcdir/libtermcap; then
8994 LIBS="../libtermcap/libtermcap.a $LIBS"
8995 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
8996 fi ;;
8997 go32* | *djgpp*)
8998 ac_cv_search_tgetent="none required"
8999 ;;
9000 esac
9001
9002 # These are the libraries checked by Readline.
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9004 $as_echo_n "checking for library containing tgetent... " >&6; }
9005 if ${ac_cv_search_tgetent+:} false; then :
9006 $as_echo_n "(cached) " >&6
9007 else
9008 ac_func_search_save_LIBS=$LIBS
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011
9012 /* Override any GCC internal prototype to avoid an error.
9013 Use char because int might match the return type of a GCC
9014 builtin and then its argument prototype would still apply. */
9015 #ifdef __cplusplus
9016 extern "C"
9017 #endif
9018 char tgetent ();
9019 int
9020 main ()
9021 {
9022 return tgetent ();
9023 ;
9024 return 0;
9025 }
9026 _ACEOF
9027 for ac_lib in '' termcap tinfo curses ncursesw ncurses; do
9028 if test -z "$ac_lib"; then
9029 ac_res="none required"
9030 else
9031 ac_res=-l$ac_lib
9032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9033 fi
9034 if ac_fn_c_try_link "$LINENO"; then :
9035 ac_cv_search_tgetent=$ac_res
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext
9039 if ${ac_cv_search_tgetent+:} false; then :
9040 break
9041 fi
9042 done
9043 if ${ac_cv_search_tgetent+:} false; then :
9044
9045 else
9046 ac_cv_search_tgetent=no
9047 fi
9048 rm conftest.$ac_ext
9049 LIBS=$ac_func_search_save_LIBS
9050 fi
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9052 $as_echo "$ac_cv_search_tgetent" >&6; }
9053 ac_res=$ac_cv_search_tgetent
9054 if test "$ac_res" != no; then :
9055 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9056
9057 fi
9058
9059
9060 if test "$ac_cv_search_tgetent" = no; then
9061 CONFIG_OBS="$CONFIG_OBS stub-termcap.o"
9062 fi
9063
9064
9065 # Check whether --with-system-readline was given.
9066 if test "${with_system_readline+set}" = set; then :
9067 withval=$with_system_readline;
9068 fi
9069
9070
9071 if test "$with_system_readline" = yes; then
9072 READLINE=-lreadline
9073 READLINE_DEPS=
9074 READLINE_CFLAGS=
9075 READLINE_TEXI_INCFLAG=
9076 else
9077 READLINE='$(READLINE_DIR)/libreadline.a'
9078 READLINE_DEPS='$(READLINE)'
9079 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
9080 READLINE_TEXI_INCFLAG='-I $(READLINE_DIR)'
9081 fi
9082
9083
9084
9085
9086
9087 # Generate jit-reader.h
9088
9089 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9090 TARGET_PTR=
9091
9092 # The cast to long int works around a bug in the HP C Compiler
9093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9095 # This bug is HP SR number 8606223364.
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9097 $as_echo_n "checking size of unsigned long long... " >&6; }
9098 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
9099 $as_echo_n "(cached) " >&6
9100 else
9101 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9102
9103 else
9104 if test "$ac_cv_type_unsigned_long_long" = yes; then
9105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9107 as_fn_error 77 "cannot compute sizeof (unsigned long long)
9108 See \`config.log' for more details" "$LINENO" 5; }
9109 else
9110 ac_cv_sizeof_unsigned_long_long=0
9111 fi
9112 fi
9113
9114 fi
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9116 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9117
9118
9119
9120 cat >>confdefs.h <<_ACEOF
9121 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9122 _ACEOF
9123
9124
9125 # The cast to long int works around a bug in the HP C Compiler
9126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9128 # This bug is HP SR number 8606223364.
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9130 $as_echo_n "checking size of unsigned long... " >&6; }
9131 if ${ac_cv_sizeof_unsigned_long+:} false; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9135
9136 else
9137 if test "$ac_cv_type_unsigned_long" = yes; then
9138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9140 as_fn_error 77 "cannot compute sizeof (unsigned long)
9141 See \`config.log' for more details" "$LINENO" 5; }
9142 else
9143 ac_cv_sizeof_unsigned_long=0
9144 fi
9145 fi
9146
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9149 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9150
9151
9152
9153 cat >>confdefs.h <<_ACEOF
9154 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9155 _ACEOF
9156
9157
9158 # The cast to long int works around a bug in the HP C Compiler
9159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9161 # This bug is HP SR number 8606223364.
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9163 $as_echo_n "checking size of unsigned __int128... " >&6; }
9164 if ${ac_cv_sizeof_unsigned___int128+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9168
9169 else
9170 if test "$ac_cv_type_unsigned___int128" = yes; then
9171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9173 as_fn_error 77 "cannot compute sizeof (unsigned __int128)
9174 See \`config.log' for more details" "$LINENO" 5; }
9175 else
9176 ac_cv_sizeof_unsigned___int128=0
9177 fi
9178 fi
9179
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9182 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9183
9184
9185
9186 cat >>confdefs.h <<_ACEOF
9187 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9188 _ACEOF
9189
9190
9191
9192 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9193 TARGET_PTR="unsigned long"
9194 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9195 TARGET_PTR="unsigned long long"
9196 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9197 TARGET_PTR="unsigned __int128"
9198 else
9199 TARGET_PTR="unsigned long"
9200 fi
9201
9202
9203 ac_config_files="$ac_config_files jit-reader.h:jit-reader.in"
9204
9205
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9207 $as_echo_n "checking for library containing dlopen... " >&6; }
9208 if ${ac_cv_search_dlopen+:} false; then :
9209 $as_echo_n "(cached) " >&6
9210 else
9211 ac_func_search_save_LIBS=$LIBS
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214
9215 /* Override any GCC internal prototype to avoid an error.
9216 Use char because int might match the return type of a GCC
9217 builtin and then its argument prototype would still apply. */
9218 #ifdef __cplusplus
9219 extern "C"
9220 #endif
9221 char dlopen ();
9222 int
9223 main ()
9224 {
9225 return dlopen ();
9226 ;
9227 return 0;
9228 }
9229 _ACEOF
9230 for ac_lib in '' dl; do
9231 if test -z "$ac_lib"; then
9232 ac_res="none required"
9233 else
9234 ac_res=-l$ac_lib
9235 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9236 fi
9237 if ac_fn_c_try_link "$LINENO"; then :
9238 ac_cv_search_dlopen=$ac_res
9239 fi
9240 rm -f core conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext
9242 if ${ac_cv_search_dlopen+:} false; then :
9243 break
9244 fi
9245 done
9246 if ${ac_cv_search_dlopen+:} false; then :
9247
9248 else
9249 ac_cv_search_dlopen=no
9250 fi
9251 rm conftest.$ac_ext
9252 LIBS=$ac_func_search_save_LIBS
9253 fi
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9255 $as_echo "$ac_cv_search_dlopen" >&6; }
9256 ac_res=$ac_cv_search_dlopen
9257 if test "$ac_res" != no; then :
9258 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9259
9260 fi
9261
9262
9263
9264
9265 # Check whether --with-jit-reader-dir was given.
9266 if test "${with_jit_reader_dir+set}" = set; then :
9267 withval=$with_jit_reader_dir;
9268 JIT_READER_DIR=$withval
9269 else
9270 JIT_READER_DIR=${libdir}/gdb
9271 fi
9272
9273
9274 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
9275 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9276 ac_define_dir=`eval echo $JIT_READER_DIR`
9277 ac_define_dir=`eval echo $ac_define_dir`
9278
9279 cat >>confdefs.h <<_ACEOF
9280 #define JIT_READER_DIR "$ac_define_dir"
9281 _ACEOF
9282
9283
9284
9285
9286 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
9287 if test "x$prefix" = xNONE; then
9288 test_prefix=/usr/local
9289 else
9290 test_prefix=$prefix
9291 fi
9292 else
9293 test_prefix=$exec_prefix
9294 fi
9295 value=0
9296 case ${ac_define_dir} in
9297 "${test_prefix}"|"${test_prefix}/"*|\
9298 '${exec_prefix}'|'${exec_prefix}/'*)
9299 value=1
9300 ;;
9301 esac
9302
9303 cat >>confdefs.h <<_ACEOF
9304 #define JIT_READER_DIR_RELOCATABLE $value
9305 _ACEOF
9306
9307
9308
9309
9310
9311 # Check whether --with-expat was given.
9312 if test "${with_expat+set}" = set; then :
9313 withval=$with_expat;
9314 else
9315 with_expat=auto
9316 fi
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9319 $as_echo_n "checking whether to use expat... " >&6; }
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9321 $as_echo "$with_expat" >&6; }
9322
9323 if test "${with_expat}" = no; then
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9325 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9326 HAVE_LIBEXPAT=no
9327 else
9328
9329
9330
9331
9332
9333
9334
9335
9336 use_additional=yes
9337
9338 acl_save_prefix="$prefix"
9339 prefix="$acl_final_prefix"
9340 acl_save_exec_prefix="$exec_prefix"
9341 exec_prefix="$acl_final_exec_prefix"
9342
9343 eval additional_includedir=\"$includedir\"
9344 eval additional_libdir=\"$libdir\"
9345
9346 exec_prefix="$acl_save_exec_prefix"
9347 prefix="$acl_save_prefix"
9348
9349
9350 # Check whether --with-libexpat-prefix was given.
9351 if test "${with_libexpat_prefix+set}" = set; then :
9352 withval=$with_libexpat_prefix;
9353 if test "X$withval" = "Xno"; then
9354 use_additional=no
9355 else
9356 if test "X$withval" = "X"; then
9357
9358 acl_save_prefix="$prefix"
9359 prefix="$acl_final_prefix"
9360 acl_save_exec_prefix="$exec_prefix"
9361 exec_prefix="$acl_final_exec_prefix"
9362
9363 eval additional_includedir=\"$includedir\"
9364 eval additional_libdir=\"$libdir\"
9365
9366 exec_prefix="$acl_save_exec_prefix"
9367 prefix="$acl_save_prefix"
9368
9369 else
9370 additional_includedir="$withval/include"
9371 additional_libdir="$withval/lib"
9372 fi
9373 fi
9374
9375 fi
9376
9377 LIBEXPAT=
9378 LTLIBEXPAT=
9379 INCEXPAT=
9380 rpathdirs=
9381 ltrpathdirs=
9382 names_already_handled=
9383 names_next_round='expat '
9384 while test -n "$names_next_round"; do
9385 names_this_round="$names_next_round"
9386 names_next_round=
9387 for name in $names_this_round; do
9388 already_handled=
9389 for n in $names_already_handled; do
9390 if test "$n" = "$name"; then
9391 already_handled=yes
9392 break
9393 fi
9394 done
9395 if test -z "$already_handled"; then
9396 names_already_handled="$names_already_handled $name"
9397 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9398 eval value=\"\$HAVE_LIB$uppername\"
9399 if test -n "$value"; then
9400 if test "$value" = yes; then
9401 eval value=\"\$LIB$uppername\"
9402 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
9403 eval value=\"\$LTLIB$uppername\"
9404 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9405 else
9406 :
9407 fi
9408 else
9409 found_dir=
9410 found_la=
9411 found_so=
9412 found_a=
9413 if test $use_additional = yes; then
9414 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9415 found_dir="$additional_libdir"
9416 found_so="$additional_libdir/lib$name.$shlibext"
9417 if test -f "$additional_libdir/lib$name.la"; then
9418 found_la="$additional_libdir/lib$name.la"
9419 fi
9420 else
9421 if test -f "$additional_libdir/lib$name.$libext"; then
9422 found_dir="$additional_libdir"
9423 found_a="$additional_libdir/lib$name.$libext"
9424 if test -f "$additional_libdir/lib$name.la"; then
9425 found_la="$additional_libdir/lib$name.la"
9426 fi
9427 fi
9428 fi
9429 fi
9430 if test "X$found_dir" = "X"; then
9431 for x in $LDFLAGS $LTLIBEXPAT; do
9432
9433 acl_save_prefix="$prefix"
9434 prefix="$acl_final_prefix"
9435 acl_save_exec_prefix="$exec_prefix"
9436 exec_prefix="$acl_final_exec_prefix"
9437 eval x=\"$x\"
9438 exec_prefix="$acl_save_exec_prefix"
9439 prefix="$acl_save_prefix"
9440
9441 case "$x" in
9442 -L*)
9443 dir=`echo "X$x" | sed -e 's/^X-L//'`
9444 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9445 found_dir="$dir"
9446 found_so="$dir/lib$name.$shlibext"
9447 if test -f "$dir/lib$name.la"; then
9448 found_la="$dir/lib$name.la"
9449 fi
9450 else
9451 if test -f "$dir/lib$name.$libext"; then
9452 found_dir="$dir"
9453 found_a="$dir/lib$name.$libext"
9454 if test -f "$dir/lib$name.la"; then
9455 found_la="$dir/lib$name.la"
9456 fi
9457 fi
9458 fi
9459 ;;
9460 esac
9461 if test "X$found_dir" != "X"; then
9462 break
9463 fi
9464 done
9465 fi
9466 if test "X$found_dir" != "X"; then
9467 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9468 if test "X$found_so" != "X"; then
9469 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9470 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9471 else
9472 haveit=
9473 for x in $ltrpathdirs; do
9474 if test "X$x" = "X$found_dir"; then
9475 haveit=yes
9476 break
9477 fi
9478 done
9479 if test -z "$haveit"; then
9480 ltrpathdirs="$ltrpathdirs $found_dir"
9481 fi
9482 if test "$hardcode_direct" = yes; then
9483 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9484 else
9485 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9486 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9487 haveit=
9488 for x in $rpathdirs; do
9489 if test "X$x" = "X$found_dir"; then
9490 haveit=yes
9491 break
9492 fi
9493 done
9494 if test -z "$haveit"; then
9495 rpathdirs="$rpathdirs $found_dir"
9496 fi
9497 else
9498 haveit=
9499 for x in $LDFLAGS $LIBEXPAT; do
9500
9501 acl_save_prefix="$prefix"
9502 prefix="$acl_final_prefix"
9503 acl_save_exec_prefix="$exec_prefix"
9504 exec_prefix="$acl_final_exec_prefix"
9505 eval x=\"$x\"
9506 exec_prefix="$acl_save_exec_prefix"
9507 prefix="$acl_save_prefix"
9508
9509 if test "X$x" = "X-L$found_dir"; then
9510 haveit=yes
9511 break
9512 fi
9513 done
9514 if test -z "$haveit"; then
9515 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9516 fi
9517 if test "$hardcode_minus_L" != no; then
9518 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9519 else
9520 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9521 fi
9522 fi
9523 fi
9524 fi
9525 else
9526 if test "X$found_a" != "X"; then
9527 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9528 else
9529 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9530 fi
9531 fi
9532 additional_includedir=
9533 case "$found_dir" in
9534 */lib | */lib/)
9535 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9536 additional_includedir="$basedir/include"
9537 ;;
9538 esac
9539 if test "X$additional_includedir" != "X"; then
9540 if test "X$additional_includedir" != "X/usr/include"; then
9541 haveit=
9542 if test "X$additional_includedir" = "X/usr/local/include"; then
9543 if test -n "$GCC"; then
9544 case $host_os in
9545 linux*) haveit=yes;;
9546 esac
9547 fi
9548 fi
9549 if test -z "$haveit"; then
9550 for x in $CPPFLAGS $INCEXPAT; do
9551
9552 acl_save_prefix="$prefix"
9553 prefix="$acl_final_prefix"
9554 acl_save_exec_prefix="$exec_prefix"
9555 exec_prefix="$acl_final_exec_prefix"
9556 eval x=\"$x\"
9557 exec_prefix="$acl_save_exec_prefix"
9558 prefix="$acl_save_prefix"
9559
9560 if test "X$x" = "X-I$additional_includedir"; then
9561 haveit=yes
9562 break
9563 fi
9564 done
9565 if test -z "$haveit"; then
9566 if test -d "$additional_includedir"; then
9567 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9568 fi
9569 fi
9570 fi
9571 fi
9572 fi
9573 if test -n "$found_la"; then
9574 save_libdir="$libdir"
9575 case "$found_la" in
9576 */* | *\\*) . "$found_la" ;;
9577 *) . "./$found_la" ;;
9578 esac
9579 libdir="$save_libdir"
9580 for dep in $dependency_libs; do
9581 case "$dep" in
9582 -L*)
9583 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9584 if test "X$additional_libdir" != "X/usr/lib"; then
9585 haveit=
9586 if test "X$additional_libdir" = "X/usr/local/lib"; then
9587 if test -n "$GCC"; then
9588 case $host_os in
9589 linux*) haveit=yes;;
9590 esac
9591 fi
9592 fi
9593 if test -z "$haveit"; then
9594 haveit=
9595 for x in $LDFLAGS $LIBEXPAT; do
9596
9597 acl_save_prefix="$prefix"
9598 prefix="$acl_final_prefix"
9599 acl_save_exec_prefix="$exec_prefix"
9600 exec_prefix="$acl_final_exec_prefix"
9601 eval x=\"$x\"
9602 exec_prefix="$acl_save_exec_prefix"
9603 prefix="$acl_save_prefix"
9604
9605 if test "X$x" = "X-L$additional_libdir"; then
9606 haveit=yes
9607 break
9608 fi
9609 done
9610 if test -z "$haveit"; then
9611 if test -d "$additional_libdir"; then
9612 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9613 fi
9614 fi
9615 haveit=
9616 for x in $LDFLAGS $LTLIBEXPAT; do
9617
9618 acl_save_prefix="$prefix"
9619 prefix="$acl_final_prefix"
9620 acl_save_exec_prefix="$exec_prefix"
9621 exec_prefix="$acl_final_exec_prefix"
9622 eval x=\"$x\"
9623 exec_prefix="$acl_save_exec_prefix"
9624 prefix="$acl_save_prefix"
9625
9626 if test "X$x" = "X-L$additional_libdir"; then
9627 haveit=yes
9628 break
9629 fi
9630 done
9631 if test -z "$haveit"; then
9632 if test -d "$additional_libdir"; then
9633 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9634 fi
9635 fi
9636 fi
9637 fi
9638 ;;
9639 -R*)
9640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9641 if test "$enable_rpath" != no; then
9642 haveit=
9643 for x in $rpathdirs; do
9644 if test "X$x" = "X$dir"; then
9645 haveit=yes
9646 break
9647 fi
9648 done
9649 if test -z "$haveit"; then
9650 rpathdirs="$rpathdirs $dir"
9651 fi
9652 haveit=
9653 for x in $ltrpathdirs; do
9654 if test "X$x" = "X$dir"; then
9655 haveit=yes
9656 break
9657 fi
9658 done
9659 if test -z "$haveit"; then
9660 ltrpathdirs="$ltrpathdirs $dir"
9661 fi
9662 fi
9663 ;;
9664 -l*)
9665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9666 ;;
9667 *.la)
9668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9669 ;;
9670 *)
9671 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9672 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9673 ;;
9674 esac
9675 done
9676 fi
9677 else
9678 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9679 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9680 fi
9681 fi
9682 fi
9683 done
9684 done
9685 if test "X$rpathdirs" != "X"; then
9686 if test -n "$hardcode_libdir_separator"; then
9687 alldirs=
9688 for found_dir in $rpathdirs; do
9689 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9690 done
9691 acl_save_libdir="$libdir"
9692 libdir="$alldirs"
9693 eval flag=\"$hardcode_libdir_flag_spec\"
9694 libdir="$acl_save_libdir"
9695 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9696 else
9697 for found_dir in $rpathdirs; do
9698 acl_save_libdir="$libdir"
9699 libdir="$found_dir"
9700 eval flag=\"$hardcode_libdir_flag_spec\"
9701 libdir="$acl_save_libdir"
9702 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9703 done
9704 fi
9705 fi
9706 if test "X$ltrpathdirs" != "X"; then
9707 for found_dir in $ltrpathdirs; do
9708 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9709 done
9710 fi
9711
9712
9713 ac_save_CPPFLAGS="$CPPFLAGS"
9714
9715 for element in $INCEXPAT; do
9716 haveit=
9717 for x in $CPPFLAGS; do
9718
9719 acl_save_prefix="$prefix"
9720 prefix="$acl_final_prefix"
9721 acl_save_exec_prefix="$exec_prefix"
9722 exec_prefix="$acl_final_exec_prefix"
9723 eval x=\"$x\"
9724 exec_prefix="$acl_save_exec_prefix"
9725 prefix="$acl_save_prefix"
9726
9727 if test "X$x" = "X$element"; then
9728 haveit=yes
9729 break
9730 fi
9731 done
9732 if test -z "$haveit"; then
9733 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9734 fi
9735 done
9736
9737
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9739 $as_echo_n "checking for libexpat... " >&6; }
9740 if ${ac_cv_libexpat+:} false; then :
9741 $as_echo_n "(cached) " >&6
9742 else
9743
9744 ac_save_LIBS="$LIBS"
9745 LIBS="$LIBS $LIBEXPAT"
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9748 #include "expat.h"
9749 int
9750 main ()
9751 {
9752 XML_Parser p = XML_ParserCreate (0);
9753 ;
9754 return 0;
9755 }
9756 _ACEOF
9757 if ac_fn_c_try_link "$LINENO"; then :
9758 ac_cv_libexpat=yes
9759 else
9760 ac_cv_libexpat=no
9761 fi
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS="$ac_save_LIBS"
9765
9766 fi
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9768 $as_echo "$ac_cv_libexpat" >&6; }
9769 if test "$ac_cv_libexpat" = yes; then
9770 HAVE_LIBEXPAT=yes
9771
9772 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9773
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9775 $as_echo_n "checking how to link with libexpat... " >&6; }
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9777 $as_echo "$LIBEXPAT" >&6; }
9778 else
9779 HAVE_LIBEXPAT=no
9780 CPPFLAGS="$ac_save_CPPFLAGS"
9781 LIBEXPAT=
9782 LTLIBEXPAT=
9783 fi
9784
9785
9786
9787
9788
9789
9790 if test "$HAVE_LIBEXPAT" != yes; then
9791 if test "$with_expat" = yes; then
9792 as_fn_error $? "expat is missing or unusable" "$LINENO" 5
9793 else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9795 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9796 fi
9797 else
9798 save_LIBS=$LIBS
9799 LIBS="$LIBS $LIBEXPAT"
9800 for ac_func in XML_StopParser
9801 do :
9802 ac_fn_c_check_func "$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9803 if test "x$ac_cv_func_XML_StopParser" = xyes; then :
9804 cat >>confdefs.h <<_ACEOF
9805 #define HAVE_XML_STOPPARSER 1
9806 _ACEOF
9807
9808 fi
9809 done
9810
9811 LIBS=$save_LIBS
9812 fi
9813 fi
9814
9815
9816 # Check whether --with-mpfr was given.
9817 if test "${with_mpfr+set}" = set; then :
9818 withval=$with_mpfr;
9819 else
9820 with_mpfr=auto
9821 fi
9822
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9824 $as_echo_n "checking whether to use MPFR... " >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9826 $as_echo "$with_mpfr" >&6; }
9827
9828 if test "${with_mpfr}" = no; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9830 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9831 HAVE_LIBMPFR=no
9832 else
9833
9834
9835
9836
9837
9838
9839
9840
9841 use_additional=yes
9842
9843 acl_save_prefix="$prefix"
9844 prefix="$acl_final_prefix"
9845 acl_save_exec_prefix="$exec_prefix"
9846 exec_prefix="$acl_final_exec_prefix"
9847
9848 eval additional_includedir=\"$includedir\"
9849 eval additional_libdir=\"$libdir\"
9850
9851 exec_prefix="$acl_save_exec_prefix"
9852 prefix="$acl_save_prefix"
9853
9854
9855 # Check whether --with-libmpfr-prefix was given.
9856 if test "${with_libmpfr_prefix+set}" = set; then :
9857 withval=$with_libmpfr_prefix;
9858 if test "X$withval" = "Xno"; then
9859 use_additional=no
9860 else
9861 if test "X$withval" = "X"; then
9862
9863 acl_save_prefix="$prefix"
9864 prefix="$acl_final_prefix"
9865 acl_save_exec_prefix="$exec_prefix"
9866 exec_prefix="$acl_final_exec_prefix"
9867
9868 eval additional_includedir=\"$includedir\"
9869 eval additional_libdir=\"$libdir\"
9870
9871 exec_prefix="$acl_save_exec_prefix"
9872 prefix="$acl_save_prefix"
9873
9874 else
9875 additional_includedir="$withval/include"
9876 additional_libdir="$withval/lib"
9877 fi
9878 fi
9879
9880 fi
9881
9882 LIBMPFR=
9883 LTLIBMPFR=
9884 INCMPFR=
9885 rpathdirs=
9886 ltrpathdirs=
9887 names_already_handled=
9888 names_next_round='mpfr gmp'
9889 while test -n "$names_next_round"; do
9890 names_this_round="$names_next_round"
9891 names_next_round=
9892 for name in $names_this_round; do
9893 already_handled=
9894 for n in $names_already_handled; do
9895 if test "$n" = "$name"; then
9896 already_handled=yes
9897 break
9898 fi
9899 done
9900 if test -z "$already_handled"; then
9901 names_already_handled="$names_already_handled $name"
9902 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9903 eval value=\"\$HAVE_LIB$uppername\"
9904 if test -n "$value"; then
9905 if test "$value" = yes; then
9906 eval value=\"\$LIB$uppername\"
9907 test -z "$value" || LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$value"
9908 eval value=\"\$LTLIB$uppername\"
9909 test -z "$value" || LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9910 else
9911 :
9912 fi
9913 else
9914 found_dir=
9915 found_la=
9916 found_so=
9917 found_a=
9918 if test $use_additional = yes; then
9919 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9920 found_dir="$additional_libdir"
9921 found_so="$additional_libdir/lib$name.$shlibext"
9922 if test -f "$additional_libdir/lib$name.la"; then
9923 found_la="$additional_libdir/lib$name.la"
9924 fi
9925 else
9926 if test -f "$additional_libdir/lib$name.$libext"; then
9927 found_dir="$additional_libdir"
9928 found_a="$additional_libdir/lib$name.$libext"
9929 if test -f "$additional_libdir/lib$name.la"; then
9930 found_la="$additional_libdir/lib$name.la"
9931 fi
9932 fi
9933 fi
9934 fi
9935 if test "X$found_dir" = "X"; then
9936 for x in $LDFLAGS $LTLIBMPFR; do
9937
9938 acl_save_prefix="$prefix"
9939 prefix="$acl_final_prefix"
9940 acl_save_exec_prefix="$exec_prefix"
9941 exec_prefix="$acl_final_exec_prefix"
9942 eval x=\"$x\"
9943 exec_prefix="$acl_save_exec_prefix"
9944 prefix="$acl_save_prefix"
9945
9946 case "$x" in
9947 -L*)
9948 dir=`echo "X$x" | sed -e 's/^X-L//'`
9949 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9950 found_dir="$dir"
9951 found_so="$dir/lib$name.$shlibext"
9952 if test -f "$dir/lib$name.la"; then
9953 found_la="$dir/lib$name.la"
9954 fi
9955 else
9956 if test -f "$dir/lib$name.$libext"; then
9957 found_dir="$dir"
9958 found_a="$dir/lib$name.$libext"
9959 if test -f "$dir/lib$name.la"; then
9960 found_la="$dir/lib$name.la"
9961 fi
9962 fi
9963 fi
9964 ;;
9965 esac
9966 if test "X$found_dir" != "X"; then
9967 break
9968 fi
9969 done
9970 fi
9971 if test "X$found_dir" != "X"; then
9972 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9973 if test "X$found_so" != "X"; then
9974 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9975 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9976 else
9977 haveit=
9978 for x in $ltrpathdirs; do
9979 if test "X$x" = "X$found_dir"; then
9980 haveit=yes
9981 break
9982 fi
9983 done
9984 if test -z "$haveit"; then
9985 ltrpathdirs="$ltrpathdirs $found_dir"
9986 fi
9987 if test "$hardcode_direct" = yes; then
9988 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9989 else
9990 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9991 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
9992 haveit=
9993 for x in $rpathdirs; do
9994 if test "X$x" = "X$found_dir"; then
9995 haveit=yes
9996 break
9997 fi
9998 done
9999 if test -z "$haveit"; then
10000 rpathdirs="$rpathdirs $found_dir"
10001 fi
10002 else
10003 haveit=
10004 for x in $LDFLAGS $LIBMPFR; do
10005
10006 acl_save_prefix="$prefix"
10007 prefix="$acl_final_prefix"
10008 acl_save_exec_prefix="$exec_prefix"
10009 exec_prefix="$acl_final_exec_prefix"
10010 eval x=\"$x\"
10011 exec_prefix="$acl_save_exec_prefix"
10012 prefix="$acl_save_prefix"
10013
10014 if test "X$x" = "X-L$found_dir"; then
10015 haveit=yes
10016 break
10017 fi
10018 done
10019 if test -z "$haveit"; then
10020 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10021 fi
10022 if test "$hardcode_minus_L" != no; then
10023 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_so"
10024 else
10025 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10026 fi
10027 fi
10028 fi
10029 fi
10030 else
10031 if test "X$found_a" != "X"; then
10032 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$found_a"
10033 else
10034 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10035 fi
10036 fi
10037 additional_includedir=
10038 case "$found_dir" in
10039 */lib | */lib/)
10040 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10041 additional_includedir="$basedir/include"
10042 ;;
10043 esac
10044 if test "X$additional_includedir" != "X"; then
10045 if test "X$additional_includedir" != "X/usr/include"; then
10046 haveit=
10047 if test "X$additional_includedir" = "X/usr/local/include"; then
10048 if test -n "$GCC"; then
10049 case $host_os in
10050 linux*) haveit=yes;;
10051 esac
10052 fi
10053 fi
10054 if test -z "$haveit"; then
10055 for x in $CPPFLAGS $INCMPFR; do
10056
10057 acl_save_prefix="$prefix"
10058 prefix="$acl_final_prefix"
10059 acl_save_exec_prefix="$exec_prefix"
10060 exec_prefix="$acl_final_exec_prefix"
10061 eval x=\"$x\"
10062 exec_prefix="$acl_save_exec_prefix"
10063 prefix="$acl_save_prefix"
10064
10065 if test "X$x" = "X-I$additional_includedir"; then
10066 haveit=yes
10067 break
10068 fi
10069 done
10070 if test -z "$haveit"; then
10071 if test -d "$additional_includedir"; then
10072 INCMPFR="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10073 fi
10074 fi
10075 fi
10076 fi
10077 fi
10078 if test -n "$found_la"; then
10079 save_libdir="$libdir"
10080 case "$found_la" in
10081 */* | *\\*) . "$found_la" ;;
10082 *) . "./$found_la" ;;
10083 esac
10084 libdir="$save_libdir"
10085 for dep in $dependency_libs; do
10086 case "$dep" in
10087 -L*)
10088 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10089 if test "X$additional_libdir" != "X/usr/lib"; then
10090 haveit=
10091 if test "X$additional_libdir" = "X/usr/local/lib"; then
10092 if test -n "$GCC"; then
10093 case $host_os in
10094 linux*) haveit=yes;;
10095 esac
10096 fi
10097 fi
10098 if test -z "$haveit"; then
10099 haveit=
10100 for x in $LDFLAGS $LIBMPFR; do
10101
10102 acl_save_prefix="$prefix"
10103 prefix="$acl_final_prefix"
10104 acl_save_exec_prefix="$exec_prefix"
10105 exec_prefix="$acl_final_exec_prefix"
10106 eval x=\"$x\"
10107 exec_prefix="$acl_save_exec_prefix"
10108 prefix="$acl_save_prefix"
10109
10110 if test "X$x" = "X-L$additional_libdir"; then
10111 haveit=yes
10112 break
10113 fi
10114 done
10115 if test -z "$haveit"; then
10116 if test -d "$additional_libdir"; then
10117 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10118 fi
10119 fi
10120 haveit=
10121 for x in $LDFLAGS $LTLIBMPFR; do
10122
10123 acl_save_prefix="$prefix"
10124 prefix="$acl_final_prefix"
10125 acl_save_exec_prefix="$exec_prefix"
10126 exec_prefix="$acl_final_exec_prefix"
10127 eval x=\"$x\"
10128 exec_prefix="$acl_save_exec_prefix"
10129 prefix="$acl_save_prefix"
10130
10131 if test "X$x" = "X-L$additional_libdir"; then
10132 haveit=yes
10133 break
10134 fi
10135 done
10136 if test -z "$haveit"; then
10137 if test -d "$additional_libdir"; then
10138 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10139 fi
10140 fi
10141 fi
10142 fi
10143 ;;
10144 -R*)
10145 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10146 if test "$enable_rpath" != no; then
10147 haveit=
10148 for x in $rpathdirs; do
10149 if test "X$x" = "X$dir"; then
10150 haveit=yes
10151 break
10152 fi
10153 done
10154 if test -z "$haveit"; then
10155 rpathdirs="$rpathdirs $dir"
10156 fi
10157 haveit=
10158 for x in $ltrpathdirs; do
10159 if test "X$x" = "X$dir"; then
10160 haveit=yes
10161 break
10162 fi
10163 done
10164 if test -z "$haveit"; then
10165 ltrpathdirs="$ltrpathdirs $dir"
10166 fi
10167 fi
10168 ;;
10169 -l*)
10170 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10171 ;;
10172 *.la)
10173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10174 ;;
10175 *)
10176 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$dep"
10177 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10178 ;;
10179 esac
10180 done
10181 fi
10182 else
10183 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }-l$name"
10184 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10185 fi
10186 fi
10187 fi
10188 done
10189 done
10190 if test "X$rpathdirs" != "X"; then
10191 if test -n "$hardcode_libdir_separator"; then
10192 alldirs=
10193 for found_dir in $rpathdirs; do
10194 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10195 done
10196 acl_save_libdir="$libdir"
10197 libdir="$alldirs"
10198 eval flag=\"$hardcode_libdir_flag_spec\"
10199 libdir="$acl_save_libdir"
10200 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10201 else
10202 for found_dir in $rpathdirs; do
10203 acl_save_libdir="$libdir"
10204 libdir="$found_dir"
10205 eval flag=\"$hardcode_libdir_flag_spec\"
10206 libdir="$acl_save_libdir"
10207 LIBMPFR="${LIBMPFR}${LIBMPFR:+ }$flag"
10208 done
10209 fi
10210 fi
10211 if test "X$ltrpathdirs" != "X"; then
10212 for found_dir in $ltrpathdirs; do
10213 LTLIBMPFR="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10214 done
10215 fi
10216
10217
10218 ac_save_CPPFLAGS="$CPPFLAGS"
10219
10220 for element in $INCMPFR; do
10221 haveit=
10222 for x in $CPPFLAGS; do
10223
10224 acl_save_prefix="$prefix"
10225 prefix="$acl_final_prefix"
10226 acl_save_exec_prefix="$exec_prefix"
10227 exec_prefix="$acl_final_exec_prefix"
10228 eval x=\"$x\"
10229 exec_prefix="$acl_save_exec_prefix"
10230 prefix="$acl_save_prefix"
10231
10232 if test "X$x" = "X$element"; then
10233 haveit=yes
10234 break
10235 fi
10236 done
10237 if test -z "$haveit"; then
10238 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10239 fi
10240 done
10241
10242
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10244 $as_echo_n "checking for libmpfr... " >&6; }
10245 if ${ac_cv_libmpfr+:} false; then :
10246 $as_echo_n "(cached) " >&6
10247 else
10248
10249 ac_save_LIBS="$LIBS"
10250 LIBS="$LIBS $LIBMPFR"
10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 #include <mpfr.h>
10254 int
10255 main ()
10256 {
10257 mpfr_exp_t exp; mpfr_t x;
10258 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10259 ;
10260 return 0;
10261 }
10262 _ACEOF
10263 if ac_fn_c_try_link "$LINENO"; then :
10264 ac_cv_libmpfr=yes
10265 else
10266 ac_cv_libmpfr=no
10267 fi
10268 rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LIBS="$ac_save_LIBS"
10271
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10274 $as_echo "$ac_cv_libmpfr" >&6; }
10275 if test "$ac_cv_libmpfr" = yes; then
10276 HAVE_LIBMPFR=yes
10277
10278 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10279
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10281 $as_echo_n "checking how to link with libmpfr... " >&6; }
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10283 $as_echo "$LIBMPFR" >&6; }
10284 else
10285 HAVE_LIBMPFR=no
10286 CPPFLAGS="$ac_save_CPPFLAGS"
10287 LIBMPFR=
10288 LTLIBMPFR=
10289 fi
10290
10291
10292
10293
10294
10295
10296 if test "$HAVE_LIBMPFR" != yes; then
10297 if test "$with_mpfr" = yes; then
10298 as_fn_error $? "MPFR is missing or unusable" "$LINENO" 5
10299 else
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10301 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10302 fi
10303 fi
10304 fi
10305
10306 # --------------------- #
10307 # Check for libpython. #
10308 # --------------------- #
10309
10310
10311
10312
10313
10314
10315 # Check whether --with-python was given.
10316 if test "${with_python+set}" = set; then :
10317 withval=$with_python;
10318 else
10319 with_python=auto
10320 fi
10321
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10323 $as_echo_n "checking whether to use python... " >&6; }
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10325 $as_echo "$with_python" >&6; }
10326
10327 if test "${with_python}" = no; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10329 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10330 have_libpython=no
10331 else
10332 case "${with_python}" in
10333 [\\/]* | ?:[\\/]*)
10334 if test -d ${with_python}; then
10335 # Assume the python binary is ${with_python}/bin/python.
10336 python_prog="${with_python}/bin/python"
10337 python_prefix=
10338 # If python does not exit ${with_python}/bin, then try in
10339 # ${with_python}. On Windows/MinGW, this is where the Python
10340 # executable is.
10341 if test ! -x "${python_prog}"; then
10342 python_prog="${with_python}/python"
10343 python_prefix=
10344 fi
10345 if test ! -x "${python_prog}"; then
10346 # Fall back to gdb 7.0/7.1 behaviour.
10347 python_prog=missing
10348 python_prefix=${with_python}
10349 fi
10350 elif test -x "${with_python}"; then
10351 # While we can't run python compiled for $host (unless host == build),
10352 # the user could write a script that provides the needed information,
10353 # so we support that.
10354 python_prog=${with_python}
10355 python_prefix=
10356 else
10357 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10358 fi
10359 ;;
10360 */*)
10361 # Disallow --with-python=foo/bar.
10362 as_fn_error $? "invalid value for --with-python" "$LINENO" 5
10363 ;;
10364 *)
10365 # The user has either specified auto, yes, or the name of the python
10366 # program assumed to be in $PATH.
10367 python_prefix=
10368 case "${with_python}" in
10369 yes | auto)
10370 if test ${build} = ${host}; then
10371 # Extract the first word of "python", so it can be a program name with args.
10372 set dummy python; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if ${ac_cv_path_python_prog_path+:} false; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 case $python_prog_path in
10379 [\\/]* | ?:[\\/]*)
10380 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10381 ;;
10382 *)
10383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384 for as_dir in $PATH
10385 do
10386 IFS=$as_save_IFS
10387 test -z "$as_dir" && as_dir=.
10388 for ac_exec_ext in '' $ac_executable_extensions; do
10389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10390 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 break 2
10393 fi
10394 done
10395 done
10396 IFS=$as_save_IFS
10397
10398 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10399 ;;
10400 esac
10401 fi
10402 python_prog_path=$ac_cv_path_python_prog_path
10403 if test -n "$python_prog_path"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10405 $as_echo "$python_prog_path" >&6; }
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10409 fi
10410
10411
10412 if test "${python_prog_path}" = missing; then
10413 python_prog=missing
10414 else
10415 python_prog=${python_prog_path}
10416 fi
10417 else
10418 # Not much we can do except assume the cross-compiler will find the
10419 # right files.
10420 python_prog=missing
10421 fi
10422 ;;
10423 *)
10424 # While we can't run python compiled for $host (unless host == build),
10425 # the user could write a script that provides the needed information,
10426 # so we support that.
10427 python_prog="${with_python}"
10428 # Extract the first word of "${python_prog}", so it can be a program name with args.
10429 set dummy ${python_prog}; ac_word=$2
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10431 $as_echo_n "checking for $ac_word... " >&6; }
10432 if ${ac_cv_path_python_prog_path+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 case $python_prog_path in
10436 [\\/]* | ?:[\\/]*)
10437 ac_cv_path_python_prog_path="$python_prog_path" # Let the user override the test with a path.
10438 ;;
10439 *)
10440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10441 for as_dir in $PATH
10442 do
10443 IFS=$as_save_IFS
10444 test -z "$as_dir" && as_dir=.
10445 for ac_exec_ext in '' $ac_executable_extensions; do
10446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10447 ac_cv_path_python_prog_path="$as_dir/$ac_word$ac_exec_ext"
10448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10449 break 2
10450 fi
10451 done
10452 done
10453 IFS=$as_save_IFS
10454
10455 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path="missing"
10456 ;;
10457 esac
10458 fi
10459 python_prog_path=$ac_cv_path_python_prog_path
10460 if test -n "$python_prog_path"; then
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10462 $as_echo "$python_prog_path" >&6; }
10463 else
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465 $as_echo "no" >&6; }
10466 fi
10467
10468
10469 if test "${python_prog_path}" = missing; then
10470 as_fn_error $? "unable to find python program ${python_prog}" "$LINENO" 5
10471 fi
10472 ;;
10473 esac
10474 esac
10475
10476 if test "${python_prog}" != missing; then
10477 # We have a python program to use, but it may be too old.
10478 # Don't flag an error for --with-python=auto (the default).
10479 have_python_config=yes
10480 python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes`
10481 if test $? != 0; then
10482 have_python_config=failed
10483 if test "${with_python}" != auto; then
10484 as_fn_error $? "failure running python-config --includes" "$LINENO" 5
10485 fi
10486 fi
10487 python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10488 if test $? != 0; then
10489 have_python_config=failed
10490 if test "${with_python}" != auto; then
10491 as_fn_error $? "failure running python-config --ldflags" "$LINENO" 5
10492 fi
10493 fi
10494 python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10495 if test $? != 0; then
10496 have_python_config=failed
10497 if test "${with_python}" != auto; then
10498 as_fn_error $? "failure running python-config --exec-prefix" "$LINENO" 5
10499 fi
10500 fi
10501 else
10502 # We do not have a python executable we can use to determine where
10503 # to find the Python headers and libs. We cannot guess the include
10504 # path from the python_prefix either, because that include path
10505 # depends on the Python version. So, there is nothing much we can
10506 # do except assume that the compiler will be able to find those files.
10507 python_includes=
10508 python_libs=
10509 have_python_config=no
10510 fi
10511
10512 # If we have python-config, only try the configuration it provides.
10513 # Otherwise fallback on the old way of trying different versions of
10514 # python in turn.
10515
10516 have_libpython=no
10517 if test "${have_python_config}" = yes; then
10518 # Determine the Python version by extracting "-lpython<version>"
10519 # part of the python_libs. <version> is usually X.Y with X and Y
10520 # being decimal numbers, but can also be XY (seen on Windows).
10521 #
10522 # The extraction is performed using sed with a regular expression.
10523 # Initially, the regexp used was using the '?' quantifier to make
10524 # the dot in the version number optional. Unfortunately, this
10525 # does not work with non-GNU versions of sed because, because of
10526 # what looks like a limitation (the '?' quantifier does not work
10527 # with back-references). We work around this limitation by using
10528 # the '*' quantifier instead. It means that, in theory, we might
10529 # match unexpected version strings such as "-lpython2..7", but
10530 # this seems unlikely in practice. And even if that happens,
10531 # an error will be triggered later on, when checking that version
10532 # number.
10533 python_version=`echo " ${python_libs} " \
10534 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10535 case "${python_version}" in
10536 python*)
10537
10538 version=${python_version}
10539
10540 new_CPPFLAGS=${python_includes}
10541 new_LIBS=${python_libs}
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10543 $as_echo_n "checking for ${version}... " >&6; }
10544 save_CPPFLAGS=$CPPFLAGS
10545 save_LIBS=$LIBS
10546 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10547 LIBS="$new_LIBS $LIBS"
10548 found_usable_python=no
10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10550 /* end confdefs.h. */
10551 #include "Python.h"
10552 int
10553 main ()
10554 {
10555 Py_Initialize ();
10556 ;
10557 return 0;
10558 }
10559 _ACEOF
10560 if ac_fn_c_try_link "$LINENO"; then :
10561 have_libpython=${version}
10562 found_usable_python=yes
10563 PYTHON_CPPFLAGS=$new_CPPFLAGS
10564 PYTHON_LIBS=$new_LIBS
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 CPPFLAGS=$save_CPPFLAGS
10569 LIBS=$save_LIBS
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10571 $as_echo "${found_usable_python}" >&6; }
10572
10573 ;;
10574 *)
10575 as_fn_error $? "unable to determine python version from ${python_libs}" "$LINENO" 5
10576 ;;
10577 esac
10578 elif test "${have_python_config}" != failed; then
10579 if test "${have_libpython}" = no; then
10580
10581 version=python2.7
10582
10583 new_CPPFLAGS=${python_includes}
10584 new_LIBS="-lpython2.7 ${python_libs}"
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10586 $as_echo_n "checking for ${version}... " >&6; }
10587 save_CPPFLAGS=$CPPFLAGS
10588 save_LIBS=$LIBS
10589 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10590 LIBS="$new_LIBS $LIBS"
10591 found_usable_python=no
10592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10593 /* end confdefs.h. */
10594 #include "Python.h"
10595 int
10596 main ()
10597 {
10598 Py_Initialize ();
10599 ;
10600 return 0;
10601 }
10602 _ACEOF
10603 if ac_fn_c_try_link "$LINENO"; then :
10604 have_libpython=${version}
10605 found_usable_python=yes
10606 PYTHON_CPPFLAGS=$new_CPPFLAGS
10607 PYTHON_LIBS=$new_LIBS
10608 fi
10609 rm -f core conftest.err conftest.$ac_objext \
10610 conftest$ac_exeext conftest.$ac_ext
10611 CPPFLAGS=$save_CPPFLAGS
10612 LIBS=$save_LIBS
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10614 $as_echo "${found_usable_python}" >&6; }
10615
10616 fi
10617 if test "${have_libpython}" = no; then
10618
10619 version=python2.6
10620
10621 new_CPPFLAGS=${python_includes}
10622 new_LIBS="-lpython2.6 ${python_libs}"
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10624 $as_echo_n "checking for ${version}... " >&6; }
10625 save_CPPFLAGS=$CPPFLAGS
10626 save_LIBS=$LIBS
10627 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10628 LIBS="$new_LIBS $LIBS"
10629 found_usable_python=no
10630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10631 /* end confdefs.h. */
10632 #include "Python.h"
10633 int
10634 main ()
10635 {
10636 Py_Initialize ();
10637 ;
10638 return 0;
10639 }
10640 _ACEOF
10641 if ac_fn_c_try_link "$LINENO"; then :
10642 have_libpython=${version}
10643 found_usable_python=yes
10644 PYTHON_CPPFLAGS=$new_CPPFLAGS
10645 PYTHON_LIBS=$new_LIBS
10646 fi
10647 rm -f core conftest.err conftest.$ac_objext \
10648 conftest$ac_exeext conftest.$ac_ext
10649 CPPFLAGS=$save_CPPFLAGS
10650 LIBS=$save_LIBS
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10652 $as_echo "${found_usable_python}" >&6; }
10653
10654 fi
10655 if test ${have_libpython} = no; then
10656
10657 version=python2.5
10658
10659 new_CPPFLAGS=${python_includes}
10660 new_LIBS="-lpython2.5 ${python_libs}"
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10662 $as_echo_n "checking for ${version}... " >&6; }
10663 save_CPPFLAGS=$CPPFLAGS
10664 save_LIBS=$LIBS
10665 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10666 LIBS="$new_LIBS $LIBS"
10667 found_usable_python=no
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670 #include "Python.h"
10671 int
10672 main ()
10673 {
10674 Py_Initialize ();
10675 ;
10676 return 0;
10677 }
10678 _ACEOF
10679 if ac_fn_c_try_link "$LINENO"; then :
10680 have_libpython=${version}
10681 found_usable_python=yes
10682 PYTHON_CPPFLAGS=$new_CPPFLAGS
10683 PYTHON_LIBS=$new_LIBS
10684 fi
10685 rm -f core conftest.err conftest.$ac_objext \
10686 conftest$ac_exeext conftest.$ac_ext
10687 CPPFLAGS=$save_CPPFLAGS
10688 LIBS=$save_LIBS
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10690 $as_echo "${found_usable_python}" >&6; }
10691
10692 fi
10693 if test ${have_libpython} = no; then
10694
10695 version=python2.4
10696
10697 new_CPPFLAGS=${python_includes}
10698 new_LIBS="-lpython2.4 ${python_libs}"
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10700 $as_echo_n "checking for ${version}... " >&6; }
10701 save_CPPFLAGS=$CPPFLAGS
10702 save_LIBS=$LIBS
10703 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
10704 LIBS="$new_LIBS $LIBS"
10705 found_usable_python=no
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10708 #include "Python.h"
10709 int
10710 main ()
10711 {
10712 Py_Initialize ();
10713 ;
10714 return 0;
10715 }
10716 _ACEOF
10717 if ac_fn_c_try_link "$LINENO"; then :
10718 have_libpython=${version}
10719 found_usable_python=yes
10720 PYTHON_CPPFLAGS=$new_CPPFLAGS
10721 PYTHON_LIBS=$new_LIBS
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext \
10724 conftest$ac_exeext conftest.$ac_ext
10725 CPPFLAGS=$save_CPPFLAGS
10726 LIBS=$save_LIBS
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10728 $as_echo "${found_usable_python}" >&6; }
10729
10730 fi
10731 fi
10732 if test "${have_libpython}" = python2.7 -o "${have_libpython}" = python27; then
10733
10734 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10735
10736 elif test "${have_libpython}" = python2.6 -o "${have_libpython}" = python26; then
10737
10738 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10739
10740 elif test "${have_libpython}" = python2.5 -o "${have_libpython}" = python25; then
10741
10742 $as_echo "#define HAVE_LIBPYTHON2_5 1" >>confdefs.h
10743
10744 elif test "${have_libpython}" = python2.4 -o "${have_libpython}" = python24; then
10745
10746 $as_echo "#define HAVE_LIBPYTHON2_4 1" >>confdefs.h
10747
10748 fi
10749
10750 if test "${have_libpython}" = no; then
10751 case "${with_python}" in
10752 yes)
10753 as_fn_error $? "python is missing or unusable" "$LINENO" 5
10754 ;;
10755 auto)
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10757 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10758 ;;
10759 *)
10760 as_fn_error $? "no usable python found at ${with_python}" "$LINENO" 5
10761 ;;
10762 esac
10763 else
10764 if test -n "${python_prefix}"; then
10765
10766 cat >>confdefs.h <<_ACEOF
10767 #define WITH_PYTHON_PATH "${python_prefix}"
10768 _ACEOF
10769
10770
10771 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
10772 if test "x$prefix" = xNONE; then
10773 test_prefix=/usr/local
10774 else
10775 test_prefix=$prefix
10776 fi
10777 else
10778 test_prefix=$exec_prefix
10779 fi
10780 value=0
10781 case ${python_prefix} in
10782 "${test_prefix}"|"${test_prefix}/"*|\
10783 '${exec_prefix}'|'${exec_prefix}/'*)
10784 value=1
10785 ;;
10786 esac
10787
10788 cat >>confdefs.h <<_ACEOF
10789 #define PYTHON_PATH_RELOCATABLE $value
10790 _ACEOF
10791
10792
10793 fi
10794 fi
10795 fi
10796
10797 if test "${have_libpython}" != no; then
10798
10799 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10800
10801 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10802 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10803 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10804 CONFIG_INSTALL="$CONFIG_INSTALL install-python"
10805 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10806
10807 # Flags needed to compile Python code (taken from python-config --cflags).
10808 # We cannot call python-config directly because it will output whatever was
10809 # used when compiling the Python interpreter itself, including flags which
10810 # would make the python-related objects be compiled differently from the
10811 # rest of GDB (e.g., -O2 and -fPIC).
10812 if test "${GCC}" = yes; then
10813 tentative_python_cflags="-fno-strict-aliasing -fwrapv"
10814 # Python headers recommend -DNDEBUG, but it's unclear if that just
10815 # refers to building Python itself. In release mode, though, it
10816 # doesn't hurt for the Python code in gdb to follow.
10817 $development || tentative_python_cflags="$tentative_python_cflags -DNDEBUG"
10818 fi
10819
10820 if test "x${tentative_python_cflags}" != x; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10822 $as_echo_n "checking compiler flags for python code... " >&6; }
10823 for flag in ${tentative_python_cflags}; do
10824 # Check that the compiler accepts it
10825 saved_CFLAGS="$CFLAGS"
10826 CFLAGS="$CFLAGS $flag"
10827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10828 /* end confdefs.h. */
10829
10830 int
10831 main ()
10832 {
10833
10834 ;
10835 return 0;
10836 }
10837 _ACEOF
10838 if ac_fn_c_try_compile "$LINENO"; then :
10839 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
10840 fi
10841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10842 CFLAGS="$saved_CFLAGS"
10843 done
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10845 $as_echo "${PYTHON_CFLAGS}" >&6; }
10846 fi
10847
10848 # On x64 Windows, Python's include headers, and pyconfig.h in
10849 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10850 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10851 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10852 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10853 # The issue was reported to the Python community, but still isn't
10854 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10855
10856 case "$gdb_host" in
10857 mingw64)
10858 if test "${GCC}" = yes; then
10859 CPPFLAGS="$CPPFLAGS -DMS_WIN64"
10860 fi
10861 ;;
10862 esac
10863
10864 # Note that "python -m threading" cannot be used to check for
10865 # threading support due to a bug in Python 2.7.3
10866 # (http://bugs.python.org/issue15567).
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10868 $as_echo_n "checking whether python supports threads... " >&6; }
10869 saved_CPPFLAGS="${CPPFLAGS}"
10870 CPPFLAGS="${PYTHON_CPPFLAGS}"
10871 # Note that the test is reversed so that python_has_threads=yes on
10872 # unexpected failures.
10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875
10876 #include <Python.h>
10877 #ifdef WITH_THREAD
10878 # error
10879 #endif
10880
10881 _ACEOF
10882 if ac_fn_c_try_cpp "$LINENO"; then :
10883 python_has_threads=no
10884 else
10885 python_has_threads=yes
10886 fi
10887 rm -f conftest.err conftest.i conftest.$ac_ext
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10889 $as_echo "${python_has_threads}" >&6; }
10890 CPPFLAGS="${saved_CPPFLAGS}"
10891 else
10892 # Even if Python support is not compiled in, we need to have this file
10893 # included so that the "python" command, et.al., still exists.
10894 CONFIG_OBS="$CONFIG_OBS python/python.o"
10895 CONFIG_SRCS="$CONFIG_SRCS python/python.c"
10896 fi
10897
10898 # Work around Python http://bugs.python.org/issue10112. See also
10899 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10900 # no effect. Note that the only test after this that uses Python is
10901 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10902 # run without -export-dynamic too.
10903 PYTHON_LIBS=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10904
10905
10906
10907
10908 if test "${have_libpython}" != no; then
10909 HAVE_PYTHON_TRUE=
10910 HAVE_PYTHON_FALSE='#'
10911 else
10912 HAVE_PYTHON_TRUE='#'
10913 HAVE_PYTHON_FALSE=
10914 fi
10915
10916
10917 # -------------------- #
10918 # Check for libguile. #
10919 # -------------------- #
10920
10921
10922
10923
10924
10925
10926 # Check whether --with-guile was given.
10927 if test "${with_guile+set}" = set; then :
10928 withval=$with_guile;
10929 else
10930 with_guile=auto
10931 fi
10932
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10934 $as_echo_n "checking whether to use guile... " >&6; }
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10936 $as_echo "$with_guile" >&6; }
10937
10938 # Extract the first word of "pkg-config", so it can be a program name with args.
10939 set dummy pkg-config; ac_word=$2
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941 $as_echo_n "checking for $ac_word... " >&6; }
10942 if ${ac_cv_path_pkg_config_prog_path+:} false; then :
10943 $as_echo_n "(cached) " >&6
10944 else
10945 case $pkg_config_prog_path in
10946 [\\/]* | ?:[\\/]*)
10947 ac_cv_path_pkg_config_prog_path="$pkg_config_prog_path" # Let the user override the test with a path.
10948 ;;
10949 *)
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10952 do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_path_pkg_config_prog_path="$as_dir/$ac_word$ac_exec_ext"
10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10959 break 2
10960 fi
10961 done
10962 done
10963 IFS=$as_save_IFS
10964
10965 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path="missing"
10966 ;;
10967 esac
10968 fi
10969 pkg_config_prog_path=$ac_cv_path_pkg_config_prog_path
10970 if test -n "$pkg_config_prog_path"; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10972 $as_echo "$pkg_config_prog_path" >&6; }
10973 else
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975 $as_echo "no" >&6; }
10976 fi
10977
10978
10979
10980 try_guile_versions="guile-2.0"
10981 have_libguile=no
10982 case "${with_guile}" in
10983 no)
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10985 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10986 ;;
10987 auto)
10988 if test "${pkg_config_prog_path}" = "missing"; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10990 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10991 else
10992
10993 pkg_config=${pkg_config_prog_path}
10994 guile_version_list=${try_guile_versions}
10995 flag_errors=no
10996
10997 found_usable_guile=checking
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10999 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11000 for guile_version in ${guile_version_list}; do
11001 ${pkg_config} --exists ${guile_version} 2>/dev/null
11002 if test $? != 0; then
11003 continue
11004 fi
11005 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11006 if test $? != 0; then
11007 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11008 fi
11009 new_LIBS=`${pkg_config} --libs ${guile_version}`
11010 if test $? != 0; then
11011 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11012 fi
11013 found_usable_guile=${guile_version}
11014 break
11015 done
11016 if test "${found_usable_guile}" = "checking"; then
11017 if test "${flag_errors}" = "yes"; then
11018 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11019 else
11020 found_usable_guile=no
11021 fi
11022 fi
11023 if test "${found_usable_guile}" != no; then
11024 save_CPPFLAGS=$CPPFLAGS
11025 save_LIBS=$LIBS
11026 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11027 LIBS="$LIBS $new_LIBS"
11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11029 /* end confdefs.h. */
11030 #include "libguile.h"
11031 int
11032 main ()
11033 {
11034 scm_init_guile ();
11035 ;
11036 return 0;
11037 }
11038 _ACEOF
11039 if ac_fn_c_try_link "$LINENO"; then :
11040 have_libguile=yes
11041 GUILE_CPPFLAGS=$new_CPPFLAGS
11042 GUILE_LIBS=$new_LIBS
11043 else
11044 found_usable_guile=no
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext conftest.$ac_ext
11048 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11049 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11050
11051 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11052
11053
11054 fi
11055
11056 CPPFLAGS=$save_CPPFLAGS
11057 LIBS=$save_LIBS
11058 if test "${found_usable_guile}" = no; then
11059 if test "${flag_errors}" = yes; then
11060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11062 as_fn_error $? "linking guile version ${guile_version} test program failed
11063 See \`config.log' for more details" "$LINENO" 5; }
11064 fi
11065 fi
11066 fi
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11068 $as_echo "${found_usable_guile}" >&6; }
11069
11070 fi
11071 ;;
11072 yes)
11073 if test "${pkg_config_prog_path}" = "missing"; then
11074 as_fn_error $? "pkg-config not found" "$LINENO" 5
11075 fi
11076
11077 pkg_config=${pkg_config_prog_path}
11078 guile_version_list=${try_guile_versions}
11079 flag_errors=yes
11080
11081 found_usable_guile=checking
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11083 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11084 for guile_version in ${guile_version_list}; do
11085 ${pkg_config} --exists ${guile_version} 2>/dev/null
11086 if test $? != 0; then
11087 continue
11088 fi
11089 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11090 if test $? != 0; then
11091 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11092 fi
11093 new_LIBS=`${pkg_config} --libs ${guile_version}`
11094 if test $? != 0; then
11095 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11096 fi
11097 found_usable_guile=${guile_version}
11098 break
11099 done
11100 if test "${found_usable_guile}" = "checking"; then
11101 if test "${flag_errors}" = "yes"; then
11102 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11103 else
11104 found_usable_guile=no
11105 fi
11106 fi
11107 if test "${found_usable_guile}" != no; then
11108 save_CPPFLAGS=$CPPFLAGS
11109 save_LIBS=$LIBS
11110 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11111 LIBS="$LIBS $new_LIBS"
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114 #include "libguile.h"
11115 int
11116 main ()
11117 {
11118 scm_init_guile ();
11119 ;
11120 return 0;
11121 }
11122 _ACEOF
11123 if ac_fn_c_try_link "$LINENO"; then :
11124 have_libguile=yes
11125 GUILE_CPPFLAGS=$new_CPPFLAGS
11126 GUILE_LIBS=$new_LIBS
11127 else
11128 found_usable_guile=no
11129 fi
11130 rm -f core conftest.err conftest.$ac_objext \
11131 conftest$ac_exeext conftest.$ac_ext
11132 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11133 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11134
11135 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11136
11137
11138 fi
11139
11140 CPPFLAGS=$save_CPPFLAGS
11141 LIBS=$save_LIBS
11142 if test "${found_usable_guile}" = no; then
11143 if test "${flag_errors}" = yes; then
11144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11146 as_fn_error $? "linking guile version ${guile_version} test program failed
11147 See \`config.log' for more details" "$LINENO" 5; }
11148 fi
11149 fi
11150 fi
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11152 $as_echo "${found_usable_guile}" >&6; }
11153
11154 ;;
11155 [\\/]* | ?:[\\/]*)
11156 if test -x "${with_guile}"; then
11157
11158 pkg_config=${with_guile}
11159 guile_version_list=${try_guile_versions}
11160 flag_errors=yes
11161
11162 found_usable_guile=checking
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11164 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11165 for guile_version in ${guile_version_list}; do
11166 ${pkg_config} --exists ${guile_version} 2>/dev/null
11167 if test $? != 0; then
11168 continue
11169 fi
11170 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11171 if test $? != 0; then
11172 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11173 fi
11174 new_LIBS=`${pkg_config} --libs ${guile_version}`
11175 if test $? != 0; then
11176 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11177 fi
11178 found_usable_guile=${guile_version}
11179 break
11180 done
11181 if test "${found_usable_guile}" = "checking"; then
11182 if test "${flag_errors}" = "yes"; then
11183 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11184 else
11185 found_usable_guile=no
11186 fi
11187 fi
11188 if test "${found_usable_guile}" != no; then
11189 save_CPPFLAGS=$CPPFLAGS
11190 save_LIBS=$LIBS
11191 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11192 LIBS="$LIBS $new_LIBS"
11193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11194 /* end confdefs.h. */
11195 #include "libguile.h"
11196 int
11197 main ()
11198 {
11199 scm_init_guile ();
11200 ;
11201 return 0;
11202 }
11203 _ACEOF
11204 if ac_fn_c_try_link "$LINENO"; then :
11205 have_libguile=yes
11206 GUILE_CPPFLAGS=$new_CPPFLAGS
11207 GUILE_LIBS=$new_LIBS
11208 else
11209 found_usable_guile=no
11210 fi
11211 rm -f core conftest.err conftest.$ac_objext \
11212 conftest$ac_exeext conftest.$ac_ext
11213 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11214 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11215
11216 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11217
11218
11219 fi
11220
11221 CPPFLAGS=$save_CPPFLAGS
11222 LIBS=$save_LIBS
11223 if test "${found_usable_guile}" = no; then
11224 if test "${flag_errors}" = yes; then
11225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11227 as_fn_error $? "linking guile version ${guile_version} test program failed
11228 See \`config.log' for more details" "$LINENO" 5; }
11229 fi
11230 fi
11231 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11233 $as_echo "${found_usable_guile}" >&6; }
11234
11235 else
11236 as_fn_error $? "Guile config program not executable: ${with_guile}" "$LINENO" 5
11237 fi
11238 ;;
11239 "" | */*)
11240 # Disallow --with=guile="" and --with-guile=foo/bar.
11241 as_fn_error $? "invalid value for --with-guile" "$LINENO" 5
11242 ;;
11243 *)
11244 # A space separate list of guile versions to try, in order.
11245 if test "${pkg_config_prog_path}" = "missing"; then
11246 as_fn_error $? "pkg-config not found" "$LINENO" 5
11247 fi
11248
11249 pkg_config=${pkg_config_prog_path}
11250 guile_version_list=${with_guile}
11251 flag_errors=yes
11252
11253 found_usable_guile=checking
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11255 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11256 for guile_version in ${guile_version_list}; do
11257 ${pkg_config} --exists ${guile_version} 2>/dev/null
11258 if test $? != 0; then
11259 continue
11260 fi
11261 new_CPPFLAGS=`${pkg_config} --cflags ${guile_version}`
11262 if test $? != 0; then
11263 as_fn_error $? "failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11264 fi
11265 new_LIBS=`${pkg_config} --libs ${guile_version}`
11266 if test $? != 0; then
11267 as_fn_error $? "failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11268 fi
11269 found_usable_guile=${guile_version}
11270 break
11271 done
11272 if test "${found_usable_guile}" = "checking"; then
11273 if test "${flag_errors}" = "yes"; then
11274 as_fn_error $? "unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11275 else
11276 found_usable_guile=no
11277 fi
11278 fi
11279 if test "${found_usable_guile}" != no; then
11280 save_CPPFLAGS=$CPPFLAGS
11281 save_LIBS=$LIBS
11282 CPPFLAGS="$CPPFLAGS $new_CPPFLAGS"
11283 LIBS="$LIBS $new_LIBS"
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11286 #include "libguile.h"
11287 int
11288 main ()
11289 {
11290 scm_init_guile ();
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11296 have_libguile=yes
11297 GUILE_CPPFLAGS=$new_CPPFLAGS
11298 GUILE_LIBS=$new_LIBS
11299 else
11300 found_usable_guile=no
11301 fi
11302 rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
11304 ac_fn_c_check_func "$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11305 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes; then :
11306
11307 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11308
11309
11310 fi
11311
11312 CPPFLAGS=$save_CPPFLAGS
11313 LIBS=$save_LIBS
11314 if test "${found_usable_guile}" = no; then
11315 if test "${flag_errors}" = yes; then
11316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11318 as_fn_error $? "linking guile version ${guile_version} test program failed
11319 See \`config.log' for more details" "$LINENO" 5; }
11320 fi
11321 fi
11322 fi
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11324 $as_echo "${found_usable_guile}" >&6; }
11325
11326 ;;
11327 esac
11328
11329 if test "${have_libguile}" != no; then
11330 case "${with_guile}" in
11331 [\\/]* | ?:[\\/]*)
11332
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11334 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11335 if ${ac_cv_guild_program_name+:} false; then :
11336 $as_echo_n "(cached) " >&6
11337 else
11338 ac_cv_guild_program_name="`"${with_guile}" --variable guild "${guile_version}"`"
11339
11340 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11341 # the 'guild' and 'bindir' variables. In that case, try to guess
11342 # what the program name is, at the risk of getting it wrong if
11343 # Guile was configured with '--program-suffix' or similar.
11344 if test "x$ac_cv_guild_program_name" = "x"; then
11345 guile_exec_prefix="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11346 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11347 fi
11348
11349 fi
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11351 $as_echo "$ac_cv_guild_program_name" >&6; }
11352
11353 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11354 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11355 fi
11356
11357 GUILD="$ac_cv_guild_program_name"
11358
11359
11360 ;;
11361 *)
11362
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11364 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11365 if ${ac_cv_guild_program_name+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367 else
11368 ac_cv_guild_program_name="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11369
11370 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11371 # the 'guild' and 'bindir' variables. In that case, try to guess
11372 # what the program name is, at the risk of getting it wrong if
11373 # Guile was configured with '--program-suffix' or similar.
11374 if test "x$ac_cv_guild_program_name" = "x"; then
11375 guile_exec_prefix="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11376 ac_cv_guild_program_name="$guile_exec_prefix/bin/guild"
11377 fi
11378
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11381 $as_echo "$ac_cv_guild_program_name" >&6; }
11382
11383 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11384 as_fn_error $? "'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11385 fi
11386
11387 GUILD="$ac_cv_guild_program_name"
11388
11389
11390 ;;
11391 esac
11392
11393
11394 if test "$cross_compiling" = no; then
11395 GUILD_TARGET_FLAG=
11396 else
11397 GUILD_TARGET_FLAG="--target=$host"
11398 fi
11399
11400
11401
11402
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11404 $as_echo_n "checking whether guild supports this host... " >&6; }
11405 if ${ac_cv_guild_ok+:} false; then :
11406 $as_echo_n "(cached) " >&6
11407 else
11408 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11409 if "$ac_cv_guild_program_name" compile $GUILD_TARGET_FLAG -o conftest.go "$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11410 ac_cv_guild_ok=yes
11411 else
11412 ac_cv_guild_ok=no
11413 fi
11414 fi
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11416 $as_echo "$ac_cv_guild_ok" >&6; }
11417
11418 if test "$ac_cv_guild_ok" = no; then
11419 have_libguile=no
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11421 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11422 fi
11423 fi
11424
11425 if test "${have_libguile}" != no; then
11426
11427 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11428
11429 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11430 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11431 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11432 CONFIG_INSTALL="$CONFIG_INSTALL install-guile"
11433 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11434
11435 save_LIBS="$LIBS"
11436 save_CPPFLAGS="$CPPFLAGS"
11437 LIBS="$GUILE_LIBS"
11438 CPPFLAGS="$GUILE_CPPFLAGS"
11439 for ac_func in scm_new_smob
11440 do :
11441 ac_fn_c_check_func "$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11442 if test "x$ac_cv_func_scm_new_smob" = xyes; then :
11443 cat >>confdefs.h <<_ACEOF
11444 #define HAVE_SCM_NEW_SMOB 1
11445 _ACEOF
11446
11447 fi
11448 done
11449
11450 LIBS="$save_LIBS"
11451 CPPFLAGS="$save_CPPFLAGS"
11452 else
11453 # Even if Guile support is not compiled in, we need to have these files
11454 # included.
11455 CONFIG_OBS="$CONFIG_OBS guile/guile.o"
11456 CONFIG_SRCS="$CONFIG_SRCS guile/guile.c"
11457 fi
11458
11459
11460 if test "${have_libguile}" != no; then
11461 HAVE_GUILE_TRUE=
11462 HAVE_GUILE_FALSE='#'
11463 else
11464 HAVE_GUILE_TRUE='#'
11465 HAVE_GUILE_FALSE=
11466 fi
11467
11468
11469 # --------------------- #
11470 # Check for libmcheck. #
11471 # --------------------- #
11472
11473 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11474 # but turn it off if Python is enabled with threads, since -lmcheck is
11475 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11476 # and for releases.
11477 if test \( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \) \
11478 && $development; then
11479 libmcheck_default=yes
11480 else
11481 libmcheck_default=no
11482 fi
11483
11484 # Check whether --enable-libmcheck was given.
11485 if test "${enable_libmcheck+set}" = set; then :
11486 enableval=$enable_libmcheck; case "${enableval}" in
11487 yes | y) ENABLE_LIBMCHECK="yes" ;;
11488 no | n) ENABLE_LIBMCHECK="no" ;;
11489 *) as_fn_error $? "bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11490 esac
11491 fi
11492
11493
11494 if test -z "${ENABLE_LIBMCHECK}"; then
11495 ENABLE_LIBMCHECK=${libmcheck_default}
11496 fi
11497
11498 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11500 $as_echo_n "checking for main in -lmcheck... " >&6; }
11501 if ${ac_cv_lib_mcheck_main+:} false; then :
11502 $as_echo_n "(cached) " >&6
11503 else
11504 ac_check_lib_save_LIBS=$LIBS
11505 LIBS="-lmcheck $LIBS"
11506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11507 /* end confdefs.h. */
11508
11509
11510 int
11511 main ()
11512 {
11513 return main ();
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519 ac_cv_lib_mcheck_main=yes
11520 else
11521 ac_cv_lib_mcheck_main=no
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11528 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11529 if test "x$ac_cv_lib_mcheck_main" = xyes; then :
11530 cat >>confdefs.h <<_ACEOF
11531 #define HAVE_LIBMCHECK 1
11532 _ACEOF
11533
11534 LIBS="-lmcheck $LIBS"
11535
11536 fi
11537
11538 fi
11539
11540
11541 if test "$ENABLE_LIBMCHECK" = "yes" \
11542 -a "${have_libpython}" != "no" \
11543 -a "${python_has_threads}" = "yes" ; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11545 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11546 fi
11547
11548
11549 # Check whether --with-intel_pt was given.
11550 if test "${with_intel_pt+set}" = set; then :
11551 withval=$with_intel_pt;
11552 else
11553 with_intel_pt=auto
11554 fi
11555
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11557 $as_echo_n "checking whether to use intel pt... " >&6; }
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11559 $as_echo "$with_intel_pt" >&6; }
11560
11561 if test "${with_intel_pt}" = no; then
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11563 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11564 HAVE_LIBIPT=no
11565 else
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11568
11569 #include <linux/perf_event.h>
11570 #ifndef PERF_ATTR_SIZE_VER5
11571 # error
11572 #endif
11573
11574 _ACEOF
11575 if ac_fn_c_try_cpp "$LINENO"; then :
11576 perf_event=yes
11577 else
11578 perf_event=no
11579 fi
11580 rm -f conftest.err conftest.i conftest.$ac_ext
11581 if test "$perf_event" != yes; then
11582 if test "$with_intel_pt" = yes; then
11583 as_fn_error $? "linux/perf_event.h missing or too old" "$LINENO" 5
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11586 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11587 fi
11588 fi
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598 use_additional=yes
11599
11600 acl_save_prefix="$prefix"
11601 prefix="$acl_final_prefix"
11602 acl_save_exec_prefix="$exec_prefix"
11603 exec_prefix="$acl_final_exec_prefix"
11604
11605 eval additional_includedir=\"$includedir\"
11606 eval additional_libdir=\"$libdir\"
11607
11608 exec_prefix="$acl_save_exec_prefix"
11609 prefix="$acl_save_prefix"
11610
11611
11612 # Check whether --with-libipt-prefix was given.
11613 if test "${with_libipt_prefix+set}" = set; then :
11614 withval=$with_libipt_prefix;
11615 if test "X$withval" = "Xno"; then
11616 use_additional=no
11617 else
11618 if test "X$withval" = "X"; then
11619
11620 acl_save_prefix="$prefix"
11621 prefix="$acl_final_prefix"
11622 acl_save_exec_prefix="$exec_prefix"
11623 exec_prefix="$acl_final_exec_prefix"
11624
11625 eval additional_includedir=\"$includedir\"
11626 eval additional_libdir=\"$libdir\"
11627
11628 exec_prefix="$acl_save_exec_prefix"
11629 prefix="$acl_save_prefix"
11630
11631 else
11632 additional_includedir="$withval/include"
11633 additional_libdir="$withval/lib"
11634 fi
11635 fi
11636
11637 fi
11638
11639 LIBIPT=
11640 LTLIBIPT=
11641 INCIPT=
11642 rpathdirs=
11643 ltrpathdirs=
11644 names_already_handled=
11645 names_next_round='ipt '
11646 while test -n "$names_next_round"; do
11647 names_this_round="$names_next_round"
11648 names_next_round=
11649 for name in $names_this_round; do
11650 already_handled=
11651 for n in $names_already_handled; do
11652 if test "$n" = "$name"; then
11653 already_handled=yes
11654 break
11655 fi
11656 done
11657 if test -z "$already_handled"; then
11658 names_already_handled="$names_already_handled $name"
11659 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11660 eval value=\"\$HAVE_LIB$uppername\"
11661 if test -n "$value"; then
11662 if test "$value" = yes; then
11663 eval value=\"\$LIB$uppername\"
11664 test -z "$value" || LIBIPT="${LIBIPT}${LIBIPT:+ }$value"
11665 eval value=\"\$LTLIB$uppername\"
11666 test -z "$value" || LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$value"
11667 else
11668 :
11669 fi
11670 else
11671 found_dir=
11672 found_la=
11673 found_so=
11674 found_a=
11675 if test $use_additional = yes; then
11676 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11677 found_dir="$additional_libdir"
11678 found_so="$additional_libdir/lib$name.$shlibext"
11679 if test -f "$additional_libdir/lib$name.la"; then
11680 found_la="$additional_libdir/lib$name.la"
11681 fi
11682 else
11683 if test -f "$additional_libdir/lib$name.$libext"; then
11684 found_dir="$additional_libdir"
11685 found_a="$additional_libdir/lib$name.$libext"
11686 if test -f "$additional_libdir/lib$name.la"; then
11687 found_la="$additional_libdir/lib$name.la"
11688 fi
11689 fi
11690 fi
11691 fi
11692 if test "X$found_dir" = "X"; then
11693 for x in $LDFLAGS $LTLIBIPT; do
11694
11695 acl_save_prefix="$prefix"
11696 prefix="$acl_final_prefix"
11697 acl_save_exec_prefix="$exec_prefix"
11698 exec_prefix="$acl_final_exec_prefix"
11699 eval x=\"$x\"
11700 exec_prefix="$acl_save_exec_prefix"
11701 prefix="$acl_save_prefix"
11702
11703 case "$x" in
11704 -L*)
11705 dir=`echo "X$x" | sed -e 's/^X-L//'`
11706 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11707 found_dir="$dir"
11708 found_so="$dir/lib$name.$shlibext"
11709 if test -f "$dir/lib$name.la"; then
11710 found_la="$dir/lib$name.la"
11711 fi
11712 else
11713 if test -f "$dir/lib$name.$libext"; then
11714 found_dir="$dir"
11715 found_a="$dir/lib$name.$libext"
11716 if test -f "$dir/lib$name.la"; then
11717 found_la="$dir/lib$name.la"
11718 fi
11719 fi
11720 fi
11721 ;;
11722 esac
11723 if test "X$found_dir" != "X"; then
11724 break
11725 fi
11726 done
11727 fi
11728 if test "X$found_dir" != "X"; then
11729 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11730 if test "X$found_so" != "X"; then
11731 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11732 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11733 else
11734 haveit=
11735 for x in $ltrpathdirs; do
11736 if test "X$x" = "X$found_dir"; then
11737 haveit=yes
11738 break
11739 fi
11740 done
11741 if test -z "$haveit"; then
11742 ltrpathdirs="$ltrpathdirs $found_dir"
11743 fi
11744 if test "$hardcode_direct" = yes; then
11745 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11746 else
11747 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11748 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11749 haveit=
11750 for x in $rpathdirs; do
11751 if test "X$x" = "X$found_dir"; then
11752 haveit=yes
11753 break
11754 fi
11755 done
11756 if test -z "$haveit"; then
11757 rpathdirs="$rpathdirs $found_dir"
11758 fi
11759 else
11760 haveit=
11761 for x in $LDFLAGS $LIBIPT; do
11762
11763 acl_save_prefix="$prefix"
11764 prefix="$acl_final_prefix"
11765 acl_save_exec_prefix="$exec_prefix"
11766 exec_prefix="$acl_final_exec_prefix"
11767 eval x=\"$x\"
11768 exec_prefix="$acl_save_exec_prefix"
11769 prefix="$acl_save_prefix"
11770
11771 if test "X$x" = "X-L$found_dir"; then
11772 haveit=yes
11773 break
11774 fi
11775 done
11776 if test -z "$haveit"; then
11777 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11778 fi
11779 if test "$hardcode_minus_L" != no; then
11780 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_so"
11781 else
11782 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11783 fi
11784 fi
11785 fi
11786 fi
11787 else
11788 if test "X$found_a" != "X"; then
11789 LIBIPT="${LIBIPT}${LIBIPT:+ }$found_a"
11790 else
11791 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11792 fi
11793 fi
11794 additional_includedir=
11795 case "$found_dir" in
11796 */lib | */lib/)
11797 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11798 additional_includedir="$basedir/include"
11799 ;;
11800 esac
11801 if test "X$additional_includedir" != "X"; then
11802 if test "X$additional_includedir" != "X/usr/include"; then
11803 haveit=
11804 if test "X$additional_includedir" = "X/usr/local/include"; then
11805 if test -n "$GCC"; then
11806 case $host_os in
11807 linux*) haveit=yes;;
11808 esac
11809 fi
11810 fi
11811 if test -z "$haveit"; then
11812 for x in $CPPFLAGS $INCIPT; do
11813
11814 acl_save_prefix="$prefix"
11815 prefix="$acl_final_prefix"
11816 acl_save_exec_prefix="$exec_prefix"
11817 exec_prefix="$acl_final_exec_prefix"
11818 eval x=\"$x\"
11819 exec_prefix="$acl_save_exec_prefix"
11820 prefix="$acl_save_prefix"
11821
11822 if test "X$x" = "X-I$additional_includedir"; then
11823 haveit=yes
11824 break
11825 fi
11826 done
11827 if test -z "$haveit"; then
11828 if test -d "$additional_includedir"; then
11829 INCIPT="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11830 fi
11831 fi
11832 fi
11833 fi
11834 fi
11835 if test -n "$found_la"; then
11836 save_libdir="$libdir"
11837 case "$found_la" in
11838 */* | *\\*) . "$found_la" ;;
11839 *) . "./$found_la" ;;
11840 esac
11841 libdir="$save_libdir"
11842 for dep in $dependency_libs; do
11843 case "$dep" in
11844 -L*)
11845 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11846 if test "X$additional_libdir" != "X/usr/lib"; then
11847 haveit=
11848 if test "X$additional_libdir" = "X/usr/local/lib"; then
11849 if test -n "$GCC"; then
11850 case $host_os in
11851 linux*) haveit=yes;;
11852 esac
11853 fi
11854 fi
11855 if test -z "$haveit"; then
11856 haveit=
11857 for x in $LDFLAGS $LIBIPT; do
11858
11859 acl_save_prefix="$prefix"
11860 prefix="$acl_final_prefix"
11861 acl_save_exec_prefix="$exec_prefix"
11862 exec_prefix="$acl_final_exec_prefix"
11863 eval x=\"$x\"
11864 exec_prefix="$acl_save_exec_prefix"
11865 prefix="$acl_save_prefix"
11866
11867 if test "X$x" = "X-L$additional_libdir"; then
11868 haveit=yes
11869 break
11870 fi
11871 done
11872 if test -z "$haveit"; then
11873 if test -d "$additional_libdir"; then
11874 LIBIPT="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11875 fi
11876 fi
11877 haveit=
11878 for x in $LDFLAGS $LTLIBIPT; do
11879
11880 acl_save_prefix="$prefix"
11881 prefix="$acl_final_prefix"
11882 acl_save_exec_prefix="$exec_prefix"
11883 exec_prefix="$acl_final_exec_prefix"
11884 eval x=\"$x\"
11885 exec_prefix="$acl_save_exec_prefix"
11886 prefix="$acl_save_prefix"
11887
11888 if test "X$x" = "X-L$additional_libdir"; then
11889 haveit=yes
11890 break
11891 fi
11892 done
11893 if test -z "$haveit"; then
11894 if test -d "$additional_libdir"; then
11895 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11896 fi
11897 fi
11898 fi
11899 fi
11900 ;;
11901 -R*)
11902 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11903 if test "$enable_rpath" != no; then
11904 haveit=
11905 for x in $rpathdirs; do
11906 if test "X$x" = "X$dir"; then
11907 haveit=yes
11908 break
11909 fi
11910 done
11911 if test -z "$haveit"; then
11912 rpathdirs="$rpathdirs $dir"
11913 fi
11914 haveit=
11915 for x in $ltrpathdirs; do
11916 if test "X$x" = "X$dir"; then
11917 haveit=yes
11918 break
11919 fi
11920 done
11921 if test -z "$haveit"; then
11922 ltrpathdirs="$ltrpathdirs $dir"
11923 fi
11924 fi
11925 ;;
11926 -l*)
11927 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11928 ;;
11929 *.la)
11930 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11931 ;;
11932 *)
11933 LIBIPT="${LIBIPT}${LIBIPT:+ }$dep"
11934 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11935 ;;
11936 esac
11937 done
11938 fi
11939 else
11940 LIBIPT="${LIBIPT}${LIBIPT:+ }-l$name"
11941 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11942 fi
11943 fi
11944 fi
11945 done
11946 done
11947 if test "X$rpathdirs" != "X"; then
11948 if test -n "$hardcode_libdir_separator"; then
11949 alldirs=
11950 for found_dir in $rpathdirs; do
11951 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11952 done
11953 acl_save_libdir="$libdir"
11954 libdir="$alldirs"
11955 eval flag=\"$hardcode_libdir_flag_spec\"
11956 libdir="$acl_save_libdir"
11957 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11958 else
11959 for found_dir in $rpathdirs; do
11960 acl_save_libdir="$libdir"
11961 libdir="$found_dir"
11962 eval flag=\"$hardcode_libdir_flag_spec\"
11963 libdir="$acl_save_libdir"
11964 LIBIPT="${LIBIPT}${LIBIPT:+ }$flag"
11965 done
11966 fi
11967 fi
11968 if test "X$ltrpathdirs" != "X"; then
11969 for found_dir in $ltrpathdirs; do
11970 LTLIBIPT="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11971 done
11972 fi
11973
11974
11975 ac_save_CPPFLAGS="$CPPFLAGS"
11976
11977 for element in $INCIPT; do
11978 haveit=
11979 for x in $CPPFLAGS; do
11980
11981 acl_save_prefix="$prefix"
11982 prefix="$acl_final_prefix"
11983 acl_save_exec_prefix="$exec_prefix"
11984 exec_prefix="$acl_final_exec_prefix"
11985 eval x=\"$x\"
11986 exec_prefix="$acl_save_exec_prefix"
11987 prefix="$acl_save_prefix"
11988
11989 if test "X$x" = "X$element"; then
11990 haveit=yes
11991 break
11992 fi
11993 done
11994 if test -z "$haveit"; then
11995 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11996 fi
11997 done
11998
11999
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
12001 $as_echo_n "checking for libipt... " >&6; }
12002 if ${ac_cv_libipt+:} false; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005
12006 ac_save_LIBS="$LIBS"
12007 LIBS="$LIBS $LIBIPT"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010 #include "intel-pt.h"
12011 int
12012 main ()
12013 {
12014 pt_insn_alloc_decoder (0);
12015 ;
12016 return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 ac_cv_libipt=yes
12021 else
12022 ac_cv_libipt=no
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS="$ac_save_LIBS"
12027
12028 fi
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
12030 $as_echo "$ac_cv_libipt" >&6; }
12031 if test "$ac_cv_libipt" = yes; then
12032 HAVE_LIBIPT=yes
12033
12034 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
12035
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
12037 $as_echo_n "checking how to link with libipt... " >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
12039 $as_echo "$LIBIPT" >&6; }
12040 else
12041 HAVE_LIBIPT=no
12042 CPPFLAGS="$ac_save_CPPFLAGS"
12043 LIBIPT=
12044 LTLIBIPT=
12045 fi
12046
12047
12048
12049
12050
12051
12052 if test "$HAVE_LIBIPT" != yes; then
12053 if test "$with_intel_pt" = yes; then
12054 as_fn_error $? "libipt is missing or unusable" "$LINENO" 5
12055 else
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12057 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12058 fi
12059 else
12060 save_LIBS=$LIBS
12061 LIBS="$LIBS $LIBIPT"
12062 for ac_func in pt_insn_event
12063 do :
12064 ac_fn_c_check_func "$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
12065 if test "x$ac_cv_func_pt_insn_event" = xyes; then :
12066 cat >>confdefs.h <<_ACEOF
12067 #define HAVE_PT_INSN_EVENT 1
12068 _ACEOF
12069
12070 fi
12071 done
12072
12073 ac_fn_c_check_member "$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12074 "
12075 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes; then :
12076
12077 cat >>confdefs.h <<_ACEOF
12078 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12079 _ACEOF
12080
12081
12082 fi
12083 ac_fn_c_check_member "$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12084 "
12085 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes; then :
12086
12087 cat >>confdefs.h <<_ACEOF
12088 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12089 _ACEOF
12090
12091
12092 fi
12093
12094 LIBS=$save_LIBS
12095 fi
12096 fi
12097
12098 # ------------------------- #
12099 # Checks for header files. #
12100 # ------------------------- #
12101
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12103 $as_echo_n "checking for ANSI C header files... " >&6; }
12104 if ${ac_cv_header_stdc+:} false; then :
12105 $as_echo_n "(cached) " >&6
12106 else
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109 #include <stdlib.h>
12110 #include <stdarg.h>
12111 #include <string.h>
12112 #include <float.h>
12113
12114 int
12115 main ()
12116 {
12117
12118 ;
12119 return 0;
12120 }
12121 _ACEOF
12122 if ac_fn_c_try_compile "$LINENO"; then :
12123 ac_cv_header_stdc=yes
12124 else
12125 ac_cv_header_stdc=no
12126 fi
12127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12128
12129 if test $ac_cv_header_stdc = yes; then
12130 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <string.h>
12134
12135 _ACEOF
12136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12137 $EGREP "memchr" >/dev/null 2>&1; then :
12138
12139 else
12140 ac_cv_header_stdc=no
12141 fi
12142 rm -f conftest*
12143
12144 fi
12145
12146 if test $ac_cv_header_stdc = yes; then
12147 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #include <stdlib.h>
12151
12152 _ACEOF
12153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12154 $EGREP "free" >/dev/null 2>&1; then :
12155
12156 else
12157 ac_cv_header_stdc=no
12158 fi
12159 rm -f conftest*
12160
12161 fi
12162
12163 if test $ac_cv_header_stdc = yes; then
12164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12165 if test "$cross_compiling" = yes; then :
12166 :
12167 else
12168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169 /* end confdefs.h. */
12170 #include <ctype.h>
12171 #include <stdlib.h>
12172 #if ((' ' & 0x0FF) == 0x020)
12173 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12174 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12175 #else
12176 # define ISLOWER(c) \
12177 (('a' <= (c) && (c) <= 'i') \
12178 || ('j' <= (c) && (c) <= 'r') \
12179 || ('s' <= (c) && (c) <= 'z'))
12180 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12181 #endif
12182
12183 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12184 int
12185 main ()
12186 {
12187 int i;
12188 for (i = 0; i < 256; i++)
12189 if (XOR (islower (i), ISLOWER (i))
12190 || toupper (i) != TOUPPER (i))
12191 return 2;
12192 return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_run "$LINENO"; then :
12196
12197 else
12198 ac_cv_header_stdc=no
12199 fi
12200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12201 conftest.$ac_objext conftest.beam conftest.$ac_ext
12202 fi
12203
12204 fi
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12207 $as_echo "$ac_cv_header_stdc" >&6; }
12208 if test $ac_cv_header_stdc = yes; then
12209
12210 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12211
12212 fi
12213
12214 # elf_hp.h is for HP/UX 64-bit shared library support.
12215 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12216 thread_db.h linux/elf.h \
12217 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12218 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12219 sys/reg.h sys/debugreg.h sys/select.h \
12220 termios.h elf_hp.h \
12221 dlfcn.h
12222 do :
12223 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12224 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12225 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12226 cat >>confdefs.h <<_ACEOF
12227 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12228 _ACEOF
12229
12230 fi
12231
12232 done
12233
12234 for ac_header in sys/user.h
12235 do :
12236 ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12237 # include <sys/param.h>
12238 #endif
12239
12240 "
12241 if test "x$ac_cv_header_sys_user_h" = xyes; then :
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_SYS_USER_H 1
12244 _ACEOF
12245
12246 fi
12247
12248 done
12249
12250
12251 for ac_header in curses.h cursesX.h ncurses.h ncursesw/ncurses.h ncurses/ncurses.h ncurses/term.h
12252 do :
12253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12254 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12256 cat >>confdefs.h <<_ACEOF
12257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12258 _ACEOF
12259
12260 fi
12261
12262 done
12263
12264 for ac_header in term.h
12265 do :
12266 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12267 # include <curses.h>
12268 #endif
12269
12270 "
12271 if test "x$ac_cv_header_term_h" = xyes; then :
12272 cat >>confdefs.h <<_ACEOF
12273 #define HAVE_TERM_H 1
12274 _ACEOF
12275
12276 fi
12277
12278 done
12279
12280
12281 # ------------------------- #
12282 # Checks for declarations. #
12283 # ------------------------- #
12284
12285
12286 # Check for presence and size of long long.
12287 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12288 if test "x$ac_cv_type_long_long" = xyes; then :
12289
12290 cat >>confdefs.h <<_ACEOF
12291 #define HAVE_LONG_LONG 1
12292 _ACEOF
12293
12294 # The cast to long int works around a bug in the HP C Compiler
12295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12297 # This bug is HP SR number 8606223364.
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12299 $as_echo_n "checking size of long long... " >&6; }
12300 if ${ac_cv_sizeof_long_long+:} false; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12304
12305 else
12306 if test "$ac_cv_type_long_long" = yes; then
12307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12309 as_fn_error 77 "cannot compute sizeof (long long)
12310 See \`config.log' for more details" "$LINENO" 5; }
12311 else
12312 ac_cv_sizeof_long_long=0
12313 fi
12314 fi
12315
12316 fi
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12318 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12319
12320
12321
12322 cat >>confdefs.h <<_ACEOF
12323 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12324 _ACEOF
12325
12326
12327 fi
12328
12329
12330 as_ac_Symbol=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12331 ac_fn_c_check_decl "$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12332 if eval test \"x\$"$as_ac_Symbol"\" = x"yes"; then :
12333 ac_have_decl=1
12334 else
12335 ac_have_decl=0
12336 fi
12337
12338 cat >>confdefs.h <<_ACEOF
12339 #define HAVE_DECL_BASENAME $ac_have_decl
12340 _ACEOF
12341 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12342 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12343 ac_have_decl=1
12344 else
12345 ac_have_decl=0
12346 fi
12347
12348 cat >>confdefs.h <<_ACEOF
12349 #define HAVE_DECL_FFS $ac_have_decl
12350 _ACEOF
12351 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12352 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12353 ac_have_decl=1
12354 else
12355 ac_have_decl=0
12356 fi
12357
12358 cat >>confdefs.h <<_ACEOF
12359 #define HAVE_DECL_ASPRINTF $ac_have_decl
12360 _ACEOF
12361 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12362 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12363 ac_have_decl=1
12364 else
12365 ac_have_decl=0
12366 fi
12367
12368 cat >>confdefs.h <<_ACEOF
12369 #define HAVE_DECL_VASPRINTF $ac_have_decl
12370 _ACEOF
12371 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12372 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12373 ac_have_decl=1
12374 else
12375 ac_have_decl=0
12376 fi
12377
12378 cat >>confdefs.h <<_ACEOF
12379 #define HAVE_DECL_SNPRINTF $ac_have_decl
12380 _ACEOF
12381 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12382 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
12383 ac_have_decl=1
12384 else
12385 ac_have_decl=0
12386 fi
12387
12388 cat >>confdefs.h <<_ACEOF
12389 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12390 _ACEOF
12391
12392 ac_fn_c_check_decl "$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12393 if test "x$ac_cv_have_decl_strtol" = xyes; then :
12394 ac_have_decl=1
12395 else
12396 ac_have_decl=0
12397 fi
12398
12399 cat >>confdefs.h <<_ACEOF
12400 #define HAVE_DECL_STRTOL $ac_have_decl
12401 _ACEOF
12402 ac_fn_c_check_decl "$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12403 if test "x$ac_cv_have_decl_strtoul" = xyes; then :
12404 ac_have_decl=1
12405 else
12406 ac_have_decl=0
12407 fi
12408
12409 cat >>confdefs.h <<_ACEOF
12410 #define HAVE_DECL_STRTOUL $ac_have_decl
12411 _ACEOF
12412 ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12413 if test "x$ac_cv_have_decl_strtoll" = xyes; then :
12414 ac_have_decl=1
12415 else
12416 ac_have_decl=0
12417 fi
12418
12419 cat >>confdefs.h <<_ACEOF
12420 #define HAVE_DECL_STRTOLL $ac_have_decl
12421 _ACEOF
12422 ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12423 if test "x$ac_cv_have_decl_strtoull" = xyes; then :
12424 ac_have_decl=1
12425 else
12426 ac_have_decl=0
12427 fi
12428
12429 cat >>confdefs.h <<_ACEOF
12430 #define HAVE_DECL_STRTOULL $ac_have_decl
12431 _ACEOF
12432
12433 ac_fn_c_check_decl "$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12434 if test "x$ac_cv_have_decl_strverscmp" = xyes; then :
12435 ac_have_decl=1
12436 else
12437 ac_have_decl=0
12438 fi
12439
12440 cat >>confdefs.h <<_ACEOF
12441 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12442 _ACEOF
12443
12444
12445
12446 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12447 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
12448 ac_have_decl=1
12449 else
12450 ac_have_decl=0
12451 fi
12452
12453 cat >>confdefs.h <<_ACEOF
12454 #define HAVE_DECL_SNPRINTF $ac_have_decl
12455 _ACEOF
12456
12457
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12459 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12460 if ${am_cv_val_LC_MESSAGES+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465 #include <locale.h>
12466 int
12467 main ()
12468 {
12469 return LC_MESSAGES
12470 ;
12471 return 0;
12472 }
12473 _ACEOF
12474 if ac_fn_c_try_link "$LINENO"; then :
12475 am_cv_val_LC_MESSAGES=yes
12476 else
12477 am_cv_val_LC_MESSAGES=no
12478 fi
12479 rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12483 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12484 if test $am_cv_val_LC_MESSAGES = yes; then
12485
12486 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12487
12488 fi
12489
12490
12491 # ----------------------- #
12492 # Checks for structures. #
12493 # ----------------------- #
12494
12495 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12496 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
12497
12498 cat >>confdefs.h <<_ACEOF
12499 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12500 _ACEOF
12501
12502
12503 fi
12504 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12505 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
12506
12507 cat >>confdefs.h <<_ACEOF
12508 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12509 _ACEOF
12510
12511
12512 fi
12513
12514
12515 # ------------------ #
12516 # Checks for types. #
12517 # ------------------ #
12518
12519 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12520 #include <sys/socket.h>
12521
12522 "
12523 if test "x$ac_cv_type_socklen_t" = xyes; then :
12524
12525 cat >>confdefs.h <<_ACEOF
12526 #define HAVE_SOCKLEN_T 1
12527 _ACEOF
12528
12529
12530 fi
12531
12532
12533 # ------------------------------------- #
12534 # Checks for compiler characteristics. #
12535 # ------------------------------------- #
12536
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12538 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12539 if ${ac_cv_c_const+:} false; then :
12540 $as_echo_n "(cached) " >&6
12541 else
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12544
12545 int
12546 main ()
12547 {
12548
12549 #ifndef __cplusplus
12550 /* Ultrix mips cc rejects this sort of thing. */
12551 typedef int charset[2];
12552 const charset cs = { 0, 0 };
12553 /* SunOS 4.1.1 cc rejects this. */
12554 char const *const *pcpcc;
12555 char **ppc;
12556 /* NEC SVR4.0.2 mips cc rejects this. */
12557 struct point {int x, y;};
12558 static struct point const zero = {0,0};
12559 /* AIX XL C 1.02.0.0 rejects this.
12560 It does not let you subtract one const X* pointer from another in
12561 an arm of an if-expression whose if-part is not a constant
12562 expression */
12563 const char *g = "string";
12564 pcpcc = &g + (g ? g-g : 0);
12565 /* HPUX 7.0 cc rejects these. */
12566 ++pcpcc;
12567 ppc = (char**) pcpcc;
12568 pcpcc = (char const *const *) ppc;
12569 { /* SCO 3.2v4 cc rejects this sort of thing. */
12570 char tx;
12571 char *t = &tx;
12572 char const *s = 0 ? (char *) 0 : (char const *) 0;
12573
12574 *t++ = 0;
12575 if (s) return 0;
12576 }
12577 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12578 int x[] = {25, 17};
12579 const int *foo = &x[0];
12580 ++foo;
12581 }
12582 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12583 typedef const int *iptr;
12584 iptr p = 0;
12585 ++p;
12586 }
12587 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12588 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12589 struct s { int j; const int *ap[3]; } bx;
12590 struct s *b = &bx; b->j = 5;
12591 }
12592 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12593 const int foo = 10;
12594 if (!foo) return 0;
12595 }
12596 return !cs[0] && !zero.x;
12597 #endif
12598
12599 ;
12600 return 0;
12601 }
12602 _ACEOF
12603 if ac_fn_c_try_compile "$LINENO"; then :
12604 ac_cv_c_const=yes
12605 else
12606 ac_cv_c_const=no
12607 fi
12608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12609 fi
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12611 $as_echo "$ac_cv_c_const" >&6; }
12612 if test $ac_cv_c_const = no; then
12613
12614 $as_echo "#define const /**/" >>confdefs.h
12615
12616 fi
12617
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12619 $as_echo_n "checking for inline... " >&6; }
12620 if ${ac_cv_c_inline+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 ac_cv_c_inline=no
12624 for ac_kw in inline __inline__ __inline; do
12625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12626 /* end confdefs.h. */
12627 #ifndef __cplusplus
12628 typedef int foo_t;
12629 static $ac_kw foo_t static_foo () {return 0; }
12630 $ac_kw foo_t foo () {return 0; }
12631 #endif
12632
12633 _ACEOF
12634 if ac_fn_c_try_compile "$LINENO"; then :
12635 ac_cv_c_inline=$ac_kw
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12638 test "$ac_cv_c_inline" != no && break
12639 done
12640
12641 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12643 $as_echo "$ac_cv_c_inline" >&6; }
12644
12645 case $ac_cv_c_inline in
12646 inline | yes) ;;
12647 *)
12648 case $ac_cv_c_inline in
12649 no) ac_val=;;
12650 *) ac_val=$ac_cv_c_inline;;
12651 esac
12652 cat >>confdefs.h <<_ACEOF
12653 #ifndef __cplusplus
12654 #define inline $ac_val
12655 #endif
12656 _ACEOF
12657 ;;
12658 esac
12659
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12661 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12662 if ${ac_cv_c_bigendian+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 ac_cv_c_bigendian=unknown
12666 # See if we're dealing with a universal compiler.
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669 #ifndef __APPLE_CC__
12670 not a universal capable compiler
12671 #endif
12672 typedef int dummy;
12673
12674 _ACEOF
12675 if ac_fn_c_try_compile "$LINENO"; then :
12676
12677 # Check for potential -arch flags. It is not universal unless
12678 # there are at least two -arch flags with different values.
12679 ac_arch=
12680 ac_prev=
12681 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12682 if test -n "$ac_prev"; then
12683 case $ac_word in
12684 i?86 | x86_64 | ppc | ppc64)
12685 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12686 ac_arch=$ac_word
12687 else
12688 ac_cv_c_bigendian=universal
12689 break
12690 fi
12691 ;;
12692 esac
12693 ac_prev=
12694 elif test "x$ac_word" = "x-arch"; then
12695 ac_prev=arch
12696 fi
12697 done
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12700 if test $ac_cv_c_bigendian = unknown; then
12701 # See if sys/param.h defines the BYTE_ORDER macro.
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 #include <sys/types.h>
12705 #include <sys/param.h>
12706
12707 int
12708 main ()
12709 {
12710 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12711 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12712 && LITTLE_ENDIAN)
12713 bogus endian macros
12714 #endif
12715
12716 ;
12717 return 0;
12718 }
12719 _ACEOF
12720 if ac_fn_c_try_compile "$LINENO"; then :
12721 # It does; now see whether it defined to BIG_ENDIAN or not.
12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12724 #include <sys/types.h>
12725 #include <sys/param.h>
12726
12727 int
12728 main ()
12729 {
12730 #if BYTE_ORDER != BIG_ENDIAN
12731 not big endian
12732 #endif
12733
12734 ;
12735 return 0;
12736 }
12737 _ACEOF
12738 if ac_fn_c_try_compile "$LINENO"; then :
12739 ac_cv_c_bigendian=yes
12740 else
12741 ac_cv_c_bigendian=no
12742 fi
12743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12744 fi
12745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12746 fi
12747 if test $ac_cv_c_bigendian = unknown; then
12748 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12750 /* end confdefs.h. */
12751 #include <limits.h>
12752
12753 int
12754 main ()
12755 {
12756 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12757 bogus endian macros
12758 #endif
12759
12760 ;
12761 return 0;
12762 }
12763 _ACEOF
12764 if ac_fn_c_try_compile "$LINENO"; then :
12765 # It does; now see whether it defined to _BIG_ENDIAN or not.
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12767 /* end confdefs.h. */
12768 #include <limits.h>
12769
12770 int
12771 main ()
12772 {
12773 #ifndef _BIG_ENDIAN
12774 not big endian
12775 #endif
12776
12777 ;
12778 return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_compile "$LINENO"; then :
12782 ac_cv_c_bigendian=yes
12783 else
12784 ac_cv_c_bigendian=no
12785 fi
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787 fi
12788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12789 fi
12790 if test $ac_cv_c_bigendian = unknown; then
12791 # Compile a test program.
12792 if test "$cross_compiling" = yes; then :
12793 # Try to guess by grepping values from an object file.
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 short int ascii_mm[] =
12797 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12798 short int ascii_ii[] =
12799 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12800 int use_ascii (int i) {
12801 return ascii_mm[i] + ascii_ii[i];
12802 }
12803 short int ebcdic_ii[] =
12804 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12805 short int ebcdic_mm[] =
12806 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12807 int use_ebcdic (int i) {
12808 return ebcdic_mm[i] + ebcdic_ii[i];
12809 }
12810 extern int foo;
12811
12812 int
12813 main ()
12814 {
12815 return use_ascii (foo) == use_ebcdic (foo);
12816 ;
12817 return 0;
12818 }
12819 _ACEOF
12820 if ac_fn_c_try_compile "$LINENO"; then :
12821 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12822 ac_cv_c_bigendian=yes
12823 fi
12824 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12825 if test "$ac_cv_c_bigendian" = unknown; then
12826 ac_cv_c_bigendian=no
12827 else
12828 # finding both strings is unlikely to happen, but who knows?
12829 ac_cv_c_bigendian=unknown
12830 fi
12831 fi
12832 fi
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 else
12835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12836 /* end confdefs.h. */
12837 $ac_includes_default
12838 int
12839 main ()
12840 {
12841
12842 /* Are we little or big endian? From Harbison&Steele. */
12843 union
12844 {
12845 long int l;
12846 char c[sizeof (long int)];
12847 } u;
12848 u.l = 1;
12849 return u.c[sizeof (long int) - 1] == 1;
12850
12851 ;
12852 return 0;
12853 }
12854 _ACEOF
12855 if ac_fn_c_try_run "$LINENO"; then :
12856 ac_cv_c_bigendian=no
12857 else
12858 ac_cv_c_bigendian=yes
12859 fi
12860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12861 conftest.$ac_objext conftest.beam conftest.$ac_ext
12862 fi
12863
12864 fi
12865 fi
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12867 $as_echo "$ac_cv_c_bigendian" >&6; }
12868 case $ac_cv_c_bigendian in #(
12869 yes)
12870 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12871 ;; #(
12872 no)
12873 ;; #(
12874 universal)
12875
12876 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12877
12878 ;; #(
12879 *)
12880 as_fn_error $? "unknown endianness
12881 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12882 esac
12883
12884
12885 # ------------------------------ #
12886 # Checks for library functions. #
12887 # ------------------------------ #
12888
12889
12890
12891
12892 for ac_header in $ac_header_list
12893 do :
12894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12895 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12896 "
12897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12898 cat >>confdefs.h <<_ACEOF
12899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12900 _ACEOF
12901
12902 fi
12903
12904 done
12905
12906
12907
12908
12909
12910
12911
12912
12913 for ac_func in getpagesize
12914 do :
12915 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12916 if test "x$ac_cv_func_getpagesize" = xyes; then :
12917 cat >>confdefs.h <<_ACEOF
12918 #define HAVE_GETPAGESIZE 1
12919 _ACEOF
12920
12921 fi
12922 done
12923
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12925 $as_echo_n "checking for working mmap... " >&6; }
12926 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 if test "$cross_compiling" = yes; then :
12930 ac_cv_func_mmap_fixed_mapped=no
12931 else
12932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12933 /* end confdefs.h. */
12934 $ac_includes_default
12935 /* malloc might have been renamed as rpl_malloc. */
12936 #undef malloc
12937
12938 /* Thanks to Mike Haertel and Jim Avera for this test.
12939 Here is a matrix of mmap possibilities:
12940 mmap private not fixed
12941 mmap private fixed at somewhere currently unmapped
12942 mmap private fixed at somewhere already mapped
12943 mmap shared not fixed
12944 mmap shared fixed at somewhere currently unmapped
12945 mmap shared fixed at somewhere already mapped
12946 For private mappings, we should verify that changes cannot be read()
12947 back from the file, nor mmap's back from the file at a different
12948 address. (There have been systems where private was not correctly
12949 implemented like the infamous i386 svr4.0, and systems where the
12950 VM page cache was not coherent with the file system buffer cache
12951 like early versions of FreeBSD and possibly contemporary NetBSD.)
12952 For shared mappings, we should conversely verify that changes get
12953 propagated back to all the places they're supposed to be.
12954
12955 Grep wants private fixed already mapped.
12956 The main things grep needs to know about mmap are:
12957 * does it exist and is it safe to write into the mmap'd area
12958 * how to use it (BSD variants) */
12959
12960 #include <fcntl.h>
12961 #include <sys/mman.h>
12962
12963 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12964 char *malloc ();
12965 #endif
12966
12967 /* This mess was copied from the GNU getpagesize.h. */
12968 #ifndef HAVE_GETPAGESIZE
12969 # ifdef _SC_PAGESIZE
12970 # define getpagesize() sysconf(_SC_PAGESIZE)
12971 # else /* no _SC_PAGESIZE */
12972 # ifdef HAVE_SYS_PARAM_H
12973 # include <sys/param.h>
12974 # ifdef EXEC_PAGESIZE
12975 # define getpagesize() EXEC_PAGESIZE
12976 # else /* no EXEC_PAGESIZE */
12977 # ifdef NBPG
12978 # define getpagesize() NBPG * CLSIZE
12979 # ifndef CLSIZE
12980 # define CLSIZE 1
12981 # endif /* no CLSIZE */
12982 # else /* no NBPG */
12983 # ifdef NBPC
12984 # define getpagesize() NBPC
12985 # else /* no NBPC */
12986 # ifdef PAGESIZE
12987 # define getpagesize() PAGESIZE
12988 # endif /* PAGESIZE */
12989 # endif /* no NBPC */
12990 # endif /* no NBPG */
12991 # endif /* no EXEC_PAGESIZE */
12992 # else /* no HAVE_SYS_PARAM_H */
12993 # define getpagesize() 8192 /* punt totally */
12994 # endif /* no HAVE_SYS_PARAM_H */
12995 # endif /* no _SC_PAGESIZE */
12996
12997 #endif /* no HAVE_GETPAGESIZE */
12998
12999 int
13000 main ()
13001 {
13002 char *data, *data2, *data3;
13003 const char *cdata2;
13004 int i, pagesize;
13005 int fd, fd2;
13006
13007 pagesize = getpagesize ();
13008
13009 /* First, make a file with some known garbage in it. */
13010 data = (char *) malloc (pagesize);
13011 if (!data)
13012 return 1;
13013 for (i = 0; i < pagesize; ++i)
13014 *(data + i) = rand ();
13015 umask (0);
13016 fd = creat ("conftest.mmap", 0600);
13017 if (fd < 0)
13018 return 2;
13019 if (write (fd, data, pagesize) != pagesize)
13020 return 3;
13021 close (fd);
13022
13023 /* Next, check that the tail of a page is zero-filled. File must have
13024 non-zero length, otherwise we risk SIGBUS for entire page. */
13025 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13026 if (fd2 < 0)
13027 return 4;
13028 cdata2 = "";
13029 if (write (fd2, cdata2, 1) != 1)
13030 return 5;
13031 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13032 if (data2 == MAP_FAILED)
13033 return 6;
13034 for (i = 0; i < pagesize; ++i)
13035 if (*(data2 + i))
13036 return 7;
13037 close (fd2);
13038 if (munmap (data2, pagesize))
13039 return 8;
13040
13041 /* Next, try to mmap the file at a fixed address which already has
13042 something else allocated at it. If we can, also make sure that
13043 we see the same garbage. */
13044 fd = open ("conftest.mmap", O_RDWR);
13045 if (fd < 0)
13046 return 9;
13047 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13048 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13049 return 10;
13050 for (i = 0; i < pagesize; ++i)
13051 if (*(data + i) != *(data2 + i))
13052 return 11;
13053
13054 /* Finally, make sure that changes to the mapped area do not
13055 percolate back to the file as seen by read(). (This is a bug on
13056 some variants of i386 svr4.0.) */
13057 for (i = 0; i < pagesize; ++i)
13058 *(data2 + i) = *(data2 + i) + 1;
13059 data3 = (char *) malloc (pagesize);
13060 if (!data3)
13061 return 12;
13062 if (read (fd, data3, pagesize) != pagesize)
13063 return 13;
13064 for (i = 0; i < pagesize; ++i)
13065 if (*(data + i) != *(data3 + i))
13066 return 14;
13067 close (fd);
13068 return 0;
13069 }
13070 _ACEOF
13071 if ac_fn_c_try_run "$LINENO"; then :
13072 ac_cv_func_mmap_fixed_mapped=yes
13073 else
13074 ac_cv_func_mmap_fixed_mapped=no
13075 fi
13076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13077 conftest.$ac_objext conftest.beam conftest.$ac_ext
13078 fi
13079
13080 fi
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13082 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13083 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13084
13085 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13086
13087 fi
13088 rm -f conftest.mmap conftest.txt
13089
13090 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13091 if test "x$ac_cv_type_pid_t" = xyes; then :
13092
13093 else
13094
13095 cat >>confdefs.h <<_ACEOF
13096 #define pid_t int
13097 _ACEOF
13098
13099 fi
13100
13101 for ac_header in vfork.h
13102 do :
13103 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13104 if test "x$ac_cv_header_vfork_h" = xyes; then :
13105 cat >>confdefs.h <<_ACEOF
13106 #define HAVE_VFORK_H 1
13107 _ACEOF
13108
13109 fi
13110
13111 done
13112
13113 for ac_func in fork vfork
13114 do :
13115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13116 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13117 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13118 cat >>confdefs.h <<_ACEOF
13119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13120 _ACEOF
13121
13122 fi
13123 done
13124
13125 if test "x$ac_cv_func_fork" = xyes; then
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13127 $as_echo_n "checking for working fork... " >&6; }
13128 if ${ac_cv_func_fork_works+:} false; then :
13129 $as_echo_n "(cached) " >&6
13130 else
13131 if test "$cross_compiling" = yes; then :
13132 ac_cv_func_fork_works=cross
13133 else
13134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136 $ac_includes_default
13137 int
13138 main ()
13139 {
13140
13141 /* By Ruediger Kuhlmann. */
13142 return fork () < 0;
13143
13144 ;
13145 return 0;
13146 }
13147 _ACEOF
13148 if ac_fn_c_try_run "$LINENO"; then :
13149 ac_cv_func_fork_works=yes
13150 else
13151 ac_cv_func_fork_works=no
13152 fi
13153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13154 conftest.$ac_objext conftest.beam conftest.$ac_ext
13155 fi
13156
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13159 $as_echo "$ac_cv_func_fork_works" >&6; }
13160
13161 else
13162 ac_cv_func_fork_works=$ac_cv_func_fork
13163 fi
13164 if test "x$ac_cv_func_fork_works" = xcross; then
13165 case $host in
13166 *-*-amigaos* | *-*-msdosdjgpp*)
13167 # Override, as these systems have only a dummy fork() stub
13168 ac_cv_func_fork_works=no
13169 ;;
13170 *)
13171 ac_cv_func_fork_works=yes
13172 ;;
13173 esac
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13175 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13176 fi
13177 ac_cv_func_vfork_works=$ac_cv_func_vfork
13178 if test "x$ac_cv_func_vfork" = xyes; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13180 $as_echo_n "checking for working vfork... " >&6; }
13181 if ${ac_cv_func_vfork_works+:} false; then :
13182 $as_echo_n "(cached) " >&6
13183 else
13184 if test "$cross_compiling" = yes; then :
13185 ac_cv_func_vfork_works=cross
13186 else
13187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h. */
13189 /* Thanks to Paul Eggert for this test. */
13190 $ac_includes_default
13191 #include <sys/wait.h>
13192 #ifdef HAVE_VFORK_H
13193 # include <vfork.h>
13194 #endif
13195 /* On some sparc systems, changes by the child to local and incoming
13196 argument registers are propagated back to the parent. The compiler
13197 is told about this with #include <vfork.h>, but some compilers
13198 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13199 static variable whose address is put into a register that is
13200 clobbered by the vfork. */
13201 static void
13202 #ifdef __cplusplus
13203 sparc_address_test (int arg)
13204 # else
13205 sparc_address_test (arg) int arg;
13206 #endif
13207 {
13208 static pid_t child;
13209 if (!child) {
13210 child = vfork ();
13211 if (child < 0) {
13212 perror ("vfork");
13213 _exit(2);
13214 }
13215 if (!child) {
13216 arg = getpid();
13217 write(-1, "", 0);
13218 _exit (arg);
13219 }
13220 }
13221 }
13222
13223 int
13224 main ()
13225 {
13226 pid_t parent = getpid ();
13227 pid_t child;
13228
13229 sparc_address_test (0);
13230
13231 child = vfork ();
13232
13233 if (child == 0) {
13234 /* Here is another test for sparc vfork register problems. This
13235 test uses lots of local variables, at least as many local
13236 variables as main has allocated so far including compiler
13237 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13238 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13239 reuse the register of parent for one of the local variables,
13240 since it will think that parent can't possibly be used any more
13241 in this routine. Assigning to the local variable will thus
13242 munge parent in the parent process. */
13243 pid_t
13244 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13245 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13246 /* Convince the compiler that p..p7 are live; otherwise, it might
13247 use the same hardware register for all 8 local variables. */
13248 if (p != p1 || p != p2 || p != p3 || p != p4
13249 || p != p5 || p != p6 || p != p7)
13250 _exit(1);
13251
13252 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13253 from child file descriptors. If the child closes a descriptor
13254 before it execs or exits, this munges the parent's descriptor
13255 as well. Test for this by closing stdout in the child. */
13256 _exit(close(fileno(stdout)) != 0);
13257 } else {
13258 int status;
13259 struct stat st;
13260
13261 while (wait(&status) != child)
13262 ;
13263 return (
13264 /* Was there some problem with vforking? */
13265 child < 0
13266
13267 /* Did the child fail? (This shouldn't happen.) */
13268 || status
13269
13270 /* Did the vfork/compiler bug occur? */
13271 || parent != getpid()
13272
13273 /* Did the file descriptor bug occur? */
13274 || fstat(fileno(stdout), &st) != 0
13275 );
13276 }
13277 }
13278 _ACEOF
13279 if ac_fn_c_try_run "$LINENO"; then :
13280 ac_cv_func_vfork_works=yes
13281 else
13282 ac_cv_func_vfork_works=no
13283 fi
13284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13285 conftest.$ac_objext conftest.beam conftest.$ac_ext
13286 fi
13287
13288 fi
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13290 $as_echo "$ac_cv_func_vfork_works" >&6; }
13291
13292 fi;
13293 if test "x$ac_cv_func_fork_works" = xcross; then
13294 ac_cv_func_vfork_works=$ac_cv_func_vfork
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13296 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13297 fi
13298
13299 if test "x$ac_cv_func_vfork_works" = xyes; then
13300
13301 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13302
13303 else
13304
13305 $as_echo "#define vfork fork" >>confdefs.h
13306
13307 fi
13308 if test "x$ac_cv_func_fork_works" = xyes; then
13309
13310 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13311
13312 fi
13313
13314 for ac_func in getauxval getrusage getuid getgid \
13315 pipe poll pread pread64 pwrite resize_term \
13316 sbrk getpgid setpgid setpgrp setsid \
13317 sigaction sigprocmask sigsetmask socketpair \
13318 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13319 setrlimit getrlimit posix_madvise waitpid \
13320 ptrace64 sigaltstack mkdtemp setns
13321 do :
13322 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13323 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13324 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13325 cat >>confdefs.h <<_ACEOF
13326 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13327 _ACEOF
13328
13329 fi
13330 done
13331
13332
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13334 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13335 if ${am_cv_langinfo_codeset+:} false; then :
13336 $as_echo_n "(cached) " >&6
13337 else
13338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13339 /* end confdefs.h. */
13340 #include <langinfo.h>
13341 int
13342 main ()
13343 {
13344 char* cs = nl_langinfo(CODESET);
13345 ;
13346 return 0;
13347 }
13348 _ACEOF
13349 if ac_fn_c_try_link "$LINENO"; then :
13350 am_cv_langinfo_codeset=yes
13351 else
13352 am_cv_langinfo_codeset=no
13353 fi
13354 rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356
13357 fi
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13359 $as_echo "$am_cv_langinfo_codeset" >&6; }
13360 if test $am_cv_langinfo_codeset = yes; then
13361
13362 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13363
13364 fi
13365
13366 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13367 if test "x$ac_cv_type_size_t" = xyes; then :
13368
13369 else
13370
13371 cat >>confdefs.h <<_ACEOF
13372 #define size_t unsigned int
13373 _ACEOF
13374
13375 fi
13376
13377
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13379 $as_echo_n "checking for ANSI C header files... " >&6; }
13380 if ${ac_cv_header_stdc+:} false; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13385 #include <stdlib.h>
13386 #include <stdarg.h>
13387 #include <string.h>
13388 #include <float.h>
13389
13390 int
13391 main ()
13392 {
13393
13394 ;
13395 return 0;
13396 }
13397 _ACEOF
13398 if ac_fn_c_try_compile "$LINENO"; then :
13399 ac_cv_header_stdc=yes
13400 else
13401 ac_cv_header_stdc=no
13402 fi
13403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404
13405 if test $ac_cv_header_stdc = yes; then
13406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h. */
13409 #include <string.h>
13410
13411 _ACEOF
13412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13413 $EGREP "memchr" >/dev/null 2>&1; then :
13414
13415 else
13416 ac_cv_header_stdc=no
13417 fi
13418 rm -f conftest*
13419
13420 fi
13421
13422 if test $ac_cv_header_stdc = yes; then
13423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425 /* end confdefs.h. */
13426 #include <stdlib.h>
13427
13428 _ACEOF
13429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13430 $EGREP "free" >/dev/null 2>&1; then :
13431
13432 else
13433 ac_cv_header_stdc=no
13434 fi
13435 rm -f conftest*
13436
13437 fi
13438
13439 if test $ac_cv_header_stdc = yes; then
13440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13441 if test "$cross_compiling" = yes; then :
13442 :
13443 else
13444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13446 #include <ctype.h>
13447 #include <stdlib.h>
13448 #if ((' ' & 0x0FF) == 0x020)
13449 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13450 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13451 #else
13452 # define ISLOWER(c) \
13453 (('a' <= (c) && (c) <= 'i') \
13454 || ('j' <= (c) && (c) <= 'r') \
13455 || ('s' <= (c) && (c) <= 'z'))
13456 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13457 #endif
13458
13459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13460 int
13461 main ()
13462 {
13463 int i;
13464 for (i = 0; i < 256; i++)
13465 if (XOR (islower (i), ISLOWER (i))
13466 || toupper (i) != TOUPPER (i))
13467 return 2;
13468 return 0;
13469 }
13470 _ACEOF
13471 if ac_fn_c_try_run "$LINENO"; then :
13472
13473 else
13474 ac_cv_header_stdc=no
13475 fi
13476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13477 conftest.$ac_objext conftest.beam conftest.$ac_ext
13478 fi
13479
13480 fi
13481 fi
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13483 $as_echo "$ac_cv_header_stdc" >&6; }
13484 if test $ac_cv_header_stdc = yes; then
13485
13486 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13487
13488 fi
13489
13490 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13491 # for constant arguments. Useless!
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13493 $as_echo_n "checking for working alloca.h... " >&6; }
13494 if ${ac_cv_working_alloca_h+:} false; then :
13495 $as_echo_n "(cached) " >&6
13496 else
13497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13498 /* end confdefs.h. */
13499 #include <alloca.h>
13500 int
13501 main ()
13502 {
13503 char *p = (char *) alloca (2 * sizeof (int));
13504 if (p) return 0;
13505 ;
13506 return 0;
13507 }
13508 _ACEOF
13509 if ac_fn_c_try_link "$LINENO"; then :
13510 ac_cv_working_alloca_h=yes
13511 else
13512 ac_cv_working_alloca_h=no
13513 fi
13514 rm -f core conftest.err conftest.$ac_objext \
13515 conftest$ac_exeext conftest.$ac_ext
13516 fi
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13518 $as_echo "$ac_cv_working_alloca_h" >&6; }
13519 if test $ac_cv_working_alloca_h = yes; then
13520
13521 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13522
13523 fi
13524
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13526 $as_echo_n "checking for alloca... " >&6; }
13527 if ${ac_cv_func_alloca_works+:} false; then :
13528 $as_echo_n "(cached) " >&6
13529 else
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 #ifdef __GNUC__
13533 # define alloca __builtin_alloca
13534 #else
13535 # ifdef _MSC_VER
13536 # include <malloc.h>
13537 # define alloca _alloca
13538 # else
13539 # ifdef HAVE_ALLOCA_H
13540 # include <alloca.h>
13541 # else
13542 # ifdef _AIX
13543 #pragma alloca
13544 # else
13545 # ifndef alloca /* predefined by HP cc +Olibcalls */
13546 void *alloca (size_t);
13547 # endif
13548 # endif
13549 # endif
13550 # endif
13551 #endif
13552
13553 int
13554 main ()
13555 {
13556 char *p = (char *) alloca (1);
13557 if (p) return 0;
13558 ;
13559 return 0;
13560 }
13561 _ACEOF
13562 if ac_fn_c_try_link "$LINENO"; then :
13563 ac_cv_func_alloca_works=yes
13564 else
13565 ac_cv_func_alloca_works=no
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 fi
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13571 $as_echo "$ac_cv_func_alloca_works" >&6; }
13572
13573 if test $ac_cv_func_alloca_works = yes; then
13574
13575 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13576
13577 else
13578 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13579 # that cause trouble. Some versions do not even contain alloca or
13580 # contain a buggy version. If you still want to use their alloca,
13581 # use ar to extract alloca.o from them instead of compiling alloca.c.
13582
13583 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13584
13585 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13586
13587
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13589 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13590 if ${ac_cv_os_cray+:} false; then :
13591 $as_echo_n "(cached) " >&6
13592 else
13593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13594 /* end confdefs.h. */
13595 #if defined CRAY && ! defined CRAY2
13596 webecray
13597 #else
13598 wenotbecray
13599 #endif
13600
13601 _ACEOF
13602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13603 $EGREP "webecray" >/dev/null 2>&1; then :
13604 ac_cv_os_cray=yes
13605 else
13606 ac_cv_os_cray=no
13607 fi
13608 rm -f conftest*
13609
13610 fi
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13612 $as_echo "$ac_cv_os_cray" >&6; }
13613 if test $ac_cv_os_cray = yes; then
13614 for ac_func in _getb67 GETB67 getb67; do
13615 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13616 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13617 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13618
13619 cat >>confdefs.h <<_ACEOF
13620 #define CRAY_STACKSEG_END $ac_func
13621 _ACEOF
13622
13623 break
13624 fi
13625
13626 done
13627 fi
13628
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13630 $as_echo_n "checking stack direction for C alloca... " >&6; }
13631 if ${ac_cv_c_stack_direction+:} false; then :
13632 $as_echo_n "(cached) " >&6
13633 else
13634 if test "$cross_compiling" = yes; then :
13635 ac_cv_c_stack_direction=0
13636 else
13637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13638 /* end confdefs.h. */
13639 $ac_includes_default
13640 int
13641 find_stack_direction (int *addr, int depth)
13642 {
13643 int dir, dummy = 0;
13644 if (! addr)
13645 addr = &dummy;
13646 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13647 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13648 return dir + dummy;
13649 }
13650
13651 int
13652 main (int argc, char **argv)
13653 {
13654 return find_stack_direction (0, argc + !argv + 20) < 0;
13655 }
13656 _ACEOF
13657 if ac_fn_c_try_run "$LINENO"; then :
13658 ac_cv_c_stack_direction=1
13659 else
13660 ac_cv_c_stack_direction=-1
13661 fi
13662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13663 conftest.$ac_objext conftest.beam conftest.$ac_ext
13664 fi
13665
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13668 $as_echo "$ac_cv_c_stack_direction" >&6; }
13669 cat >>confdefs.h <<_ACEOF
13670 #define STACK_DIRECTION $ac_cv_c_stack_direction
13671 _ACEOF
13672
13673
13674 fi
13675
13676
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13679 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13680 if ${am_cv_langinfo_codeset+:} false; then :
13681 $as_echo_n "(cached) " >&6
13682 else
13683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13684 /* end confdefs.h. */
13685 #include <langinfo.h>
13686 int
13687 main ()
13688 {
13689 char* cs = nl_langinfo(CODESET);
13690 ;
13691 return 0;
13692 }
13693 _ACEOF
13694 if ac_fn_c_try_link "$LINENO"; then :
13695 am_cv_langinfo_codeset=yes
13696 else
13697 am_cv_langinfo_codeset=no
13698 fi
13699 rm -f core conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
13701
13702 fi
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13704 $as_echo "$am_cv_langinfo_codeset" >&6; }
13705 if test $am_cv_langinfo_codeset = yes; then
13706
13707 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13708
13709 fi
13710
13711
13712 for ac_header in linux/perf_event.h locale.h memory.h signal.h sys/resource.h sys/socket.h sys/un.h sys/wait.h thread_db.h wait.h termios.h
13713 do :
13714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13715 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13716 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13717 cat >>confdefs.h <<_ACEOF
13718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13719 _ACEOF
13720
13721 fi
13722
13723 done
13724
13725
13726 for ac_func in fdwalk getrlimit pipe pipe2 socketpair sigaction
13727 do :
13728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13730 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13731 cat >>confdefs.h <<_ACEOF
13732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13733 _ACEOF
13734
13735 fi
13736 done
13737
13738
13739 ac_fn_c_check_decl "$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13740 if test "x$ac_cv_have_decl_strerror" = xyes; then :
13741 ac_have_decl=1
13742 else
13743 ac_have_decl=0
13744 fi
13745
13746 cat >>confdefs.h <<_ACEOF
13747 #define HAVE_DECL_STRERROR $ac_have_decl
13748 _ACEOF
13749 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13750 if test "x$ac_cv_have_decl_strstr" = xyes; then :
13751 ac_have_decl=1
13752 else
13753 ac_have_decl=0
13754 fi
13755
13756 cat >>confdefs.h <<_ACEOF
13757 #define HAVE_DECL_STRSTR $ac_have_decl
13758 _ACEOF
13759
13760
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13762 $as_echo_n "checking for sigsetjmp... " >&6; }
13763 if ${gdb_cv_func_sigsetjmp+:} false; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13767 /* end confdefs.h. */
13768
13769 #include <setjmp.h>
13770
13771 int
13772 main ()
13773 {
13774 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13775 ;
13776 return 0;
13777 }
13778 _ACEOF
13779 if ac_fn_c_try_compile "$LINENO"; then :
13780 gdb_cv_func_sigsetjmp=yes
13781 else
13782 gdb_cv_func_sigsetjmp=no
13783 fi
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785 fi
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13787 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13788 if test $gdb_cv_func_sigsetjmp = yes; then
13789
13790 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13791
13792 fi
13793
13794
13795 # Check the return and argument types of ptrace.
13796
13797
13798 for ac_header in sys/ptrace.h ptrace.h
13799 do :
13800 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13801 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13802 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13803 cat >>confdefs.h <<_ACEOF
13804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13805 _ACEOF
13806
13807 fi
13808
13809 done
13810
13811
13812 gdb_ptrace_headers='
13813 #include <sys/types.h>
13814 #if HAVE_SYS_PTRACE_H
13815 # include <sys/ptrace.h>
13816 #endif
13817 #if HAVE_UNISTD_H
13818 # include <unistd.h>
13819 #endif
13820 '
13821 # There is no point in checking if we don't have a prototype.
13822 ac_fn_c_check_decl "$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13823 "
13824 if test "x$ac_cv_have_decl_ptrace" = xyes; then :
13825 ac_have_decl=1
13826 else
13827 ac_have_decl=0
13828 fi
13829
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_DECL_PTRACE $ac_have_decl
13832 _ACEOF
13833 if test $ac_have_decl = 1; then :
13834
13835 else
13836
13837 : ${gdb_cv_func_ptrace_ret='int'}
13838 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13839
13840 fi
13841
13842 # Check return type. Varargs (used on GNU/Linux) conflict with the
13843 # empty argument list, so check for that explicitly.
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13845 $as_echo_n "checking return type of ptrace... " >&6; }
13846 if ${gdb_cv_func_ptrace_ret+:} false; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 $gdb_ptrace_headers
13852 int
13853 main ()
13854 {
13855 extern long ptrace (enum __ptrace_request, ...);
13856 ;
13857 return 0;
13858 }
13859 _ACEOF
13860 if ac_fn_c_try_compile "$LINENO"; then :
13861 gdb_cv_func_ptrace_ret='long'
13862 else
13863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13864 /* end confdefs.h. */
13865 $gdb_ptrace_headers
13866 int
13867 main ()
13868 {
13869 extern int ptrace ();
13870 ;
13871 return 0;
13872 }
13873 _ACEOF
13874 if ac_fn_c_try_compile "$LINENO"; then :
13875 gdb_cv_func_ptrace_ret='int'
13876 else
13877 gdb_cv_func_ptrace_ret='long'
13878 fi
13879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880 fi
13881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13882 fi
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13884 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13885
13886 cat >>confdefs.h <<_ACEOF
13887 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13888 _ACEOF
13889
13890 # Check argument types.
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13892 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13893 if ${gdb_cv_func_ptrace_args+:} false; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896
13897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13898 /* end confdefs.h. */
13899 $gdb_ptrace_headers
13900 int
13901 main ()
13902 {
13903 extern long ptrace (enum __ptrace_request, ...);
13904 ;
13905 return 0;
13906 }
13907 _ACEOF
13908 if ac_fn_c_try_compile "$LINENO"; then :
13909 gdb_cv_func_ptrace_args='enum __ptrace_request,int,long,long'
13910 else
13911
13912 for gdb_arg1 in 'int' 'long'; do
13913 for gdb_arg2 in 'pid_t' 'int' 'long'; do
13914 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13915 for gdb_arg4 in 'int' 'long' 'void *'; do
13916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13917 /* end confdefs.h. */
13918 $gdb_ptrace_headers
13919 int
13920 main ()
13921 {
13922
13923 extern $gdb_cv_func_ptrace_ret
13924 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13925
13926 ;
13927 return 0;
13928 }
13929 _ACEOF
13930 if ac_fn_c_try_compile "$LINENO"; then :
13931 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13932 break 4;
13933 fi
13934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 for gdb_arg5 in 'int *' 'int' 'long'; do
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937 /* end confdefs.h. */
13938 $gdb_ptrace_headers
13939 int
13940 main ()
13941 {
13942
13943 extern $gdb_cv_func_ptrace_ret
13944 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13945
13946 ;
13947 return 0;
13948 }
13949 _ACEOF
13950 if ac_fn_c_try_compile "$LINENO"; then :
13951
13952 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13953 break 5;
13954 fi
13955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13956 done
13957 done
13958 done
13959 done
13960 done
13961 # Provide a safe default value.
13962 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13963
13964 fi
13965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 fi
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13968 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13969 ac_save_IFS=$IFS; IFS=','
13970 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13971 IFS=$ac_save_IFS
13972 shift
13973
13974 cat >>confdefs.h <<_ACEOF
13975 #define PTRACE_TYPE_ARG1 $1
13976 _ACEOF
13977
13978
13979 cat >>confdefs.h <<_ACEOF
13980 #define PTRACE_TYPE_ARG3 $3
13981 _ACEOF
13982
13983
13984 cat >>confdefs.h <<_ACEOF
13985 #define PTRACE_TYPE_ARG4 $4
13986 _ACEOF
13987
13988 if test -n "$5"; then
13989
13990 cat >>confdefs.h <<_ACEOF
13991 #define PTRACE_TYPE_ARG5 $5
13992 _ACEOF
13993
13994 fi
13995
13996
13997 if test "$cross_compiling" = no; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13999 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14000 if ${ac_cv_func_setpgrp_void+:} false; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 if test "$cross_compiling" = yes; then :
14004 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
14005 else
14006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14007 /* end confdefs.h. */
14008 $ac_includes_default
14009 int
14010 main ()
14011 {
14012 /* If this system has a BSD-style setpgrp which takes arguments,
14013 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14014 exit successfully. */
14015 return setpgrp (1,1) != -1;
14016 ;
14017 return 0;
14018 }
14019 _ACEOF
14020 if ac_fn_c_try_run "$LINENO"; then :
14021 ac_cv_func_setpgrp_void=no
14022 else
14023 ac_cv_func_setpgrp_void=yes
14024 fi
14025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14026 conftest.$ac_objext conftest.beam conftest.$ac_ext
14027 fi
14028
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14031 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14032 if test $ac_cv_func_setpgrp_void = yes; then
14033
14034 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14035
14036 fi
14037
14038 else
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14040 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14041 if ${ac_cv_func_setpgrp_void+:} false; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046
14047 #include <unistd.h>
14048
14049 int
14050 main ()
14051 {
14052
14053 if (setpgrp(1,1) == -1)
14054 exit (0);
14055 else
14056 exit (1);
14057
14058 ;
14059 return 0;
14060 }
14061 _ACEOF
14062 if ac_fn_c_try_compile "$LINENO"; then :
14063 ac_cv_func_setpgrp_void=no
14064 else
14065 ac_cv_func_setpgrp_void=yes
14066 fi
14067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 fi
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14070 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14071 if test $ac_cv_func_setpgrp_void = yes; then
14072 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14073
14074 fi
14075 fi
14076
14077 # Assume we'll default to using the included libiberty regex.
14078 gdb_use_included_regex=yes
14079
14080 # However, if the system regex is GNU regex, then default to *not*
14081 # using the included regex.
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14083 $as_echo_n "checking for GNU regex... " >&6; }
14084 if ${gdb_cv_have_gnu_regex+:} false; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089 #include <gnu-versions.h>
14090 int
14091 main ()
14092 {
14093 #define REGEX_INTERFACE_VERSION 1
14094 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14095 # error "Version mismatch"
14096 #endif
14097 ;
14098 return 0;
14099 }
14100 _ACEOF
14101 if ac_fn_c_try_compile "$LINENO"; then :
14102 gdb_cv_have_gnu_regex=yes
14103 else
14104 gdb_cv_have_gnu_regex=no
14105 fi
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14109 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14110 if test $gdb_cv_have_gnu_regex = yes; then
14111 gdb_use_included_regex=no
14112 fi
14113
14114
14115 # Check whether --with-included-regex was given.
14116 if test "${with_included_regex+set}" = set; then :
14117 withval=$with_included_regex; gdb_with_regex=$withval
14118 else
14119 gdb_with_regex=$gdb_use_included_regex
14120 fi
14121
14122 if test "$gdb_with_regex" = yes; then
14123
14124 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14125
14126 fi
14127
14128 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14129 ac_fn_c_check_member "$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14130 #include <sys/proc.h>
14131
14132 "
14133 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes; then :
14134
14135 cat >>confdefs.h <<_ACEOF
14136 #define HAVE_STRUCT_THREAD_TD_PCB 1
14137 _ACEOF
14138
14139
14140 fi
14141
14142
14143 # See if <sys/lwp.h> defines `struct lwp`.
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14145 $as_echo_n "checking for struct lwp... " >&6; }
14146 if ${gdb_cv_struct_lwp+:} false; then :
14147 $as_echo_n "(cached) " >&6
14148 else
14149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14150 /* end confdefs.h. */
14151 #include <sys/param.h>
14152 #define _KMEMUSER
14153 #include <sys/lwp.h>
14154 int
14155 main ()
14156 {
14157 struct lwp l;
14158 ;
14159 return 0;
14160 }
14161 _ACEOF
14162 if ac_fn_c_try_compile "$LINENO"; then :
14163 gdb_cv_struct_lwp=yes
14164 else
14165 gdb_cv_struct_lwp=no
14166 fi
14167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14168 fi
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14170 $as_echo "$gdb_cv_struct_lwp" >&6; }
14171 if test $gdb_cv_struct_lwp = yes; then
14172
14173 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14174
14175 fi
14176
14177 # See if <machine/reg.h> degines `struct reg'.
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14179 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14180 if ${gdb_cv_struct_reg+:} false; then :
14181 $as_echo_n "(cached) " >&6
14182 else
14183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h. */
14185 #include <sys/types.h>
14186 #include <machine/reg.h>
14187 int
14188 main ()
14189 {
14190 struct reg r;
14191 ;
14192 return 0;
14193 }
14194 _ACEOF
14195 if ac_fn_c_try_compile "$LINENO"; then :
14196 gdb_cv_struct_reg=yes
14197 else
14198 gdb_cv_struct_reg=no
14199 fi
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201 fi
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14203 $as_echo "$gdb_cv_struct_reg" >&6; }
14204 if test $gdb_cv_struct_reg = yes; then
14205
14206 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14207
14208 fi
14209
14210 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14211 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14212 ac_fn_c_check_member "$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14213 #include <machine/reg.h>
14214 "
14215 if test "x$ac_cv_member_struct_reg_r_fs" = xyes; then :
14216
14217 cat >>confdefs.h <<_ACEOF
14218 #define HAVE_STRUCT_REG_R_FS 1
14219 _ACEOF
14220
14221
14222 fi
14223 ac_fn_c_check_member "$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14224 #include <machine/reg.h>
14225 "
14226 if test "x$ac_cv_member_struct_reg_r_gs" = xyes; then :
14227
14228 cat >>confdefs.h <<_ACEOF
14229 #define HAVE_STRUCT_REG_R_GS 1
14230 _ACEOF
14231
14232
14233 fi
14234
14235
14236 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14237 # Older amd64 Linux's don't have the fs_base and gs_base members of
14238 # `struct user_regs_struct'.
14239 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "fs_base" "ac_cv_member_struct_user_regs_struct_fs_base" "#include <sys/types.h>
14240 #include <sys/user.h>
14241 "
14242 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes; then :
14243
14244 cat >>confdefs.h <<_ACEOF
14245 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14246 _ACEOF
14247
14248
14249 fi
14250 ac_fn_c_check_member "$LINENO" "struct user_regs_struct" "gs_base" "ac_cv_member_struct_user_regs_struct_gs_base" "#include <sys/types.h>
14251 #include <sys/user.h>
14252 "
14253 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes; then :
14254
14255 cat >>confdefs.h <<_ACEOF
14256 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14257 _ACEOF
14258
14259
14260 fi
14261
14262
14263 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14265 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14266 if ${gdb_cv_have_ptrace_getregs+:} false; then :
14267 $as_echo_n "(cached) " >&6
14268 else
14269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270 /* end confdefs.h. */
14271 #include <sys/ptrace.h>
14272 int
14273 main ()
14274 {
14275 PTRACE_GETREGS;
14276 ;
14277 return 0;
14278 }
14279 _ACEOF
14280 if ac_fn_c_try_compile "$LINENO"; then :
14281 gdb_cv_have_ptrace_getregs=yes
14282 else
14283 gdb_cv_have_ptrace_getregs=no
14284 fi
14285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14286 fi
14287
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14289 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14290 if test $gdb_cv_have_ptrace_getregs = yes; then
14291
14292 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14293
14294 fi
14295
14296 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14298 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14299 if ${gdb_cv_have_ptrace_getfpxregs+:} false; then :
14300 $as_echo_n "(cached) " >&6
14301 else
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14304 #include <sys/ptrace.h>
14305 int
14306 main ()
14307 {
14308 PTRACE_GETFPXREGS;
14309 ;
14310 return 0;
14311 }
14312 _ACEOF
14313 if ac_fn_c_try_compile "$LINENO"; then :
14314 gdb_cv_have_ptrace_getfpxregs=yes
14315 else
14316 gdb_cv_have_ptrace_getfpxregs=no
14317 fi
14318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14319 fi
14320
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14322 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14323 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14324
14325 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14326
14327 fi
14328
14329 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14331 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14332 if ${gdb_cv_have_pt_getdbregs+:} false; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14337 #include <sys/types.h>
14338 #include <sys/ptrace.h>
14339 int
14340 main ()
14341 {
14342 PT_GETDBREGS;
14343 ;
14344 return 0;
14345 }
14346 _ACEOF
14347 if ac_fn_c_try_compile "$LINENO"; then :
14348 gdb_cv_have_pt_getdbregs=yes
14349 else
14350 gdb_cv_have_pt_getdbregs=no
14351 fi
14352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353 fi
14354
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14356 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14357 if test $gdb_cv_have_pt_getdbregs = yes; then
14358
14359 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14360
14361 fi
14362
14363 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14365 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14366 if ${gdb_cv_have_pt_getxmmregs+:} false; then :
14367 $as_echo_n "(cached) " >&6
14368 else
14369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370 /* end confdefs.h. */
14371 #include <sys/types.h>
14372 #include <sys/ptrace.h>
14373 int
14374 main ()
14375 {
14376 PT_GETXMMREGS;
14377 ;
14378 return 0;
14379 }
14380 _ACEOF
14381 if ac_fn_c_try_compile "$LINENO"; then :
14382 gdb_cv_have_pt_getxmmregs=yes
14383 else
14384 gdb_cv_have_pt_getxmmregs=no
14385 fi
14386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14387 fi
14388
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14390 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14391 if test $gdb_cv_have_pt_getxmmregs = yes; then
14392
14393 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14394
14395 fi
14396
14397 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14398 # Older FreeBSD versions don't have the pl_tdname member of
14399 # `struct ptrace_lwpinfo'.
14400 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14401 "
14402 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes; then :
14403
14404 cat >>confdefs.h <<_ACEOF
14405 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14406 _ACEOF
14407
14408
14409 fi
14410
14411
14412 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14413 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14414 # FreeBSD 10.3.
14415 ac_fn_c_check_member "$LINENO" "struct ptrace_lwpinfo" "pl_syscall_code" "ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" "#include <sys/ptrace.h>
14416 "
14417 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes; then :
14418
14419 cat >>confdefs.h <<_ACEOF
14420 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14421 _ACEOF
14422
14423
14424 fi
14425
14426
14427 if test "$ac_cv_header_sys_procfs_h" = yes; then
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14429 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14430 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false; then :
14431 $as_echo_n "(cached) " >&6
14432 else
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435
14436 #define _SYSCALL32
14437 /* Needed for new procfs interface on sparc-solaris. */
14438 #define _STRUCTURED_PROC 1
14439 #include <sys/procfs.h>
14440 int
14441 main ()
14442 {
14443 gregset_t avar
14444 ;
14445 return 0;
14446 }
14447 _ACEOF
14448 if ac_fn_c_try_compile "$LINENO"; then :
14449 bfd_cv_have_sys_procfs_type_gregset_t=yes
14450 else
14451 bfd_cv_have_sys_procfs_type_gregset_t=no
14452
14453 fi
14454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 fi
14456
14457 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14458
14459 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14460
14461 fi
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14463 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14464
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14466 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14467 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false; then :
14468 $as_echo_n "(cached) " >&6
14469 else
14470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14471 /* end confdefs.h. */
14472
14473 #define _SYSCALL32
14474 /* Needed for new procfs interface on sparc-solaris. */
14475 #define _STRUCTURED_PROC 1
14476 #include <sys/procfs.h>
14477 int
14478 main ()
14479 {
14480 fpregset_t avar
14481 ;
14482 return 0;
14483 }
14484 _ACEOF
14485 if ac_fn_c_try_compile "$LINENO"; then :
14486 bfd_cv_have_sys_procfs_type_fpregset_t=yes
14487 else
14488 bfd_cv_have_sys_procfs_type_fpregset_t=no
14489
14490 fi
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 fi
14493
14494 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14495
14496 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14497
14498 fi
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14500 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14501
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14503 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14504 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false; then :
14505 $as_echo_n "(cached) " >&6
14506 else
14507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14508 /* end confdefs.h. */
14509
14510 #define _SYSCALL32
14511 /* Needed for new procfs interface on sparc-solaris. */
14512 #define _STRUCTURED_PROC 1
14513 #include <sys/procfs.h>
14514 int
14515 main ()
14516 {
14517 prgregset_t avar
14518 ;
14519 return 0;
14520 }
14521 _ACEOF
14522 if ac_fn_c_try_compile "$LINENO"; then :
14523 bfd_cv_have_sys_procfs_type_prgregset_t=yes
14524 else
14525 bfd_cv_have_sys_procfs_type_prgregset_t=no
14526
14527 fi
14528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14529 fi
14530
14531 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14532
14533 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14534
14535 fi
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14537 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14540 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14541 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14545 /* end confdefs.h. */
14546
14547 #define _SYSCALL32
14548 /* Needed for new procfs interface on sparc-solaris. */
14549 #define _STRUCTURED_PROC 1
14550 #include <sys/procfs.h>
14551 int
14552 main ()
14553 {
14554 prfpregset_t avar
14555 ;
14556 return 0;
14557 }
14558 _ACEOF
14559 if ac_fn_c_try_compile "$LINENO"; then :
14560 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
14561 else
14562 bfd_cv_have_sys_procfs_type_prfpregset_t=no
14563
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 fi
14567
14568 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14569
14570 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14571
14572 fi
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14574 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14575
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14577 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14578 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false; then :
14579 $as_echo_n "(cached) " >&6
14580 else
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583
14584 #define _SYSCALL32
14585 /* Needed for new procfs interface on sparc-solaris. */
14586 #define _STRUCTURED_PROC 1
14587 #include <sys/procfs.h>
14588 int
14589 main ()
14590 {
14591 prgregset32_t avar
14592 ;
14593 return 0;
14594 }
14595 _ACEOF
14596 if ac_fn_c_try_compile "$LINENO"; then :
14597 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
14598 else
14599 bfd_cv_have_sys_procfs_type_prgregset32_t=no
14600
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 fi
14604
14605 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14606
14607 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14608
14609 fi
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14611 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14612
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14614 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14615 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620
14621 #define _SYSCALL32
14622 /* Needed for new procfs interface on sparc-solaris. */
14623 #define _STRUCTURED_PROC 1
14624 #include <sys/procfs.h>
14625 int
14626 main ()
14627 {
14628 lwpid_t avar
14629 ;
14630 return 0;
14631 }
14632 _ACEOF
14633 if ac_fn_c_try_compile "$LINENO"; then :
14634 bfd_cv_have_sys_procfs_type_lwpid_t=yes
14635 else
14636 bfd_cv_have_sys_procfs_type_lwpid_t=no
14637
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14640 fi
14641
14642 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14643
14644 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14645
14646 fi
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14648 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14649
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14651 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14652 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false; then :
14653 $as_echo_n "(cached) " >&6
14654 else
14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14656 /* end confdefs.h. */
14657
14658 #define _SYSCALL32
14659 /* Needed for new procfs interface on sparc-solaris. */
14660 #define _STRUCTURED_PROC 1
14661 #include <sys/procfs.h>
14662 int
14663 main ()
14664 {
14665 psaddr_t avar
14666 ;
14667 return 0;
14668 }
14669 _ACEOF
14670 if ac_fn_c_try_compile "$LINENO"; then :
14671 bfd_cv_have_sys_procfs_type_psaddr_t=yes
14672 else
14673 bfd_cv_have_sys_procfs_type_psaddr_t=no
14674
14675 fi
14676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14677 fi
14678
14679 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14680
14681 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14682
14683 fi
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14685 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14686
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14688 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14689 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false; then :
14690 $as_echo_n "(cached) " >&6
14691 else
14692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14693 /* end confdefs.h. */
14694
14695 #define _SYSCALL32
14696 /* Needed for new procfs interface on sparc-solaris. */
14697 #define _STRUCTURED_PROC 1
14698 #include <sys/procfs.h>
14699 int
14700 main ()
14701 {
14702 elf_fpregset_t avar
14703 ;
14704 return 0;
14705 }
14706 _ACEOF
14707 if ac_fn_c_try_compile "$LINENO"; then :
14708 bfd_cv_have_sys_procfs_type_elf_fpregset_t=yes
14709 else
14710 bfd_cv_have_sys_procfs_type_elf_fpregset_t=no
14711
14712 fi
14713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714 fi
14715
14716 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14717
14718 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14719
14720 fi
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14722 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14723
14724 fi
14725
14726 # Check if the compiler supports the `long long' type.
14727
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14729 $as_echo_n "checking for long long support in compiler... " >&6; }
14730 if ${gdb_cv_c_long_long+:} false; then :
14731 $as_echo_n "(cached) " >&6
14732 else
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14735 extern long long foo;
14736 int
14737 main ()
14738 {
14739 switch (foo & 2) { case 0: return 1; }
14740 ;
14741 return 0;
14742 }
14743 _ACEOF
14744 if ac_fn_c_try_compile "$LINENO"; then :
14745 gdb_cv_c_long_long=yes
14746 else
14747 gdb_cv_c_long_long=no
14748 fi
14749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14752 $as_echo "$gdb_cv_c_long_long" >&6; }
14753 if test $gdb_cv_c_long_long != yes; then
14754 # libdecnumber requires long long.
14755 as_fn_error $? "Compiler must support long long for GDB." "$LINENO" 5
14756 fi
14757
14758 # Check if the compiler and runtime support printing long longs.
14759
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14761 $as_echo_n "checking for long long support in printf... " >&6; }
14762 if ${gdb_cv_printf_has_long_long+:} false; then :
14763 $as_echo_n "(cached) " >&6
14764 else
14765 if test "$cross_compiling" = yes; then :
14766 gdb_cv_printf_has_long_long=no
14767 else
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14770 $ac_includes_default
14771 int
14772 main ()
14773 {
14774 char buf[32];
14775 long long l = 0;
14776 l = (l << 16) + 0x0123;
14777 l = (l << 16) + 0x4567;
14778 l = (l << 16) + 0x89ab;
14779 l = (l << 16) + 0xcdef;
14780 sprintf (buf, "0x%016llx", l);
14781 return (strcmp ("0x0123456789abcdef", buf));
14782 ;
14783 return 0;
14784 }
14785 _ACEOF
14786 if ac_fn_c_try_run "$LINENO"; then :
14787 gdb_cv_printf_has_long_long=yes
14788 else
14789 gdb_cv_printf_has_long_long=no
14790 fi
14791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14792 conftest.$ac_objext conftest.beam conftest.$ac_ext
14793 fi
14794
14795 fi
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14797 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14798 if test $gdb_cv_printf_has_long_long = yes; then
14799
14800 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14801
14802 fi
14803
14804 # Check if the compiler and runtime support printing decfloats.
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14807 $as_echo_n "checking for decfloat support in printf... " >&6; }
14808 if ${gdb_cv_printf_has_decfloat+:} false; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 if test "$cross_compiling" = yes; then :
14812 gdb_cv_printf_has_decfloat=no
14813 else
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816 $ac_includes_default
14817 int
14818 main ()
14819 {
14820 char buf[64];
14821 _Decimal32 d32 = 1.2345df;
14822 _Decimal64 d64 = 1.2345dd;
14823 _Decimal128 d128 = 1.2345dl;
14824 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14825 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14826 ;
14827 return 0;
14828 }
14829 _ACEOF
14830 if ac_fn_c_try_run "$LINENO"; then :
14831 gdb_cv_printf_has_decfloat=yes
14832 else
14833 gdb_cv_printf_has_decfloat=no
14834 fi
14835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14836 conftest.$ac_objext conftest.beam conftest.$ac_ext
14837 fi
14838
14839 fi
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14841 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14842 if test $gdb_cv_printf_has_decfloat = yes; then
14843
14844 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14845
14846 fi
14847
14848 # Check if the compiler supports the `long double' type. We can't use
14849 # AC_C_LONG_DOUBLE because that one does additional checks on the
14850 # constants defined in <float.h> that fail on some systems,
14851 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14852
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14854 $as_echo_n "checking for long double support in compiler... " >&6; }
14855 if ${gdb_cv_c_long_double+:} false; then :
14856 $as_echo_n "(cached) " >&6
14857 else
14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14859 /* end confdefs.h. */
14860 long double foo;
14861 _ACEOF
14862 if ac_fn_c_try_compile "$LINENO"; then :
14863 gdb_cv_c_long_double=yes
14864 else
14865 gdb_cv_c_long_double=no
14866 fi
14867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14868 fi
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14870 $as_echo "$gdb_cv_c_long_double" >&6; }
14871 if test $gdb_cv_c_long_double = yes; then
14872
14873 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14874
14875 fi
14876
14877 # Check if the compiler and runtime support printing long doubles.
14878
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14880 $as_echo_n "checking for long double support in printf... " >&6; }
14881 if ${gdb_cv_printf_has_long_double+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 if test "$cross_compiling" = yes; then :
14885 gdb_cv_printf_has_long_double=no
14886 else
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889 $ac_includes_default
14890 int
14891 main ()
14892 {
14893 char buf[16];
14894 long double f = 3.141592653;
14895 sprintf (buf, "%Lg", f);
14896 return (strncmp ("3.14159", buf, 7));
14897 ;
14898 return 0;
14899 }
14900 _ACEOF
14901 if ac_fn_c_try_run "$LINENO"; then :
14902 gdb_cv_printf_has_long_double=yes
14903 else
14904 gdb_cv_printf_has_long_double=no
14905 fi
14906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14907 conftest.$ac_objext conftest.beam conftest.$ac_ext
14908 fi
14909
14910 fi
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14912 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14913 if test $gdb_cv_printf_has_long_double = yes; then
14914
14915 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14916
14917 fi
14918
14919 # Check if the compiler and runtime support scanning long doubles.
14920
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14922 $as_echo_n "checking for long double support in scanf... " >&6; }
14923 if ${gdb_cv_scanf_has_long_double+:} false; then :
14924 $as_echo_n "(cached) " >&6
14925 else
14926 if test "$cross_compiling" = yes; then :
14927 gdb_cv_scanf_has_long_double=no
14928 else
14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931 #include <stdio.h>
14932 int
14933 main ()
14934 {
14935 char *buf = "3.141592653";
14936 long double f = 0;
14937 sscanf (buf, "%Lg", &f);
14938 return !(f > 3.14159 && f < 3.14160);
14939 ;
14940 return 0;
14941 }
14942 _ACEOF
14943 if ac_fn_c_try_run "$LINENO"; then :
14944 gdb_cv_scanf_has_long_double=yes
14945 else
14946 gdb_cv_scanf_has_long_double=no
14947 fi
14948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14949 conftest.$ac_objext conftest.beam conftest.$ac_ext
14950 fi
14951
14952 fi
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14954 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14955 if test $gdb_cv_scanf_has_long_double = yes; then
14956
14957 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14958
14959 fi
14960
14961 case ${host_os} in
14962 aix*)
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14964 $as_echo_n "checking for -bbigtoc option... " >&6; }
14965 if ${gdb_cv_bigtoc+:} false; then :
14966 $as_echo_n "(cached) " >&6
14967 else
14968
14969 SAVE_LDFLAGS=$LDFLAGS
14970
14971 case $GCC in
14972 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
14973 *) gdb_cv_bigtoc=-bbigtoc ;;
14974 esac
14975
14976 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979
14980 int
14981 main ()
14982 {
14983 int i;
14984 ;
14985 return 0;
14986 }
14987 _ACEOF
14988 if ac_fn_c_try_link "$LINENO"; then :
14989
14990 else
14991 gdb_cv_bigtoc=
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LDFLAGS="${SAVE_LDFLAGS}"
14996
14997 fi
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14999 $as_echo "$gdb_cv_bigtoc" >&6; }
15000 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15001 ;;
15002 esac
15003
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15005 $as_echo_n "checking for the dynamic export flag... " >&6; }
15006 dynamic_list=false
15007 if test "${gdb_native}" = yes; then
15008 # The dynamically loaded libthread_db needs access to symbols in the gdb
15009 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15010 # may not be supported there.
15011 old_LDFLAGS="$LDFLAGS"
15012 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15013 RDYNAMIC="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15014 LDFLAGS="$LDFLAGS $RDYNAMIC"
15015 if test "${have_libpython}" = no; then
15016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15017 /* end confdefs.h. */
15018
15019 int
15020 main ()
15021 {
15022
15023 ;
15024 return 0;
15025 }
15026 _ACEOF
15027 if ac_fn_c_try_link "$LINENO"; then :
15028 dynamic_list=true
15029 fi
15030 rm -f core conftest.err conftest.$ac_objext \
15031 conftest$ac_exeext conftest.$ac_ext
15032 else
15033 # Workaround http://bugs.python.org/issue4434 where static
15034 # libpythonX.Y.a would get its symbols required for
15035 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15036 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15037
15038 # Note the workaround for Python
15039 # http://bugs.python.org/issue10112 earlier has removed
15040 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15041 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15042 # always pass.
15043 old_CFLAGS="$CFLAGS"
15044 CFLAGS="$CFLAGS $PYTHON_CFLAGS"
15045 old_LIBS="$LIBS"
15046 LIBS="$LIBS $PYTHON_LIBS"
15047 old_CPPFLAGS="$CPPFLAGS"
15048 CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
15049 if test "$cross_compiling" = yes; then :
15050 true
15051 else
15052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15053 /* end confdefs.h. */
15054 #include "Python.h"
15055 int
15056 main ()
15057 {
15058 int err;
15059 Py_Initialize ();
15060 err = PyRun_SimpleString ("import itertools\n");
15061 Py_Finalize ();
15062 return err == 0 ? 0 : 1;
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 if ac_fn_c_try_run "$LINENO"; then :
15068 dynamic_list=true
15069 fi
15070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15071 conftest.$ac_objext conftest.beam conftest.$ac_ext
15072 fi
15073
15074 LIBS="$old_LIBS"
15075 CFLAGS="$old_CFLAGS"
15076 CPPFLAGS="$old_CPPFLAGS"
15077 fi
15078 LDFLAGS="$old_LDFLAGS"
15079 fi
15080 if $dynamic_list; then
15081 found="-Wl,--dynamic-list"
15082 RDYNAMIC='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15083 else
15084 found="-rdynamic"
15085 RDYNAMIC="-rdynamic"
15086 fi
15087
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15089 $as_echo "$found" >&6; }
15090
15091
15092 if test ${build} = ${host} -a ${host} = ${target} ; then
15093 case ${host_os} in
15094 aix*)
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15096 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15097 if ${gdb_cv_have_aix_thread_debug+:} false; then :
15098 $as_echo_n "(cached) " >&6
15099 else
15100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15101 /* end confdefs.h. */
15102 #include <sys/pthdebug.h>
15103 int
15104 main ()
15105 {
15106 #ifndef PTHDB_VERSION_3
15107 #error
15108 #endif
15109 ;
15110 return 0;
15111 }
15112 _ACEOF
15113 if ac_fn_c_try_compile "$LINENO"; then :
15114 gdb_cv_have_aix_thread_debug=yes
15115 else
15116 gdb_cv_have_aix_thread_debug=no
15117 fi
15118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15119 fi
15120
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15122 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15123 if test $gdb_cv_have_aix_thread_debug = yes; then
15124 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
15125 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
15126 LIBS="$LIBS -lpthdebug"
15127
15128 # Older versions of AIX do not provide the declaration for
15129 # the getthrds function (it appears that it was introduced
15130 # with AIX 6.x).
15131 ac_fn_c_check_decl "$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15132 "
15133 if test "x$ac_cv_have_decl_getthrds" = xyes; then :
15134 ac_have_decl=1
15135 else
15136 ac_have_decl=0
15137 fi
15138
15139 cat >>confdefs.h <<_ACEOF
15140 #define HAVE_DECL_GETTHRDS $ac_have_decl
15141 _ACEOF
15142
15143 fi
15144 ;;
15145 esac
15146
15147 fi
15148
15149 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15151 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15152 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false; then :
15153 $as_echo_n "(cached) " >&6
15154 else
15155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157 #include <thread_db.h>
15158 int
15159 main ()
15160 {
15161 int i = TD_NOTALLOC;
15162 ;
15163 return 0;
15164 }
15165 _ACEOF
15166 if ac_fn_c_try_compile "$LINENO"; then :
15167 gdb_cv_thread_db_h_has_td_notalloc=yes
15168 else
15169 gdb_cv_thread_db_h_has_td_notalloc=no
15170
15171 fi
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173
15174 fi
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15176 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15178 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15179 if ${gdb_cv_thread_db_h_has_td_version+:} false; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 #include <thread_db.h>
15185 int
15186 main ()
15187 {
15188 int i = TD_VERSION;
15189 ;
15190 return 0;
15191 }
15192 _ACEOF
15193 if ac_fn_c_try_compile "$LINENO"; then :
15194 gdb_cv_thread_db_h_has_td_version=yes
15195 else
15196 gdb_cv_thread_db_h_has_td_version=no
15197
15198 fi
15199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15203 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15205 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15206 if ${gdb_cv_thread_db_h_has_td_notls+:} false; then :
15207 $as_echo_n "(cached) " >&6
15208 else
15209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h. */
15211 #include <thread_db.h>
15212 int
15213 main ()
15214 {
15215 int i = TD_NOTLS;
15216 ;
15217 return 0;
15218 }
15219 _ACEOF
15220 if ac_fn_c_try_compile "$LINENO"; then :
15221 gdb_cv_thread_db_h_has_td_notls=yes
15222 else
15223 gdb_cv_thread_db_h_has_td_notls=no
15224
15225 fi
15226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15227
15228 fi
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15230 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15231 fi
15232 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15233
15234 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15235
15236 fi
15237 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15238
15239 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15240
15241 fi
15242 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15243
15244 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15245
15246 fi
15247
15248 ac_fn_c_check_decl "$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15249 "
15250 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes; then :
15251 ac_have_decl=1
15252 else
15253 ac_have_decl=0
15254 fi
15255
15256 cat >>confdefs.h <<_ACEOF
15257 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15258 _ACEOF
15259
15260
15261 if test "$cross_compiling" = yes; then :
15262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15263 /* end confdefs.h. */
15264 #include <sys/personality.h>
15265 int
15266 main ()
15267 {
15268
15269 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15270 # define ADDR_NO_RANDOMIZE 0x0040000
15271 # endif
15272 /* Test the flag could be set and stays set. */
15273 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15274 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15275 return 1
15276 ;
15277 return 0;
15278 }
15279 _ACEOF
15280 if ac_fn_c_try_link "$LINENO"; then :
15281 have_personality=true
15282 else
15283 have_personality=false
15284 fi
15285 rm -f core conftest.err conftest.$ac_objext \
15286 conftest$ac_exeext conftest.$ac_ext
15287 else
15288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h. */
15290 #include <sys/personality.h>
15291 int
15292 main ()
15293 {
15294
15295 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15296 # define ADDR_NO_RANDOMIZE 0x0040000
15297 # endif
15298 /* Test the flag could be set and stays set. */
15299 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15300 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15301 return 1
15302 ;
15303 return 0;
15304 }
15305 _ACEOF
15306 if ac_fn_c_try_run "$LINENO"; then :
15307 have_personality=true
15308 else
15309 have_personality=false
15310 fi
15311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15312 conftest.$ac_objext conftest.beam conftest.$ac_ext
15313 fi
15314
15315 if $have_personality
15316 then
15317
15318 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15319
15320 fi
15321
15322 case $host_os in
15323 go32* | *djgpp*)
15324 gdbinit=gdb.ini
15325 ;;
15326 *)
15327 gdbinit=.gdbinit
15328 ;;
15329 esac
15330
15331 cat >>confdefs.h <<_ACEOF
15332 #define GDBINIT "$gdbinit"
15333 _ACEOF
15334
15335
15336
15337 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15338 # except that the argument to --with-sysroot is optional.
15339 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15340 if test "x$with_sysroot" = xyes; then
15341 with_sysroot="${exec_prefix}/${target_alias}/sys-root"
15342 fi
15343
15344 # Check whether --with-sysroot was given.
15345 if test "${with_sysroot+set}" = set; then :
15346 withval=$with_sysroot; TARGET_SYSTEM_ROOT=$withval
15347 else
15348 TARGET_SYSTEM_ROOT=
15349 fi
15350
15351
15352 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15353 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15354 ac_define_dir=`eval echo $TARGET_SYSTEM_ROOT`
15355 ac_define_dir=`eval echo $ac_define_dir`
15356
15357 cat >>confdefs.h <<_ACEOF
15358 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15359 _ACEOF
15360
15361
15362
15363
15364 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15365 if test "x$prefix" = xNONE; then
15366 test_prefix=/usr/local
15367 else
15368 test_prefix=$prefix
15369 fi
15370 else
15371 test_prefix=$exec_prefix
15372 fi
15373 value=0
15374 case ${ac_define_dir} in
15375 "${test_prefix}"|"${test_prefix}/"*|\
15376 '${exec_prefix}'|'${exec_prefix}/'*)
15377 value=1
15378 ;;
15379 esac
15380
15381 cat >>confdefs.h <<_ACEOF
15382 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15383 _ACEOF
15384
15385
15386
15387
15388
15389 # Check whether --with-system-gdbinit was given.
15390 if test "${with_system_gdbinit+set}" = set; then :
15391 withval=$with_system_gdbinit;
15392 SYSTEM_GDBINIT=$withval
15393 else
15394 SYSTEM_GDBINIT=
15395 fi
15396
15397
15398 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
15399 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15400 ac_define_dir=`eval echo $SYSTEM_GDBINIT`
15401 ac_define_dir=`eval echo $ac_define_dir`
15402
15403 cat >>confdefs.h <<_ACEOF
15404 #define SYSTEM_GDBINIT "$ac_define_dir"
15405 _ACEOF
15406
15407
15408
15409
15410 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
15411 if test "x$prefix" = xNONE; then
15412 test_prefix=/usr/local
15413 else
15414 test_prefix=$prefix
15415 fi
15416 else
15417 test_prefix=$exec_prefix
15418 fi
15419 value=0
15420 case ${ac_define_dir} in
15421 "${test_prefix}"|"${test_prefix}/"*|\
15422 '${exec_prefix}'|'${exec_prefix}/'*)
15423 value=1
15424 ;;
15425 esac
15426
15427 cat >>confdefs.h <<_ACEOF
15428 #define SYSTEM_GDBINIT_RELOCATABLE $value
15429 _ACEOF
15430
15431
15432
15433
15434
15435 # Check whether --enable-werror was given.
15436 if test "${enable_werror+set}" = set; then :
15437 enableval=$enable_werror; case "${enableval}" in
15438 yes | y) ERROR_ON_WARNING="yes" ;;
15439 no | n) ERROR_ON_WARNING="no" ;;
15440 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15441 esac
15442 fi
15443
15444
15445 # Enable -Werror by default when using gcc. Turn it off for releases.
15446 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15447 ERROR_ON_WARNING=yes
15448 fi
15449
15450 WERROR_CFLAGS=""
15451 if test "${ERROR_ON_WARNING}" = yes ; then
15452 WERROR_CFLAGS="-Werror"
15453 fi
15454
15455 # The options we'll try to enable.
15456 build_warnings="-Wall -Wpointer-arith \
15457 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15458 -Wno-switch -Wno-char-subscripts \
15459 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15460 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15461 -Wno-mismatched-tags \
15462 -Wno-error=deprecated-register \
15463 -Wsuggest-override \
15464 -Wimplicit-fallthrough=3 \
15465 -Wduplicated-cond"
15466
15467 case "${host}" in
15468 *-*-mingw32*)
15469 # Enable -Wno-format by default when using gcc on mingw since many
15470 # GCC versions complain about %I64.
15471 build_warnings="$build_warnings -Wno-format" ;;
15472 *-*-solaris*)
15473 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15474 # doesn't understand.
15475 build_warnings="$build_warnings -Wno-unknown-pragmas"
15476 # Solaris 11 <unistd.h> marks vfork deprecated.
15477 build_warnings="$build_warnings -Wno-deprecated-declarations" ;;
15478 *)
15479 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15480 # but there's a special case for this below.
15481 build_warnings="$build_warnings -Wformat-nonliteral" ;;
15482 esac
15483
15484 # Check whether --enable-build-warnings was given.
15485 if test "${enable_build_warnings+set}" = set; then :
15486 enableval=$enable_build_warnings; case "${enableval}" in
15487 yes) ;;
15488 no) build_warnings="-w";;
15489 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15490 build_warnings="${build_warnings} ${t}";;
15491 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15492 build_warnings="${t} ${build_warnings}";;
15493 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15494 esac
15495 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15496 echo "Setting compiler warning flags = $build_warnings" 6>&1
15497 fi
15498 fi
15499 # Check whether --enable-gdb-build-warnings was given.
15500 if test "${enable_gdb_build_warnings+set}" = set; then :
15501 enableval=$enable_gdb_build_warnings; case "${enableval}" in
15502 yes) ;;
15503 no) build_warnings="-w";;
15504 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15505 build_warnings="${build_warnings} ${t}";;
15506 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
15507 build_warnings="${t} ${build_warnings}";;
15508 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15509 esac
15510 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
15511 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15512 fi
15513 fi
15514
15515 # The set of warnings supported by a C++ compiler is not the same as
15516 # of the C compiler.
15517 ac_ext=cpp
15518 ac_cpp='$CXXCPP $CPPFLAGS'
15519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15522
15523
15524 WARN_CFLAGS=""
15525 if test "x${build_warnings}" != x -a "x$GCC" = xyes
15526 then
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15528 $as_echo_n "checking compiler warning flags... " >&6; }
15529 # Separate out the -Werror flag as some files just cannot be
15530 # compiled with it enabled.
15531 for w in ${build_warnings}; do
15532 # GCC does not complain about -Wno-unknown-warning. Invert
15533 # and test -Wunknown-warning instead.
15534 case $w in
15535 -Wno-*)
15536 wtest=`echo $w | sed 's/-Wno-/-W/g'` ;;
15537 -Wformat-nonliteral)
15538 # gcc requires -Wformat before -Wformat-nonliteral
15539 # will work, so stick them together.
15540 w="-Wformat $w"
15541 wtest="$w"
15542 ;;
15543 *)
15544 wtest=$w ;;
15545 esac
15546
15547 case $w in
15548 -Werr*) WERROR_CFLAGS=-Werror ;;
15549 *)
15550 # Check whether GCC accepts it.
15551 saved_CFLAGS="$CFLAGS"
15552 CFLAGS="$CFLAGS -Werror $wtest"
15553 saved_CXXFLAGS="$CXXFLAGS"
15554 CXXFLAGS="$CXXFLAGS -Werror $wtest"
15555 if test "x$w" = "x-Wunused-variable"; then
15556 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15557 # fixed in GCC 4.9. This test is derived from the gdb
15558 # source code that triggered this bug in GCC.
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15561 struct scoped_restore_base {};
15562 struct scoped_restore_tmpl : public scoped_restore_base {
15563 ~scoped_restore_tmpl() {}
15564 };
15565 int
15566 main ()
15567 {
15568 const scoped_restore_base &b = scoped_restore_tmpl();
15569 ;
15570 return 0;
15571 }
15572 _ACEOF
15573 if ac_fn_cxx_try_compile "$LINENO"; then :
15574 WARN_CFLAGS="${WARN_CFLAGS} $w"
15575 fi
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577 else
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15580
15581 int
15582 main ()
15583 {
15584
15585 ;
15586 return 0;
15587 }
15588 _ACEOF
15589 if ac_fn_cxx_try_compile "$LINENO"; then :
15590 WARN_CFLAGS="${WARN_CFLAGS} $w"
15591 fi
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 fi
15594 CFLAGS="$saved_CFLAGS"
15595 CXXFLAGS="$saved_CXXFLAGS"
15596 esac
15597 done
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15599 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15600 fi
15601
15602
15603
15604 ac_ext=c
15605 ac_cpp='$CPP $CPPFLAGS'
15606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15609
15610
15611
15612 # Check whether --enable-ubsan was given.
15613 if test "${enable_ubsan+set}" = set; then :
15614 enableval=$enable_ubsan;
15615 else
15616 enable_ubsan=auto
15617 fi
15618
15619 if test "x$enable_ubsan" = xauto; then
15620 if $development; then
15621 enable_ubsan=yes
15622 fi
15623 fi
15624 ac_ext=cpp
15625 ac_cpp='$CXXCPP $CPPFLAGS'
15626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15629
15630 if test "x$enable_ubsan" = xyes; then
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsanitize=undefined is accepted" >&5
15632 $as_echo_n "checking whether -fsanitize=undefined is accepted... " >&6; }
15633 saved_CXXFLAGS="$CXXFLAGS"
15634 CXXFLAGS="$CXXFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15637
15638 int
15639 main ()
15640 {
15641
15642 ;
15643 return 0;
15644 }
15645 _ACEOF
15646 if ac_fn_cxx_try_link "$LINENO"; then :
15647 enable_ubsan=yes
15648 else
15649 enable_ubsan=no
15650 fi
15651 rm -f core conftest.err conftest.$ac_objext \
15652 conftest$ac_exeext conftest.$ac_ext
15653 CXXFLAGS="$saved_CXXFLAGS"
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_ubsan" >&5
15655 $as_echo "$enable_ubsan" >&6; }
15656 if test "x$enable_ubsan" = xyes; then
15657 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined -fno-sanitize-recover=undefined"
15658 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined"
15659 fi
15660 fi
15661 ac_ext=c
15662 ac_cpp='$CPP $CPPFLAGS'
15663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15666
15667
15668
15669 # In the Cygwin environment, we need some additional flags.
15670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5
15671 $as_echo_n "checking for cygwin... " >&6; }
15672 if ${gdb_cv_os_cygwin+:} false; then :
15673 $as_echo_n "(cached) " >&6
15674 else
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677
15678 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15679 lose
15680 #endif
15681 _ACEOF
15682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15683 $EGREP "^lose$" >/dev/null 2>&1; then :
15684 gdb_cv_os_cygwin=yes
15685 else
15686 gdb_cv_os_cygwin=no
15687 fi
15688 rm -f conftest*
15689
15690 fi
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_os_cygwin" >&5
15692 $as_echo "$gdb_cv_os_cygwin" >&6; }
15693
15694
15695 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
15696 case ${host} in
15697 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15698 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15699 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
15700 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o" ;;
15701 esac
15702
15703
15704 # libreadline needs libuser32.a in a cygwin environment
15705 WIN32LIBS=
15706 if test x$gdb_cv_os_cygwin = xyes; then
15707 WIN32LIBS="-luser32"
15708 case "${target}" in
15709 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15710 ;;
15711 esac
15712 fi
15713
15714 # The ser-tcp.c module requires sockets.
15715 case ${host} in
15716 *mingw32*)
15717
15718 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15719
15720 WIN32LIBS="$WIN32LIBS -lws2_32"
15721 ;;
15722 esac
15723
15724
15725 # Add ELF support to GDB, but only if BFD includes ELF support.
15726
15727 OLD_CFLAGS=$CFLAGS
15728 OLD_LDFLAGS=$LDFLAGS
15729 OLD_LIBS=$LIBS
15730 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15731 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15732 # always want our bfd.
15733 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15734 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15735 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15736 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15737 LIBS="-lbfd -liberty -lz $intl $LIBS"
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15739 $as_echo_n "checking for ELF support in BFD... " >&6; }
15740 if ${gdb_cv_var_elf+:} false; then :
15741 $as_echo_n "(cached) " >&6
15742 else
15743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15744 /* end confdefs.h. */
15745 #include <stdlib.h>
15746 #include "bfd.h"
15747 #include "elf-bfd.h"
15748
15749 int
15750 main ()
15751 {
15752 return bfd_get_elf_phdr_upper_bound (NULL);
15753 ;
15754 return 0;
15755 }
15756 _ACEOF
15757 if ac_fn_c_try_link "$LINENO"; then :
15758 gdb_cv_var_elf=yes
15759 else
15760 gdb_cv_var_elf=no
15761 fi
15762 rm -f core conftest.err conftest.$ac_objext \
15763 conftest$ac_exeext conftest.$ac_ext
15764 fi
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15766 $as_echo "$gdb_cv_var_elf" >&6; }
15767 CFLAGS=$OLD_CFLAGS
15768 LDFLAGS=$OLD_LDFLAGS
15769 LIBS=$OLD_LIBS
15770 if test $gdb_cv_var_elf = yes; then
15771 CONFIG_OBS="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15772
15773 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15774
15775 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15776 if test "$plugins" = "yes"; then
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15778 $as_echo_n "checking for library containing dlopen... " >&6; }
15779 if ${ac_cv_search_dlopen+:} false; then :
15780 $as_echo_n "(cached) " >&6
15781 else
15782 ac_func_search_save_LIBS=$LIBS
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785
15786 /* Override any GCC internal prototype to avoid an error.
15787 Use char because int might match the return type of a GCC
15788 builtin and then its argument prototype would still apply. */
15789 #ifdef __cplusplus
15790 extern "C"
15791 #endif
15792 char dlopen ();
15793 int
15794 main ()
15795 {
15796 return dlopen ();
15797 ;
15798 return 0;
15799 }
15800 _ACEOF
15801 for ac_lib in '' dl; do
15802 if test -z "$ac_lib"; then
15803 ac_res="none required"
15804 else
15805 ac_res=-l$ac_lib
15806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15807 fi
15808 if ac_fn_c_try_link "$LINENO"; then :
15809 ac_cv_search_dlopen=$ac_res
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext
15813 if ${ac_cv_search_dlopen+:} false; then :
15814 break
15815 fi
15816 done
15817 if ${ac_cv_search_dlopen+:} false; then :
15818
15819 else
15820 ac_cv_search_dlopen=no
15821 fi
15822 rm conftest.$ac_ext
15823 LIBS=$ac_func_search_save_LIBS
15824 fi
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15826 $as_echo "$ac_cv_search_dlopen" >&6; }
15827 ac_res=$ac_cv_search_dlopen
15828 if test "$ac_res" != no; then :
15829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15830
15831 fi
15832
15833 fi
15834 fi
15835
15836 # Add macho support to GDB, but only if BFD includes it.
15837
15838 OLD_CFLAGS=$CFLAGS
15839 OLD_LDFLAGS=$LDFLAGS
15840 OLD_LIBS=$LIBS
15841 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15842 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15843 # always want our bfd.
15844 CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15845 ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15846 LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15847 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15848 LIBS="-lbfd -liberty -lz $intl $LIBS"
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15850 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15851 if ${gdb_cv_var_macho+:} false; then :
15852 $as_echo_n "(cached) " >&6
15853 else
15854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15855 /* end confdefs.h. */
15856 #include <stdlib.h>
15857 #include "bfd.h"
15858 #include "mach-o.h"
15859
15860 int
15861 main ()
15862 {
15863 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15864 ;
15865 return 0;
15866 }
15867 _ACEOF
15868 if ac_fn_c_try_link "$LINENO"; then :
15869 gdb_cv_var_macho=yes
15870 else
15871 gdb_cv_var_macho=no
15872 fi
15873 rm -f core conftest.err conftest.$ac_objext \
15874 conftest$ac_exeext conftest.$ac_ext
15875 fi
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15877 $as_echo "$gdb_cv_var_macho" >&6; }
15878 CFLAGS=$OLD_CFLAGS
15879 LDFLAGS=$OLD_LDFLAGS
15880 LIBS=$OLD_LIBS
15881 if test $gdb_cv_var_macho = yes; then
15882 CONFIG_OBS="$CONFIG_OBS machoread.o"
15883 fi
15884
15885 # Add any host-specific objects to GDB.
15886 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
15887
15888 # If building on ELF, look for lzma support for embedded compressed debug info.
15889 if test $gdb_cv_var_elf = yes; then
15890
15891 # Check whether --with-lzma was given.
15892 if test "${with_lzma+set}" = set; then :
15893 withval=$with_lzma;
15894 else
15895 with_lzma=auto
15896 fi
15897
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15899 $as_echo_n "checking whether to use lzma... " >&6; }
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15901 $as_echo "$with_lzma" >&6; }
15902
15903 if test "${with_lzma}" != no; then
15904
15905
15906
15907
15908
15909
15910
15911
15912 use_additional=yes
15913
15914 acl_save_prefix="$prefix"
15915 prefix="$acl_final_prefix"
15916 acl_save_exec_prefix="$exec_prefix"
15917 exec_prefix="$acl_final_exec_prefix"
15918
15919 eval additional_includedir=\"$includedir\"
15920 eval additional_libdir=\"$libdir\"
15921
15922 exec_prefix="$acl_save_exec_prefix"
15923 prefix="$acl_save_prefix"
15924
15925
15926 # Check whether --with-liblzma-prefix was given.
15927 if test "${with_liblzma_prefix+set}" = set; then :
15928 withval=$with_liblzma_prefix;
15929 if test "X$withval" = "Xno"; then
15930 use_additional=no
15931 else
15932 if test "X$withval" = "X"; then
15933
15934 acl_save_prefix="$prefix"
15935 prefix="$acl_final_prefix"
15936 acl_save_exec_prefix="$exec_prefix"
15937 exec_prefix="$acl_final_exec_prefix"
15938
15939 eval additional_includedir=\"$includedir\"
15940 eval additional_libdir=\"$libdir\"
15941
15942 exec_prefix="$acl_save_exec_prefix"
15943 prefix="$acl_save_prefix"
15944
15945 else
15946 additional_includedir="$withval/include"
15947 additional_libdir="$withval/lib"
15948 fi
15949 fi
15950
15951 fi
15952
15953 LIBLZMA=
15954 LTLIBLZMA=
15955 INCLZMA=
15956 rpathdirs=
15957 ltrpathdirs=
15958 names_already_handled=
15959 names_next_round='lzma '
15960 while test -n "$names_next_round"; do
15961 names_this_round="$names_next_round"
15962 names_next_round=
15963 for name in $names_this_round; do
15964 already_handled=
15965 for n in $names_already_handled; do
15966 if test "$n" = "$name"; then
15967 already_handled=yes
15968 break
15969 fi
15970 done
15971 if test -z "$already_handled"; then
15972 names_already_handled="$names_already_handled $name"
15973 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15974 eval value=\"\$HAVE_LIB$uppername\"
15975 if test -n "$value"; then
15976 if test "$value" = yes; then
15977 eval value=\"\$LIB$uppername\"
15978 test -z "$value" || LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$value"
15979 eval value=\"\$LTLIB$uppername\"
15980 test -z "$value" || LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15981 else
15982 :
15983 fi
15984 else
15985 found_dir=
15986 found_la=
15987 found_so=
15988 found_a=
15989 if test $use_additional = yes; then
15990 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15991 found_dir="$additional_libdir"
15992 found_so="$additional_libdir/lib$name.$shlibext"
15993 if test -f "$additional_libdir/lib$name.la"; then
15994 found_la="$additional_libdir/lib$name.la"
15995 fi
15996 else
15997 if test -f "$additional_libdir/lib$name.$libext"; then
15998 found_dir="$additional_libdir"
15999 found_a="$additional_libdir/lib$name.$libext"
16000 if test -f "$additional_libdir/lib$name.la"; then
16001 found_la="$additional_libdir/lib$name.la"
16002 fi
16003 fi
16004 fi
16005 fi
16006 if test "X$found_dir" = "X"; then
16007 for x in $LDFLAGS $LTLIBLZMA; do
16008
16009 acl_save_prefix="$prefix"
16010 prefix="$acl_final_prefix"
16011 acl_save_exec_prefix="$exec_prefix"
16012 exec_prefix="$acl_final_exec_prefix"
16013 eval x=\"$x\"
16014 exec_prefix="$acl_save_exec_prefix"
16015 prefix="$acl_save_prefix"
16016
16017 case "$x" in
16018 -L*)
16019 dir=`echo "X$x" | sed -e 's/^X-L//'`
16020 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16021 found_dir="$dir"
16022 found_so="$dir/lib$name.$shlibext"
16023 if test -f "$dir/lib$name.la"; then
16024 found_la="$dir/lib$name.la"
16025 fi
16026 else
16027 if test -f "$dir/lib$name.$libext"; then
16028 found_dir="$dir"
16029 found_a="$dir/lib$name.$libext"
16030 if test -f "$dir/lib$name.la"; then
16031 found_la="$dir/lib$name.la"
16032 fi
16033 fi
16034 fi
16035 ;;
16036 esac
16037 if test "X$found_dir" != "X"; then
16038 break
16039 fi
16040 done
16041 fi
16042 if test "X$found_dir" != "X"; then
16043 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
16044 if test "X$found_so" != "X"; then
16045 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16046 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
16047 else
16048 haveit=
16049 for x in $ltrpathdirs; do
16050 if test "X$x" = "X$found_dir"; then
16051 haveit=yes
16052 break
16053 fi
16054 done
16055 if test -z "$haveit"; then
16056 ltrpathdirs="$ltrpathdirs $found_dir"
16057 fi
16058 if test "$hardcode_direct" = yes; then
16059 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
16060 else
16061 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16062 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
16063 haveit=
16064 for x in $rpathdirs; do
16065 if test "X$x" = "X$found_dir"; then
16066 haveit=yes
16067 break
16068 fi
16069 done
16070 if test -z "$haveit"; then
16071 rpathdirs="$rpathdirs $found_dir"
16072 fi
16073 else
16074 haveit=
16075 for x in $LDFLAGS $LIBLZMA; do
16076
16077 acl_save_prefix="$prefix"
16078 prefix="$acl_final_prefix"
16079 acl_save_exec_prefix="$exec_prefix"
16080 exec_prefix="$acl_final_exec_prefix"
16081 eval x=\"$x\"
16082 exec_prefix="$acl_save_exec_prefix"
16083 prefix="$acl_save_prefix"
16084
16085 if test "X$x" = "X-L$found_dir"; then
16086 haveit=yes
16087 break
16088 fi
16089 done
16090 if test -z "$haveit"; then
16091 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16092 fi
16093 if test "$hardcode_minus_L" != no; then
16094 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_so"
16095 else
16096 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
16097 fi
16098 fi
16099 fi
16100 fi
16101 else
16102 if test "X$found_a" != "X"; then
16103 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$found_a"
16104 else
16105 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16106 fi
16107 fi
16108 additional_includedir=
16109 case "$found_dir" in
16110 */lib | */lib/)
16111 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16112 additional_includedir="$basedir/include"
16113 ;;
16114 esac
16115 if test "X$additional_includedir" != "X"; then
16116 if test "X$additional_includedir" != "X/usr/include"; then
16117 haveit=
16118 if test "X$additional_includedir" = "X/usr/local/include"; then
16119 if test -n "$GCC"; then
16120 case $host_os in
16121 linux*) haveit=yes;;
16122 esac
16123 fi
16124 fi
16125 if test -z "$haveit"; then
16126 for x in $CPPFLAGS $INCLZMA; do
16127
16128 acl_save_prefix="$prefix"
16129 prefix="$acl_final_prefix"
16130 acl_save_exec_prefix="$exec_prefix"
16131 exec_prefix="$acl_final_exec_prefix"
16132 eval x=\"$x\"
16133 exec_prefix="$acl_save_exec_prefix"
16134 prefix="$acl_save_prefix"
16135
16136 if test "X$x" = "X-I$additional_includedir"; then
16137 haveit=yes
16138 break
16139 fi
16140 done
16141 if test -z "$haveit"; then
16142 if test -d "$additional_includedir"; then
16143 INCLZMA="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16144 fi
16145 fi
16146 fi
16147 fi
16148 fi
16149 if test -n "$found_la"; then
16150 save_libdir="$libdir"
16151 case "$found_la" in
16152 */* | *\\*) . "$found_la" ;;
16153 *) . "./$found_la" ;;
16154 esac
16155 libdir="$save_libdir"
16156 for dep in $dependency_libs; do
16157 case "$dep" in
16158 -L*)
16159 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16160 if test "X$additional_libdir" != "X/usr/lib"; then
16161 haveit=
16162 if test "X$additional_libdir" = "X/usr/local/lib"; then
16163 if test -n "$GCC"; then
16164 case $host_os in
16165 linux*) haveit=yes;;
16166 esac
16167 fi
16168 fi
16169 if test -z "$haveit"; then
16170 haveit=
16171 for x in $LDFLAGS $LIBLZMA; do
16172
16173 acl_save_prefix="$prefix"
16174 prefix="$acl_final_prefix"
16175 acl_save_exec_prefix="$exec_prefix"
16176 exec_prefix="$acl_final_exec_prefix"
16177 eval x=\"$x\"
16178 exec_prefix="$acl_save_exec_prefix"
16179 prefix="$acl_save_prefix"
16180
16181 if test "X$x" = "X-L$additional_libdir"; then
16182 haveit=yes
16183 break
16184 fi
16185 done
16186 if test -z "$haveit"; then
16187 if test -d "$additional_libdir"; then
16188 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16189 fi
16190 fi
16191 haveit=
16192 for x in $LDFLAGS $LTLIBLZMA; do
16193
16194 acl_save_prefix="$prefix"
16195 prefix="$acl_final_prefix"
16196 acl_save_exec_prefix="$exec_prefix"
16197 exec_prefix="$acl_final_exec_prefix"
16198 eval x=\"$x\"
16199 exec_prefix="$acl_save_exec_prefix"
16200 prefix="$acl_save_prefix"
16201
16202 if test "X$x" = "X-L$additional_libdir"; then
16203 haveit=yes
16204 break
16205 fi
16206 done
16207 if test -z "$haveit"; then
16208 if test -d "$additional_libdir"; then
16209 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16210 fi
16211 fi
16212 fi
16213 fi
16214 ;;
16215 -R*)
16216 dir=`echo "X$dep" | sed -e 's/^X-R//'`
16217 if test "$enable_rpath" != no; then
16218 haveit=
16219 for x in $rpathdirs; do
16220 if test "X$x" = "X$dir"; then
16221 haveit=yes
16222 break
16223 fi
16224 done
16225 if test -z "$haveit"; then
16226 rpathdirs="$rpathdirs $dir"
16227 fi
16228 haveit=
16229 for x in $ltrpathdirs; do
16230 if test "X$x" = "X$dir"; then
16231 haveit=yes
16232 break
16233 fi
16234 done
16235 if test -z "$haveit"; then
16236 ltrpathdirs="$ltrpathdirs $dir"
16237 fi
16238 fi
16239 ;;
16240 -l*)
16241 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16242 ;;
16243 *.la)
16244 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16245 ;;
16246 *)
16247 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$dep"
16248 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16249 ;;
16250 esac
16251 done
16252 fi
16253 else
16254 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }-l$name"
16255 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16256 fi
16257 fi
16258 fi
16259 done
16260 done
16261 if test "X$rpathdirs" != "X"; then
16262 if test -n "$hardcode_libdir_separator"; then
16263 alldirs=
16264 for found_dir in $rpathdirs; do
16265 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16266 done
16267 acl_save_libdir="$libdir"
16268 libdir="$alldirs"
16269 eval flag=\"$hardcode_libdir_flag_spec\"
16270 libdir="$acl_save_libdir"
16271 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16272 else
16273 for found_dir in $rpathdirs; do
16274 acl_save_libdir="$libdir"
16275 libdir="$found_dir"
16276 eval flag=\"$hardcode_libdir_flag_spec\"
16277 libdir="$acl_save_libdir"
16278 LIBLZMA="${LIBLZMA}${LIBLZMA:+ }$flag"
16279 done
16280 fi
16281 fi
16282 if test "X$ltrpathdirs" != "X"; then
16283 for found_dir in $ltrpathdirs; do
16284 LTLIBLZMA="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16285 done
16286 fi
16287
16288
16289 ac_save_CPPFLAGS="$CPPFLAGS"
16290
16291 for element in $INCLZMA; do
16292 haveit=
16293 for x in $CPPFLAGS; do
16294
16295 acl_save_prefix="$prefix"
16296 prefix="$acl_final_prefix"
16297 acl_save_exec_prefix="$exec_prefix"
16298 exec_prefix="$acl_final_exec_prefix"
16299 eval x=\"$x\"
16300 exec_prefix="$acl_save_exec_prefix"
16301 prefix="$acl_save_prefix"
16302
16303 if test "X$x" = "X$element"; then
16304 haveit=yes
16305 break
16306 fi
16307 done
16308 if test -z "$haveit"; then
16309 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16310 fi
16311 done
16312
16313
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16315 $as_echo_n "checking for liblzma... " >&6; }
16316 if ${ac_cv_liblzma+:} false; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319
16320 ac_save_LIBS="$LIBS"
16321 LIBS="$LIBS $LIBLZMA"
16322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323 /* end confdefs.h. */
16324 #include "lzma.h"
16325 int
16326 main ()
16327 {
16328 lzma_index_iter iter;
16329 lzma_index_iter_init (&iter, 0);
16330 lzma_mf_is_supported (LZMA_MF_HC3);
16331 ;
16332 return 0;
16333 }
16334 _ACEOF
16335 if ac_fn_c_try_link "$LINENO"; then :
16336 ac_cv_liblzma=yes
16337 else
16338 ac_cv_liblzma=no
16339 fi
16340 rm -f core conftest.err conftest.$ac_objext \
16341 conftest$ac_exeext conftest.$ac_ext
16342 LIBS="$ac_save_LIBS"
16343
16344 fi
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16346 $as_echo "$ac_cv_liblzma" >&6; }
16347 if test "$ac_cv_liblzma" = yes; then
16348 HAVE_LIBLZMA=yes
16349
16350 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16351
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16353 $as_echo_n "checking how to link with liblzma... " >&6; }
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16355 $as_echo "$LIBLZMA" >&6; }
16356 else
16357 HAVE_LIBLZMA=no
16358 CPPFLAGS="$ac_save_CPPFLAGS"
16359 LIBLZMA=
16360 LTLIBLZMA=
16361 fi
16362
16363
16364
16365
16366
16367
16368 if test "$HAVE_LIBLZMA" != yes; then
16369 if test "$with_lzma" = yes; then
16370 as_fn_error $? "missing liblzma for --with-lzma" "$LINENO" 5
16371 fi
16372 fi
16373 fi
16374 fi
16375
16376 LIBGUI="../libgui/src/libgui.a"
16377 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
16378
16379
16380
16381 WIN32LDAPP=
16382
16383
16384
16385 case "${host}" in
16386 *-*-cygwin* | *-*-mingw* )
16387 configdir="win"
16388 ;;
16389 *)
16390 configdir="unix"
16391 ;;
16392 esac
16393
16394 GDBTKLIBS=
16395 if test "${enable_gdbtk}" = "yes"; then
16396
16397 # Gdbtk must have an absolute path to srcdir in order to run
16398 # properly when not installed.
16399 here=`pwd`
16400 cd ${srcdir}
16401 GDBTK_SRC_DIR=`pwd`
16402 cd $here
16403
16404
16405 #
16406 # Ok, lets find the tcl configuration
16407 # First, look for one uninstalled.
16408 # the alternative search directory is invoked by --with-tcl
16409 #
16410
16411 if test x"${no_tcl}" = x ; then
16412 # we reset no_tcl in case something fails here
16413 no_tcl=true
16414
16415 # Check whether --with-tcl was given.
16416 if test "${with_tcl+set}" = set; then :
16417 withval=$with_tcl; with_tclconfig=${withval}
16418 fi
16419
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16421 $as_echo_n "checking for Tcl configuration... " >&6; }
16422 if ${ac_cv_c_tclconfig+:} false; then :
16423 $as_echo_n "(cached) " >&6
16424 else
16425
16426
16427 # First check to see if --with-tcl was specified.
16428 case "${host}" in
16429 *-*-cygwin*) platDir="win" ;;
16430 *) platDir="unix" ;;
16431 esac
16432 if test x"${with_tclconfig}" != x ; then
16433 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16434 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
16435 else
16436 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16437 fi
16438 fi
16439
16440 # then check for a private Tcl installation
16441 if test x"${ac_cv_c_tclconfig}" = x ; then
16442 for i in \
16443 ../tcl \
16444 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16445 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16446 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16447 ../../tcl \
16448 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16449 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16450 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16451 ../../../tcl \
16452 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16453 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16454 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16455 if test -f "$i/$platDir/tclConfig.sh" ; then
16456 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16457 break
16458 fi
16459 done
16460 fi
16461
16462 # on Darwin, check in Framework installation locations
16463 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
16464 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16465 `ls -d /Library/Frameworks 2>/dev/null` \
16466 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16467 `ls -d /System/Library/Frameworks 2>/dev/null` \
16468 ; do
16469 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16470 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
16471 break
16472 fi
16473 done
16474 fi
16475
16476 # check in a few common install locations
16477 if test x"${ac_cv_c_tclconfig}" = x ; then
16478 for i in `ls -d ${libdir} 2>/dev/null` \
16479 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16480 `ls -d ${prefix}/lib 2>/dev/null` \
16481 `ls -d /usr/local/lib 2>/dev/null` \
16482 `ls -d /usr/contrib/lib 2>/dev/null` \
16483 `ls -d /usr/lib 2>/dev/null` \
16484 ; do
16485 if test -f "$i/tclConfig.sh" ; then
16486 ac_cv_c_tclconfig=`(cd $i; pwd)`
16487 break
16488 fi
16489 done
16490 fi
16491
16492 # check in a few other private locations
16493 if test x"${ac_cv_c_tclconfig}" = x ; then
16494 for i in \
16495 ${srcdir}/../tcl \
16496 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16497 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16498 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16499 if test -f "$i/$platDir/tclConfig.sh" ; then
16500 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
16501 break
16502 fi
16503 done
16504 fi
16505
16506 fi
16507
16508
16509 if test x"${ac_cv_c_tclconfig}" = x ; then
16510 TCL_BIN_DIR="# no Tcl configs found"
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16512 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16513 else
16514 no_tcl=
16515 TCL_BIN_DIR=${ac_cv_c_tclconfig}
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16517 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16518 fi
16519 fi
16520
16521
16522 # If $no_tk is nonempty, then we can't do Tk, and there is no
16523 # point to doing Tcl.
16524
16525 #
16526 # Ok, lets find the tk configuration
16527 # First, look for one uninstalled.
16528 # the alternative search directory is invoked by --with-tk
16529 #
16530
16531 if test x"${no_tk}" = x ; then
16532 # we reset no_tk in case something fails here
16533 no_tk=true
16534
16535 # Check whether --with-tk was given.
16536 if test "${with_tk+set}" = set; then :
16537 withval=$with_tk; with_tkconfig=${withval}
16538 fi
16539
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16541 $as_echo_n "checking for Tk configuration... " >&6; }
16542 if ${ac_cv_c_tkconfig+:} false; then :
16543 $as_echo_n "(cached) " >&6
16544 else
16545
16546
16547 # First check to see if --with-tkconfig was specified.
16548 if test x"${with_tkconfig}" != x ; then
16549 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16550 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
16551 else
16552 as_fn_error $? "${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16553 fi
16554 fi
16555
16556 # then check for a private Tk library
16557 case "${host}" in
16558 *-*-cygwin*) platDir="win" ;;
16559 *) platDir="unix" ;;
16560 esac
16561 if test x"${ac_cv_c_tkconfig}" = x ; then
16562 for i in \
16563 ../tk \
16564 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16565 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16566 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16567 ../../tk \
16568 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16569 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16570 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16571 ../../../tk \
16572 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16573 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16574 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16575 if test -f "$i/$platDir/tkConfig.sh" ; then
16576 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16577 break
16578 fi
16579 done
16580 fi
16581
16582 # on Darwin, check in Framework installation locations
16583 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
16584 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
16585 `ls -d /Library/Frameworks 2>/dev/null` \
16586 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16587 `ls -d /System/Library/Frameworks 2>/dev/null` \
16588 ; do
16589 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16590 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
16591 break
16592 fi
16593 done
16594 fi
16595
16596 # check in a few common install locations
16597 if test x"${ac_cv_c_tkconfig}" = x ; then
16598 for i in `ls -d ${libdir} 2>/dev/null` \
16599 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16600 `ls -d ${prefix}/lib 2>/dev/null` \
16601 `ls -d /usr/local/lib 2>/dev/null` \
16602 `ls -d /usr/contrib/lib 2>/dev/null` \
16603 `ls -d /usr/lib 2>/dev/null` \
16604 ; do
16605 if test -f "$i/tkConfig.sh" ; then
16606 ac_cv_c_tkconfig=`(cd $i; pwd)`
16607 break
16608 fi
16609 done
16610 fi
16611 # check in a few other private locations
16612 if test x"${ac_cv_c_tkconfig}" = x ; then
16613 for i in \
16614 ${srcdir}/../tk \
16615 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16616 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16617 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16618 if test -f "$i/$platDir/tkConfig.sh" ; then
16619 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
16620 break
16621 fi
16622 done
16623 fi
16624
16625 fi
16626
16627
16628 if test x"${ac_cv_c_tkconfig}" = x ; then
16629 TK_BIN_DIR="# no Tk configs found"
16630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16631 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16632 else
16633 no_tk=
16634 TK_BIN_DIR=${ac_cv_c_tkconfig}
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16636 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16637 fi
16638 fi
16639
16640
16641 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16642
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16644 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16645
16646 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16648 $as_echo "loading" >&6; }
16649 . ${TCL_BIN_DIR}/tclConfig.sh
16650 else
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16652 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16653 fi
16654
16655 # eval is required to do the TCL_DBGX substitution
16656 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16657 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16658
16659 # If the TCL_BIN_DIR is the build directory (not the install directory),
16660 # then set the common variable name to the value of the build variables.
16661 # For example, the variable TCL_LIB_SPEC will be set to the value
16662 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16663 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16664 # installed and uninstalled version of Tcl.
16665 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16666 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
16667 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
16668 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
16669 elif test "`uname -s`" = "Darwin"; then
16670 # If Tcl was built as a framework, attempt to use the libraries
16671 # from the framework at the given location so that linking works
16672 # against Tcl.framework installed in an arbitrary location.
16673 case ${TCL_DEFS} in
16674 *TCL_FRAMEWORK*)
16675 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16676 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
16677 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16678 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16679 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16680 break
16681 fi
16682 done
16683 fi
16684 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16685 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16686 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16687 fi
16688 ;;
16689 esac
16690 fi
16691
16692 # eval is required to do the TCL_DBGX substitution
16693 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16694 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16695 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16696 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712 # Check for in-tree tcl
16713 here=`pwd`
16714 cd ${srcdir}/..
16715 topdir=`pwd`
16716 cd ${here}
16717
16718 intree="no"
16719 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16720 intree="yes"
16721 fi
16722
16723 # Find Tcl private headers
16724 if test x"${intree}" = xno; then
16725
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16727 $as_echo_n "checking for Tcl private headers... " >&6; }
16728 private_dir=""
16729 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16730 if test -f ${dir}/tclInt.h ; then
16731 private_dir=${dir}
16732 fi
16733
16734 if test x"${private_dir}" = x; then
16735 as_fn_error $? "could not find private Tcl headers" "$LINENO" 5
16736 else
16737 TCL_PRIVATE_INCLUDE="-I${private_dir}"
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16739 $as_echo "${private_dir}" >&6; }
16740 fi
16741
16742 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16743 TCL_LIBRARY="${TCL_LIB_SPEC}"
16744 TCL_DEPS=""
16745 else
16746 # If building tcl in the same src tree, private headers
16747 # are not needed, but we need to be sure to use the right
16748 # headers library
16749 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
16750 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
16751 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
16752 fi
16753
16754
16755
16756
16757
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16759 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16760
16761 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16763 $as_echo "loading" >&6; }
16764 . ${TK_BIN_DIR}/tkConfig.sh
16765 else
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16767 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16768 fi
16769
16770 # eval is required to do the TK_DBGX substitution
16771 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16772 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16773
16774 # If the TK_BIN_DIR is the build directory (not the install directory),
16775 # then set the common variable name to the value of the build variables.
16776 # For example, the variable TK_LIB_SPEC will be set to the value
16777 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16778 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16779 # installed and uninstalled version of Tcl.
16780 if test -f "${TK_BIN_DIR}/Makefile" ; then
16781 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
16782 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
16783 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
16784 elif test "`uname -s`" = "Darwin"; then
16785 # If Tk was built as a framework, attempt to use the libraries
16786 # from the framework at the given location so that linking works
16787 # against Tk.framework installed in an arbitrary location.
16788 case ${TK_DEFS} in
16789 *TK_FRAMEWORK*)
16790 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16791 for i in "`cd ${TK_BIN_DIR}; pwd`" \
16792 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16793 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16794 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16795 break
16796 fi
16797 done
16798 fi
16799 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16800 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16801 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16802 fi
16803 ;;
16804 esac
16805 fi
16806
16807 # eval is required to do the TK_DBGX substitution
16808 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16809 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16810 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16811 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16812
16813
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826 # Check for in-tree Tk
16827 intree="no"
16828 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16829 intree="yes"
16830 fi
16831
16832 # Find Tk private headers
16833 if test x"${intree}" = xno; then
16834
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16836 $as_echo_n "checking for Tk private headers... " >&6; }
16837 private_dir=""
16838 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16839 if test -f ${dir}/tkInt.h; then
16840 private_dir=${dir}
16841 fi
16842
16843 if test x"${private_dir}" = x; then
16844 as_fn_error $? "could not find Tk private headers" "$LINENO" 5
16845 else
16846 TK_PRIVATE_INCLUDE="-I${private_dir}"
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16848 $as_echo "${private_dir}" >&6; }
16849 fi
16850
16851 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16852 TK_LIBRARY=${TK_LIB_SPEC}
16853 TK_DEPS=""
16854 else
16855 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
16856 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
16857 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
16858 fi
16859
16860
16861
16862
16863
16864 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16865
16866 # Include some libraries that Tcl and Tk want.
16867 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16868 # Yes, the ordering seems wrong here. But it isn't.
16869 # TK_LIBS is the list of libraries that need to be linked
16870 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16871 # were in LIBS then any link tests after this point would
16872 # try to include things like `$(LIBGUI)', which wouldn't work.
16873 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
16874
16875 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16876 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16877 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16878 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
16879 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
16880 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
16881 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
16882
16883 if test x$gdb_cv_os_cygwin = xyes; then
16884 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16885 WIN32LDAPP="-Wl,--subsystem,console"
16886 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
16887 fi
16888
16889 subdirs="$subdirs gdbtk"
16890
16891 fi
16892 fi
16893
16894
16895
16896
16897
16898
16899
16900
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16902 $as_echo_n "checking for X... " >&6; }
16903
16904
16905 # Check whether --with-x was given.
16906 if test "${with_x+set}" = set; then :
16907 withval=$with_x;
16908 fi
16909
16910 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16911 if test "x$with_x" = xno; then
16912 # The user explicitly disabled X.
16913 have_x=disabled
16914 else
16915 case $x_includes,$x_libraries in #(
16916 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
16917 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
16918 $as_echo_n "(cached) " >&6
16919 else
16920 # One or both of the vars are not set, and there is no cached value.
16921 ac_x_includes=no ac_x_libraries=no
16922 rm -f -r conftest.dir
16923 if mkdir conftest.dir; then
16924 cd conftest.dir
16925 cat >Imakefile <<'_ACEOF'
16926 incroot:
16927 @echo incroot='${INCROOT}'
16928 usrlibdir:
16929 @echo usrlibdir='${USRLIBDIR}'
16930 libdir:
16931 @echo libdir='${LIBDIR}'
16932 _ACEOF
16933 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16934 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16935 for ac_var in incroot usrlibdir libdir; do
16936 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16937 done
16938 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16939 for ac_extension in a so sl dylib la dll; do
16940 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16941 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16942 ac_im_usrlibdir=$ac_im_libdir; break
16943 fi
16944 done
16945 # Screen out bogus values from the imake configuration. They are
16946 # bogus both because they are the default anyway, and because
16947 # using them would break gcc on systems where it needs fixed includes.
16948 case $ac_im_incroot in
16949 /usr/include) ac_x_includes= ;;
16950 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16951 esac
16952 case $ac_im_usrlibdir in
16953 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
16954 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16955 esac
16956 fi
16957 cd ..
16958 rm -f -r conftest.dir
16959 fi
16960
16961 # Standard set of common directories for X headers.
16962 # Check X11 before X11Rn because it is often a symlink to the current release.
16963 ac_x_header_dirs='
16964 /usr/X11/include
16965 /usr/X11R7/include
16966 /usr/X11R6/include
16967 /usr/X11R5/include
16968 /usr/X11R4/include
16969
16970 /usr/include/X11
16971 /usr/include/X11R7
16972 /usr/include/X11R6
16973 /usr/include/X11R5
16974 /usr/include/X11R4
16975
16976 /usr/local/X11/include
16977 /usr/local/X11R7/include
16978 /usr/local/X11R6/include
16979 /usr/local/X11R5/include
16980 /usr/local/X11R4/include
16981
16982 /usr/local/include/X11
16983 /usr/local/include/X11R7
16984 /usr/local/include/X11R6
16985 /usr/local/include/X11R5
16986 /usr/local/include/X11R4
16987
16988 /usr/X386/include
16989 /usr/x386/include
16990 /usr/XFree86/include/X11
16991
16992 /usr/include
16993 /usr/local/include
16994 /usr/unsupported/include
16995 /usr/athena/include
16996 /usr/local/x11r5/include
16997 /usr/lpp/Xamples/include
16998
16999 /usr/openwin/include
17000 /usr/openwin/share/include'
17001
17002 if test "$ac_x_includes" = no; then
17003 # Guess where to find include files, by looking for Xlib.h.
17004 # First, try using that file with no special directory specified.
17005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17006 /* end confdefs.h. */
17007 #include <X11/Xlib.h>
17008 _ACEOF
17009 if ac_fn_c_try_cpp "$LINENO"; then :
17010 # We can compile using X headers with no special include directory.
17011 ac_x_includes=
17012 else
17013 for ac_dir in $ac_x_header_dirs; do
17014 if test -r "$ac_dir/X11/Xlib.h"; then
17015 ac_x_includes=$ac_dir
17016 break
17017 fi
17018 done
17019 fi
17020 rm -f conftest.err conftest.i conftest.$ac_ext
17021 fi # $ac_x_includes = no
17022
17023 if test "$ac_x_libraries" = no; then
17024 # Check for the libraries.
17025 # See if we find them without any special options.
17026 # Don't add to $LIBS permanently.
17027 ac_save_LIBS=$LIBS
17028 LIBS="-lX11 $LIBS"
17029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17030 /* end confdefs.h. */
17031 #include <X11/Xlib.h>
17032 int
17033 main ()
17034 {
17035 XrmInitialize ()
17036 ;
17037 return 0;
17038 }
17039 _ACEOF
17040 if ac_fn_c_try_link "$LINENO"; then :
17041 LIBS=$ac_save_LIBS
17042 # We can link X programs with no special library path.
17043 ac_x_libraries=
17044 else
17045 LIBS=$ac_save_LIBS
17046 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17047 do
17048 # Don't even attempt the hair of trying to link an X program!
17049 for ac_extension in a so sl dylib la dll; do
17050 if test -r "$ac_dir/libX11.$ac_extension"; then
17051 ac_x_libraries=$ac_dir
17052 break 2
17053 fi
17054 done
17055 done
17056 fi
17057 rm -f core conftest.err conftest.$ac_objext \
17058 conftest$ac_exeext conftest.$ac_ext
17059 fi # $ac_x_libraries = no
17060
17061 case $ac_x_includes,$ac_x_libraries in #(
17062 no,* | *,no | *\'*)
17063 # Didn't find X, or a directory has "'" in its name.
17064 ac_cv_have_x="have_x=no";; #(
17065 *)
17066 # Record where we found X for the cache.
17067 ac_cv_have_x="have_x=yes\
17068 ac_x_includes='$ac_x_includes'\
17069 ac_x_libraries='$ac_x_libraries'"
17070 esac
17071 fi
17072 ;; #(
17073 *) have_x=yes;;
17074 esac
17075 eval "$ac_cv_have_x"
17076 fi # $with_x != no
17077
17078 if test "$have_x" != yes; then
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17080 $as_echo "$have_x" >&6; }
17081 no_x=yes
17082 else
17083 # If each of the values was on the command line, it overrides each guess.
17084 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17085 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17086 # Update the cache value to reflect the command line values.
17087 ac_cv_have_x="have_x=yes\
17088 ac_x_includes='$x_includes'\
17089 ac_x_libraries='$x_libraries'"
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17091 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17092 fi
17093
17094
17095 # Unlike the sim directory, whether a simulator is linked is controlled by
17096 # presence of a gdb_sim definition in the target configure.tgt entry.
17097 # This code just checks for a few cases where we'd like to ignore those
17098 # definitions, even when they're present in the '.mt' file. These cases
17099 # are when --disable-sim is specified, or if the simulator directory is
17100 # not part of the source tree.
17101 #
17102 # Check whether --enable-sim was given.
17103 if test "${enable_sim+set}" = set; then :
17104 enableval=$enable_sim; echo "enable_sim = $enable_sim";
17105 echo "enableval = ${enableval}";
17106 case "${enableval}" in
17107 yes) ignore_sim=false ;;
17108 no) ignore_sim=true ;;
17109 *) ignore_sim=false ;;
17110 esac
17111 else
17112 ignore_sim=false
17113 fi
17114
17115
17116 if test ! -d "${srcdir}/../sim"; then
17117 ignore_sim=true
17118 fi
17119
17120 SIM=
17121 SIM_OBS=
17122 if test "${ignore_sim}" = "false"; then
17123 if test x"${gdb_sim}" != x ; then
17124 SIM="${gdb_sim}"
17125 SIM_OBS="remote-sim.o"
17126
17127 $as_echo "#define WITH_SIM 1" >>confdefs.h
17128
17129
17130 # Some tdep code should only be compiled in when the ppc sim is
17131 # built. PR sim/13418.
17132 case $target in
17133 powerpc*-*-*)
17134
17135 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17136
17137 ;;
17138 esac
17139 fi
17140 fi
17141
17142
17143
17144
17145
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155 # List of host floatformats.
17156
17157 cat >>confdefs.h <<_ACEOF
17158 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17159 _ACEOF
17160
17161
17162 cat >>confdefs.h <<_ACEOF
17163 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17164 _ACEOF
17165
17166
17167 cat >>confdefs.h <<_ACEOF
17168 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17169 _ACEOF
17170
17171
17172 # target_subdir is used by the testsuite to find the target libraries.
17173 target_subdir=
17174 if test "${host}" != "${target}"; then
17175 target_subdir="${target_alias}/"
17176 fi
17177
17178
17179 # Import nat definitions.
17180 nat_makefile_frag=/dev/null
17181 if test "${gdb_native}" = "yes"; then
17182 . ${srcdir}/configure.nat
17183 nativefile=$NAT_FILE
17184 fi
17185
17186
17187
17188
17189
17190
17191
17192
17193
17194
17195
17196 if test x"${gdb_osabi}" != x ; then
17197
17198 cat >>confdefs.h <<_ACEOF
17199 #define GDB_OSABI_DEFAULT $gdb_osabi
17200 _ACEOF
17201
17202 fi
17203
17204 # Check whether --enable-gdbserver was given.
17205 if test "${enable_gdbserver+set}" = set; then :
17206 enableval=$enable_gdbserver; case "${enableval}" in
17207 yes| no|auto) ;;
17208 *) as_fn_error $? "bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17209 esac
17210 else
17211 enable_gdbserver=auto
17212 fi
17213
17214
17215 # We only build gdbserver automatically in a native configuration, and
17216 # only if the user did not explicitly disable its build.
17217 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17219 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17220 if test "x$build_gdbserver" = xyes; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17222 $as_echo "yes" >&6; }
17223 subdirs="$subdirs gdbserver"
17224
17225 gdbserver_build_enabled=yes
17226 else
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17228 $as_echo "no" >&6; }
17229 fi
17230 fi
17231
17232 # If the user explicitly request the gdbserver to be built, verify that
17233 # we were in fact able to enable it.
17234 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17235 as_fn_error $? "Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17236 fi
17237
17238 # Check for babeltrace and babeltrace-ctf
17239
17240 # Check whether --with-babeltrace was given.
17241 if test "${with_babeltrace+set}" = set; then :
17242 withval=$with_babeltrace;
17243 else
17244 with_babeltrace=auto
17245 fi
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17248 $as_echo_n "checking whether to use babeltrace... " >&6; }
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17250 $as_echo "$with_babeltrace" >&6; }
17251
17252 if test "x$with_babeltrace" = "xno"; then
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17254 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17255 else
17256 # Append -Werror to CFLAGS so that configure can catch the warning
17257 # "assignment from incompatible pointer type", which is related to
17258 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17259 # in GDB, while babeltrace 1.0.3 is broken.
17260 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17261 # safe to save and restore CFLAGS here.
17262 saved_CFLAGS=$CFLAGS
17263 CFLAGS="$CFLAGS -Werror"
17264
17265
17266
17267
17268
17269
17270
17271
17272 use_additional=yes
17273
17274 acl_save_prefix="$prefix"
17275 prefix="$acl_final_prefix"
17276 acl_save_exec_prefix="$exec_prefix"
17277 exec_prefix="$acl_final_exec_prefix"
17278
17279 eval additional_includedir=\"$includedir\"
17280 eval additional_libdir=\"$libdir\"
17281
17282 exec_prefix="$acl_save_exec_prefix"
17283 prefix="$acl_save_prefix"
17284
17285
17286 # Check whether --with-libbabeltrace-prefix was given.
17287 if test "${with_libbabeltrace_prefix+set}" = set; then :
17288 withval=$with_libbabeltrace_prefix;
17289 if test "X$withval" = "Xno"; then
17290 use_additional=no
17291 else
17292 if test "X$withval" = "X"; then
17293
17294 acl_save_prefix="$prefix"
17295 prefix="$acl_final_prefix"
17296 acl_save_exec_prefix="$exec_prefix"
17297 exec_prefix="$acl_final_exec_prefix"
17298
17299 eval additional_includedir=\"$includedir\"
17300 eval additional_libdir=\"$libdir\"
17301
17302 exec_prefix="$acl_save_exec_prefix"
17303 prefix="$acl_save_prefix"
17304
17305 else
17306 additional_includedir="$withval/include"
17307 additional_libdir="$withval/lib"
17308 fi
17309 fi
17310
17311 fi
17312
17313 LIBBABELTRACE=
17314 LTLIBBABELTRACE=
17315 INCBABELTRACE=
17316 rpathdirs=
17317 ltrpathdirs=
17318 names_already_handled=
17319 names_next_round='babeltrace babeltrace-ctf'
17320 while test -n "$names_next_round"; do
17321 names_this_round="$names_next_round"
17322 names_next_round=
17323 for name in $names_this_round; do
17324 already_handled=
17325 for n in $names_already_handled; do
17326 if test "$n" = "$name"; then
17327 already_handled=yes
17328 break
17329 fi
17330 done
17331 if test -z "$already_handled"; then
17332 names_already_handled="$names_already_handled $name"
17333 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17334 eval value=\"\$HAVE_LIB$uppername\"
17335 if test -n "$value"; then
17336 if test "$value" = yes; then
17337 eval value=\"\$LIB$uppername\"
17338 test -z "$value" || LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17339 eval value=\"\$LTLIB$uppername\"
17340 test -z "$value" || LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17341 else
17342 :
17343 fi
17344 else
17345 found_dir=
17346 found_la=
17347 found_so=
17348 found_a=
17349 if test $use_additional = yes; then
17350 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17351 found_dir="$additional_libdir"
17352 found_so="$additional_libdir/lib$name.$shlibext"
17353 if test -f "$additional_libdir/lib$name.la"; then
17354 found_la="$additional_libdir/lib$name.la"
17355 fi
17356 else
17357 if test -f "$additional_libdir/lib$name.$libext"; then
17358 found_dir="$additional_libdir"
17359 found_a="$additional_libdir/lib$name.$libext"
17360 if test -f "$additional_libdir/lib$name.la"; then
17361 found_la="$additional_libdir/lib$name.la"
17362 fi
17363 fi
17364 fi
17365 fi
17366 if test "X$found_dir" = "X"; then
17367 for x in $LDFLAGS $LTLIBBABELTRACE; do
17368
17369 acl_save_prefix="$prefix"
17370 prefix="$acl_final_prefix"
17371 acl_save_exec_prefix="$exec_prefix"
17372 exec_prefix="$acl_final_exec_prefix"
17373 eval x=\"$x\"
17374 exec_prefix="$acl_save_exec_prefix"
17375 prefix="$acl_save_prefix"
17376
17377 case "$x" in
17378 -L*)
17379 dir=`echo "X$x" | sed -e 's/^X-L//'`
17380 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17381 found_dir="$dir"
17382 found_so="$dir/lib$name.$shlibext"
17383 if test -f "$dir/lib$name.la"; then
17384 found_la="$dir/lib$name.la"
17385 fi
17386 else
17387 if test -f "$dir/lib$name.$libext"; then
17388 found_dir="$dir"
17389 found_a="$dir/lib$name.$libext"
17390 if test -f "$dir/lib$name.la"; then
17391 found_la="$dir/lib$name.la"
17392 fi
17393 fi
17394 fi
17395 ;;
17396 esac
17397 if test "X$found_dir" != "X"; then
17398 break
17399 fi
17400 done
17401 fi
17402 if test "X$found_dir" != "X"; then
17403 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17404 if test "X$found_so" != "X"; then
17405 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17406 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17407 else
17408 haveit=
17409 for x in $ltrpathdirs; do
17410 if test "X$x" = "X$found_dir"; then
17411 haveit=yes
17412 break
17413 fi
17414 done
17415 if test -z "$haveit"; then
17416 ltrpathdirs="$ltrpathdirs $found_dir"
17417 fi
17418 if test "$hardcode_direct" = yes; then
17419 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17420 else
17421 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17422 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17423 haveit=
17424 for x in $rpathdirs; do
17425 if test "X$x" = "X$found_dir"; then
17426 haveit=yes
17427 break
17428 fi
17429 done
17430 if test -z "$haveit"; then
17431 rpathdirs="$rpathdirs $found_dir"
17432 fi
17433 else
17434 haveit=
17435 for x in $LDFLAGS $LIBBABELTRACE; do
17436
17437 acl_save_prefix="$prefix"
17438 prefix="$acl_final_prefix"
17439 acl_save_exec_prefix="$exec_prefix"
17440 exec_prefix="$acl_final_exec_prefix"
17441 eval x=\"$x\"
17442 exec_prefix="$acl_save_exec_prefix"
17443 prefix="$acl_save_prefix"
17444
17445 if test "X$x" = "X-L$found_dir"; then
17446 haveit=yes
17447 break
17448 fi
17449 done
17450 if test -z "$haveit"; then
17451 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17452 fi
17453 if test "$hardcode_minus_L" != no; then
17454 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17455 else
17456 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17457 fi
17458 fi
17459 fi
17460 fi
17461 else
17462 if test "X$found_a" != "X"; then
17463 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17464 else
17465 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17466 fi
17467 fi
17468 additional_includedir=
17469 case "$found_dir" in
17470 */lib | */lib/)
17471 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17472 additional_includedir="$basedir/include"
17473 ;;
17474 esac
17475 if test "X$additional_includedir" != "X"; then
17476 if test "X$additional_includedir" != "X/usr/include"; then
17477 haveit=
17478 if test "X$additional_includedir" = "X/usr/local/include"; then
17479 if test -n "$GCC"; then
17480 case $host_os in
17481 linux*) haveit=yes;;
17482 esac
17483 fi
17484 fi
17485 if test -z "$haveit"; then
17486 for x in $CPPFLAGS $INCBABELTRACE; do
17487
17488 acl_save_prefix="$prefix"
17489 prefix="$acl_final_prefix"
17490 acl_save_exec_prefix="$exec_prefix"
17491 exec_prefix="$acl_final_exec_prefix"
17492 eval x=\"$x\"
17493 exec_prefix="$acl_save_exec_prefix"
17494 prefix="$acl_save_prefix"
17495
17496 if test "X$x" = "X-I$additional_includedir"; then
17497 haveit=yes
17498 break
17499 fi
17500 done
17501 if test -z "$haveit"; then
17502 if test -d "$additional_includedir"; then
17503 INCBABELTRACE="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17504 fi
17505 fi
17506 fi
17507 fi
17508 fi
17509 if test -n "$found_la"; then
17510 save_libdir="$libdir"
17511 case "$found_la" in
17512 */* | *\\*) . "$found_la" ;;
17513 *) . "./$found_la" ;;
17514 esac
17515 libdir="$save_libdir"
17516 for dep in $dependency_libs; do
17517 case "$dep" in
17518 -L*)
17519 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17520 if test "X$additional_libdir" != "X/usr/lib"; then
17521 haveit=
17522 if test "X$additional_libdir" = "X/usr/local/lib"; then
17523 if test -n "$GCC"; then
17524 case $host_os in
17525 linux*) haveit=yes;;
17526 esac
17527 fi
17528 fi
17529 if test -z "$haveit"; then
17530 haveit=
17531 for x in $LDFLAGS $LIBBABELTRACE; do
17532
17533 acl_save_prefix="$prefix"
17534 prefix="$acl_final_prefix"
17535 acl_save_exec_prefix="$exec_prefix"
17536 exec_prefix="$acl_final_exec_prefix"
17537 eval x=\"$x\"
17538 exec_prefix="$acl_save_exec_prefix"
17539 prefix="$acl_save_prefix"
17540
17541 if test "X$x" = "X-L$additional_libdir"; then
17542 haveit=yes
17543 break
17544 fi
17545 done
17546 if test -z "$haveit"; then
17547 if test -d "$additional_libdir"; then
17548 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17549 fi
17550 fi
17551 haveit=
17552 for x in $LDFLAGS $LTLIBBABELTRACE; do
17553
17554 acl_save_prefix="$prefix"
17555 prefix="$acl_final_prefix"
17556 acl_save_exec_prefix="$exec_prefix"
17557 exec_prefix="$acl_final_exec_prefix"
17558 eval x=\"$x\"
17559 exec_prefix="$acl_save_exec_prefix"
17560 prefix="$acl_save_prefix"
17561
17562 if test "X$x" = "X-L$additional_libdir"; then
17563 haveit=yes
17564 break
17565 fi
17566 done
17567 if test -z "$haveit"; then
17568 if test -d "$additional_libdir"; then
17569 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17570 fi
17571 fi
17572 fi
17573 fi
17574 ;;
17575 -R*)
17576 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17577 if test "$enable_rpath" != no; then
17578 haveit=
17579 for x in $rpathdirs; do
17580 if test "X$x" = "X$dir"; then
17581 haveit=yes
17582 break
17583 fi
17584 done
17585 if test -z "$haveit"; then
17586 rpathdirs="$rpathdirs $dir"
17587 fi
17588 haveit=
17589 for x in $ltrpathdirs; do
17590 if test "X$x" = "X$dir"; then
17591 haveit=yes
17592 break
17593 fi
17594 done
17595 if test -z "$haveit"; then
17596 ltrpathdirs="$ltrpathdirs $dir"
17597 fi
17598 fi
17599 ;;
17600 -l*)
17601 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17602 ;;
17603 *.la)
17604 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17605 ;;
17606 *)
17607 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17608 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17609 ;;
17610 esac
17611 done
17612 fi
17613 else
17614 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17615 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17616 fi
17617 fi
17618 fi
17619 done
17620 done
17621 if test "X$rpathdirs" != "X"; then
17622 if test -n "$hardcode_libdir_separator"; then
17623 alldirs=
17624 for found_dir in $rpathdirs; do
17625 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17626 done
17627 acl_save_libdir="$libdir"
17628 libdir="$alldirs"
17629 eval flag=\"$hardcode_libdir_flag_spec\"
17630 libdir="$acl_save_libdir"
17631 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17632 else
17633 for found_dir in $rpathdirs; do
17634 acl_save_libdir="$libdir"
17635 libdir="$found_dir"
17636 eval flag=\"$hardcode_libdir_flag_spec\"
17637 libdir="$acl_save_libdir"
17638 LIBBABELTRACE="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17639 done
17640 fi
17641 fi
17642 if test "X$ltrpathdirs" != "X"; then
17643 for found_dir in $ltrpathdirs; do
17644 LTLIBBABELTRACE="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17645 done
17646 fi
17647
17648
17649 ac_save_CPPFLAGS="$CPPFLAGS"
17650
17651 for element in $INCBABELTRACE; do
17652 haveit=
17653 for x in $CPPFLAGS; do
17654
17655 acl_save_prefix="$prefix"
17656 prefix="$acl_final_prefix"
17657 acl_save_exec_prefix="$exec_prefix"
17658 exec_prefix="$acl_final_exec_prefix"
17659 eval x=\"$x\"
17660 exec_prefix="$acl_save_exec_prefix"
17661 prefix="$acl_save_prefix"
17662
17663 if test "X$x" = "X$element"; then
17664 haveit=yes
17665 break
17666 fi
17667 done
17668 if test -z "$haveit"; then
17669 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17670 fi
17671 done
17672
17673
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17675 $as_echo_n "checking for libbabeltrace... " >&6; }
17676 if ${ac_cv_libbabeltrace+:} false; then :
17677 $as_echo_n "(cached) " >&6
17678 else
17679
17680 ac_save_LIBS="$LIBS"
17681 LIBS="$LIBS $LIBBABELTRACE"
17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17684 #include <babeltrace/babeltrace.h>
17685 #include <babeltrace/ctf/events.h>
17686 #include <babeltrace/ctf/iterator.h>
17687 int
17688 main ()
17689 {
17690 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17691 struct bt_ctf_event *event = NULL;
17692 const struct bt_definition *scope;
17693
17694 pos->type = BT_SEEK_BEGIN;
17695 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17696 scope = bt_ctf_get_top_level_scope (event,
17697 BT_STREAM_EVENT_HEADER);
17698 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17699
17700 ;
17701 return 0;
17702 }
17703 _ACEOF
17704 if ac_fn_c_try_link "$LINENO"; then :
17705 ac_cv_libbabeltrace=yes
17706 else
17707 ac_cv_libbabeltrace=no
17708 fi
17709 rm -f core conftest.err conftest.$ac_objext \
17710 conftest$ac_exeext conftest.$ac_ext
17711 LIBS="$ac_save_LIBS"
17712
17713 fi
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17715 $as_echo "$ac_cv_libbabeltrace" >&6; }
17716 if test "$ac_cv_libbabeltrace" = yes; then
17717 HAVE_LIBBABELTRACE=yes
17718
17719 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17720
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17722 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17724 $as_echo "$LIBBABELTRACE" >&6; }
17725 else
17726 HAVE_LIBBABELTRACE=no
17727 CPPFLAGS="$ac_save_CPPFLAGS"
17728 LIBBABELTRACE=
17729 LTLIBBABELTRACE=
17730 fi
17731
17732
17733
17734
17735
17736
17737 CFLAGS=$saved_CFLAGS
17738
17739 if test "$HAVE_LIBBABELTRACE" != yes; then
17740 if test "$with_babeltrace" = yes; then
17741 as_fn_error $? "babeltrace is missing or unusable" "$LINENO" 5
17742 else
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17744 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17745 fi
17746 fi
17747 fi
17748
17749 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17750 # empty version.
17751
17752 files=
17753 links=
17754
17755 rm -f nm.h
17756 if test "${nativefile}" != ""; then
17757 case "${nativefile}" in
17758 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
17759 * ) GDB_NM_FILE="${nativefile}"
17760 esac
17761 files="${files} ${GDB_NM_FILE}"
17762 links="${links} nm.h"
17763
17764 cat >>confdefs.h <<_ACEOF
17765 #define GDB_NM_FILE "${GDB_NM_FILE}"
17766 _ACEOF
17767
17768 fi
17769
17770
17771 for ac_prog in xsltproc
17772 do
17773 # Extract the first word of "$ac_prog", so it can be a program name with args.
17774 set dummy $ac_prog; ac_word=$2
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17776 $as_echo_n "checking for $ac_word... " >&6; }
17777 if ${ac_cv_path_XSLTPROC+:} false; then :
17778 $as_echo_n "(cached) " >&6
17779 else
17780 case $XSLTPROC in
17781 [\\/]* | ?:[\\/]*)
17782 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
17783 ;;
17784 *)
17785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17786 for as_dir in $PATH
17787 do
17788 IFS=$as_save_IFS
17789 test -z "$as_dir" && as_dir=.
17790 for ac_exec_ext in '' $ac_executable_extensions; do
17791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17792 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
17793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17794 break 2
17795 fi
17796 done
17797 done
17798 IFS=$as_save_IFS
17799
17800 ;;
17801 esac
17802 fi
17803 XSLTPROC=$ac_cv_path_XSLTPROC
17804 if test -n "$XSLTPROC"; then
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17806 $as_echo "$XSLTPROC" >&6; }
17807 else
17808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17809 $as_echo "no" >&6; }
17810 fi
17811
17812
17813 test -n "$XSLTPROC" && break
17814 done
17815 test -n "$XSLTPROC" || XSLTPROC="missing"
17816
17817 if test "x$USE_MAINTAINER_MODE" = xyes; then
17818 if test "${XSLTPROC}" = missing; then
17819 as_fn_error $? "unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17820 fi
17821 fi
17822
17823
17824 ac_sources="$files"
17825 ac_dests="$links"
17826 while test -n "$ac_sources"; do
17827 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
17828 set $ac_sources; ac_source=$1; shift; ac_sources=$*
17829 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
17830 done
17831 ac_config_links="$ac_config_links $ac_config_links_1"
17832
17833
17834
17835
17836
17837 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17838
17839
17840 if $development; then
17841
17842 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17843
17844 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
17845 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
17846 fi
17847
17848
17849 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17850 GDB_TRANSFORM_NAME=`echo gdb | sed -e "$gdb_ac_transform"`
17851 if test "x$GDB_TRANSFORM_NAME" = x; then
17852 GDB_TRANSFORM_NAME=gdb
17853 fi
17854
17855
17856
17857 gdb_ac_transform=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17858 GCORE_TRANSFORM_NAME=`echo gcore | sed -e "$gdb_ac_transform"`
17859 if test "x$GCORE_TRANSFORM_NAME" = x; then
17860 GCORE_TRANSFORM_NAME=gcore
17861 fi
17862
17863
17864 ac_config_files="$ac_config_files gcore"
17865
17866 ac_config_files="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17867
17868
17869 cat >confcache <<\_ACEOF
17870 # This file is a shell script that caches the results of configure
17871 # tests run on this system so they can be shared between configure
17872 # scripts and configure runs, see configure's option --config-cache.
17873 # It is not useful on other systems. If it contains results you don't
17874 # want to keep, you may remove or edit it.
17875 #
17876 # config.status only pays attention to the cache file if you give it
17877 # the --recheck option to rerun configure.
17878 #
17879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17881 # following values.
17882
17883 _ACEOF
17884
17885 # The following way of writing the cache mishandles newlines in values,
17886 # but we know of no workaround that is simple, portable, and efficient.
17887 # So, we kill variables containing newlines.
17888 # Ultrix sh set writes to stderr and can't be redirected directly,
17889 # and sets the high bit in the cache file unless we assign to the vars.
17890 (
17891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17892 eval ac_val=\$$ac_var
17893 case $ac_val in #(
17894 *${as_nl}*)
17895 case $ac_var in #(
17896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17898 esac
17899 case $ac_var in #(
17900 _ | IFS | as_nl) ;; #(
17901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17902 *) { eval $ac_var=; unset $ac_var;} ;;
17903 esac ;;
17904 esac
17905 done
17906
17907 (set) 2>&1 |
17908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17909 *${as_nl}ac_space=\ *)
17910 # `set' does not quote correctly, so add quotes: double-quote
17911 # substitution turns \\\\ into \\, and sed turns \\ into \.
17912 sed -n \
17913 "s/'/'\\\\''/g;
17914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17915 ;; #(
17916 *)
17917 # `set' quotes correctly as required by POSIX, so do not add quotes.
17918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17919 ;;
17920 esac |
17921 sort
17922 ) |
17923 sed '
17924 /^ac_cv_env_/b end
17925 t clear
17926 :clear
17927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17928 t end
17929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17930 :end' >>confcache
17931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17932 if test -w "$cache_file"; then
17933 if test "x$cache_file" != "x/dev/null"; then
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17935 $as_echo "$as_me: updating cache $cache_file" >&6;}
17936 if test ! -f "$cache_file" || test -h "$cache_file"; then
17937 cat confcache >"$cache_file"
17938 else
17939 case $cache_file in #(
17940 */* | ?:*)
17941 mv -f confcache "$cache_file"$$ &&
17942 mv -f "$cache_file"$$ "$cache_file" ;; #(
17943 *)
17944 mv -f confcache "$cache_file" ;;
17945 esac
17946 fi
17947 fi
17948 else
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17950 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17951 fi
17952 fi
17953 rm -f confcache
17954
17955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17956 # Let make expand exec_prefix.
17957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17958
17959 DEFS=-DHAVE_CONFIG_H
17960
17961 ac_libobjs=
17962 ac_ltlibobjs=
17963 U=
17964 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17965 # 1. Remove the extension, and $U if already installed.
17966 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17967 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17968 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17969 # will be set to the directory where LIBOBJS objects are built.
17970 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17971 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17972 done
17973 LIBOBJS=$ac_libobjs
17974
17975 LTLIBOBJS=$ac_ltlibobjs
17976
17977
17978 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17979 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17981 fi
17982 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17983 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17985 fi
17986 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17987 as_fn_error $? "conditional \"HAVE_GUILE\" was never defined.
17988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17989 fi
17990
17991
17992 : "${CONFIG_STATUS=./config.status}"
17993 ac_write_fail=0
17994 ac_clean_files_save=$ac_clean_files
17995 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17997 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17998 as_write_fail=0
17999 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18000 #! $SHELL
18001 # Generated by $as_me.
18002 # Run this file to recreate the current configuration.
18003 # Compiler output produced by configure, useful for debugging
18004 # configure, is in config.log if it exists.
18005
18006 debug=false
18007 ac_cs_recheck=false
18008 ac_cs_silent=false
18009
18010 SHELL=\${CONFIG_SHELL-$SHELL}
18011 export SHELL
18012 _ASEOF
18013 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18014 ## -------------------- ##
18015 ## M4sh Initialization. ##
18016 ## -------------------- ##
18017
18018 # Be more Bourne compatible
18019 DUALCASE=1; export DUALCASE # for MKS sh
18020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18021 emulate sh
18022 NULLCMD=:
18023 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18024 # is contrary to our usage. Disable this feature.
18025 alias -g '${1+"$@"}'='"$@"'
18026 setopt NO_GLOB_SUBST
18027 else
18028 case `(set -o) 2>/dev/null` in #(
18029 *posix*) :
18030 set -o posix ;; #(
18031 *) :
18032 ;;
18033 esac
18034 fi
18035
18036
18037 as_nl='
18038 '
18039 export as_nl
18040 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18041 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18042 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18043 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18044 # Prefer a ksh shell builtin over an external printf program on Solaris,
18045 # but without wasting forks for bash or zsh.
18046 if test -z "$BASH_VERSION$ZSH_VERSION" \
18047 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18048 as_echo='print -r --'
18049 as_echo_n='print -rn --'
18050 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18051 as_echo='printf %s\n'
18052 as_echo_n='printf %s'
18053 else
18054 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18055 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18056 as_echo_n='/usr/ucb/echo -n'
18057 else
18058 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18059 as_echo_n_body='eval
18060 arg=$1;
18061 case $arg in #(
18062 *"$as_nl"*)
18063 expr "X$arg" : "X\\(.*\\)$as_nl";
18064 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18065 esac;
18066 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18067 '
18068 export as_echo_n_body
18069 as_echo_n='sh -c $as_echo_n_body as_echo'
18070 fi
18071 export as_echo_body
18072 as_echo='sh -c $as_echo_body as_echo'
18073 fi
18074
18075 # The user is always right.
18076 if test "${PATH_SEPARATOR+set}" != set; then
18077 PATH_SEPARATOR=:
18078 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18079 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18080 PATH_SEPARATOR=';'
18081 }
18082 fi
18083
18084
18085 # IFS
18086 # We need space, tab and new line, in precisely that order. Quoting is
18087 # there to prevent editors from complaining about space-tab.
18088 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18089 # splitting by setting IFS to empty value.)
18090 IFS=" "" $as_nl"
18091
18092 # Find who we are. Look in the path if we contain no directory separator.
18093 as_myself=
18094 case $0 in #((
18095 *[\\/]* ) as_myself=$0 ;;
18096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18097 for as_dir in $PATH
18098 do
18099 IFS=$as_save_IFS
18100 test -z "$as_dir" && as_dir=.
18101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18102 done
18103 IFS=$as_save_IFS
18104
18105 ;;
18106 esac
18107 # We did not find ourselves, most probably we were run as `sh COMMAND'
18108 # in which case we are not to be found in the path.
18109 if test "x$as_myself" = x; then
18110 as_myself=$0
18111 fi
18112 if test ! -f "$as_myself"; then
18113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18114 exit 1
18115 fi
18116
18117 # Unset variables that we do not need and which cause bugs (e.g. in
18118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18119 # suppresses any "Segmentation fault" message there. '((' could
18120 # trigger a bug in pdksh 5.2.14.
18121 for as_var in BASH_ENV ENV MAIL MAILPATH
18122 do eval test x\${$as_var+set} = xset \
18123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18124 done
18125 PS1='$ '
18126 PS2='> '
18127 PS4='+ '
18128
18129 # NLS nuisances.
18130 LC_ALL=C
18131 export LC_ALL
18132 LANGUAGE=C
18133 export LANGUAGE
18134
18135 # CDPATH.
18136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18137
18138
18139 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18140 # ----------------------------------------
18141 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18142 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18143 # script with STATUS, using 1 if that was 0.
18144 as_fn_error ()
18145 {
18146 as_status=$1; test $as_status -eq 0 && as_status=1
18147 if test "$4"; then
18148 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18149 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18150 fi
18151 $as_echo "$as_me: error: $2" >&2
18152 as_fn_exit $as_status
18153 } # as_fn_error
18154
18155
18156 # as_fn_set_status STATUS
18157 # -----------------------
18158 # Set $? to STATUS, without forking.
18159 as_fn_set_status ()
18160 {
18161 return $1
18162 } # as_fn_set_status
18163
18164 # as_fn_exit STATUS
18165 # -----------------
18166 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18167 as_fn_exit ()
18168 {
18169 set +e
18170 as_fn_set_status $1
18171 exit $1
18172 } # as_fn_exit
18173
18174 # as_fn_unset VAR
18175 # ---------------
18176 # Portably unset VAR.
18177 as_fn_unset ()
18178 {
18179 { eval $1=; unset $1;}
18180 }
18181 as_unset=as_fn_unset
18182 # as_fn_append VAR VALUE
18183 # ----------------------
18184 # Append the text in VALUE to the end of the definition contained in VAR. Take
18185 # advantage of any shell optimizations that allow amortized linear growth over
18186 # repeated appends, instead of the typical quadratic growth present in naive
18187 # implementations.
18188 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18189 eval 'as_fn_append ()
18190 {
18191 eval $1+=\$2
18192 }'
18193 else
18194 as_fn_append ()
18195 {
18196 eval $1=\$$1\$2
18197 }
18198 fi # as_fn_append
18199
18200 # as_fn_arith ARG...
18201 # ------------------
18202 # Perform arithmetic evaluation on the ARGs, and store the result in the
18203 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18204 # must be portable across $(()) and expr.
18205 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18206 eval 'as_fn_arith ()
18207 {
18208 as_val=$(( $* ))
18209 }'
18210 else
18211 as_fn_arith ()
18212 {
18213 as_val=`expr "$@" || test $? -eq 1`
18214 }
18215 fi # as_fn_arith
18216
18217
18218 if expr a : '\(a\)' >/dev/null 2>&1 &&
18219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18220 as_expr=expr
18221 else
18222 as_expr=false
18223 fi
18224
18225 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18226 as_basename=basename
18227 else
18228 as_basename=false
18229 fi
18230
18231 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18232 as_dirname=dirname
18233 else
18234 as_dirname=false
18235 fi
18236
18237 as_me=`$as_basename -- "$0" ||
18238 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18239 X"$0" : 'X\(//\)$' \| \
18240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18241 $as_echo X/"$0" |
18242 sed '/^.*\/\([^/][^/]*\)\/*$/{
18243 s//\1/
18244 q
18245 }
18246 /^X\/\(\/\/\)$/{
18247 s//\1/
18248 q
18249 }
18250 /^X\/\(\/\).*/{
18251 s//\1/
18252 q
18253 }
18254 s/.*/./; q'`
18255
18256 # Avoid depending upon Character Ranges.
18257 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18258 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18259 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18260 as_cr_digits='0123456789'
18261 as_cr_alnum=$as_cr_Letters$as_cr_digits
18262
18263 ECHO_C= ECHO_N= ECHO_T=
18264 case `echo -n x` in #(((((
18265 -n*)
18266 case `echo 'xy\c'` in
18267 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18268 xy) ECHO_C='\c';;
18269 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18270 ECHO_T=' ';;
18271 esac;;
18272 *)
18273 ECHO_N='-n';;
18274 esac
18275
18276 rm -f conf$$ conf$$.exe conf$$.file
18277 if test -d conf$$.dir; then
18278 rm -f conf$$.dir/conf$$.file
18279 else
18280 rm -f conf$$.dir
18281 mkdir conf$$.dir 2>/dev/null
18282 fi
18283 if (echo >conf$$.file) 2>/dev/null; then
18284 if ln -s conf$$.file conf$$ 2>/dev/null; then
18285 as_ln_s='ln -s'
18286 # ... but there are two gotchas:
18287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18289 # In both cases, we have to default to `cp -pR'.
18290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18291 as_ln_s='cp -pR'
18292 elif ln conf$$.file conf$$ 2>/dev/null; then
18293 as_ln_s=ln
18294 else
18295 as_ln_s='cp -pR'
18296 fi
18297 else
18298 as_ln_s='cp -pR'
18299 fi
18300 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18301 rmdir conf$$.dir 2>/dev/null
18302
18303
18304 # as_fn_mkdir_p
18305 # -------------
18306 # Create "$as_dir" as a directory, including parents if necessary.
18307 as_fn_mkdir_p ()
18308 {
18309
18310 case $as_dir in #(
18311 -*) as_dir=./$as_dir;;
18312 esac
18313 test -d "$as_dir" || eval $as_mkdir_p || {
18314 as_dirs=
18315 while :; do
18316 case $as_dir in #(
18317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18318 *) as_qdir=$as_dir;;
18319 esac
18320 as_dirs="'$as_qdir' $as_dirs"
18321 as_dir=`$as_dirname -- "$as_dir" ||
18322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18323 X"$as_dir" : 'X\(//\)[^/]' \| \
18324 X"$as_dir" : 'X\(//\)$' \| \
18325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18326 $as_echo X"$as_dir" |
18327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18328 s//\1/
18329 q
18330 }
18331 /^X\(\/\/\)[^/].*/{
18332 s//\1/
18333 q
18334 }
18335 /^X\(\/\/\)$/{
18336 s//\1/
18337 q
18338 }
18339 /^X\(\/\).*/{
18340 s//\1/
18341 q
18342 }
18343 s/.*/./; q'`
18344 test -d "$as_dir" && break
18345 done
18346 test -z "$as_dirs" || eval "mkdir $as_dirs"
18347 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18348
18349
18350 } # as_fn_mkdir_p
18351 if mkdir -p . 2>/dev/null; then
18352 as_mkdir_p='mkdir -p "$as_dir"'
18353 else
18354 test -d ./-p && rmdir ./-p
18355 as_mkdir_p=false
18356 fi
18357
18358
18359 # as_fn_executable_p FILE
18360 # -----------------------
18361 # Test if FILE is an executable regular file.
18362 as_fn_executable_p ()
18363 {
18364 test -f "$1" && test -x "$1"
18365 } # as_fn_executable_p
18366 as_test_x='test -x'
18367 as_executable_p=as_fn_executable_p
18368
18369 # Sed expression to map a string onto a valid CPP name.
18370 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18371
18372 # Sed expression to map a string onto a valid variable name.
18373 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18374
18375
18376 exec 6>&1
18377 ## ----------------------------------- ##
18378 ## Main body of $CONFIG_STATUS script. ##
18379 ## ----------------------------------- ##
18380 _ASEOF
18381 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18382
18383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18384 # Save the log message, to keep $0 and so on meaningful, and to
18385 # report actual input values of CONFIG_FILES etc. instead of their
18386 # values after options handling.
18387 ac_log="
18388 This file was extended by $as_me, which was
18389 generated by GNU Autoconf 2.69. Invocation command line was
18390
18391 CONFIG_FILES = $CONFIG_FILES
18392 CONFIG_HEADERS = $CONFIG_HEADERS
18393 CONFIG_LINKS = $CONFIG_LINKS
18394 CONFIG_COMMANDS = $CONFIG_COMMANDS
18395 $ $0 $@
18396
18397 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18398 "
18399
18400 _ACEOF
18401
18402 case $ac_config_files in *"
18403 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18404 esac
18405
18406 case $ac_config_headers in *"
18407 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18408 esac
18409
18410
18411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18412 # Files that config.status was made for.
18413 config_files="$ac_config_files"
18414 config_headers="$ac_config_headers"
18415 config_links="$ac_config_links"
18416 config_commands="$ac_config_commands"
18417
18418 _ACEOF
18419
18420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18421 ac_cs_usage="\
18422 \`$as_me' instantiates files and other configuration actions
18423 from templates according to the current configuration. Unless the files
18424 and actions are specified as TAGs, all are instantiated by default.
18425
18426 Usage: $0 [OPTION]... [TAG]...
18427
18428 -h, --help print this help, then exit
18429 -V, --version print version number and configuration settings, then exit
18430 --config print configuration, then exit
18431 -q, --quiet, --silent
18432 do not print progress messages
18433 -d, --debug don't remove temporary files
18434 --recheck update $as_me by reconfiguring in the same conditions
18435 --file=FILE[:TEMPLATE]
18436 instantiate the configuration file FILE
18437 --header=FILE[:TEMPLATE]
18438 instantiate the configuration header FILE
18439
18440 Configuration files:
18441 $config_files
18442
18443 Configuration headers:
18444 $config_headers
18445
18446 Configuration links:
18447 $config_links
18448
18449 Configuration commands:
18450 $config_commands
18451
18452 Report bugs to the package provider."
18453
18454 _ACEOF
18455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18456 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18457 ac_cs_version="\\
18458 config.status
18459 configured by $0, generated by GNU Autoconf 2.69,
18460 with options \\"\$ac_cs_config\\"
18461
18462 Copyright (C) 2012 Free Software Foundation, Inc.
18463 This config.status script is free software; the Free Software Foundation
18464 gives unlimited permission to copy, distribute and modify it."
18465
18466 ac_pwd='$ac_pwd'
18467 srcdir='$srcdir'
18468 INSTALL='$INSTALL'
18469 AWK='$AWK'
18470 test -n "\$AWK" || AWK=awk
18471 _ACEOF
18472
18473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18474 # The default lists apply if the user does not specify any file.
18475 ac_need_defaults=:
18476 while test $# != 0
18477 do
18478 case $1 in
18479 --*=?*)
18480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18482 ac_shift=:
18483 ;;
18484 --*=)
18485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18486 ac_optarg=
18487 ac_shift=:
18488 ;;
18489 *)
18490 ac_option=$1
18491 ac_optarg=$2
18492 ac_shift=shift
18493 ;;
18494 esac
18495
18496 case $ac_option in
18497 # Handling of the options.
18498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18499 ac_cs_recheck=: ;;
18500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18501 $as_echo "$ac_cs_version"; exit ;;
18502 --config | --confi | --conf | --con | --co | --c )
18503 $as_echo "$ac_cs_config"; exit ;;
18504 --debug | --debu | --deb | --de | --d | -d )
18505 debug=: ;;
18506 --file | --fil | --fi | --f )
18507 $ac_shift
18508 case $ac_optarg in
18509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18510 '') as_fn_error $? "missing file argument" ;;
18511 esac
18512 as_fn_append CONFIG_FILES " '$ac_optarg'"
18513 ac_need_defaults=false;;
18514 --header | --heade | --head | --hea )
18515 $ac_shift
18516 case $ac_optarg in
18517 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18518 esac
18519 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18520 ac_need_defaults=false;;
18521 --he | --h)
18522 # Conflict between --help and --header
18523 as_fn_error $? "ambiguous option: \`$1'
18524 Try \`$0 --help' for more information.";;
18525 --help | --hel | -h )
18526 $as_echo "$ac_cs_usage"; exit ;;
18527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18528 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18529 ac_cs_silent=: ;;
18530
18531 # This is an error.
18532 -*) as_fn_error $? "unrecognized option: \`$1'
18533 Try \`$0 --help' for more information." ;;
18534
18535 *) as_fn_append ac_config_targets " $1"
18536 ac_need_defaults=false ;;
18537
18538 esac
18539 shift
18540 done
18541
18542 ac_configure_extra_args=
18543
18544 if $ac_cs_silent; then
18545 exec 6>/dev/null
18546 ac_configure_extra_args="$ac_configure_extra_args --silent"
18547 fi
18548
18549 _ACEOF
18550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18551 if \$ac_cs_recheck; then
18552 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18553 shift
18554 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18555 CONFIG_SHELL='$SHELL'
18556 export CONFIG_SHELL
18557 exec "\$@"
18558 fi
18559
18560 _ACEOF
18561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18562 exec 5>>config.log
18563 {
18564 echo
18565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18566 ## Running $as_me. ##
18567 _ASBOX
18568 $as_echo "$ac_log"
18569 } >&5
18570
18571 _ACEOF
18572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18573 #
18574 # INIT-COMMANDS
18575 #
18576 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18577
18578 _ACEOF
18579
18580 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18581
18582 # Handling of arguments.
18583 for ac_config_target in $ac_config_targets
18584 do
18585 case $ac_config_target in
18586 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
18587 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
18588 "jit-reader.h") CONFIG_FILES="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18589 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
18590 "gcore") CONFIG_FILES="$CONFIG_FILES gcore" ;;
18591 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18592 "gdb-gdb.gdb") CONFIG_FILES="$CONFIG_FILES gdb-gdb.gdb" ;;
18593 "gdb-gdb.py") CONFIG_FILES="$CONFIG_FILES gdb-gdb.py" ;;
18594 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18595 "data-directory/Makefile") CONFIG_FILES="$CONFIG_FILES data-directory/Makefile" ;;
18596
18597 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18598 esac
18599 done
18600
18601
18602 # If the user did not use the arguments to specify the items to instantiate,
18603 # then the envvar interface is used. Set only those that are not.
18604 # We use the long form for the default assignment because of an extremely
18605 # bizarre bug on SunOS 4.1.3.
18606 if $ac_need_defaults; then
18607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18608 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18609 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18611 fi
18612
18613 # Have a temporary directory for convenience. Make it in the build tree
18614 # simply because there is no reason against having it here, and in addition,
18615 # creating and moving files from /tmp can sometimes cause problems.
18616 # Hook for its removal unless debugging.
18617 # Note that there is a small window in which the directory will not be cleaned:
18618 # after its creation but before its name has been assigned to `$tmp'.
18619 $debug ||
18620 {
18621 tmp= ac_tmp=
18622 trap 'exit_status=$?
18623 : "${ac_tmp:=$tmp}"
18624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18625 ' 0
18626 trap 'as_fn_exit 1' 1 2 13 15
18627 }
18628 # Create a (secure) tmp directory for tmp files.
18629
18630 {
18631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18632 test -d "$tmp"
18633 } ||
18634 {
18635 tmp=./conf$$-$RANDOM
18636 (umask 077 && mkdir "$tmp")
18637 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18638 ac_tmp=$tmp
18639
18640 # Set up the scripts for CONFIG_FILES section.
18641 # No need to generate them if there are no CONFIG_FILES.
18642 # This happens for instance with `./config.status config.h'.
18643 if test -n "$CONFIG_FILES"; then
18644
18645 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18646 ac_cs_awk_getline=:
18647 ac_cs_awk_pipe_init=
18648 ac_cs_awk_read_file='
18649 while ((getline aline < (F[key])) > 0)
18650 print(aline)
18651 close(F[key])'
18652 ac_cs_awk_pipe_fini=
18653 else
18654 ac_cs_awk_getline=false
18655 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18656 ac_cs_awk_read_file='
18657 print "|#_!!_#|"
18658 print "cat " F[key] " &&"
18659 '$ac_cs_awk_pipe_init
18660 # The final `:' finishes the AND list.
18661 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18662 fi
18663 ac_cr=`echo X | tr X '\015'`
18664 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18665 # But we know of no other shell where ac_cr would be empty at this
18666 # point, so we can use a bashism as a fallback.
18667 if test "x$ac_cr" = x; then
18668 eval ac_cr=\$\'\\r\'
18669 fi
18670 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18671 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18672 ac_cs_awk_cr='\\r'
18673 else
18674 ac_cs_awk_cr=$ac_cr
18675 fi
18676
18677 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18678 _ACEOF
18679
18680 # Create commands to substitute file output variables.
18681 {
18682 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18683 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18684 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18685 echo "_ACAWK" &&
18686 echo "_ACEOF"
18687 } >conf$$files.sh &&
18688 . ./conf$$files.sh ||
18689 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18690 rm -f conf$$files.sh
18691
18692 {
18693 echo "cat >conf$$subs.awk <<_ACEOF" &&
18694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18695 echo "_ACEOF"
18696 } >conf$$subs.sh ||
18697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18698 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18699 ac_delim='%!_!# '
18700 for ac_last_try in false false false false false :; do
18701 . ./conf$$subs.sh ||
18702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18703
18704 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18705 if test $ac_delim_n = $ac_delim_num; then
18706 break
18707 elif $ac_last_try; then
18708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18709 else
18710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18711 fi
18712 done
18713 rm -f conf$$subs.sh
18714
18715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18716 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18717 _ACEOF
18718 sed -n '
18719 h
18720 s/^/S["/; s/!.*/"]=/
18721 p
18722 g
18723 s/^[^!]*!//
18724 :repl
18725 t repl
18726 s/'"$ac_delim"'$//
18727 t delim
18728 :nl
18729 h
18730 s/\(.\{148\}\)..*/\1/
18731 t more1
18732 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18733 p
18734 n
18735 b repl
18736 :more1
18737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18738 p
18739 g
18740 s/.\{148\}//
18741 t nl
18742 :delim
18743 h
18744 s/\(.\{148\}\)..*/\1/
18745 t more2
18746 s/["\\]/\\&/g; s/^/"/; s/$/"/
18747 p
18748 b
18749 :more2
18750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18751 p
18752 g
18753 s/.\{148\}//
18754 t delim
18755 ' <conf$$subs.awk | sed '
18756 /^[^""]/{
18757 N
18758 s/\n//
18759 }
18760 ' >>$CONFIG_STATUS || ac_write_fail=1
18761 rm -f conf$$subs.awk
18762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18763 _ACAWK
18764 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18765 for (key in S) S_is_set[key] = 1
18766 FS = "\a"
18767 \$ac_cs_awk_pipe_init
18768 }
18769 {
18770 line = $ 0
18771 nfields = split(line, field, "@")
18772 substed = 0
18773 len = length(field[1])
18774 for (i = 2; i < nfields; i++) {
18775 key = field[i]
18776 keylen = length(key)
18777 if (S_is_set[key]) {
18778 value = S[key]
18779 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18780 len += length(value) + length(field[++i])
18781 substed = 1
18782 } else
18783 len += 1 + keylen
18784 }
18785 if (nfields == 3 && !substed) {
18786 key = field[2]
18787 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18788 \$ac_cs_awk_read_file
18789 next
18790 }
18791 }
18792 print line
18793 }
18794 \$ac_cs_awk_pipe_fini
18795 _ACAWK
18796 _ACEOF
18797 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18798 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18799 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18800 else
18801 cat
18802 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18803 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18804 _ACEOF
18805
18806 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18807 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18808 # trailing colons and then remove the whole line if VPATH becomes empty
18809 # (actually we leave an empty line to preserve line numbers).
18810 if test "x$srcdir" = x.; then
18811 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18812 h
18813 s///
18814 s/^/:/
18815 s/[ ]*$/:/
18816 s/:\$(srcdir):/:/g
18817 s/:\${srcdir}:/:/g
18818 s/:@srcdir@:/:/g
18819 s/^:*//
18820 s/:*$//
18821 x
18822 s/\(=[ ]*\).*/\1/
18823 G
18824 s/\n//
18825 s/^[^=]*=[ ]*$//
18826 }'
18827 fi
18828
18829 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18830 fi # test -n "$CONFIG_FILES"
18831
18832 # Set up the scripts for CONFIG_HEADERS section.
18833 # No need to generate them if there are no CONFIG_HEADERS.
18834 # This happens for instance with `./config.status Makefile'.
18835 if test -n "$CONFIG_HEADERS"; then
18836 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18837 BEGIN {
18838 _ACEOF
18839
18840 # Transform confdefs.h into an awk script `defines.awk', embedded as
18841 # here-document in config.status, that substitutes the proper values into
18842 # config.h.in to produce config.h.
18843
18844 # Create a delimiter string that does not exist in confdefs.h, to ease
18845 # handling of long lines.
18846 ac_delim='%!_!# '
18847 for ac_last_try in false false :; do
18848 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18849 if test -z "$ac_tt"; then
18850 break
18851 elif $ac_last_try; then
18852 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18853 else
18854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18855 fi
18856 done
18857
18858 # For the awk script, D is an array of macro values keyed by name,
18859 # likewise P contains macro parameters if any. Preserve backslash
18860 # newline sequences.
18861
18862 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18863 sed -n '
18864 s/.\{148\}/&'"$ac_delim"'/g
18865 t rset
18866 :rset
18867 s/^[ ]*#[ ]*define[ ][ ]*/ /
18868 t def
18869 d
18870 :def
18871 s/\\$//
18872 t bsnl
18873 s/["\\]/\\&/g
18874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18875 D["\1"]=" \3"/p
18876 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18877 d
18878 :bsnl
18879 s/["\\]/\\&/g
18880 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18881 D["\1"]=" \3\\\\\\n"\\/p
18882 t cont
18883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18884 t cont
18885 d
18886 :cont
18887 n
18888 s/.\{148\}/&'"$ac_delim"'/g
18889 t clear
18890 :clear
18891 s/\\$//
18892 t bsnlc
18893 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18894 d
18895 :bsnlc
18896 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18897 b cont
18898 ' <confdefs.h | sed '
18899 s/'"$ac_delim"'/"\\\
18900 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18901
18902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18903 for (key in D) D_is_set[key] = 1
18904 FS = "\a"
18905 }
18906 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18907 line = \$ 0
18908 split(line, arg, " ")
18909 if (arg[1] == "#") {
18910 defundef = arg[2]
18911 mac1 = arg[3]
18912 } else {
18913 defundef = substr(arg[1], 2)
18914 mac1 = arg[2]
18915 }
18916 split(mac1, mac2, "(") #)
18917 macro = mac2[1]
18918 prefix = substr(line, 1, index(line, defundef) - 1)
18919 if (D_is_set[macro]) {
18920 # Preserve the white space surrounding the "#".
18921 print prefix "define", macro P[macro] D[macro]
18922 next
18923 } else {
18924 # Replace #undef with comments. This is necessary, for example,
18925 # in the case of _POSIX_SOURCE, which is predefined and required
18926 # on some systems where configure will not decide to define it.
18927 if (defundef == "undef") {
18928 print "/*", prefix defundef, macro, "*/"
18929 next
18930 }
18931 }
18932 }
18933 { print }
18934 _ACAWK
18935 _ACEOF
18936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18937 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18938 fi # test -n "$CONFIG_HEADERS"
18939
18940
18941 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18942 shift
18943 for ac_tag
18944 do
18945 case $ac_tag in
18946 :[FHLC]) ac_mode=$ac_tag; continue;;
18947 esac
18948 case $ac_mode$ac_tag in
18949 :[FHL]*:*);;
18950 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18951 :[FH]-) ac_tag=-:-;;
18952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18953 esac
18954 ac_save_IFS=$IFS
18955 IFS=:
18956 set x $ac_tag
18957 IFS=$ac_save_IFS
18958 shift
18959 ac_file=$1
18960 shift
18961
18962 case $ac_mode in
18963 :L) ac_source=$1;;
18964 :[FH])
18965 ac_file_inputs=
18966 for ac_f
18967 do
18968 case $ac_f in
18969 -) ac_f="$ac_tmp/stdin";;
18970 *) # Look for the file first in the build tree, then in the source tree
18971 # (if the path is not absolute). The absolute path cannot be DOS-style,
18972 # because $ac_f cannot contain `:'.
18973 test -f "$ac_f" ||
18974 case $ac_f in
18975 [\\/$]*) false;;
18976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18977 esac ||
18978 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18979 esac
18980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18981 as_fn_append ac_file_inputs " '$ac_f'"
18982 done
18983
18984 # Let's still pretend it is `configure' which instantiates (i.e., don't
18985 # use $as_me), people would be surprised to read:
18986 # /* config.h. Generated by config.status. */
18987 configure_input='Generated from '`
18988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18989 `' by configure.'
18990 if test x"$ac_file" != x-; then
18991 configure_input="$ac_file. $configure_input"
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18993 $as_echo "$as_me: creating $ac_file" >&6;}
18994 fi
18995 # Neutralize special characters interpreted by sed in replacement strings.
18996 case $configure_input in #(
18997 *\&* | *\|* | *\\* )
18998 ac_sed_conf_input=`$as_echo "$configure_input" |
18999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19000 *) ac_sed_conf_input=$configure_input;;
19001 esac
19002
19003 case $ac_tag in
19004 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19006 esac
19007 ;;
19008 esac
19009
19010 ac_dir=`$as_dirname -- "$ac_file" ||
19011 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19012 X"$ac_file" : 'X\(//\)[^/]' \| \
19013 X"$ac_file" : 'X\(//\)$' \| \
19014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19015 $as_echo X"$ac_file" |
19016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19017 s//\1/
19018 q
19019 }
19020 /^X\(\/\/\)[^/].*/{
19021 s//\1/
19022 q
19023 }
19024 /^X\(\/\/\)$/{
19025 s//\1/
19026 q
19027 }
19028 /^X\(\/\).*/{
19029 s//\1/
19030 q
19031 }
19032 s/.*/./; q'`
19033 as_dir="$ac_dir"; as_fn_mkdir_p
19034 ac_builddir=.
19035
19036 case "$ac_dir" in
19037 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19038 *)
19039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19040 # A ".." for each directory in $ac_dir_suffix.
19041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19042 case $ac_top_builddir_sub in
19043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19045 esac ;;
19046 esac
19047 ac_abs_top_builddir=$ac_pwd
19048 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19049 # for backward compatibility:
19050 ac_top_builddir=$ac_top_build_prefix
19051
19052 case $srcdir in
19053 .) # We are building in place.
19054 ac_srcdir=.
19055 ac_top_srcdir=$ac_top_builddir_sub
19056 ac_abs_top_srcdir=$ac_pwd ;;
19057 [\\/]* | ?:[\\/]* ) # Absolute name.
19058 ac_srcdir=$srcdir$ac_dir_suffix;
19059 ac_top_srcdir=$srcdir
19060 ac_abs_top_srcdir=$srcdir ;;
19061 *) # Relative name.
19062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19063 ac_top_srcdir=$ac_top_build_prefix$srcdir
19064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19065 esac
19066 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19067
19068
19069 case $ac_mode in
19070 :F)
19071 #
19072 # CONFIG_FILE
19073 #
19074
19075 case $INSTALL in
19076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19078 esac
19079 _ACEOF
19080
19081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19082 # If the template does not know about datarootdir, expand it.
19083 # FIXME: This hack should be removed a few years after 2.60.
19084 ac_datarootdir_hack=; ac_datarootdir_seen=
19085 ac_sed_dataroot='
19086 /datarootdir/ {
19087 p
19088 q
19089 }
19090 /@datadir@/p
19091 /@docdir@/p
19092 /@infodir@/p
19093 /@localedir@/p
19094 /@mandir@/p'
19095 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19096 *datarootdir*) ac_datarootdir_seen=yes;;
19097 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19099 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19100 _ACEOF
19101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19102 ac_datarootdir_hack='
19103 s&@datadir@&$datadir&g
19104 s&@docdir@&$docdir&g
19105 s&@infodir@&$infodir&g
19106 s&@localedir@&$localedir&g
19107 s&@mandir@&$mandir&g
19108 s&\\\${datarootdir}&$datarootdir&g' ;;
19109 esac
19110 _ACEOF
19111
19112 # Neutralize VPATH when `$srcdir' = `.'.
19113 # Shell code in configure.ac might set extrasub.
19114 # FIXME: do we really want to maintain this feature?
19115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19116 ac_sed_extra="$ac_vpsub
19117 $extrasub
19118 _ACEOF
19119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19120 :t
19121 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19122 s|@configure_input@|$ac_sed_conf_input|;t t
19123 s&@top_builddir@&$ac_top_builddir_sub&;t t
19124 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19125 s&@srcdir@&$ac_srcdir&;t t
19126 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19127 s&@top_srcdir@&$ac_top_srcdir&;t t
19128 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19129 s&@builddir@&$ac_builddir&;t t
19130 s&@abs_builddir@&$ac_abs_builddir&;t t
19131 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19132 s&@INSTALL@&$ac_INSTALL&;t t
19133 $ac_datarootdir_hack
19134 "
19135 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19136 if $ac_cs_awk_getline; then
19137 $AWK -f "$ac_tmp/subs.awk"
19138 else
19139 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19140 fi \
19141 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19142
19143 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19144 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19145 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19146 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19148 which seems to be undefined. Please make sure it is defined" >&5
19149 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19150 which seems to be undefined. Please make sure it is defined" >&2;}
19151
19152 rm -f "$ac_tmp/stdin"
19153 case $ac_file in
19154 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19155 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19156 esac \
19157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19158 ;;
19159 :H)
19160 #
19161 # CONFIG_HEADER
19162 #
19163 if test x"$ac_file" != x-; then
19164 {
19165 $as_echo "/* $configure_input */" \
19166 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19167 } >"$ac_tmp/config.h" \
19168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19169 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19171 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19172 else
19173 rm -f "$ac_file"
19174 mv "$ac_tmp/config.h" "$ac_file" \
19175 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19176 fi
19177 else
19178 $as_echo "/* $configure_input */" \
19179 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19180 || as_fn_error $? "could not create -" "$LINENO" 5
19181 fi
19182 ;;
19183 :L)
19184 #
19185 # CONFIG_LINK
19186 #
19187
19188 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
19189 :
19190 else
19191 # Prefer the file from the source tree if names are identical.
19192 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19193 ac_source=$srcdir/$ac_source
19194 fi
19195
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19197 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19198
19199 if test ! -r "$ac_source"; then
19200 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19201 fi
19202 rm -f "$ac_file"
19203
19204 # Try a relative symlink, then a hard link, then a copy.
19205 case $ac_source in
19206 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19207 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19208 esac
19209 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19210 ln "$ac_source" "$ac_file" 2>/dev/null ||
19211 cp -p "$ac_source" "$ac_file" ||
19212 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19213 fi
19214 ;;
19215 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19216 $as_echo "$as_me: executing $ac_file commands" >&6;}
19217 ;;
19218 esac
19219
19220
19221 case $ac_file$ac_mode in
19222 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19223 "gcore":F) chmod +x gcore ;;
19224 "Makefile":F)
19225 case x$CONFIG_HEADERS in
19226 xconfig.h:config.in)
19227 echo > stamp-h ;;
19228 esac
19229 ;;
19230 "gdb-gdb.gdb":F)
19231 case x$CONFIG_HEADERS in
19232 xconfig.h:config.in)
19233 echo > stamp-h ;;
19234 esac
19235 ;;
19236 "gdb-gdb.py":F)
19237 case x$CONFIG_HEADERS in
19238 xconfig.h:config.in)
19239 echo > stamp-h ;;
19240 esac
19241 ;;
19242 "doc/Makefile":F)
19243 case x$CONFIG_HEADERS in
19244 xconfig.h:config.in)
19245 echo > stamp-h ;;
19246 esac
19247 ;;
19248 "data-directory/Makefile":F)
19249 case x$CONFIG_HEADERS in
19250 xconfig.h:config.in)
19251 echo > stamp-h ;;
19252 esac
19253 ;;
19254
19255 esac
19256 done # for ac_tag
19257
19258
19259 as_fn_exit 0
19260 _ACEOF
19261 ac_clean_files=$ac_clean_files_save
19262
19263 test $ac_write_fail = 0 ||
19264 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19265
19266
19267 # configure is writing to config.log, and then calls config.status.
19268 # config.status does its own redirection, appending to config.log.
19269 # Unfortunately, on DOS this fails, as config.log is still kept open
19270 # by configure, so config.status won't be able to write to it; its
19271 # output is simply discarded. So we exec the FD to /dev/null,
19272 # effectively closing config.log, so it can be properly (re)opened and
19273 # appended to by config.status. When coming back to configure, we
19274 # need to make the FD available again.
19275 if test "$no_create" != yes; then
19276 ac_cs_success=:
19277 ac_config_status_args=
19278 test "$silent" = yes &&
19279 ac_config_status_args="$ac_config_status_args --quiet"
19280 exec 5>/dev/null
19281 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19282 exec 5>>config.log
19283 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19284 # would make configure fail if this is the last instruction.
19285 $ac_cs_success || as_fn_exit 1
19286 fi
19287
19288 #
19289 # CONFIG_SUBDIRS section.
19290 #
19291 if test "$no_recursion" != yes; then
19292
19293 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19294 # so they do not pile up.
19295 ac_sub_configure_args=
19296 ac_prev=
19297 eval "set x $ac_configure_args"
19298 shift
19299 for ac_arg
19300 do
19301 if test -n "$ac_prev"; then
19302 ac_prev=
19303 continue
19304 fi
19305 case $ac_arg in
19306 -cache-file | --cache-file | --cache-fil | --cache-fi \
19307 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19308 ac_prev=cache_file ;;
19309 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19310 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19311 | --c=*)
19312 ;;
19313 --config-cache | -C)
19314 ;;
19315 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19316 ac_prev=srcdir ;;
19317 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19318 ;;
19319 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19320 ac_prev=prefix ;;
19321 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19322 ;;
19323 --disable-option-checking)
19324 ;;
19325 *)
19326 case $ac_arg in
19327 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19328 esac
19329 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
19330 esac
19331 done
19332
19333 # Always prepend --prefix to ensure using the same prefix
19334 # in subdir configurations.
19335 ac_arg="--prefix=$prefix"
19336 case $ac_arg in
19337 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19338 esac
19339 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
19340
19341 # Pass --silent
19342 if test "$silent" = yes; then
19343 ac_sub_configure_args="--silent $ac_sub_configure_args"
19344 fi
19345
19346 # Always prepend --disable-option-checking to silence warnings, since
19347 # different subdirs can have different --enable and --with options.
19348 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
19349
19350 ac_popdir=`pwd`
19351 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19352
19353 # Do not complain, so a configure script can configure whichever
19354 # parts of a large source tree are present.
19355 test -d "$srcdir/$ac_dir" || continue
19356
19357 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19358 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19359 $as_echo "$ac_msg" >&6
19360 as_dir="$ac_dir"; as_fn_mkdir_p
19361 ac_builddir=.
19362
19363 case "$ac_dir" in
19364 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19365 *)
19366 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19367 # A ".." for each directory in $ac_dir_suffix.
19368 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19369 case $ac_top_builddir_sub in
19370 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19371 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19372 esac ;;
19373 esac
19374 ac_abs_top_builddir=$ac_pwd
19375 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19376 # for backward compatibility:
19377 ac_top_builddir=$ac_top_build_prefix
19378
19379 case $srcdir in
19380 .) # We are building in place.
19381 ac_srcdir=.
19382 ac_top_srcdir=$ac_top_builddir_sub
19383 ac_abs_top_srcdir=$ac_pwd ;;
19384 [\\/]* | ?:[\\/]* ) # Absolute name.
19385 ac_srcdir=$srcdir$ac_dir_suffix;
19386 ac_top_srcdir=$srcdir
19387 ac_abs_top_srcdir=$srcdir ;;
19388 *) # Relative name.
19389 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19390 ac_top_srcdir=$ac_top_build_prefix$srcdir
19391 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19392 esac
19393 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19394
19395
19396 cd "$ac_dir"
19397
19398 # Check for guested configure; otherwise get Cygnus style configure.
19399 if test -f "$ac_srcdir/configure.gnu"; then
19400 ac_sub_configure=$ac_srcdir/configure.gnu
19401 elif test -f "$ac_srcdir/configure"; then
19402 ac_sub_configure=$ac_srcdir/configure
19403 elif test -f "$ac_srcdir/configure.in"; then
19404 # This should be Cygnus configure.
19405 ac_sub_configure=$ac_aux_dir/configure
19406 else
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19408 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19409 ac_sub_configure=
19410 fi
19411
19412 # The recursion is here.
19413 if test -n "$ac_sub_configure"; then
19414 # Make the cache file name correct relative to the subdirectory.
19415 case $cache_file in
19416 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19417 *) # Relative name.
19418 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19419 esac
19420
19421 { $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
19422 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19423 # The eval makes quoting arguments work.
19424 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19425 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19426 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19427 fi
19428
19429 cd "$ac_popdir"
19430 done
19431 fi
19432 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19434 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19435 fi
19436
This page took 0.538048 seconds and 3 git commands to generate.