2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
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
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
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.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || 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 :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
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 :
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
238 if test "x$CONFIG_SHELL" != x
; then :
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.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
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
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."
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."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
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
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
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 :
398 as_val
=`expr "$@" || test $? -eq 1`
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.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
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
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. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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; }
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).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
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 ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
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'"
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'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
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`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="main.c"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 enable_option_checking
=no
624 ac_subst_vars
='LTLIBOBJS
637 HAVE_NATIVE_GCORE_HOST
737 READLINE_TEXI_INCFLAG
761 HAVE_NATIVE_GCORE_TARGET
787 INSTALL_STRIP_PROGRAM
816 MAINTAINER_MODE_FALSE
845 program_transform_name
856 ac_subst_files
='nat_makefile_frag'
858 enable_option_checking
859 enable_maintainer_mode
862 with_separate_debug_dir
864 with_relocated_sources
866 with_auto_load_safe_path
891 enable_source_highlight
897 with_system_gdbinit_dir
899 enable_build_warnings
900 enable_gdb_build_warnings
910 with_libbabeltrace_prefix
912 with_libxxhash_prefix
915 ac_precious_vars
='build_alias
932 ac_subdirs_all
='testsuite
936 # Initialize some variables set by options.
938 ac_init_version
=false
939 ac_unrecognized_opts
=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
950 program_transform_name
=s
,x
,x
,
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir
='${exec_prefix}/bin'
965 sbindir
='${exec_prefix}/sbin'
966 libexecdir
='${exec_prefix}/libexec'
967 datarootdir
='${prefix}/share'
968 datadir
='${datarootdir}'
969 sysconfdir
='${prefix}/etc'
970 sharedstatedir
='${prefix}/com'
971 localstatedir
='${prefix}/var'
972 includedir
='${prefix}/include'
973 oldincludedir
='/usr/include'
974 docdir
='${datarootdir}/doc/${PACKAGE}'
975 infodir
='${datarootdir}/info'
980 libdir
='${exec_prefix}/lib'
981 localedir
='${datarootdir}/locale'
982 mandir
='${datarootdir}/man'
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\
$ac_option
996 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1009 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1010 bindir
=$ac_optarg ;;
1012 -build |
--build |
--buil |
--bui |
--bu)
1013 ac_prev
=build_alias
;;
1014 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1015 build_alias
=$ac_optarg ;;
1017 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1018 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1019 ac_prev
=cache_file
;;
1020 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1021 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1022 cache_file
=$ac_optarg ;;
1024 --config-cache |
-C)
1025 cache_file
=config.cache
;;
1027 -datadir |
--datadir |
--datadi |
--datad)
1029 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1030 datadir
=$ac_optarg ;;
1032 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1033 |
--dataroo |
--dataro |
--datar)
1034 ac_prev
=datarootdir
;;
1035 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1036 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1037 datarootdir
=$ac_optarg ;;
1039 -disable-* |
--disable-*)
1040 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1043 as_fn_error $?
"invalid feature name: $ac_useropt"
1044 ac_useropt_orig
=$ac_useropt
1045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_
$ac_useropt"
1050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep
=', ';;
1053 eval enable_
$ac_useropt=no
;;
1055 -docdir |
--docdir |
--docdi |
--doc |
--do)
1057 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1058 docdir
=$ac_optarg ;;
1060 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1062 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1063 dvidir
=$ac_optarg ;;
1065 -enable-* |
--enable-*)
1066 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1069 as_fn_error $?
"invalid feature name: $ac_useropt"
1070 ac_useropt_orig
=$ac_useropt
1071 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_
$ac_useropt"
1076 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep
=', ';;
1079 eval enable_
$ac_useropt=\
$ac_optarg ;;
1081 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1082 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1083 |
--exec |
--exe |
--ex)
1084 ac_prev
=exec_prefix
;;
1085 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1086 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1087 |
--exec=* |
--exe=* |
--ex=*)
1088 exec_prefix
=$ac_optarg ;;
1090 -gas |
--gas |
--ga |
--g)
1091 # Obsolete; use --with-gas.
1094 -help |
--help |
--hel |
--he |
-h)
1095 ac_init_help
=long
;;
1096 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1097 ac_init_help
=recursive
;;
1098 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1099 ac_init_help
=short
;;
1101 -host |
--host |
--hos |
--ho)
1102 ac_prev
=host_alias
;;
1103 -host=* |
--host=* |
--hos=* |
--ho=*)
1104 host_alias
=$ac_optarg ;;
1106 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1108 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1110 htmldir
=$ac_optarg ;;
1112 -includedir |
--includedir |
--includedi |
--included |
--include \
1113 |
--includ |
--inclu |
--incl |
--inc)
1114 ac_prev
=includedir
;;
1115 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1116 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1117 includedir
=$ac_optarg ;;
1119 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1121 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1122 infodir
=$ac_optarg ;;
1124 -libdir |
--libdir |
--libdi |
--libd)
1126 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1127 libdir
=$ac_optarg ;;
1129 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1130 |
--libexe |
--libex |
--libe)
1131 ac_prev
=libexecdir
;;
1132 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1133 |
--libexe=* |
--libex=* |
--libe=*)
1134 libexecdir
=$ac_optarg ;;
1136 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1137 ac_prev
=localedir
;;
1138 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1139 localedir
=$ac_optarg ;;
1141 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1142 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1143 ac_prev
=localstatedir
;;
1144 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1145 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1146 localstatedir
=$ac_optarg ;;
1148 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1150 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1151 mandir
=$ac_optarg ;;
1153 -nfp |
--nfp |
--nf)
1154 # Obsolete; use --without-fp.
1157 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1158 |
--no-cr |
--no-c |
-n)
1161 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1162 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1165 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1166 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1167 |
--oldin |
--oldi |
--old |
--ol |
--o)
1168 ac_prev
=oldincludedir
;;
1169 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1170 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1171 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1172 oldincludedir
=$ac_optarg ;;
1174 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1176 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1177 prefix
=$ac_optarg ;;
1179 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1180 |
--program-pre |
--program-pr |
--program-p)
1181 ac_prev
=program_prefix
;;
1182 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1183 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1184 program_prefix
=$ac_optarg ;;
1186 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1187 |
--program-suf |
--program-su |
--program-s)
1188 ac_prev
=program_suffix
;;
1189 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1190 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1191 program_suffix
=$ac_optarg ;;
1193 -program-transform-name |
--program-transform-name \
1194 |
--program-transform-nam |
--program-transform-na \
1195 |
--program-transform-n |
--program-transform- \
1196 |
--program-transform |
--program-transfor \
1197 |
--program-transfo |
--program-transf \
1198 |
--program-trans |
--program-tran \
1199 |
--progr-tra |
--program-tr |
--program-t)
1200 ac_prev
=program_transform_name
;;
1201 -program-transform-name=* |
--program-transform-name=* \
1202 |
--program-transform-nam=* |
--program-transform-na=* \
1203 |
--program-transform-n=* |
--program-transform-=* \
1204 |
--program-transform=* |
--program-transfor=* \
1205 |
--program-transfo=* |
--program-transf=* \
1206 |
--program-trans=* |
--program-tran=* \
1207 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1208 program_transform_name
=$ac_optarg ;;
1210 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1212 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1213 pdfdir
=$ac_optarg ;;
1215 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1217 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1220 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1221 |
-silent |
--silent |
--silen |
--sile |
--sil)
1224 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1226 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1228 sbindir
=$ac_optarg ;;
1230 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1231 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1232 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1234 ac_prev
=sharedstatedir
;;
1235 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1236 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1237 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1239 sharedstatedir
=$ac_optarg ;;
1241 -site |
--site |
--sit)
1243 -site=* |
--site=* |
--sit=*)
1246 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1248 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1249 srcdir
=$ac_optarg ;;
1251 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1252 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1253 ac_prev
=sysconfdir
;;
1254 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1255 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1256 sysconfdir
=$ac_optarg ;;
1258 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1259 ac_prev
=target_alias
;;
1260 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1261 target_alias
=$ac_optarg ;;
1263 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1266 -version |
--version |
--versio |
--versi |
--vers |
-V)
1267 ac_init_version
=: ;;
1270 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error $?
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=\
$ac_optarg ;;
1285 -without-* |
--without-*)
1286 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1289 as_fn_error $?
"invalid package name: $ac_useropt"
1290 ac_useropt_orig
=$ac_useropt
1291 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep
=', ';;
1299 eval with_
$ac_useropt=no
;;
1302 # Obsolete; use --with-x.
1305 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1306 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1307 ac_prev
=x_includes
;;
1308 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1309 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1310 x_includes
=$ac_optarg ;;
1312 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1313 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1314 ac_prev
=x_libraries
;;
1315 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1316 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1317 x_libraries
=$ac_optarg ;;
1319 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information"
1324 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1328 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1330 eval $ac_envvar=\
$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1344 if test -n "$ac_prev"; then
1345 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error $?
"missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1352 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 # Check all directory arguments for consistency.
1358 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val
=\$
$ac_var
1364 # Remove trailing slashes.
1367 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\
$ac_val;;
1370 # Be sure to have absolute directory names.
1372 [\\/$
]* | ?
:[\\/]* ) continue;;
1373 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1375 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1383 target
=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x
; then
1387 if test "x$build_alias" = x
; then
1388 cross_compiling
=maybe
1389 elif test "x$build_alias" != "x$host_alias"; then
1395 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1397 test "$silent" = yes && exec 6>/dev
/null
1400 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di
=`ls -di .` &&
1402 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1403 as_fn_error $?
"working directory cannot be determined"
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 as_fn_error $?
"pwd does not report name of working directory"
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted
=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir
=`$as_dirname -- "$as_myself" ||
1413 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$as_myself" : 'X\(//\)[^/]' \| \
1415 X"$as_myself" : 'X\(//\)$' \| \
1416 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1417 $as_echo X"$as_myself" |
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1440 ac_srcdir_defaulted
=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1444 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1446 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1458 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 for ac_var
in $ac_precious_vars; do
1461 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1463 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1474 \`configure' configures this package to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking ...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1532 --program-prefix=PREFIX prepend PREFIX to installed program names
1533 --program-suffix=SUFFIX append SUFFIX to installed program names
1534 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1537 --x-includes=DIR X include files are
in DIR
1538 --x-libraries=DIR X library files are
in DIR
1541 --build=BUILD configure
for building on BUILD
[guessed
]
1542 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1543 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1547 if test -n "$ac_init_help"; then
1552 --disable-option-checking ignore unrecognized
--enable/--with options
1553 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1554 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1555 --enable-maintainer-mode
1556 enable make rules and dependencies not useful
(and
1557 sometimes confusing
) to the casual installer
1558 --enable-plugins Enable support
for plugins
1559 --disable-largefile omit support
for large files
1560 --enable-targets=TARGETS
1561 alternative target configurations
1562 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1563 --disable-gdbmi disable machine-interface
(MI
)
1564 --enable-tui enable full-screen terminal user interface
(TUI
)
1565 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1566 --enable-profiling enable profiling of GDB
1567 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1568 --disable-rpath do not hardcode runtime library paths
1569 --enable-source-highlight
1570 enable source-highlight
for source listings
1571 --enable-werror treat compile warnings as errors
1572 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1573 --enable-gdb-build-warnings
1574 enable GDB specific build-time compiler warnings
if
1576 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1577 --enable-sim link gdb with simulator
1578 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1580 --enable-unit-tests Enable the inclusion of unit tests when compiling
1584 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1585 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1586 --with-separate-debug-dir=PATH
1587 look for global separate debug info
in this path
1589 --with-gdb-datadir=PATH
look for global separate data files
in this path
1591 --with-relocated-sources=PATH
1592 automatically relocate this path
for source files
1593 --with-auto-load-dir=PATH
1594 directories from
which to load auto-loaded scripts
1595 [$debugdir:$datadir/auto-load
]
1596 --with-auto-load-safe-path=PATH
1597 directories safe to hold auto-loaded files
1598 [--with-auto-load-dir]
1599 --without-auto-load-safe-path
1600 do not restrict auto-loaded files locations
1601 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1602 --with-curses use the curses library instead of the termcap
1604 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1605 --with-bugurl=URL Direct users to URL to report a bug
1606 --with-system-zlib use installed libz
1607 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1608 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1609 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1610 --with-iconv-bin=PATH specify where to find the iconv program
1611 --with-system-readline use installed readline library
1612 --with-jit-reader-dir=PATH
1613 directory to load the JIT readers from
1614 --with-expat include expat support (auto/yes/no)
1615 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1616 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1617 --with-mpfr include MPFR support
(auto
/yes
/no
)
1618 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1619 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1620 --with-python[=PYTHON] include python support
1621 (auto/yes/no/<python-program>)
1622 --with-guile[=GUILE] include guile support
1623 (auto/yes/no/<guile-version>/<pkg-config-program>)
1624 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1625 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1626 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1627 --without-included-regex
1628 don
't use included regex; this is the default on
1629 systems with version 2 of the GNU C library (use
1630 with caution on other system)
1631 --with-sysroot[=DIR] search for usr/lib et al within DIR
1632 --with-system-gdbinit=PATH
1633 automatically load a system-wide gdbinit file
1634 --with-system-gdbinit-dir=PATH
1635 automatically load system-wide gdbinit files from
1637 --with-lzma support lzma compression (auto/yes/no)
1638 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1639 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1640 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1641 --with-tk directory containing tk configuration
(tkConfig.sh
)
1642 --with-x use the X Window System
1643 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1644 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1645 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1646 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1647 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1648 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1650 Some influential environment variables
:
1651 CC C compiler
command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1654 nonstandard directory
<lib dir
>
1655 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1656 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1657 you have headers
in a nonstandard directory
<include dir
>
1658 CXX C
++ compiler
command
1659 CXXFLAGS C
++ compiler flags
1661 MAKEINFO Parent configure detects
if it is of sufficient version.
1663 Parameters
for MAKEINFO.
1664 YACC The
`Yet Another Compiler Compiler' implementation to use.
1665 Defaults to the first program found out of: `bison
-y', `byacc',
1667 YFLAGS The list of arguments that will be passed by default to $YACC.
1668 This script will default YFLAGS to the empty string to avoid a
1669 default value of `-d' given by some make applications.
1670 XMKMF Path to xmkmf, Makefile generator for X Window System
1672 Use these variables to override the choices made by `configure' or to
help
1673 it to
find libraries and programs with nonstandard names
/locations.
1675 Report bugs to the package provider.
1680 if test "$ac_init_help" = "recursive"; then
1681 # If there are subdirs, report their specific --help.
1682 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1683 test -d "$ac_dir" ||
1684 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1689 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1691 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1692 # A ".." for each directory in $ac_dir_suffix.
1693 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1694 case $ac_top_builddir_sub in
1695 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1696 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1699 ac_abs_top_builddir
=$ac_pwd
1700 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1701 # for backward compatibility:
1702 ac_top_builddir
=$ac_top_build_prefix
1705 .
) # We are building in place.
1707 ac_top_srcdir
=$ac_top_builddir_sub
1708 ac_abs_top_srcdir
=$ac_pwd ;;
1709 [\\/]* | ?
:[\\/]* ) # Absolute name.
1710 ac_srcdir
=$srcdir$ac_dir_suffix;
1711 ac_top_srcdir
=$srcdir
1712 ac_abs_top_srcdir
=$srcdir ;;
1714 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1715 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1716 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1718 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1720 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1721 # Check for guested configure.
1722 if test -f "$ac_srcdir/configure.gnu"; then
1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725 elif test -f "$ac_srcdir/configure"; then
1727 $SHELL "$ac_srcdir/configure" --help=recursive
1729 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1731 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1735 test -n "$ac_init_help" && exit $ac_status
1736 if $ac_init_version; then
1739 generated by GNU Autoconf
2.69
1741 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1742 This configure
script is free software
; the Free Software Foundation
1743 gives unlimited permission to copy
, distribute and modify it.
1748 ## ------------------------ ##
1749 ## Autoconf initialization. ##
1750 ## ------------------------ ##
1752 # ac_fn_c_try_compile LINENO
1753 # --------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_compile
()
1757 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1758 rm -f conftest.
$ac_objext
1759 if { { ac_try
="$ac_compile"
1761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext; then :
1780 $as_echo "$as_me: failed program was:" >&5
1781 sed 's/^/| /' conftest.$ac_ext >&5
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786 as_fn_set_status $ac_retval
1788 } # ac_fn_c_try_compile
1790 # ac_fn_cxx_try_compile LINENO
1791 # ----------------------------
1792 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_compile ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 rm -f conftest.$ac_objext
1797 if { { ac_try="$ac_compile"
1799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1800 *) ac_try_echo
=$ac_try;;
1802 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_compile") 2>conftest.err
1806 if test -s conftest.err
; then
1807 grep -v '^ *+' conftest.err
>conftest.er1
1808 cat conftest.er1
>&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } && {
1813 test -z "$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 } && test -s conftest.
$ac_objext; then :
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.
$ac_ext >&5
1823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1824 as_fn_set_status
$ac_retval
1826 } # ac_fn_cxx_try_compile
1828 # ac_fn_c_try_cpp LINENO
1829 # ----------------------
1830 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1833 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1834 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } > conftest.i && {
1850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1855 $as_echo "$as_me: failed program was:" >&5
1856 sed 's/^/| /' conftest.$ac_ext >&5
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1865 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866 # -------------------------------------------------------
1867 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868 # the include files in INCLUDES and setting the cache variable VAR
1870 ac_fn_c_check_header_mongrel ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if eval \${$3+:} false; then :
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881 $as_echo "$ac_res" >&6; }
1883 # Is the header compilable?
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885 $as_echo_n "checking $2 usability... " >&6; }
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h. */
1891 if ac_fn_c_try_compile "$LINENO"; then :
1892 ac_header_compiler=yes
1894 ac_header_compiler=no
1896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898 $as_echo "$ac_header_compiler" >&6; }
1900 # Is the header present?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902 $as_echo_n "checking $2 presence... " >&6; }
1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1907 if ac_fn_c_try_cpp "$LINENO"; then :
1908 ac_header_preproc=yes
1910 ac_header_preproc=no
1912 rm -f conftest.err conftest.i conftest.$ac_ext
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914 $as_echo "$ac_header_preproc" >&6; }
1916 # So? What about this header?
1917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1928 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1932 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938 $as_echo_n "checking for $2... " >&6; }
1939 if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1942 eval "$3=\$ac_header_compiler"
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 } # ac_fn_c_check_header_mongrel
1952 # ac_fn_c_try_run LINENO
1953 # ----------------------
1954 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1955 # that executables *can* be run.
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 if { { ac_try="$ac_link"
1961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1962 *) ac_try_echo
=$ac_try;;
1964 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1965 $as_echo "$ac_try_echo"; } >&5
1966 (eval "$ac_link") 2>&5
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1970 { { case "(($ac_try" in
1971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1972 *) ac_try_echo=$ac_try;;
1974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1975 $as_echo "$ac_try_echo"; } >&5
1976 (eval "$ac_try") 2>&5
1978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1979 test $ac_status = 0; }; }; then :
1982 $as_echo "$as_me: program exited with status $ac_status" >&5
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1986 ac_retval=$ac_status
1988 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 as_fn_set_status $ac_retval
1994 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1995 # -------------------------------------------------------
1996 # Tests whether HEADER exists and can be compiled using the include files in
1997 # INCLUDES, setting the cache variable VAR accordingly.
1998 ac_fn_c_check_header_compile ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2011 if ac_fn_c_try_compile "$LINENO"; then :
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2023 } # ac_fn_c_check_header_compile
2025 # ac_fn_c_try_link LINENO
2026 # -----------------------
2027 # Try to link conftest.$ac_ext, and return whether this succeeded.
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 rm -f conftest.$ac_objext conftest$ac_exeext
2032 if { { ac_try="$ac_link"
2034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2035 *) ac_try_echo
=$ac_try;;
2037 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_link") 2>conftest.err
2041 if test -s conftest.err
; then
2042 grep -v '^ *+' conftest.err
>conftest.er1
2043 cat conftest.er1
>&5
2044 mv -f conftest.er1 conftest.err
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } && {
2048 test -z "$ac_c_werror_flag" ||
2049 test ! -s conftest.err
2050 } && test -s conftest
$ac_exeext && {
2051 test "$cross_compiling" = yes ||
2052 test -x conftest
$ac_exeext
2056 $as_echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.
$ac_ext >&5
2061 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2062 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2063 # interfere with the next link command; also delete a directory that is
2064 # left behind by Apple's compiler. We do this before executing the actions.
2065 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067 as_fn_set_status
$ac_retval
2069 } # ac_fn_c_try_link
2071 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2072 # --------------------------------------------
2073 # Tries to find the compile-time value of EXPR in a program that includes
2074 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2076 ac_fn_c_compute_int
()
2078 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2079 if test "$cross_compiling" = yes; then
2080 # Depending upon the size, compute the lo and hi bounds.
2081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2087 static int test_array [1 - 2 * !(($2) >= 0)];
2089 return test_array [0];
2095 if ac_fn_c_try_compile
"$LINENO"; then :
2098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2106 return test_array [0];
2112 if ac_fn_c_try_compile
"$LINENO"; then :
2113 ac_hi
=$ac_mid; break
2115 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2116 if test $ac_lo -le $ac_mid; then
2120 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2131 static int test_array [1 - 2 * !(($2) < 0)];
2133 return test_array [0];
2139 if ac_fn_c_try_compile
"$LINENO"; then :
2142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2148 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2150 return test_array [0];
2156 if ac_fn_c_try_compile
"$LINENO"; then :
2157 ac_lo
=$ac_mid; break
2159 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2160 if test $ac_mid -le $ac_hi; then
2164 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2174 # Binary search between lo and hi bounds.
2175 while test "x$ac_lo" != "x$ac_hi"; do
2176 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2183 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2185 return test_array [0];
2191 if ac_fn_c_try_compile
"$LINENO"; then :
2194 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2199 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2203 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2204 /* end confdefs.h. */
2206 static long int longval () { return $2; }
2207 static unsigned long int ulongval () { return $2; }
2214 FILE *f = fopen ("conftest.val", "w");
2219 long int i = longval ();
2222 fprintf (f, "%ld", i);
2226 unsigned long int i = ulongval ();
2229 fprintf (f, "%lu", i);
2231 /* Do not output a trailing newline, as this causes \r\n confusion
2232 on some platforms. */
2233 return ferror (f) || fclose (f) != 0;
2239 if ac_fn_c_try_run
"$LINENO"; then :
2240 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 as_fn_set_status
$ac_retval
2252 } # ac_fn_c_compute_int
2254 # ac_fn_c_check_func LINENO FUNC VAR
2255 # ----------------------------------
2256 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2257 ac_fn_c_check_func
()
2259 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if eval \
${$3+:} false
; then :
2263 $as_echo_n "(cached) " >&6
2265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2269 #define $2 innocuous_$2
2271 /* System header to define __stub macros and hopefully few prototypes,
2272 which can conflict with char $2 (); below.
2273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2274 <limits.h> exists even on freestanding compilers. */
2277 # include <limits.h>
2279 # include <assert.h>
2284 /* Override any GCC internal prototype to avoid an error.
2285 Use char because int might match the return type of a GCC
2286 builtin and then its argument prototype would still apply. */
2291 /* The GNU C library defines this for functions which it implements
2292 to always fail with ENOSYS. Some functions are actually named
2293 something starting with __ and the normal name is an alias. */
2294 #if defined __stub_$2 || defined __stub___$2
2306 if ac_fn_c_try_link
"$LINENO"; then :
2311 rm -f core conftest.err conftest.
$ac_objext \
2312 conftest
$ac_exeext conftest.
$ac_ext
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2316 $as_echo "$ac_res" >&6; }
2317 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2319 } # ac_fn_c_check_func
2321 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2322 # ----------------------------------------------------
2323 # Tries to find if the field MEMBER exists in type AGGR, after including
2324 # INCLUDES, setting cache variable VAR accordingly.
2325 ac_fn_c_check_member
()
2327 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2329 $as_echo_n "checking for $2.$3... " >&6; }
2330 if eval \
${$4+:} false
; then :
2331 $as_echo_n "(cached) " >&6
2333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2346 if ac_fn_c_try_compile
"$LINENO"; then :
2349 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2350 /* end confdefs.h. */
2356 if (sizeof ac_aggr.$3)
2362 if ac_fn_c_try_compile
"$LINENO"; then :
2367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2376 } # ac_fn_c_check_member
2378 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2379 # -------------------------------------------
2380 # Tests whether TYPE exists after having included INCLUDES, setting cache
2381 # variable VAR accordingly.
2382 ac_fn_c_check_type
()
2384 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2386 $as_echo_n "checking for $2... " >&6; }
2387 if eval \
${$3+:} false
; then :
2388 $as_echo_n "(cached) " >&6
2391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2403 if ac_fn_c_try_compile
"$LINENO"; then :
2404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2416 if ac_fn_c_try_compile
"$LINENO"; then :
2421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2427 $as_echo "$ac_res" >&6; }
2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430 } # ac_fn_c_check_type
2432 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2433 # ---------------------------------------------
2434 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2436 ac_fn_c_check_decl
()
2438 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2439 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2440 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2442 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2443 if eval \
${$3+:} false
; then :
2444 $as_echo_n "(cached) " >&6
2446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h. */
2452 #ifndef $as_decl_name
2454 (void) $as_decl_use;
2456 (void) $as_decl_name;
2464 if ac_fn_c_try_compile
"$LINENO"; then :
2469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2476 } # ac_fn_c_check_decl
2478 # ac_fn_cxx_try_link LINENO
2479 # -------------------------
2480 # Try to link conftest.$ac_ext, and return whether this succeeded.
2481 ac_fn_cxx_try_link
()
2483 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2484 rm -f conftest.
$ac_objext conftest
$ac_exeext
2485 if { { ac_try
="$ac_link"
2487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492 (eval "$ac_link") 2>conftest.err
2494 if test -s conftest.err; then
2495 grep -v '^ *+' conftest.err >conftest.er1
2496 cat conftest.er1 >&5
2497 mv -f conftest.er1 conftest.err
2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2500 test $ac_status = 0; } && {
2501 test -z "$ac_cxx_werror_flag" ||
2502 test ! -s conftest.err
2503 } && test -s conftest$ac_exeext && {
2504 test "$cross_compiling" = yes ||
2505 test -x conftest$ac_exeext
2509 $as_echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2514 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2515 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2516 # interfere with the next link command; also delete a directory that is
2517 # left behind by Apple's compiler. We do this before executing the actions.
2518 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2519 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2520 as_fn_set_status $ac_retval
2522 } # ac_fn_cxx_try_link
2524 # ac_fn_cxx_check_func LINENO FUNC VAR
2525 # ------------------------------------
2526 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2527 ac_fn_cxx_check_func ()
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2531 $as_echo_n "checking for $2... " >&6; }
2532 if eval \${$3+:} false; then :
2533 $as_echo_n "(cached) " >&6
2535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2536 /* end confdefs.h. */
2537 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2539 #define $2 innocuous_$2
2541 /* System header to define __stub macros and hopefully few prototypes,
2542 which can conflict with char $2 (); below.
2543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2544 <limits.h> exists even on freestanding compilers. */
2547 # include <limits.h>
2549 # include <assert.h>
2554 /* Override any GCC internal prototype to avoid an error.
2555 Use char because int might match the return type of a GCC
2556 builtin and then its argument prototype would still apply. */
2561 /* The GNU C library defines this for functions which it implements
2562 to always fail with ENOSYS. Some functions are actually named
2563 something starting with __ and the normal name is an alias. */
2564 #if defined __stub_$2 || defined __stub___$2
2576 if ac_fn_cxx_try_link "$LINENO"; then :
2581 rm -f core conftest.err conftest.$ac_objext \
2582 conftest$ac_exeext conftest.$ac_ext
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586 $as_echo "$ac_res" >&6; }
2587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589 } # ac_fn_cxx_check_func
2590 cat >config.log <<_ACEOF
2591 This file contains any messages produced by compilers while
2592 running configure, to aid debugging if configure makes a mistake.
2594 It was created by $as_me, which was
2595 generated by GNU Autoconf 2.69. Invocation command line was
2607 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2608 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2609 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2610 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2611 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2613 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2614 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2616 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2617 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2618 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2619 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2620 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2621 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2622 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 test -z "$as_dir" && as_dir=.
2631 $as_echo "PATH: $as_dir"
2647 # Keep a trace of the command line.
2648 # Strip out --no-create and --no-recursion so they do not pile up.
2649 # Strip out --silent because we don't want to record it for future runs.
2650 # Also quote any args containing shell meta-characters.
2651 # Make two passes to allow for proper duplicate-argument suppression.
2655 ac_must_keep_next=false
2661 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2662 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2663 | -silent | --silent | --silen | --sile | --sil)
2666 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2669 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2671 as_fn_append ac_configure_args1 " '$ac_arg'"
2672 if test $ac_must_keep_next = true; then
2673 ac_must_keep_next=false # Got value, back to normal.
2676 *=* | --config-cache | -C | -disable-* | --disable-* \
2677 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2678 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2679 | -with-* | --with-* | -without-* | --without-* | --x)
2680 case "$ac_configure_args0 " in
2681 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2684 -* ) ac_must_keep_next=true ;;
2687 as_fn_append ac_configure_args " '$ac_arg'"
2692 { ac_configure_args0=; unset ac_configure_args0;}
2693 { ac_configure_args1=; unset ac_configure_args1;}
2695 # When interrupted or exit'd, cleanup temporary files, and complete
2696 # config.log. We remove comments because anyway the quotes in there
2697 # would cause problems or look ugly.
2698 # WARNING: Use '\'' to represent an apostrophe within the trap.
2699 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2700 trap 'exit_status=$?
2701 # Save into config.log some information that might help in debugging.
2705 $as_echo "## ---------------- ##
2706 ## Cache variables. ##
2707 ## ---------------- ##"
2709 # The following way of writing the cache mishandles newlines in values,
2711 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2712 eval ac_val=\$$ac_var
2716 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2717 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2720 _ | IFS | as_nl) ;; #(
2721 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2722 *) { eval $ac_var=; unset $ac_var;} ;;
2727 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2728 *${as_nl}ac_space=\ *)
2730 "s/'\''/'\''\\\\'\'''\''/g;
2731 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2734 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2741 $as_echo "## ----------------- ##
2742 ## Output variables. ##
2743 ## ----------------- ##"
2745 for ac_var in $ac_subst_vars
2747 eval ac_val=\$$ac_var
2749 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2751 $as_echo "$ac_var='\''$ac_val'\''"
2755 if test -n "$ac_subst_files"; then
2756 $as_echo "## ------------------- ##
2757 ## File substitutions. ##
2758 ## ------------------- ##"
2760 for ac_var in $ac_subst_files
2762 eval ac_val=\$$ac_var
2764 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2766 $as_echo "$ac_var='\''$ac_val'\''"
2771 if test -s confdefs.h; then
2772 $as_echo "## ----------- ##
2779 test "$ac_signal" != 0 &&
2780 $as_echo "$as_me: caught signal $ac_signal"
2781 $as_echo "$as_me: exit $exit_status"
2783 rm -f core *.core core.conftest.* &&
2784 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2787 for ac_signal in 1 2 13 15; do
2788 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2792 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2793 rm -f -r conftest* confdefs.h
2795 $as_echo "/* confdefs.h */" > confdefs.h
2797 # Predefined preprocessor variables.
2799 cat >>confdefs.h <<_ACEOF
2800 #define PACKAGE_NAME "$PACKAGE_NAME"
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2807 cat >>confdefs.h <<_ACEOF
2808 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2811 cat >>confdefs.h <<_ACEOF
2812 #define PACKAGE_STRING "$PACKAGE_STRING"
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_URL "$PACKAGE_URL"
2824 # Let the site file select an alternate cache file if it wants to.
2825 # Prefer an explicitly selected file to automatically selected ones.
2828 if test -n "$CONFIG_SITE"; then
2829 # We do not want a PATH search for config.site.
2830 case $CONFIG_SITE in #((
2831 -*) ac_site_file1=./$CONFIG_SITE;;
2832 */*) ac_site_file1=$CONFIG_SITE;;
2833 *) ac_site_file1=./$CONFIG_SITE;;
2835 elif test "x$prefix" != xNONE; then
2836 ac_site_file1=$prefix/share/config.site
2837 ac_site_file2=$prefix/etc/config.site
2839 ac_site_file1=$ac_default_prefix/share/config.site
2840 ac_site_file2=$ac_default_prefix/etc/config.site
2842 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2844 test "x$ac_site_file" = xNONE && continue
2845 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2847 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2848 sed 's/^/| /' "$ac_site_file" >&5
2850 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2852 as_fn_error $? "failed to load site
script $ac_site_file
2853 See \
`config.log' for more details" "$LINENO" 5; }
2857 if test -r "$cache_file"; then
2858 # Some versions of bash will fail to source /dev/null (special files
2859 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2860 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2862 $as_echo "$as_me: loading cache $cache_file" >&6;}
2864 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2865 *) . "./$cache_file";;
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2870 $as_echo "$as_me: creating cache $cache_file" >&6;}
2874 as_fn_append ac_header_list " stdlib.h"
2875 as_fn_append ac_header_list " unistd.h"
2876 as_fn_append ac_header_list " sys/param.h"
2877 # Check that the precious variables saved in the cache have kept the same
2879 ac_cache_corrupted=false
2880 for ac_var in $ac_precious_vars; do
2881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2882 eval ac_new_set=\$ac_env_${ac_var}_set
2883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2884 eval ac_new_val=\$ac_env_${ac_var}_value
2885 case $ac_old_set,$ac_new_set in
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2888 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2889 ac_cache_corrupted=: ;;
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2892 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2896 if test "x$ac_old_val" != "x$ac_new_val"; then
2897 # differences in whitespace do not lead to failure.
2898 ac_old_val_w=`echo x
$ac_old_val`
2899 ac_new_val_w=`echo x
$ac_new_val`
2900 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2903 ac_cache_corrupted=:
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2907 eval $ac_var=\$ac_old_val
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2910 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2912 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2915 # Pass precious variables to config.status.
2916 if test "$ac_new_set" = set; then
2918 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2919 *) ac_arg=$ac_var=$ac_new_val ;;
2921 case " $ac_configure_args " in
2922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2923 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2927 if $ac_cache_corrupted; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2931 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2932 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2934 ## -------------------- ##
2935 ## Main body of script. ##
2936 ## -------------------- ##
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 ac_config_headers="$ac_config_headers config.h:config.in"
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2952 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2953 # Check whether --enable-maintainer-mode was given.
2954 if test "${enable_maintainer_mode+set}" = set; then :
2955 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2957 USE_MAINTAINER_MODE=no
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2961 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2962 if test $USE_MAINTAINER_MODE = yes; then
2963 MAINTAINER_MODE_TRUE=
2964 MAINTAINER_MODE_FALSE='#'
2966 MAINTAINER_MODE_TRUE='#'
2967 MAINTAINER_MODE_FALSE=
2970 MAINT=$MAINTAINER_MODE_TRUE
2974 # Set the 'development' global.
2975 . $srcdir/../bfd/development.sh
2978 ac_cpp='$CPP $CPPFLAGS'
2979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2982 if test -n "$ac_tool_prefix"; then
2983 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2984 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986 $as_echo_n "checking for $ac_word... " >&6; }
2987 if ${ac_cv_prog_CC+:} false; then :
2988 $as_echo_n "(cached) " >&6
2990 if test -n "$CC"; then
2991 ac_cv_prog_CC="$CC" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 if test -n "$CC"; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3013 $as_echo "$CC" >&6; }
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3021 if test -z "$ac_cv_prog_CC"; then
3023 # Extract the first word of "gcc", so it can be a program name with args.
3024 set dummy gcc; ac_word=$2
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$ac_ct_CC"; then
3031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3040 ac_cv_prog_ac_ct_CC="gcc"
3041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3051 if test -n "$ac_ct_CC"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3053 $as_echo "$ac_ct_CC" >&6; }
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 $as_echo "no" >&6; }
3059 if test "x$ac_ct_CC" = x; then
3062 case $cross_compiling:$ac_tool_warned in
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3066 ac_tool_warned=yes ;;
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3077 set dummy ${ac_tool_prefix}cc; ac_word=$2
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if ${ac_cv_prog_CC+:} false; then :
3081 $as_echo_n "(cached) " >&6
3083 if test -n "$CC"; then
3084 ac_cv_prog_CC="$CC" # Let the user override the test.
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3093 ac_cv_prog_CC="${ac_tool_prefix}cc"
3094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 if test -n "$CC"; then
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3106 $as_echo "$CC" >&6; }
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3109 $as_echo "no" >&6; }
3115 if test -z "$CC"; then
3116 # Extract the first word of "cc", so it can be a program name with args.
3117 set dummy cc; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_CC+:} false; then :
3121 $as_echo_n "(cached) " >&6
3123 if test -n "$CC"; then
3124 ac_cv_prog_CC="$CC" # Let the user override the test.
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 for ac_exec_ext in '' $ac_executable_extensions; do
3133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3134 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3135 ac_prog_rejected=yes
3139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 if test $ac_prog_rejected = yes; then
3147 # We found a bogon in the path, so make sure we never use it.
3148 set dummy $ac_cv_prog_CC
3150 if test $# != 0; then
3151 # We chose a different compiler from the bogus one.
3152 # However, it has the same basename, so the bogon will be chosen
3153 # first if we set CC to just the basename; use the full file name.
3155 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3171 if test -z "$CC"; then
3172 if test -n "$ac_tool_prefix"; then
3173 for ac_prog in cl.exe
3175 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3176 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3178 $as_echo_n "checking for $ac_word... " >&6; }
3179 if ${ac_cv_prog_CC+:} false; then :
3180 $as_echo_n "(cached) " >&6
3182 if test -n "$CC"; then
3183 ac_cv_prog_CC="$CC" # Let the user override the test.
3185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3189 test -z "$as_dir" && as_dir=.
3190 for ac_exec_ext in '' $ac_executable_extensions; do
3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3192 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203 if test -n "$CC"; then
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3205 $as_echo "$CC" >&6; }
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3208 $as_echo "no" >&6; }
3212 test -n "$CC" && break
3215 if test -z "$CC"; then
3217 for ac_prog in cl.exe
3219 # Extract the first word of "$ac_prog", so it can be a program name with args.
3220 set dummy $ac_prog; ac_word=$2
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3222 $as_echo_n "checking for $ac_word... " >&6; }
3223 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3224 $as_echo_n "(cached) " >&6
3226 if test -n "$ac_ct_CC"; then
3227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 test -z "$as_dir" && as_dir=.
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3236 ac_cv_prog_ac_ct_CC="$ac_prog"
3237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3247 if test -n "$ac_ct_CC"; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3249 $as_echo "$ac_ct_CC" >&6; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3256 test -n "$ac_ct_CC" && break
3259 if test "x$ac_ct_CC" = x; then
3262 case $cross_compiling:$ac_tool_warned in
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3266 ac_tool_warned=yes ;;
3275 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3277 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3278 See \
`config.log' for more details" "$LINENO" 5; }
3280 # Provide some information about the compiler.
3281 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3284 for ac_option in --version -v -V -qversion; do
3285 { { ac_try="$ac_compiler $ac_option >&5"
3287 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3288 *) ac_try_echo
=$ac_try;;
3290 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3294 if test -s conftest.err
; then
3296 ... rest of stderr output deleted ...
3297 10q' conftest.err
>conftest.er1
3298 cat conftest.er1
>&5
3300 rm -f conftest.er1 conftest.err
3301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3302 test $ac_status = 0; }
3305 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3316 ac_clean_files_save
=$ac_clean_files
3317 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3318 # Try to create an executable without -o first, disregard a.out.
3319 # It will help us diagnose broken compilers, and finding out an intuition
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3322 $as_echo_n "checking whether the C compiler works... " >&6; }
3323 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3325 # The possible output files:
3326 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3329 for ac_file
in $ac_files
3332 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3333 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3338 if { { ac_try
="$ac_link_default"
3340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3344 $as_echo "$ac_try_echo"; } >&5
3345 (eval "$ac_link_default") 2>&5
3347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3348 test $ac_status = 0; }; then :
3349 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3350 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3351 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3352 # so that the user can short-circuit this test for compilers unknown to
3354 for ac_file in $ac_files ''
3356 test -f "$ac_file" || continue
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3361 # We found the default executable, but exeext='' is most
3365 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3367 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369 # We set ac_cv_exeext here because the later test for it is not
3370 # safe: cross compilers may not add the suffix if given an `-o'
3371 # argument, so we may need to know it at that point already.
3372 # Even if this section looks crufty: it has the advantage of
3379 test "$ac_cv_exeext" = no && ac_cv_exeext=
3384 if test -z "$ac_file"; then :
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 $as_echo "$as_me: failed program was:" >&5
3388 sed 's
/^
/|
/' conftest.$ac_ext >&5
3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3392 as_fn_error 77 "C compiler cannot create executables
3393 See \`config.log
' for more details" "$LINENO" 5; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3396 $as_echo "yes" >&6; }
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3399 $as_echo_n "checking for C compiler default output file name... " >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3401 $as_echo "$ac_file" >&6; }
3402 ac_exeext=$ac_cv_exeext
3404 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3405 ac_clean_files=$ac_clean_files_save
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3407 $as_echo_n "checking for suffix of executables... " >&6; }
3408 if { { ac_try="$ac_link"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_link") 2>&5
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3420 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3421 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3423 for ac_file
in conftest.exe conftest conftest.
*; do
3424 test -f "$ac_file" ||
continue
3426 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3427 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3435 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3436 See \`config.log' for more details" "$LINENO" 5; }
3438 rm -f conftest conftest
$ac_cv_exeext
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3440 $as_echo "$ac_cv_exeext" >&6; }
3442 rm -f conftest.
$ac_ext
3443 EXEEXT
=$ac_cv_exeext
3445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3451 FILE *f = fopen ("conftest.out", "w");
3452 return ferror (f) || fclose (f) != 0;
3458 ac_clean_files
="$ac_clean_files conftest.out"
3459 # Check that the compiler produces executables we can run. If not, either
3460 # the compiler is broken, or we cross compile.
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3462 $as_echo_n "checking whether we are cross compiling... " >&6; }
3463 if test "$cross_compiling" != yes; then
3464 { { ac_try
="$ac_link"
3466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3467 *) ac_try_echo=$ac_try;;
3469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3470 $as_echo "$ac_try_echo"; } >&5
3471 (eval "$ac_link") 2>&5
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }
3475 if { ac_try='./conftest$ac_cv_exeext'
3476 { { case "(($ac_try" in
3477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3478 *) ac_try_echo
=$ac_try;;
3480 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_try") 2>&5
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; }; then
3488 if test "$cross_compiling" = maybe
; then
3491 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3493 as_fn_error $?
"cannot run C compiled programs.
3494 If you meant to cross compile, use \`--host'.
3495 See \`config.log' for more details" "$LINENO" 5; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3500 $as_echo "$cross_compiling" >&6; }
3502 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3503 ac_clean_files
=$ac_clean_files_save
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3505 $as_echo_n "checking for suffix of object files... " >&6; }
3506 if ${ac_cv_objext+:} false
; then :
3507 $as_echo_n "(cached) " >&6
3509 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3520 rm -f conftest.o conftest.obj
3521 if { { ac_try
="$ac_compile"
3523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 $as_echo "$ac_try_echo"; } >&5
3528 (eval "$ac_compile") 2>&5
3530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3531 test $ac_status = 0; }; then :
3532 for ac_file in conftest.o conftest.obj conftest.*; do
3533 test -f "$ac_file" || continue;
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3536 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3541 $as_echo "$as_me: failed program was:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3547 See \
`config.log' for more details" "$LINENO" 5; }
3549 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3552 $as_echo "$ac_cv_objext" >&6; }
3553 OBJEXT=$ac_cv_objext
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3556 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3557 if ${ac_cv_c_compiler_gnu+:} false; then :
3558 $as_echo_n "(cached) " >&6
3560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3561 /* end confdefs.h. */
3574 if ac_fn_c_try_compile "$LINENO"; then :
3579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3585 if test $ac_compiler_gnu = yes; then
3590 ac_test_CFLAGS=${CFLAGS+set}
3591 ac_save_CFLAGS=$CFLAGS
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3594 if ${ac_cv_prog_cc_g+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 ac_save_c_werror_flag=$ac_c_werror_flag
3598 ac_c_werror_flag=yes
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3612 if ac_fn_c_try_compile "$LINENO"; then :
3616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3617 /* end confdefs.h. */
3627 if ac_fn_c_try_compile "$LINENO"; then :
3630 ac_c_werror_flag=$ac_save_c_werror_flag
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3643 if ac_fn_c_try_compile "$LINENO"; then :
3646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 ac_c_werror_flag=$ac_save_c_werror_flag
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3654 $as_echo "$ac_cv_prog_cc_g" >&6; }
3655 if test "$ac_test_CFLAGS" = set; then
3656 CFLAGS=$ac_save_CFLAGS
3657 elif test $ac_cv_prog_cc_g = yes; then
3658 if test "$GCC" = yes; then
3664 if test "$GCC" = yes; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3671 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3672 if ${ac_cv_prog_cc_c89+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 ac_cv_prog_cc_c89=no
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3682 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3683 struct buf { int x; };
3684 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3685 static char *e (p, i)
3691 static char *f (char * (*g) (char **, int), char **p, ...)
3696 s = g (p, va_arg (v,int));
3701 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3702 function prototypes and stuff, but not '\xHH' hex character constants.
3703 These don't provoke an error unfortunately, instead are silently treated
3704 as 'x'. The following induces an error, until -std is added to get
3705 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3706 array size at least. It's necessary to write '\x00'==0 to get something
3707 that's true only with -std. */
3708 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3710 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3711 inside strings and character constants. */
3713 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3715 int test (int i, double x);
3716 struct s1 {int (*f) (int a);};
3717 struct s2 {int (*f) (double a);};
3718 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3724 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3729 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3730 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3732 CC="$ac_save_CC $ac_arg"
3733 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_cv_prog_cc_c89=$ac_arg
3736 rm -f core conftest.err conftest.$ac_objext
3737 test "x$ac_cv_prog_cc_c89" != "xno" && break
3739 rm -f conftest.$ac_ext
3744 case "x$ac_cv_prog_cc_c89" in
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3747 $as_echo "none needed" >&6; } ;;
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3750 $as_echo "unsupported" >&6; } ;;
3752 CC="$CC $ac_cv_prog_cc_c89"
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3754 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3756 if test "x$ac_cv_prog_cc_c89" != xno; then :
3761 ac_cpp='$CPP $CPPFLAGS'
3762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767 ac_cpp='$CXXCPP $CPPFLAGS'
3768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3771 if test -z "$CXX"; then
3772 if test -n "$CCC"; then
3775 if test -n "$ac_tool_prefix"; then
3776 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if ${ac_cv_prog_CXX+:} false; then :
3783 $as_echo_n "(cached) " >&6
3785 if test -n "$CXX"; then
3786 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 if test -n "$CXX"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3808 $as_echo "$CXX" >&6; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3815 test -n "$CXX" && break
3818 if test -z "$CXX"; then
3820 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3822 # Extract the first word of "$ac_prog", so it can be a program name with args.
3823 set dummy $ac_prog; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3827 $as_echo_n "(cached) " >&6
3829 if test -n "$ac_ct_CXX"; then
3830 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_ac_ct_CXX="$ac_prog"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3850 if test -n "$ac_ct_CXX"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3852 $as_echo "$ac_ct_CXX" >&6; }
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3859 test -n "$ac_ct_CXX" && break
3862 if test "x$ac_ct_CXX" = x; then
3865 case $cross_compiling:$ac_tool_warned in
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869 ac_tool_warned=yes ;;
3877 # Provide some information about the compiler.
3878 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3881 for ac_option in --version -v -V -qversion; do
3882 { { ac_try="$ac_compiler $ac_option >&5"
3884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3885 *) ac_try_echo
=$ac_try;;
3887 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3891 if test -s conftest.err
; then
3893 ... rest of stderr output deleted ...
3894 10q' conftest.err
>conftest.er1
3895 cat conftest.er1
>&5
3897 rm -f conftest.er1 conftest.err
3898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899 test $ac_status = 0; }
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3903 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3904 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3905 $as_echo_n "(cached) " >&6
3907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3921 if ac_fn_cxx_try_compile
"$LINENO"; then :
3926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3927 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3931 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3932 if test $ac_compiler_gnu = yes; then
3937 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3938 ac_save_CXXFLAGS
=$CXXFLAGS
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3940 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3941 if ${ac_cv_prog_cxx_g+:} false
; then :
3942 $as_echo_n "(cached) " >&6
3944 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3945 ac_cxx_werror_flag
=yes
3948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3959 if ac_fn_cxx_try_compile
"$LINENO"; then :
3960 ac_cv_prog_cxx_g
=yes
3963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3974 if ac_fn_cxx_try_compile
"$LINENO"; then :
3977 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3990 if ac_fn_cxx_try_compile
"$LINENO"; then :
3991 ac_cv_prog_cxx_g
=yes
3993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3998 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4001 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4002 if test "$ac_test_CXXFLAGS" = set; then
4003 CXXFLAGS
=$ac_save_CXXFLAGS
4004 elif test $ac_cv_prog_cxx_g = yes; then
4005 if test "$GXX" = yes; then
4011 if test "$GXX" = yes; then
4018 ac_cpp
='$CPP $CPPFLAGS'
4019 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4026 ac_cpp
='$CPP $CPPFLAGS'
4027 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4031 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4032 # On Suns, sometimes $CPP names a directory.
4033 if test -n "$CPP" && test -d "$CPP"; then
4036 if test -z "$CPP"; then
4037 if ${ac_cv_prog_CPP+:} false
; then :
4038 $as_echo_n "(cached) " >&6
4040 # Double quotes because CPP needs to be expanded
4041 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4044 for ac_c_preproc_warn_flag
in '' yes
4046 # Use a header file that comes with gcc, so configuring glibc
4047 # with a fresh cross-compiler works.
4048 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4049 # <limits.h> exists even on freestanding compilers.
4050 # On the NeXT, cc -E runs the code through the compiler's parser,
4051 # not just through cpp. "Syntax error" is here to catch this case.
4052 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4055 # include <limits.h>
4057 # include <assert.h>
4061 if ac_fn_c_try_cpp
"$LINENO"; then :
4064 # Broken: fails on valid input.
4067 rm -f conftest.err conftest.i conftest.
$ac_ext
4069 # OK, works on sane cases. Now check whether nonexistent headers
4070 # can be detected and how.
4071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4073 #include <ac_nonexistent.h>
4075 if ac_fn_c_try_cpp
"$LINENO"; then :
4076 # Broken: success on invalid input.
4079 # Passes both tests.
4083 rm -f conftest.err conftest.i conftest.
$ac_ext
4086 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4087 rm -f conftest.i conftest.err conftest.
$ac_ext
4088 if $ac_preproc_ok; then :
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4101 $as_echo "$CPP" >&6; }
4103 for ac_c_preproc_warn_flag
in '' yes
4105 # Use a header file that comes with gcc, so configuring glibc
4106 # with a fresh cross-compiler works.
4107 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4108 # <limits.h> exists even on freestanding compilers.
4109 # On the NeXT, cc -E runs the code through the compiler's parser,
4110 # not just through cpp. "Syntax error" is here to catch this case.
4111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4114 # include <limits.h>
4116 # include <assert.h>
4120 if ac_fn_c_try_cpp
"$LINENO"; then :
4123 # Broken: fails on valid input.
4126 rm -f conftest.err conftest.i conftest.
$ac_ext
4128 # OK, works on sane cases. Now check whether nonexistent headers
4129 # can be detected and how.
4130 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 #include <ac_nonexistent.h>
4134 if ac_fn_c_try_cpp
"$LINENO"; then :
4135 # Broken: success on invalid input.
4138 # Passes both tests.
4142 rm -f conftest.err conftest.i conftest.
$ac_ext
4145 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4146 rm -f conftest.i conftest.err conftest.
$ac_ext
4147 if $ac_preproc_ok; then :
4150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4152 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4153 See \`config.log' for more details" "$LINENO" 5; }
4157 ac_cpp
='$CPP $CPPFLAGS'
4158 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4164 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4165 if ${ac_cv_path_GREP+:} false
; then :
4166 $as_echo_n "(cached) " >&6
4168 if test -z "$GREP"; then
4169 ac_path_GREP_found
=false
4170 # Loop through the user's path and test for each of PROGNAME-LIST
4171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4172 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4175 test -z "$as_dir" && as_dir
=.
4176 for ac_prog
in grep ggrep
; do
4177 for ac_exec_ext
in '' $ac_executable_extensions; do
4178 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4179 as_fn_executable_p
"$ac_path_GREP" ||
continue
4180 # Check for GNU ac_path_GREP and select it if it is found.
4181 # Check for GNU $ac_path_GREP
4182 case `"$ac_path_GREP" --version 2>&1` in
4184 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4187 $as_echo_n 0123456789 >"conftest.in"
4190 cat "conftest.in" "conftest.in" >"conftest.tmp"
4191 mv "conftest.tmp" "conftest.in"
4192 cp "conftest.in" "conftest.nl"
4193 $as_echo 'GREP' >> "conftest.nl"
4194 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4195 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4196 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4197 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4198 # Best one so far, save it but keep looking for a better one
4199 ac_cv_path_GREP
="$ac_path_GREP"
4200 ac_path_GREP_max
=$ac_count
4202 # 10*(2^10) chars as input seems more than enough
4203 test $ac_count -gt 10 && break
4205 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4208 $ac_path_GREP_found && break 3
4213 if test -z "$ac_cv_path_GREP"; then
4214 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4217 ac_cv_path_GREP
=$GREP
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4222 $as_echo "$ac_cv_path_GREP" >&6; }
4223 GREP
="$ac_cv_path_GREP"
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4227 $as_echo_n "checking for egrep... " >&6; }
4228 if ${ac_cv_path_EGREP+:} false
; then :
4229 $as_echo_n "(cached) " >&6
4231 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4232 then ac_cv_path_EGREP
="$GREP -E"
4234 if test -z "$EGREP"; then
4235 ac_path_EGREP_found
=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4238 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4241 test -z "$as_dir" && as_dir
=.
4242 for ac_prog
in egrep; do
4243 for ac_exec_ext
in '' $ac_executable_extensions; do
4244 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4245 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4246 # Check for GNU ac_path_EGREP and select it if it is found.
4247 # Check for GNU $ac_path_EGREP
4248 case `"$ac_path_EGREP" --version 2>&1` in
4250 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4253 $as_echo_n 0123456789 >"conftest.in"
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'EGREP' >> "conftest.nl"
4260 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4261 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4262 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4263 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_EGREP
="$ac_path_EGREP"
4266 ac_path_EGREP_max
=$ac_count
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4271 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4274 $ac_path_EGREP_found && break 3
4279 if test -z "$ac_cv_path_EGREP"; then
4280 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4283 ac_cv_path_EGREP
=$EGREP
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4289 $as_echo "$ac_cv_path_EGREP" >&6; }
4290 EGREP
="$ac_cv_path_EGREP"
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4294 $as_echo_n "checking for ANSI C header files... " >&6; }
4295 if ${ac_cv_header_stdc+:} false
; then :
4296 $as_echo_n "(cached) " >&6
4298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4313 if ac_fn_c_try_compile
"$LINENO"; then :
4314 ac_cv_header_stdc
=yes
4316 ac_cv_header_stdc
=no
4318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4320 if test $ac_cv_header_stdc = yes; then
4321 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h. */
4327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4328 $EGREP "memchr" >/dev
/null
2>&1; then :
4331 ac_cv_header_stdc
=no
4337 if test $ac_cv_header_stdc = yes; then
4338 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4340 /* end confdefs.h. */
4344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4345 $EGREP "free" >/dev
/null
2>&1; then :
4348 ac_cv_header_stdc
=no
4354 if test $ac_cv_header_stdc = yes; then
4355 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4356 if test "$cross_compiling" = yes; then :
4359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4363 #if ((' ' & 0x0FF) == 0x020)
4364 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4365 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4367 # define ISLOWER(c) \
4368 (('a' <= (c) && (c) <= 'i') \
4369 || ('j' <= (c) && (c) <= 'r') \
4370 || ('s' <= (c) && (c) <= 'z'))
4371 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4374 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4379 for (i = 0; i < 256; i++)
4380 if (XOR (islower (i), ISLOWER (i))
4381 || toupper (i) != TOUPPER (i))
4386 if ac_fn_c_try_run
"$LINENO"; then :
4389 ac_cv_header_stdc
=no
4391 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4392 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4398 $as_echo "$ac_cv_header_stdc" >&6; }
4399 if test $ac_cv_header_stdc = yes; then
4401 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4405 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4406 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4407 inttypes.h stdint.h unistd.h
4409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4410 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4412 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4413 cat >>confdefs.h
<<_ACEOF
4414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4423 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4424 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4431 if test "$MINIX" = yes; then
4433 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4436 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4439 $as_echo "#define _MINIX 1" >>confdefs.h
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4445 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4446 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4447 $as_echo_n "(cached) " >&6
4449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4452 # define __EXTENSIONS__ 1
4453 $ac_includes_default
4462 if ac_fn_c_try_compile
"$LINENO"; then :
4463 ac_cv_safe_to_define___extensions__
=yes
4465 ac_cv_safe_to_define___extensions__
=no
4467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4470 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4471 test $ac_cv_safe_to_define___extensions__ = yes &&
4472 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4474 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4476 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4478 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4480 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4484 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4485 if test -f "$ac_dir/install-sh"; then
4487 ac_install_sh
="$ac_aux_dir/install-sh -c"
4489 elif test -f "$ac_dir/install.sh"; then
4491 ac_install_sh
="$ac_aux_dir/install.sh -c"
4493 elif test -f "$ac_dir/shtool"; then
4495 ac_install_sh
="$ac_aux_dir/shtool install -c"
4499 if test -z "$ac_aux_dir"; then
4500 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4503 # These three variables are undocumented and unsupported,
4504 # and are intended to be withdrawn in a future Autoconf release.
4505 # They can cause serious problems if a builder's source tree is in a directory
4506 # whose full name contains unusual characters.
4507 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4508 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4509 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4512 # Make sure we can run config.sub.
4513 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4514 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4517 $as_echo_n "checking build system type... " >&6; }
4518 if ${ac_cv_build+:} false
; then :
4519 $as_echo_n "(cached) " >&6
4521 ac_build_alias
=$build_alias
4522 test "x$ac_build_alias" = x
&&
4523 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4524 test "x$ac_build_alias" = x
&&
4525 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4526 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4527 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4531 $as_echo "$ac_cv_build" >&6; }
4532 case $ac_cv_build in
4534 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4537 ac_save_IFS
=$IFS; IFS
='-'
4543 # Remember, the first character of IFS is used to create $*,
4544 # except with old shells:
4547 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4551 $as_echo_n "checking host system type... " >&6; }
4552 if ${ac_cv_host+:} false
; then :
4553 $as_echo_n "(cached) " >&6
4555 if test "x$host_alias" = x
; then
4556 ac_cv_host
=$ac_cv_build
4558 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4559 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4564 $as_echo "$ac_cv_host" >&6; }
4567 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4570 ac_save_IFS
=$IFS; IFS
='-'
4576 # Remember, the first character of IFS is used to create $*,
4577 # except with old shells:
4580 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4584 $as_echo_n "checking target system type... " >&6; }
4585 if ${ac_cv_target+:} false
; then :
4586 $as_echo_n "(cached) " >&6
4588 if test "x$target_alias" = x
; then
4589 ac_cv_target
=$ac_cv_host
4591 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4592 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4597 $as_echo "$ac_cv_target" >&6; }
4598 case $ac_cv_target in
4600 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4602 target
=$ac_cv_target
4603 ac_save_IFS
=$IFS; IFS
='-'
4609 # Remember, the first character of IFS is used to create $*,
4610 # except with old shells:
4613 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4616 # The aliases save the names the user supplied, while $host etc.
4617 # will get canonicalized.
4618 test -n "$target_alias" &&
4619 test "$program_prefix$program_suffix$program_transform_name" = \
4621 program_prefix
=${target_alias}-
4623 # The tests for host and target for $enable_largefile require
4628 # As the $enable_largefile decision depends on --enable-plugins we must set it
4629 # even in directories otherwise not depending on the $plugins option.
4633 for ac_header
in dlfcn.h
4635 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4637 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4638 cat >>confdefs.h
<<_ACEOF
4639 #define HAVE_DLFCN_H 1
4646 for ac_header
in windows.h
4648 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4650 if test "x$ac_cv_header_windows_h" = xyes
; then :
4651 cat >>confdefs.h
<<_ACEOF
4652 #define HAVE_WINDOWS_H 1
4660 # Check whether --enable-plugins was given.
4661 if test "${enable_plugins+set}" = set; then :
4662 enableval
=$enable_plugins; case "${enableval}" in
4665 if test "$maybe_plugins" != "yes" ; then
4666 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4670 plugins
=$maybe_plugins
4674 if test "$plugins" = "yes"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4676 $as_echo_n "checking for library containing dlsym... " >&6; }
4677 if ${ac_cv_search_dlsym+:} false
; then :
4678 $as_echo_n "(cached) " >&6
4680 ac_func_search_save_LIBS
=$LIBS
4681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4684 /* Override any GCC internal prototype to avoid an error.
4685 Use char because int might match the return type of a GCC
4686 builtin and then its argument prototype would still apply. */
4699 for ac_lib
in '' dl
; do
4700 if test -z "$ac_lib"; then
4701 ac_res
="none required"
4704 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4706 if ac_fn_c_try_link
"$LINENO"; then :
4707 ac_cv_search_dlsym
=$ac_res
4709 rm -f core conftest.err conftest.
$ac_objext \
4711 if ${ac_cv_search_dlsym+:} false
; then :
4715 if ${ac_cv_search_dlsym+:} false
; then :
4718 ac_cv_search_dlsym
=no
4721 LIBS
=$ac_func_search_save_LIBS
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4724 $as_echo "$ac_cv_search_dlsym" >&6; }
4725 ac_res
=$ac_cv_search_dlsym
4726 if test "$ac_res" != no
; then :
4727 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4735 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4736 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4737 # are mutually exclusive; and without procfs support, the bfd/ elf module
4738 # cannot provide certain routines such as elfcore_write_prpsinfo
4739 # or elfcore_write_prstatus. So unless the user explicitly requested
4740 # large-file support through the --enable-largefile switch, disable
4741 # large-file support in favor of procfs support.
4742 test "${target}" = "${host}" -a "x$plugins" = xno \
4743 && : ${enable_largefile="no"}
4747 # Check whether --enable-largefile was given.
4748 if test "${enable_largefile+set}" = set; then :
4749 enableval
=$enable_largefile;
4752 if test "$enable_largefile" != no
; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4755 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4756 if ${ac_cv_sys_largefile_CC+:} false
; then :
4757 $as_echo_n "(cached) " >&6
4759 ac_cv_sys_largefile_CC
=no
4760 if test "$GCC" != yes; then
4763 # IRIX 6.2 and later do not support large files by default,
4764 # so use the C compiler's -n32 option if that helps.
4765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 #include <sys/types.h>
4768 /* Check that off_t can represent 2**63 - 1 correctly.
4769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4770 since some C++ compilers masquerading as C compilers
4771 incorrectly reject 9223372036854775807. */
4772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4774 && LARGE_OFF_T % 2147483647 == 1)
4784 if ac_fn_c_try_compile
"$LINENO"; then :
4787 rm -f core conftest.err conftest.
$ac_objext
4789 if ac_fn_c_try_compile
"$LINENO"; then :
4790 ac_cv_sys_largefile_CC
=' -n32'; break
4792 rm -f core conftest.err conftest.
$ac_objext
4796 rm -f conftest.
$ac_ext
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4800 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4801 if test "$ac_cv_sys_largefile_CC" != no
; then
4802 CC
=$CC$ac_cv_sys_largefile_CC
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4806 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4807 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4808 $as_echo_n "(cached) " >&6
4811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4812 /* end confdefs.h. */
4813 #include <sys/types.h>
4814 /* Check that off_t can represent 2**63 - 1 correctly.
4815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4816 since some C++ compilers masquerading as C compilers
4817 incorrectly reject 9223372036854775807. */
4818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4820 && LARGE_OFF_T % 2147483647 == 1)
4830 if ac_fn_c_try_compile
"$LINENO"; then :
4831 ac_cv_sys_file_offset_bits
=no
; break
4833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4836 #define _FILE_OFFSET_BITS 64
4837 #include <sys/types.h>
4838 /* Check that off_t can represent 2**63 - 1 correctly.
4839 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4840 since some C++ compilers masquerading as C compilers
4841 incorrectly reject 9223372036854775807. */
4842 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4843 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4844 && LARGE_OFF_T % 2147483647 == 1)
4854 if ac_fn_c_try_compile
"$LINENO"; then :
4855 ac_cv_sys_file_offset_bits
=64; break
4857 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4858 ac_cv_sys_file_offset_bits
=unknown
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4863 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4864 case $ac_cv_sys_file_offset_bits in #(
4867 cat >>confdefs.h
<<_ACEOF
4868 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4873 if test $ac_cv_sys_file_offset_bits = unknown
; then
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4875 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4876 if ${ac_cv_sys_large_files+:} false
; then :
4877 $as_echo_n "(cached) " >&6
4880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4882 #include <sys/types.h>
4883 /* Check that off_t can represent 2**63 - 1 correctly.
4884 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4885 since some C++ compilers masquerading as C compilers
4886 incorrectly reject 9223372036854775807. */
4887 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4888 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4889 && LARGE_OFF_T % 2147483647 == 1)
4899 if ac_fn_c_try_compile
"$LINENO"; then :
4900 ac_cv_sys_large_files
=no
; break
4902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #define _LARGE_FILES 1
4906 #include <sys/types.h>
4907 /* Check that off_t can represent 2**63 - 1 correctly.
4908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4909 since some C++ compilers masquerading as C compilers
4910 incorrectly reject 9223372036854775807. */
4911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4913 && LARGE_OFF_T % 2147483647 == 1)
4923 if ac_fn_c_try_compile
"$LINENO"; then :
4924 ac_cv_sys_large_files
=1; break
4926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4927 ac_cv_sys_large_files
=unknown
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4932 $as_echo "$ac_cv_sys_large_files" >&6; }
4933 case $ac_cv_sys_large_files in #(
4936 cat >>confdefs.h
<<_ACEOF
4937 #define _LARGE_FILES $ac_cv_sys_large_files
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4952 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4953 if ${am_cv_prog_cc_stdc+:} false
; then :
4954 $as_echo_n "(cached) " >&6
4956 am_cv_prog_cc_stdc
=no
4958 # Don't try gcc -ansi; that turns off useful extensions and
4959 # breaks some systems' header files.
4960 # AIX -qlanglvl=ansi
4961 # Ultrix and OSF/1 -std1
4962 # HP-UX 10.20 and later -Ae
4963 # HP-UX older versions -Aa -D_HPUX_SOURCE
4964 # SVR4 -Xc -D__EXTENSIONS__
4965 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4967 CC
="$ac_save_CC $ac_arg"
4968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4972 #include <sys/types.h>
4973 #include <sys/stat.h>
4974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4975 struct buf { int x; };
4976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4977 static char *e (p, i)
4983 static char *f (char * (*g) (char **, int), char **p, ...)
4988 s = g (p, va_arg (v,int));
4992 int test (int i, double x);
4993 struct s1 {int (*f) (int a);};
4994 struct s2 {int (*f) (double a);};
4995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5003 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5009 if ac_fn_c_try_compile
"$LINENO"; then :
5010 am_cv_prog_cc_stdc
="$ac_arg"; break
5012 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5018 if test -z "$am_cv_prog_cc_stdc"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5020 $as_echo "none needed" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
5023 $as_echo "$am_cv_prog_cc_stdc" >&6; }
5025 case "x$am_cv_prog_cc_stdc" in
5027 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
5030 # Expand $ac_aux_dir to an absolute path.
5031 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
5033 if test x
"${install_sh+set}" != xset
; then
5036 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
5038 install_sh
="\${SHELL} $am_aux_dir/install-sh"
5042 # Installed binaries are usually stripped using 'strip' when the user
5043 # run "make install-strip". However 'strip' might not be the right
5044 # tool to use in cross-compilation environments, therefore Automake
5045 # will honor the 'STRIP' environment variable to overrule this program.
5046 if test "$cross_compiling" != no
; then
5047 if test -n "$ac_tool_prefix"; then
5048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5049 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_prog_STRIP+:} false
; then :
5053 $as_echo_n "(cached) " >&6
5055 if test -n "$STRIP"; then
5056 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
5058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir
=.
5063 for ac_exec_ext
in '' $ac_executable_extensions; do
5064 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 STRIP
=$ac_cv_prog_STRIP
5076 if test -n "$STRIP"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5078 $as_echo "$STRIP" >&6; }
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 $as_echo "no" >&6; }
5086 if test -z "$ac_cv_prog_STRIP"; then
5088 # Extract the first word of "strip", so it can be a program name with args.
5089 set dummy strip
; ac_word
=$2
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091 $as_echo_n "checking for $ac_word... " >&6; }
5092 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5093 $as_echo_n "(cached) " >&6
5095 if test -n "$ac_ct_STRIP"; then
5096 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5098 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5102 test -z "$as_dir" && as_dir
=.
5103 for ac_exec_ext
in '' $ac_executable_extensions; do
5104 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_ac_ct_STRIP
="strip"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5116 if test -n "$ac_ct_STRIP"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5118 $as_echo "$ac_ct_STRIP" >&6; }
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121 $as_echo "no" >&6; }
5124 if test "x$ac_ct_STRIP" = x
; then
5127 case $cross_compiling:$ac_tool_warned in
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131 ac_tool_warned
=yes ;;
5136 STRIP
="$ac_cv_prog_STRIP"
5140 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5144 for ac_dir
in ..
"$srcdir"/..
; do
5145 if test -f "$ac_dir/install-sh"; then
5147 ac_install_sh
="$ac_aux_dir/install-sh -c"
5149 elif test -f "$ac_dir/install.sh"; then
5151 ac_install_sh
="$ac_aux_dir/install.sh -c"
5153 elif test -f "$ac_dir/shtool"; then
5155 ac_install_sh
="$ac_aux_dir/shtool install -c"
5159 if test -z "$ac_aux_dir"; then
5160 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5163 # These three variables are undocumented and unsupported,
5164 # and are intended to be withdrawn in a future Autoconf release.
5165 # They can cause serious problems if a builder's source tree is in a directory
5166 # whose full name contains unusual characters.
5167 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5168 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5169 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5173 test "$program_prefix" != NONE
&&
5174 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5175 # Use a double $ so make ignores it.
5176 test "$program_suffix" != NONE
&&
5177 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5178 # Double any \ or $.
5179 # By default was `s,x,x', remove it if useless.
5180 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5181 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5184 # We require a C++11 compiler. Check if one is available, and if
5185 # necessary, set CXX_DIALECT to some -std=xxx switch.
5187 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5189 ac_cpp
='$CXXCPP $CPPFLAGS'
5190 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5191 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5192 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5196 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5197 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5198 $as_echo_n "(cached) " >&6
5200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5204 // If the compiler admits that it is not ready for C++11, why torture it?
5205 // Hopefully, this will speed up the test.
5209 #error "This is not a C++ compiler"
5211 #elif __cplusplus < 201103L
5213 #error "This is not a C++11 compiler"
5220 namespace test_static_assert
5223 template <typename T>
5226 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5231 namespace test_final_override
5239 struct Derived : public Base
5241 virtual void f() override {}
5246 namespace test_double_right_angle_brackets
5249 template < typename T >
5252 typedef check<void> single_type;
5253 typedef check<check<void>> double_type;
5254 typedef check<check<check<void>>> triple_type;
5255 typedef check<check<check<check<void>>>> quadruple_type;
5259 namespace test_decltype
5272 namespace test_type_deduction
5275 template < typename T1, typename T2 >
5278 static const bool value = false;
5281 template < typename T >
5282 struct is_same<T, T>
5284 static const bool value = true;
5287 template < typename T1, typename T2 >
5289 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5295 test(const int c, volatile int v)
5297 static_assert(is_same<int, decltype(0)>::value == true, "");
5298 static_assert(is_same<int, decltype(c)>::value == false, "");
5299 static_assert(is_same<int, decltype(v)>::value == false, "");
5302 auto sumi = ac + av + 'x';
5303 auto sumf = ac + av + 1.0;
5304 static_assert(is_same<int, decltype(ac)>::value == true, "");
5305 static_assert(is_same<int, decltype(av)>::value == true, "");
5306 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5307 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5308 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5309 return (sumf > 0.0) ? sumi : add(c, v);
5314 namespace test_noexcept
5317 int f() { return 0; }
5318 int g() noexcept { return 0; }
5320 static_assert(noexcept(f()) == false, "");
5321 static_assert(noexcept(g()) == true, "");
5325 namespace test_constexpr
5328 template < typename CharT >
5329 unsigned long constexpr
5330 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5332 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5335 template < typename CharT >
5336 unsigned long constexpr
5337 strlen_c(const CharT *const s) noexcept
5339 return strlen_c_r(s, 0UL);
5342 static_assert(strlen_c("") == 0UL, "");
5343 static_assert(strlen_c("1") == 1UL, "");
5344 static_assert(strlen_c("example") == 7UL, "");
5345 static_assert(strlen_c("another\0example") == 7UL, "");
5349 namespace test_rvalue_references
5355 static constexpr int value = N;
5358 answer<1> f(int&) { return answer<1>(); }
5359 answer<2> f(const int&) { return answer<2>(); }
5360 answer<3> f(int&&) { return answer<3>(); }
5367 static_assert(decltype(f(i))::value == 1, "");
5368 static_assert(decltype(f(c))::value == 2, "");
5369 static_assert(decltype(f(0))::value == 3, "");
5374 namespace test_uniform_initialization
5379 static const int zero {};
5380 static const int one {1};
5383 static_assert(test::zero == 0, "");
5384 static_assert(test::one == 1, "");
5388 namespace test_lambdas
5394 auto lambda1 = [](){};
5395 auto lambda2 = lambda1;
5403 auto a = [](int i, int j){ return i + j; }(1, 2);
5404 auto b = []() -> int { return '0'; }();
5405 auto c = [=](){ return a + b; }();
5406 auto d = [&](){ return c; }();
5407 auto e = [a, &b](int x) mutable {
5408 const auto identity = [](int y){ return y; };
5409 for (auto i = 0; i < a; ++i)
5411 return x + identity(a + b);
5413 return a + b + c + d + e;
5419 const auto nullary = [](){ return 0; };
5420 const auto unary = [](int x){ return x; };
5421 using nullary_t = decltype(nullary);
5422 using unary_t = decltype(unary);
5423 const auto higher1st = [](nullary_t f){ return f(); };
5424 const auto higher2nd = [unary](nullary_t f1){
5425 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5427 return higher1st(nullary) + higher2nd(nullary)(unary);
5432 namespace test_variadic_templates
5438 template <int N0, int... N1toN>
5439 struct sum<N0, N1toN...>
5441 static constexpr auto value = N0 + sum<N1toN...>::value;
5447 static constexpr auto value = 0;
5450 static_assert(sum<>::value == 0, "");
5451 static_assert(sum<1>::value == 1, "");
5452 static_assert(sum<23>::value == 23, "");
5453 static_assert(sum<1, 2>::value == 3, "");
5454 static_assert(sum<5, 5, 11>::value == 21, "");
5455 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5459 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5460 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5462 namespace test_template_alias_sfinae
5467 template<typename T>
5468 using member = typename T::member_type;
5470 template<typename T>
5473 template<typename T>
5474 void func(member<T>*) {}
5478 void test() { func<foo>(0); }
5482 } // namespace cxx11
5484 #endif // __cplusplus >= 201103L
5489 if ac_fn_cxx_try_compile
"$LINENO"; then :
5490 ax_cv_cxx_compile_cxx11
=yes
5492 ax_cv_cxx_compile_cxx11
=no
5494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5497 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5498 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5502 if test x
$ac_success = xno
; then
5503 for alternative
in ${ax_cxx_compile_alternatives}; do
5504 switch
="-std=gnu++${alternative}"
5505 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5507 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5508 if eval \
${$cachevar+:} false
; then :
5509 $as_echo_n "(cached) " >&6
5513 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5517 // If the compiler admits that it is not ready for C++11, why torture it?
5518 // Hopefully, this will speed up the test.
5522 #error "This is not a C++ compiler"
5524 #elif __cplusplus < 201103L
5526 #error "This is not a C++11 compiler"
5533 namespace test_static_assert
5536 template <typename T>
5539 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5544 namespace test_final_override
5552 struct Derived : public Base
5554 virtual void f() override {}
5559 namespace test_double_right_angle_brackets
5562 template < typename T >
5565 typedef check<void> single_type;
5566 typedef check<check<void>> double_type;
5567 typedef check<check<check<void>>> triple_type;
5568 typedef check<check<check<check<void>>>> quadruple_type;
5572 namespace test_decltype
5585 namespace test_type_deduction
5588 template < typename T1, typename T2 >
5591 static const bool value = false;
5594 template < typename T >
5595 struct is_same<T, T>
5597 static const bool value = true;
5600 template < typename T1, typename T2 >
5602 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5608 test(const int c, volatile int v)
5610 static_assert(is_same<int, decltype(0)>::value == true, "");
5611 static_assert(is_same<int, decltype(c)>::value == false, "");
5612 static_assert(is_same<int, decltype(v)>::value == false, "");
5615 auto sumi = ac + av + 'x';
5616 auto sumf = ac + av + 1.0;
5617 static_assert(is_same<int, decltype(ac)>::value == true, "");
5618 static_assert(is_same<int, decltype(av)>::value == true, "");
5619 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5620 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5621 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5622 return (sumf > 0.0) ? sumi : add(c, v);
5627 namespace test_noexcept
5630 int f() { return 0; }
5631 int g() noexcept { return 0; }
5633 static_assert(noexcept(f()) == false, "");
5634 static_assert(noexcept(g()) == true, "");
5638 namespace test_constexpr
5641 template < typename CharT >
5642 unsigned long constexpr
5643 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5645 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5648 template < typename CharT >
5649 unsigned long constexpr
5650 strlen_c(const CharT *const s) noexcept
5652 return strlen_c_r(s, 0UL);
5655 static_assert(strlen_c("") == 0UL, "");
5656 static_assert(strlen_c("1") == 1UL, "");
5657 static_assert(strlen_c("example") == 7UL, "");
5658 static_assert(strlen_c("another\0example") == 7UL, "");
5662 namespace test_rvalue_references
5668 static constexpr int value = N;
5671 answer<1> f(int&) { return answer<1>(); }
5672 answer<2> f(const int&) { return answer<2>(); }
5673 answer<3> f(int&&) { return answer<3>(); }
5680 static_assert(decltype(f(i))::value == 1, "");
5681 static_assert(decltype(f(c))::value == 2, "");
5682 static_assert(decltype(f(0))::value == 3, "");
5687 namespace test_uniform_initialization
5692 static const int zero {};
5693 static const int one {1};
5696 static_assert(test::zero == 0, "");
5697 static_assert(test::one == 1, "");
5701 namespace test_lambdas
5707 auto lambda1 = [](){};
5708 auto lambda2 = lambda1;
5716 auto a = [](int i, int j){ return i + j; }(1, 2);
5717 auto b = []() -> int { return '0'; }();
5718 auto c = [=](){ return a + b; }();
5719 auto d = [&](){ return c; }();
5720 auto e = [a, &b](int x) mutable {
5721 const auto identity = [](int y){ return y; };
5722 for (auto i = 0; i < a; ++i)
5724 return x + identity(a + b);
5726 return a + b + c + d + e;
5732 const auto nullary = [](){ return 0; };
5733 const auto unary = [](int x){ return x; };
5734 using nullary_t = decltype(nullary);
5735 using unary_t = decltype(unary);
5736 const auto higher1st = [](nullary_t f){ return f(); };
5737 const auto higher2nd = [unary](nullary_t f1){
5738 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5740 return higher1st(nullary) + higher2nd(nullary)(unary);
5745 namespace test_variadic_templates
5751 template <int N0, int... N1toN>
5752 struct sum<N0, N1toN...>
5754 static constexpr auto value = N0 + sum<N1toN...>::value;
5760 static constexpr auto value = 0;
5763 static_assert(sum<>::value == 0, "");
5764 static_assert(sum<1>::value == 1, "");
5765 static_assert(sum<23>::value == 23, "");
5766 static_assert(sum<1, 2>::value == 3, "");
5767 static_assert(sum<5, 5, 11>::value == 21, "");
5768 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5772 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5773 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5775 namespace test_template_alias_sfinae
5780 template<typename T>
5781 using member = typename T::member_type;
5783 template<typename T>
5786 template<typename T>
5787 void func(member<T>*) {}
5791 void test() { func<foo>(0); }
5795 } // namespace cxx11
5797 #endif // __cplusplus >= 201103L
5802 if ac_fn_cxx_try_compile
"$LINENO"; then :
5807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5810 eval ac_res
=\$
$cachevar
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5812 $as_echo "$ac_res" >&6; }
5813 if eval test x\$
$cachevar = xyes
; then
5814 CXX_DIALECT
="$switch"
5821 if test x
$ac_success = xno
; then
5822 for alternative
in ${ax_cxx_compile_alternatives}; do
5823 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5824 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5826 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5827 if eval \${$cachevar+:} false; then :
5828 $as_echo_n "(cached
) " >&6
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5836 // If the compiler admits that it is not ready for C++11, why torture it?
5837 // Hopefully, this will speed up the test.
5841 #error "This is not a C
++ compiler
"
5843 #elif __cplusplus < 201103L
5845 #error "This is not a C
++11 compiler
"
5852 namespace test_static_assert
5855 template <typename T>
5858 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5863 namespace test_final_override
5871 struct Derived : public Base
5873 virtual void f() override {}
5878 namespace test_double_right_angle_brackets
5881 template < typename T >
5884 typedef check<void> single_type;
5885 typedef check<check<void>> double_type;
5886 typedef check<check<check<void>>> triple_type;
5887 typedef check<check<check<check<void>>>> quadruple_type;
5891 namespace test_decltype
5904 namespace test_type_deduction
5907 template < typename T1, typename T2 >
5910 static const bool value = false;
5913 template < typename T >
5914 struct is_same<T, T>
5916 static const bool value = true;
5919 template < typename T1, typename T2 >
5921 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5927 test(const int c, volatile int v)
5929 static_assert(is_same<int, decltype(0)>::value == true, "");
5930 static_assert(is_same<int, decltype(c)>::value == false, "");
5931 static_assert(is_same<int, decltype(v)>::value == false, "");
5934 auto sumi = ac + av + 'x';
5935 auto sumf = ac + av + 1.0;
5936 static_assert(is_same<int, decltype(ac)>::value == true, "");
5937 static_assert(is_same<int, decltype(av)>::value == true, "");
5938 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5939 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5940 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5941 return (sumf > 0.0) ? sumi : add(c, v);
5946 namespace test_noexcept
5949 int f() { return 0; }
5950 int g() noexcept { return 0; }
5952 static_assert(noexcept(f()) == false, "");
5953 static_assert(noexcept(g()) == true, "");
5957 namespace test_constexpr
5960 template < typename CharT >
5961 unsigned long constexpr
5962 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5964 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5967 template < typename CharT >
5968 unsigned long constexpr
5969 strlen_c(const CharT *const s) noexcept
5971 return strlen_c_r(s, 0UL);
5974 static_assert(strlen_c("") == 0UL, "");
5975 static_assert(strlen_c("1") == 1UL, "");
5976 static_assert(strlen_c("example
") == 7UL, "");
5977 static_assert(strlen_c("another\
0example
") == 7UL, "");
5981 namespace test_rvalue_references
5987 static constexpr int value = N;
5990 answer<1> f(int&) { return answer<1>(); }
5991 answer<2> f(const int&) { return answer<2>(); }
5992 answer<3> f(int&&) { return answer<3>(); }
5999 static_assert(decltype(f(i))::value == 1, "");
6000 static_assert(decltype(f(c))::value == 2, "");
6001 static_assert(decltype(f(0))::value == 3, "");
6006 namespace test_uniform_initialization
6011 static const int zero {};
6012 static const int one {1};
6015 static_assert(test::zero == 0, "");
6016 static_assert(test::one == 1, "");
6020 namespace test_lambdas
6026 auto lambda1 = [](){};
6027 auto lambda2 = lambda1;
6035 auto a = [](int i, int j){ return i + j; }(1, 2);
6036 auto b = []() -> int { return '0'; }();
6037 auto c = [=](){ return a + b; }();
6038 auto d = [&](){ return c; }();
6039 auto e = [a, &b](int x) mutable {
6040 const auto identity = [](int y){ return y; };
6041 for (auto i = 0; i < a; ++i)
6043 return x + identity(a + b);
6045 return a + b + c + d + e;
6051 const auto nullary = [](){ return 0; };
6052 const auto unary = [](int x){ return x; };
6053 using nullary_t = decltype(nullary);
6054 using unary_t = decltype(unary);
6055 const auto higher1st = [](nullary_t f){ return f(); };
6056 const auto higher2nd = [unary](nullary_t f1){
6057 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6059 return higher1st(nullary) + higher2nd(nullary)(unary);
6064 namespace test_variadic_templates
6070 template <int N0, int... N1toN>
6071 struct sum<N0, N1toN...>
6073 static constexpr auto value = N0 + sum<N1toN...>::value;
6079 static constexpr auto value = 0;
6082 static_assert(sum<>::value == 0, "");
6083 static_assert(sum<1>::value == 1, "");
6084 static_assert(sum<23>::value == 23, "");
6085 static_assert(sum<1, 2>::value == 3, "");
6086 static_assert(sum<5, 5, 11>::value == 21, "");
6087 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6091 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6092 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6094 namespace test_template_alias_sfinae
6099 template<typename T>
6100 using member = typename T::member_type;
6102 template<typename T>
6105 template<typename T>
6106 void func(member<T>*) {}
6110 void test() { func<foo>(0); }
6114 } // namespace cxx11
6116 #endif // __cplusplus >= 201103L
6121 if ac_fn_cxx_try_compile "$LINENO"; then :
6126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 eval ac_res=\$$cachevar
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6131 $as_echo "$ac_res" >&6; }
6132 if eval test x\$$cachevar = xyes; then
6133 CXX_DIALECT="$switch"
6138 if test x$ac_success = xyes; then
6144 ac_cpp='$CPP $CPPFLAGS'
6145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6150 if test x$ac_success = xno; then
6151 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6154 if test x$ac_success = xno; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6157 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6161 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6168 # Dependency checking.
6169 rm -rf .tst
2>/dev
/null
6170 mkdir .tst
2>/dev
/null
6171 if test -d .tst
; then
6176 rmdir .tst
2>/dev
/null
6178 DEPDIR
="${am__leading_dot}deps"
6180 ac_config_commands
="$ac_config_commands depdir"
6183 depcc
="$CC" am_compiler_list
=
6185 am_depcomp
=$ac_aux_dir/depcomp
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6187 $as_echo_n "checking dependency style of $depcc... " >&6; }
6188 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6189 $as_echo_n "(cached) " >&6
6191 if test -f "$am_depcomp"; then
6192 # We make a subdir and do the tests there. Otherwise we can end up
6193 # making bogus files that we don't know about and never remove. For
6194 # instance it was reported that on HP-UX the gcc test will end up
6195 # making a dummy file named `D' -- because `-MD' means `put the output
6198 # Copy depcomp to subdir because otherwise we won't find it if we're
6199 # using a relative directory.
6200 cp "$am_depcomp" conftest.dir
6202 # We will build objects and dependencies in a subdirectory because
6203 # it helps to detect inapplicable dependency modes. For instance
6204 # both Tru64's cc and ICC support -MD to output dependencies as a
6205 # side effect of compilation, but ICC will put the dependencies in
6206 # the current directory while Tru64 will put them in the object
6210 am_cv_CC_dependencies_compiler_type
=none
6211 if test "$am_compiler_list" = ""; then
6212 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6214 for depmode
in $am_compiler_list; do
6215 if test $depmode = none
; then break; fi
6217 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6218 # Setup a source with many dependencies, because some compilers
6219 # like to wrap large dependency lists on column 80 (with \), and
6220 # we should not choose a depcomp mode which is confused by this.
6222 # We need to recreate these files for each test, as the compiler may
6223 # overwrite some of them when testing with obscure command lines.
6224 # This happens at least with the AIX C compiler.
6226 for i
in 1 2 3 4 5 6; do
6227 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6228 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6229 # Solaris 8's {/usr,}/bin/sh.
6230 touch sub
/conftst
$i.h
6232 echo "include sub/conftest.Po" > confmf
6234 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6235 # mode. It turns out that the SunPro C++ compiler does not properly
6236 # handle `-M -o', and we need to detect this.
6237 depcmd
="depmode=$depmode \
6238 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6239 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6240 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6241 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6242 if env
$depcmd > conftest.err
2>&1 &&
6243 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6244 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6245 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6246 # icc doesn't choke on unknown options, it will just issue warnings
6247 # or remarks (even with -Werror). So we grep stderr for any message
6248 # that says an option was ignored or not supported.
6249 # When given -MP, icc 7.0 and 7.1 complain thusly:
6250 # icc: Command line warning: ignoring option '-M'; no argument required
6251 # The diagnosis changed in icc 8.0:
6252 # icc: Command line remark: option '-MP' not supported
6253 if (grep 'ignoring option' conftest.err ||
6254 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6255 am_cv_CC_dependencies_compiler_type
=$depmode
6256 $as_echo "$as_me:$LINENO: success" >&5
6260 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6261 sed -e 's/^/| /' < conftest.err
>&5
6267 am_cv_CC_dependencies_compiler_type
=none
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6272 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6273 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6274 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6275 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6291 # If we haven't got the data from the intl directory,
6292 # assume NLS is disabled.
6301 if test -f ..
/intl
/config.intl
; then
6302 . ..
/intl
/config.intl
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6305 $as_echo_n "checking whether NLS is requested... " >&6; }
6306 if test x
"$USE_NLS" != xyes
; then
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6308 $as_echo "no" >&6; }
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6311 $as_echo "yes" >&6; }
6313 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6317 $as_echo_n "checking for catalogs to be installed... " >&6; }
6318 # Look for .po and .gmo files in the source directory.
6321 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6322 # If there aren't any .gmo files the shell will give us the
6323 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6325 case "$cat" in *\
**)
6328 # The quadruple backslash is collapsed to a double backslash
6329 # by the backticks, then collapsed again by the double quotes,
6330 # leaving us with one backslash in the sed expression (right
6331 # before the dot that mustn't act as a wildcard).
6332 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6333 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6334 # The user is allowed to set LINGUAS to a list of languages to
6335 # install catalogs for. If it's empty that means "all of them."
6336 if test "x$LINGUAS" = x
; then
6337 CATALOGS
="$CATALOGS $cat"
6338 XLINGUAS
="$XLINGUAS $lang"
6340 case "$LINGUAS" in *$lang*)
6341 CATALOGS
="$CATALOGS $cat"
6342 XLINGUAS
="$XLINGUAS $lang"
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6349 $as_echo "$LINGUAS" >&6; }
6362 localedir
='${datadir}/locale'
6365 if test x
"$USE_NLS" = xyes
; then
6366 CONFIG_ALL
="$CONFIG_ALL all-po"
6367 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6368 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6369 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6374 cat >>confdefs.h
<<_ACEOF
6375 #define PACKAGE "$PACKAGE"
6380 # We never need to detect it in this sub-configure.
6381 # But preserve it for config.status --recheck.
6385 MAKEINFO_EXTRA_FLAGS
=""
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6387 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6388 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6389 $as_echo_n "(cached) " >&6
6391 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6392 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6393 gdb_cv_have_makeinfo_click
=yes
6395 gdb_cv_have_makeinfo_click
=no
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6399 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6400 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6401 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6407 # Check whether --with-separate-debug-dir was given.
6408 if test "${with_separate_debug_dir+set}" = set; then :
6409 withval
=$with_separate_debug_dir;
6412 DEBUGDIR
=${libdir}/debug
6416 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6417 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6418 ac_define_dir
=`eval echo $DEBUGDIR`
6419 ac_define_dir
=`eval echo $ac_define_dir`
6421 cat >>confdefs.h
<<_ACEOF
6422 #define DEBUGDIR "$ac_define_dir"
6428 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6429 if test "x$prefix" = xNONE
; then
6430 test_prefix
=/usr
/local
6435 test_prefix
=$exec_prefix
6438 case ${ac_define_dir} in
6439 "${test_prefix}"|
"${test_prefix}/"*|\
6440 '${exec_prefix}'|
'${exec_prefix}/'*)
6445 cat >>confdefs.h
<<_ACEOF
6446 #define DEBUGDIR_RELOCATABLE $value
6452 # We can't pass paths as command line arguments.
6453 # Mingw32 tries to be clever and will convert the paths for us.
6454 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6455 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6456 # This breaks GDB's relocatable path conversions since paths passed in
6457 # config.h would not get so translated, the path prefixes no longer match.
6459 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6460 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6461 ac_define_dir
=`eval echo $bindir`
6462 ac_define_dir
=`eval echo $ac_define_dir`
6464 cat >>confdefs.h
<<_ACEOF
6465 #define BINDIR "$ac_define_dir"
6470 # GDB's datadir relocation
6474 # Check whether --with-gdb-datadir was given.
6475 if test "${with_gdb_datadir+set}" = set; then :
6476 withval
=$with_gdb_datadir;
6477 GDB_DATADIR
=$withval
6479 GDB_DATADIR
=${datadir}/gdb
6483 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6484 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6485 ac_define_dir
=`eval echo $GDB_DATADIR`
6486 ac_define_dir
=`eval echo $ac_define_dir`
6488 cat >>confdefs.h
<<_ACEOF
6489 #define GDB_DATADIR "$ac_define_dir"
6495 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6496 if test "x$prefix" = xNONE
; then
6497 test_prefix
=/usr
/local
6502 test_prefix
=$exec_prefix
6505 case ${ac_define_dir} in
6506 "${test_prefix}"|
"${test_prefix}/"*|\
6507 '${exec_prefix}'|
'${exec_prefix}/'*)
6512 cat >>confdefs.h
<<_ACEOF
6513 #define GDB_DATADIR_RELOCATABLE $value
6520 # Check whether --with-relocated-sources was given.
6521 if test "${with_relocated_sources+set}" = set; then :
6522 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6524 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6525 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6526 ac_define_dir
=`eval echo $reloc_srcdir`
6527 ac_define_dir
=`eval echo $ac_define_dir`
6529 cat >>confdefs.h
<<_ACEOF
6530 #define RELOC_SRCDIR "$ac_define_dir"
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6539 $as_echo_n "checking for default auto-load directory... " >&6; }
6541 # Check whether --with-auto-load-dir was given.
6542 if test "${with_auto_load_dir+set}" = set; then :
6543 withval
=$with_auto_load_dir;
6545 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6548 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6550 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6551 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6552 ac_define_dir
=`eval echo $escape_dir`
6553 ac_define_dir
=`eval echo $ac_define_dir`
6555 cat >>confdefs.h
<<_ACEOF
6556 #define AUTO_LOAD_DIR "$ac_define_dir"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6561 $as_echo "$with_auto_load_dir" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6564 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6566 # Check whether --with-auto-load-safe-path was given.
6567 if test "${with_auto_load_safe_path+set}" = set; then :
6568 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6569 with_auto_load_safe_path
="/"
6572 with_auto_load_safe_path
="$with_auto_load_dir"
6575 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6577 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6578 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6579 ac_define_dir
=`eval echo $escape_dir`
6580 ac_define_dir
=`eval echo $ac_define_dir`
6582 cat >>confdefs.h
<<_ACEOF
6583 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6588 $as_echo "$with_auto_load_safe_path" >&6; }
6592 subdirs
="$subdirs testsuite"
6595 # Check whether to support alternative target configurations
6596 # Check whether --enable-targets was given.
6597 if test "${enable_targets+set}" = set; then :
6598 enableval
=$enable_targets; case "${enableval}" in
6599 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6601 no
) enable_targets
= ;;
6602 *) enable_targets
=$enableval ;;
6607 # Check whether to enable 64-bit support on 32-bit hosts
6608 # Check whether --enable-64-bit-bfd was given.
6609 if test "${enable_64_bit_bfd+set}" = set; then :
6610 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6613 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6619 # Provide defaults for some variables set by the per-host and per-target
6621 gdb_host_obs
=posix-hdep.o
6623 if test "${target}" = "${host}"; then
6629 .
$srcdir/configure.
host
6631 # Accumulate some settings from configure.tgt over all enabled targets
6635 HAVE_NATIVE_GCORE_TARGET
=
6637 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6639 if test "$targ_alias" = "all"; then
6642 # Canonicalize the secondary target names.
6643 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6644 if test -n "$result"; then
6650 .
${srcdir}/configure.tgt
6652 if test -z "${gdb_target_obs}"; then :
6653 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6656 # Target-specific object files
6657 for i
in ${gdb_target_obs}; do
6658 case " $TARGET_OBS " in
6661 TARGET_OBS
="$TARGET_OBS ${i}"
6666 # Check whether this target needs 64-bit CORE_ADDR
6667 if test x
${want64} = xfalse
; then
6668 .
${srcdir}/..
/bfd
/config.bfd
6671 # Check whether this target is native and supports gcore.
6672 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6673 && $gdb_have_gcore; then
6674 HAVE_NATIVE_GCORE_TARGET
=1
6679 if test x
${all_targets} = xtrue
; then
6681 # We want all 64-bit targets if we either:
6682 # - run on a 64-bit host or
6683 # - already require 64-bit support for some other target or
6684 # - the --enable-64-bit-bfd option was supplied
6685 # Otherwise we only support all 32-bit targets.
6687 # NOTE: This test must be in sync with the corresponding
6690 if test x
${want64} = xfalse
; then
6691 # The cast to long int works around a bug in the HP C Compiler
6692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6694 # This bug is HP SR number 8606223364.
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6696 $as_echo_n "checking size of long... " >&6; }
6697 if ${ac_cv_sizeof_long+:} false
; then :
6698 $as_echo_n "(cached) " >&6
6700 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6703 if test "$ac_cv_type_long" = yes; then
6704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6706 as_fn_error
77 "cannot compute sizeof (long)
6707 See \`config.log' for more details" "$LINENO" 5; }
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6715 $as_echo "$ac_cv_sizeof_long" >&6; }
6719 cat >>confdefs.h
<<_ACEOF
6720 #define SIZEOF_LONG $ac_cv_sizeof_long
6724 if test "x${ac_cv_sizeof_long}" = "x8"; then
6728 if test x
${want64} = xtrue
; then
6729 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6731 TARGET_OBS
='$(ALL_TARGET_OBS)'
6738 # For other settings, only the main target counts.
6742 targ
=$target; .
${srcdir}/configure.tgt
6744 # Fetch the default architecture and default target vector from BFD.
6745 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6747 # We only want the first architecture, so strip off the others if
6748 # there is more than one.
6749 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6751 if test "x$targ_archs" != x
; then
6753 cat >>confdefs.h
<<_ACEOF
6754 #define DEFAULT_BFD_ARCH $targ_archs
6758 if test "x$targ_defvec" != x
; then
6760 cat >>confdefs.h
<<_ACEOF
6761 #define DEFAULT_BFD_VEC $targ_defvec
6767 # Check whether --enable-gdbmi was given.
6768 if test "${enable_gdbmi+set}" = set; then :
6769 enableval
=$enable_gdbmi; case $enableval in
6773 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6779 if test x
"$enable_gdbmi" = xyes
; then
6780 if test -d $srcdir/mi
; then
6781 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6782 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6783 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6784 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6789 # Check whether --enable-tui was given.
6790 if test "${enable_tui+set}" = set; then :
6791 enableval
=$enable_tui; case $enableval in
6795 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6803 # Check whether --enable-gdbtk was given.
6804 if test "${enable_gdbtk+set}" = set; then :
6805 enableval
=$enable_gdbtk; case $enableval in
6809 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6812 if test -d $srcdir/gdbtk
; then
6819 # We unconditionally disable gdbtk tests on selected platforms.
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6823 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6827 # Libunwind support for ia64.
6830 # Check whether --with-libunwind-ia64 was given.
6831 if test "${with_libunwind_ia64+set}" = set; then :
6832 withval
=$with_libunwind_ia64;
6834 with_libunwind_ia64
=auto
6838 # Backward compatibility option.
6839 if test "${with_libunwind+set}" = set; then
6840 if test x
"$with_libunwind_ia64" != xauto
; then
6841 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6844 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6845 with_libunwind_ia64
="$with_libunwind"
6848 case "$with_libunwind_ia64" in
6852 for ac_header
in libunwind-ia64.h
6854 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6855 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6856 cat >>confdefs.h
<<_ACEOF
6857 #define HAVE_LIBUNWIND_IA64_H 1
6864 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6867 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6871 if test x
"$with_libunwind_ia64" = xyes
; then
6872 for ac_header
in libunwind-ia64.h
6874 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6875 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6876 cat >>confdefs.h
<<_ACEOF
6877 #define HAVE_LIBUNWIND_IA64_H 1
6884 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6885 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6887 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6888 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6889 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6894 # Check whether --with-curses was given.
6895 if test "${with_curses+set}" = set; then :
6896 withval
=$with_curses; opt_curses
=$withval
6901 if test "$opt_curses" = "yes"; then
6905 # Profiling support.
6906 # Check whether --enable-profiling was given.
6907 if test "${enable_profiling+set}" = set; then :
6908 enableval
=$enable_profiling; case $enableval in
6912 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6919 for ac_func
in monstartup _mcleanup
6921 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6922 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6923 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6924 cat >>confdefs.h
<<_ACEOF
6925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6932 $as_echo_n "checking for _etext... " >&6; }
6933 if ${ac_cv_var__etext+:} false
; then :
6934 $as_echo_n "(cached) " >&6
6936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6949 if ac_fn_c_try_link
"$LINENO"; then :
6950 ac_cv_var__etext
=yes
6954 rm -f core conftest.err conftest.
$ac_objext \
6955 conftest
$ac_exeext conftest.
$ac_ext
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6958 $as_echo "$ac_cv_var__etext" >&6; }
6959 if test $ac_cv_var__etext = yes; then
6961 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6965 $as_echo_n "checking for etext... " >&6; }
6966 if ${ac_cv_var_etext+:} false
; then :
6967 $as_echo_n "(cached) " >&6
6969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6982 if ac_fn_c_try_link
"$LINENO"; then :
6987 rm -f core conftest.err conftest.
$ac_objext \
6988 conftest
$ac_exeext conftest.
$ac_ext
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6991 $as_echo "$ac_cv_var_etext" >&6; }
6992 if test $ac_cv_var_etext = yes; then
6994 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6997 if test "$enable_profiling" = yes ; then
6998 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6999 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7002 OLD_CFLAGS
="$CFLAGS"
7003 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7006 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7007 if ${ac_cv_cc_supports_pg+:} false
; then :
7008 $as_echo_n "(cached) " >&6
7010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7021 if ac_fn_c_try_compile
"$LINENO"; then :
7022 ac_cv_cc_supports_pg
=yes
7024 ac_cv_cc_supports_pg
=no
7026 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7029 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7031 if test $ac_cv_cc_supports_pg = no
; then
7032 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7035 CFLAGS
="$OLD_CFLAGS"
7039 # Check whether --enable-codesign was given.
7040 if test "${enable_codesign+set}" = set; then :
7041 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7048 # Check whether --with-pkgversion was given.
7049 if test "${with_pkgversion+set}" = set; then :
7050 withval
=$with_pkgversion; case "$withval" in
7051 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7053 *) PKGVERSION
="($withval) " ;;
7064 # Check whether --with-bugurl was given.
7065 if test "${with_bugurl+set}" = set; then :
7066 withval
=$with_bugurl; case "$withval" in
7067 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7070 *) BUGURL
="$withval"
7074 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7084 REPORT_BUGS_TO
="<$BUGURL>"
7085 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7092 cat >>confdefs.h
<<_ACEOF
7093 #define PKGVERSION "$PKGVERSION"
7097 cat >>confdefs.h
<<_ACEOF
7098 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7102 # --------------------- #
7103 # Checks for programs. #
7104 # --------------------- #
7106 for ac_prog
in gawk mawk nawk
awk
7108 # Extract the first word of "$ac_prog", so it can be a program name with args.
7109 set dummy
$ac_prog; ac_word
=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_AWK+:} false
; then :
7113 $as_echo_n "(cached) " >&6
7115 if test -n "$AWK"; then
7116 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir
=.
7123 for ac_exec_ext
in '' $ac_executable_extensions; do
7124 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_AWK
="$ac_prog"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 if test -n "$AWK"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7138 $as_echo "$AWK" >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7145 test -n "$AWK" && break
7148 # Find a good install program. We prefer a C program (faster),
7149 # so one script is as good as another. But avoid the broken or
7150 # incompatible versions:
7151 # SysV /etc/install, /usr/sbin/install
7152 # SunOS /usr/etc/install
7153 # IRIX /sbin/install
7155 # AmigaOS /C/install, which installs bootblocks on floppy discs
7156 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7157 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7158 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7159 # OS/2's system install, which has a completely different semantic
7160 # ./install, which can be erroneously created by make from ./install.sh.
7161 # Reject install programs that cannot install multiple files.
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7163 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7164 if test -z "$INSTALL"; then
7165 if ${ac_cv_path_install+:} false
; then :
7166 $as_echo_n "(cached) " >&6
7168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir
=.
7173 # Account for people who put trailing slashes in PATH elements.
7174 case $as_dir/ in #((
7175 .
/ | .
// |
/[cC
]/* | \
7176 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7177 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7180 # OSF1 and SCO ODT 3.0 have their own names for install.
7181 # Don't use installbsd from OSF since it installs stuff as root
7183 for ac_prog
in ginstall scoinst
install; do
7184 for ac_exec_ext
in '' $ac_executable_extensions; do
7185 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7186 if test $ac_prog = install &&
7187 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7188 # AIX install. It has an incompatible calling convention.
7190 elif test $ac_prog = install &&
7191 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7192 # program-specific install script used by HP pwplus--don't use.
7195 rm -rf conftest.one conftest.two conftest.dir
7196 echo one
> conftest.one
7197 echo two
> conftest.two
7199 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7200 test -s conftest.one
&& test -s conftest.two
&&
7201 test -s conftest.dir
/conftest.one
&&
7202 test -s conftest.dir
/conftest.two
7204 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7217 rm -rf conftest.one conftest.two conftest.dir
7220 if test "${ac_cv_path_install+set}" = set; then
7221 INSTALL
=$ac_cv_path_install
7223 # As a last resort, use the slow shell script. Don't cache a
7224 # value for INSTALL within a source directory, because that will
7225 # break other packages using the cache if that directory is
7226 # removed, or if the value is a relative name.
7227 INSTALL
=$ac_install_sh
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7231 $as_echo "$INSTALL" >&6; }
7233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7234 # It thinks the first close brace ends the variable substitution.
7235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7239 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7242 $as_echo_n "checking whether ln -s works... " >&6; }
7244 if test "$LN_S" = "ln -s"; then
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7246 $as_echo "yes" >&6; }
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7249 $as_echo "no, using $LN_S" >&6; }
7252 if test -n "$ac_tool_prefix"; then
7253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7254 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7256 $as_echo_n "checking for $ac_word... " >&6; }
7257 if ${ac_cv_prog_RANLIB+:} false
; then :
7258 $as_echo_n "(cached) " >&6
7260 if test -n "$RANLIB"; then
7261 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir
=.
7268 for ac_exec_ext
in '' $ac_executable_extensions; do
7269 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7270 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 RANLIB
=$ac_cv_prog_RANLIB
7281 if test -n "$RANLIB"; then
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7283 $as_echo "$RANLIB" >&6; }
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7286 $as_echo "no" >&6; }
7291 if test -z "$ac_cv_prog_RANLIB"; then
7292 ac_ct_RANLIB
=$RANLIB
7293 # Extract the first word of "ranlib", so it can be a program name with args.
7294 set dummy ranlib
; ac_word
=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7298 $as_echo_n "(cached) " >&6
7300 if test -n "$ac_ct_RANLIB"; then
7301 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7307 test -z "$as_dir" && as_dir
=.
7308 for ac_exec_ext
in '' $ac_executable_extensions; do
7309 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7310 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7321 if test -n "$ac_ct_RANLIB"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7323 $as_echo "$ac_ct_RANLIB" >&6; }
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7329 if test "x$ac_ct_RANLIB" = x
; then
7332 case $cross_compiling:$ac_tool_warned in
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7336 ac_tool_warned
=yes ;;
7338 RANLIB
=$ac_ct_RANLIB
7341 RANLIB
="$ac_cv_prog_RANLIB"
7344 for ac_prog
in 'bison -y' byacc
7346 # Extract the first word of "$ac_prog", so it can be a program name with args.
7347 set dummy
$ac_prog; ac_word
=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_prog_YACC+:} false
; then :
7351 $as_echo_n "(cached) " >&6
7353 if test -n "$YACC"; then
7354 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7360 test -z "$as_dir" && as_dir
=.
7361 for ac_exec_ext
in '' $ac_executable_extensions; do
7362 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7363 ac_cv_prog_YACC
="$ac_prog"
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 YACC
=$ac_cv_prog_YACC
7374 if test -n "$YACC"; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7376 $as_echo "$YACC" >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7383 test -n "$YACC" && break
7385 test -n "$YACC" || YACC
="yacc"
7388 if test -n "$ac_tool_prefix"; then
7389 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7390 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_AR+:} false
; then :
7394 $as_echo_n "(cached) " >&6
7396 if test -n "$AR"; then
7397 ac_cv_prog_AR
="$AR" # Let the user override the test.
7399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir
=.
7404 for ac_exec_ext
in '' $ac_executable_extensions; do
7405 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 if test -n "$AR"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7419 $as_echo "$AR" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7427 if test -z "$ac_cv_prog_AR"; then
7429 # Extract the first word of "ar", so it can be a program name with args.
7430 set dummy
ar; ac_word
=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7434 $as_echo_n "(cached) " >&6
7436 if test -n "$ac_ct_AR"; then
7437 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7439 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir
=.
7444 for ac_exec_ext
in '' $ac_executable_extensions; do
7445 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_ac_ct_AR
="ar"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7457 if test -n "$ac_ct_AR"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7459 $as_echo "$ac_ct_AR" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7465 if test "x$ac_ct_AR" = x
; then
7468 case $cross_compiling:$ac_tool_warned in
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7472 ac_tool_warned
=yes ;;
7480 if test -n "$ac_tool_prefix"; then
7481 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7482 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484 $as_echo_n "checking for $ac_word... " >&6; }
7485 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7486 $as_echo_n "(cached) " >&6
7488 if test -n "$DLLTOOL"; then
7489 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7491 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7495 test -z "$as_dir" && as_dir
=.
7496 for ac_exec_ext
in '' $ac_executable_extensions; do
7497 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7498 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 DLLTOOL
=$ac_cv_prog_DLLTOOL
7509 if test -n "$DLLTOOL"; then
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7511 $as_echo "$DLLTOOL" >&6; }
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514 $as_echo "no" >&6; }
7519 if test -z "$ac_cv_prog_DLLTOOL"; then
7520 ac_ct_DLLTOOL
=$DLLTOOL
7521 # Extract the first word of "dlltool", so it can be a program name with args.
7522 set dummy dlltool
; ac_word
=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7526 $as_echo_n "(cached) " >&6
7528 if test -n "$ac_ct_DLLTOOL"; then
7529 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7535 test -z "$as_dir" && as_dir
=.
7536 for ac_exec_ext
in '' $ac_executable_extensions; do
7537 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7538 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7548 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7549 if test -n "$ac_ct_DLLTOOL"; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7551 $as_echo "$ac_ct_DLLTOOL" >&6; }
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7557 if test "x$ac_ct_DLLTOOL" = x
; then
7560 case $cross_compiling:$ac_tool_warned in
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7564 ac_tool_warned
=yes ;;
7566 DLLTOOL
=$ac_ct_DLLTOOL
7569 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7572 if test -n "$ac_tool_prefix"; then
7573 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7574 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if ${ac_cv_prog_WINDRES+:} false
; then :
7578 $as_echo_n "(cached) " >&6
7580 if test -n "$WINDRES"; then
7581 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7583 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7587 test -z "$as_dir" && as_dir
=.
7588 for ac_exec_ext
in '' $ac_executable_extensions; do
7589 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7590 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7600 WINDRES
=$ac_cv_prog_WINDRES
7601 if test -n "$WINDRES"; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7603 $as_echo "$WINDRES" >&6; }
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7611 if test -z "$ac_cv_prog_WINDRES"; then
7612 ac_ct_WINDRES
=$WINDRES
7613 # Extract the first word of "windres", so it can be a program name with args.
7614 set dummy windres
; ac_word
=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -n "$ac_ct_WINDRES"; then
7621 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7623 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7627 test -z "$as_dir" && as_dir
=.
7628 for ac_exec_ext
in '' $ac_executable_extensions; do
7629 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7630 ac_cv_prog_ac_ct_WINDRES
="windres"
7631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7641 if test -n "$ac_ct_WINDRES"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7643 $as_echo "$ac_ct_WINDRES" >&6; }
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7649 if test "x$ac_ct_WINDRES" = x
; then
7652 case $cross_compiling:$ac_tool_warned in
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656 ac_tool_warned
=yes ;;
7658 WINDRES
=$ac_ct_WINDRES
7661 WINDRES
="$ac_cv_prog_WINDRES"
7667 # Needed for GNU Hurd hosts.
7668 if test -n "$ac_tool_prefix"; then
7669 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7670 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_MIG+:} false
; then :
7674 $as_echo_n "(cached) " >&6
7676 if test -n "$MIG"; then
7677 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7683 test -z "$as_dir" && as_dir
=.
7684 for ac_exec_ext
in '' $ac_executable_extensions; do
7685 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7686 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 if test -n "$MIG"; then
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7699 $as_echo "$MIG" >&6; }
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7707 if test -z "$ac_cv_prog_MIG"; then
7709 # Extract the first word of "mig", so it can be a program name with args.
7710 set dummy mig
; ac_word
=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7714 $as_echo_n "(cached) " >&6
7716 if test -n "$ac_ct_MIG"; then
7717 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7723 test -z "$as_dir" && as_dir
=.
7724 for ac_exec_ext
in '' $ac_executable_extensions; do
7725 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7726 ac_cv_prog_ac_ct_MIG
="mig"
7727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7737 if test -n "$ac_ct_MIG"; then
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7739 $as_echo "$ac_ct_MIG" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7745 if test "x$ac_ct_MIG" = x
; then
7748 case $cross_compiling:$ac_tool_warned in
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7752 ac_tool_warned
=yes ;;
7757 MIG
="$ac_cv_prog_MIG"
7760 if test x
"$MIG" = x
; then
7761 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7766 # ---------------------- #
7767 # Checks for libraries. #
7768 # ---------------------- #
7770 # We might need to link with -lm; most simulators need it.
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7772 $as_echo_n "checking for main in -lm... " >&6; }
7773 if ${ac_cv_lib_m_main+:} false
; then :
7774 $as_echo_n "(cached) " >&6
7776 ac_check_lib_save_LIBS
=$LIBS
7778 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7790 if ac_fn_c_try_link
"$LINENO"; then :
7791 ac_cv_lib_m_main
=yes
7795 rm -f core conftest.err conftest.
$ac_objext \
7796 conftest
$ac_exeext conftest.
$ac_ext
7797 LIBS
=$ac_check_lib_save_LIBS
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7800 $as_echo "$ac_cv_lib_m_main" >&6; }
7801 if test "x$ac_cv_lib_m_main" = xyes
; then :
7802 cat >>confdefs.h
<<_ACEOF
7811 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7813 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7814 if ${ac_cv_search_gethostbyname+:} false
; then :
7815 $as_echo_n "(cached) " >&6
7817 ac_func_search_save_LIBS
=$LIBS
7818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7821 /* Override any GCC internal prototype to avoid an error.
7822 Use char because int might match the return type of a GCC
7823 builtin and then its argument prototype would still apply. */
7827 char gethostbyname ();
7831 return gethostbyname ();
7836 for ac_lib
in '' nsl
; do
7837 if test -z "$ac_lib"; then
7838 ac_res
="none required"
7841 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7843 if ac_fn_c_try_link
"$LINENO"; then :
7844 ac_cv_search_gethostbyname
=$ac_res
7846 rm -f core conftest.err conftest.
$ac_objext \
7848 if ${ac_cv_search_gethostbyname+:} false
; then :
7852 if ${ac_cv_search_gethostbyname+:} false
; then :
7855 ac_cv_search_gethostbyname
=no
7858 LIBS
=$ac_func_search_save_LIBS
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7861 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7862 ac_res
=$ac_cv_search_gethostbyname
7863 if test "$ac_res" != no
; then :
7864 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7869 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7871 $as_echo_n "checking for library containing socketpair... " >&6; }
7872 if ${ac_cv_search_socketpair+:} false
; then :
7873 $as_echo_n "(cached) " >&6
7875 ac_func_search_save_LIBS
=$LIBS
7876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7879 /* Override any GCC internal prototype to avoid an error.
7880 Use char because int might match the return type of a GCC
7881 builtin and then its argument prototype would still apply. */
7889 return socketpair ();
7894 for ac_lib
in '' socket
; do
7895 if test -z "$ac_lib"; then
7896 ac_res
="none required"
7899 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7901 if ac_fn_c_try_link
"$LINENO"; then :
7902 ac_cv_search_socketpair
=$ac_res
7904 rm -f core conftest.err conftest.
$ac_objext \
7906 if ${ac_cv_search_socketpair+:} false
; then :
7910 if ${ac_cv_search_socketpair+:} false
; then :
7913 ac_cv_search_socketpair
=no
7916 LIBS
=$ac_func_search_save_LIBS
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7919 $as_echo "$ac_cv_search_socketpair" >&6; }
7920 ac_res
=$ac_cv_search_socketpair
7921 if test "$ac_res" != no
; then :
7922 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7927 # Link in zlib if we can. This allows us to read compressed debug sections.
7929 # Use the system's zlib library.
7930 zlibdir
="-L\$(top_builddir)/../zlib"
7931 zlibinc
="-I\$(top_srcdir)/../zlib"
7933 # Check whether --with-system-zlib was given.
7934 if test "${with_system_zlib+set}" = set; then :
7935 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7946 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7947 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7949 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7950 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7951 $as_echo_n "(cached) " >&6
7953 ac_func_search_save_LIBS
=$LIBS
7954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7955 /* end confdefs.h. */
7957 /* Override any GCC internal prototype to avoid an error.
7958 Use char because int might match the return type of a GCC
7959 builtin and then its argument prototype would still apply. */
7963 char kinfo_getvmmap ();
7967 return kinfo_getvmmap ();
7972 for ac_lib
in '' util util-freebsd
; do
7973 if test -z "$ac_lib"; then
7974 ac_res
="none required"
7977 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7979 if ac_fn_c_try_link
"$LINENO"; then :
7980 ac_cv_search_kinfo_getvmmap
=$ac_res
7982 rm -f core conftest.err conftest.
$ac_objext \
7984 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7988 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7991 ac_cv_search_kinfo_getvmmap
=no
7994 LIBS
=$ac_func_search_save_LIBS
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7997 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7998 ac_res
=$ac_cv_search_kinfo_getvmmap
7999 if test "$ac_res" != no
; then :
8000 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8002 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8007 # fbsd-nat.c can also use kinfo_getfile.
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8009 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8010 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8011 $as_echo_n "(cached) " >&6
8013 ac_func_search_save_LIBS
=$LIBS
8014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8017 /* Override any GCC internal prototype to avoid an error.
8018 Use char because int might match the return type of a GCC
8019 builtin and then its argument prototype would still apply. */
8023 char kinfo_getfile ();
8027 return kinfo_getfile ();
8032 for ac_lib
in '' util util-freebsd
; do
8033 if test -z "$ac_lib"; then
8034 ac_res
="none required"
8037 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8039 if ac_fn_c_try_link
"$LINENO"; then :
8040 ac_cv_search_kinfo_getfile
=$ac_res
8042 rm -f core conftest.err conftest.
$ac_objext \
8044 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8048 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8051 ac_cv_search_kinfo_getfile
=no
8054 LIBS
=$ac_func_search_save_LIBS
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8057 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8058 ac_res
=$ac_cv_search_kinfo_getfile
8059 if test "$ac_res" != no
; then :
8060 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8062 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8068 if test "X$prefix" = "XNONE"; then
8069 acl_final_prefix
="$ac_default_prefix"
8071 acl_final_prefix
="$prefix"
8073 if test "X$exec_prefix" = "XNONE"; then
8074 acl_final_exec_prefix
='${prefix}'
8076 acl_final_exec_prefix
="$exec_prefix"
8078 acl_save_prefix
="$prefix"
8079 prefix
="$acl_final_prefix"
8080 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8081 prefix
="$acl_save_prefix"
8084 # Check whether --with-gnu-ld was given.
8085 if test "${with_gnu_ld+set}" = set; then :
8086 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8091 # Prepare PATH_SEPARATOR.
8092 # The user is always right.
8093 if test "${PATH_SEPARATOR+set}" != set; then
8094 echo "#! /bin/sh" >conf$$.sh
8095 echo "exit 0" >>conf$$.sh
8097 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8105 if test "$GCC" = yes; then
8106 # Check if gcc -print-prog-name=ld gives a path.
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8108 $as_echo_n "checking for ld used by GCC... " >&6; }
8111 # gcc leaves a trailing carriage return which upsets mingw
8112 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8114 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8117 # Accept absolute paths.
8118 [\\/]* |
[A-Za-z
]:[\\/]*)
8119 re_direlt
='/[^/][^/]*/\.\./'
8120 # Canonicalize the path of ld
8121 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8122 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8123 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8125 test -z "$LD" && LD
="$ac_prog"
8128 # If it fails, then pretend we aren't using GCC.
8132 # If it is relative, then search for the first ld in PATH.
8136 elif test "$with_gnu_ld" = yes; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8138 $as_echo_n "checking for GNU ld... " >&6; }
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8141 $as_echo_n "checking for non-GNU ld... " >&6; }
8143 if ${acl_cv_path_LD+:} false
; then :
8144 $as_echo_n "(cached) " >&6
8146 if test -z "$LD"; then
8147 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8148 for ac_dir
in $PATH; do
8149 test -z "$ac_dir" && ac_dir
=.
8150 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8151 acl_cv_path_LD
="$ac_dir/$ac_prog"
8152 # Check to see if the program is GNU ld. I'd rather use --version,
8153 # but apparently some GNU ld's only accept -v.
8154 # Break only if it was the GNU/non-GNU ld that we prefer.
8155 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8156 test "$with_gnu_ld" != no
&& break
8158 test "$with_gnu_ld" != yes && break
8164 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8168 LD
="$acl_cv_path_LD"
8169 if test -n "$LD"; then
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8171 $as_echo "$LD" >&6; }
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8176 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8178 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8179 if ${acl_cv_prog_gnu_ld+:} false
; then :
8180 $as_echo_n "(cached) " >&6
8182 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8183 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8184 acl_cv_prog_gnu_ld
=yes
8186 acl_cv_prog_gnu_ld
=no
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8190 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8191 with_gnu_ld
=$acl_cv_prog_gnu_ld
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8196 $as_echo_n "checking for shared library run path origin... " >&6; }
8197 if ${acl_cv_rpath+:} false
; then :
8198 $as_echo_n "(cached) " >&6
8201 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8202 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8209 $as_echo "$acl_cv_rpath" >&6; }
8211 libext
="$acl_cv_libext"
8212 shlibext
="$acl_cv_shlibext"
8213 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8214 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8215 hardcode_direct
="$acl_cv_hardcode_direct"
8216 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8217 # Check whether --enable-rpath was given.
8218 if test "${enable_rpath+set}" = set; then :
8219 enableval
=$enable_rpath; :
8233 acl_save_prefix
="$prefix"
8234 prefix
="$acl_final_prefix"
8235 acl_save_exec_prefix
="$exec_prefix"
8236 exec_prefix
="$acl_final_exec_prefix"
8238 eval additional_includedir
=\"$includedir\"
8239 eval additional_libdir
=\"$libdir\"
8241 exec_prefix
="$acl_save_exec_prefix"
8242 prefix
="$acl_save_prefix"
8245 # Check whether --with-libiconv-prefix was given.
8246 if test "${with_libiconv_prefix+set}" = set; then :
8247 withval
=$with_libiconv_prefix;
8248 if test "X$withval" = "Xno"; then
8251 if test "X$withval" = "X"; then
8253 acl_save_prefix
="$prefix"
8254 prefix
="$acl_final_prefix"
8255 acl_save_exec_prefix
="$exec_prefix"
8256 exec_prefix
="$acl_final_exec_prefix"
8258 eval additional_includedir
=\"$includedir\"
8259 eval additional_libdir
=\"$libdir\"
8261 exec_prefix
="$acl_save_exec_prefix"
8262 prefix
="$acl_save_prefix"
8265 additional_includedir
="$withval/include"
8266 additional_libdir
="$withval/lib"
8277 names_already_handled
=
8278 names_next_round
='iconv '
8279 while test -n "$names_next_round"; do
8280 names_this_round
="$names_next_round"
8282 for name
in $names_this_round; do
8284 for n
in $names_already_handled; do
8285 if test "$n" = "$name"; then
8290 if test -z "$already_handled"; then
8291 names_already_handled
="$names_already_handled $name"
8292 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8293 eval value
=\"\
$HAVE_LIB$uppername\"
8294 if test -n "$value"; then
8295 if test "$value" = yes; then
8296 eval value
=\"\
$LIB$uppername\"
8297 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8298 eval value
=\"\
$LTLIB$uppername\"
8299 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8308 if test $use_additional = yes; then
8309 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8310 found_dir
="$additional_libdir"
8311 found_so
="$additional_libdir/lib$name.$shlibext"
8312 if test -f "$additional_libdir/lib$name.la"; then
8313 found_la
="$additional_libdir/lib$name.la"
8316 if test -f "$additional_libdir/lib$name.$libext"; then
8317 found_dir
="$additional_libdir"
8318 found_a
="$additional_libdir/lib$name.$libext"
8319 if test -f "$additional_libdir/lib$name.la"; then
8320 found_la
="$additional_libdir/lib$name.la"
8325 if test "X$found_dir" = "X"; then
8326 for x
in $LDFLAGS $LTLIBICONV; do
8328 acl_save_prefix
="$prefix"
8329 prefix
="$acl_final_prefix"
8330 acl_save_exec_prefix
="$exec_prefix"
8331 exec_prefix
="$acl_final_exec_prefix"
8333 exec_prefix
="$acl_save_exec_prefix"
8334 prefix
="$acl_save_prefix"
8338 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8339 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8341 found_so
="$dir/lib$name.$shlibext"
8342 if test -f "$dir/lib$name.la"; then
8343 found_la
="$dir/lib$name.la"
8346 if test -f "$dir/lib$name.$libext"; then
8348 found_a
="$dir/lib$name.$libext"
8349 if test -f "$dir/lib$name.la"; then
8350 found_la
="$dir/lib$name.la"
8356 if test "X$found_dir" != "X"; then
8361 if test "X$found_dir" != "X"; then
8362 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8363 if test "X$found_so" != "X"; then
8364 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8365 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8368 for x
in $ltrpathdirs; do
8369 if test "X$x" = "X$found_dir"; then
8374 if test -z "$haveit"; then
8375 ltrpathdirs
="$ltrpathdirs $found_dir"
8377 if test "$hardcode_direct" = yes; then
8378 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8380 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8381 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8383 for x
in $rpathdirs; do
8384 if test "X$x" = "X$found_dir"; then
8389 if test -z "$haveit"; then
8390 rpathdirs
="$rpathdirs $found_dir"
8394 for x
in $LDFLAGS $LIBICONV; do
8396 acl_save_prefix
="$prefix"
8397 prefix
="$acl_final_prefix"
8398 acl_save_exec_prefix
="$exec_prefix"
8399 exec_prefix
="$acl_final_exec_prefix"
8401 exec_prefix
="$acl_save_exec_prefix"
8402 prefix
="$acl_save_prefix"
8404 if test "X$x" = "X-L$found_dir"; then
8409 if test -z "$haveit"; then
8410 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8412 if test "$hardcode_minus_L" != no
; then
8413 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8415 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8421 if test "X$found_a" != "X"; then
8422 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8424 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8427 additional_includedir
=
8428 case "$found_dir" in
8430 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8431 additional_includedir
="$basedir/include"
8434 if test "X$additional_includedir" != "X"; then
8435 if test "X$additional_includedir" != "X/usr/include"; then
8437 if test "X$additional_includedir" = "X/usr/local/include"; then
8438 if test -n "$GCC"; then
8440 linux
*) haveit
=yes;;
8444 if test -z "$haveit"; then
8445 for x
in $CPPFLAGS $INCICONV; do
8447 acl_save_prefix
="$prefix"
8448 prefix
="$acl_final_prefix"
8449 acl_save_exec_prefix
="$exec_prefix"
8450 exec_prefix
="$acl_final_exec_prefix"
8452 exec_prefix
="$acl_save_exec_prefix"
8453 prefix
="$acl_save_prefix"
8455 if test "X$x" = "X-I$additional_includedir"; then
8460 if test -z "$haveit"; then
8461 if test -d "$additional_includedir"; then
8462 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8468 if test -n "$found_la"; then
8469 save_libdir
="$libdir"
8471 */* |
*\\*) .
"$found_la" ;;
8472 *) .
"./$found_la" ;;
8474 libdir
="$save_libdir"
8475 for dep
in $dependency_libs; do
8478 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8479 if test "X$additional_libdir" != "X/usr/lib"; then
8481 if test "X$additional_libdir" = "X/usr/local/lib"; then
8482 if test -n "$GCC"; then
8484 linux
*) haveit
=yes;;
8488 if test -z "$haveit"; then
8490 for x
in $LDFLAGS $LIBICONV; do
8492 acl_save_prefix
="$prefix"
8493 prefix
="$acl_final_prefix"
8494 acl_save_exec_prefix
="$exec_prefix"
8495 exec_prefix
="$acl_final_exec_prefix"
8497 exec_prefix
="$acl_save_exec_prefix"
8498 prefix
="$acl_save_prefix"
8500 if test "X$x" = "X-L$additional_libdir"; then
8505 if test -z "$haveit"; then
8506 if test -d "$additional_libdir"; then
8507 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8511 for x
in $LDFLAGS $LTLIBICONV; do
8513 acl_save_prefix
="$prefix"
8514 prefix
="$acl_final_prefix"
8515 acl_save_exec_prefix
="$exec_prefix"
8516 exec_prefix
="$acl_final_exec_prefix"
8518 exec_prefix
="$acl_save_exec_prefix"
8519 prefix
="$acl_save_prefix"
8521 if test "X$x" = "X-L$additional_libdir"; then
8526 if test -z "$haveit"; then
8527 if test -d "$additional_libdir"; then
8528 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8535 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8536 if test "$enable_rpath" != no
; then
8538 for x
in $rpathdirs; do
8539 if test "X$x" = "X$dir"; then
8544 if test -z "$haveit"; then
8545 rpathdirs
="$rpathdirs $dir"
8548 for x
in $ltrpathdirs; do
8549 if test "X$x" = "X$dir"; then
8554 if test -z "$haveit"; then
8555 ltrpathdirs
="$ltrpathdirs $dir"
8560 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8563 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8566 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8567 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8573 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8574 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8580 if test "X$rpathdirs" != "X"; then
8581 if test -n "$hardcode_libdir_separator"; then
8583 for found_dir
in $rpathdirs; do
8584 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8586 acl_save_libdir
="$libdir"
8588 eval flag
=\"$hardcode_libdir_flag_spec\"
8589 libdir
="$acl_save_libdir"
8590 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8592 for found_dir
in $rpathdirs; do
8593 acl_save_libdir
="$libdir"
8595 eval flag
=\"$hardcode_libdir_flag_spec\"
8596 libdir
="$acl_save_libdir"
8597 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8601 if test "X$ltrpathdirs" != "X"; then
8602 for found_dir
in $ltrpathdirs; do
8603 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8614 $as_echo_n "checking for iconv... " >&6; }
8615 if ${am_cv_func_iconv+:} false
; then :
8616 $as_echo_n "(cached) " >&6
8619 am_cv_func_iconv
="no, consider installing GNU libiconv"
8621 am_save_CPPFLAGS
="$CPPFLAGS"
8622 CPPFLAGS
="$CPPFLAGS $INCICONV"
8623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8630 iconv_t cd = iconv_open("","");
8631 iconv(cd,NULL,NULL,NULL,NULL);
8637 if ac_fn_c_try_link
"$LINENO"; then :
8638 am_cv_func_iconv
=yes
8640 rm -f core conftest.err conftest.
$ac_objext \
8641 conftest
$ac_exeext conftest.
$ac_ext
8642 CPPFLAGS
="$am_save_CPPFLAGS"
8644 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8645 for _libs
in .libs _libs
; do
8646 am_save_CPPFLAGS
="$CPPFLAGS"
8647 am_save_LIBS
="$LIBS"
8648 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8649 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8657 iconv_t cd = iconv_open("","");
8658 iconv(cd,NULL,NULL,NULL,NULL);
8664 if ac_fn_c_try_link
"$LINENO"; then :
8665 INCICONV
="-I../libiconv/include"
8666 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8667 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8669 am_cv_func_iconv
=yes
8671 rm -f core conftest.err conftest.
$ac_objext \
8672 conftest
$ac_exeext conftest.
$ac_ext
8673 CPPFLAGS
="$am_save_CPPFLAGS"
8674 LIBS
="$am_save_LIBS"
8675 if test "$am_cv_func_iconv" = "yes"; then
8681 if test "$am_cv_func_iconv" != yes; then
8682 am_save_CPPFLAGS
="$CPPFLAGS"
8683 am_save_LIBS
="$LIBS"
8684 CPPFLAGS
="$CPPFLAGS $INCICONV"
8685 LIBS
="$LIBS $LIBICONV"
8686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8693 iconv_t cd = iconv_open("","");
8694 iconv(cd,NULL,NULL,NULL,NULL);
8700 if ac_fn_c_try_link
"$LINENO"; then :
8702 am_cv_func_iconv
=yes
8704 rm -f core conftest.err conftest.
$ac_objext \
8705 conftest
$ac_exeext conftest.
$ac_ext
8706 CPPFLAGS
="$am_save_CPPFLAGS"
8707 LIBS
="$am_save_LIBS"
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8712 $as_echo "$am_cv_func_iconv" >&6; }
8713 if test "$am_cv_func_iconv" = yes; then
8715 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8718 if test "$am_cv_lib_iconv" = yes; then
8720 for element
in $INCICONV; do
8722 for x
in $CPPFLAGS; do
8724 acl_save_prefix
="$prefix"
8725 prefix
="$acl_final_prefix"
8726 acl_save_exec_prefix
="$exec_prefix"
8727 exec_prefix
="$acl_final_exec_prefix"
8729 exec_prefix
="$acl_save_exec_prefix"
8730 prefix
="$acl_save_prefix"
8732 if test "X$x" = "X$element"; then
8737 if test -z "$haveit"; then
8738 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8743 $as_echo_n "checking how to link with libiconv... " >&6; }
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8745 $as_echo "$LIBICONV" >&6; }
8753 if test "$am_cv_func_iconv" = yes; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8755 $as_echo_n "checking for iconv declaration... " >&6; }
8756 if ${am_cv_proto_iconv+:} false
; then :
8757 $as_echo_n "(cached) " >&6
8760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8769 #if defined(__STDC__) || defined(__cplusplus)
8770 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8783 if ac_fn_c_try_compile
"$LINENO"; then :
8784 am_cv_proto_iconv_arg1
=""
8786 am_cv_proto_iconv_arg1
="const"
8788 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8789 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);"
8792 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8794 }$am_cv_proto_iconv" >&5
8796 }$am_cv_proto_iconv" >&6; }
8798 cat >>confdefs.h
<<_ACEOF
8799 #define ICONV_CONST $am_cv_proto_iconv_arg1
8805 # GDB may fork/exec the iconv program to get the list of supported character
8806 # sets. Allow the user to specify where to find it.
8807 # There are several factors affecting the choice of option name:
8808 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8809 # the build-time location of libiconv files.
8810 # - The program we need to find is iconv, which comes with glibc. The user
8811 # doesn't necessarily have libiconv installed. Therefore naming this
8812 # --with-libiconv-foo feels wrong.
8813 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8814 # defined to work on directories not files (though it really doesn't know
8816 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8817 # with --with-libiconv-prefix.
8818 # Putting these together is why the option name is --with-iconv-bin.
8821 # Check whether --with-iconv-bin was given.
8822 if test "${with_iconv_bin+set}" = set; then :
8823 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8825 cat >>confdefs.h
<<_ACEOF
8826 #define ICONV_BIN "${iconv_bin}"
8830 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8831 if test "x$prefix" = xNONE
; then
8832 test_prefix
=/usr
/local
8837 test_prefix
=$exec_prefix
8840 case ${iconv_bin} in
8841 "${test_prefix}"|
"${test_prefix}/"*|\
8842 '${exec_prefix}'|
'${exec_prefix}/'*)
8847 cat >>confdefs.h
<<_ACEOF
8848 #define ICONV_BIN_RELOCATABLE $value
8856 # For the TUI, we need enhanced curses functionality.
8857 if test x
"$enable_tui" != xno
; then
8862 if test x
"$prefer_curses" = xyes
; then
8863 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8864 # curses library because the latter might not provide all the
8865 # functionality we need. However, this leads to problems on systems
8866 # where the linker searches /usr/local/lib, but the compiler doesn't
8867 # search /usr/local/include, if ncurses is installed in /usr/local. A
8868 # default installation of ncurses on alpha*-dec-osf* will lead to such
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8871 $as_echo_n "checking for library containing waddstr... " >&6; }
8872 if ${ac_cv_search_waddstr+:} false
; then :
8873 $as_echo_n "(cached) " >&6
8875 ac_func_search_save_LIBS
=$LIBS
8876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8879 /* Override any GCC internal prototype to avoid an error.
8880 Use char because int might match the return type of a GCC
8881 builtin and then its argument prototype would still apply. */
8894 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8895 if test -z "$ac_lib"; then
8896 ac_res
="none required"
8899 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8901 if ac_fn_c_try_link
"$LINENO"; then :
8902 ac_cv_search_waddstr
=$ac_res
8904 rm -f core conftest.err conftest.
$ac_objext \
8906 if ${ac_cv_search_waddstr+:} false
; then :
8910 if ${ac_cv_search_waddstr+:} false
; then :
8913 ac_cv_search_waddstr
=no
8916 LIBS
=$ac_func_search_save_LIBS
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8919 $as_echo "$ac_cv_search_waddstr" >&6; }
8920 ac_res
=$ac_cv_search_waddstr
8921 if test "$ac_res" != no
; then :
8922 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8927 if test "$ac_cv_search_waddstr" != no
; then
8932 # Check whether we should enable the TUI, but only do so if we really
8934 if test x
"$enable_tui" != xno
; then
8935 if test -d $srcdir/tui
; then
8936 if test "$curses_found" != no
; then
8937 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8938 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8939 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8940 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8942 if test x
"$enable_tui" = xyes
; then
8943 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8946 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8952 # Since GDB uses Readline, we need termcap functionality. In many
8953 # cases this will be provided by the curses library, but some systems
8954 # have a separate termcap library, or no curses library at all.
8958 if test -d $srcdir/libtermcap
; then
8959 LIBS
="../libtermcap/libtermcap.a $LIBS"
8960 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8963 ac_cv_search_tgetent
="none required"
8967 # These are the libraries checked by Readline.
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8969 $as_echo_n "checking for library containing tgetent... " >&6; }
8970 if ${ac_cv_search_tgetent+:} false
; then :
8971 $as_echo_n "(cached) " >&6
8973 ac_func_search_save_LIBS
=$LIBS
8974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8977 /* Override any GCC internal prototype to avoid an error.
8978 Use char because int might match the return type of a GCC
8979 builtin and then its argument prototype would still apply. */
8992 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
8993 if test -z "$ac_lib"; then
8994 ac_res
="none required"
8997 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8999 if ac_fn_c_try_link
"$LINENO"; then :
9000 ac_cv_search_tgetent
=$ac_res
9002 rm -f core conftest.err conftest.
$ac_objext \
9004 if ${ac_cv_search_tgetent+:} false
; then :
9008 if ${ac_cv_search_tgetent+:} false
; then :
9011 ac_cv_search_tgetent
=no
9014 LIBS
=$ac_func_search_save_LIBS
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9017 $as_echo "$ac_cv_search_tgetent" >&6; }
9018 ac_res
=$ac_cv_search_tgetent
9019 if test "$ac_res" != no
; then :
9020 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9025 if test "$ac_cv_search_tgetent" = no
; then
9026 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9030 # Check whether --with-system-readline was given.
9031 if test "${with_system_readline+set}" = set; then :
9032 withval
=$with_system_readline;
9036 if test "$with_system_readline" = yes; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
9038 $as_echo_n "checking whether system readline is new enough... " >&6; }
9039 if ${gdb_cv_readline_ok+:} false
; then :
9040 $as_echo_n "(cached) " >&6
9042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h. */
9045 #include <readline/readline.h>
9049 #if RL_VERSION_MAJOR < 7
9050 # error "readline version 7 required"
9056 if ac_fn_c_try_compile
"$LINENO"; then :
9057 gdb_cv_readline_ok
=yes
9059 gdb_cv_readline_ok
=no
9061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
9064 $as_echo "$gdb_cv_readline_ok" >&6; }
9065 if test "$gdb_cv_readline_ok" != yes; then
9066 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
9072 READLINE_TEXI_INCFLAG
=
9074 READLINE
='$(READLINE_DIR)/libreadline.a'
9075 READLINE_DEPS
='$(READLINE)'
9076 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9077 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9084 # Generate jit-reader.h
9086 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9089 # The cast to long int works around a bug in the HP C Compiler
9090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9092 # This bug is HP SR number 8606223364.
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9094 $as_echo_n "checking size of unsigned long long... " >&6; }
9095 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9096 $as_echo_n "(cached) " >&6
9098 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9101 if test "$ac_cv_type_unsigned_long_long" = yes; then
9102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9104 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9105 See \`config.log' for more details" "$LINENO" 5; }
9107 ac_cv_sizeof_unsigned_long_long
=0
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9113 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9117 cat >>confdefs.h
<<_ACEOF
9118 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9122 # The cast to long int works around a bug in the HP C Compiler
9123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9125 # This bug is HP SR number 8606223364.
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9127 $as_echo_n "checking size of unsigned long... " >&6; }
9128 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9129 $as_echo_n "(cached) " >&6
9131 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9134 if test "$ac_cv_type_unsigned_long" = yes; then
9135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9137 as_fn_error
77 "cannot compute sizeof (unsigned long)
9138 See \`config.log' for more details" "$LINENO" 5; }
9140 ac_cv_sizeof_unsigned_long
=0
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9146 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9150 cat >>confdefs.h
<<_ACEOF
9151 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9155 # The cast to long int works around a bug in the HP C Compiler
9156 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9157 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9158 # This bug is HP SR number 8606223364.
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9160 $as_echo_n "checking size of unsigned __int128... " >&6; }
9161 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9162 $as_echo_n "(cached) " >&6
9164 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9167 if test "$ac_cv_type_unsigned___int128" = yes; then
9168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9170 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9171 See \`config.log' for more details" "$LINENO" 5; }
9173 ac_cv_sizeof_unsigned___int128
=0
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9179 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9183 cat >>confdefs.h
<<_ACEOF
9184 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9189 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9190 TARGET_PTR
="unsigned long"
9191 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9192 TARGET_PTR
="unsigned long long"
9193 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9194 TARGET_PTR
="unsigned __int128"
9196 TARGET_PTR
="unsigned long"
9200 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9204 $as_echo_n "checking for library containing dlopen... " >&6; }
9205 if ${ac_cv_search_dlopen+:} false
; then :
9206 $as_echo_n "(cached) " >&6
9208 ac_func_search_save_LIBS
=$LIBS
9209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9210 /* end confdefs.h. */
9212 /* Override any GCC internal prototype to avoid an error.
9213 Use char because int might match the return type of a GCC
9214 builtin and then its argument prototype would still apply. */
9227 for ac_lib
in '' dl
; do
9228 if test -z "$ac_lib"; then
9229 ac_res
="none required"
9232 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9234 if ac_fn_c_try_link
"$LINENO"; then :
9235 ac_cv_search_dlopen
=$ac_res
9237 rm -f core conftest.err conftest.
$ac_objext \
9239 if ${ac_cv_search_dlopen+:} false
; then :
9243 if ${ac_cv_search_dlopen+:} false
; then :
9246 ac_cv_search_dlopen
=no
9249 LIBS
=$ac_func_search_save_LIBS
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9252 $as_echo "$ac_cv_search_dlopen" >&6; }
9253 ac_res
=$ac_cv_search_dlopen
9254 if test "$ac_res" != no
; then :
9255 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9262 # Check whether --with-jit-reader-dir was given.
9263 if test "${with_jit_reader_dir+set}" = set; then :
9264 withval
=$with_jit_reader_dir;
9265 JIT_READER_DIR
=$withval
9267 JIT_READER_DIR
=${libdir}/gdb
9271 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9272 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9273 ac_define_dir
=`eval echo $JIT_READER_DIR`
9274 ac_define_dir
=`eval echo $ac_define_dir`
9276 cat >>confdefs.h
<<_ACEOF
9277 #define JIT_READER_DIR "$ac_define_dir"
9283 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9284 if test "x$prefix" = xNONE
; then
9285 test_prefix
=/usr
/local
9290 test_prefix
=$exec_prefix
9293 case ${ac_define_dir} in
9294 "${test_prefix}"|
"${test_prefix}/"*|\
9295 '${exec_prefix}'|
'${exec_prefix}/'*)
9300 cat >>confdefs.h
<<_ACEOF
9301 #define JIT_READER_DIR_RELOCATABLE $value
9308 # Check whether --with-expat was given.
9309 if test "${with_expat+set}" = set; then :
9310 withval
=$with_expat;
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9316 $as_echo_n "checking whether to use expat... " >&6; }
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9318 $as_echo "$with_expat" >&6; }
9320 if test "${with_expat}" = no
; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9322 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9335 acl_save_prefix
="$prefix"
9336 prefix
="$acl_final_prefix"
9337 acl_save_exec_prefix
="$exec_prefix"
9338 exec_prefix
="$acl_final_exec_prefix"
9340 eval additional_includedir
=\"$includedir\"
9341 eval additional_libdir
=\"$libdir\"
9343 exec_prefix
="$acl_save_exec_prefix"
9344 prefix
="$acl_save_prefix"
9347 # Check whether --with-libexpat-prefix was given.
9348 if test "${with_libexpat_prefix+set}" = set; then :
9349 withval
=$with_libexpat_prefix;
9350 if test "X$withval" = "Xno"; then
9353 if test "X$withval" = "X"; then
9355 acl_save_prefix
="$prefix"
9356 prefix
="$acl_final_prefix"
9357 acl_save_exec_prefix
="$exec_prefix"
9358 exec_prefix
="$acl_final_exec_prefix"
9360 eval additional_includedir
=\"$includedir\"
9361 eval additional_libdir
=\"$libdir\"
9363 exec_prefix
="$acl_save_exec_prefix"
9364 prefix
="$acl_save_prefix"
9367 additional_includedir
="$withval/include"
9368 additional_libdir
="$withval/lib"
9379 names_already_handled
=
9380 names_next_round
='expat '
9381 while test -n "$names_next_round"; do
9382 names_this_round
="$names_next_round"
9384 for name
in $names_this_round; do
9386 for n
in $names_already_handled; do
9387 if test "$n" = "$name"; then
9392 if test -z "$already_handled"; then
9393 names_already_handled
="$names_already_handled $name"
9394 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9395 eval value
=\"\
$HAVE_LIB$uppername\"
9396 if test -n "$value"; then
9397 if test "$value" = yes; then
9398 eval value
=\"\
$LIB$uppername\"
9399 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9400 eval value
=\"\
$LTLIB$uppername\"
9401 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9410 if test $use_additional = yes; then
9411 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9412 found_dir
="$additional_libdir"
9413 found_so
="$additional_libdir/lib$name.$shlibext"
9414 if test -f "$additional_libdir/lib$name.la"; then
9415 found_la
="$additional_libdir/lib$name.la"
9418 if test -f "$additional_libdir/lib$name.$libext"; then
9419 found_dir
="$additional_libdir"
9420 found_a
="$additional_libdir/lib$name.$libext"
9421 if test -f "$additional_libdir/lib$name.la"; then
9422 found_la
="$additional_libdir/lib$name.la"
9427 if test "X$found_dir" = "X"; then
9428 for x
in $LDFLAGS $LTLIBEXPAT; do
9430 acl_save_prefix
="$prefix"
9431 prefix
="$acl_final_prefix"
9432 acl_save_exec_prefix
="$exec_prefix"
9433 exec_prefix
="$acl_final_exec_prefix"
9435 exec_prefix
="$acl_save_exec_prefix"
9436 prefix
="$acl_save_prefix"
9440 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9441 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9443 found_so
="$dir/lib$name.$shlibext"
9444 if test -f "$dir/lib$name.la"; then
9445 found_la
="$dir/lib$name.la"
9448 if test -f "$dir/lib$name.$libext"; then
9450 found_a
="$dir/lib$name.$libext"
9451 if test -f "$dir/lib$name.la"; then
9452 found_la
="$dir/lib$name.la"
9458 if test "X$found_dir" != "X"; then
9463 if test "X$found_dir" != "X"; then
9464 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9465 if test "X$found_so" != "X"; then
9466 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9467 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9470 for x
in $ltrpathdirs; do
9471 if test "X$x" = "X$found_dir"; then
9476 if test -z "$haveit"; then
9477 ltrpathdirs
="$ltrpathdirs $found_dir"
9479 if test "$hardcode_direct" = yes; then
9480 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9482 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9483 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9485 for x
in $rpathdirs; do
9486 if test "X$x" = "X$found_dir"; then
9491 if test -z "$haveit"; then
9492 rpathdirs
="$rpathdirs $found_dir"
9496 for x
in $LDFLAGS $LIBEXPAT; do
9498 acl_save_prefix
="$prefix"
9499 prefix
="$acl_final_prefix"
9500 acl_save_exec_prefix
="$exec_prefix"
9501 exec_prefix
="$acl_final_exec_prefix"
9503 exec_prefix
="$acl_save_exec_prefix"
9504 prefix
="$acl_save_prefix"
9506 if test "X$x" = "X-L$found_dir"; then
9511 if test -z "$haveit"; then
9512 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9514 if test "$hardcode_minus_L" != no
; then
9515 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9517 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9523 if test "X$found_a" != "X"; then
9524 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9526 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9529 additional_includedir
=
9530 case "$found_dir" in
9532 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9533 additional_includedir
="$basedir/include"
9536 if test "X$additional_includedir" != "X"; then
9537 if test "X$additional_includedir" != "X/usr/include"; then
9539 if test "X$additional_includedir" = "X/usr/local/include"; then
9540 if test -n "$GCC"; then
9542 linux
*) haveit
=yes;;
9546 if test -z "$haveit"; then
9547 for x
in $CPPFLAGS $INCEXPAT; do
9549 acl_save_prefix
="$prefix"
9550 prefix
="$acl_final_prefix"
9551 acl_save_exec_prefix
="$exec_prefix"
9552 exec_prefix
="$acl_final_exec_prefix"
9554 exec_prefix
="$acl_save_exec_prefix"
9555 prefix
="$acl_save_prefix"
9557 if test "X$x" = "X-I$additional_includedir"; then
9562 if test -z "$haveit"; then
9563 if test -d "$additional_includedir"; then
9564 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9570 if test -n "$found_la"; then
9571 save_libdir
="$libdir"
9573 */* |
*\\*) .
"$found_la" ;;
9574 *) .
"./$found_la" ;;
9576 libdir
="$save_libdir"
9577 for dep
in $dependency_libs; do
9580 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9581 if test "X$additional_libdir" != "X/usr/lib"; then
9583 if test "X$additional_libdir" = "X/usr/local/lib"; then
9584 if test -n "$GCC"; then
9586 linux
*) haveit
=yes;;
9590 if test -z "$haveit"; then
9592 for x
in $LDFLAGS $LIBEXPAT; do
9594 acl_save_prefix
="$prefix"
9595 prefix
="$acl_final_prefix"
9596 acl_save_exec_prefix
="$exec_prefix"
9597 exec_prefix
="$acl_final_exec_prefix"
9599 exec_prefix
="$acl_save_exec_prefix"
9600 prefix
="$acl_save_prefix"
9602 if test "X$x" = "X-L$additional_libdir"; then
9607 if test -z "$haveit"; then
9608 if test -d "$additional_libdir"; then
9609 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9613 for x
in $LDFLAGS $LTLIBEXPAT; do
9615 acl_save_prefix
="$prefix"
9616 prefix
="$acl_final_prefix"
9617 acl_save_exec_prefix
="$exec_prefix"
9618 exec_prefix
="$acl_final_exec_prefix"
9620 exec_prefix
="$acl_save_exec_prefix"
9621 prefix
="$acl_save_prefix"
9623 if test "X$x" = "X-L$additional_libdir"; then
9628 if test -z "$haveit"; then
9629 if test -d "$additional_libdir"; then
9630 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9637 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9638 if test "$enable_rpath" != no
; then
9640 for x
in $rpathdirs; do
9641 if test "X$x" = "X$dir"; then
9646 if test -z "$haveit"; then
9647 rpathdirs
="$rpathdirs $dir"
9650 for x
in $ltrpathdirs; do
9651 if test "X$x" = "X$dir"; then
9656 if test -z "$haveit"; then
9657 ltrpathdirs
="$ltrpathdirs $dir"
9662 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9665 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9668 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9669 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9675 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9676 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9682 if test "X$rpathdirs" != "X"; then
9683 if test -n "$hardcode_libdir_separator"; then
9685 for found_dir
in $rpathdirs; do
9686 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9688 acl_save_libdir
="$libdir"
9690 eval flag
=\"$hardcode_libdir_flag_spec\"
9691 libdir
="$acl_save_libdir"
9692 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9694 for found_dir
in $rpathdirs; do
9695 acl_save_libdir
="$libdir"
9697 eval flag
=\"$hardcode_libdir_flag_spec\"
9698 libdir
="$acl_save_libdir"
9699 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9703 if test "X$ltrpathdirs" != "X"; then
9704 for found_dir
in $ltrpathdirs; do
9705 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9710 ac_save_CPPFLAGS
="$CPPFLAGS"
9712 for element
in $INCEXPAT; do
9714 for x
in $CPPFLAGS; do
9716 acl_save_prefix
="$prefix"
9717 prefix
="$acl_final_prefix"
9718 acl_save_exec_prefix
="$exec_prefix"
9719 exec_prefix
="$acl_final_exec_prefix"
9721 exec_prefix
="$acl_save_exec_prefix"
9722 prefix
="$acl_save_prefix"
9724 if test "X$x" = "X$element"; then
9729 if test -z "$haveit"; then
9730 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9736 $as_echo_n "checking for libexpat... " >&6; }
9737 if ${ac_cv_libexpat+:} false
; then :
9738 $as_echo_n "(cached) " >&6
9741 ac_save_LIBS
="$LIBS"
9742 LIBS
="$LIBS $LIBEXPAT"
9743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9749 XML_Parser p = XML_ParserCreate (0);
9754 if ac_fn_c_try_link
"$LINENO"; then :
9759 rm -f core conftest.err conftest.
$ac_objext \
9760 conftest
$ac_exeext conftest.
$ac_ext
9761 LIBS
="$ac_save_LIBS"
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9765 $as_echo "$ac_cv_libexpat" >&6; }
9766 if test "$ac_cv_libexpat" = yes; then
9769 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9772 $as_echo_n "checking how to link with libexpat... " >&6; }
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9774 $as_echo "$LIBEXPAT" >&6; }
9777 CPPFLAGS
="$ac_save_CPPFLAGS"
9787 if test "$HAVE_LIBEXPAT" != yes; then
9788 if test "$with_expat" = yes; then
9789 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9792 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9796 LIBS
="$LIBS $LIBEXPAT"
9797 for ac_func
in XML_StopParser
9799 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9800 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9801 cat >>confdefs.h
<<_ACEOF
9802 #define HAVE_XML_STOPPARSER 1
9813 # Check whether --with-mpfr was given.
9814 if test "${with_mpfr+set}" = set; then :
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9821 $as_echo_n "checking whether to use MPFR... " >&6; }
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9823 $as_echo "$with_mpfr" >&6; }
9825 if test "${with_mpfr}" = no
; then
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9827 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9840 acl_save_prefix
="$prefix"
9841 prefix
="$acl_final_prefix"
9842 acl_save_exec_prefix
="$exec_prefix"
9843 exec_prefix
="$acl_final_exec_prefix"
9845 eval additional_includedir
=\"$includedir\"
9846 eval additional_libdir
=\"$libdir\"
9848 exec_prefix
="$acl_save_exec_prefix"
9849 prefix
="$acl_save_prefix"
9852 # Check whether --with-libmpfr-prefix was given.
9853 if test "${with_libmpfr_prefix+set}" = set; then :
9854 withval
=$with_libmpfr_prefix;
9855 if test "X$withval" = "Xno"; then
9858 if test "X$withval" = "X"; then
9860 acl_save_prefix
="$prefix"
9861 prefix
="$acl_final_prefix"
9862 acl_save_exec_prefix
="$exec_prefix"
9863 exec_prefix
="$acl_final_exec_prefix"
9865 eval additional_includedir
=\"$includedir\"
9866 eval additional_libdir
=\"$libdir\"
9868 exec_prefix
="$acl_save_exec_prefix"
9869 prefix
="$acl_save_prefix"
9872 additional_includedir
="$withval/include"
9873 additional_libdir
="$withval/lib"
9884 names_already_handled
=
9885 names_next_round
='mpfr gmp'
9886 while test -n "$names_next_round"; do
9887 names_this_round
="$names_next_round"
9889 for name
in $names_this_round; do
9891 for n
in $names_already_handled; do
9892 if test "$n" = "$name"; then
9897 if test -z "$already_handled"; then
9898 names_already_handled
="$names_already_handled $name"
9899 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9900 eval value
=\"\
$HAVE_LIB$uppername\"
9901 if test -n "$value"; then
9902 if test "$value" = yes; then
9903 eval value
=\"\
$LIB$uppername\"
9904 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9905 eval value
=\"\
$LTLIB$uppername\"
9906 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9915 if test $use_additional = yes; then
9916 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9917 found_dir
="$additional_libdir"
9918 found_so
="$additional_libdir/lib$name.$shlibext"
9919 if test -f "$additional_libdir/lib$name.la"; then
9920 found_la
="$additional_libdir/lib$name.la"
9923 if test -f "$additional_libdir/lib$name.$libext"; then
9924 found_dir
="$additional_libdir"
9925 found_a
="$additional_libdir/lib$name.$libext"
9926 if test -f "$additional_libdir/lib$name.la"; then
9927 found_la
="$additional_libdir/lib$name.la"
9932 if test "X$found_dir" = "X"; then
9933 for x
in $LDFLAGS $LTLIBMPFR; do
9935 acl_save_prefix
="$prefix"
9936 prefix
="$acl_final_prefix"
9937 acl_save_exec_prefix
="$exec_prefix"
9938 exec_prefix
="$acl_final_exec_prefix"
9940 exec_prefix
="$acl_save_exec_prefix"
9941 prefix
="$acl_save_prefix"
9945 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9946 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9948 found_so
="$dir/lib$name.$shlibext"
9949 if test -f "$dir/lib$name.la"; then
9950 found_la
="$dir/lib$name.la"
9953 if test -f "$dir/lib$name.$libext"; then
9955 found_a
="$dir/lib$name.$libext"
9956 if test -f "$dir/lib$name.la"; then
9957 found_la
="$dir/lib$name.la"
9963 if test "X$found_dir" != "X"; then
9968 if test "X$found_dir" != "X"; then
9969 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9970 if test "X$found_so" != "X"; then
9971 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9972 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9975 for x
in $ltrpathdirs; do
9976 if test "X$x" = "X$found_dir"; then
9981 if test -z "$haveit"; then
9982 ltrpathdirs
="$ltrpathdirs $found_dir"
9984 if test "$hardcode_direct" = yes; then
9985 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9987 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9988 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9990 for x
in $rpathdirs; do
9991 if test "X$x" = "X$found_dir"; then
9996 if test -z "$haveit"; then
9997 rpathdirs
="$rpathdirs $found_dir"
10001 for x
in $LDFLAGS $LIBMPFR; do
10003 acl_save_prefix
="$prefix"
10004 prefix
="$acl_final_prefix"
10005 acl_save_exec_prefix
="$exec_prefix"
10006 exec_prefix
="$acl_final_exec_prefix"
10008 exec_prefix
="$acl_save_exec_prefix"
10009 prefix
="$acl_save_prefix"
10011 if test "X$x" = "X-L$found_dir"; then
10016 if test -z "$haveit"; then
10017 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10019 if test "$hardcode_minus_L" != no
; then
10020 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10022 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10028 if test "X$found_a" != "X"; then
10029 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10031 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10034 additional_includedir
=
10035 case "$found_dir" in
10037 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10038 additional_includedir
="$basedir/include"
10041 if test "X$additional_includedir" != "X"; then
10042 if test "X$additional_includedir" != "X/usr/include"; then
10044 if test "X$additional_includedir" = "X/usr/local/include"; then
10045 if test -n "$GCC"; then
10047 linux
*) haveit
=yes;;
10051 if test -z "$haveit"; then
10052 for x
in $CPPFLAGS $INCMPFR; do
10054 acl_save_prefix
="$prefix"
10055 prefix
="$acl_final_prefix"
10056 acl_save_exec_prefix
="$exec_prefix"
10057 exec_prefix
="$acl_final_exec_prefix"
10059 exec_prefix
="$acl_save_exec_prefix"
10060 prefix
="$acl_save_prefix"
10062 if test "X$x" = "X-I$additional_includedir"; then
10067 if test -z "$haveit"; then
10068 if test -d "$additional_includedir"; then
10069 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10075 if test -n "$found_la"; then
10076 save_libdir
="$libdir"
10077 case "$found_la" in
10078 */* |
*\\*) .
"$found_la" ;;
10079 *) .
"./$found_la" ;;
10081 libdir
="$save_libdir"
10082 for dep
in $dependency_libs; do
10085 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10086 if test "X$additional_libdir" != "X/usr/lib"; then
10088 if test "X$additional_libdir" = "X/usr/local/lib"; then
10089 if test -n "$GCC"; then
10091 linux
*) haveit
=yes;;
10095 if test -z "$haveit"; then
10097 for x
in $LDFLAGS $LIBMPFR; do
10099 acl_save_prefix
="$prefix"
10100 prefix
="$acl_final_prefix"
10101 acl_save_exec_prefix
="$exec_prefix"
10102 exec_prefix
="$acl_final_exec_prefix"
10104 exec_prefix
="$acl_save_exec_prefix"
10105 prefix
="$acl_save_prefix"
10107 if test "X$x" = "X-L$additional_libdir"; then
10112 if test -z "$haveit"; then
10113 if test -d "$additional_libdir"; then
10114 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10118 for x
in $LDFLAGS $LTLIBMPFR; do
10120 acl_save_prefix
="$prefix"
10121 prefix
="$acl_final_prefix"
10122 acl_save_exec_prefix
="$exec_prefix"
10123 exec_prefix
="$acl_final_exec_prefix"
10125 exec_prefix
="$acl_save_exec_prefix"
10126 prefix
="$acl_save_prefix"
10128 if test "X$x" = "X-L$additional_libdir"; then
10133 if test -z "$haveit"; then
10134 if test -d "$additional_libdir"; then
10135 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10142 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10143 if test "$enable_rpath" != no
; then
10145 for x
in $rpathdirs; do
10146 if test "X$x" = "X$dir"; then
10151 if test -z "$haveit"; then
10152 rpathdirs
="$rpathdirs $dir"
10155 for x
in $ltrpathdirs; do
10156 if test "X$x" = "X$dir"; then
10161 if test -z "$haveit"; then
10162 ltrpathdirs
="$ltrpathdirs $dir"
10167 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10170 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10173 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10174 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10180 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10181 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10187 if test "X$rpathdirs" != "X"; then
10188 if test -n "$hardcode_libdir_separator"; then
10190 for found_dir
in $rpathdirs; do
10191 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10193 acl_save_libdir
="$libdir"
10195 eval flag
=\"$hardcode_libdir_flag_spec\"
10196 libdir
="$acl_save_libdir"
10197 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10199 for found_dir
in $rpathdirs; do
10200 acl_save_libdir
="$libdir"
10201 libdir
="$found_dir"
10202 eval flag
=\"$hardcode_libdir_flag_spec\"
10203 libdir
="$acl_save_libdir"
10204 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10208 if test "X$ltrpathdirs" != "X"; then
10209 for found_dir
in $ltrpathdirs; do
10210 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10215 ac_save_CPPFLAGS
="$CPPFLAGS"
10217 for element
in $INCMPFR; do
10219 for x
in $CPPFLAGS; do
10221 acl_save_prefix
="$prefix"
10222 prefix
="$acl_final_prefix"
10223 acl_save_exec_prefix
="$exec_prefix"
10224 exec_prefix
="$acl_final_exec_prefix"
10226 exec_prefix
="$acl_save_exec_prefix"
10227 prefix
="$acl_save_prefix"
10229 if test "X$x" = "X$element"; then
10234 if test -z "$haveit"; then
10235 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10241 $as_echo_n "checking for libmpfr... " >&6; }
10242 if ${ac_cv_libmpfr+:} false
; then :
10243 $as_echo_n "(cached) " >&6
10246 ac_save_LIBS
="$LIBS"
10247 LIBS
="$LIBS $LIBMPFR"
10248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10254 mpfr_exp_t exp; mpfr_t x;
10255 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10260 if ac_fn_c_try_link
"$LINENO"; then :
10265 rm -f core conftest.err conftest.
$ac_objext \
10266 conftest
$ac_exeext conftest.
$ac_ext
10267 LIBS
="$ac_save_LIBS"
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10271 $as_echo "$ac_cv_libmpfr" >&6; }
10272 if test "$ac_cv_libmpfr" = yes; then
10275 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10278 $as_echo_n "checking how to link with libmpfr... " >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10280 $as_echo "$LIBMPFR" >&6; }
10283 CPPFLAGS
="$ac_save_CPPFLAGS"
10293 if test "$HAVE_LIBMPFR" != yes; then
10294 if test "$with_mpfr" = yes; then
10295 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10298 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10303 # --------------------- #
10304 # Check for libpython. #
10305 # --------------------- #
10312 # Check whether --with-python was given.
10313 if test "${with_python+set}" = set; then :
10314 withval
=$with_python;
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10320 $as_echo_n "checking whether to use python... " >&6; }
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10322 $as_echo "$with_python" >&6; }
10324 if test "${with_python}" = no
; then
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10326 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10329 case "${with_python}" in
10331 if test -d ${with_python}; then
10332 # Assume the python binary is ${with_python}/bin/python.
10333 python_prog
="${with_python}/bin/python"
10335 # If python does not exit ${with_python}/bin, then try in
10336 # ${with_python}. On Windows/MinGW, this is where the Python
10338 if test ! -x "${python_prog}"; then
10339 python_prog
="${with_python}/python"
10342 if test ! -x "${python_prog}"; then
10343 # Fall back to gdb 7.0/7.1 behaviour.
10344 python_prog
=missing
10345 python_prefix
=${with_python}
10347 elif test -x "${with_python}"; then
10348 # While we can't run python compiled for $host (unless host == build),
10349 # the user could write a script that provides the needed information,
10350 # so we support that.
10351 python_prog
=${with_python}
10354 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10358 # Disallow --with-python=foo/bar.
10359 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10362 # The user has either specified auto, yes, or the name of the python
10363 # program assumed to be in $PATH.
10365 case "${with_python}" in
10367 if test ${build} = ${host}; then
10368 # Extract the first word of "python", so it can be a program name with args.
10369 set dummy python
; ac_word
=$2
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371 $as_echo_n "checking for $ac_word... " >&6; }
10372 if ${ac_cv_path_python_prog_path+:} false
; then :
10373 $as_echo_n "(cached) " >&6
10375 case $python_prog_path in
10377 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10381 for as_dir
in $PATH
10384 test -z "$as_dir" && as_dir
=.
10385 for ac_exec_ext
in '' $ac_executable_extensions; do
10386 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10387 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10395 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10399 python_prog_path
=$ac_cv_path_python_prog_path
10400 if test -n "$python_prog_path"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10402 $as_echo "$python_prog_path" >&6; }
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10409 if test "${python_prog_path}" = missing
; then
10410 python_prog
=missing
10412 python_prog
=${python_prog_path}
10415 # Not much we can do except assume the cross-compiler will find the
10417 python_prog
=missing
10421 # While we can't run python compiled for $host (unless host == build),
10422 # the user could write a script that provides the needed information,
10423 # so we support that.
10424 python_prog
="${with_python}"
10425 # Extract the first word of "${python_prog}", so it can be a program name with args.
10426 set dummy
${python_prog}; ac_word
=$2
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428 $as_echo_n "checking for $ac_word... " >&6; }
10429 if ${ac_cv_path_python_prog_path+:} false
; then :
10430 $as_echo_n "(cached) " >&6
10432 case $python_prog_path in
10434 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10438 for as_dir
in $PATH
10441 test -z "$as_dir" && as_dir
=.
10442 for ac_exec_ext
in '' $ac_executable_extensions; do
10443 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10444 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10452 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10456 python_prog_path
=$ac_cv_path_python_prog_path
10457 if test -n "$python_prog_path"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10459 $as_echo "$python_prog_path" >&6; }
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10462 $as_echo "no" >&6; }
10466 if test "${python_prog_path}" = missing
; then
10467 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10473 if test "${python_prog}" != missing
; then
10474 # We have a python program to use, but it may be too old.
10475 # Don't flag an error for --with-python=auto (the default).
10476 have_python_config
=yes
10477 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10478 if test $?
!= 0; then
10479 have_python_config
=failed
10480 if test "${with_python}" != auto
; then
10481 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10484 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10485 if test $?
!= 0; then
10486 have_python_config
=failed
10487 if test "${with_python}" != auto
; then
10488 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10491 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10492 if test $?
!= 0; then
10493 have_python_config
=failed
10494 if test "${with_python}" != auto
; then
10495 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10499 # We do not have a python executable we can use to determine where
10500 # to find the Python headers and libs. We cannot guess the include
10501 # path from the python_prefix either, because that include path
10502 # depends on the Python version. So, there is nothing much we can
10503 # do except assume that the compiler will be able to find those files.
10506 have_python_config
=no
10509 # If we have python-config, only try the configuration it provides.
10510 # Otherwise fallback on the old way of trying different versions of
10514 if test "${have_python_config}" = yes; then
10517 new_CPPFLAGS
=${python_includes}
10518 new_LIBS
=${python_libs}
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10520 $as_echo_n "checking for python... " >&6; }
10521 save_CPPFLAGS
=$CPPFLAGS
10523 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10524 LIBS
="$new_LIBS $LIBS"
10525 found_usable_python
=no
10526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10527 /* end confdefs.h. */
10528 #include "Python.h"
10537 if ac_fn_c_try_link
"$LINENO"; then :
10539 found_usable_python
=yes
10540 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10541 PYTHON_LIBS
=$new_LIBS
10543 rm -f core conftest.err conftest.
$ac_objext \
10544 conftest
$ac_exeext conftest.
$ac_ext
10545 CPPFLAGS
=$save_CPPFLAGS
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10548 $as_echo "${found_usable_python}" >&6; }
10550 elif test "${have_python_config}" != failed
; then
10551 if test "${have_libpython}" = no
; then
10554 new_CPPFLAGS
=${python_includes}
10555 new_LIBS
="-lpython2.7 ${python_libs}"
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10557 $as_echo_n "checking for python... " >&6; }
10558 save_CPPFLAGS
=$CPPFLAGS
10560 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10561 LIBS
="$new_LIBS $LIBS"
10562 found_usable_python
=no
10563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 #include "Python.h"
10574 if ac_fn_c_try_link
"$LINENO"; then :
10576 found_usable_python
=yes
10577 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10578 PYTHON_LIBS
=$new_LIBS
10580 rm -f core conftest.err conftest.
$ac_objext \
10581 conftest
$ac_exeext conftest.
$ac_ext
10582 CPPFLAGS
=$save_CPPFLAGS
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10585 $as_echo "${found_usable_python}" >&6; }
10588 if test "${have_libpython}" = no
; then
10591 new_CPPFLAGS
=${python_includes}
10592 new_LIBS
="-lpython2.6 ${python_libs}"
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
10594 $as_echo_n "checking for python... " >&6; }
10595 save_CPPFLAGS
=$CPPFLAGS
10597 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10598 LIBS
="$new_LIBS $LIBS"
10599 found_usable_python
=no
10600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602 #include "Python.h"
10611 if ac_fn_c_try_link
"$LINENO"; then :
10613 found_usable_python
=yes
10614 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10615 PYTHON_LIBS
=$new_LIBS
10617 rm -f core conftest.err conftest.
$ac_objext \
10618 conftest
$ac_exeext conftest.
$ac_ext
10619 CPPFLAGS
=$save_CPPFLAGS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10622 $as_echo "${found_usable_python}" >&6; }
10627 if test "${have_libpython}" = no
; then
10628 case "${with_python}" in
10630 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10634 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10637 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10641 if test -n "${python_prefix}"; then
10643 cat >>confdefs.h
<<_ACEOF
10644 #define WITH_PYTHON_PATH "${python_prefix}"
10648 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10649 if test "x$prefix" = xNONE
; then
10650 test_prefix
=/usr
/local
10652 test_prefix
=$prefix
10655 test_prefix
=$exec_prefix
10658 case ${python_prefix} in
10659 "${test_prefix}"|
"${test_prefix}/"*|\
10660 '${exec_prefix}'|
'${exec_prefix}/'*)
10665 cat >>confdefs.h
<<_ACEOF
10666 #define PYTHON_PATH_RELOCATABLE $value
10674 if test "${have_libpython}" != no
; then
10676 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10678 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10679 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10680 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10681 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10682 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10684 # Flags needed to compile Python code (taken from python-config --cflags).
10685 # We cannot call python-config directly because it will output whatever was
10686 # used when compiling the Python interpreter itself, including flags which
10687 # would make the python-related objects be compiled differently from the
10688 # rest of GDB (e.g., -O2 and -fPIC).
10689 if test "${GCC}" = yes; then
10690 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10691 # Python headers recommend -DNDEBUG, but it's unclear if that just
10692 # refers to building Python itself. In release mode, though, it
10693 # doesn't hurt for the Python code in gdb to follow.
10694 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10697 if test "x${tentative_python_cflags}" != x
; then
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10699 $as_echo_n "checking compiler flags for python code... " >&6; }
10700 for flag
in ${tentative_python_cflags}; do
10701 # Check that the compiler accepts it
10702 saved_CFLAGS
="$CFLAGS"
10703 CFLAGS
="$CFLAGS $flag"
10704 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10715 if ac_fn_c_try_compile
"$LINENO"; then :
10716 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10719 CFLAGS
="$saved_CFLAGS"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10722 $as_echo "${PYTHON_CFLAGS}" >&6; }
10725 # On x64 Windows, Python's include headers, and pyconfig.h in
10726 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10727 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10728 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10729 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10730 # The issue was reported to the Python community, but still isn't
10731 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10733 case "$gdb_host" in
10735 if test "${GCC}" = yes; then
10736 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10741 # Even if Python support is not compiled in, we need to have this file
10742 # included so that the "python" command, et.al., still exists.
10743 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10744 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10747 # Work around Python http://bugs.python.org/issue10112. See also
10748 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10749 # no effect. Note that the only test after this that uses Python is
10750 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10751 # run without -export-dynamic too.
10752 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10757 if test "${have_libpython}" != no
; then
10759 HAVE_PYTHON_FALSE
='#'
10761 HAVE_PYTHON_TRUE
='#'
10766 # -------------------- #
10767 # Check for libguile. #
10768 # -------------------- #
10775 # Check whether --with-guile was given.
10776 if test "${with_guile+set}" = set; then :
10777 withval
=$with_guile;
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10783 $as_echo_n "checking whether to use guile... " >&6; }
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10785 $as_echo "$with_guile" >&6; }
10787 # Extract the first word of "pkg-config", so it can be a program name with args.
10788 set dummy pkg-config
; ac_word
=$2
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790 $as_echo_n "checking for $ac_word... " >&6; }
10791 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10792 $as_echo_n "(cached) " >&6
10794 case $pkg_config_prog_path in
10796 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10800 for as_dir
in $PATH
10803 test -z "$as_dir" && as_dir
=.
10804 for ac_exec_ext
in '' $ac_executable_extensions; do
10805 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10806 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10818 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10819 if test -n "$pkg_config_prog_path"; then
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10821 $as_echo "$pkg_config_prog_path" >&6; }
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824 $as_echo "no" >&6; }
10829 try_guile_versions
="guile-2.0"
10831 case "${with_guile}" in
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10834 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10837 if test "${pkg_config_prog_path}" = "missing"; then
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10839 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10842 pkg_config
=${pkg_config_prog_path}
10843 guile_version_list
=${try_guile_versions}
10846 found_usable_guile
=checking
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10848 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10849 for guile_version
in ${guile_version_list}; do
10850 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10851 if test $?
!= 0; then
10854 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10855 if test $?
!= 0; then
10856 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10858 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10859 if test $?
!= 0; then
10860 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10862 found_usable_guile
=${guile_version}
10865 if test "${found_usable_guile}" = "checking"; then
10866 if test "${flag_errors}" = "yes"; then
10867 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10869 found_usable_guile
=no
10872 if test "${found_usable_guile}" != no
; then
10873 save_CPPFLAGS
=$CPPFLAGS
10875 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10876 LIBS
="$LIBS $new_LIBS"
10877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10878 /* end confdefs.h. */
10879 #include "libguile.h"
10888 if ac_fn_c_try_link
"$LINENO"; then :
10890 GUILE_CPPFLAGS
=$new_CPPFLAGS
10891 GUILE_LIBS
=$new_LIBS
10893 found_usable_guile
=no
10895 rm -f core conftest.err conftest.
$ac_objext \
10896 conftest
$ac_exeext conftest.
$ac_ext
10897 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10898 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
10900 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10905 CPPFLAGS
=$save_CPPFLAGS
10907 if test "${found_usable_guile}" = no
; then
10908 if test "${flag_errors}" = yes; then
10909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10911 as_fn_error $?
"linking guile version ${guile_version} test program failed
10912 See \`config.log' for more details" "$LINENO" 5; }
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10917 $as_echo "${found_usable_guile}" >&6; }
10922 if test "${pkg_config_prog_path}" = "missing"; then
10923 as_fn_error $?
"pkg-config not found" "$LINENO" 5
10926 pkg_config
=${pkg_config_prog_path}
10927 guile_version_list
=${try_guile_versions}
10930 found_usable_guile
=checking
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10932 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10933 for guile_version
in ${guile_version_list}; do
10934 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10935 if test $?
!= 0; then
10938 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10939 if test $?
!= 0; then
10940 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10942 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10943 if test $?
!= 0; then
10944 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10946 found_usable_guile
=${guile_version}
10949 if test "${found_usable_guile}" = "checking"; then
10950 if test "${flag_errors}" = "yes"; then
10951 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10953 found_usable_guile
=no
10956 if test "${found_usable_guile}" != no
; then
10957 save_CPPFLAGS
=$CPPFLAGS
10959 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10960 LIBS
="$LIBS $new_LIBS"
10961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963 #include "libguile.h"
10972 if ac_fn_c_try_link
"$LINENO"; then :
10974 GUILE_CPPFLAGS
=$new_CPPFLAGS
10975 GUILE_LIBS
=$new_LIBS
10977 found_usable_guile
=no
10979 rm -f core conftest.err conftest.
$ac_objext \
10980 conftest
$ac_exeext conftest.
$ac_ext
10981 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10982 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
10984 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10989 CPPFLAGS
=$save_CPPFLAGS
10991 if test "${found_usable_guile}" = no
; then
10992 if test "${flag_errors}" = yes; then
10993 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10994 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10995 as_fn_error $?
"linking guile version ${guile_version} test program failed
10996 See \`config.log' for more details" "$LINENO" 5; }
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11001 $as_echo "${found_usable_guile}" >&6; }
11005 if test -x "${with_guile}"; then
11007 pkg_config
=${with_guile}
11008 guile_version_list
=${try_guile_versions}
11011 found_usable_guile
=checking
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11013 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11014 for guile_version
in ${guile_version_list}; do
11015 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11016 if test $?
!= 0; then
11019 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11020 if test $?
!= 0; then
11021 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11023 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11024 if test $?
!= 0; then
11025 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11027 found_usable_guile
=${guile_version}
11030 if test "${found_usable_guile}" = "checking"; then
11031 if test "${flag_errors}" = "yes"; then
11032 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11034 found_usable_guile
=no
11037 if test "${found_usable_guile}" != no
; then
11038 save_CPPFLAGS
=$CPPFLAGS
11040 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11041 LIBS
="$LIBS $new_LIBS"
11042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044 #include "libguile.h"
11053 if ac_fn_c_try_link
"$LINENO"; then :
11055 GUILE_CPPFLAGS
=$new_CPPFLAGS
11056 GUILE_LIBS
=$new_LIBS
11058 found_usable_guile
=no
11060 rm -f core conftest.err conftest.
$ac_objext \
11061 conftest
$ac_exeext conftest.
$ac_ext
11062 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11063 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11065 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11070 CPPFLAGS
=$save_CPPFLAGS
11072 if test "${found_usable_guile}" = no
; then
11073 if test "${flag_errors}" = yes; then
11074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11076 as_fn_error $?
"linking guile version ${guile_version} test program failed
11077 See \`config.log' for more details" "$LINENO" 5; }
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11082 $as_echo "${found_usable_guile}" >&6; }
11085 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11089 # Disallow --with=guile="" and --with-guile=foo/bar.
11090 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11093 # A space separate list of guile versions to try, in order.
11094 if test "${pkg_config_prog_path}" = "missing"; then
11095 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11098 pkg_config
=${pkg_config_prog_path}
11099 guile_version_list
=${with_guile}
11102 found_usable_guile
=checking
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11104 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11105 for guile_version
in ${guile_version_list}; do
11106 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11107 if test $?
!= 0; then
11110 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11111 if test $?
!= 0; then
11112 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11114 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11115 if test $?
!= 0; then
11116 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11118 found_usable_guile
=${guile_version}
11121 if test "${found_usable_guile}" = "checking"; then
11122 if test "${flag_errors}" = "yes"; then
11123 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11125 found_usable_guile
=no
11128 if test "${found_usable_guile}" != no
; then
11129 save_CPPFLAGS
=$CPPFLAGS
11131 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11132 LIBS
="$LIBS $new_LIBS"
11133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11135 #include "libguile.h"
11144 if ac_fn_c_try_link
"$LINENO"; then :
11146 GUILE_CPPFLAGS
=$new_CPPFLAGS
11147 GUILE_LIBS
=$new_LIBS
11149 found_usable_guile
=no
11151 rm -f core conftest.err conftest.
$ac_objext \
11152 conftest
$ac_exeext conftest.
$ac_ext
11153 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11154 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11156 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11161 CPPFLAGS
=$save_CPPFLAGS
11163 if test "${found_usable_guile}" = no
; then
11164 if test "${flag_errors}" = yes; then
11165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11167 as_fn_error $?
"linking guile version ${guile_version} test program failed
11168 See \`config.log' for more details" "$LINENO" 5; }
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11173 $as_echo "${found_usable_guile}" >&6; }
11178 if test "${have_libguile}" != no
; then
11179 case "${with_guile}" in
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11183 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11184 if ${ac_cv_guild_program_name+:} false
; then :
11185 $as_echo_n "(cached) " >&6
11187 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11189 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11190 # the 'guild' and 'bindir' variables. In that case, try to guess
11191 # what the program name is, at the risk of getting it wrong if
11192 # Guile was configured with '--program-suffix' or similar.
11193 if test "x$ac_cv_guild_program_name" = "x"; then
11194 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11195 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11200 $as_echo "$ac_cv_guild_program_name" >&6; }
11202 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11203 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11206 GUILD
="$ac_cv_guild_program_name"
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11213 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11214 if ${ac_cv_guild_program_name+:} false
; then :
11215 $as_echo_n "(cached) " >&6
11217 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11219 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11220 # the 'guild' and 'bindir' variables. In that case, try to guess
11221 # what the program name is, at the risk of getting it wrong if
11222 # Guile was configured with '--program-suffix' or similar.
11223 if test "x$ac_cv_guild_program_name" = "x"; then
11224 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11225 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11230 $as_echo "$ac_cv_guild_program_name" >&6; }
11232 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11233 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11236 GUILD
="$ac_cv_guild_program_name"
11243 if test "$cross_compiling" = no
; then
11246 GUILD_TARGET_FLAG
="--target=$host"
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11253 $as_echo_n "checking whether guild supports this host... " >&6; }
11254 if ${ac_cv_guild_ok+:} false
; then :
11255 $as_echo_n "(cached) " >&6
11257 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11258 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11265 $as_echo "$ac_cv_guild_ok" >&6; }
11267 if test "$ac_cv_guild_ok" = no
; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11270 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11274 if test "${have_libguile}" != no
; then
11276 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11278 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11279 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11280 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11281 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11282 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11285 save_CPPFLAGS
="$CPPFLAGS"
11287 CPPFLAGS
="$GUILE_CPPFLAGS"
11288 for ac_func
in scm_new_smob
11290 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11291 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11292 cat >>confdefs.h
<<_ACEOF
11293 #define HAVE_SCM_NEW_SMOB 1
11300 CPPFLAGS
="$save_CPPFLAGS"
11302 # Even if Guile support is not compiled in, we need to have these files
11304 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11305 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11309 if test "${have_libguile}" != no
; then
11311 HAVE_GUILE_FALSE
='#'
11313 HAVE_GUILE_TRUE
='#'
11318 # ---------------------------- #
11319 # Check for source highlight. #
11320 # ---------------------------- #
11325 # Check whether --enable-source-highlight was given.
11326 if test "${enable_source_highlight+set}" = set; then :
11327 enableval
=$enable_source_highlight; case "${enableval}" in
11328 yes) enable_source_highlight
=yes ;;
11329 no
) enable_source_highlight
=no
;;
11330 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11333 enable_source_highlight
=auto
11337 if test "${enable_source_highlight}" != "no"; then
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11339 $as_echo_n "checking for the source-highlight library... " >&6; }
11340 if test "${pkg_config_prog_path}" = "missing"; then
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11342 $as_echo "no - pkg-config not found" >&6; }
11343 if test "${enable_source_highlight}" = "yes"; then
11344 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11349 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11353 if ${pkg_config_prog_path} --exists source-highlight
; then
11354 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11355 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11357 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11360 $as_echo "yes" >&6; }
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11364 if test "${enable_source_highlight}" = "yes"; then
11365 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11374 # Check whether --with-intel_pt was given.
11375 if test "${with_intel_pt+set}" = set; then :
11376 withval
=$with_intel_pt;
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11382 $as_echo_n "checking whether to use intel pt... " >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11384 $as_echo "$with_intel_pt" >&6; }
11386 if test "${with_intel_pt}" = no
; then
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11388 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11392 /* end confdefs.h. */
11394 #include <linux/perf_event.h>
11395 #ifndef PERF_ATTR_SIZE_VER5
11400 if ac_fn_c_try_cpp
"$LINENO"; then :
11405 rm -f conftest.err conftest.i conftest.
$ac_ext
11406 if test "$perf_event" != yes; then
11407 if test "$with_intel_pt" = yes; then
11408 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11411 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11425 acl_save_prefix
="$prefix"
11426 prefix
="$acl_final_prefix"
11427 acl_save_exec_prefix
="$exec_prefix"
11428 exec_prefix
="$acl_final_exec_prefix"
11430 eval additional_includedir
=\"$includedir\"
11431 eval additional_libdir
=\"$libdir\"
11433 exec_prefix
="$acl_save_exec_prefix"
11434 prefix
="$acl_save_prefix"
11437 # Check whether --with-libipt-prefix was given.
11438 if test "${with_libipt_prefix+set}" = set; then :
11439 withval
=$with_libipt_prefix;
11440 if test "X$withval" = "Xno"; then
11443 if test "X$withval" = "X"; then
11445 acl_save_prefix
="$prefix"
11446 prefix
="$acl_final_prefix"
11447 acl_save_exec_prefix
="$exec_prefix"
11448 exec_prefix
="$acl_final_exec_prefix"
11450 eval additional_includedir
=\"$includedir\"
11451 eval additional_libdir
=\"$libdir\"
11453 exec_prefix
="$acl_save_exec_prefix"
11454 prefix
="$acl_save_prefix"
11457 additional_includedir
="$withval/include"
11458 additional_libdir
="$withval/lib"
11469 names_already_handled
=
11470 names_next_round
='ipt '
11471 while test -n "$names_next_round"; do
11472 names_this_round
="$names_next_round"
11474 for name
in $names_this_round; do
11476 for n
in $names_already_handled; do
11477 if test "$n" = "$name"; then
11478 already_handled
=yes
11482 if test -z "$already_handled"; then
11483 names_already_handled
="$names_already_handled $name"
11484 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11485 eval value
=\"\
$HAVE_LIB$uppername\"
11486 if test -n "$value"; then
11487 if test "$value" = yes; then
11488 eval value
=\"\
$LIB$uppername\"
11489 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11490 eval value
=\"\
$LTLIB$uppername\"
11491 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11500 if test $use_additional = yes; then
11501 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11502 found_dir
="$additional_libdir"
11503 found_so
="$additional_libdir/lib$name.$shlibext"
11504 if test -f "$additional_libdir/lib$name.la"; then
11505 found_la
="$additional_libdir/lib$name.la"
11508 if test -f "$additional_libdir/lib$name.$libext"; then
11509 found_dir
="$additional_libdir"
11510 found_a
="$additional_libdir/lib$name.$libext"
11511 if test -f "$additional_libdir/lib$name.la"; then
11512 found_la
="$additional_libdir/lib$name.la"
11517 if test "X$found_dir" = "X"; then
11518 for x
in $LDFLAGS $LTLIBIPT; do
11520 acl_save_prefix
="$prefix"
11521 prefix
="$acl_final_prefix"
11522 acl_save_exec_prefix
="$exec_prefix"
11523 exec_prefix
="$acl_final_exec_prefix"
11525 exec_prefix
="$acl_save_exec_prefix"
11526 prefix
="$acl_save_prefix"
11530 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11531 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11533 found_so
="$dir/lib$name.$shlibext"
11534 if test -f "$dir/lib$name.la"; then
11535 found_la
="$dir/lib$name.la"
11538 if test -f "$dir/lib$name.$libext"; then
11540 found_a
="$dir/lib$name.$libext"
11541 if test -f "$dir/lib$name.la"; then
11542 found_la
="$dir/lib$name.la"
11548 if test "X$found_dir" != "X"; then
11553 if test "X$found_dir" != "X"; then
11554 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11555 if test "X$found_so" != "X"; then
11556 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11557 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11560 for x
in $ltrpathdirs; do
11561 if test "X$x" = "X$found_dir"; then
11566 if test -z "$haveit"; then
11567 ltrpathdirs
="$ltrpathdirs $found_dir"
11569 if test "$hardcode_direct" = yes; then
11570 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11572 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11573 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11575 for x
in $rpathdirs; do
11576 if test "X$x" = "X$found_dir"; then
11581 if test -z "$haveit"; then
11582 rpathdirs
="$rpathdirs $found_dir"
11586 for x
in $LDFLAGS $LIBIPT; do
11588 acl_save_prefix
="$prefix"
11589 prefix
="$acl_final_prefix"
11590 acl_save_exec_prefix
="$exec_prefix"
11591 exec_prefix
="$acl_final_exec_prefix"
11593 exec_prefix
="$acl_save_exec_prefix"
11594 prefix
="$acl_save_prefix"
11596 if test "X$x" = "X-L$found_dir"; then
11601 if test -z "$haveit"; then
11602 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11604 if test "$hardcode_minus_L" != no
; then
11605 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11607 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11613 if test "X$found_a" != "X"; then
11614 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11616 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11619 additional_includedir
=
11620 case "$found_dir" in
11622 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11623 additional_includedir
="$basedir/include"
11626 if test "X$additional_includedir" != "X"; then
11627 if test "X$additional_includedir" != "X/usr/include"; then
11629 if test "X$additional_includedir" = "X/usr/local/include"; then
11630 if test -n "$GCC"; then
11632 linux
*) haveit
=yes;;
11636 if test -z "$haveit"; then
11637 for x
in $CPPFLAGS $INCIPT; do
11639 acl_save_prefix
="$prefix"
11640 prefix
="$acl_final_prefix"
11641 acl_save_exec_prefix
="$exec_prefix"
11642 exec_prefix
="$acl_final_exec_prefix"
11644 exec_prefix
="$acl_save_exec_prefix"
11645 prefix
="$acl_save_prefix"
11647 if test "X$x" = "X-I$additional_includedir"; then
11652 if test -z "$haveit"; then
11653 if test -d "$additional_includedir"; then
11654 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11660 if test -n "$found_la"; then
11661 save_libdir
="$libdir"
11662 case "$found_la" in
11663 */* |
*\\*) .
"$found_la" ;;
11664 *) .
"./$found_la" ;;
11666 libdir
="$save_libdir"
11667 for dep
in $dependency_libs; do
11670 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11671 if test "X$additional_libdir" != "X/usr/lib"; then
11673 if test "X$additional_libdir" = "X/usr/local/lib"; then
11674 if test -n "$GCC"; then
11676 linux
*) haveit
=yes;;
11680 if test -z "$haveit"; then
11682 for x
in $LDFLAGS $LIBIPT; do
11684 acl_save_prefix
="$prefix"
11685 prefix
="$acl_final_prefix"
11686 acl_save_exec_prefix
="$exec_prefix"
11687 exec_prefix
="$acl_final_exec_prefix"
11689 exec_prefix
="$acl_save_exec_prefix"
11690 prefix
="$acl_save_prefix"
11692 if test "X$x" = "X-L$additional_libdir"; then
11697 if test -z "$haveit"; then
11698 if test -d "$additional_libdir"; then
11699 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11703 for x
in $LDFLAGS $LTLIBIPT; do
11705 acl_save_prefix
="$prefix"
11706 prefix
="$acl_final_prefix"
11707 acl_save_exec_prefix
="$exec_prefix"
11708 exec_prefix
="$acl_final_exec_prefix"
11710 exec_prefix
="$acl_save_exec_prefix"
11711 prefix
="$acl_save_prefix"
11713 if test "X$x" = "X-L$additional_libdir"; then
11718 if test -z "$haveit"; then
11719 if test -d "$additional_libdir"; then
11720 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11727 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11728 if test "$enable_rpath" != no
; then
11730 for x
in $rpathdirs; do
11731 if test "X$x" = "X$dir"; then
11736 if test -z "$haveit"; then
11737 rpathdirs
="$rpathdirs $dir"
11740 for x
in $ltrpathdirs; do
11741 if test "X$x" = "X$dir"; then
11746 if test -z "$haveit"; then
11747 ltrpathdirs
="$ltrpathdirs $dir"
11752 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11755 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11758 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11759 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11765 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11766 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11772 if test "X$rpathdirs" != "X"; then
11773 if test -n "$hardcode_libdir_separator"; then
11775 for found_dir
in $rpathdirs; do
11776 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11778 acl_save_libdir
="$libdir"
11780 eval flag
=\"$hardcode_libdir_flag_spec\"
11781 libdir
="$acl_save_libdir"
11782 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11784 for found_dir
in $rpathdirs; do
11785 acl_save_libdir
="$libdir"
11786 libdir
="$found_dir"
11787 eval flag
=\"$hardcode_libdir_flag_spec\"
11788 libdir
="$acl_save_libdir"
11789 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11793 if test "X$ltrpathdirs" != "X"; then
11794 for found_dir
in $ltrpathdirs; do
11795 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11800 ac_save_CPPFLAGS
="$CPPFLAGS"
11802 for element
in $INCIPT; do
11804 for x
in $CPPFLAGS; do
11806 acl_save_prefix
="$prefix"
11807 prefix
="$acl_final_prefix"
11808 acl_save_exec_prefix
="$exec_prefix"
11809 exec_prefix
="$acl_final_exec_prefix"
11811 exec_prefix
="$acl_save_exec_prefix"
11812 prefix
="$acl_save_prefix"
11814 if test "X$x" = "X$element"; then
11819 if test -z "$haveit"; then
11820 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11826 $as_echo_n "checking for libipt... " >&6; }
11827 if ${ac_cv_libipt+:} false
; then :
11828 $as_echo_n "(cached) " >&6
11831 ac_save_LIBS
="$LIBS"
11832 LIBS
="$LIBS $LIBIPT"
11833 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 #include "intel-pt.h"
11839 pt_insn_alloc_decoder (0);
11844 if ac_fn_c_try_link
"$LINENO"; then :
11849 rm -f core conftest.err conftest.
$ac_objext \
11850 conftest
$ac_exeext conftest.
$ac_ext
11851 LIBS
="$ac_save_LIBS"
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11855 $as_echo "$ac_cv_libipt" >&6; }
11856 if test "$ac_cv_libipt" = yes; then
11859 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11862 $as_echo_n "checking how to link with libipt... " >&6; }
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11864 $as_echo "$LIBIPT" >&6; }
11867 CPPFLAGS
="$ac_save_CPPFLAGS"
11877 if test "$HAVE_LIBIPT" != yes; then
11878 if test "$with_intel_pt" = yes; then
11879 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11882 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11886 LIBS
="$LIBS $LIBIPT"
11887 for ac_func
in pt_insn_event
11889 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11890 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
11891 cat >>confdefs.h
<<_ACEOF
11892 #define HAVE_PT_INSN_EVENT 1
11898 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
11900 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
11902 cat >>confdefs.h
<<_ACEOF
11903 #define HAVE_STRUCT_PT_INSN_ENABLED 1
11908 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
11910 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
11912 cat >>confdefs.h
<<_ACEOF
11913 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
11923 # ------------------------- #
11924 # Checks for header files. #
11925 # ------------------------- #
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11928 $as_echo_n "checking for ANSI C header files... " >&6; }
11929 if ${ac_cv_header_stdc+:} false
; then :
11930 $as_echo_n "(cached) " >&6
11932 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934 #include <stdlib.h>
11935 #include <stdarg.h>
11936 #include <string.h>
11947 if ac_fn_c_try_compile
"$LINENO"; then :
11948 ac_cv_header_stdc
=yes
11950 ac_cv_header_stdc
=no
11952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11954 if test $ac_cv_header_stdc = yes; then
11955 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11957 /* end confdefs.h. */
11958 #include <string.h>
11961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11962 $EGREP "memchr" >/dev
/null
2>&1; then :
11965 ac_cv_header_stdc
=no
11971 if test $ac_cv_header_stdc = yes; then
11972 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11974 /* end confdefs.h. */
11975 #include <stdlib.h>
11978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11979 $EGREP "free" >/dev
/null
2>&1; then :
11982 ac_cv_header_stdc
=no
11988 if test $ac_cv_header_stdc = yes; then
11989 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11990 if test "$cross_compiling" = yes; then :
11993 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11994 /* end confdefs.h. */
11996 #include <stdlib.h>
11997 #if ((' ' & 0x0FF) == 0x020)
11998 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11999 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12001 # define ISLOWER(c) \
12002 (('a' <= (c) && (c) <= 'i') \
12003 || ('j' <= (c) && (c) <= 'r') \
12004 || ('s' <= (c) && (c) <= 'z'))
12005 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12008 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12013 for (i = 0; i < 256; i++)
12014 if (XOR (islower (i), ISLOWER (i))
12015 || toupper (i) != TOUPPER (i))
12020 if ac_fn_c_try_run
"$LINENO"; then :
12023 ac_cv_header_stdc
=no
12025 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12026 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12032 $as_echo "$ac_cv_header_stdc" >&6; }
12033 if test $ac_cv_header_stdc = yes; then
12035 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12039 # elf_hp.h is for HP/UX 64-bit shared library support.
12040 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12041 thread_db.h linux
/elf.h \
12042 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12043 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12044 sys
/reg.h sys
/debugreg.h sys
/select.h \
12047 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12048 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12049 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12050 cat >>confdefs.h
<<_ACEOF
12051 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12058 for ac_header
in sys
/user.h
12060 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12061 # include <sys/param.h>
12065 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12066 cat >>confdefs.h
<<_ACEOF
12067 #define HAVE_SYS_USER_H 1
12075 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12077 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12078 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12079 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12080 cat >>confdefs.h
<<_ACEOF
12081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12088 for ac_header
in term.h
12090 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12091 # include <curses.h>
12095 if test "x$ac_cv_header_term_h" = xyes
; then :
12096 cat >>confdefs.h
<<_ACEOF
12097 #define HAVE_TERM_H 1
12105 # ------------------------- #
12106 # Checks for declarations. #
12107 # ------------------------- #
12110 # Check for presence and size of long long.
12111 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12112 if test "x$ac_cv_type_long_long" = xyes
; then :
12114 cat >>confdefs.h
<<_ACEOF
12115 #define HAVE_LONG_LONG 1
12118 # The cast to long int works around a bug in the HP C Compiler
12119 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12120 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12121 # This bug is HP SR number 8606223364.
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12123 $as_echo_n "checking size of long long... " >&6; }
12124 if ${ac_cv_sizeof_long_long+:} false
; then :
12125 $as_echo_n "(cached) " >&6
12127 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12130 if test "$ac_cv_type_long_long" = yes; then
12131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12133 as_fn_error
77 "cannot compute sizeof (long long)
12134 See \`config.log' for more details" "$LINENO" 5; }
12136 ac_cv_sizeof_long_long
=0
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12142 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12146 cat >>confdefs.h
<<_ACEOF
12147 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12154 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12155 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12156 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12162 cat >>confdefs.h
<<_ACEOF
12163 #define HAVE_DECL_BASENAME $ac_have_decl
12165 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12166 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12172 cat >>confdefs.h
<<_ACEOF
12173 #define HAVE_DECL_FFS $ac_have_decl
12175 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12176 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12182 cat >>confdefs.h
<<_ACEOF
12183 #define HAVE_DECL_ASPRINTF $ac_have_decl
12185 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12186 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12192 cat >>confdefs.h
<<_ACEOF
12193 #define HAVE_DECL_VASPRINTF $ac_have_decl
12195 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12196 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12202 cat >>confdefs.h
<<_ACEOF
12203 #define HAVE_DECL_SNPRINTF $ac_have_decl
12205 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12206 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12212 cat >>confdefs.h
<<_ACEOF
12213 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12216 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12217 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12223 cat >>confdefs.h
<<_ACEOF
12224 #define HAVE_DECL_STRTOL $ac_have_decl
12226 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12227 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12233 cat >>confdefs.h
<<_ACEOF
12234 #define HAVE_DECL_STRTOUL $ac_have_decl
12236 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12237 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12243 cat >>confdefs.h
<<_ACEOF
12244 #define HAVE_DECL_STRTOLL $ac_have_decl
12246 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12247 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12253 cat >>confdefs.h
<<_ACEOF
12254 #define HAVE_DECL_STRTOULL $ac_have_decl
12257 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12258 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12264 cat >>confdefs.h
<<_ACEOF
12265 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12270 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12271 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12277 cat >>confdefs.h
<<_ACEOF
12278 #define HAVE_DECL_SNPRINTF $ac_have_decl
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12283 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12284 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12285 $as_echo_n "(cached) " >&6
12287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289 #include <locale.h>
12298 if ac_fn_c_try_link
"$LINENO"; then :
12299 am_cv_val_LC_MESSAGES
=yes
12301 am_cv_val_LC_MESSAGES
=no
12303 rm -f core conftest.err conftest.
$ac_objext \
12304 conftest
$ac_exeext conftest.
$ac_ext
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12307 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12308 if test $am_cv_val_LC_MESSAGES = yes; then
12310 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12315 # ----------------------- #
12316 # Checks for structures. #
12317 # ----------------------- #
12319 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12320 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12322 cat >>confdefs.h
<<_ACEOF
12323 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12328 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12329 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12331 cat >>confdefs.h
<<_ACEOF
12332 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12339 # ------------------ #
12340 # Checks for types. #
12341 # ------------------ #
12343 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12344 #include <sys/socket.h>
12347 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12349 cat >>confdefs.h
<<_ACEOF
12350 #define HAVE_SOCKLEN_T 1
12357 # ------------------------------------- #
12358 # Checks for compiler characteristics. #
12359 # ------------------------------------- #
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12362 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12363 if ${ac_cv_c_const+:} false
; then :
12364 $as_echo_n "(cached) " >&6
12366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12373 #ifndef __cplusplus
12374 /* Ultrix mips cc rejects this sort of thing. */
12375 typedef int charset[2];
12376 const charset cs = { 0, 0 };
12377 /* SunOS 4.1.1 cc rejects this. */
12378 char const *const *pcpcc;
12380 /* NEC SVR4.0.2 mips cc rejects this. */
12381 struct point {int x, y;};
12382 static struct point const zero = {0,0};
12383 /* AIX XL C 1.02.0.0 rejects this.
12384 It does not let you subtract one const X* pointer from another in
12385 an arm of an if-expression whose if-part is not a constant
12387 const char *g = "string";
12388 pcpcc = &g + (g ? g-g : 0);
12389 /* HPUX 7.0 cc rejects these. */
12391 ppc = (char**) pcpcc;
12392 pcpcc = (char const *const *) ppc;
12393 { /* SCO 3.2v4 cc rejects this sort of thing. */
12396 char const *s = 0 ? (char *) 0 : (char const *) 0;
12401 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12402 int x[] = {25, 17};
12403 const int *foo = &x[0];
12406 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12407 typedef const int *iptr;
12411 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12412 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12413 struct s { int j; const int *ap[3]; } bx;
12414 struct s *b = &bx; b->j = 5;
12416 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12417 const int foo = 10;
12418 if (!foo) return 0;
12420 return !cs[0] && !zero.x;
12427 if ac_fn_c_try_compile
"$LINENO"; then :
12432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12435 $as_echo "$ac_cv_c_const" >&6; }
12436 if test $ac_cv_c_const = no
; then
12438 $as_echo "#define const /**/" >>confdefs.h
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12443 $as_echo_n "checking for inline... " >&6; }
12444 if ${ac_cv_c_inline+:} false
; then :
12445 $as_echo_n "(cached) " >&6
12448 for ac_kw
in inline __inline__ __inline
; do
12449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451 #ifndef __cplusplus
12453 static $ac_kw foo_t static_foo () {return 0; }
12454 $ac_kw foo_t foo () {return 0; }
12458 if ac_fn_c_try_compile
"$LINENO"; then :
12459 ac_cv_c_inline
=$ac_kw
12461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12462 test "$ac_cv_c_inline" != no
&& break
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12467 $as_echo "$ac_cv_c_inline" >&6; }
12469 case $ac_cv_c_inline in
12472 case $ac_cv_c_inline in
12474 *) ac_val
=$ac_cv_c_inline;;
12476 cat >>confdefs.h
<<_ACEOF
12477 #ifndef __cplusplus
12478 #define inline $ac_val
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12485 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12486 if ${ac_cv_c_bigendian+:} false
; then :
12487 $as_echo_n "(cached) " >&6
12489 ac_cv_c_bigendian
=unknown
12490 # See if we're dealing with a universal compiler.
12491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12492 /* end confdefs.h. */
12493 #ifndef __APPLE_CC__
12494 not a universal capable compiler
12499 if ac_fn_c_try_compile
"$LINENO"; then :
12501 # Check for potential -arch flags. It is not universal unless
12502 # there are at least two -arch flags with different values.
12505 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12506 if test -n "$ac_prev"; then
12508 i?
86 | x86_64 | ppc | ppc64
)
12509 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12512 ac_cv_c_bigendian
=universal
12518 elif test "x$ac_word" = "x-arch"; then
12523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12524 if test $ac_cv_c_bigendian = unknown
; then
12525 # See if sys/param.h defines the BYTE_ORDER macro.
12526 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528 #include <sys/types.h>
12529 #include <sys/param.h>
12534 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12535 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12537 bogus endian macros
12544 if ac_fn_c_try_compile
"$LINENO"; then :
12545 # It does; now see whether it defined to BIG_ENDIAN or not.
12546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12548 #include <sys/types.h>
12549 #include <sys/param.h>
12554 #if BYTE_ORDER != BIG_ENDIAN
12562 if ac_fn_c_try_compile
"$LINENO"; then :
12563 ac_cv_c_bigendian
=yes
12565 ac_cv_c_bigendian
=no
12567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12571 if test $ac_cv_c_bigendian = unknown
; then
12572 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12574 /* end confdefs.h. */
12575 #include <limits.h>
12580 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12581 bogus endian macros
12588 if ac_fn_c_try_compile
"$LINENO"; then :
12589 # It does; now see whether it defined to _BIG_ENDIAN or not.
12590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12592 #include <limits.h>
12597 #ifndef _BIG_ENDIAN
12605 if ac_fn_c_try_compile
"$LINENO"; then :
12606 ac_cv_c_bigendian
=yes
12608 ac_cv_c_bigendian
=no
12610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12614 if test $ac_cv_c_bigendian = unknown
; then
12615 # Compile a test program.
12616 if test "$cross_compiling" = yes; then :
12617 # Try to guess by grepping values from an object file.
12618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12619 /* end confdefs.h. */
12620 short int ascii_mm[] =
12621 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12622 short int ascii_ii[] =
12623 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12624 int use_ascii (int i) {
12625 return ascii_mm[i] + ascii_ii[i];
12627 short int ebcdic_ii[] =
12628 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12629 short int ebcdic_mm[] =
12630 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12631 int use_ebcdic (int i) {
12632 return ebcdic_mm[i] + ebcdic_ii[i];
12639 return use_ascii (foo) == use_ebcdic (foo);
12644 if ac_fn_c_try_compile
"$LINENO"; then :
12645 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12646 ac_cv_c_bigendian
=yes
12648 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12649 if test "$ac_cv_c_bigendian" = unknown
; then
12650 ac_cv_c_bigendian
=no
12652 # finding both strings is unlikely to happen, but who knows?
12653 ac_cv_c_bigendian
=unknown
12657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12661 $ac_includes_default
12666 /* Are we little or big endian? From Harbison&Steele. */
12670 char c[sizeof (long int)];
12673 return u.c[sizeof (long int) - 1] == 1;
12679 if ac_fn_c_try_run
"$LINENO"; then :
12680 ac_cv_c_bigendian
=no
12682 ac_cv_c_bigendian
=yes
12684 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12685 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12691 $as_echo "$ac_cv_c_bigendian" >&6; }
12692 case $ac_cv_c_bigendian in #(
12694 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12700 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12704 as_fn_error $?
"unknown endianness
12705 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12709 # ------------------------------ #
12710 # Checks for library functions. #
12711 # ------------------------------ #
12716 for ac_header
in $ac_header_list
12718 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12719 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12721 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12722 cat >>confdefs.h
<<_ACEOF
12723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12737 for ac_func
in getpagesize
12739 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12740 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12741 cat >>confdefs.h
<<_ACEOF
12742 #define HAVE_GETPAGESIZE 1
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12749 $as_echo_n "checking for working mmap... " >&6; }
12750 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12751 $as_echo_n "(cached) " >&6
12753 if test "$cross_compiling" = yes; then :
12754 ac_cv_func_mmap_fixed_mapped
=no
12756 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758 $ac_includes_default
12759 /* malloc might have been renamed as rpl_malloc. */
12762 /* Thanks to Mike Haertel and Jim Avera for this test.
12763 Here is a matrix of mmap possibilities:
12764 mmap private not fixed
12765 mmap private fixed at somewhere currently unmapped
12766 mmap private fixed at somewhere already mapped
12767 mmap shared not fixed
12768 mmap shared fixed at somewhere currently unmapped
12769 mmap shared fixed at somewhere already mapped
12770 For private mappings, we should verify that changes cannot be read()
12771 back from the file, nor mmap's back from the file at a different
12772 address. (There have been systems where private was not correctly
12773 implemented like the infamous i386 svr4.0, and systems where the
12774 VM page cache was not coherent with the file system buffer cache
12775 like early versions of FreeBSD and possibly contemporary NetBSD.)
12776 For shared mappings, we should conversely verify that changes get
12777 propagated back to all the places they're supposed to be.
12779 Grep wants private fixed already mapped.
12780 The main things grep needs to know about mmap are:
12781 * does it exist and is it safe to write into the mmap'd area
12782 * how to use it (BSD variants) */
12785 #include <sys/mman.h>
12787 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12791 /* This mess was copied from the GNU getpagesize.h. */
12792 #ifndef HAVE_GETPAGESIZE
12793 # ifdef _SC_PAGESIZE
12794 # define getpagesize() sysconf(_SC_PAGESIZE)
12795 # else /* no _SC_PAGESIZE */
12796 # ifdef HAVE_SYS_PARAM_H
12797 # include <sys/param.h>
12798 # ifdef EXEC_PAGESIZE
12799 # define getpagesize() EXEC_PAGESIZE
12800 # else /* no EXEC_PAGESIZE */
12802 # define getpagesize() NBPG * CLSIZE
12805 # endif /* no CLSIZE */
12806 # else /* no NBPG */
12808 # define getpagesize() NBPC
12809 # else /* no NBPC */
12811 # define getpagesize() PAGESIZE
12812 # endif /* PAGESIZE */
12813 # endif /* no NBPC */
12814 # endif /* no NBPG */
12815 # endif /* no EXEC_PAGESIZE */
12816 # else /* no HAVE_SYS_PARAM_H */
12817 # define getpagesize() 8192 /* punt totally */
12818 # endif /* no HAVE_SYS_PARAM_H */
12819 # endif /* no _SC_PAGESIZE */
12821 #endif /* no HAVE_GETPAGESIZE */
12826 char *data, *data2, *data3;
12827 const char *cdata2;
12831 pagesize = getpagesize ();
12833 /* First, make a file with some known garbage in it. */
12834 data = (char *) malloc (pagesize);
12837 for (i = 0; i < pagesize; ++i)
12838 *(data + i) = rand ();
12840 fd = creat ("conftest.mmap", 0600);
12843 if (write (fd, data, pagesize) != pagesize)
12847 /* Next, check that the tail of a page is zero-filled. File must have
12848 non-zero length, otherwise we risk SIGBUS for entire page. */
12849 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12853 if (write (fd2, cdata2, 1) != 1)
12855 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12856 if (data2 == MAP_FAILED)
12858 for (i = 0; i < pagesize; ++i)
12862 if (munmap (data2, pagesize))
12865 /* Next, try to mmap the file at a fixed address which already has
12866 something else allocated at it. If we can, also make sure that
12867 we see the same garbage. */
12868 fd = open ("conftest.mmap", O_RDWR);
12871 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12872 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12874 for (i = 0; i < pagesize; ++i)
12875 if (*(data + i) != *(data2 + i))
12878 /* Finally, make sure that changes to the mapped area do not
12879 percolate back to the file as seen by read(). (This is a bug on
12880 some variants of i386 svr4.0.) */
12881 for (i = 0; i < pagesize; ++i)
12882 *(data2 + i) = *(data2 + i) + 1;
12883 data3 = (char *) malloc (pagesize);
12886 if (read (fd, data3, pagesize) != pagesize)
12888 for (i = 0; i < pagesize; ++i)
12889 if (*(data + i) != *(data3 + i))
12895 if ac_fn_c_try_run
"$LINENO"; then :
12896 ac_cv_func_mmap_fixed_mapped
=yes
12898 ac_cv_func_mmap_fixed_mapped
=no
12900 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12901 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12906 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12907 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12909 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12912 rm -f conftest.mmap conftest.txt
12914 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12915 if test "x$ac_cv_type_pid_t" = xyes
; then :
12919 cat >>confdefs.h
<<_ACEOF
12925 for ac_header
in vfork.h
12927 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12928 if test "x$ac_cv_header_vfork_h" = xyes
; then :
12929 cat >>confdefs.h
<<_ACEOF
12930 #define HAVE_VFORK_H 1
12937 for ac_func
in fork vfork
12939 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12940 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12941 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12942 cat >>confdefs.h
<<_ACEOF
12943 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12949 if test "x$ac_cv_func_fork" = xyes
; then
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12951 $as_echo_n "checking for working fork... " >&6; }
12952 if ${ac_cv_func_fork_works+:} false
; then :
12953 $as_echo_n "(cached) " >&6
12955 if test "$cross_compiling" = yes; then :
12956 ac_cv_func_fork_works
=cross
12958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h. */
12960 $ac_includes_default
12965 /* By Ruediger Kuhlmann. */
12966 return fork () < 0;
12972 if ac_fn_c_try_run
"$LINENO"; then :
12973 ac_cv_func_fork_works
=yes
12975 ac_cv_func_fork_works
=no
12977 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12978 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12983 $as_echo "$ac_cv_func_fork_works" >&6; }
12986 ac_cv_func_fork_works
=$ac_cv_func_fork
12988 if test "x$ac_cv_func_fork_works" = xcross
; then
12990 *-*-amigaos* |
*-*-msdosdjgpp*)
12991 # Override, as these systems have only a dummy fork() stub
12992 ac_cv_func_fork_works
=no
12995 ac_cv_func_fork_works
=yes
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12999 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13001 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13002 if test "x$ac_cv_func_vfork" = xyes
; then
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13004 $as_echo_n "checking for working vfork... " >&6; }
13005 if ${ac_cv_func_vfork_works+:} false
; then :
13006 $as_echo_n "(cached) " >&6
13008 if test "$cross_compiling" = yes; then :
13009 ac_cv_func_vfork_works
=cross
13011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13012 /* end confdefs.h. */
13013 /* Thanks to Paul Eggert for this test. */
13014 $ac_includes_default
13015 #include <sys/wait.h>
13016 #ifdef HAVE_VFORK_H
13017 # include <vfork.h>
13019 /* On some sparc systems, changes by the child to local and incoming
13020 argument registers are propagated back to the parent. The compiler
13021 is told about this with #include <vfork.h>, but some compilers
13022 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13023 static variable whose address is put into a register that is
13024 clobbered by the vfork. */
13027 sparc_address_test (int arg)
13029 sparc_address_test (arg) int arg;
13032 static pid_t child;
13050 pid_t parent = getpid ();
13053 sparc_address_test (0);
13058 /* Here is another test for sparc vfork register problems. This
13059 test uses lots of local variables, at least as many local
13060 variables as main has allocated so far including compiler
13061 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13062 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13063 reuse the register of parent for one of the local variables,
13064 since it will think that parent can't possibly be used any more
13065 in this routine. Assigning to the local variable will thus
13066 munge parent in the parent process. */
13068 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13069 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13070 /* Convince the compiler that p..p7 are live; otherwise, it might
13071 use the same hardware register for all 8 local variables. */
13072 if (p != p1 || p != p2 || p != p3 || p != p4
13073 || p != p5 || p != p6 || p != p7)
13076 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13077 from child file descriptors. If the child closes a descriptor
13078 before it execs or exits, this munges the parent's descriptor
13079 as well. Test for this by closing stdout in the child. */
13080 _exit(close(fileno(stdout)) != 0);
13085 while (wait(&status) != child)
13088 /* Was there some problem with vforking? */
13091 /* Did the child fail? (This shouldn't happen.) */
13094 /* Did the vfork/compiler bug occur? */
13095 || parent != getpid()
13097 /* Did the file descriptor bug occur? */
13098 || fstat(fileno(stdout), &st) != 0
13103 if ac_fn_c_try_run
"$LINENO"; then :
13104 ac_cv_func_vfork_works
=yes
13106 ac_cv_func_vfork_works
=no
13108 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13109 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13114 $as_echo "$ac_cv_func_vfork_works" >&6; }
13117 if test "x$ac_cv_func_fork_works" = xcross
; then
13118 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13120 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13123 if test "x$ac_cv_func_vfork_works" = xyes
; then
13125 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13129 $as_echo "#define vfork fork" >>confdefs.h
13132 if test "x$ac_cv_func_fork_works" = xyes
; then
13134 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13138 for ac_func
in getauxval getrusage getuid getgid \
13139 pipe poll pread pread64 pwrite resize_term \
13140 sbrk getpgid setpgid setpgrp setsid \
13141 sigaction sigsetmask socketpair \
13142 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13143 setrlimit getrlimit posix_madvise waitpid \
13144 ptrace64 sigaltstack setns use_default_colors
13146 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13147 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13148 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13149 cat >>confdefs.h
<<_ACEOF
13150 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13158 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13159 if ${am_cv_langinfo_codeset+:} false
; then :
13160 $as_echo_n "(cached) " >&6
13162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13163 /* end confdefs.h. */
13164 #include <langinfo.h>
13168 char* cs = nl_langinfo(CODESET);
13173 if ac_fn_c_try_link
"$LINENO"; then :
13174 am_cv_langinfo_codeset
=yes
13176 am_cv_langinfo_codeset
=no
13178 rm -f core conftest.err conftest.
$ac_objext \
13179 conftest
$ac_exeext conftest.
$ac_ext
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13183 $as_echo "$am_cv_langinfo_codeset" >&6; }
13184 if test $am_cv_langinfo_codeset = yes; then
13186 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13190 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13191 if test "x$ac_cv_type_size_t" = xyes
; then :
13195 cat >>confdefs.h
<<_ACEOF
13196 #define size_t unsigned int
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
13202 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
13203 if ${ac_cv_path_SED+:} false
; then :
13204 $as_echo_n "(cached) " >&6
13206 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
13207 for ac_i
in 1 2 3 4 5 6 7; do
13208 ac_script
="$ac_script$as_nl$ac_script"
13210 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
13211 { ac_script
=; unset ac_script
;}
13212 if test -z "$SED"; then
13213 ac_path_SED_found
=false
13214 # Loop through the user's path and test for each of PROGNAME-LIST
13215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13216 for as_dir
in $PATH
13219 test -z "$as_dir" && as_dir
=.
13220 for ac_prog
in sed gsed
; do
13221 for ac_exec_ext
in '' $ac_executable_extensions; do
13222 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
13223 as_fn_executable_p
"$ac_path_SED" ||
continue
13224 # Check for GNU ac_path_SED and select it if it is found.
13225 # Check for GNU $ac_path_SED
13226 case `"$ac_path_SED" --version 2>&1` in
13228 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
13231 $as_echo_n 0123456789 >"conftest.in"
13234 cat "conftest.in" "conftest.in" >"conftest.tmp"
13235 mv "conftest.tmp" "conftest.in"
13236 cp "conftest.in" "conftest.nl"
13237 $as_echo '' >> "conftest.nl"
13238 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
13239 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
13240 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
13241 if test $ac_count -gt ${ac_path_SED_max-0}; then
13242 # Best one so far, save it but keep looking for a better one
13243 ac_cv_path_SED
="$ac_path_SED"
13244 ac_path_SED_max
=$ac_count
13246 # 10*(2^10) chars as input seems more than enough
13247 test $ac_count -gt 10 && break
13249 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
13252 $ac_path_SED_found && break 3
13257 if test -z "$ac_cv_path_SED"; then
13258 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
13261 ac_cv_path_SED
=$SED
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
13266 $as_echo "$ac_cv_path_SED" >&6; }
13267 SED
="$ac_cv_path_SED"
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13272 $as_echo_n "checking for ANSI C header files... " >&6; }
13273 if ${ac_cv_header_stdc+:} false
; then :
13274 $as_echo_n "(cached) " >&6
13276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 #include <stdlib.h>
13279 #include <stdarg.h>
13280 #include <string.h>
13291 if ac_fn_c_try_compile
"$LINENO"; then :
13292 ac_cv_header_stdc
=yes
13294 ac_cv_header_stdc
=no
13296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13298 if test $ac_cv_header_stdc = yes; then
13299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 #include <string.h>
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306 $EGREP "memchr" >/dev
/null
2>&1; then :
13309 ac_cv_header_stdc
=no
13315 if test $ac_cv_header_stdc = yes; then
13316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 #include <stdlib.h>
13322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13323 $EGREP "free" >/dev
/null
2>&1; then :
13326 ac_cv_header_stdc
=no
13332 if test $ac_cv_header_stdc = yes; then
13333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13334 if test "$cross_compiling" = yes; then :
13337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13338 /* end confdefs.h. */
13340 #include <stdlib.h>
13341 #if ((' ' & 0x0FF) == 0x020)
13342 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13343 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13345 # define ISLOWER(c) \
13346 (('a' <= (c) && (c) <= 'i') \
13347 || ('j' <= (c) && (c) <= 'r') \
13348 || ('s' <= (c) && (c) <= 'z'))
13349 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13357 for (i = 0; i < 256; i++)
13358 if (XOR (islower (i), ISLOWER (i))
13359 || toupper (i) != TOUPPER (i))
13364 if ac_fn_c_try_run
"$LINENO"; then :
13367 ac_cv_header_stdc
=no
13369 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13370 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13376 $as_echo "$ac_cv_header_stdc" >&6; }
13377 if test $ac_cv_header_stdc = yes; then
13379 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13383 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13384 # for constant arguments. Useless!
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13386 $as_echo_n "checking for working alloca.h... " >&6; }
13387 if ${ac_cv_working_alloca_h+:} false
; then :
13388 $as_echo_n "(cached) " >&6
13390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13391 /* end confdefs.h. */
13392 #include <alloca.h>
13396 char *p = (char *) alloca (2 * sizeof (int));
13402 if ac_fn_c_try_link
"$LINENO"; then :
13403 ac_cv_working_alloca_h
=yes
13405 ac_cv_working_alloca_h
=no
13407 rm -f core conftest.err conftest.
$ac_objext \
13408 conftest
$ac_exeext conftest.
$ac_ext
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13411 $as_echo "$ac_cv_working_alloca_h" >&6; }
13412 if test $ac_cv_working_alloca_h = yes; then
13414 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13419 $as_echo_n "checking for alloca... " >&6; }
13420 if ${ac_cv_func_alloca_works+:} false
; then :
13421 $as_echo_n "(cached) " >&6
13423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13426 # define alloca __builtin_alloca
13429 # include <malloc.h>
13430 # define alloca _alloca
13432 # ifdef HAVE_ALLOCA_H
13433 # include <alloca.h>
13438 # ifndef alloca /* predefined by HP cc +Olibcalls */
13439 void *alloca (size_t);
13449 char *p = (char *) alloca (1);
13455 if ac_fn_c_try_link
"$LINENO"; then :
13456 ac_cv_func_alloca_works
=yes
13458 ac_cv_func_alloca_works
=no
13460 rm -f core conftest.err conftest.
$ac_objext \
13461 conftest
$ac_exeext conftest.
$ac_ext
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13464 $as_echo "$ac_cv_func_alloca_works" >&6; }
13466 if test $ac_cv_func_alloca_works = yes; then
13468 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13471 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13472 # that cause trouble. Some versions do not even contain alloca or
13473 # contain a buggy version. If you still want to use their alloca,
13474 # use ar to extract alloca.o from them instead of compiling alloca.c.
13476 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13478 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13482 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13483 if ${ac_cv_os_cray+:} false
; then :
13484 $as_echo_n "(cached) " >&6
13486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13487 /* end confdefs.h. */
13488 #if defined CRAY && ! defined CRAY2
13495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13496 $EGREP "webecray" >/dev
/null
2>&1; then :
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13505 $as_echo "$ac_cv_os_cray" >&6; }
13506 if test $ac_cv_os_cray = yes; then
13507 for ac_func
in _getb67 GETB67 getb67
; do
13508 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13509 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13510 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13512 cat >>confdefs.h
<<_ACEOF
13513 #define CRAY_STACKSEG_END $ac_func
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13523 $as_echo_n "checking stack direction for C alloca... " >&6; }
13524 if ${ac_cv_c_stack_direction+:} false
; then :
13525 $as_echo_n "(cached) " >&6
13527 if test "$cross_compiling" = yes; then :
13528 ac_cv_c_stack_direction
=0
13530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 $ac_includes_default
13534 find_stack_direction (int *addr, int depth)
13536 int dir, dummy = 0;
13539 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13540 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13541 return dir + dummy;
13545 main (int argc, char **argv)
13547 return find_stack_direction (0, argc + !argv + 20) < 0;
13550 if ac_fn_c_try_run
"$LINENO"; then :
13551 ac_cv_c_stack_direction
=1
13553 ac_cv_c_stack_direction
=-1
13555 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13556 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13561 $as_echo "$ac_cv_c_stack_direction" >&6; }
13562 cat >>confdefs.h
<<_ACEOF
13563 #define STACK_DIRECTION $ac_cv_c_stack_direction
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13572 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13573 if ${am_cv_langinfo_codeset+:} false
; then :
13574 $as_echo_n "(cached) " >&6
13576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13577 /* end confdefs.h. */
13578 #include <langinfo.h>
13582 char* cs = nl_langinfo(CODESET);
13587 if ac_fn_c_try_link
"$LINENO"; then :
13588 am_cv_langinfo_codeset
=yes
13590 am_cv_langinfo_codeset
=no
13592 rm -f core conftest.err conftest.
$ac_objext \
13593 conftest
$ac_exeext conftest.
$ac_ext
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13597 $as_echo "$am_cv_langinfo_codeset" >&6; }
13598 if test $am_cv_langinfo_codeset = yes; then
13600 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13605 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 dlfcn.h
13607 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13608 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13609 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13610 cat >>confdefs.h
<<_ACEOF
13611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13619 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
13622 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13623 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13624 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13625 cat >>confdefs.h
<<_ACEOF
13626 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13633 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13634 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13640 cat >>confdefs.h
<<_ACEOF
13641 #define HAVE_DECL_STRERROR $ac_have_decl
13643 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13644 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13650 cat >>confdefs.h
<<_ACEOF
13651 #define HAVE_DECL_STRSTR $ac_have_decl
13655 # Check for std::thread. This does not work on some platforms, like
13658 ac_cpp
='$CXXCPP $CPPFLAGS'
13659 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13660 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13661 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13668 ac_cpp
='$CPP $CPPFLAGS'
13669 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13670 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13671 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13675 # We used to check for pthread.h first, but this fails if pthread.h
13676 # requires special compiler flags (e.g. on Tru64 or Sequent).
13677 # It gets checked for in the link test anyway.
13679 # First of all, check if the user has set any of the PTHREAD_LIBS,
13680 # etcetera environment variables, and if threads linking works using
13682 if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
13683 ax_pthread_save_CC
="$CC"
13684 ax_pthread_save_CFLAGS
="$CFLAGS"
13685 ax_pthread_save_LIBS
="$LIBS"
13686 if test "x$PTHREAD_CC" != "x"; then :
13689 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
13690 LIBS
="$PTHREAD_LIBS $LIBS"
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
13692 $as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
13693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13696 /* Override any GCC internal prototype to avoid an error.
13697 Use char because int might match the return type of a GCC
13698 builtin and then its argument prototype would still apply. */
13702 char pthread_join ();
13706 return pthread_join ();
13711 if ac_fn_c_try_link
"$LINENO"; then :
13714 rm -f core conftest.err conftest.
$ac_objext \
13715 conftest
$ac_exeext conftest.
$ac_ext
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
13717 $as_echo "$ax_pthread_ok" >&6; }
13718 if test "x$ax_pthread_ok" = "xno"; then
13722 CC
="$ax_pthread_save_CC"
13723 CFLAGS
="$ax_pthread_save_CFLAGS"
13724 LIBS
="$ax_pthread_save_LIBS"
13727 # We must check for the threads library under a number of different
13728 # names; the ordering is very important because some systems
13729 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
13730 # libraries is broken (non-POSIX).
13732 # Create a list of thread flags to try. Items starting with a "-" are
13733 # C compiler flags, and other items are library names, except for "none"
13734 # which indicates that we try without any flags at all, and "pthread-config"
13735 # which is a program returning the flags for the Pth emulation library.
13737 ax_pthread_flags
="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
13739 # The ordering *is* (sometimes) important. Some notes on the
13740 # individual items follow:
13742 # pthreads: AIX (must check this before -lpthread)
13743 # none: in case threads are in libc; should be tried before -Kthread and
13744 # other compiler flags to prevent continual compiler warnings
13745 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
13746 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
13747 # (Note: HP C rejects this with "bad form for `-t' option")
13748 # -pthreads: Solaris/gcc (Note: HP C also rejects)
13749 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
13750 # doesn't hurt to check since this sometimes defines pthreads and
13751 # -D_REENTRANT too), HP C (must be checked before -lpthread, which
13752 # is present but should not be used directly; and before -mthreads,
13753 # because the compiler interprets this as "-mt" + "-hreads")
13754 # -mthreads: Mingw32/gcc, Lynx/gcc
13755 # pthread: Linux, etcetera
13756 # --thread-safe: KAI C++
13757 # pthread-config: use pthread-config program (for GNU Pth library)
13763 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
13764 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
13766 ax_pthread_flags
="-kthread lthread $ax_pthread_flags"
13771 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
13772 # multi-threading and also sets -lpthread."
13774 ax_pthread_flags
="-mt -pthread pthread $ax_pthread_flags"
13779 # IBM z/OS requires a feature-test macro to be defined in order to
13780 # enable POSIX threads at all, so give the user a hint if this is
13781 # not set. (We don't define these ourselves, as they can affect
13782 # other portions of the system API in unpredictable ways.)
13784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13787 # if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
13788 AX_PTHREAD_ZOS_MISSING
13792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13793 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev
/null
2>&1; then :
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
13795 $as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
13803 # On Solaris (at least, for some versions), libc contains stubbed
13804 # (non-functional) versions of the pthreads routines, so link-based
13805 # tests will erroneously succeed. (N.B.: The stubs are missing
13806 # pthread_cleanup_push, or rather a function called by this macro,
13807 # so we could check for that, but who knows whether they'll stub
13808 # that too in a future libc.) So we'll check first for the
13809 # standard Solaris way of linking pthreads (-mt -lpthread).
13811 ax_pthread_flags
="-mt,pthread pthread $ax_pthread_flags"
13815 # GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
13817 if test "x$GCC" = "xyes"; then :
13818 ax_pthread_flags
="-pthread -pthreads $ax_pthread_flags"
13821 # The presence of a feature test macro requesting re-entrant function
13822 # definitions is, on some systems, a strong hint that pthreads support is
13823 # correctly enabled
13826 darwin
* | hpux
* | linux
* | osf
* | solaris
*)
13827 ax_pthread_check_macro
="_REENTRANT"
13831 ax_pthread_check_macro
="_THREAD_SAFE"
13835 ax_pthread_check_macro
="--"
13838 if test "x$ax_pthread_check_macro" = "x--"; then :
13839 ax_pthread_check_cond
=0
13841 ax_pthread_check_cond
="!defined($ax_pthread_check_macro)"
13844 # Are we compiling with Clang?
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
13847 $as_echo_n "checking whether $CC is Clang... " >&6; }
13848 if ${ax_cv_PTHREAD_CLANG+:} false
; then :
13849 $as_echo_n "(cached) " >&6
13851 ax_cv_PTHREAD_CLANG
=no
13852 # Note that Autoconf sets GCC=yes for Clang as well as GCC
13853 if test "x$GCC" = "xyes"; then
13854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 /* Note: Clang 2.7 lacks __clang_[a-z]+__ */
13857 # if defined(__clang__) && defined(__llvm__)
13858 AX_PTHREAD_CC_IS_CLANG
13862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13863 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev
/null
2>&1; then :
13864 ax_cv_PTHREAD_CLANG
=yes
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
13872 $as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
13873 ax_pthread_clang
="$ax_cv_PTHREAD_CLANG"
13875 ax_pthread_clang_warning
=no
13877 # Clang needs special handling, because older versions handle the -pthread
13878 # option in a rather... idiosyncratic way
13880 if test "x$ax_pthread_clang" = "xyes"; then
13882 # Clang takes -pthread; it has never supported any other flag
13884 # (Note 1: This will need to be revisited if a system that Clang
13885 # supports has POSIX threads in a separate library. This tends not
13886 # to be the way of modern systems, but it's conceivable.)
13888 # (Note 2: On some systems, notably Darwin, -pthread is not needed
13889 # to get POSIX threads support; the API is always present and
13890 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
13891 # -pthread does define _REENTRANT, and while the Darwin headers
13892 # ignore this macro, third-party headers might not.)
13894 PTHREAD_CFLAGS
="-pthread"
13899 # However, older versions of Clang make a point of warning the user
13900 # that, in an invocation where only linking and no compilation is
13901 # taking place, the -pthread option has no effect ("argument unused
13902 # during compilation"). They expect -pthread to be passed in only
13903 # when source code is being compiled.
13905 # Problem is, this is at odds with the way Automake and most other
13906 # C build frameworks function, which is that the same flags used in
13907 # compilation (CFLAGS) are also used in linking. Many systems
13908 # supported by AX_PTHREAD require exactly this for POSIX threads
13909 # support, and in fact it is often not straightforward to specify a
13910 # flag that is used only in the compilation phase and not in
13911 # linking. Such a scenario is extremely rare in practice.
13913 # Even though use of the -pthread flag in linking would only print
13914 # a warning, this can be a nuisance for well-run software projects
13915 # that build with -Werror. So if the active version of Clang has
13916 # this misfeature, we search for an option to squash it.
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
13919 $as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
13920 if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false
; then :
13921 $as_echo_n "(cached) " >&6
13923 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
=unknown
13924 # Create an alternate version of $ac_link that compiles and
13925 # links in two steps (.c -> .o, .o -> exe) instead of one
13926 # (.c -> exe), because the warning occurs only in the second
13928 ax_pthread_save_ac_link
="$ac_link"
13929 ax_pthread_sed
='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
13930 ax_pthread_link_step
=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
13931 ax_pthread_2step_ac_link
="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
13932 ax_pthread_save_CFLAGS
="$CFLAGS"
13933 for ax_pthread_try
in '' -Qunused-arguments -Wno-unused-command-line-argument unknown
; do
13934 if test "x$ax_pthread_try" = "xunknown"; then :
13937 CFLAGS
="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
13938 ac_link
="$ax_pthread_save_ac_link"
13939 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13940 /* end confdefs.h. */
13941 int main(void){return 0;}
13943 if ac_fn_c_try_link
"$LINENO"; then :
13944 ac_link
="$ax_pthread_2step_ac_link"
13945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13946 /* end confdefs.h. */
13947 int main(void){return 0;}
13949 if ac_fn_c_try_link
"$LINENO"; then :
13952 rm -f core conftest.err conftest.
$ac_objext \
13953 conftest
$ac_exeext conftest.
$ac_ext
13956 rm -f core conftest.err conftest.
$ac_objext \
13957 conftest
$ac_exeext conftest.
$ac_ext
13959 ac_link
="$ax_pthread_save_ac_link"
13960 CFLAGS
="$ax_pthread_save_CFLAGS"
13961 if test "x$ax_pthread_try" = "x"; then :
13964 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG
="$ax_pthread_try"
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
13968 $as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
13970 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
13972 *) PTHREAD_CFLAGS
="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
13975 fi # $ax_pthread_clang = yes
13977 if test "x$ax_pthread_ok" = "xno"; then
13978 for ax_pthread_try_flag
in $ax_pthread_flags; do
13980 case $ax_pthread_try_flag in
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
13983 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
13988 $as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
13989 PTHREAD_CFLAGS
="-mt"
13990 PTHREAD_LIBS
="-lpthread"
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
13995 $as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
13996 PTHREAD_CFLAGS
="$ax_pthread_try_flag"
14000 # Extract the first word of "pthread-config", so it can be a program name with args.
14001 set dummy pthread-config
; ac_word
=$2
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14003 $as_echo_n "checking for $ac_word... " >&6; }
14004 if ${ac_cv_prog_ax_pthread_config+:} false
; then :
14005 $as_echo_n "(cached) " >&6
14007 if test -n "$ax_pthread_config"; then
14008 ac_cv_prog_ax_pthread_config
="$ax_pthread_config" # Let the user override the test.
14010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14011 for as_dir
in $PATH
14014 test -z "$as_dir" && as_dir
=.
14015 for ac_exec_ext
in '' $ac_executable_extensions; do
14016 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14017 ac_cv_prog_ax_pthread_config
="yes"
14018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14025 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config
="no"
14028 ax_pthread_config
=$ac_cv_prog_ax_pthread_config
14029 if test -n "$ax_pthread_config"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
14031 $as_echo "$ax_pthread_config" >&6; }
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14038 if test "x$ax_pthread_config" = "xno"; then :
14041 PTHREAD_CFLAGS
="`pthread-config --cflags`"
14042 PTHREAD_LIBS
="`pthread-config --ldflags` `pthread-config --libs`"
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
14047 $as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
14048 PTHREAD_LIBS
="-l$ax_pthread_try_flag"
14052 ax_pthread_save_CFLAGS
="$CFLAGS"
14053 ax_pthread_save_LIBS
="$LIBS"
14054 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14055 LIBS
="$PTHREAD_LIBS $LIBS"
14057 # Check for various functions. We must include pthread.h,
14058 # since some functions may be macros. (On the Sequent, we
14059 # need a special flag -Kthread to make this header compile.)
14060 # We check for pthread_join because it is in -lpthread on IRIX
14061 # while pthread_create is in libc. We check for pthread_attr_init
14062 # due to DEC craziness with -lpthreads. We check for
14063 # pthread_cleanup_push because it is one of the few pthread
14064 # functions on Solaris that doesn't have a non-functional libc stub.
14065 # We try pthread_create on general principles.
14067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14069 #include <pthread.h>
14070 # if $ax_pthread_check_cond
14071 # error "$ax_pthread_check_macro must be defined"
14073 static void routine(void *a) { a = 0; }
14074 static void *start_routine(void *a) { return a; }
14078 pthread_t th; pthread_attr_t attr;
14079 pthread_create(&th, 0, start_routine, 0);
14080 pthread_join(th, 0);
14081 pthread_attr_init(&attr);
14082 pthread_cleanup_push(routine, 0);
14083 pthread_cleanup_pop(0) /* ; */
14088 if ac_fn_c_try_link
"$LINENO"; then :
14091 rm -f core conftest.err conftest.
$ac_objext \
14092 conftest
$ac_exeext conftest.
$ac_ext
14094 CFLAGS
="$ax_pthread_save_CFLAGS"
14095 LIBS
="$ax_pthread_save_LIBS"
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
14098 $as_echo "$ax_pthread_ok" >&6; }
14099 if test "x$ax_pthread_ok" = "xyes"; then :
14108 # Various other checks:
14109 if test "x$ax_pthread_ok" = "xyes"; then
14110 ax_pthread_save_CFLAGS
="$CFLAGS"
14111 ax_pthread_save_LIBS
="$LIBS"
14112 CFLAGS
="$CFLAGS $PTHREAD_CFLAGS"
14113 LIBS
="$PTHREAD_LIBS $LIBS"
14115 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
14117 $as_echo_n "checking for joinable pthread attribute... " >&6; }
14118 if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false
; then :
14119 $as_echo_n "(cached) " >&6
14121 ax_cv_PTHREAD_JOINABLE_ATTR
=unknown
14122 for ax_pthread_attr
in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED
; do
14123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14124 /* end confdefs.h. */
14125 #include <pthread.h>
14129 int attr = $ax_pthread_attr; return attr /* ; */
14134 if ac_fn_c_try_link
"$LINENO"; then :
14135 ax_cv_PTHREAD_JOINABLE_ATTR
=$ax_pthread_attr; break
14137 rm -f core conftest.err conftest.
$ac_objext \
14138 conftest
$ac_exeext conftest.
$ac_ext
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
14143 $as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
14144 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
14145 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
14146 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
14148 cat >>confdefs.h
<<_ACEOF
14149 #define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
14152 ax_pthread_joinable_attr_defined
=yes
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
14157 $as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
14158 if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false
; then :
14159 $as_echo_n "(cached) " >&6
14161 ax_cv_PTHREAD_SPECIAL_FLAGS
=no
14164 ax_cv_PTHREAD_SPECIAL_FLAGS
="-D_POSIX_PTHREAD_SEMANTICS"
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
14170 $as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
14171 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
14172 test "x$ax_pthread_special_flags_added" != "xyes"; then :
14173 PTHREAD_CFLAGS
="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
14174 ax_pthread_special_flags_added
=yes
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
14178 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
14179 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false
; then :
14180 $as_echo_n "(cached) " >&6
14182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14184 #include <pthread.h>
14188 int i = PTHREAD_PRIO_INHERIT;
14193 if ac_fn_c_try_link
"$LINENO"; then :
14194 ax_cv_PTHREAD_PRIO_INHERIT
=yes
14196 ax_cv_PTHREAD_PRIO_INHERIT
=no
14198 rm -f core conftest.err conftest.
$ac_objext \
14199 conftest
$ac_exeext conftest.
$ac_ext
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
14203 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
14204 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
14205 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
14207 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
14209 ax_pthread_prio_inherit_defined
=yes
14213 CFLAGS
="$ax_pthread_save_CFLAGS"
14214 LIBS
="$ax_pthread_save_LIBS"
14216 # More AIX lossage: compile with *_r variant
14217 if test "x$GCC" != "xyes"; then
14221 x
*/c89|x
*/c89_128|x
*/c99|x
*/c99_128|x
*/cc|x
*/cc128|x
*/xlc|x
*/xlc_v6|x
*/xlc128|x
*/xlc128_v6
) :
14222 #handle absolute path differently from PATH based program lookup
14225 if as_fn_executable_p
${CC}_r
; then :
14226 PTHREAD_CC
="${CC}_r"
14229 for ac_prog
in ${CC}_r
14231 # Extract the first word of "$ac_prog", so it can be a program name with args.
14232 set dummy
$ac_prog; ac_word
=$2
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14234 $as_echo_n "checking for $ac_word... " >&6; }
14235 if ${ac_cv_prog_PTHREAD_CC+:} false
; then :
14236 $as_echo_n "(cached) " >&6
14238 if test -n "$PTHREAD_CC"; then
14239 ac_cv_prog_PTHREAD_CC
="$PTHREAD_CC" # Let the user override the test.
14241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14242 for as_dir
in $PATH
14245 test -z "$as_dir" && as_dir
=.
14246 for ac_exec_ext
in '' $ac_executable_extensions; do
14247 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14248 ac_cv_prog_PTHREAD_CC
="$ac_prog"
14249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14258 PTHREAD_CC
=$ac_cv_prog_PTHREAD_CC
14259 if test -n "$PTHREAD_CC"; then
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
14261 $as_echo "$PTHREAD_CC" >&6; }
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14264 $as_echo "no" >&6; }
14268 test -n "$PTHREAD_CC" && break
14270 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14281 test -n "$PTHREAD_CC" || PTHREAD_CC
="$CC"
14287 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14288 if test "x$ax_pthread_ok" = "xyes"; then
14296 ac_cpp
='$CXXCPP $CPPFLAGS'
14297 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14298 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14299 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
14302 if test "$threads" = "yes"; then
14304 LIBS
="$PTHREAD_LIBS $LIBS"
14305 save_CXXFLAGS
="$CXXFLAGS"
14306 CXXFLAGS
="$PTHREAD_CFLAGS $save_CXXFLAGS"
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::thread" >&5
14308 $as_echo_n "checking for std::thread... " >&6; }
14309 if ${gdb_cv_cxx_std_thread+:} false
; then :
14310 $as_echo_n "(cached) " >&6
14312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14313 /* end confdefs.h. */
14315 void callback() { }
14319 std::thread t(callback);
14324 if ac_fn_cxx_try_compile
"$LINENO"; then :
14325 gdb_cv_cxx_std_thread
=yes
14327 gdb_cv_cxx_std_thread
=no
14329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_cxx_std_thread" >&5
14332 $as_echo "$gdb_cv_cxx_std_thread" >&6; }
14334 # This check must be here, while LIBS includes any necessary
14335 # threading library.
14336 for ac_func
in pthread_sigmask
14338 ac_fn_cxx_check_func
"$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
14339 if test "x$ac_cv_func_pthread_sigmask" = xyes
; then :
14340 cat >>confdefs.h
<<_ACEOF
14341 #define HAVE_PTHREAD_SIGMASK 1
14349 CXXFLAGS
="$save_CXXFLAGS"
14351 if test $gdb_cv_cxx_std_thread = yes; then
14353 $as_echo "#define CXX_STD_THREAD 1" >>confdefs.h
14357 ac_cpp
='$CPP $CPPFLAGS'
14358 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14359 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14360 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
14364 $as_echo_n "checking for sigsetjmp... " >&6; }
14365 if ${gdb_cv_func_sigsetjmp+:} false
; then :
14366 $as_echo_n "(cached) " >&6
14368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14369 /* end confdefs.h. */
14371 #include <setjmp.h>
14376 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
14381 if ac_fn_c_try_compile
"$LINENO"; then :
14382 gdb_cv_func_sigsetjmp
=yes
14384 gdb_cv_func_sigsetjmp
=no
14386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
14389 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
14390 if test $gdb_cv_func_sigsetjmp = yes; then
14392 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
14397 # Check the return and argument types of ptrace.
14400 for ac_header
in sys
/ptrace.h ptrace.h
14402 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14403 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14404 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14405 cat >>confdefs.h
<<_ACEOF
14406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14414 gdb_ptrace_headers
='
14415 #include <sys/types.h>
14416 #if HAVE_SYS_PTRACE_H
14417 # include <sys/ptrace.h>
14420 # include <unistd.h>
14423 # There is no point in checking if we don't have a prototype.
14424 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
14426 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
14432 cat >>confdefs.h
<<_ACEOF
14433 #define HAVE_DECL_PTRACE $ac_have_decl
14435 if test $ac_have_decl = 1; then :
14439 : ${gdb_cv_func_ptrace_ret='int'}
14440 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14444 # Check return type. Varargs (used on GNU/Linux) conflict with the
14445 # empty argument list, so check for that explicitly.
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
14447 $as_echo_n "checking return type of ptrace... " >&6; }
14448 if ${gdb_cv_func_ptrace_ret+:} false
; then :
14449 $as_echo_n "(cached) " >&6
14451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453 $gdb_ptrace_headers
14457 extern long ptrace (enum __ptrace_request, ...);
14462 if ac_fn_c_try_compile
"$LINENO"; then :
14463 gdb_cv_func_ptrace_ret
='long'
14465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14466 /* end confdefs.h. */
14467 $gdb_ptrace_headers
14471 extern int ptrace ();
14476 if ac_fn_c_try_compile
"$LINENO"; then :
14477 gdb_cv_func_ptrace_ret
='int'
14479 gdb_cv_func_ptrace_ret
='long'
14481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
14486 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
14488 cat >>confdefs.h
<<_ACEOF
14489 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
14492 # Check argument types.
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
14494 $as_echo_n "checking types of arguments for ptrace... " >&6; }
14495 if ${gdb_cv_func_ptrace_args+:} false
; then :
14496 $as_echo_n "(cached) " >&6
14499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14500 /* end confdefs.h. */
14501 $gdb_ptrace_headers
14505 extern long ptrace (enum __ptrace_request, ...);
14510 if ac_fn_c_try_compile
"$LINENO"; then :
14511 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
14514 for gdb_arg1
in 'int' 'long'; do
14515 for gdb_arg2
in 'pid_t' 'int' 'long'; do
14516 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
14517 for gdb_arg4
in 'int' 'long' 'void *'; do
14518 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14519 /* end confdefs.h. */
14520 $gdb_ptrace_headers
14525 extern $gdb_cv_func_ptrace_ret
14526 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
14532 if ac_fn_c_try_compile
"$LINENO"; then :
14533 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
14536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14537 for gdb_arg5
in 'int *' 'int' 'long'; do
14538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h. */
14540 $gdb_ptrace_headers
14545 extern $gdb_cv_func_ptrace_ret
14546 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
14552 if ac_fn_c_try_compile
"$LINENO"; then :
14554 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
14557 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14563 # Provide a safe default value.
14564 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
14567 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
14570 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
14571 ac_save_IFS
=$IFS; IFS
=','
14572 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
14576 cat >>confdefs.h
<<_ACEOF
14577 #define PTRACE_TYPE_ARG1 $1
14581 cat >>confdefs.h
<<_ACEOF
14582 #define PTRACE_TYPE_ARG3 $3
14586 cat >>confdefs.h
<<_ACEOF
14587 #define PTRACE_TYPE_ARG4 $4
14590 if test -n "$5"; then
14592 cat >>confdefs.h
<<_ACEOF
14593 #define PTRACE_TYPE_ARG5 $5
14599 if test "$cross_compiling" = no
; then
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14601 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14602 if ${ac_cv_func_setpgrp_void+:} false
; then :
14603 $as_echo_n "(cached) " >&6
14605 if test "$cross_compiling" = yes; then :
14606 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
14608 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14610 $ac_includes_default
14614 /* If this system has a BSD-style setpgrp which takes arguments,
14615 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
14616 exit successfully. */
14617 return setpgrp (1,1) != -1;
14622 if ac_fn_c_try_run
"$LINENO"; then :
14623 ac_cv_func_setpgrp_void
=no
14625 ac_cv_func_setpgrp_void
=yes
14627 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14628 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14633 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14634 if test $ac_cv_func_setpgrp_void = yes; then
14636 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14642 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14643 if ${ac_cv_func_setpgrp_void+:} false
; then :
14644 $as_echo_n "(cached) " >&6
14646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14649 #include <unistd.h>
14655 if (setpgrp(1,1) == -1)
14664 if ac_fn_c_try_compile
"$LINENO"; then :
14665 ac_cv_func_setpgrp_void
=no
14667 ac_cv_func_setpgrp_void
=yes
14669 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14672 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14673 if test $ac_cv_func_setpgrp_void = yes; then
14674 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14679 # Assume we'll default to using the included libiberty regex.
14680 gdb_use_included_regex
=yes
14682 # However, if the system regex is GNU regex, then default to *not*
14683 # using the included regex.
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14685 $as_echo_n "checking for GNU regex... " >&6; }
14686 if ${gdb_cv_have_gnu_regex+:} false
; then :
14687 $as_echo_n "(cached) " >&6
14689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14690 /* end confdefs.h. */
14691 #include <gnu-versions.h>
14695 #define REGEX_INTERFACE_VERSION 1
14696 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14697 # error "Version mismatch"
14703 if ac_fn_c_try_compile
"$LINENO"; then :
14704 gdb_cv_have_gnu_regex
=yes
14706 gdb_cv_have_gnu_regex
=no
14708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14711 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14712 if test $gdb_cv_have_gnu_regex = yes; then
14713 gdb_use_included_regex
=no
14717 # Check whether --with-included-regex was given.
14718 if test "${with_included_regex+set}" = set; then :
14719 withval
=$with_included_regex; gdb_with_regex
=$withval
14721 gdb_with_regex
=$gdb_use_included_regex
14724 if test "$gdb_with_regex" = yes; then
14726 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14730 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14731 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14732 #include <sys/proc.h>
14735 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
14737 cat >>confdefs.h
<<_ACEOF
14738 #define HAVE_STRUCT_THREAD_TD_PCB 1
14745 # See if <sys/lwp.h> defines `struct lwp`.
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14747 $as_echo_n "checking for struct lwp... " >&6; }
14748 if ${gdb_cv_struct_lwp+:} false
; then :
14749 $as_echo_n "(cached) " >&6
14751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753 #include <sys/param.h>
14755 #include <sys/lwp.h>
14764 if ac_fn_c_try_compile
"$LINENO"; then :
14765 gdb_cv_struct_lwp
=yes
14767 gdb_cv_struct_lwp
=no
14769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14772 $as_echo "$gdb_cv_struct_lwp" >&6; }
14773 if test $gdb_cv_struct_lwp = yes; then
14775 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14779 # See if <machine/reg.h> degines `struct reg'.
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14781 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14782 if ${gdb_cv_struct_reg+:} false
; then :
14783 $as_echo_n "(cached) " >&6
14785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14787 #include <sys/types.h>
14788 #include <machine/reg.h>
14797 if ac_fn_c_try_compile
"$LINENO"; then :
14798 gdb_cv_struct_reg
=yes
14800 gdb_cv_struct_reg
=no
14802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14805 $as_echo "$gdb_cv_struct_reg" >&6; }
14806 if test $gdb_cv_struct_reg = yes; then
14808 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14812 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14813 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14814 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14815 #include <machine/reg.h>
14817 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
14819 cat >>confdefs.h
<<_ACEOF
14820 #define HAVE_STRUCT_REG_R_FS 1
14825 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14826 #include <machine/reg.h>
14828 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
14830 cat >>confdefs.h
<<_ACEOF
14831 #define HAVE_STRUCT_REG_R_GS 1
14838 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14839 # Older amd64 Linux's don't have the fs_base and gs_base members of
14840 # `struct user_regs_struct'.
14841 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>
14842 #include <sys/user.h>
14844 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
14846 cat >>confdefs.h
<<_ACEOF
14847 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14852 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>
14853 #include <sys/user.h>
14855 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14857 cat >>confdefs.h
<<_ACEOF
14858 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14865 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14867 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14868 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14869 $as_echo_n "(cached) " >&6
14871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14872 /* end confdefs.h. */
14873 #include <sys/ptrace.h>
14882 if ac_fn_c_try_compile
"$LINENO"; then :
14883 gdb_cv_have_ptrace_getregs
=yes
14885 gdb_cv_have_ptrace_getregs
=no
14887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14891 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14892 if test $gdb_cv_have_ptrace_getregs = yes; then
14894 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14898 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14900 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14901 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14902 $as_echo_n "(cached) " >&6
14904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906 #include <sys/ptrace.h>
14915 if ac_fn_c_try_compile
"$LINENO"; then :
14916 gdb_cv_have_ptrace_getfpxregs
=yes
14918 gdb_cv_have_ptrace_getfpxregs
=no
14920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14924 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14925 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14927 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14931 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14933 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14934 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
14935 $as_echo_n "(cached) " >&6
14937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14939 #include <sys/types.h>
14940 #include <sys/ptrace.h>
14949 if ac_fn_c_try_compile
"$LINENO"; then :
14950 gdb_cv_have_pt_getdbregs
=yes
14952 gdb_cv_have_pt_getdbregs
=no
14954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14958 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14959 if test $gdb_cv_have_pt_getdbregs = yes; then
14961 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14965 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14967 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14968 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
14969 $as_echo_n "(cached) " >&6
14971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14973 #include <sys/types.h>
14974 #include <sys/ptrace.h>
14983 if ac_fn_c_try_compile
"$LINENO"; then :
14984 gdb_cv_have_pt_getxmmregs
=yes
14986 gdb_cv_have_pt_getxmmregs
=no
14988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14992 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14993 if test $gdb_cv_have_pt_getxmmregs = yes; then
14995 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14999 # See if <sys/ptrace.h> supports LWP names on FreeBSD
15000 # Older FreeBSD versions don't have the pl_tdname member of
15001 # `struct ptrace_lwpinfo'.
15002 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
15004 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
15006 cat >>confdefs.h
<<_ACEOF
15007 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
15014 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
15015 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
15017 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>
15019 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
15021 cat >>confdefs.h
<<_ACEOF
15022 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
15029 if test "$ac_cv_header_sys_procfs_h" = yes; then
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
15031 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
15032 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
15033 $as_echo_n "(cached) " >&6
15035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15036 /* end confdefs.h. */
15039 /* Needed for new procfs interface on sparc-solaris. */
15040 #define _STRUCTURED_PROC 1
15041 #include <sys/procfs.h>
15050 if ac_fn_c_try_compile
"$LINENO"; then :
15051 bfd_cv_have_sys_procfs_type_gregset_t
=yes
15053 bfd_cv_have_sys_procfs_type_gregset_t
=no
15056 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15059 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
15061 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
15065 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
15068 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
15069 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
15070 $as_echo_n "(cached) " >&6
15072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15076 /* Needed for new procfs interface on sparc-solaris. */
15077 #define _STRUCTURED_PROC 1
15078 #include <sys/procfs.h>
15087 if ac_fn_c_try_compile
"$LINENO"; then :
15088 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
15090 bfd_cv_have_sys_procfs_type_fpregset_t
=no
15093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15096 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
15098 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
15102 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
15105 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
15106 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
15107 $as_echo_n "(cached) " >&6
15109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15110 /* end confdefs.h. */
15113 /* Needed for new procfs interface on sparc-solaris. */
15114 #define _STRUCTURED_PROC 1
15115 #include <sys/procfs.h>
15124 if ac_fn_c_try_compile
"$LINENO"; then :
15125 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
15127 bfd_cv_have_sys_procfs_type_prgregset_t
=no
15130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15133 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
15135 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
15139 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
15142 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
15143 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
15144 $as_echo_n "(cached) " >&6
15146 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15150 /* Needed for new procfs interface on sparc-solaris. */
15151 #define _STRUCTURED_PROC 1
15152 #include <sys/procfs.h>
15161 if ac_fn_c_try_compile
"$LINENO"; then :
15162 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
15164 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
15167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15170 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
15172 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
15176 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
15179 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
15180 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
15181 $as_echo_n "(cached) " >&6
15183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15187 /* Needed for new procfs interface on sparc-solaris. */
15188 #define _STRUCTURED_PROC 1
15189 #include <sys/procfs.h>
15198 if ac_fn_c_try_compile
"$LINENO"; then :
15199 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
15201 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
15204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15207 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
15209 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
15213 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
15216 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
15217 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
15218 $as_echo_n "(cached) " >&6
15220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15224 /* Needed for new procfs interface on sparc-solaris. */
15225 #define _STRUCTURED_PROC 1
15226 #include <sys/procfs.h>
15235 if ac_fn_c_try_compile
"$LINENO"; then :
15236 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
15238 bfd_cv_have_sys_procfs_type_lwpid_t
=no
15241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15244 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
15246 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
15250 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
15253 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
15254 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
15255 $as_echo_n "(cached) " >&6
15257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15261 /* Needed for new procfs interface on sparc-solaris. */
15262 #define _STRUCTURED_PROC 1
15263 #include <sys/procfs.h>
15272 if ac_fn_c_try_compile
"$LINENO"; then :
15273 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
15275 bfd_cv_have_sys_procfs_type_psaddr_t
=no
15278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15281 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
15283 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
15287 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
15290 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
15291 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
15292 $as_echo_n "(cached) " >&6
15294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15295 /* end confdefs.h. */
15298 /* Needed for new procfs interface on sparc-solaris. */
15299 #define _STRUCTURED_PROC 1
15300 #include <sys/procfs.h>
15304 elf_fpregset_t avar
15309 if ac_fn_c_try_compile
"$LINENO"; then :
15310 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
15312 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
15315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15318 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
15320 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
15324 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
15328 # Check if the compiler supports the `long long' type.
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
15331 $as_echo_n "checking for long long support in compiler... " >&6; }
15332 if ${gdb_cv_c_long_long+:} false
; then :
15333 $as_echo_n "(cached) " >&6
15335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15336 /* end confdefs.h. */
15337 extern long long foo;
15341 switch (foo & 2) { case 0: return 1; }
15346 if ac_fn_c_try_compile
"$LINENO"; then :
15347 gdb_cv_c_long_long
=yes
15349 gdb_cv_c_long_long
=no
15351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
15354 $as_echo "$gdb_cv_c_long_long" >&6; }
15355 if test $gdb_cv_c_long_long != yes; then
15356 # libdecnumber requires long long.
15357 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
15360 # Check if the compiler and runtime support printing long longs.
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
15363 $as_echo_n "checking for long long support in printf... " >&6; }
15364 if ${gdb_cv_printf_has_long_long+:} false
; then :
15365 $as_echo_n "(cached) " >&6
15367 if test "$cross_compiling" = yes; then :
15368 gdb_cv_printf_has_long_long
=no
15370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 $ac_includes_default
15378 l = (l << 16) + 0x0123;
15379 l = (l << 16) + 0x4567;
15380 l = (l << 16) + 0x89ab;
15381 l = (l << 16) + 0xcdef;
15382 sprintf (buf, "0x%016llx", l);
15383 return (strcmp ("0x0123456789abcdef", buf));
15388 if ac_fn_c_try_run
"$LINENO"; then :
15389 gdb_cv_printf_has_long_long
=yes
15391 gdb_cv_printf_has_long_long
=no
15393 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15394 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
15399 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
15400 if test $gdb_cv_printf_has_long_long = yes; then
15402 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
15406 # Check if the compiler and runtime support printing decfloats.
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
15409 $as_echo_n "checking for decfloat support in printf... " >&6; }
15410 if ${gdb_cv_printf_has_decfloat+:} false
; then :
15411 $as_echo_n "(cached) " >&6
15413 if test "$cross_compiling" = yes; then :
15414 gdb_cv_printf_has_decfloat
=no
15416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15417 /* end confdefs.h. */
15418 $ac_includes_default
15423 _Decimal32 d32 = 1.2345df;
15424 _Decimal64 d64 = 1.2345dd;
15425 _Decimal128 d128 = 1.2345dl;
15426 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
15427 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
15432 if ac_fn_c_try_run
"$LINENO"; then :
15433 gdb_cv_printf_has_decfloat
=yes
15435 gdb_cv_printf_has_decfloat
=no
15437 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15438 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
15443 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
15444 if test $gdb_cv_printf_has_decfloat = yes; then
15446 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
15450 # Check if the compiler supports the `long double' type. We can't use
15451 # AC_C_LONG_DOUBLE because that one does additional checks on the
15452 # constants defined in <float.h> that fail on some systems,
15453 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
15456 $as_echo_n "checking for long double support in compiler... " >&6; }
15457 if ${gdb_cv_c_long_double+:} false
; then :
15458 $as_echo_n "(cached) " >&6
15460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15461 /* end confdefs.h. */
15464 if ac_fn_c_try_compile
"$LINENO"; then :
15465 gdb_cv_c_long_double
=yes
15467 gdb_cv_c_long_double
=no
15469 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
15472 $as_echo "$gdb_cv_c_long_double" >&6; }
15473 if test $gdb_cv_c_long_double = yes; then
15475 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15479 # Check if the compiler and runtime support printing long doubles.
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
15482 $as_echo_n "checking for long double support in printf... " >&6; }
15483 if ${gdb_cv_printf_has_long_double+:} false
; then :
15484 $as_echo_n "(cached) " >&6
15486 if test "$cross_compiling" = yes; then :
15487 gdb_cv_printf_has_long_double
=no
15489 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15491 $ac_includes_default
15496 long double f = 3.141592653;
15497 sprintf (buf, "%Lg", f);
15498 return (strncmp ("3.14159", buf, 7));
15503 if ac_fn_c_try_run
"$LINENO"; then :
15504 gdb_cv_printf_has_long_double
=yes
15506 gdb_cv_printf_has_long_double
=no
15508 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15509 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
15514 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
15515 if test $gdb_cv_printf_has_long_double = yes; then
15517 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
15521 # Check if the compiler and runtime support scanning long doubles.
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
15524 $as_echo_n "checking for long double support in scanf... " >&6; }
15525 if ${gdb_cv_scanf_has_long_double+:} false
; then :
15526 $as_echo_n "(cached) " >&6
15528 if test "$cross_compiling" = yes; then :
15529 gdb_cv_scanf_has_long_double
=no
15531 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15532 /* end confdefs.h. */
15537 char *buf = "3.141592653";
15539 sscanf (buf, "%Lg", &f);
15540 return !(f > 3.14159 && f < 3.14160);
15545 if ac_fn_c_try_run
"$LINENO"; then :
15546 gdb_cv_scanf_has_long_double
=yes
15548 gdb_cv_scanf_has_long_double
=no
15550 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15551 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
15556 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
15557 if test $gdb_cv_scanf_has_long_double = yes; then
15559 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
15566 $as_echo_n "checking for -bbigtoc option... " >&6; }
15567 if ${gdb_cv_bigtoc+:} false
; then :
15568 $as_echo_n "(cached) " >&6
15571 SAVE_LDFLAGS
=$LDFLAGS
15574 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
15575 *) gdb_cv_bigtoc
=-bbigtoc ;;
15578 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
15579 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15580 /* end confdefs.h. */
15590 if ac_fn_c_try_link
"$LINENO"; then :
15595 rm -f core conftest.err conftest.
$ac_objext \
15596 conftest
$ac_exeext conftest.
$ac_ext
15597 LDFLAGS
="${SAVE_LDFLAGS}"
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
15601 $as_echo "$gdb_cv_bigtoc" >&6; }
15602 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
15607 $as_echo_n "checking for the dynamic export flag... " >&6; }
15609 if test "${gdb_native}" = yes; then
15610 # The dynamically loaded libthread_db needs access to symbols in the gdb
15611 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
15612 # may not be supported there.
15613 old_LDFLAGS
="$LDFLAGS"
15614 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
15615 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
15616 LDFLAGS
="$LDFLAGS $RDYNAMIC"
15617 if test "${have_libpython}" = no
; then
15618 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15619 /* end confdefs.h. */
15629 if ac_fn_c_try_link
"$LINENO"; then :
15632 rm -f core conftest.err conftest.
$ac_objext \
15633 conftest
$ac_exeext conftest.
$ac_ext
15635 # Workaround http://bugs.python.org/issue4434 where static
15636 # libpythonX.Y.a would get its symbols required for
15637 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15638 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15640 # Note the workaround for Python
15641 # http://bugs.python.org/issue10112 earlier has removed
15642 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15643 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15645 old_CFLAGS
="$CFLAGS"
15646 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15648 LIBS
="$LIBS $PYTHON_LIBS"
15649 old_CPPFLAGS
="$CPPFLAGS"
15650 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15651 if test "$cross_compiling" = yes; then :
15654 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15656 #include "Python.h"
15662 err = PyRun_SimpleString ("import itertools\n");
15664 return err == 0 ? 0 : 1;
15669 if ac_fn_c_try_run
"$LINENO"; then :
15672 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15673 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15677 CFLAGS
="$old_CFLAGS"
15678 CPPFLAGS
="$old_CPPFLAGS"
15680 LDFLAGS
="$old_LDFLAGS"
15682 if $dynamic_list; then
15683 found
="-Wl,--dynamic-list"
15684 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15687 RDYNAMIC
="-rdynamic"
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15691 $as_echo "$found" >&6; }
15694 if test ${build} = ${host} -a ${host} = ${target} ; then
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15698 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15699 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15700 $as_echo_n "(cached) " >&6
15702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15703 /* end confdefs.h. */
15704 #include <sys/pthdebug.h>
15708 #ifndef PTHDB_VERSION_3
15715 if ac_fn_c_try_compile
"$LINENO"; then :
15716 gdb_cv_have_aix_thread_debug
=yes
15718 gdb_cv_have_aix_thread_debug
=no
15720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15724 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15725 if test $gdb_cv_have_aix_thread_debug = yes; then
15726 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15727 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15728 LIBS
="$LIBS -lpthdebug"
15730 # Older versions of AIX do not provide the declaration for
15731 # the getthrds function (it appears that it was introduced
15733 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15735 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
15741 cat >>confdefs.h
<<_ACEOF
15742 #define HAVE_DECL_GETTHRDS $ac_have_decl
15751 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15753 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15754 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
15755 $as_echo_n "(cached) " >&6
15757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759 #include <thread_db.h>
15763 int i = TD_NOTALLOC;
15768 if ac_fn_c_try_compile
"$LINENO"; then :
15769 gdb_cv_thread_db_h_has_td_notalloc
=yes
15771 gdb_cv_thread_db_h_has_td_notalloc
=no
15774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15778 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15780 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15781 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
15782 $as_echo_n "(cached) " >&6
15784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h. */
15786 #include <thread_db.h>
15790 int i = TD_VERSION;
15795 if ac_fn_c_try_compile
"$LINENO"; then :
15796 gdb_cv_thread_db_h_has_td_version
=yes
15798 gdb_cv_thread_db_h_has_td_version
=no
15801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15805 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15807 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15808 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
15809 $as_echo_n "(cached) " >&6
15811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 #include <thread_db.h>
15822 if ac_fn_c_try_compile
"$LINENO"; then :
15823 gdb_cv_thread_db_h_has_td_notls
=yes
15825 gdb_cv_thread_db_h_has_td_notls
=no
15828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15832 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15834 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15836 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15839 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15841 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15844 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15846 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15850 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15852 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15858 cat >>confdefs.h
<<_ACEOF
15859 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15863 if test "$cross_compiling" = yes; then :
15864 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15865 /* end confdefs.h. */
15866 #include <sys/personality.h>
15871 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15872 # define ADDR_NO_RANDOMIZE 0x0040000
15874 /* Test the flag could be set and stays set. */
15875 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15876 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15882 if ac_fn_c_try_link
"$LINENO"; then :
15883 have_personality
=true
15885 have_personality
=false
15887 rm -f core conftest.err conftest.
$ac_objext \
15888 conftest
$ac_exeext conftest.
$ac_ext
15890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15892 #include <sys/personality.h>
15897 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15898 # define ADDR_NO_RANDOMIZE 0x0040000
15900 /* Test the flag could be set and stays set. */
15901 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15902 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15908 if ac_fn_c_try_run
"$LINENO"; then :
15909 have_personality
=true
15911 have_personality
=false
15913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15914 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15917 if $have_personality
15920 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15933 cat >>confdefs.h
<<_ACEOF
15934 #define GDBINIT "$gdbinit"
15939 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15940 # except that the argument to --with-sysroot is optional.
15941 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15942 if test "x$with_sysroot" = xyes
; then
15943 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15946 # Check whether --with-sysroot was given.
15947 if test "${with_sysroot+set}" = set; then :
15948 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15950 TARGET_SYSTEM_ROOT
=
15954 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15955 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15956 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15957 ac_define_dir
=`eval echo $ac_define_dir`
15959 cat >>confdefs.h
<<_ACEOF
15960 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15966 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15967 if test "x$prefix" = xNONE
; then
15968 test_prefix
=/usr
/local
15970 test_prefix
=$prefix
15973 test_prefix
=$exec_prefix
15976 case ${ac_define_dir} in
15977 "${test_prefix}"|
"${test_prefix}/"*|\
15978 '${exec_prefix}'|
'${exec_prefix}/'*)
15983 cat >>confdefs.h
<<_ACEOF
15984 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15991 # Check whether --with-system-gdbinit was given.
15992 if test "${with_system_gdbinit+set}" = set; then :
15993 withval
=$with_system_gdbinit;
15994 SYSTEM_GDBINIT
=$withval
16000 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16001 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16002 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
16003 ac_define_dir
=`eval echo $ac_define_dir`
16005 cat >>confdefs.h
<<_ACEOF
16006 #define SYSTEM_GDBINIT "$ac_define_dir"
16012 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16013 if test "x$prefix" = xNONE
; then
16014 test_prefix
=/usr
/local
16016 test_prefix
=$prefix
16019 test_prefix
=$exec_prefix
16022 case ${ac_define_dir} in
16023 "${test_prefix}"|
"${test_prefix}/"*|\
16024 '${exec_prefix}'|
'${exec_prefix}/'*)
16029 cat >>confdefs.h
<<_ACEOF
16030 #define SYSTEM_GDBINIT_RELOCATABLE $value
16037 # Check whether --with-system-gdbinit-dir was given.
16038 if test "${with_system_gdbinit_dir+set}" = set; then :
16039 withval
=$with_system_gdbinit_dir;
16040 SYSTEM_GDBINIT_DIR
=$withval
16042 SYSTEM_GDBINIT_DIR
=
16046 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
16047 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16048 ac_define_dir
=`eval echo $SYSTEM_GDBINIT_DIR`
16049 ac_define_dir
=`eval echo $ac_define_dir`
16051 cat >>confdefs.h
<<_ACEOF
16052 #define SYSTEM_GDBINIT_DIR "$ac_define_dir"
16058 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
16059 if test "x$prefix" = xNONE
; then
16060 test_prefix
=/usr
/local
16062 test_prefix
=$prefix
16065 test_prefix
=$exec_prefix
16068 case ${ac_define_dir} in
16069 "${test_prefix}"|
"${test_prefix}/"*|\
16070 '${exec_prefix}'|
'${exec_prefix}/'*)
16075 cat >>confdefs.h
<<_ACEOF
16076 #define SYSTEM_GDBINIT_DIR_RELOCATABLE $value
16083 # Check whether --enable-werror was given.
16084 if test "${enable_werror+set}" = set; then :
16085 enableval
=$enable_werror; case "${enableval}" in
16086 yes | y
) ERROR_ON_WARNING
="yes" ;;
16087 no | n
) ERROR_ON_WARNING
="no" ;;
16088 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
16093 # Enable -Werror by default when using gcc. Turn it off for releases.
16094 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
16095 ERROR_ON_WARNING
=yes
16099 if test "${ERROR_ON_WARNING}" = yes ; then
16100 WERROR_CFLAGS
="-Werror"
16103 # The options we'll try to enable.
16104 build_warnings
="-Wall -Wpointer-arith \
16105 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
16106 -Wno-switch -Wno-char-subscripts \
16107 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
16108 -Wno-sign-compare -Wno-error=maybe-uninitialized \
16109 -Wno-mismatched-tags \
16110 -Wno-error=deprecated-register \
16111 -Wsuggest-override \
16112 -Wimplicit-fallthrough=3 \
16113 -Wduplicated-cond \
16115 -Wdeprecated-copy \
16116 -Wdeprecated-copy-dtor \
16121 # Enable -Wno-format by default when using gcc on mingw since many
16122 # GCC versions complain about %I64.
16123 build_warnings
="$build_warnings -Wno-format" ;;
16125 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
16126 # doesn't understand.
16127 build_warnings
="$build_warnings -Wno-unknown-pragmas"
16128 # Solaris 11 <unistd.h> marks vfork deprecated.
16129 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
16131 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
16132 # but there's a special case for this below.
16133 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
16136 # Check whether --enable-build-warnings was given.
16137 if test "${enable_build_warnings+set}" = set; then :
16138 enableval
=$enable_build_warnings; case "${enableval}" in
16140 no
) build_warnings
="-w";;
16141 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16142 build_warnings
="${build_warnings} ${t}";;
16143 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16144 build_warnings
="${t} ${build_warnings}";;
16145 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16147 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16148 echo "Setting compiler warning flags = $build_warnings" 6>&1
16151 # Check whether --enable-gdb-build-warnings was given.
16152 if test "${enable_gdb_build_warnings+set}" = set; then :
16153 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
16155 no
) build_warnings
="-w";;
16156 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16157 build_warnings
="${build_warnings} ${t}";;
16158 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
16159 build_warnings
="${t} ${build_warnings}";;
16160 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
16162 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
16163 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
16167 # The set of warnings supported by a C++ compiler is not the same as
16168 # of the C compiler.
16170 ac_cpp
='$CXXCPP $CPPFLAGS'
16171 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16172 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16173 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
16177 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
16180 $as_echo_n "checking compiler warning flags... " >&6; }
16181 # Separate out the -Werror flag as some files just cannot be
16182 # compiled with it enabled.
16183 for w
in ${build_warnings}; do
16184 # GCC does not complain about -Wno-unknown-warning. Invert
16185 # and test -Wunknown-warning instead.
16188 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
16189 -Wformat-nonliteral)
16190 # gcc requires -Wformat before -Wformat-nonliteral
16191 # will work, so stick them together.
16200 -Werr*) WERROR_CFLAGS
=-Werror ;;
16202 # Check whether GCC accepts it.
16203 saved_CFLAGS
="$CFLAGS"
16204 CFLAGS
="$CFLAGS -Werror $wtest"
16205 saved_CXXFLAGS
="$CXXFLAGS"
16206 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
16207 if test "x$w" = "x-Wunused-variable"; then
16208 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
16209 # fixed in GCC 4.9. This test is derived from the gdb
16210 # source code that triggered this bug in GCC.
16211 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16213 struct scoped_restore_base {};
16214 struct scoped_restore_tmpl : public scoped_restore_base {
16215 ~scoped_restore_tmpl() {}
16220 const scoped_restore_base &b = scoped_restore_tmpl();
16225 if ac_fn_cxx_try_compile
"$LINENO"; then :
16226 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16231 /* end confdefs.h. */
16241 if ac_fn_cxx_try_compile
"$LINENO"; then :
16242 WARN_CFLAGS
="${WARN_CFLAGS} $w"
16244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
16246 CFLAGS
="$saved_CFLAGS"
16247 CXXFLAGS
="$saved_CXXFLAGS"
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
16251 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
16257 ac_cpp='$CPP $CPPFLAGS'
16258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16264 # Check whether --enable-ubsan was given.
16265 if test "${enable_ubsan+set}" = set; then :
16266 enableval=$enable_ubsan;
16271 if test "x
$enable_ubsan" = xauto; then
16272 if $development; then
16277 ac_cpp='$CXXCPP $CPPFLAGS'
16278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16282 if test "x
$enable_ubsan" = xyes; then
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
16284 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
16285 saved_CXXFLAGS="$CXXFLAGS"
16286 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16298 if ac_fn_cxx_try_link "$LINENO"; then :
16303 rm -f core conftest.err conftest.$ac_objext \
16304 conftest$ac_exeext conftest.$ac_ext
16305 CXXFLAGS="$saved_CXXFLAGS"
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
16307 $as_echo "$enable_ubsan" >&6; }
16308 if test "x
$enable_ubsan" = xyes; then
16309 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
16310 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
16314 ac_cpp='$CPP $CPPFLAGS'
16315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16321 # In the Cygwin environment, we need some additional flags.
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
16323 $as_echo_n "checking
for cygwin...
" >&6; }
16324 if ${gdb_cv_os_cygwin+:} false; then :
16325 $as_echo_n "(cached
) " >&6
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16330 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
16334 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
16335 $EGREP "^lose$
" >/dev/null 2>&1; then :
16336 gdb_cv_os_cygwin=yes
16338 gdb_cv_os_cygwin=no
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
16344 $as_echo "$gdb_cv_os_cygwin" >&6; }
16347 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
16349 *go32* ) SER_HARDWIRE=ser-go32.o ;;
16350 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
16351 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
16352 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
16356 # libreadline needs libuser32.a in a cygwin environment
16358 if test x$gdb_cv_os_cygwin = xyes; then
16359 WIN32LIBS="-luser32"
16360 case "${target}" in
16361 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
16366 # The ser-tcp.c module requires sockets.
16370 $as_echo "#define USE_WIN32API 1" >>confdefs.h
16372 WIN32LIBS
="$WIN32LIBS -lws2_32"
16377 # Add ELF support to GDB, but only if BFD includes ELF support.
16380 OLD_LDFLAGS
=$LDFLAGS
16382 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16383 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16384 # always want our bfd.
16385 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16386 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16387 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16388 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16389 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
16391 $as_echo_n "checking for ELF support in BFD... " >&6; }
16392 if ${gdb_cv_var_elf+:} false
; then :
16393 $as_echo_n "(cached) " >&6
16395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16396 /* end confdefs.h. */
16397 #include <stdlib.h>
16399 #include "elf-bfd.h"
16404 return bfd_get_elf_phdr_upper_bound (NULL);
16409 if ac_fn_c_try_link
"$LINENO"; then :
16414 rm -f core conftest.err conftest.
$ac_objext \
16415 conftest
$ac_exeext conftest.
$ac_ext
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
16418 $as_echo "$gdb_cv_var_elf" >&6; }
16420 LDFLAGS
=$OLD_LDFLAGS
16422 if test $gdb_cv_var_elf = yes; then
16423 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
16425 $as_echo "#define HAVE_ELF 1" >>confdefs.h
16427 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
16428 if test "$plugins" = "yes"; then
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16430 $as_echo_n "checking for library containing dlopen... " >&6; }
16431 if ${ac_cv_search_dlopen+:} false
; then :
16432 $as_echo_n "(cached) " >&6
16434 ac_func_search_save_LIBS
=$LIBS
16435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16438 /* Override any GCC internal prototype to avoid an error.
16439 Use char because int might match the return type of a GCC
16440 builtin and then its argument prototype would still apply. */
16453 for ac_lib
in '' dl
; do
16454 if test -z "$ac_lib"; then
16455 ac_res
="none required"
16458 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16460 if ac_fn_c_try_link
"$LINENO"; then :
16461 ac_cv_search_dlopen
=$ac_res
16463 rm -f core conftest.err conftest.
$ac_objext \
16465 if ${ac_cv_search_dlopen+:} false
; then :
16469 if ${ac_cv_search_dlopen+:} false
; then :
16472 ac_cv_search_dlopen
=no
16474 rm conftest.
$ac_ext
16475 LIBS
=$ac_func_search_save_LIBS
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16478 $as_echo "$ac_cv_search_dlopen" >&6; }
16479 ac_res
=$ac_cv_search_dlopen
16480 if test "$ac_res" != no
; then :
16481 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16488 # Add macho support to GDB, but only if BFD includes it.
16491 OLD_LDFLAGS
=$LDFLAGS
16493 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
16494 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
16495 # always want our bfd.
16496 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
16497 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
16498 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
16499 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
16500 LIBS
="-lbfd -liberty -lz $intl $LIBS"
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
16502 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
16503 if ${gdb_cv_var_macho+:} false
; then :
16504 $as_echo_n "(cached) " >&6
16506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16507 /* end confdefs.h. */
16508 #include <stdlib.h>
16510 #include "mach-o.h"
16515 return bfd_mach_o_lookup_command (NULL, 0, NULL);
16520 if ac_fn_c_try_link
"$LINENO"; then :
16521 gdb_cv_var_macho
=yes
16523 gdb_cv_var_macho
=no
16525 rm -f core conftest.err conftest.
$ac_objext \
16526 conftest
$ac_exeext conftest.
$ac_ext
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
16529 $as_echo "$gdb_cv_var_macho" >&6; }
16531 LDFLAGS
=$OLD_LDFLAGS
16533 if test $gdb_cv_var_macho = yes; then
16534 CONFIG_OBS
="$CONFIG_OBS machoread.o"
16537 # Add any host-specific objects to GDB.
16538 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
16540 # If building on ELF, look for lzma support for embedded compressed debug info.
16541 if test $gdb_cv_var_elf = yes; then
16543 # Check whether --with-lzma was given.
16544 if test "${with_lzma+set}" = set; then :
16545 withval
=$with_lzma;
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
16551 $as_echo_n "checking whether to use lzma... " >&6; }
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
16553 $as_echo "$with_lzma" >&6; }
16555 if test "${with_lzma}" != no
; then
16566 acl_save_prefix
="$prefix"
16567 prefix
="$acl_final_prefix"
16568 acl_save_exec_prefix
="$exec_prefix"
16569 exec_prefix
="$acl_final_exec_prefix"
16571 eval additional_includedir
=\"$includedir\"
16572 eval additional_libdir
=\"$libdir\"
16574 exec_prefix
="$acl_save_exec_prefix"
16575 prefix
="$acl_save_prefix"
16578 # Check whether --with-liblzma-prefix was given.
16579 if test "${with_liblzma_prefix+set}" = set; then :
16580 withval
=$with_liblzma_prefix;
16581 if test "X$withval" = "Xno"; then
16584 if test "X$withval" = "X"; then
16586 acl_save_prefix
="$prefix"
16587 prefix
="$acl_final_prefix"
16588 acl_save_exec_prefix
="$exec_prefix"
16589 exec_prefix
="$acl_final_exec_prefix"
16591 eval additional_includedir
=\"$includedir\"
16592 eval additional_libdir
=\"$libdir\"
16594 exec_prefix
="$acl_save_exec_prefix"
16595 prefix
="$acl_save_prefix"
16598 additional_includedir
="$withval/include"
16599 additional_libdir
="$withval/lib"
16610 names_already_handled
=
16611 names_next_round
='lzma '
16612 while test -n "$names_next_round"; do
16613 names_this_round
="$names_next_round"
16615 for name
in $names_this_round; do
16617 for n
in $names_already_handled; do
16618 if test "$n" = "$name"; then
16619 already_handled
=yes
16623 if test -z "$already_handled"; then
16624 names_already_handled
="$names_already_handled $name"
16625 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16626 eval value
=\"\
$HAVE_LIB$uppername\"
16627 if test -n "$value"; then
16628 if test "$value" = yes; then
16629 eval value
=\"\
$LIB$uppername\"
16630 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
16631 eval value
=\"\
$LTLIB$uppername\"
16632 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
16641 if test $use_additional = yes; then
16642 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16643 found_dir
="$additional_libdir"
16644 found_so
="$additional_libdir/lib$name.$shlibext"
16645 if test -f "$additional_libdir/lib$name.la"; then
16646 found_la
="$additional_libdir/lib$name.la"
16649 if test -f "$additional_libdir/lib$name.$libext"; then
16650 found_dir
="$additional_libdir"
16651 found_a
="$additional_libdir/lib$name.$libext"
16652 if test -f "$additional_libdir/lib$name.la"; then
16653 found_la
="$additional_libdir/lib$name.la"
16658 if test "X$found_dir" = "X"; then
16659 for x
in $LDFLAGS $LTLIBLZMA; do
16661 acl_save_prefix
="$prefix"
16662 prefix
="$acl_final_prefix"
16663 acl_save_exec_prefix
="$exec_prefix"
16664 exec_prefix
="$acl_final_exec_prefix"
16666 exec_prefix
="$acl_save_exec_prefix"
16667 prefix
="$acl_save_prefix"
16671 dir
=`echo "X$x" | sed -e 's/^X-L//'`
16672 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16674 found_so
="$dir/lib$name.$shlibext"
16675 if test -f "$dir/lib$name.la"; then
16676 found_la
="$dir/lib$name.la"
16679 if test -f "$dir/lib$name.$libext"; then
16681 found_a
="$dir/lib$name.$libext"
16682 if test -f "$dir/lib$name.la"; then
16683 found_la
="$dir/lib$name.la"
16689 if test "X$found_dir" != "X"; then
16694 if test "X$found_dir" != "X"; then
16695 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
16696 if test "X$found_so" != "X"; then
16697 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16698 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16701 for x
in $ltrpathdirs; do
16702 if test "X$x" = "X$found_dir"; then
16707 if test -z "$haveit"; then
16708 ltrpathdirs
="$ltrpathdirs $found_dir"
16710 if test "$hardcode_direct" = yes; then
16711 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16713 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16714 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16716 for x
in $rpathdirs; do
16717 if test "X$x" = "X$found_dir"; then
16722 if test -z "$haveit"; then
16723 rpathdirs
="$rpathdirs $found_dir"
16727 for x
in $LDFLAGS $LIBLZMA; do
16729 acl_save_prefix
="$prefix"
16730 prefix
="$acl_final_prefix"
16731 acl_save_exec_prefix
="$exec_prefix"
16732 exec_prefix
="$acl_final_exec_prefix"
16734 exec_prefix
="$acl_save_exec_prefix"
16735 prefix
="$acl_save_prefix"
16737 if test "X$x" = "X-L$found_dir"; then
16742 if test -z "$haveit"; then
16743 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16745 if test "$hardcode_minus_L" != no
; then
16746 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16748 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16754 if test "X$found_a" != "X"; then
16755 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16757 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16760 additional_includedir
=
16761 case "$found_dir" in
16763 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16764 additional_includedir
="$basedir/include"
16767 if test "X$additional_includedir" != "X"; then
16768 if test "X$additional_includedir" != "X/usr/include"; then
16770 if test "X$additional_includedir" = "X/usr/local/include"; then
16771 if test -n "$GCC"; then
16773 linux
*) haveit
=yes;;
16777 if test -z "$haveit"; then
16778 for x
in $CPPFLAGS $INCLZMA; do
16780 acl_save_prefix
="$prefix"
16781 prefix
="$acl_final_prefix"
16782 acl_save_exec_prefix
="$exec_prefix"
16783 exec_prefix
="$acl_final_exec_prefix"
16785 exec_prefix
="$acl_save_exec_prefix"
16786 prefix
="$acl_save_prefix"
16788 if test "X$x" = "X-I$additional_includedir"; then
16793 if test -z "$haveit"; then
16794 if test -d "$additional_includedir"; then
16795 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16801 if test -n "$found_la"; then
16802 save_libdir
="$libdir"
16803 case "$found_la" in
16804 */* |
*\\*) .
"$found_la" ;;
16805 *) .
"./$found_la" ;;
16807 libdir
="$save_libdir"
16808 for dep
in $dependency_libs; do
16811 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16812 if test "X$additional_libdir" != "X/usr/lib"; then
16814 if test "X$additional_libdir" = "X/usr/local/lib"; then
16815 if test -n "$GCC"; then
16817 linux
*) haveit
=yes;;
16821 if test -z "$haveit"; then
16823 for x
in $LDFLAGS $LIBLZMA; do
16825 acl_save_prefix
="$prefix"
16826 prefix
="$acl_final_prefix"
16827 acl_save_exec_prefix
="$exec_prefix"
16828 exec_prefix
="$acl_final_exec_prefix"
16830 exec_prefix
="$acl_save_exec_prefix"
16831 prefix
="$acl_save_prefix"
16833 if test "X$x" = "X-L$additional_libdir"; then
16838 if test -z "$haveit"; then
16839 if test -d "$additional_libdir"; then
16840 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16844 for x
in $LDFLAGS $LTLIBLZMA; do
16846 acl_save_prefix
="$prefix"
16847 prefix
="$acl_final_prefix"
16848 acl_save_exec_prefix
="$exec_prefix"
16849 exec_prefix
="$acl_final_exec_prefix"
16851 exec_prefix
="$acl_save_exec_prefix"
16852 prefix
="$acl_save_prefix"
16854 if test "X$x" = "X-L$additional_libdir"; then
16859 if test -z "$haveit"; then
16860 if test -d "$additional_libdir"; then
16861 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16868 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16869 if test "$enable_rpath" != no
; then
16871 for x
in $rpathdirs; do
16872 if test "X$x" = "X$dir"; then
16877 if test -z "$haveit"; then
16878 rpathdirs
="$rpathdirs $dir"
16881 for x
in $ltrpathdirs; do
16882 if test "X$x" = "X$dir"; then
16887 if test -z "$haveit"; then
16888 ltrpathdirs
="$ltrpathdirs $dir"
16893 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16896 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16899 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16900 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16906 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16907 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16913 if test "X$rpathdirs" != "X"; then
16914 if test -n "$hardcode_libdir_separator"; then
16916 for found_dir
in $rpathdirs; do
16917 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16919 acl_save_libdir
="$libdir"
16921 eval flag
=\"$hardcode_libdir_flag_spec\"
16922 libdir
="$acl_save_libdir"
16923 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16925 for found_dir
in $rpathdirs; do
16926 acl_save_libdir
="$libdir"
16927 libdir
="$found_dir"
16928 eval flag
=\"$hardcode_libdir_flag_spec\"
16929 libdir
="$acl_save_libdir"
16930 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16934 if test "X$ltrpathdirs" != "X"; then
16935 for found_dir
in $ltrpathdirs; do
16936 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16941 ac_save_CPPFLAGS
="$CPPFLAGS"
16943 for element
in $INCLZMA; do
16945 for x
in $CPPFLAGS; do
16947 acl_save_prefix
="$prefix"
16948 prefix
="$acl_final_prefix"
16949 acl_save_exec_prefix
="$exec_prefix"
16950 exec_prefix
="$acl_final_exec_prefix"
16952 exec_prefix
="$acl_save_exec_prefix"
16953 prefix
="$acl_save_prefix"
16955 if test "X$x" = "X$element"; then
16960 if test -z "$haveit"; then
16961 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16967 $as_echo_n "checking for liblzma... " >&6; }
16968 if ${ac_cv_liblzma+:} false
; then :
16969 $as_echo_n "(cached) " >&6
16972 ac_save_LIBS
="$LIBS"
16973 LIBS
="$LIBS $LIBLZMA"
16974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16975 /* end confdefs.h. */
16980 lzma_index_iter iter;
16981 lzma_index_iter_init (&iter, 0);
16982 lzma_mf_is_supported (LZMA_MF_HC3);
16987 if ac_fn_c_try_link
"$LINENO"; then :
16992 rm -f core conftest.err conftest.
$ac_objext \
16993 conftest
$ac_exeext conftest.
$ac_ext
16994 LIBS
="$ac_save_LIBS"
16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16998 $as_echo "$ac_cv_liblzma" >&6; }
16999 if test "$ac_cv_liblzma" = yes; then
17002 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
17005 $as_echo_n "checking how to link with liblzma... " >&6; }
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
17007 $as_echo "$LIBLZMA" >&6; }
17010 CPPFLAGS
="$ac_save_CPPFLAGS"
17020 if test "$HAVE_LIBLZMA" != yes; then
17021 if test "$with_lzma" = yes; then
17022 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
17028 LIBGUI
="../libgui/src/libgui.a"
17029 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
17038 *-*-cygwin* |
*-*-mingw* )
17047 if test "${enable_gdbtk}" = "yes"; then
17049 # Gdbtk must have an absolute path to srcdir in order to run
17050 # properly when not installed.
17053 GDBTK_SRC_DIR
=`pwd`
17058 # Ok, lets find the tcl configuration
17059 # First, look for one uninstalled.
17060 # the alternative search directory is invoked by --with-tcl
17063 if test x
"${no_tcl}" = x
; then
17064 # we reset no_tcl in case something fails here
17067 # Check whether --with-tcl was given.
17068 if test "${with_tcl+set}" = set; then :
17069 withval
=$with_tcl; with_tclconfig
=${withval}
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
17073 $as_echo_n "checking for Tcl configuration... " >&6; }
17074 if ${ac_cv_c_tclconfig+:} false
; then :
17075 $as_echo_n "(cached) " >&6
17079 # First check to see if --with-tcl was specified.
17081 *-*-cygwin*) platDir
="win" ;;
17082 *) platDir
="unix" ;;
17084 if test x
"${with_tclconfig}" != x
; then
17085 if test -f "${with_tclconfig}/tclConfig.sh" ; then
17086 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
17088 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
17092 # then check for a private Tcl installation
17093 if test x
"${ac_cv_c_tclconfig}" = x
; then
17096 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17097 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
17098 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
17100 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17101 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
17102 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
17104 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17105 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
17106 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
17107 if test -f "$i/$platDir/tclConfig.sh" ; then
17108 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17114 # on Darwin, check in Framework installation locations
17115 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
17116 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17117 `ls -d /Library/Frameworks 2>/dev/null` \
17118 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17119 `ls -d /System/Library/Frameworks 2>/dev/null` \
17121 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
17122 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
17128 # check in a few common install locations
17129 if test x
"${ac_cv_c_tclconfig}" = x
; then
17130 for i
in `ls -d ${libdir} 2>/dev/null` \
17131 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17132 `ls -d ${prefix}/lib 2>/dev/null` \
17133 `ls -d /usr/local/lib 2>/dev/null` \
17134 `ls -d /usr/contrib/lib 2>/dev/null` \
17135 `ls -d /usr/lib 2>/dev/null` \
17137 if test -f "$i/tclConfig.sh" ; then
17138 ac_cv_c_tclconfig
=`(cd $i; pwd)`
17144 # check in a few other private locations
17145 if test x
"${ac_cv_c_tclconfig}" = x
; then
17148 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
17149 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
17150 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
17151 if test -f "$i/$platDir/tclConfig.sh" ; then
17152 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
17161 if test x
"${ac_cv_c_tclconfig}" = x
; then
17162 TCL_BIN_DIR
="# no Tcl configs found"
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
17164 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
17167 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
17169 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17174 # If $no_tk is nonempty, then we can't do Tk, and there is no
17175 # point to doing Tcl.
17178 # Ok, lets find the tk configuration
17179 # First, look for one uninstalled.
17180 # the alternative search directory is invoked by --with-tk
17183 if test x
"${no_tk}" = x
; then
17184 # we reset no_tk in case something fails here
17187 # Check whether --with-tk was given.
17188 if test "${with_tk+set}" = set; then :
17189 withval
=$with_tk; with_tkconfig
=${withval}
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
17193 $as_echo_n "checking for Tk configuration... " >&6; }
17194 if ${ac_cv_c_tkconfig+:} false
; then :
17195 $as_echo_n "(cached) " >&6
17199 # First check to see if --with-tkconfig was specified.
17200 if test x
"${with_tkconfig}" != x
; then
17201 if test -f "${with_tkconfig}/tkConfig.sh" ; then
17202 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
17204 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
17208 # then check for a private Tk library
17210 *-*-cygwin*) platDir
="win" ;;
17211 *) platDir
="unix" ;;
17213 if test x
"${ac_cv_c_tkconfig}" = x
; then
17216 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17217 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
17218 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
17220 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17221 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
17222 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
17224 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17225 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
17226 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
17227 if test -f "$i/$platDir/tkConfig.sh" ; then
17228 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17234 # on Darwin, check in Framework installation locations
17235 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
17236 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
17237 `ls -d /Library/Frameworks 2>/dev/null` \
17238 `ls -d /Network/Library/Frameworks 2>/dev/null` \
17239 `ls -d /System/Library/Frameworks 2>/dev/null` \
17241 if test -f "$i/Tk.framework/tkConfig.sh" ; then
17242 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
17248 # check in a few common install locations
17249 if test x
"${ac_cv_c_tkconfig}" = x
; then
17250 for i
in `ls -d ${libdir} 2>/dev/null` \
17251 `ls -d ${exec_prefix}/lib 2>/dev/null` \
17252 `ls -d ${prefix}/lib 2>/dev/null` \
17253 `ls -d /usr/local/lib 2>/dev/null` \
17254 `ls -d /usr/contrib/lib 2>/dev/null` \
17255 `ls -d /usr/lib 2>/dev/null` \
17257 if test -f "$i/tkConfig.sh" ; then
17258 ac_cv_c_tkconfig
=`(cd $i; pwd)`
17263 # check in a few other private locations
17264 if test x
"${ac_cv_c_tkconfig}" = x
; then
17267 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
17268 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
17269 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
17270 if test -f "$i/$platDir/tkConfig.sh" ; then
17271 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
17280 if test x
"${ac_cv_c_tkconfig}" = x
; then
17281 TK_BIN_DIR
="# no Tk configs found"
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
17283 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
17286 TK_BIN_DIR
=${ac_cv_c_tkconfig}
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
17288 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17293 if test -z "${no_tcl}" -a -z "${no_tk}"; then
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
17296 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
17298 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17300 $as_echo "loading" >&6; }
17301 .
${TCL_BIN_DIR}/tclConfig.sh
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
17304 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
17307 # eval is required to do the TCL_DBGX substitution
17308 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
17309 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
17311 # If the TCL_BIN_DIR is the build directory (not the install directory),
17312 # then set the common variable name to the value of the build variables.
17313 # For example, the variable TCL_LIB_SPEC will be set to the value
17314 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
17315 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
17316 # installed and uninstalled version of Tcl.
17317 if test -f "${TCL_BIN_DIR}/Makefile" ; then
17318 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
17319 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
17320 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
17321 elif test "`uname -s`" = "Darwin"; then
17322 # If Tcl was built as a framework, attempt to use the libraries
17323 # from the framework at the given location so that linking works
17324 # against Tcl.framework installed in an arbitrary location.
17325 case ${TCL_DEFS} in
17327 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
17328 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
17329 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
17330 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
17331 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
17336 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
17337 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
17338 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
17344 # eval is required to do the TCL_DBGX substitution
17345 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
17346 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
17347 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
17348 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
17364 # Check for in-tree tcl
17371 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
17375 # Find Tcl private headers
17376 if test x
"${intree}" = xno
; then
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
17379 $as_echo_n "checking for Tcl private headers... " >&6; }
17381 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
17382 if test -f ${dir}/tclInt.h
; then
17386 if test x
"${private_dir}" = x
; then
17387 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
17389 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17391 $as_echo "${private_dir}" >&6; }
17394 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
17395 TCL_LIBRARY
="${TCL_LIB_SPEC}"
17398 # If building tcl in the same src tree, private headers
17399 # are not needed, but we need to be sure to use the right
17401 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
17402 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
17403 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
17411 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
17413 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
17415 $as_echo "loading" >&6; }
17416 .
${TK_BIN_DIR}/tkConfig.sh
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
17419 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
17422 # eval is required to do the TK_DBGX substitution
17423 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
17424 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
17426 # If the TK_BIN_DIR is the build directory (not the install directory),
17427 # then set the common variable name to the value of the build variables.
17428 # For example, the variable TK_LIB_SPEC will be set to the value
17429 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
17430 # instead of TK_BUILD_LIB_SPEC since it will work with both an
17431 # installed and uninstalled version of Tcl.
17432 if test -f "${TK_BIN_DIR}/Makefile" ; then
17433 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
17434 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
17435 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
17436 elif test "`uname -s`" = "Darwin"; then
17437 # If Tk was built as a framework, attempt to use the libraries
17438 # from the framework at the given location so that linking works
17439 # against Tk.framework installed in an arbitrary location.
17442 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
17443 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
17444 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
17445 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
17446 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
17451 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
17452 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
17453 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
17459 # eval is required to do the TK_DBGX substitution
17460 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
17461 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
17462 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
17463 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
17478 # Check for in-tree Tk
17480 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
17484 # Find Tk private headers
17485 if test x
"${intree}" = xno
; then
17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
17488 $as_echo_n "checking for Tk private headers... " >&6; }
17490 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
17491 if test -f ${dir}/tkInt.h
; then
17495 if test x
"${private_dir}" = x
; then
17496 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
17498 TK_PRIVATE_INCLUDE
="-I${private_dir}"
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
17500 $as_echo "${private_dir}" >&6; }
17503 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
17504 TK_LIBRARY
=${TK_LIB_SPEC}
17507 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
17508 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
17509 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
17516 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
17518 # Include some libraries that Tcl and Tk want.
17519 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
17520 # Yes, the ordering seems wrong here. But it isn't.
17521 # TK_LIBS is the list of libraries that need to be linked
17522 # after Tcl/Tk. Note that this isn't put into LIBS. If it
17523 # were in LIBS then any link tests after this point would
17524 # try to include things like `$(LIBGUI)', which wouldn't work.
17525 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
17527 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
17528 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
17529 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
17530 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
17531 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
17532 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
17533 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
17535 if test x
$gdb_cv_os_cygwin = xyes
; then
17536 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
17537 WIN32LDAPP
="-Wl,--subsystem,console"
17538 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
17541 subdirs
="$subdirs gdbtk"
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17554 $as_echo_n "checking for X... " >&6; }
17557 # Check whether --with-x was given.
17558 if test "${with_x+set}" = set; then :
17562 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17563 if test "x$with_x" = xno
; then
17564 # The user explicitly disabled X.
17567 case $x_includes,$x_libraries in #(
17568 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
17569 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
17570 $as_echo_n "(cached) " >&6
17572 # One or both of the vars are not set, and there is no cached value.
17573 ac_x_includes
=no ac_x_libraries
=no
17574 rm -f -r conftest.dir
17575 if mkdir conftest.dir
; then
17577 cat >Imakefile
<<'_ACEOF'
17579 @echo incroot='${INCROOT}'
17581 @echo usrlibdir='${USRLIBDIR}'
17583 @echo libdir='${LIBDIR}'
17585 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
17586 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17587 for ac_var
in incroot usrlibdir libdir
; do
17588 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17590 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17591 for ac_extension
in a so sl dylib la dll
; do
17592 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17593 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17594 ac_im_usrlibdir
=$ac_im_libdir; break
17597 # Screen out bogus values from the imake configuration. They are
17598 # bogus both because they are the default anyway, and because
17599 # using them would break gcc on systems where it needs fixed includes.
17600 case $ac_im_incroot in
17601 /usr
/include
) ac_x_includes
= ;;
17602 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
17604 case $ac_im_usrlibdir in
17605 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
17606 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
17610 rm -f -r conftest.dir
17613 # Standard set of common directories for X headers.
17614 # Check X11 before X11Rn because it is often a symlink to the current release.
17628 /usr/local/X11/include
17629 /usr/local/X11R7/include
17630 /usr/local/X11R6/include
17631 /usr/local/X11R5/include
17632 /usr/local/X11R4/include
17634 /usr/local/include/X11
17635 /usr/local/include/X11R7
17636 /usr/local/include/X11R6
17637 /usr/local/include/X11R5
17638 /usr/local/include/X11R4
17642 /usr/XFree86/include/X11
17646 /usr/unsupported/include
17647 /usr/athena/include
17648 /usr/local/x11r5/include
17649 /usr/lpp/Xamples/include
17651 /usr/openwin/include
17652 /usr/openwin/share/include'
17654 if test "$ac_x_includes" = no
; then
17655 # Guess where to find include files, by looking for Xlib.h.
17656 # First, try using that file with no special directory specified.
17657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17658 /* end confdefs.h. */
17659 #include <X11/Xlib.h>
17661 if ac_fn_c_try_cpp
"$LINENO"; then :
17662 # We can compile using X headers with no special include directory.
17665 for ac_dir
in $ac_x_header_dirs; do
17666 if test -r "$ac_dir/X11/Xlib.h"; then
17667 ac_x_includes
=$ac_dir
17672 rm -f conftest.err conftest.i conftest.
$ac_ext
17673 fi # $ac_x_includes = no
17675 if test "$ac_x_libraries" = no
; then
17676 # Check for the libraries.
17677 # See if we find them without any special options.
17678 # Don't add to $LIBS permanently.
17681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17682 /* end confdefs.h. */
17683 #include <X11/Xlib.h>
17692 if ac_fn_c_try_link
"$LINENO"; then :
17694 # We can link X programs with no special library path.
17698 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17700 # Don't even attempt the hair of trying to link an X program!
17701 for ac_extension
in a so sl dylib la dll
; do
17702 if test -r "$ac_dir/libX11.$ac_extension"; then
17703 ac_x_libraries
=$ac_dir
17709 rm -f core conftest.err conftest.
$ac_objext \
17710 conftest
$ac_exeext conftest.
$ac_ext
17711 fi # $ac_x_libraries = no
17713 case $ac_x_includes,$ac_x_libraries in #(
17714 no
,* |
*,no |
*\'*)
17715 # Didn't find X, or a directory has "'" in its name.
17716 ac_cv_have_x
="have_x=no";; #(
17718 # Record where we found X for the cache.
17719 ac_cv_have_x
="have_x=yes\
17720 ac_x_includes='$ac_x_includes'\
17721 ac_x_libraries='$ac_x_libraries'"
17727 eval "$ac_cv_have_x"
17730 if test "$have_x" != yes; then
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17732 $as_echo "$have_x" >&6; }
17735 # If each of the values was on the command line, it overrides each guess.
17736 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17737 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17738 # Update the cache value to reflect the command line values.
17739 ac_cv_have_x
="have_x=yes\
17740 ac_x_includes='$x_includes'\
17741 ac_x_libraries='$x_libraries'"
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17743 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17747 # Unlike the sim directory, whether a simulator is linked is controlled by
17748 # presence of a gdb_sim definition in the target configure.tgt entry.
17749 # This code just checks for a few cases where we'd like to ignore those
17750 # definitions, even when they're present in the '.mt' file. These cases
17751 # are when --disable-sim is specified, or if the simulator directory is
17752 # not part of the source tree.
17754 # Check whether --enable-sim was given.
17755 if test "${enable_sim+set}" = set; then :
17756 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17757 echo "enableval = ${enableval}";
17758 case "${enableval}" in
17759 yes) ignore_sim
=false
;;
17760 no
) ignore_sim
=true
;;
17761 *) ignore_sim
=false
;;
17768 if test ! -d "${srcdir}/../sim"; then
17774 if test "${ignore_sim}" = "false"; then
17775 if test x
"${gdb_sim}" != x
; then
17777 SIM_OBS
="remote-sim.o"
17779 $as_echo "#define WITH_SIM 1" >>confdefs.h
17782 # Some tdep code should only be compiled in when the ppc sim is
17783 # built. PR sim/13418.
17787 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17807 # List of host floatformats.
17809 cat >>confdefs.h
<<_ACEOF
17810 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17814 cat >>confdefs.h
<<_ACEOF
17815 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17819 cat >>confdefs.h
<<_ACEOF
17820 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17824 # target_subdir is used by the testsuite to find the target libraries.
17826 if test "${host}" != "${target}"; then
17827 target_subdir
="${target_alias}/"
17831 # Import nat definitions.
17832 nat_makefile_frag
=/dev
/null
17833 if test "${gdb_native}" = "yes"; then
17834 .
${srcdir}/configure.nat
17835 nativefile
=$NAT_FILE
17848 if test x
"${gdb_osabi}" != x
; then
17850 cat >>confdefs.h
<<_ACEOF
17851 #define GDB_OSABI_DEFAULT $gdb_osabi
17856 # Check whether --enable-gdbserver was given.
17857 if test "${enable_gdbserver+set}" = set; then :
17858 enableval
=$enable_gdbserver; case "${enableval}" in
17860 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17863 enable_gdbserver
=auto
17867 # We only build gdbserver automatically in a native configuration, and
17868 # only if the user did not explicitly disable its build.
17869 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17871 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17872 if test "x$build_gdbserver" = xyes
; then
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17874 $as_echo "yes" >&6; }
17875 subdirs
="$subdirs gdbserver"
17877 gdbserver_build_enabled
=yes
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17880 $as_echo "no" >&6; }
17884 # If the user explicitly request the gdbserver to be built, verify that
17885 # we were in fact able to enable it.
17886 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17887 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17890 # Check for babeltrace and babeltrace-ctf
17892 # Check whether --with-babeltrace was given.
17893 if test "${with_babeltrace+set}" = set; then :
17894 withval
=$with_babeltrace;
17896 with_babeltrace
=auto
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17900 $as_echo_n "checking whether to use babeltrace... " >&6; }
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17902 $as_echo "$with_babeltrace" >&6; }
17904 if test "x$with_babeltrace" = "xno"; then
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17906 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17908 # Append -Werror to CFLAGS so that configure can catch the warning
17909 # "assignment from incompatible pointer type", which is related to
17910 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17911 # in GDB, while babeltrace 1.0.3 is broken.
17912 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17913 # safe to save and restore CFLAGS here.
17914 saved_CFLAGS
=$CFLAGS
17915 CFLAGS
="$CFLAGS -Werror"
17926 acl_save_prefix
="$prefix"
17927 prefix
="$acl_final_prefix"
17928 acl_save_exec_prefix
="$exec_prefix"
17929 exec_prefix
="$acl_final_exec_prefix"
17931 eval additional_includedir
=\"$includedir\"
17932 eval additional_libdir
=\"$libdir\"
17934 exec_prefix
="$acl_save_exec_prefix"
17935 prefix
="$acl_save_prefix"
17938 # Check whether --with-libbabeltrace-prefix was given.
17939 if test "${with_libbabeltrace_prefix+set}" = set; then :
17940 withval
=$with_libbabeltrace_prefix;
17941 if test "X$withval" = "Xno"; then
17944 if test "X$withval" = "X"; then
17946 acl_save_prefix
="$prefix"
17947 prefix
="$acl_final_prefix"
17948 acl_save_exec_prefix
="$exec_prefix"
17949 exec_prefix
="$acl_final_exec_prefix"
17951 eval additional_includedir
=\"$includedir\"
17952 eval additional_libdir
=\"$libdir\"
17954 exec_prefix
="$acl_save_exec_prefix"
17955 prefix
="$acl_save_prefix"
17958 additional_includedir
="$withval/include"
17959 additional_libdir
="$withval/lib"
17970 names_already_handled
=
17971 names_next_round
='babeltrace babeltrace-ctf'
17972 while test -n "$names_next_round"; do
17973 names_this_round
="$names_next_round"
17975 for name
in $names_this_round; do
17977 for n
in $names_already_handled; do
17978 if test "$n" = "$name"; then
17979 already_handled
=yes
17983 if test -z "$already_handled"; then
17984 names_already_handled
="$names_already_handled $name"
17985 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17986 eval value
=\"\
$HAVE_LIB$uppername\"
17987 if test -n "$value"; then
17988 if test "$value" = yes; then
17989 eval value
=\"\
$LIB$uppername\"
17990 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17991 eval value
=\"\
$LTLIB$uppername\"
17992 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
18001 if test $use_additional = yes; then
18002 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18003 found_dir
="$additional_libdir"
18004 found_so
="$additional_libdir/lib$name.$shlibext"
18005 if test -f "$additional_libdir/lib$name.la"; then
18006 found_la
="$additional_libdir/lib$name.la"
18009 if test -f "$additional_libdir/lib$name.$libext"; then
18010 found_dir
="$additional_libdir"
18011 found_a
="$additional_libdir/lib$name.$libext"
18012 if test -f "$additional_libdir/lib$name.la"; then
18013 found_la
="$additional_libdir/lib$name.la"
18018 if test "X$found_dir" = "X"; then
18019 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18021 acl_save_prefix
="$prefix"
18022 prefix
="$acl_final_prefix"
18023 acl_save_exec_prefix
="$exec_prefix"
18024 exec_prefix
="$acl_final_exec_prefix"
18026 exec_prefix
="$acl_save_exec_prefix"
18027 prefix
="$acl_save_prefix"
18031 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18032 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18034 found_so
="$dir/lib$name.$shlibext"
18035 if test -f "$dir/lib$name.la"; then
18036 found_la
="$dir/lib$name.la"
18039 if test -f "$dir/lib$name.$libext"; then
18041 found_a
="$dir/lib$name.$libext"
18042 if test -f "$dir/lib$name.la"; then
18043 found_la
="$dir/lib$name.la"
18049 if test "X$found_dir" != "X"; then
18054 if test "X$found_dir" != "X"; then
18055 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
18056 if test "X$found_so" != "X"; then
18057 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18058 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18061 for x
in $ltrpathdirs; do
18062 if test "X$x" = "X$found_dir"; then
18067 if test -z "$haveit"; then
18068 ltrpathdirs
="$ltrpathdirs $found_dir"
18070 if test "$hardcode_direct" = yes; then
18071 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18073 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18074 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18076 for x
in $rpathdirs; do
18077 if test "X$x" = "X$found_dir"; then
18082 if test -z "$haveit"; then
18083 rpathdirs
="$rpathdirs $found_dir"
18087 for x
in $LDFLAGS $LIBBABELTRACE; do
18089 acl_save_prefix
="$prefix"
18090 prefix
="$acl_final_prefix"
18091 acl_save_exec_prefix
="$exec_prefix"
18092 exec_prefix
="$acl_final_exec_prefix"
18094 exec_prefix
="$acl_save_exec_prefix"
18095 prefix
="$acl_save_prefix"
18097 if test "X$x" = "X-L$found_dir"; then
18102 if test -z "$haveit"; then
18103 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
18105 if test "$hardcode_minus_L" != no
; then
18106 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
18108 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18114 if test "X$found_a" != "X"; then
18115 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
18117 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
18120 additional_includedir
=
18121 case "$found_dir" in
18123 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18124 additional_includedir
="$basedir/include"
18127 if test "X$additional_includedir" != "X"; then
18128 if test "X$additional_includedir" != "X/usr/include"; then
18130 if test "X$additional_includedir" = "X/usr/local/include"; then
18131 if test -n "$GCC"; then
18133 linux
*) haveit
=yes;;
18137 if test -z "$haveit"; then
18138 for x
in $CPPFLAGS $INCBABELTRACE; do
18140 acl_save_prefix
="$prefix"
18141 prefix
="$acl_final_prefix"
18142 acl_save_exec_prefix
="$exec_prefix"
18143 exec_prefix
="$acl_final_exec_prefix"
18145 exec_prefix
="$acl_save_exec_prefix"
18146 prefix
="$acl_save_prefix"
18148 if test "X$x" = "X-I$additional_includedir"; then
18153 if test -z "$haveit"; then
18154 if test -d "$additional_includedir"; then
18155 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
18161 if test -n "$found_la"; then
18162 save_libdir
="$libdir"
18163 case "$found_la" in
18164 */* |
*\\*) .
"$found_la" ;;
18165 *) .
"./$found_la" ;;
18167 libdir
="$save_libdir"
18168 for dep
in $dependency_libs; do
18171 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18172 if test "X$additional_libdir" != "X/usr/lib"; then
18174 if test "X$additional_libdir" = "X/usr/local/lib"; then
18175 if test -n "$GCC"; then
18177 linux
*) haveit
=yes;;
18181 if test -z "$haveit"; then
18183 for x
in $LDFLAGS $LIBBABELTRACE; do
18185 acl_save_prefix
="$prefix"
18186 prefix
="$acl_final_prefix"
18187 acl_save_exec_prefix
="$exec_prefix"
18188 exec_prefix
="$acl_final_exec_prefix"
18190 exec_prefix
="$acl_save_exec_prefix"
18191 prefix
="$acl_save_prefix"
18193 if test "X$x" = "X-L$additional_libdir"; then
18198 if test -z "$haveit"; then
18199 if test -d "$additional_libdir"; then
18200 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
18204 for x
in $LDFLAGS $LTLIBBABELTRACE; do
18206 acl_save_prefix
="$prefix"
18207 prefix
="$acl_final_prefix"
18208 acl_save_exec_prefix
="$exec_prefix"
18209 exec_prefix
="$acl_final_exec_prefix"
18211 exec_prefix
="$acl_save_exec_prefix"
18212 prefix
="$acl_save_prefix"
18214 if test "X$x" = "X-L$additional_libdir"; then
18219 if test -z "$haveit"; then
18220 if test -d "$additional_libdir"; then
18221 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
18228 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18229 if test "$enable_rpath" != no
; then
18231 for x
in $rpathdirs; do
18232 if test "X$x" = "X$dir"; then
18237 if test -z "$haveit"; then
18238 rpathdirs
="$rpathdirs $dir"
18241 for x
in $ltrpathdirs; do
18242 if test "X$x" = "X$dir"; then
18247 if test -z "$haveit"; then
18248 ltrpathdirs
="$ltrpathdirs $dir"
18253 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18256 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18259 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
18260 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
18266 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
18267 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
18273 if test "X$rpathdirs" != "X"; then
18274 if test -n "$hardcode_libdir_separator"; then
18276 for found_dir
in $rpathdirs; do
18277 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18279 acl_save_libdir
="$libdir"
18281 eval flag
=\"$hardcode_libdir_flag_spec\"
18282 libdir
="$acl_save_libdir"
18283 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18285 for found_dir
in $rpathdirs; do
18286 acl_save_libdir
="$libdir"
18287 libdir
="$found_dir"
18288 eval flag
=\"$hardcode_libdir_flag_spec\"
18289 libdir
="$acl_save_libdir"
18290 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
18294 if test "X$ltrpathdirs" != "X"; then
18295 for found_dir
in $ltrpathdirs; do
18296 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
18301 ac_save_CPPFLAGS
="$CPPFLAGS"
18303 for element
in $INCBABELTRACE; do
18305 for x
in $CPPFLAGS; do
18307 acl_save_prefix
="$prefix"
18308 prefix
="$acl_final_prefix"
18309 acl_save_exec_prefix
="$exec_prefix"
18310 exec_prefix
="$acl_final_exec_prefix"
18312 exec_prefix
="$acl_save_exec_prefix"
18313 prefix
="$acl_save_prefix"
18315 if test "X$x" = "X$element"; then
18320 if test -z "$haveit"; then
18321 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
18327 $as_echo_n "checking for libbabeltrace... " >&6; }
18328 if ${ac_cv_libbabeltrace+:} false
; then :
18329 $as_echo_n "(cached) " >&6
18332 ac_save_LIBS
="$LIBS"
18333 LIBS
="$LIBS $LIBBABELTRACE"
18334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18335 /* end confdefs.h. */
18336 #include <babeltrace/babeltrace.h>
18337 #include <babeltrace/ctf/events.h>
18338 #include <babeltrace/ctf/iterator.h>
18342 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
18343 struct bt_ctf_event *event = NULL;
18344 const struct bt_definition *scope;
18346 pos->type = BT_SEEK_BEGIN;
18347 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
18348 scope = bt_ctf_get_top_level_scope (event,
18349 BT_STREAM_EVENT_HEADER);
18350 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
18356 if ac_fn_c_try_link
"$LINENO"; then :
18357 ac_cv_libbabeltrace
=yes
18359 ac_cv_libbabeltrace
=no
18361 rm -f core conftest.err conftest.
$ac_objext \
18362 conftest
$ac_exeext conftest.
$ac_ext
18363 LIBS
="$ac_save_LIBS"
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
18367 $as_echo "$ac_cv_libbabeltrace" >&6; }
18368 if test "$ac_cv_libbabeltrace" = yes; then
18369 HAVE_LIBBABELTRACE
=yes
18371 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
18374 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
18376 $as_echo "$LIBBABELTRACE" >&6; }
18378 HAVE_LIBBABELTRACE
=no
18379 CPPFLAGS
="$ac_save_CPPFLAGS"
18389 CFLAGS
=$saved_CFLAGS
18391 if test "$HAVE_LIBBABELTRACE" != yes; then
18392 if test "$with_babeltrace" = yes; then
18393 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
18396 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
18403 # Check whether --with-xxhash was given.
18404 if test "${with_xxhash+set}" = set; then :
18405 withval
=$with_xxhash;
18411 if test "x$with_xxhash" != "xno"; then
18422 acl_save_prefix
="$prefix"
18423 prefix
="$acl_final_prefix"
18424 acl_save_exec_prefix
="$exec_prefix"
18425 exec_prefix
="$acl_final_exec_prefix"
18427 eval additional_includedir
=\"$includedir\"
18428 eval additional_libdir
=\"$libdir\"
18430 exec_prefix
="$acl_save_exec_prefix"
18431 prefix
="$acl_save_prefix"
18434 # Check whether --with-libxxhash-prefix was given.
18435 if test "${with_libxxhash_prefix+set}" = set; then :
18436 withval
=$with_libxxhash_prefix;
18437 if test "X$withval" = "Xno"; then
18440 if test "X$withval" = "X"; then
18442 acl_save_prefix
="$prefix"
18443 prefix
="$acl_final_prefix"
18444 acl_save_exec_prefix
="$exec_prefix"
18445 exec_prefix
="$acl_final_exec_prefix"
18447 eval additional_includedir
=\"$includedir\"
18448 eval additional_libdir
=\"$libdir\"
18450 exec_prefix
="$acl_save_exec_prefix"
18451 prefix
="$acl_save_prefix"
18454 additional_includedir
="$withval/include"
18455 additional_libdir
="$withval/lib"
18466 names_already_handled
=
18467 names_next_round
='xxhash '
18468 while test -n "$names_next_round"; do
18469 names_this_round
="$names_next_round"
18471 for name
in $names_this_round; do
18473 for n
in $names_already_handled; do
18474 if test "$n" = "$name"; then
18475 already_handled
=yes
18479 if test -z "$already_handled"; then
18480 names_already_handled
="$names_already_handled $name"
18481 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18482 eval value
=\"\
$HAVE_LIB$uppername\"
18483 if test -n "$value"; then
18484 if test "$value" = yes; then
18485 eval value
=\"\
$LIB$uppername\"
18486 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
18487 eval value
=\"\
$LTLIB$uppername\"
18488 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
18497 if test $use_additional = yes; then
18498 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18499 found_dir
="$additional_libdir"
18500 found_so
="$additional_libdir/lib$name.$shlibext"
18501 if test -f "$additional_libdir/lib$name.la"; then
18502 found_la
="$additional_libdir/lib$name.la"
18505 if test -f "$additional_libdir/lib$name.$libext"; then
18506 found_dir
="$additional_libdir"
18507 found_a
="$additional_libdir/lib$name.$libext"
18508 if test -f "$additional_libdir/lib$name.la"; then
18509 found_la
="$additional_libdir/lib$name.la"
18514 if test "X$found_dir" = "X"; then
18515 for x
in $LDFLAGS $LTLIBXXHASH; do
18517 acl_save_prefix
="$prefix"
18518 prefix
="$acl_final_prefix"
18519 acl_save_exec_prefix
="$exec_prefix"
18520 exec_prefix
="$acl_final_exec_prefix"
18522 exec_prefix
="$acl_save_exec_prefix"
18523 prefix
="$acl_save_prefix"
18527 dir
=`echo "X$x" | sed -e 's/^X-L//'`
18528 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18530 found_so
="$dir/lib$name.$shlibext"
18531 if test -f "$dir/lib$name.la"; then
18532 found_la
="$dir/lib$name.la"
18535 if test -f "$dir/lib$name.$libext"; then
18537 found_a
="$dir/lib$name.$libext"
18538 if test -f "$dir/lib$name.la"; then
18539 found_la
="$dir/lib$name.la"
18545 if test "X$found_dir" != "X"; then
18550 if test "X$found_dir" != "X"; then
18551 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
18552 if test "X$found_so" != "X"; then
18553 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
18554 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18557 for x
in $ltrpathdirs; do
18558 if test "X$x" = "X$found_dir"; then
18563 if test -z "$haveit"; then
18564 ltrpathdirs
="$ltrpathdirs $found_dir"
18566 if test "$hardcode_direct" = yes; then
18567 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18569 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
18570 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18572 for x
in $rpathdirs; do
18573 if test "X$x" = "X$found_dir"; then
18578 if test -z "$haveit"; then
18579 rpathdirs
="$rpathdirs $found_dir"
18583 for x
in $LDFLAGS $LIBXXHASH; do
18585 acl_save_prefix
="$prefix"
18586 prefix
="$acl_final_prefix"
18587 acl_save_exec_prefix
="$exec_prefix"
18588 exec_prefix
="$acl_final_exec_prefix"
18590 exec_prefix
="$acl_save_exec_prefix"
18591 prefix
="$acl_save_prefix"
18593 if test "X$x" = "X-L$found_dir"; then
18598 if test -z "$haveit"; then
18599 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
18601 if test "$hardcode_minus_L" != no
; then
18602 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
18604 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18610 if test "X$found_a" != "X"; then
18611 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
18613 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
18616 additional_includedir
=
18617 case "$found_dir" in
18619 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18620 additional_includedir
="$basedir/include"
18623 if test "X$additional_includedir" != "X"; then
18624 if test "X$additional_includedir" != "X/usr/include"; then
18626 if test "X$additional_includedir" = "X/usr/local/include"; then
18627 if test -n "$GCC"; then
18629 linux
*) haveit
=yes;;
18633 if test -z "$haveit"; then
18634 for x
in $CPPFLAGS $INCXXHASH; do
18636 acl_save_prefix
="$prefix"
18637 prefix
="$acl_final_prefix"
18638 acl_save_exec_prefix
="$exec_prefix"
18639 exec_prefix
="$acl_final_exec_prefix"
18641 exec_prefix
="$acl_save_exec_prefix"
18642 prefix
="$acl_save_prefix"
18644 if test "X$x" = "X-I$additional_includedir"; then
18649 if test -z "$haveit"; then
18650 if test -d "$additional_includedir"; then
18651 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
18657 if test -n "$found_la"; then
18658 save_libdir
="$libdir"
18659 case "$found_la" in
18660 */* |
*\\*) .
"$found_la" ;;
18661 *) .
"./$found_la" ;;
18663 libdir
="$save_libdir"
18664 for dep
in $dependency_libs; do
18667 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
18668 if test "X$additional_libdir" != "X/usr/lib"; then
18670 if test "X$additional_libdir" = "X/usr/local/lib"; then
18671 if test -n "$GCC"; then
18673 linux
*) haveit
=yes;;
18677 if test -z "$haveit"; then
18679 for x
in $LDFLAGS $LIBXXHASH; do
18681 acl_save_prefix
="$prefix"
18682 prefix
="$acl_final_prefix"
18683 acl_save_exec_prefix
="$exec_prefix"
18684 exec_prefix
="$acl_final_exec_prefix"
18686 exec_prefix
="$acl_save_exec_prefix"
18687 prefix
="$acl_save_prefix"
18689 if test "X$x" = "X-L$additional_libdir"; then
18694 if test -z "$haveit"; then
18695 if test -d "$additional_libdir"; then
18696 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
18700 for x
in $LDFLAGS $LTLIBXXHASH; do
18702 acl_save_prefix
="$prefix"
18703 prefix
="$acl_final_prefix"
18704 acl_save_exec_prefix
="$exec_prefix"
18705 exec_prefix
="$acl_final_exec_prefix"
18707 exec_prefix
="$acl_save_exec_prefix"
18708 prefix
="$acl_save_prefix"
18710 if test "X$x" = "X-L$additional_libdir"; then
18715 if test -z "$haveit"; then
18716 if test -d "$additional_libdir"; then
18717 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
18724 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
18725 if test "$enable_rpath" != no
; then
18727 for x
in $rpathdirs; do
18728 if test "X$x" = "X$dir"; then
18733 if test -z "$haveit"; then
18734 rpathdirs
="$rpathdirs $dir"
18737 for x
in $ltrpathdirs; do
18738 if test "X$x" = "X$dir"; then
18743 if test -z "$haveit"; then
18744 ltrpathdirs
="$ltrpathdirs $dir"
18749 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18752 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18755 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
18756 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
18762 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
18763 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
18769 if test "X$rpathdirs" != "X"; then
18770 if test -n "$hardcode_libdir_separator"; then
18772 for found_dir
in $rpathdirs; do
18773 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18775 acl_save_libdir
="$libdir"
18777 eval flag
=\"$hardcode_libdir_flag_spec\"
18778 libdir
="$acl_save_libdir"
18779 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
18781 for found_dir
in $rpathdirs; do
18782 acl_save_libdir
="$libdir"
18783 libdir
="$found_dir"
18784 eval flag
=\"$hardcode_libdir_flag_spec\"
18785 libdir
="$acl_save_libdir"
18786 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
18790 if test "X$ltrpathdirs" != "X"; then
18791 for found_dir
in $ltrpathdirs; do
18792 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
18797 ac_save_CPPFLAGS
="$CPPFLAGS"
18799 for element
in $INCXXHASH; do
18801 for x
in $CPPFLAGS; do
18803 acl_save_prefix
="$prefix"
18804 prefix
="$acl_final_prefix"
18805 acl_save_exec_prefix
="$exec_prefix"
18806 exec_prefix
="$acl_final_exec_prefix"
18808 exec_prefix
="$acl_save_exec_prefix"
18809 prefix
="$acl_save_prefix"
18811 if test "X$x" = "X$element"; then
18816 if test -z "$haveit"; then
18817 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
18823 $as_echo_n "checking for libxxhash... " >&6; }
18824 if ${ac_cv_libxxhash+:} false
; then :
18825 $as_echo_n "(cached) " >&6
18828 ac_save_LIBS
="$LIBS"
18829 LIBS
="$LIBS $LIBXXHASH"
18830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18831 /* end confdefs.h. */
18832 #include <xxhash.h>
18836 XXH32("foo", 3, 0);
18842 if ac_fn_c_try_link
"$LINENO"; then :
18843 ac_cv_libxxhash
=yes
18847 rm -f core conftest.err conftest.
$ac_objext \
18848 conftest
$ac_exeext conftest.
$ac_ext
18849 LIBS
="$ac_save_LIBS"
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
18853 $as_echo "$ac_cv_libxxhash" >&6; }
18854 if test "$ac_cv_libxxhash" = yes; then
18857 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
18860 $as_echo_n "checking how to link with libxxhash... " >&6; }
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
18862 $as_echo "$LIBXXHASH" >&6; }
18865 CPPFLAGS
="$ac_save_CPPFLAGS"
18875 if test "$HAVE_LIBXXHASH" != yes; then
18876 if test "$with_xxhash" = yes; then
18877 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
18880 if test "x$with_xxhash" = "xauto"; then
18881 with_xxhash
="$HAVE_LIBXXHASH"
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
18886 $as_echo_n "checking whether to use xxhash... " >&6; }
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
18888 $as_echo "$with_xxhash" >&6; }
18892 if test "${nativefile}" != ""; then
18893 case "${nativefile}" in
18894 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
18895 * ) GDB_NM_FILE
="${nativefile}"
18897 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
18900 cat >>confdefs.h
<<_ACEOF
18901 #define GDB_NM_FILE "${GDB_NM_FILE}"
18909 for ac_prog
in xsltproc
18911 # Extract the first word of "$ac_prog", so it can be a program name with args.
18912 set dummy
$ac_prog; ac_word
=$2
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18914 $as_echo_n "checking for $ac_word... " >&6; }
18915 if ${ac_cv_path_XSLTPROC+:} false
; then :
18916 $as_echo_n "(cached) " >&6
18920 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18924 for as_dir
in $PATH
18927 test -z "$as_dir" && as_dir
=.
18928 for ac_exec_ext
in '' $ac_executable_extensions; do
18929 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18930 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18941 XSLTPROC
=$ac_cv_path_XSLTPROC
18942 if test -n "$XSLTPROC"; then
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18944 $as_echo "$XSLTPROC" >&6; }
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18947 $as_echo "no" >&6; }
18951 test -n "$XSLTPROC" && break
18953 test -n "$XSLTPROC" || XSLTPROC
="missing"
18955 if test "x$USE_MAINTAINER_MODE" = xyes
; then
18956 if test "${XSLTPROC}" = missing
; then
18957 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
18965 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
18969 # Check whether we will enable the inclusion of unit tests when
18972 # The default value of this option changes depending whether we're on
18973 # development mode (in which case it's "true") or not (in which case
18975 # Check whether --enable-unit-tests was given.
18976 if test "${enable_unit_tests+set}" = set; then :
18977 enableval
=$enable_unit_tests; case "${enableval}" in
18978 yes) enable_unittests
=true
;;
18979 no
) enable_unittests
=false
;;
18980 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
18983 enable_unittests
=$development
18987 if $enable_unittests; then
18989 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
18992 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) gdbsupport/selftest.o selftest-arch.o"
18993 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) gdbsupport/selftest.c selftest-arch.c"
18999 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19000 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
19001 if test "x$GDB_TRANSFORM_NAME" = x
; then
19002 GDB_TRANSFORM_NAME
=gdb
19007 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
19008 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
19009 if test "x$GCORE_TRANSFORM_NAME" = x
; then
19010 GCORE_TRANSFORM_NAME
=gcore
19014 ac_config_files
="$ac_config_files gcore"
19016 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
19019 cat >confcache
<<\_ACEOF
19020 # This file is a shell script that caches the results of configure
19021 # tests run on this system so they can be shared between configure
19022 # scripts and configure runs, see configure's option --config-cache.
19023 # It is not useful on other systems. If it contains results you don't
19024 # want to keep, you may remove or edit it.
19026 # config.status only pays attention to the cache file if you give it
19027 # the --recheck option to rerun configure.
19029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19031 # following values.
19035 # The following way of writing the cache mishandles newlines in values,
19036 # but we know of no workaround that is simple, portable, and efficient.
19037 # So, we kill variables containing newlines.
19038 # Ultrix sh set writes to stderr and can't be redirected directly,
19039 # and sets the high bit in the cache file unless we assign to the vars.
19041 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19042 eval ac_val
=\$
$ac_var
19046 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19050 _ | IFS | as_nl
) ;; #(
19051 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
19052 *) { eval $ac_var=; unset $ac_var;} ;;
19058 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19059 *${as_nl}ac_space
=\
*)
19060 # `set' does not quote correctly, so add quotes: double-quote
19061 # substitution turns \\\\ into \\, and sed turns \\ into \.
19064 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19067 # `set' quotes correctly as required by POSIX, so do not add quotes.
19068 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19077 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19079 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19081 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
19082 if test -w "$cache_file"; then
19083 if test "x$cache_file" != "x/dev/null"; then
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19085 $as_echo "$as_me: updating cache $cache_file" >&6;}
19086 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
19087 cat confcache
>"$cache_file"
19089 case $cache_file in #(
19091 mv -f confcache
"$cache_file"$$
&&
19092 mv -f "$cache_file"$$
"$cache_file" ;; #(
19094 mv -f confcache
"$cache_file" ;;
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19100 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19105 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19106 # Let make expand exec_prefix.
19107 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19109 DEFS
=-DHAVE_CONFIG_H
19114 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
19115 # 1. Remove the extension, and $U if already installed.
19116 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
19117 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
19118 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19119 # will be set to the directory where LIBOBJS objects are built.
19120 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19121 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
19123 LIBOBJS
=$ac_libobjs
19125 LTLIBOBJS
=$ac_ltlibobjs
19128 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19129 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
19130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19132 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
19133 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
19134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19136 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
19137 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
19138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19142 : "${CONFIG_STATUS=./config.status}"
19144 ac_clean_files_save
=$ac_clean_files
19145 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
19146 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19147 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19149 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19151 # Generated by $as_me.
19152 # Run this file to recreate the current configuration.
19153 # Compiler output produced by configure, useful for debugging
19154 # configure, is in config.log if it exists.
19157 ac_cs_recheck=false
19160 SHELL=\${CONFIG_SHELL-$SHELL}
19163 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
19164 ## -------------------- ##
19165 ## M4sh Initialization. ##
19166 ## -------------------- ##
19168 # Be more Bourne compatible
19169 DUALCASE
=1; export DUALCASE
# for MKS sh
19170 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
19173 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19174 # is contrary to our usage. Disable this feature.
19175 alias -g '${1+"$@"}'='"$@"'
19176 setopt NO_GLOB_SUBST
19178 case `(set -o) 2>/dev/null` in #(
19190 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19191 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19192 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19194 # Prefer a ksh shell builtin over an external printf program on Solaris,
19195 # but without wasting forks for bash or zsh.
19196 if test -z "$BASH_VERSION$ZSH_VERSION" \
19197 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19198 as_echo='print
-r --'
19199 as_echo_n='print
-rn --'
19200 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19201 as_echo='printf %s
\n'
19202 as_echo_n='printf %s
'
19204 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19205 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
19206 as_echo_n='/usr
/ucb
/echo -n'
19208 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19209 as_echo_n_body='eval
19213 expr "X$arg" : "X\\(.*\\)$as_nl";
19214 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19216 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
19218 export as_echo_n_body
19219 as_echo_n='sh
-c $as_echo_n_body as_echo
'
19221 export as_echo_body
19222 as_echo='sh
-c $as_echo_body as_echo
'
19225 # The user is always right.
19226 if test "${PATH_SEPARATOR+set}" != set; then
19228 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19229 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19236 # We need space, tab and new line, in precisely that order. Quoting is
19237 # there to prevent editors from complaining about space-tab.
19238 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19239 # splitting by setting IFS to empty value.)
19242 # Find who we are. Look in the path if we contain no directory separator.
19245 *[\\/]* ) as_myself=$0 ;;
19246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19247 for as_dir in $PATH
19250 test -z "$as_dir" && as_dir=.
19251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19257 # We did not find ourselves, most probably we were run as `sh COMMAND'
19258 # in which case we are not to be found in the path.
19259 if test "x$as_myself" = x
; then
19262 if test ! -f "$as_myself"; then
19263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19267 # Unset variables that we do not need and which cause bugs (e.g. in
19268 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19269 # suppresses any "Segmentation fault" message there. '((' could
19270 # trigger a bug in pdksh 5.2.14.
19271 for as_var
in BASH_ENV ENV MAIL MAILPATH
19272 do eval test x\
${$as_var+set} = xset \
19273 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19286 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19289 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19290 # ----------------------------------------
19291 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19292 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19293 # script with STATUS, using 1 if that was 0.
19296 as_status
=$1; test $as_status -eq 0 && as_status
=1
19298 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19299 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19301 $as_echo "$as_me: error: $2" >&2
19302 as_fn_exit
$as_status
19306 # as_fn_set_status STATUS
19307 # -----------------------
19308 # Set $? to STATUS, without forking.
19309 as_fn_set_status
()
19312 } # as_fn_set_status
19314 # as_fn_exit STATUS
19315 # -----------------
19316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19320 as_fn_set_status
$1
19326 # Portably unset VAR.
19329 { eval $1=; unset $1;}
19331 as_unset
=as_fn_unset
19332 # as_fn_append VAR VALUE
19333 # ----------------------
19334 # Append the text in VALUE to the end of the definition contained in VAR. Take
19335 # advantage of any shell optimizations that allow amortized linear growth over
19336 # repeated appends, instead of the typical quadratic growth present in naive
19338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19339 eval 'as_fn_append ()
19350 # as_fn_arith ARG...
19351 # ------------------
19352 # Perform arithmetic evaluation on the ARGs, and store the result in the
19353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19354 # must be portable across $(()) and expr.
19355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19356 eval 'as_fn_arith ()
19363 as_val
=`expr "$@" || test $? -eq 1`
19368 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19369 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19375 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19376 as_basename
=basename
19381 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19387 as_me
=`$as_basename -- "$0" ||
19388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19389 X"$0" : 'X\(//\)$' \| \
19390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19392 sed '/^.*\/\([^/][^/]*\)\/*$/{
19406 # Avoid depending upon Character Ranges.
19407 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19408 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19409 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19410 as_cr_digits
='0123456789'
19411 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19413 ECHO_C
= ECHO_N
= ECHO_T
=
19414 case `echo -n x` in #(((((
19416 case `echo 'xy\c'` in
19417 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19419 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19426 rm -f conf$$ conf$$.exe conf$$.
file
19427 if test -d conf$$.dir
; then
19428 rm -f conf$$.dir
/conf$$.
file
19431 mkdir conf$$.dir
2>/dev
/null
19433 if (echo >conf$$.
file) 2>/dev
/null
; then
19434 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19436 # ... but there are two gotchas:
19437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19439 # In both cases, we have to default to `cp -pR'.
19440 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19442 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19450 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19451 rmdir conf$$.dir
2>/dev
/null
19456 # Create "$as_dir" as a directory, including parents if necessary.
19461 -*) as_dir
=.
/$as_dir;;
19463 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19467 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19468 *) as_qdir
=$as_dir;;
19470 as_dirs
="'$as_qdir' $as_dirs"
19471 as_dir
=`$as_dirname -- "$as_dir" ||
19472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19473 X"$as_dir" : 'X\(//\)[^/]' \| \
19474 X"$as_dir" : 'X\(//\)$' \| \
19475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19476 $as_echo X"$as_dir" |
19477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19481 /^X\(\/\/\)[^/].*/{
19494 test -d "$as_dir" && break
19496 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19497 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19501 if mkdir
-p .
2>/dev
/null
; then
19502 as_mkdir_p
='mkdir -p "$as_dir"'
19504 test -d .
/-p && rmdir .
/-p
19509 # as_fn_executable_p FILE
19510 # -----------------------
19511 # Test if FILE is an executable regular file.
19512 as_fn_executable_p
()
19514 test -f "$1" && test -x "$1"
19515 } # as_fn_executable_p
19516 as_test_x
='test -x'
19517 as_executable_p
=as_fn_executable_p
19519 # Sed expression to map a string onto a valid CPP name.
19520 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19522 # Sed expression to map a string onto a valid variable name.
19523 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19527 ## ----------------------------------- ##
19528 ## Main body of $CONFIG_STATUS script. ##
19529 ## ----------------------------------- ##
19531 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19534 # Save the log message, to keep $0 and so on meaningful, and to
19535 # report actual input values of CONFIG_FILES etc. instead of their
19536 # values after options handling.
19538 This file was extended by $as_me, which was
19539 generated by GNU Autoconf 2.69. Invocation command line was
19541 CONFIG_FILES = $CONFIG_FILES
19542 CONFIG_HEADERS = $CONFIG_HEADERS
19543 CONFIG_LINKS = $CONFIG_LINKS
19544 CONFIG_COMMANDS = $CONFIG_COMMANDS
19547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19552 case $ac_config_files in *"
19553 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19556 case $ac_config_headers in *"
19557 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
19561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19562 # Files that config.status was made for.
19563 config_files="$ac_config_files"
19564 config_headers="$ac_config_headers"
19565 config_links="$ac_config_links"
19566 config_commands="$ac_config_commands"
19570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19572 \`$as_me' instantiates files and other configuration actions
19573 from templates according to the current configuration. Unless the files
19574 and actions are specified as TAGs, all are instantiated by default.
19576 Usage: $0 [OPTION]... [TAG]...
19578 -h, --help print this help, then exit
19579 -V, --version print version number and configuration settings, then exit
19580 --config print configuration, then exit
19581 -q, --quiet, --silent
19582 do not print progress messages
19583 -d, --debug don't remove temporary files
19584 --recheck update $as_me by reconfiguring in the same conditions
19585 --file=FILE[:TEMPLATE]
19586 instantiate the configuration file FILE
19587 --header=FILE[:TEMPLATE]
19588 instantiate the configuration header FILE
19590 Configuration files:
19593 Configuration headers:
19596 Configuration links:
19599 Configuration commands:
19602 Report bugs to the package provider."
19605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19606 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19609 configured by $0, generated by GNU Autoconf 2.69,
19610 with options \\"\$ac_cs_config\\"
19612 Copyright (C) 2012 Free Software Foundation, Inc.
19613 This config.status script is free software; the Free Software Foundation
19614 gives unlimited permission to copy, distribute and modify it."
19620 test -n "\$AWK" || AWK=awk
19623 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19624 # The default lists apply if the user does not specify any file.
19630 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19631 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19635 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19647 # Handling of the options.
19648 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19650 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19651 $as_echo "$ac_cs_version"; exit ;;
19652 --config |
--confi |
--conf |
--con |
--co |
--c )
19653 $as_echo "$ac_cs_config"; exit ;;
19654 --debug |
--debu |
--deb |
--de |
--d |
-d )
19656 --file |
--fil |
--fi |
--f )
19659 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19660 '') as_fn_error $?
"missing file argument" ;;
19662 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19663 ac_need_defaults
=false
;;
19664 --header |
--heade |
--head |
--hea )
19667 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19669 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
19670 ac_need_defaults
=false
;;
19672 # Conflict between --help and --header
19673 as_fn_error $?
"ambiguous option: \`$1'
19674 Try \`$0 --help' for more information.";;
19675 --help |
--hel |
-h )
19676 $as_echo "$ac_cs_usage"; exit ;;
19677 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19678 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19681 # This is an error.
19682 -*) as_fn_error $?
"unrecognized option: \`$1'
19683 Try \`$0 --help' for more information." ;;
19685 *) as_fn_append ac_config_targets
" $1"
19686 ac_need_defaults
=false
;;
19692 ac_configure_extra_args
=
19694 if $ac_cs_silent; then
19696 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19701 if \$ac_cs_recheck; then
19702 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19704 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19705 CONFIG_SHELL='$SHELL'
19706 export CONFIG_SHELL
19711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19715 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19716 ## Running $as_me. ##
19722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19726 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
19727 GDB_NM_FILE=$GDB_NM_FILE
19731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19733 # Handling of arguments.
19734 for ac_config_target
in $ac_config_targets
19736 case $ac_config_target in
19737 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
19738 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
19739 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
19740 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
19741 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
19742 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19743 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
19744 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
19745 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
19746 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
19748 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19753 # If the user did not use the arguments to specify the items to instantiate,
19754 # then the envvar interface is used. Set only those that are not.
19755 # We use the long form for the default assignment because of an extremely
19756 # bizarre bug on SunOS 4.1.3.
19757 if $ac_need_defaults; then
19758 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19759 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
19760 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
19761 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
19764 # Have a temporary directory for convenience. Make it in the build tree
19765 # simply because there is no reason against having it here, and in addition,
19766 # creating and moving files from /tmp can sometimes cause problems.
19767 # Hook for its removal unless debugging.
19768 # Note that there is a small window in which the directory will not be cleaned:
19769 # after its creation but before its name has been assigned to `$tmp'.
19773 trap 'exit_status=$?
19774 : "${ac_tmp:=$tmp}"
19775 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19777 trap 'as_fn_exit 1' 1 2 13 15
19779 # Create a (secure) tmp directory for tmp files.
19782 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19786 tmp
=.
/conf$$
-$RANDOM
19787 (umask 077 && mkdir
"$tmp")
19788 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19791 # Set up the scripts for CONFIG_FILES section.
19792 # No need to generate them if there are no CONFIG_FILES.
19793 # This happens for instance with `./config.status config.h'.
19794 if test -n "$CONFIG_FILES"; then
19796 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19797 ac_cs_awk_getline
=:
19798 ac_cs_awk_pipe_init
=
19799 ac_cs_awk_read_file
='
19800 while ((getline aline < (F[key])) > 0)
19803 ac_cs_awk_pipe_fini
=
19805 ac_cs_awk_getline
=false
19806 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19807 ac_cs_awk_read_file
='
19809 print "cat " F[key] " &&"
19810 '$ac_cs_awk_pipe_init
19811 # The final `:' finishes the AND list.
19812 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19814 ac_cr
=`echo X | tr X '\015'`
19815 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19816 # But we know of no other shell where ac_cr would be empty at this
19817 # point, so we can use a bashism as a fallback.
19818 if test "x$ac_cr" = x
; then
19819 eval ac_cr
=\$
\'\\r
\'
19821 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19822 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19825 ac_cs_awk_cr
=$ac_cr
19828 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19831 # Create commands to substitute file output variables.
19833 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19834 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19835 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19838 } >conf$
$files.sh
&&
19839 . .
/conf$
$files.sh ||
19840 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19841 rm -f conf$
$files.sh
19844 echo "cat >conf$$subs.awk <<_ACEOF" &&
19845 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19847 } >conf$$subs.sh ||
19848 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19849 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19851 for ac_last_try in false false false false false :; do
19852 . ./conf$$subs.sh ||
19853 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19855 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19856 if test $ac_delim_n = $ac_delim_num; then
19858 elif $ac_last_try; then
19859 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19861 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19864 rm -f conf$$subs.sh
19866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19867 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19871 s/^/S["/; s
/!.
*/"]=/
19881 s/\(.\{148\}\)..*/\1/
19883 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19888 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19895 s/\(.\{148\}\)..*/\1/
19897 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19901 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19906 ' <conf$$subs.awk | sed '
19911 ' >>$CONFIG_STATUS || ac_write_fail=1
19912 rm -f conf$$subs.awk
19913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19915 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19916 for (key in S) S_is_set[key] = 1
19918 \$ac_cs_awk_pipe_init
19922 nfields = split(line, field, "@
")
19924 len = length(field[1])
19925 for (i = 2; i < nfields; i++) {
19927 keylen = length(key)
19928 if (S_is_set[key]) {
19930 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19931 len += length(value) + length(field[++i])
19936 if (nfields == 3 && !substed) {
19938 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19939 \$ac_cs_awk_read_file
19945 \$ac_cs_awk_pipe_fini
19948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19949 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19950 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19953 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19954 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19957 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19958 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19959 # trailing colons and then remove the whole line if VPATH becomes empty
19960 # (actually we leave an empty line to preserve line numbers).
19961 if test "x
$srcdir" = x.; then
19962 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19981 fi # test -n "$CONFIG_FILES"
19983 # Set up the scripts for CONFIG_HEADERS section.
19984 # No need to generate them if there are no CONFIG_HEADERS.
19985 # This happens for instance with `./config.status Makefile'.
19986 if test -n "$CONFIG_HEADERS"; then
19987 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
19991 # Transform confdefs.h into an awk script `defines.awk', embedded as
19992 # here-document in config.status, that substitutes the proper values into
19993 # config.h.in to produce config.h.
19995 # Create a delimiter string that does not exist in confdefs.h, to ease
19996 # handling of long lines.
19998 for ac_last_try in false false :; do
19999 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
20000 if test -z "$ac_tt"; then
20002 elif $ac_last_try; then
20003 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
20005 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20009 # For the awk script, D is an array of macro values keyed by name,
20010 # likewise P contains macro parameters if any. Preserve backslash
20011 # newline sequences.
20013 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20015 s/.\{148\}/&'"$ac_delim"'/g
20018 s/^[ ]*#[ ]*define[ ][ ]*/ /
20025 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
20027 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
20031 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
20032 D["\
1"]=" \
3\\\\\\n
"\\/p
20034 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
20039 s/.\{148\}/&'"$ac_delim"'/g
20044 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
20047 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
20049 ' <confdefs.h | sed '
20050 s/'"$ac_delim"'/"\\\
20051 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20054 for (key in D) D_is_set[key] = 1
20057 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20059 split(line, arg, " ")
20060 if (arg[1] == "#") {
20064 defundef
= substr
(arg
[1], 2)
20067 split(mac1
, mac2
, "(") #)
20069 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
20070 if (D_is_set
[macro
]) {
20071 # Preserve the white space surrounding the "#".
20072 print prefix
"define", macro P
[macro
] D
[macro
]
20075 # Replace #undef with comments. This is necessary, for example,
20076 # in the case of _POSIX_SOURCE, which is predefined and required
20077 # on some systems where configure will not decide to define it.
20078 if (defundef
== "undef") {
20079 print
"/*", prefix defundef
, macro
, "*/"
20087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20088 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
20089 fi # test -n "$CONFIG_HEADERS"
20092 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
20097 :[FHLC
]) ac_mode
=$ac_tag; continue;;
20099 case $ac_mode$ac_tag in
20101 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
20102 :[FH
]-) ac_tag
=-:-;;
20103 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
20120 -) ac_f
="$ac_tmp/stdin";;
20121 *) # Look for the file first in the build tree, then in the source tree
20122 # (if the path is not absolute). The absolute path cannot be DOS-style,
20123 # because $ac_f cannot contain `:'.
20127 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
20129 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20131 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20132 as_fn_append ac_file_inputs
" '$ac_f'"
20135 # Let's still pretend it is `configure' which instantiates (i.e., don't
20136 # use $as_me), people would be surprised to read:
20137 # /* config.h. Generated by config.status. */
20138 configure_input
='Generated from '`
20139 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20141 if test x
"$ac_file" != x-
; then
20142 configure_input
="$ac_file. $configure_input"
20143 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20144 $as_echo "$as_me: creating $ac_file" >&6;}
20146 # Neutralize special characters interpreted by sed in replacement strings.
20147 case $configure_input in #(
20148 *\
&* |
*\|
* |
*\\* )
20149 ac_sed_conf_input
=`$as_echo "$configure_input" |
20150 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20151 *) ac_sed_conf_input
=$configure_input;;
20155 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
20156 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
20161 ac_dir
=`$as_dirname -- "$ac_file" ||
20162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20163 X"$ac_file" : 'X\(//\)[^/]' \| \
20164 X"$ac_file" : 'X\(//\)$' \| \
20165 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20166 $as_echo X"$ac_file" |
20167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20171 /^X\(\/\/\)[^/].*/{
20184 as_dir
="$ac_dir"; as_fn_mkdir_p
20188 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20190 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20191 # A ".." for each directory in $ac_dir_suffix.
20192 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20193 case $ac_top_builddir_sub in
20194 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20195 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20198 ac_abs_top_builddir
=$ac_pwd
20199 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20200 # for backward compatibility:
20201 ac_top_builddir
=$ac_top_build_prefix
20204 .
) # We are building in place.
20206 ac_top_srcdir
=$ac_top_builddir_sub
20207 ac_abs_top_srcdir
=$ac_pwd ;;
20208 [\\/]* | ?
:[\\/]* ) # Absolute name.
20209 ac_srcdir
=$srcdir$ac_dir_suffix;
20210 ac_top_srcdir
=$srcdir
20211 ac_abs_top_srcdir
=$srcdir ;;
20212 *) # Relative name.
20213 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20214 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20215 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20217 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20227 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
20228 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
20232 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20233 # If the template does not know about datarootdir, expand it.
20234 # FIXME: This hack should be removed a few years after 2.60.
20235 ac_datarootdir_hack
=; ac_datarootdir_seen
=
20246 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20247 *datarootdir
*) ac_datarootdir_seen
=yes;;
20248 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
20249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20250 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20253 ac_datarootdir_hack='
20254 s&@datadir@&$datadir&g
20255 s&@docdir@&$docdir&g
20256 s&@infodir@&$infodir&g
20257 s&@localedir@&$localedir&g
20258 s&@mandir@&$mandir&g
20259 s&\\\${datarootdir}&$datarootdir&g' ;;
20263 # Neutralize VPATH when `$srcdir' = `.'.
20264 # Shell code in configure.ac might set extrasub.
20265 # FIXME: do we really want to maintain this feature?
20266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20267 ac_sed_extra="$ac_vpsub
20270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20272 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
20273 s|@configure_input@|
$ac_sed_conf_input|
;t t
20274 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
20275 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
20276 s
&@srcdir@
&$ac_srcdir&;t t
20277 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
20278 s
&@top_srcdir@
&$ac_top_srcdir&;t t
20279 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
20280 s
&@builddir@
&$ac_builddir&;t t
20281 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20282 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20283 s
&@INSTALL@
&$ac_INSTALL&;t t
20284 $ac_datarootdir_hack
20286 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20287 if $ac_cs_awk_getline; then
20288 $AWK -f "$ac_tmp/subs.
awk"
20290 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20292 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20294 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20295 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20296 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20297 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20299 which seems to be undefined. Please make sure it is defined" >&5
20300 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20301 which seems to be undefined. Please make sure it is defined" >&2;}
20303 rm -f "$ac_tmp/stdin"
20305 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20306 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20314 if test x"$ac_file" != x-; then
20316 $as_echo "/* $configure_input */" \
20317 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20318 } >"$ac_tmp/config.h" \
20319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20320 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20322 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20325 mv "$ac_tmp/config.h" "$ac_file" \
20326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20329 $as_echo "/* $configure_input */" \
20330 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20331 || as_fn_error $? "could not create -" "$LINENO" 5
20339 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
20342 # Prefer the file from the source tree if names are identical.
20343 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
20344 ac_source=$srcdir/$ac_source
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
20348 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
20350 if test ! -r "$ac_source"; then
20351 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
20355 # Try a relative symlink, then a hard link, then a copy.
20357 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
20358 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
20360 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
20361 ln "$ac_source" "$ac_file" 2>/dev/null ||
20362 cp -p "$ac_source" "$ac_file" ||
20363 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
20366 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20367 $as_echo "$as_me: executing $ac_file commands" >&6;}
20372 case $ac_file$ac_mode in
20373 "config.h":H) echo > stamp-h ;;
20374 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
20375 "nm.h":L) echo > stamp-nmh ;;
20376 "gcore":F) chmod +x gcore ;;
20384 ac_clean_files=$ac_clean_files_save
20386 test $ac_write_fail = 0 ||
20387 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20390 # configure is writing to config.log, and then calls config.status.
20391 # config.status does its own redirection, appending to config.log.
20392 # Unfortunately, on DOS this fails, as config.log is still kept open
20393 # by configure, so config.status won't be able to
write to it
; its
20394 # output is simply discarded. So we exec the FD to /dev/null,
20395 # effectively closing config.log, so it can be properly (re)opened and
20396 # appended to by config.status. When coming back to configure, we
20397 # need to make the FD available again.
20398 if test "$no_create" != yes; then
20400 ac_config_status_args
=
20401 test "$silent" = yes &&
20402 ac_config_status_args
="$ac_config_status_args --quiet"
20404 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20406 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20407 # would make configure fail if this is the last instruction.
20408 $ac_cs_success || as_fn_exit
1
20412 # CONFIG_SUBDIRS section.
20414 if test "$no_recursion" != yes; then
20416 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
20417 # so they do not pile up.
20418 ac_sub_configure_args
=
20420 eval "set x $ac_configure_args"
20424 if test -n "$ac_prev"; then
20429 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
20430 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
20431 ac_prev
=cache_file
;;
20432 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
20433 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
20436 --config-cache |
-C)
20438 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
20440 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
20442 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
20444 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
20446 --disable-option-checking)
20450 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20452 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
20456 # Always prepend --prefix to ensure using the same prefix
20457 # in subdir configurations.
20458 ac_arg
="--prefix=$prefix"
20460 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
20462 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
20465 if test "$silent" = yes; then
20466 ac_sub_configure_args
="--silent $ac_sub_configure_args"
20469 # Always prepend --disable-option-checking to silence warnings, since
20470 # different subdirs can have different --enable and --with options.
20471 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
20474 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
20476 # Do not complain, so a configure script can configure whichever
20477 # parts of a large source tree are present.
20478 test -d "$srcdir/$ac_dir" ||
continue
20480 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
20481 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
20482 $as_echo "$ac_msg" >&6
20483 as_dir
="$ac_dir"; as_fn_mkdir_p
20487 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20489 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20490 # A ".." for each directory in $ac_dir_suffix.
20491 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20492 case $ac_top_builddir_sub in
20493 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
20494 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
20497 ac_abs_top_builddir
=$ac_pwd
20498 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
20499 # for backward compatibility:
20500 ac_top_builddir
=$ac_top_build_prefix
20503 .
) # We are building in place.
20505 ac_top_srcdir
=$ac_top_builddir_sub
20506 ac_abs_top_srcdir
=$ac_pwd ;;
20507 [\\/]* | ?
:[\\/]* ) # Absolute name.
20508 ac_srcdir
=$srcdir$ac_dir_suffix;
20509 ac_top_srcdir
=$srcdir
20510 ac_abs_top_srcdir
=$srcdir ;;
20511 *) # Relative name.
20512 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
20513 ac_top_srcdir
=$ac_top_build_prefix$srcdir
20514 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
20516 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
20521 # Check for guested configure; otherwise get Cygnus style configure.
20522 if test -f "$ac_srcdir/configure.gnu"; then
20523 ac_sub_configure
=$ac_srcdir/configure.gnu
20524 elif test -f "$ac_srcdir/configure"; then
20525 ac_sub_configure
=$ac_srcdir/configure
20526 elif test -f "$ac_srcdir/configure.in"; then
20527 # This should be Cygnus configure.
20528 ac_sub_configure
=$ac_aux_dir/configure
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
20531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
20535 # The recursion is here.
20536 if test -n "$ac_sub_configure"; then
20537 # Make the cache file name correct relative to the subdirectory.
20538 case $cache_file in
20539 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
20540 *) # Relative name.
20541 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
20544 { $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
20545 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
20546 # The eval makes quoting arguments work.
20547 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
20548 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
20549 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
20555 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20557 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}