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
731 READLINE_TEXI_INCFLAG
755 HAVE_NATIVE_GCORE_TARGET
781 INSTALL_STRIP_PROGRAM
810 MAINTAINER_MODE_FALSE
839 program_transform_name
850 ac_subst_files
='nat_makefile_frag'
852 enable_option_checking
853 enable_maintainer_mode
856 with_separate_debug_dir
858 with_relocated_sources
860 with_auto_load_safe_path
885 enable_source_highlight
892 enable_build_warnings
893 enable_gdb_build_warnings
903 with_libbabeltrace_prefix
905 with_libxxhash_prefix
908 ac_precious_vars
='build_alias
925 ac_subdirs_all
='testsuite
929 # Initialize some variables set by options.
931 ac_init_version
=false
932 ac_unrecognized_opts
=
934 # The variables have the same names as the options, with
935 # dashes changed to underlines.
943 program_transform_name
=s
,x
,x
,
951 # Installation directory options.
952 # These are left unexpanded so users can "make install exec_prefix=/foo"
953 # and all the variables that are supposed to be based on exec_prefix
954 # by default will actually change.
955 # Use braces instead of parens because sh, perl, etc. also accept them.
956 # (The list follows the same order as the GNU Coding Standards.)
957 bindir
='${exec_prefix}/bin'
958 sbindir
='${exec_prefix}/sbin'
959 libexecdir
='${exec_prefix}/libexec'
960 datarootdir
='${prefix}/share'
961 datadir
='${datarootdir}'
962 sysconfdir
='${prefix}/etc'
963 sharedstatedir
='${prefix}/com'
964 localstatedir
='${prefix}/var'
965 includedir
='${prefix}/include'
966 oldincludedir
='/usr/include'
967 docdir
='${datarootdir}/doc/${PACKAGE}'
968 infodir
='${datarootdir}/info'
973 libdir
='${exec_prefix}/lib'
974 localedir
='${datarootdir}/locale'
975 mandir
='${datarootdir}/man'
981 # If the previous option needs an argument, assign it.
982 if test -n "$ac_prev"; then
983 eval $ac_prev=\
$ac_option
989 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
994 # Accept the important Cygnus configure options, so we can diagnose typos.
996 case $ac_dashdash$ac_option in
1000 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1002 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1003 bindir
=$ac_optarg ;;
1005 -build |
--build |
--buil |
--bui |
--bu)
1006 ac_prev
=build_alias
;;
1007 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1008 build_alias
=$ac_optarg ;;
1010 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1011 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1012 ac_prev
=cache_file
;;
1013 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1014 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1015 cache_file
=$ac_optarg ;;
1017 --config-cache |
-C)
1018 cache_file
=config.cache
;;
1020 -datadir |
--datadir |
--datadi |
--datad)
1022 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1023 datadir
=$ac_optarg ;;
1025 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1026 |
--dataroo |
--dataro |
--datar)
1027 ac_prev
=datarootdir
;;
1028 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1029 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1030 datarootdir
=$ac_optarg ;;
1032 -disable-* |
--disable-*)
1033 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1034 # Reject names that are not valid shell variable names.
1035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1036 as_fn_error $?
"invalid feature name: $ac_useropt"
1037 ac_useropt_orig
=$ac_useropt
1038 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1039 case $ac_user_opts in
1041 "enable_
$ac_useropt"
1043 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1044 ac_unrecognized_sep
=', ';;
1046 eval enable_
$ac_useropt=no
;;
1048 -docdir |
--docdir |
--docdi |
--doc |
--do)
1050 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1051 docdir
=$ac_optarg ;;
1053 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1055 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1056 dvidir
=$ac_optarg ;;
1058 -enable-* |
--enable-*)
1059 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1062 as_fn_error $?
"invalid feature name: $ac_useropt"
1063 ac_useropt_orig
=$ac_useropt
1064 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1065 case $ac_user_opts in
1067 "enable_
$ac_useropt"
1069 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1070 ac_unrecognized_sep
=', ';;
1072 eval enable_
$ac_useropt=\
$ac_optarg ;;
1074 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1075 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1076 |
--exec |
--exe |
--ex)
1077 ac_prev
=exec_prefix
;;
1078 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1079 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1080 |
--exec=* |
--exe=* |
--ex=*)
1081 exec_prefix
=$ac_optarg ;;
1083 -gas |
--gas |
--ga |
--g)
1084 # Obsolete; use --with-gas.
1087 -help |
--help |
--hel |
--he |
-h)
1088 ac_init_help
=long
;;
1089 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1090 ac_init_help
=recursive
;;
1091 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1092 ac_init_help
=short
;;
1094 -host |
--host |
--hos |
--ho)
1095 ac_prev
=host_alias
;;
1096 -host=* |
--host=* |
--hos=* |
--ho=*)
1097 host_alias
=$ac_optarg ;;
1099 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1101 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1103 htmldir
=$ac_optarg ;;
1105 -includedir |
--includedir |
--includedi |
--included |
--include \
1106 |
--includ |
--inclu |
--incl |
--inc)
1107 ac_prev
=includedir
;;
1108 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1109 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1110 includedir
=$ac_optarg ;;
1112 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1114 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1115 infodir
=$ac_optarg ;;
1117 -libdir |
--libdir |
--libdi |
--libd)
1119 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1120 libdir
=$ac_optarg ;;
1122 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1123 |
--libexe |
--libex |
--libe)
1124 ac_prev
=libexecdir
;;
1125 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1126 |
--libexe=* |
--libex=* |
--libe=*)
1127 libexecdir
=$ac_optarg ;;
1129 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1130 ac_prev
=localedir
;;
1131 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1132 localedir
=$ac_optarg ;;
1134 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1135 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1136 ac_prev
=localstatedir
;;
1137 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1138 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1139 localstatedir
=$ac_optarg ;;
1141 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1143 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1144 mandir
=$ac_optarg ;;
1146 -nfp |
--nfp |
--nf)
1147 # Obsolete; use --without-fp.
1150 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1151 |
--no-cr |
--no-c |
-n)
1154 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1155 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1158 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1159 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1160 |
--oldin |
--oldi |
--old |
--ol |
--o)
1161 ac_prev
=oldincludedir
;;
1162 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1163 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1164 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1165 oldincludedir
=$ac_optarg ;;
1167 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1169 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1170 prefix
=$ac_optarg ;;
1172 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1173 |
--program-pre |
--program-pr |
--program-p)
1174 ac_prev
=program_prefix
;;
1175 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1176 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1177 program_prefix
=$ac_optarg ;;
1179 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1180 |
--program-suf |
--program-su |
--program-s)
1181 ac_prev
=program_suffix
;;
1182 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1183 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1184 program_suffix
=$ac_optarg ;;
1186 -program-transform-name |
--program-transform-name \
1187 |
--program-transform-nam |
--program-transform-na \
1188 |
--program-transform-n |
--program-transform- \
1189 |
--program-transform |
--program-transfor \
1190 |
--program-transfo |
--program-transf \
1191 |
--program-trans |
--program-tran \
1192 |
--progr-tra |
--program-tr |
--program-t)
1193 ac_prev
=program_transform_name
;;
1194 -program-transform-name=* |
--program-transform-name=* \
1195 |
--program-transform-nam=* |
--program-transform-na=* \
1196 |
--program-transform-n=* |
--program-transform-=* \
1197 |
--program-transform=* |
--program-transfor=* \
1198 |
--program-transfo=* |
--program-transf=* \
1199 |
--program-trans=* |
--program-tran=* \
1200 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1201 program_transform_name
=$ac_optarg ;;
1203 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1205 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1206 pdfdir
=$ac_optarg ;;
1208 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1210 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1213 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1214 |
-silent |
--silent |
--silen |
--sile |
--sil)
1217 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1219 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1221 sbindir
=$ac_optarg ;;
1223 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1224 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1225 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1227 ac_prev
=sharedstatedir
;;
1228 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1229 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1230 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1232 sharedstatedir
=$ac_optarg ;;
1234 -site |
--site |
--sit)
1236 -site=* |
--site=* |
--sit=*)
1239 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1241 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1242 srcdir
=$ac_optarg ;;
1244 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1245 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1246 ac_prev
=sysconfdir
;;
1247 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1248 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1249 sysconfdir
=$ac_optarg ;;
1251 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1252 ac_prev
=target_alias
;;
1253 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1254 target_alias
=$ac_optarg ;;
1256 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1259 -version |
--version |
--versio |
--versi |
--vers |
-V)
1260 ac_init_version
=: ;;
1263 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1264 # Reject names that are not valid shell variable names.
1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1266 as_fn_error $?
"invalid package name: $ac_useropt"
1267 ac_useropt_orig
=$ac_useropt
1268 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1273 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep
=', ';;
1276 eval with_
$ac_useropt=\
$ac_optarg ;;
1278 -without-* |
--without-*)
1279 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1280 # Reject names that are not valid shell variable names.
1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1282 as_fn_error $?
"invalid package name: $ac_useropt"
1283 ac_useropt_orig
=$ac_useropt
1284 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1289 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep
=', ';;
1292 eval with_
$ac_useropt=no
;;
1295 # Obsolete; use --with-x.
1298 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1299 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1300 ac_prev
=x_includes
;;
1301 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1302 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1303 x_includes
=$ac_optarg ;;
1305 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1306 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1307 ac_prev
=x_libraries
;;
1308 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1309 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1310 x_libraries
=$ac_optarg ;;
1312 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1313 Try \`$0 --help' for more information"
1317 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
1319 case $ac_envvar in #(
1320 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1321 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1323 eval $ac_envvar=\
$ac_optarg
1324 export $ac_envvar ;;
1327 # FIXME: should be removed in autoconf 3.0.
1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1331 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1337 if test -n "$ac_prev"; then
1338 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1339 as_fn_error $?
"missing argument to $ac_option"
1342 if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1345 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1350 # Check all directory arguments for consistency.
1351 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1354 libdir localedir mandir
1356 eval ac_val
=\$
$ac_var
1357 # Remove trailing slashes.
1360 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\
$ac_val;;
1363 # Be sure to have absolute directory names.
1365 [\\/$
]* | ?
:[\\/]* ) continue;;
1366 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1368 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1376 target
=$target_alias
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x
; then
1380 if test "x$build_alias" = x
; then
1381 cross_compiling
=maybe
1382 elif test "x$build_alias" != "x$host_alias"; then
1388 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1390 test "$silent" = yes && exec 6>/dev
/null
1393 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1394 ac_ls_di
=`ls -di .` &&
1395 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1396 as_fn_error $?
"working directory cannot be determined"
1397 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1398 as_fn_error $?
"pwd does not report name of working directory"
1401 # Find the source files, if location was not specified.
1402 if test -z "$srcdir"; then
1403 ac_srcdir_defaulted
=yes
1404 # Try the directory containing this script, then the parent directory.
1405 ac_confdir
=`$as_dirname -- "$as_myself" ||
1406 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410 $as_echo X"$as_myself" |
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 if test ! -r "$srcdir/$ac_unique_file"; then
1433 ac_srcdir_defaulted
=no
1435 if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1437 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1439 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1443 # When building in place, set srcdir=.
1444 if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 # Remove unnecessary trailing slashes from srcdir.
1448 # Double slashes in file names in object file debugging info
1449 # mess up M-x gdb in Emacs.
1451 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453 for ac_var
in $ac_precious_vars; do
1454 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1456 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1461 # Report the --help message.
1463 if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1467 \`configure' configures this package to adapt to many kinds of systems.
1469 Usage: $0 [OPTION]... [VAR=VALUE]...
1471 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472 VAR=VALUE. See below for descriptions of some of the useful variables.
1474 Defaults for the options are specified in brackets.
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
1481 -q, --quiet, --silent do not print \`checking ...' messages
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487 Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
1489 [$ac_default_prefix]
1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1493 By default, \`make install' will install all the files in
1494 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496 for instance \`--prefix=\$HOME'.
1498 For better control, use the options below.
1500 Fine tuning of the installation directories:
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1507 --libdir=DIR object code libraries [EPREFIX/lib]
1508 --includedir=DIR C header files [PREFIX/include]
1509 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1510 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1511 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1512 --infodir=DIR info documentation [DATAROOTDIR/info]
1513 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1514 --mandir=DIR man documentation [DATAROOTDIR/man]
1515 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1516 --htmldir=DIR html documentation [DOCDIR]
1517 --dvidir=DIR dvi documentation [DOCDIR]
1518 --pdfdir=DIR pdf documentation [DOCDIR]
1519 --psdir=DIR ps documentation [DOCDIR]
1525 --program-prefix=PREFIX prepend PREFIX to installed program names
1526 --program-suffix=SUFFIX append SUFFIX to installed program names
1527 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1530 --x-includes=DIR X include files are
in DIR
1531 --x-libraries=DIR X library files are
in DIR
1534 --build=BUILD configure
for building on BUILD
[guessed
]
1535 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1536 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1540 if test -n "$ac_init_help"; then
1545 --disable-option-checking ignore unrecognized
--enable/--with options
1546 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1547 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1548 --enable-maintainer-mode
1549 enable make rules and dependencies not useful
(and
1550 sometimes confusing
) to the casual installer
1551 --enable-plugins Enable support
for plugins
1552 --disable-largefile omit support
for large files
1553 --enable-targets=TARGETS
1554 alternative target configurations
1555 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1556 --disable-gdbmi disable machine-interface
(MI
)
1557 --enable-tui enable full-screen terminal user interface
(TUI
)
1558 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1559 --enable-profiling enable profiling of GDB
1560 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1561 --disable-rpath do not hardcode runtime library paths
1562 --enable-source-highlight
1563 enable source-highlight
for source listings
1564 --enable-werror treat compile warnings as errors
1565 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1566 --enable-gdb-build-warnings
1567 enable GDB specific build-time compiler warnings
if
1569 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1570 --enable-sim link gdb with simulator
1571 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1573 --enable-unit-tests Enable the inclusion of unit tests when compiling
1577 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1578 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1579 --with-separate-debug-dir=PATH
1580 look for global separate debug info
in this path
1582 --with-gdb-datadir=PATH
look for global separate data files
in this path
1584 --with-relocated-sources=PATH
1585 automatically relocate this path
for source files
1586 --with-auto-load-dir=PATH
1587 directories from
which to load auto-loaded scripts
1588 [$debugdir:$datadir/auto-load
]
1589 --with-auto-load-safe-path=PATH
1590 directories safe to hold auto-loaded files
1591 [--with-auto-load-dir]
1592 --without-auto-load-safe-path
1593 do not restrict auto-loaded files locations
1594 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1595 --with-curses use the curses library instead of the termcap
1597 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1598 --with-bugurl=URL Direct users to URL to report a bug
1599 --with-system-zlib use installed libz
1600 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1601 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1602 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1603 --with-iconv-bin=PATH specify where to find the iconv program
1604 --with-system-readline use installed readline library
1605 --with-jit-reader-dir=PATH
1606 directory to load the JIT readers from
1607 --with-expat include expat support (auto/yes/no)
1608 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1609 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1610 --with-mpfr include MPFR support
(auto
/yes
/no
)
1611 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1612 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1613 --with-python[=PYTHON] include python support
1614 (auto/yes/no/<python-program>)
1615 --with-guile[=GUILE] include guile support
1616 (auto/yes/no/<guile-version>/<pkg-config-program>)
1617 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1618 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1619 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1620 --without-included-regex
1621 don
't use included regex; this is the default on
1622 systems with version 2 of the GNU C library (use
1623 with caution on other system)
1624 --with-sysroot[=DIR] search for usr/lib et al within DIR
1625 --with-system-gdbinit=PATH
1626 automatically load a system-wide gdbinit file
1627 --with-lzma support lzma compression (auto/yes/no)
1628 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1629 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1630 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1631 --with-tk directory containing tk configuration
(tkConfig.sh
)
1632 --with-x use the X Window System
1633 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1634 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1635 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1636 --with-xxhash use libxxhash for hashing (faster) (auto/yes/no)
1637 --with-libxxhash-prefix[=DIR] search for libxxhash in DIR/include and DIR/lib
1638 --without-libxxhash-prefix don't search
for libxxhash
in includedir and libdir
1640 Some influential environment variables
:
1641 CC C compiler
command
1642 CFLAGS C compiler flags
1643 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1644 nonstandard directory
<lib dir
>
1645 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1646 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1647 you have headers
in a nonstandard directory
<include dir
>
1648 CXX C
++ compiler
command
1649 CXXFLAGS C
++ compiler flags
1651 MAKEINFO Parent configure detects
if it is of sufficient version.
1653 Parameters
for MAKEINFO.
1654 YACC The
`Yet Another Compiler Compiler' implementation to use.
1655 Defaults to the first program found out of: `bison
-y', `byacc',
1657 YFLAGS The list of arguments that will be passed by default to $YACC.
1658 This script will default YFLAGS to the empty string to avoid a
1659 default value of `-d' given by some make applications.
1660 XMKMF Path to xmkmf, Makefile generator for X Window System
1662 Use these variables to override the choices made by `configure' or to
help
1663 it to
find libraries and programs with nonstandard names
/locations.
1665 Report bugs to the package provider.
1670 if test "$ac_init_help" = "recursive"; then
1671 # If there are subdirs, report their specific --help.
1672 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1673 test -d "$ac_dir" ||
1674 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1679 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1681 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1682 # A ".." for each directory in $ac_dir_suffix.
1683 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1684 case $ac_top_builddir_sub in
1685 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1686 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1689 ac_abs_top_builddir
=$ac_pwd
1690 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1691 # for backward compatibility:
1692 ac_top_builddir
=$ac_top_build_prefix
1695 .
) # We are building in place.
1697 ac_top_srcdir
=$ac_top_builddir_sub
1698 ac_abs_top_srcdir
=$ac_pwd ;;
1699 [\\/]* | ?
:[\\/]* ) # Absolute name.
1700 ac_srcdir
=$srcdir$ac_dir_suffix;
1701 ac_top_srcdir
=$srcdir
1702 ac_abs_top_srcdir
=$srcdir ;;
1704 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1705 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1706 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1708 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1710 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1711 # Check for guested configure.
1712 if test -f "$ac_srcdir/configure.gnu"; then
1714 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1715 elif test -f "$ac_srcdir/configure"; then
1717 $SHELL "$ac_srcdir/configure" --help=recursive
1719 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1721 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1725 test -n "$ac_init_help" && exit $ac_status
1726 if $ac_init_version; then
1729 generated by GNU Autoconf
2.69
1731 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1732 This configure
script is free software
; the Free Software Foundation
1733 gives unlimited permission to copy
, distribute and modify it.
1738 ## ------------------------ ##
1739 ## Autoconf initialization. ##
1740 ## ------------------------ ##
1742 # ac_fn_c_try_compile LINENO
1743 # --------------------------
1744 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1745 ac_fn_c_try_compile
()
1747 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1748 rm -f conftest.
$ac_objext
1749 if { { ac_try
="$ac_compile"
1751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_compile") 2>conftest.err
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && {
1765 test -z "$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1767 } && test -s conftest.$ac_objext; then :
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1778 } # ac_fn_c_try_compile
1780 # ac_fn_cxx_try_compile LINENO
1781 # ----------------------------
1782 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1783 ac_fn_cxx_try_compile ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 rm -f conftest.$ac_objext
1787 if { { ac_try="$ac_compile"
1789 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1790 *) ac_try_echo
=$ac_try;;
1792 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_compile") 2>conftest.err
1796 if test -s conftest.err
; then
1797 grep -v '^ *+' conftest.err
>conftest.er1
1798 cat conftest.er1
>&5
1799 mv -f conftest.er1 conftest.err
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && {
1803 test -z "$ac_cxx_werror_flag" ||
1804 test ! -s conftest.err
1805 } && test -s conftest.
$ac_objext; then :
1808 $as_echo "$as_me: failed program was:" >&5
1809 sed 's/^/| /' conftest.
$ac_ext >&5
1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 as_fn_set_status
$ac_retval
1816 } # ac_fn_cxx_try_compile
1818 # ac_fn_c_try_cpp LINENO
1819 # ----------------------
1820 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1824 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } > conftest.i && {
1840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
1855 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1856 # -------------------------------------------------------
1857 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1858 # the include files in INCLUDES and setting the cache variable VAR
1860 ac_fn_c_check_header_mongrel ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if eval \${$3+:} false; then :
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1873 # Is the header compilable?
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1875 $as_echo_n "checking $2 usability... " >&6; }
1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1877 /* end confdefs.h. */
1881 if ac_fn_c_try_compile "$LINENO"; then :
1882 ac_header_compiler=yes
1884 ac_header_compiler=no
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1888 $as_echo "$ac_header_compiler" >&6; }
1890 # Is the header present?
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1892 $as_echo_n "checking $2 presence... " >&6; }
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1897 if ac_fn_c_try_cpp "$LINENO"; then :
1898 ac_header_preproc=yes
1900 ac_header_preproc=no
1902 rm -f conftest.err conftest.i conftest.$ac_ext
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1904 $as_echo "$ac_header_preproc" >&6; }
1906 # So? What about this header?
1907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1910 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1916 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1918 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1920 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1922 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1924 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1928 $as_echo_n "checking for $2... " >&6; }
1929 if eval \${$3+:} false; then :
1930 $as_echo_n "(cached) " >&6
1932 eval "$3=\$ac_header_compiler"
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 } # ac_fn_c_check_header_mongrel
1942 # ac_fn_c_try_run LINENO
1943 # ----------------------
1944 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1945 # that executables *can* be run.
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 if { { ac_try="$ac_link"
1951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1952 *) ac_try_echo
=$ac_try;;
1954 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955 $as_echo "$ac_try_echo"; } >&5
1956 (eval "$ac_link") 2>&5
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1960 { { case "(($ac_try" in
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_try") 2>&5
1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1969 test $ac_status = 0; }; }; then :
1972 $as_echo "$as_me: program exited with status $ac_status" >&5
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1976 ac_retval=$ac_status
1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 as_fn_set_status $ac_retval
1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1985 # -------------------------------------------------------
1986 # Tests whether HEADER exists and can be compiled using the include files in
1987 # INCLUDES, setting the cache variable VAR accordingly.
1988 ac_fn_c_check_header_compile ()
1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2001 if ac_fn_c_try_compile "$LINENO"; then :
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 } # ac_fn_c_check_header_compile
2015 # ac_fn_c_try_link LINENO
2016 # -----------------------
2017 # Try to link conftest.$ac_ext, and return whether this succeeded.
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 rm -f conftest.$ac_objext conftest$ac_exeext
2022 if { { ac_try="$ac_link"
2024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2025 *) ac_try_echo
=$ac_try;;
2027 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2028 $as_echo "$ac_try_echo"; } >&5
2029 (eval "$ac_link") 2>conftest.err
2031 if test -s conftest.err
; then
2032 grep -v '^ *+' conftest.err
>conftest.er1
2033 cat conftest.er1
>&5
2034 mv -f conftest.er1 conftest.err
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && {
2038 test -z "$ac_c_werror_flag" ||
2039 test ! -s conftest.err
2040 } && test -s conftest
$ac_exeext && {
2041 test "$cross_compiling" = yes ||
2042 test -x conftest
$ac_exeext
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.
$ac_ext >&5
2051 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2052 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2053 # interfere with the next link command; also delete a directory that is
2054 # left behind by Apple's compiler. We do this before executing the actions.
2055 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2056 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 as_fn_set_status
$ac_retval
2059 } # ac_fn_c_try_link
2061 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2062 # --------------------------------------------
2063 # Tries to find the compile-time value of EXPR in a program that includes
2064 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2066 ac_fn_c_compute_int
()
2068 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2069 if test "$cross_compiling" = yes; then
2070 # Depending upon the size, compute the lo and hi bounds.
2071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2077 static int test_array [1 - 2 * !(($2) >= 0)];
2079 return test_array [0];
2085 if ac_fn_c_try_compile
"$LINENO"; then :
2088 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2089 /* end confdefs.h. */
2094 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096 return test_array [0];
2102 if ac_fn_c_try_compile
"$LINENO"; then :
2103 ac_hi
=$ac_mid; break
2105 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2106 if test $ac_lo -le $ac_mid; then
2110 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2121 static int test_array [1 - 2 * !(($2) < 0)];
2123 return test_array [0];
2129 if ac_fn_c_try_compile
"$LINENO"; then :
2132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2138 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2140 return test_array [0];
2146 if ac_fn_c_try_compile
"$LINENO"; then :
2147 ac_lo
=$ac_mid; break
2149 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2150 if test $ac_mid -le $ac_hi; then
2154 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2164 # Binary search between lo and hi bounds.
2165 while test "x$ac_lo" != "x$ac_hi"; do
2166 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2173 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2175 return test_array [0];
2181 if ac_fn_c_try_compile
"$LINENO"; then :
2184 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2189 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2196 static long int longval () { return $2; }
2197 static unsigned long int ulongval () { return $2; }
2204 FILE *f = fopen ("conftest.val", "w");
2209 long int i = longval ();
2212 fprintf (f, "%ld", i);
2216 unsigned long int i = ulongval ();
2219 fprintf (f, "%lu", i);
2221 /* Do not output a trailing newline, as this causes \r\n confusion
2222 on some platforms. */
2223 return ferror (f) || fclose (f) != 0;
2229 if ac_fn_c_try_run
"$LINENO"; then :
2230 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2234 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2235 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2240 as_fn_set_status
$ac_retval
2242 } # ac_fn_c_compute_int
2244 # ac_fn_c_check_func LINENO FUNC VAR
2245 # ----------------------------------
2246 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2247 ac_fn_c_check_func
()
2249 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if eval \
${$3+:} false
; then :
2253 $as_echo_n "(cached) " >&6
2255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h. */
2257 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2259 #define $2 innocuous_$2
2261 /* System header to define __stub macros and hopefully few prototypes,
2262 which can conflict with char $2 (); below.
2263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2264 <limits.h> exists even on freestanding compilers. */
2267 # include <limits.h>
2269 # include <assert.h>
2274 /* Override any GCC internal prototype to avoid an error.
2275 Use char because int might match the return type of a GCC
2276 builtin and then its argument prototype would still apply. */
2281 /* The GNU C library defines this for functions which it implements
2282 to always fail with ENOSYS. Some functions are actually named
2283 something starting with __ and the normal name is an alias. */
2284 #if defined __stub_$2 || defined __stub___$2
2296 if ac_fn_c_try_link
"$LINENO"; then :
2301 rm -f core conftest.err conftest.
$ac_objext \
2302 conftest
$ac_exeext conftest.
$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 } # ac_fn_c_check_func
2311 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2312 # ----------------------------------------------------
2313 # Tries to find if the field MEMBER exists in type AGGR, after including
2314 # INCLUDES, setting cache variable VAR accordingly.
2315 ac_fn_c_check_member
()
2317 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2319 $as_echo_n "checking for $2.$3... " >&6; }
2320 if eval \
${$4+:} false
; then :
2321 $as_echo_n "(cached) " >&6
2323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2336 if ac_fn_c_try_compile
"$LINENO"; then :
2339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2340 /* end confdefs.h. */
2346 if (sizeof ac_aggr.$3)
2352 if ac_fn_c_try_compile
"$LINENO"; then :
2357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363 $as_echo "$ac_res" >&6; }
2364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366 } # ac_fn_c_check_member
2368 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2369 # -------------------------------------------
2370 # Tests whether TYPE exists after having included INCLUDES, setting cache
2371 # variable VAR accordingly.
2372 ac_fn_c_check_type
()
2374 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2376 $as_echo_n "checking for $2... " >&6; }
2377 if eval \
${$3+:} false
; then :
2378 $as_echo_n "(cached) " >&6
2381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2393 if ac_fn_c_try_compile
"$LINENO"; then :
2394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h. */
2406 if ac_fn_c_try_compile
"$LINENO"; then :
2411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420 } # ac_fn_c_check_type
2422 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2423 # ---------------------------------------------
2424 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2426 ac_fn_c_check_decl
()
2428 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2429 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2430 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2432 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2433 if eval \
${$3+:} false
; then :
2434 $as_echo_n "(cached) " >&6
2436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2437 /* end confdefs.h. */
2442 #ifndef $as_decl_name
2444 (void) $as_decl_use;
2446 (void) $as_decl_name;
2454 if ac_fn_c_try_compile
"$LINENO"; then :
2459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2463 $as_echo "$ac_res" >&6; }
2464 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2466 } # ac_fn_c_check_decl
2468 # ac_fn_cxx_try_link LINENO
2469 # -------------------------
2470 # Try to link conftest.$ac_ext, and return whether this succeeded.
2471 ac_fn_cxx_try_link
()
2473 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2474 rm -f conftest.
$ac_objext conftest
$ac_exeext
2475 if { { ac_try
="$ac_link"
2477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481 $as_echo "$ac_try_echo"; } >&5
2482 (eval "$ac_link") 2>conftest.err
2484 if test -s conftest.err; then
2485 grep -v '^ *+' conftest.err >conftest.er1
2486 cat conftest.er1 >&5
2487 mv -f conftest.er1 conftest.err
2489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2490 test $ac_status = 0; } && {
2491 test -z "$ac_cxx_werror_flag" ||
2492 test ! -s conftest.err
2493 } && test -s conftest$ac_exeext && {
2494 test "$cross_compiling" = yes ||
2495 test -x conftest$ac_exeext
2499 $as_echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2504 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2505 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2506 # interfere with the next link command; also delete a directory that is
2507 # left behind by Apple's compiler. We do this before executing the actions.
2508 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2510 as_fn_set_status $ac_retval
2512 } # ac_fn_cxx_try_link
2513 cat >config.log <<_ACEOF
2514 This file contains any messages produced by compilers while
2515 running configure, to aid debugging if configure makes a mistake.
2517 It was created by $as_me, which was
2518 generated by GNU Autoconf 2.69. Invocation command line was
2530 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2531 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2532 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2533 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2534 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2536 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2537 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2539 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2540 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2541 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2542 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2543 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2544 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2545 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 $as_echo "PATH: $as_dir"
2570 # Keep a trace of the command line.
2571 # Strip out --no-create and --no-recursion so they do not pile up.
2572 # Strip out --silent because we don't want to record it for future runs.
2573 # Also quote any args containing shell meta-characters.
2574 # Make two passes to allow for proper duplicate-argument suppression.
2578 ac_must_keep_next=false
2584 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2586 | -silent | --silent | --silen | --sile | --sil)
2589 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2592 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2594 as_fn_append ac_configure_args1 " '$ac_arg'"
2595 if test $ac_must_keep_next = true; then
2596 ac_must_keep_next=false # Got value, back to normal.
2599 *=* | --config-cache | -C | -disable-* | --disable-* \
2600 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2601 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2602 | -with-* | --with-* | -without-* | --without-* | --x)
2603 case "$ac_configure_args0 " in
2604 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2607 -* ) ac_must_keep_next=true ;;
2610 as_fn_append ac_configure_args " '$ac_arg'"
2615 { ac_configure_args0=; unset ac_configure_args0;}
2616 { ac_configure_args1=; unset ac_configure_args1;}
2618 # When interrupted or exit'd, cleanup temporary files, and complete
2619 # config.log. We remove comments because anyway the quotes in there
2620 # would cause problems or look ugly.
2621 # WARNING: Use '\'' to represent an apostrophe within the trap.
2622 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2623 trap 'exit_status=$?
2624 # Save into config.log some information that might help in debugging.
2628 $as_echo "## ---------------- ##
2629 ## Cache variables. ##
2630 ## ---------------- ##"
2632 # The following way of writing the cache mishandles newlines in values,
2634 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2635 eval ac_val=\$$ac_var
2639 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2640 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2643 _ | IFS | as_nl) ;; #(
2644 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2645 *) { eval $ac_var=; unset $ac_var;} ;;
2650 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2651 *${as_nl}ac_space=\ *)
2653 "s/'\''/'\''\\\\'\'''\''/g;
2654 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2657 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2664 $as_echo "## ----------------- ##
2665 ## Output variables. ##
2666 ## ----------------- ##"
2668 for ac_var in $ac_subst_vars
2670 eval ac_val=\$$ac_var
2672 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2674 $as_echo "$ac_var='\''$ac_val'\''"
2678 if test -n "$ac_subst_files"; then
2679 $as_echo "## ------------------- ##
2680 ## File substitutions. ##
2681 ## ------------------- ##"
2683 for ac_var in $ac_subst_files
2685 eval ac_val=\$$ac_var
2687 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2689 $as_echo "$ac_var='\''$ac_val'\''"
2694 if test -s confdefs.h; then
2695 $as_echo "## ----------- ##
2702 test "$ac_signal" != 0 &&
2703 $as_echo "$as_me: caught signal $ac_signal"
2704 $as_echo "$as_me: exit $exit_status"
2706 rm -f core *.core core.conftest.* &&
2707 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2710 for ac_signal in 1 2 13 15; do
2711 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2715 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2716 rm -f -r conftest* confdefs.h
2718 $as_echo "/* confdefs.h */" > confdefs.h
2720 # Predefined preprocessor variables.
2722 cat >>confdefs.h <<_ACEOF
2723 #define PACKAGE_NAME "$PACKAGE_NAME"
2726 cat >>confdefs.h <<_ACEOF
2727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2730 cat >>confdefs.h <<_ACEOF
2731 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2734 cat >>confdefs.h <<_ACEOF
2735 #define PACKAGE_STRING "$PACKAGE_STRING"
2738 cat >>confdefs.h <<_ACEOF
2739 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2742 cat >>confdefs.h <<_ACEOF
2743 #define PACKAGE_URL "$PACKAGE_URL"
2747 # Let the site file select an alternate cache file if it wants to.
2748 # Prefer an explicitly selected file to automatically selected ones.
2751 if test -n "$CONFIG_SITE"; then
2752 # We do not want a PATH search for config.site.
2753 case $CONFIG_SITE in #((
2754 -*) ac_site_file1=./$CONFIG_SITE;;
2755 */*) ac_site_file1=$CONFIG_SITE;;
2756 *) ac_site_file1=./$CONFIG_SITE;;
2758 elif test "x$prefix" != xNONE; then
2759 ac_site_file1=$prefix/share/config.site
2760 ac_site_file2=$prefix/etc/config.site
2762 ac_site_file1=$ac_default_prefix/share/config.site
2763 ac_site_file2=$ac_default_prefix/etc/config.site
2765 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2767 test "x$ac_site_file" = xNONE && continue
2768 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2770 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2771 sed 's/^/| /' "$ac_site_file" >&5
2773 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2775 as_fn_error $? "failed to load site
script $ac_site_file
2776 See \
`config.log' for more details" "$LINENO" 5; }
2780 if test -r "$cache_file"; then
2781 # Some versions of bash will fail to source /dev/null (special files
2782 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2783 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2785 $as_echo "$as_me: loading cache $cache_file" >&6;}
2787 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2788 *) . "./$cache_file";;
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2793 $as_echo "$as_me: creating cache $cache_file" >&6;}
2797 as_fn_append ac_header_list " stdlib.h"
2798 as_fn_append ac_header_list " unistd.h"
2799 as_fn_append ac_header_list " sys/param.h"
2800 # Check that the precious variables saved in the cache have kept the same
2802 ac_cache_corrupted=false
2803 for ac_var in $ac_precious_vars; do
2804 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2805 eval ac_new_set=\$ac_env_${ac_var}_set
2806 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2807 eval ac_new_val=\$ac_env_${ac_var}_value
2808 case $ac_old_set,$ac_new_set in
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2811 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2812 ac_cache_corrupted=: ;;
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2815 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2816 ac_cache_corrupted=: ;;
2819 if test "x$ac_old_val" != "x$ac_new_val"; then
2820 # differences in whitespace do not lead to failure.
2821 ac_old_val_w=`echo x
$ac_old_val`
2822 ac_new_val_w=`echo x
$ac_new_val`
2823 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2825 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2826 ac_cache_corrupted=:
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2829 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2830 eval $ac_var=\$ac_old_val
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2833 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2835 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2838 # Pass precious variables to config.status.
2839 if test "$ac_new_set" = set; then
2841 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2842 *) ac_arg=$ac_var=$ac_new_val ;;
2844 case " $ac_configure_args " in
2845 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2846 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2850 if $ac_cache_corrupted; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2854 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2855 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2857 ## -------------------- ##
2858 ## Main body of script. ##
2859 ## -------------------- ##
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2871 ac_config_headers="$ac_config_headers config.h:config.in"
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2875 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2876 # Check whether --enable-maintainer-mode was given.
2877 if test "${enable_maintainer_mode+set}" = set; then :
2878 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2880 USE_MAINTAINER_MODE=no
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2884 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2885 if test $USE_MAINTAINER_MODE = yes; then
2886 MAINTAINER_MODE_TRUE=
2887 MAINTAINER_MODE_FALSE='#'
2889 MAINTAINER_MODE_TRUE='#'
2890 MAINTAINER_MODE_FALSE=
2893 MAINT=$MAINTAINER_MODE_TRUE
2897 # Set the 'development' global.
2898 . $srcdir/../bfd/development.sh
2901 ac_cpp='$CPP $CPPFLAGS'
2902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2905 if test -n "$ac_tool_prefix"; then
2906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if ${ac_cv_prog_CC+:} false; then :
2911 $as_echo_n "(cached) " >&6
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 if test -n "$CC"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2936 $as_echo "$CC" >&6; }
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2944 if test -z "$ac_cv_prog_CC"; then
2946 # Extract the first word of "gcc", so it can be a program name with args.
2947 set dummy gcc; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2951 $as_echo_n "(cached) " >&6
2953 if test -n "$ac_ct_CC"; then
2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_ac_ct_CC="gcc"
2964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974 if test -n "$ac_ct_CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2976 $as_echo "$ac_ct_CC" >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2982 if test "x$ac_ct_CC" = x; then
2985 case $cross_compiling:$ac_tool_warned in
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2988 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2989 ac_tool_warned=yes ;;
2997 if test -z "$CC"; then
2998 if test -n "$ac_tool_prefix"; then
2999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3000 set dummy ${ac_tool_prefix}cc; ac_word=$2
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3002 $as_echo_n "checking for $ac_word... " >&6; }
3003 if ${ac_cv_prog_CC+:} false; then :
3004 $as_echo_n "(cached) " >&6
3006 if test -n "$CC"; then
3007 ac_cv_prog_CC="$CC" # Let the user override the test.
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 test -z "$as_dir" && as_dir=.
3014 for ac_exec_ext in '' $ac_executable_extensions; do
3015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3016 ac_cv_prog_CC="${ac_tool_prefix}cc"
3017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 if test -n "$CC"; then
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3029 $as_echo "$CC" >&6; }
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3032 $as_echo "no" >&6; }
3038 if test -z "$CC"; then
3039 # Extract the first word of "cc", so it can be a program name with args.
3040 set dummy cc; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if ${ac_cv_prog_CC+:} false; then :
3044 $as_echo_n "(cached) " >&6
3046 if test -n "$CC"; then
3047 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3058 ac_prog_rejected=yes
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 if test $ac_prog_rejected = yes; then
3070 # We found a bogon in the path, so make sure we never use it.
3071 set dummy $ac_cv_prog_CC
3073 if test $# != 0; then
3074 # We chose a different compiler from the bogus one.
3075 # However, it has the same basename, so the bogon will be chosen
3076 # first if we set CC to just the basename; use the full file name.
3078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3084 if test -n "$CC"; then
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3086 $as_echo "$CC" >&6; }
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3094 if test -z "$CC"; then
3095 if test -n "$ac_tool_prefix"; then
3096 for ac_prog in cl.exe
3098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3099 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_CC+:} false; then :
3103 $as_echo_n "(cached) " >&6
3105 if test -n "$CC"; then
3106 ac_cv_prog_CC="$CC" # Let the user override the test.
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3126 if test -n "$CC"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3128 $as_echo "$CC" >&6; }
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3135 test -n "$CC" && break
3138 if test -z "$CC"; then
3140 for ac_prog in cl.exe
3142 # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy $ac_prog; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$ac_ct_CC"; then
3150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir=.
3157 for ac_exec_ext in '' $ac_executable_extensions; do
3158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159 ac_cv_prog_ac_ct_CC="$ac_prog"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3170 if test -n "$ac_ct_CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3172 $as_echo "$ac_ct_CC" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3179 test -n "$ac_ct_CC" && break
3182 if test "x$ac_ct_CC" = x; then
3185 case $cross_compiling:$ac_tool_warned in
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3189 ac_tool_warned=yes ;;
3198 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3201 See \
`config.log' for more details" "$LINENO" 5; }
3203 # Provide some information about the compiler.
3204 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3207 for ac_option in --version -v -V -qversion; do
3208 { { ac_try="$ac_compiler $ac_option >&5"
3210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3211 *) ac_try_echo
=$ac_try;;
3213 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3217 if test -s conftest.err
; then
3219 ... rest of stderr output deleted ...
3220 10q' conftest.err
>conftest.er1
3221 cat conftest.er1
>&5
3223 rm -f conftest.er1 conftest.err
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }
3228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3239 ac_clean_files_save
=$ac_clean_files
3240 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3241 # Try to create an executable without -o first, disregard a.out.
3242 # It will help us diagnose broken compilers, and finding out an intuition
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3245 $as_echo_n "checking whether the C compiler works... " >&6; }
3246 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3248 # The possible output files:
3249 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3252 for ac_file
in $ac_files
3255 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3256 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3261 if { { ac_try
="$ac_link_default"
3263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3267 $as_echo "$ac_try_echo"; } >&5
3268 (eval "$ac_link_default") 2>&5
3270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3271 test $ac_status = 0; }; then :
3272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3273 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3274 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3275 # so that the user can short-circuit this test for compilers unknown to
3277 for ac_file in $ac_files ''
3279 test -f "$ac_file" || continue
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3284 # We found the default executable, but exeext='' is most
3288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292 # We set ac_cv_exeext here because the later test for it is not
3293 # safe: cross compilers may not add the suffix if given an `-o'
3294 # argument, so we may need to know it at that point already.
3295 # Even if this section looks crufty: it has the advantage of
3302 test "$ac_cv_exeext" = no && ac_cv_exeext=
3307 if test -z "$ac_file"; then :
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 $as_echo "$as_me: failed program was:" >&5
3311 sed 's
/^
/|
/' conftest.$ac_ext >&5
3313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3314 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3315 as_fn_error 77 "C compiler cannot create executables
3316 See \`config.log
' for more details" "$LINENO" 5; }
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3319 $as_echo "yes" >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3322 $as_echo_n "checking for C compiler default output file name... " >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3324 $as_echo "$ac_file" >&6; }
3325 ac_exeext=$ac_cv_exeext
3327 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3328 ac_clean_files=$ac_clean_files_save
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3330 $as_echo_n "checking for suffix of executables... " >&6; }
3331 if { { ac_try="$ac_link"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338 (eval "$ac_link") 2>&5
3340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; then :
3342 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3343 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3344 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3346 for ac_file
in conftest.exe conftest conftest.
*; do
3347 test -f "$ac_file" ||
continue
3349 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3350 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3359 See \`config.log' for more details" "$LINENO" 5; }
3361 rm -f conftest conftest
$ac_cv_exeext
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3363 $as_echo "$ac_cv_exeext" >&6; }
3365 rm -f conftest.
$ac_ext
3366 EXEEXT
=$ac_cv_exeext
3368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3374 FILE *f = fopen ("conftest.out", "w");
3375 return ferror (f) || fclose (f) != 0;
3381 ac_clean_files
="$ac_clean_files conftest.out"
3382 # Check that the compiler produces executables we can run. If not, either
3383 # the compiler is broken, or we cross compile.
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3385 $as_echo_n "checking whether we are cross compiling... " >&6; }
3386 if test "$cross_compiling" != yes; then
3387 { { ac_try
="$ac_link"
3389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_link") 2>&5
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }
3398 if { ac_try='./conftest$ac_cv_exeext'
3399 { { case "(($ac_try" in
3400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3401 *) ac_try_echo
=$ac_try;;
3403 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_try") 2>&5
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }; }; then
3411 if test "$cross_compiling" = maybe
; then
3414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $?
"cannot run C compiled programs.
3417 If you meant to cross compile, use \`--host'.
3418 See \`config.log' for more details" "$LINENO" 5; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3423 $as_echo "$cross_compiling" >&6; }
3425 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3426 ac_clean_files
=$ac_clean_files_save
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3428 $as_echo_n "checking for suffix of object files... " >&6; }
3429 if ${ac_cv_objext+:} false
; then :
3430 $as_echo_n "(cached) " >&6
3432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3443 rm -f conftest.o conftest.obj
3444 if { { ac_try
="$ac_compile"
3446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3450 $as_echo "$ac_try_echo"; } >&5
3451 (eval "$ac_compile") 2>&5
3453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3454 test $ac_status = 0; }; then :
3455 for ac_file in conftest.o conftest.obj conftest.*; do
3456 test -f "$ac_file" || continue;
3458 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3459 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464 $as_echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3470 See \
`config.log' for more details" "$LINENO" 5; }
3472 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3475 $as_echo "$ac_cv_objext" >&6; }
3476 OBJEXT=$ac_cv_objext
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3479 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3480 if ${ac_cv_c_compiler_gnu+:} false; then :
3481 $as_echo_n "(cached) " >&6
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3497 if ac_fn_c_try_compile "$LINENO"; then :
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3507 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3508 if test $ac_compiler_gnu = yes; then
3513 ac_test_CFLAGS=${CFLAGS+set}
3514 ac_save_CFLAGS=$CFLAGS
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3516 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3517 if ${ac_cv_prog_cc_g+:} false; then :
3518 $as_echo_n "(cached) " >&6
3520 ac_save_c_werror_flag=$ac_c_werror_flag
3521 ac_c_werror_flag=yes
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3525 /* end confdefs.h. */
3535 if ac_fn_c_try_compile "$LINENO"; then :
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3550 if ac_fn_c_try_compile "$LINENO"; then :
3553 ac_c_werror_flag=$ac_save_c_werror_flag
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3566 if ac_fn_c_try_compile "$LINENO"; then :
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 ac_c_werror_flag=$ac_save_c_werror_flag
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3577 $as_echo "$ac_cv_prog_cc_g" >&6; }
3578 if test "$ac_test_CFLAGS" = set; then
3579 CFLAGS=$ac_save_CFLAGS
3580 elif test $ac_cv_prog_cc_g = yes; then
3581 if test "$GCC" = yes; then
3587 if test "$GCC" = yes; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3594 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3595 if ${ac_cv_prog_cc_c89+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 ac_cv_prog_cc_c89=no
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3605 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3606 struct buf { int x; };
3607 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3608 static char *e (p, i)
3614 static char *f (char * (*g) (char **, int), char **p, ...)
3619 s = g (p, va_arg (v,int));
3624 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3625 function prototypes and stuff, but not '\xHH' hex character constants.
3626 These don't provoke an error unfortunately, instead are silently treated
3627 as 'x'. The following induces an error, until -std is added to get
3628 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3629 array size at least. It's necessary to write '\x00'==0 to get something
3630 that's true only with -std. */
3631 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3633 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3634 inside strings and character constants. */
3636 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3638 int test (int i, double x);
3639 struct s1 {int (*f) (int a);};
3640 struct s2 {int (*f) (double a);};
3641 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3652 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3653 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3655 CC="$ac_save_CC $ac_arg"
3656 if ac_fn_c_try_compile "$LINENO"; then :
3657 ac_cv_prog_cc_c89=$ac_arg
3659 rm -f core conftest.err conftest.$ac_objext
3660 test "x$ac_cv_prog_cc_c89" != "xno" && break
3662 rm -f conftest.$ac_ext
3667 case "x$ac_cv_prog_cc_c89" in
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3670 $as_echo "none needed" >&6; } ;;
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3673 $as_echo "unsupported" >&6; } ;;
3675 CC="$CC $ac_cv_prog_cc_c89"
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3677 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3679 if test "x$ac_cv_prog_cc_c89" != xno; then :
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 ac_cpp='$CXXCPP $CPPFLAGS'
3691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3694 if test -z "$CXX"; then
3695 if test -n "$CCC"; then
3698 if test -n "$ac_tool_prefix"; then
3699 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704 $as_echo_n "checking for $ac_word... " >&6; }
3705 if ${ac_cv_prog_CXX+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 if test -n "$CXX"; then
3709 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3718 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 if test -n "$CXX"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3731 $as_echo "$CXX" >&6; }
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3738 test -n "$CXX" && break
3741 if test -z "$CXX"; then
3743 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3748 $as_echo_n "checking for $ac_word... " >&6; }
3749 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3750 $as_echo_n "(cached) " >&6
3752 if test -n "$ac_ct_CXX"; then
3753 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762 ac_cv_prog_ac_ct_CXX="$ac_prog"
3763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3773 if test -n "$ac_ct_CXX"; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3775 $as_echo "$ac_ct_CXX" >&6; }
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3782 test -n "$ac_ct_CXX" && break
3785 if test "x$ac_ct_CXX" = x; then
3788 case $cross_compiling:$ac_tool_warned in
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3792 ac_tool_warned=yes ;;
3800 # Provide some information about the compiler.
3801 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3804 for ac_option in --version -v -V -qversion; do
3805 { { ac_try="$ac_compiler $ac_option >&5"
3807 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3808 *) ac_try_echo
=$ac_try;;
3810 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3814 if test -s conftest.err
; then
3816 ... rest of stderr output deleted ...
3817 10q' conftest.err
>conftest.er1
3818 cat conftest.er1
>&5
3820 rm -f conftest.er1 conftest.err
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3826 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3827 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3828 $as_echo_n "(cached) " >&6
3830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3844 if ac_fn_cxx_try_compile
"$LINENO"; then :
3849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3850 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3854 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3855 if test $ac_compiler_gnu = yes; then
3860 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3861 ac_save_CXXFLAGS
=$CXXFLAGS
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3863 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3864 if ${ac_cv_prog_cxx_g+:} false
; then :
3865 $as_echo_n "(cached) " >&6
3867 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3868 ac_cxx_werror_flag
=yes
3871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3872 /* end confdefs.h. */
3882 if ac_fn_cxx_try_compile
"$LINENO"; then :
3883 ac_cv_prog_cxx_g
=yes
3886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3897 if ac_fn_cxx_try_compile
"$LINENO"; then :
3900 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3903 /* end confdefs.h. */
3913 if ac_fn_cxx_try_compile
"$LINENO"; then :
3914 ac_cv_prog_cxx_g
=yes
3916 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3921 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3924 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3925 if test "$ac_test_CXXFLAGS" = set; then
3926 CXXFLAGS
=$ac_save_CXXFLAGS
3927 elif test $ac_cv_prog_cxx_g = yes; then
3928 if test "$GXX" = yes; then
3934 if test "$GXX" = yes; then
3941 ac_cpp
='$CPP $CPPFLAGS'
3942 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3949 ac_cpp
='$CPP $CPPFLAGS'
3950 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3954 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3955 # On Suns, sometimes $CPP names a directory.
3956 if test -n "$CPP" && test -d "$CPP"; then
3959 if test -z "$CPP"; then
3960 if ${ac_cv_prog_CPP+:} false
; then :
3961 $as_echo_n "(cached) " >&6
3963 # Double quotes because CPP needs to be expanded
3964 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3967 for ac_c_preproc_warn_flag
in '' yes
3969 # Use a header file that comes with gcc, so configuring glibc
3970 # with a fresh cross-compiler works.
3971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3972 # <limits.h> exists even on freestanding compilers.
3973 # On the NeXT, cc -E runs the code through the compiler's parser,
3974 # not just through cpp. "Syntax error" is here to catch this case.
3975 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h. */
3978 # include <limits.h>
3980 # include <assert.h>
3984 if ac_fn_c_try_cpp
"$LINENO"; then :
3987 # Broken: fails on valid input.
3990 rm -f conftest.err conftest.i conftest.
$ac_ext
3992 # OK, works on sane cases. Now check whether nonexistent headers
3993 # can be detected and how.
3994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996 #include <ac_nonexistent.h>
3998 if ac_fn_c_try_cpp
"$LINENO"; then :
3999 # Broken: success on invalid input.
4002 # Passes both tests.
4006 rm -f conftest.err conftest.i conftest.
$ac_ext
4009 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010 rm -f conftest.i conftest.err conftest.
$ac_ext
4011 if $ac_preproc_ok; then :
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4024 $as_echo "$CPP" >&6; }
4026 for ac_c_preproc_warn_flag
in '' yes
4028 # Use a header file that comes with gcc, so configuring glibc
4029 # with a fresh cross-compiler works.
4030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031 # <limits.h> exists even on freestanding compilers.
4032 # On the NeXT, cc -E runs the code through the compiler's parser,
4033 # not just through cpp. "Syntax error" is here to catch this case.
4034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4037 # include <limits.h>
4039 # include <assert.h>
4043 if ac_fn_c_try_cpp
"$LINENO"; then :
4046 # Broken: fails on valid input.
4049 rm -f conftest.err conftest.i conftest.
$ac_ext
4051 # OK, works on sane cases. Now check whether nonexistent headers
4052 # can be detected and how.
4053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 #include <ac_nonexistent.h>
4057 if ac_fn_c_try_cpp
"$LINENO"; then :
4058 # Broken: success on invalid input.
4061 # Passes both tests.
4065 rm -f conftest.err conftest.i conftest.
$ac_ext
4068 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4069 rm -f conftest.i conftest.err conftest.
$ac_ext
4070 if $ac_preproc_ok; then :
4073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4076 See \`config.log' for more details" "$LINENO" 5; }
4080 ac_cpp
='$CPP $CPPFLAGS'
4081 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4082 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4083 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4087 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4088 if ${ac_cv_path_GREP+:} false
; then :
4089 $as_echo_n "(cached) " >&6
4091 if test -z "$GREP"; then
4092 ac_path_GREP_found
=false
4093 # Loop through the user's path and test for each of PROGNAME-LIST
4094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4095 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4098 test -z "$as_dir" && as_dir
=.
4099 for ac_prog
in grep ggrep
; do
4100 for ac_exec_ext
in '' $ac_executable_extensions; do
4101 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4102 as_fn_executable_p
"$ac_path_GREP" ||
continue
4103 # Check for GNU ac_path_GREP and select it if it is found.
4104 # Check for GNU $ac_path_GREP
4105 case `"$ac_path_GREP" --version 2>&1` in
4107 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4110 $as_echo_n 0123456789 >"conftest.in"
4113 cat "conftest.in" "conftest.in" >"conftest.tmp"
4114 mv "conftest.tmp" "conftest.in"
4115 cp "conftest.in" "conftest.nl"
4116 $as_echo 'GREP' >> "conftest.nl"
4117 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4118 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4119 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4120 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4121 # Best one so far, save it but keep looking for a better one
4122 ac_cv_path_GREP
="$ac_path_GREP"
4123 ac_path_GREP_max
=$ac_count
4125 # 10*(2^10) chars as input seems more than enough
4126 test $ac_count -gt 10 && break
4128 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4131 $ac_path_GREP_found && break 3
4136 if test -z "$ac_cv_path_GREP"; then
4137 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4140 ac_cv_path_GREP
=$GREP
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4145 $as_echo "$ac_cv_path_GREP" >&6; }
4146 GREP
="$ac_cv_path_GREP"
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4150 $as_echo_n "checking for egrep... " >&6; }
4151 if ${ac_cv_path_EGREP+:} false
; then :
4152 $as_echo_n "(cached) " >&6
4154 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4155 then ac_cv_path_EGREP
="$GREP -E"
4157 if test -z "$EGREP"; then
4158 ac_path_EGREP_found
=false
4159 # Loop through the user's path and test for each of PROGNAME-LIST
4160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4161 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4164 test -z "$as_dir" && as_dir
=.
4165 for ac_prog
in egrep; do
4166 for ac_exec_ext
in '' $ac_executable_extensions; do
4167 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4168 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4169 # Check for GNU ac_path_EGREP and select it if it is found.
4170 # Check for GNU $ac_path_EGREP
4171 case `"$ac_path_EGREP" --version 2>&1` in
4173 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4176 $as_echo_n 0123456789 >"conftest.in"
4179 cat "conftest.in" "conftest.in" >"conftest.tmp"
4180 mv "conftest.tmp" "conftest.in"
4181 cp "conftest.in" "conftest.nl"
4182 $as_echo 'EGREP' >> "conftest.nl"
4183 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4184 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4185 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4186 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4187 # Best one so far, save it but keep looking for a better one
4188 ac_cv_path_EGREP
="$ac_path_EGREP"
4189 ac_path_EGREP_max
=$ac_count
4191 # 10*(2^10) chars as input seems more than enough
4192 test $ac_count -gt 10 && break
4194 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4197 $ac_path_EGREP_found && break 3
4202 if test -z "$ac_cv_path_EGREP"; then
4203 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4206 ac_cv_path_EGREP
=$EGREP
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4212 $as_echo "$ac_cv_path_EGREP" >&6; }
4213 EGREP
="$ac_cv_path_EGREP"
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4217 $as_echo_n "checking for ANSI C header files... " >&6; }
4218 if ${ac_cv_header_stdc+:} false
; then :
4219 $as_echo_n "(cached) " >&6
4221 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4236 if ac_fn_c_try_compile
"$LINENO"; then :
4237 ac_cv_header_stdc
=yes
4239 ac_cv_header_stdc
=no
4241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4243 if test $ac_cv_header_stdc = yes; then
4244 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4245 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4251 $EGREP "memchr" >/dev
/null
2>&1; then :
4254 ac_cv_header_stdc
=no
4260 if test $ac_cv_header_stdc = yes; then
4261 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4268 $EGREP "free" >/dev
/null
2>&1; then :
4271 ac_cv_header_stdc
=no
4277 if test $ac_cv_header_stdc = yes; then
4278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4279 if test "$cross_compiling" = yes; then :
4282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4286 #if ((' ' & 0x0FF) == 0x020)
4287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4290 # define ISLOWER(c) \
4291 (('a' <= (c) && (c) <= 'i') \
4292 || ('j' <= (c) && (c) <= 'r') \
4293 || ('s' <= (c) && (c) <= 'z'))
4294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4302 for (i = 0; i < 256; i++)
4303 if (XOR (islower (i), ISLOWER (i))
4304 || toupper (i) != TOUPPER (i))
4309 if ac_fn_c_try_run
"$LINENO"; then :
4312 ac_cv_header_stdc
=no
4314 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4315 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4321 $as_echo "$ac_cv_header_stdc" >&6; }
4322 if test $ac_cv_header_stdc = yes; then
4324 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4328 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4329 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4330 inttypes.h stdint.h unistd.h
4332 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4335 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4336 cat >>confdefs.h
<<_ACEOF
4337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4346 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4347 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4354 if test "$MINIX" = yes; then
4356 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4359 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4362 $as_echo "#define _MINIX 1" >>confdefs.h
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4368 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4369 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4370 $as_echo_n "(cached) " >&6
4372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4373 /* end confdefs.h. */
4375 # define __EXTENSIONS__ 1
4376 $ac_includes_default
4385 if ac_fn_c_try_compile
"$LINENO"; then :
4386 ac_cv_safe_to_define___extensions__
=yes
4388 ac_cv_safe_to_define___extensions__
=no
4390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4393 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4394 test $ac_cv_safe_to_define___extensions__ = yes &&
4395 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4397 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4399 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4401 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4403 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4407 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4408 if test -f "$ac_dir/install-sh"; then
4410 ac_install_sh
="$ac_aux_dir/install-sh -c"
4412 elif test -f "$ac_dir/install.sh"; then
4414 ac_install_sh
="$ac_aux_dir/install.sh -c"
4416 elif test -f "$ac_dir/shtool"; then
4418 ac_install_sh
="$ac_aux_dir/shtool install -c"
4422 if test -z "$ac_aux_dir"; then
4423 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4426 # These three variables are undocumented and unsupported,
4427 # and are intended to be withdrawn in a future Autoconf release.
4428 # They can cause serious problems if a builder's source tree is in a directory
4429 # whose full name contains unusual characters.
4430 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4431 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4432 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4435 # Make sure we can run config.sub.
4436 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4437 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4440 $as_echo_n "checking build system type... " >&6; }
4441 if ${ac_cv_build+:} false
; then :
4442 $as_echo_n "(cached) " >&6
4444 ac_build_alias
=$build_alias
4445 test "x$ac_build_alias" = x
&&
4446 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4447 test "x$ac_build_alias" = x
&&
4448 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4449 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4450 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4454 $as_echo "$ac_cv_build" >&6; }
4455 case $ac_cv_build in
4457 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4460 ac_save_IFS
=$IFS; IFS
='-'
4466 # Remember, the first character of IFS is used to create $*,
4467 # except with old shells:
4470 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4474 $as_echo_n "checking host system type... " >&6; }
4475 if ${ac_cv_host+:} false
; then :
4476 $as_echo_n "(cached) " >&6
4478 if test "x$host_alias" = x
; then
4479 ac_cv_host
=$ac_cv_build
4481 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4482 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4487 $as_echo "$ac_cv_host" >&6; }
4490 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4493 ac_save_IFS
=$IFS; IFS
='-'
4499 # Remember, the first character of IFS is used to create $*,
4500 # except with old shells:
4503 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4507 $as_echo_n "checking target system type... " >&6; }
4508 if ${ac_cv_target+:} false
; then :
4509 $as_echo_n "(cached) " >&6
4511 if test "x$target_alias" = x
; then
4512 ac_cv_target
=$ac_cv_host
4514 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4515 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4520 $as_echo "$ac_cv_target" >&6; }
4521 case $ac_cv_target in
4523 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4525 target
=$ac_cv_target
4526 ac_save_IFS
=$IFS; IFS
='-'
4532 # Remember, the first character of IFS is used to create $*,
4533 # except with old shells:
4536 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4539 # The aliases save the names the user supplied, while $host etc.
4540 # will get canonicalized.
4541 test -n "$target_alias" &&
4542 test "$program_prefix$program_suffix$program_transform_name" = \
4544 program_prefix
=${target_alias}-
4546 # The tests for host and target for $enable_largefile require
4551 # As the $enable_largefile decision depends on --enable-plugins we must set it
4552 # even in directories otherwise not depending on the $plugins option.
4556 for ac_header
in dlfcn.h
4558 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4560 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4561 cat >>confdefs.h
<<_ACEOF
4562 #define HAVE_DLFCN_H 1
4569 for ac_header
in windows.h
4571 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4573 if test "x$ac_cv_header_windows_h" = xyes
; then :
4574 cat >>confdefs.h
<<_ACEOF
4575 #define HAVE_WINDOWS_H 1
4583 # Check whether --enable-plugins was given.
4584 if test "${enable_plugins+set}" = set; then :
4585 enableval
=$enable_plugins; case "${enableval}" in
4588 if test "$maybe_plugins" != "yes" ; then
4589 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4593 plugins
=$maybe_plugins
4597 if test "$plugins" = "yes"; then
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4599 $as_echo_n "checking for library containing dlsym... " >&6; }
4600 if ${ac_cv_search_dlsym+:} false
; then :
4601 $as_echo_n "(cached) " >&6
4603 ac_func_search_save_LIBS
=$LIBS
4604 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4607 /* Override any GCC internal prototype to avoid an error.
4608 Use char because int might match the return type of a GCC
4609 builtin and then its argument prototype would still apply. */
4622 for ac_lib
in '' dl
; do
4623 if test -z "$ac_lib"; then
4624 ac_res
="none required"
4627 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4629 if ac_fn_c_try_link
"$LINENO"; then :
4630 ac_cv_search_dlsym
=$ac_res
4632 rm -f core conftest.err conftest.
$ac_objext \
4634 if ${ac_cv_search_dlsym+:} false
; then :
4638 if ${ac_cv_search_dlsym+:} false
; then :
4641 ac_cv_search_dlsym
=no
4644 LIBS
=$ac_func_search_save_LIBS
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4647 $as_echo "$ac_cv_search_dlsym" >&6; }
4648 ac_res
=$ac_cv_search_dlsym
4649 if test "$ac_res" != no
; then :
4650 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4658 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4659 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4660 # are mutually exclusive; and without procfs support, the bfd/ elf module
4661 # cannot provide certain routines such as elfcore_write_prpsinfo
4662 # or elfcore_write_prstatus. So unless the user explicitly requested
4663 # large-file support through the --enable-largefile switch, disable
4664 # large-file support in favor of procfs support.
4665 test "${target}" = "${host}" -a "x$plugins" = xno \
4666 && : ${enable_largefile="no"}
4670 # Check whether --enable-largefile was given.
4671 if test "${enable_largefile+set}" = set; then :
4672 enableval
=$enable_largefile;
4675 if test "$enable_largefile" != no
; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4678 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4679 if ${ac_cv_sys_largefile_CC+:} false
; then :
4680 $as_echo_n "(cached) " >&6
4682 ac_cv_sys_largefile_CC
=no
4683 if test "$GCC" != yes; then
4686 # IRIX 6.2 and later do not support large files by default,
4687 # so use the C compiler's -n32 option if that helps.
4688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690 #include <sys/types.h>
4691 /* Check that off_t can represent 2**63 - 1 correctly.
4692 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4693 since some C++ compilers masquerading as C compilers
4694 incorrectly reject 9223372036854775807. */
4695 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4696 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4697 && LARGE_OFF_T % 2147483647 == 1)
4707 if ac_fn_c_try_compile
"$LINENO"; then :
4710 rm -f core conftest.err conftest.
$ac_objext
4712 if ac_fn_c_try_compile
"$LINENO"; then :
4713 ac_cv_sys_largefile_CC
=' -n32'; break
4715 rm -f core conftest.err conftest.
$ac_objext
4719 rm -f conftest.
$ac_ext
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4723 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4724 if test "$ac_cv_sys_largefile_CC" != no
; then
4725 CC
=$CC$ac_cv_sys_largefile_CC
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4729 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4730 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4731 $as_echo_n "(cached) " >&6
4734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4736 #include <sys/types.h>
4737 /* Check that off_t can represent 2**63 - 1 correctly.
4738 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4739 since some C++ compilers masquerading as C compilers
4740 incorrectly reject 9223372036854775807. */
4741 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4742 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4743 && LARGE_OFF_T % 2147483647 == 1)
4753 if ac_fn_c_try_compile
"$LINENO"; then :
4754 ac_cv_sys_file_offset_bits
=no
; break
4756 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4758 /* end confdefs.h. */
4759 #define _FILE_OFFSET_BITS 64
4760 #include <sys/types.h>
4761 /* Check that off_t can represent 2**63 - 1 correctly.
4762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4763 since some C++ compilers masquerading as C compilers
4764 incorrectly reject 9223372036854775807. */
4765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4767 && LARGE_OFF_T % 2147483647 == 1)
4777 if ac_fn_c_try_compile
"$LINENO"; then :
4778 ac_cv_sys_file_offset_bits
=64; break
4780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4781 ac_cv_sys_file_offset_bits
=unknown
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4786 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4787 case $ac_cv_sys_file_offset_bits in #(
4790 cat >>confdefs.h
<<_ACEOF
4791 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4796 if test $ac_cv_sys_file_offset_bits = unknown
; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4798 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4799 if ${ac_cv_sys_large_files+:} false
; then :
4800 $as_echo_n "(cached) " >&6
4803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4805 #include <sys/types.h>
4806 /* Check that off_t can represent 2**63 - 1 correctly.
4807 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4808 since some C++ compilers masquerading as C compilers
4809 incorrectly reject 9223372036854775807. */
4810 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4811 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4812 && LARGE_OFF_T % 2147483647 == 1)
4822 if ac_fn_c_try_compile
"$LINENO"; then :
4823 ac_cv_sys_large_files
=no
; break
4825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h. */
4828 #define _LARGE_FILES 1
4829 #include <sys/types.h>
4830 /* Check that off_t can represent 2**63 - 1 correctly.
4831 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4832 since some C++ compilers masquerading as C compilers
4833 incorrectly reject 9223372036854775807. */
4834 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4835 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4836 && LARGE_OFF_T % 2147483647 == 1)
4846 if ac_fn_c_try_compile
"$LINENO"; then :
4847 ac_cv_sys_large_files
=1; break
4849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4850 ac_cv_sys_large_files
=unknown
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4855 $as_echo "$ac_cv_sys_large_files" >&6; }
4856 case $ac_cv_sys_large_files in #(
4859 cat >>confdefs.h
<<_ACEOF
4860 #define _LARGE_FILES $ac_cv_sys_large_files
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4875 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4876 if ${am_cv_prog_cc_stdc+:} false
; then :
4877 $as_echo_n "(cached) " >&6
4879 am_cv_prog_cc_stdc
=no
4881 # Don't try gcc -ansi; that turns off useful extensions and
4882 # breaks some systems' header files.
4883 # AIX -qlanglvl=ansi
4884 # Ultrix and OSF/1 -std1
4885 # HP-UX 10.20 and later -Ae
4886 # HP-UX older versions -Aa -D_HPUX_SOURCE
4887 # SVR4 -Xc -D__EXTENSIONS__
4888 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4890 CC
="$ac_save_CC $ac_arg"
4891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4895 #include <sys/types.h>
4896 #include <sys/stat.h>
4897 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4898 struct buf { int x; };
4899 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4900 static char *e (p, i)
4906 static char *f (char * (*g) (char **, int), char **p, ...)
4911 s = g (p, va_arg (v,int));
4915 int test (int i, double x);
4916 struct s1 {int (*f) (int a);};
4917 struct s2 {int (*f) (double a);};
4918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4926 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4932 if ac_fn_c_try_compile
"$LINENO"; then :
4933 am_cv_prog_cc_stdc
="$ac_arg"; break
4935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4941 if test -z "$am_cv_prog_cc_stdc"; then
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4943 $as_echo "none needed" >&6; }
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4946 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4948 case "x$am_cv_prog_cc_stdc" in
4950 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4953 # Expand $ac_aux_dir to an absolute path.
4954 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4956 if test x
"${install_sh+set}" != xset
; then
4959 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4961 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4965 # Installed binaries are usually stripped using 'strip' when the user
4966 # run "make install-strip". However 'strip' might not be the right
4967 # tool to use in cross-compilation environments, therefore Automake
4968 # will honor the 'STRIP' environment variable to overrule this program.
4969 if test "$cross_compiling" != no
; then
4970 if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4972 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if ${ac_cv_prog_STRIP+:} false
; then :
4976 $as_echo_n "(cached) " >&6
4978 if test -n "$STRIP"; then
4979 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4981 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4985 test -z "$as_dir" && as_dir
=.
4986 for ac_exec_ext
in '' $ac_executable_extensions; do
4987 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 STRIP
=$ac_cv_prog_STRIP
4999 if test -n "$STRIP"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5001 $as_echo "$STRIP" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5009 if test -z "$ac_cv_prog_STRIP"; then
5011 # Extract the first word of "strip", so it can be a program name with args.
5012 set dummy strip
; ac_word
=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5016 $as_echo_n "(cached) " >&6
5018 if test -n "$ac_ct_STRIP"; then
5019 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5021 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5025 test -z "$as_dir" && as_dir
=.
5026 for ac_exec_ext
in '' $ac_executable_extensions; do
5027 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5028 ac_cv_prog_ac_ct_STRIP
="strip"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5038 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5039 if test -n "$ac_ct_STRIP"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5041 $as_echo "$ac_ct_STRIP" >&6; }
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5047 if test "x$ac_ct_STRIP" = x
; then
5050 case $cross_compiling:$ac_tool_warned in
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054 ac_tool_warned
=yes ;;
5059 STRIP
="$ac_cv_prog_STRIP"
5063 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5067 for ac_dir
in ..
"$srcdir"/..
; do
5068 if test -f "$ac_dir/install-sh"; then
5070 ac_install_sh
="$ac_aux_dir/install-sh -c"
5072 elif test -f "$ac_dir/install.sh"; then
5074 ac_install_sh
="$ac_aux_dir/install.sh -c"
5076 elif test -f "$ac_dir/shtool"; then
5078 ac_install_sh
="$ac_aux_dir/shtool install -c"
5082 if test -z "$ac_aux_dir"; then
5083 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5086 # These three variables are undocumented and unsupported,
5087 # and are intended to be withdrawn in a future Autoconf release.
5088 # They can cause serious problems if a builder's source tree is in a directory
5089 # whose full name contains unusual characters.
5090 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5091 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5092 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5096 test "$program_prefix" != NONE
&&
5097 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5098 # Use a double $ so make ignores it.
5099 test "$program_suffix" != NONE
&&
5100 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5101 # Double any \ or $.
5102 # By default was `s,x,x', remove it if useless.
5103 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5104 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5107 # We require a C++11 compiler. Check if one is available, and if
5108 # necessary, set CXX_DIALECT to some -std=xxx switch.
5110 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5112 ac_cpp
='$CXXCPP $CPPFLAGS'
5113 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5119 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5120 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5121 $as_echo_n "(cached) " >&6
5123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5127 // If the compiler admits that it is not ready for C++11, why torture it?
5128 // Hopefully, this will speed up the test.
5132 #error "This is not a C++ compiler"
5134 #elif __cplusplus < 201103L
5136 #error "This is not a C++11 compiler"
5143 namespace test_static_assert
5146 template <typename T>
5149 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5154 namespace test_final_override
5162 struct Derived : public Base
5164 virtual void f() override {}
5169 namespace test_double_right_angle_brackets
5172 template < typename T >
5175 typedef check<void> single_type;
5176 typedef check<check<void>> double_type;
5177 typedef check<check<check<void>>> triple_type;
5178 typedef check<check<check<check<void>>>> quadruple_type;
5182 namespace test_decltype
5195 namespace test_type_deduction
5198 template < typename T1, typename T2 >
5201 static const bool value = false;
5204 template < typename T >
5205 struct is_same<T, T>
5207 static const bool value = true;
5210 template < typename T1, typename T2 >
5212 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5218 test(const int c, volatile int v)
5220 static_assert(is_same<int, decltype(0)>::value == true, "");
5221 static_assert(is_same<int, decltype(c)>::value == false, "");
5222 static_assert(is_same<int, decltype(v)>::value == false, "");
5225 auto sumi = ac + av + 'x';
5226 auto sumf = ac + av + 1.0;
5227 static_assert(is_same<int, decltype(ac)>::value == true, "");
5228 static_assert(is_same<int, decltype(av)>::value == true, "");
5229 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5230 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5231 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5232 return (sumf > 0.0) ? sumi : add(c, v);
5237 namespace test_noexcept
5240 int f() { return 0; }
5241 int g() noexcept { return 0; }
5243 static_assert(noexcept(f()) == false, "");
5244 static_assert(noexcept(g()) == true, "");
5248 namespace test_constexpr
5251 template < typename CharT >
5252 unsigned long constexpr
5253 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5255 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5258 template < typename CharT >
5259 unsigned long constexpr
5260 strlen_c(const CharT *const s) noexcept
5262 return strlen_c_r(s, 0UL);
5265 static_assert(strlen_c("") == 0UL, "");
5266 static_assert(strlen_c("1") == 1UL, "");
5267 static_assert(strlen_c("example") == 7UL, "");
5268 static_assert(strlen_c("another\0example") == 7UL, "");
5272 namespace test_rvalue_references
5278 static constexpr int value = N;
5281 answer<1> f(int&) { return answer<1>(); }
5282 answer<2> f(const int&) { return answer<2>(); }
5283 answer<3> f(int&&) { return answer<3>(); }
5290 static_assert(decltype(f(i))::value == 1, "");
5291 static_assert(decltype(f(c))::value == 2, "");
5292 static_assert(decltype(f(0))::value == 3, "");
5297 namespace test_uniform_initialization
5302 static const int zero {};
5303 static const int one {1};
5306 static_assert(test::zero == 0, "");
5307 static_assert(test::one == 1, "");
5311 namespace test_lambdas
5317 auto lambda1 = [](){};
5318 auto lambda2 = lambda1;
5326 auto a = [](int i, int j){ return i + j; }(1, 2);
5327 auto b = []() -> int { return '0'; }();
5328 auto c = [=](){ return a + b; }();
5329 auto d = [&](){ return c; }();
5330 auto e = [a, &b](int x) mutable {
5331 const auto identity = [](int y){ return y; };
5332 for (auto i = 0; i < a; ++i)
5334 return x + identity(a + b);
5336 return a + b + c + d + e;
5342 const auto nullary = [](){ return 0; };
5343 const auto unary = [](int x){ return x; };
5344 using nullary_t = decltype(nullary);
5345 using unary_t = decltype(unary);
5346 const auto higher1st = [](nullary_t f){ return f(); };
5347 const auto higher2nd = [unary](nullary_t f1){
5348 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5350 return higher1st(nullary) + higher2nd(nullary)(unary);
5355 namespace test_variadic_templates
5361 template <int N0, int... N1toN>
5362 struct sum<N0, N1toN...>
5364 static constexpr auto value = N0 + sum<N1toN...>::value;
5370 static constexpr auto value = 0;
5373 static_assert(sum<>::value == 0, "");
5374 static_assert(sum<1>::value == 1, "");
5375 static_assert(sum<23>::value == 23, "");
5376 static_assert(sum<1, 2>::value == 3, "");
5377 static_assert(sum<5, 5, 11>::value == 21, "");
5378 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5382 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5383 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5385 namespace test_template_alias_sfinae
5390 template<typename T>
5391 using member = typename T::member_type;
5393 template<typename T>
5396 template<typename T>
5397 void func(member<T>*) {}
5401 void test() { func<foo>(0); }
5405 } // namespace cxx11
5407 #endif // __cplusplus >= 201103L
5412 if ac_fn_cxx_try_compile
"$LINENO"; then :
5413 ax_cv_cxx_compile_cxx11
=yes
5415 ax_cv_cxx_compile_cxx11
=no
5417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5420 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5421 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5425 if test x
$ac_success = xno
; then
5426 for alternative
in ${ax_cxx_compile_alternatives}; do
5427 switch
="-std=gnu++${alternative}"
5428 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5430 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5431 if eval \
${$cachevar+:} false
; then :
5432 $as_echo_n "(cached) " >&6
5436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5437 /* end confdefs.h. */
5440 // If the compiler admits that it is not ready for C++11, why torture it?
5441 // Hopefully, this will speed up the test.
5445 #error "This is not a C++ compiler"
5447 #elif __cplusplus < 201103L
5449 #error "This is not a C++11 compiler"
5456 namespace test_static_assert
5459 template <typename T>
5462 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5467 namespace test_final_override
5475 struct Derived : public Base
5477 virtual void f() override {}
5482 namespace test_double_right_angle_brackets
5485 template < typename T >
5488 typedef check<void> single_type;
5489 typedef check<check<void>> double_type;
5490 typedef check<check<check<void>>> triple_type;
5491 typedef check<check<check<check<void>>>> quadruple_type;
5495 namespace test_decltype
5508 namespace test_type_deduction
5511 template < typename T1, typename T2 >
5514 static const bool value = false;
5517 template < typename T >
5518 struct is_same<T, T>
5520 static const bool value = true;
5523 template < typename T1, typename T2 >
5525 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5531 test(const int c, volatile int v)
5533 static_assert(is_same<int, decltype(0)>::value == true, "");
5534 static_assert(is_same<int, decltype(c)>::value == false, "");
5535 static_assert(is_same<int, decltype(v)>::value == false, "");
5538 auto sumi = ac + av + 'x';
5539 auto sumf = ac + av + 1.0;
5540 static_assert(is_same<int, decltype(ac)>::value == true, "");
5541 static_assert(is_same<int, decltype(av)>::value == true, "");
5542 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5543 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5544 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5545 return (sumf > 0.0) ? sumi : add(c, v);
5550 namespace test_noexcept
5553 int f() { return 0; }
5554 int g() noexcept { return 0; }
5556 static_assert(noexcept(f()) == false, "");
5557 static_assert(noexcept(g()) == true, "");
5561 namespace test_constexpr
5564 template < typename CharT >
5565 unsigned long constexpr
5566 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5568 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5571 template < typename CharT >
5572 unsigned long constexpr
5573 strlen_c(const CharT *const s) noexcept
5575 return strlen_c_r(s, 0UL);
5578 static_assert(strlen_c("") == 0UL, "");
5579 static_assert(strlen_c("1") == 1UL, "");
5580 static_assert(strlen_c("example") == 7UL, "");
5581 static_assert(strlen_c("another\0example") == 7UL, "");
5585 namespace test_rvalue_references
5591 static constexpr int value = N;
5594 answer<1> f(int&) { return answer<1>(); }
5595 answer<2> f(const int&) { return answer<2>(); }
5596 answer<3> f(int&&) { return answer<3>(); }
5603 static_assert(decltype(f(i))::value == 1, "");
5604 static_assert(decltype(f(c))::value == 2, "");
5605 static_assert(decltype(f(0))::value == 3, "");
5610 namespace test_uniform_initialization
5615 static const int zero {};
5616 static const int one {1};
5619 static_assert(test::zero == 0, "");
5620 static_assert(test::one == 1, "");
5624 namespace test_lambdas
5630 auto lambda1 = [](){};
5631 auto lambda2 = lambda1;
5639 auto a = [](int i, int j){ return i + j; }(1, 2);
5640 auto b = []() -> int { return '0'; }();
5641 auto c = [=](){ return a + b; }();
5642 auto d = [&](){ return c; }();
5643 auto e = [a, &b](int x) mutable {
5644 const auto identity = [](int y){ return y; };
5645 for (auto i = 0; i < a; ++i)
5647 return x + identity(a + b);
5649 return a + b + c + d + e;
5655 const auto nullary = [](){ return 0; };
5656 const auto unary = [](int x){ return x; };
5657 using nullary_t = decltype(nullary);
5658 using unary_t = decltype(unary);
5659 const auto higher1st = [](nullary_t f){ return f(); };
5660 const auto higher2nd = [unary](nullary_t f1){
5661 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5663 return higher1st(nullary) + higher2nd(nullary)(unary);
5668 namespace test_variadic_templates
5674 template <int N0, int... N1toN>
5675 struct sum<N0, N1toN...>
5677 static constexpr auto value = N0 + sum<N1toN...>::value;
5683 static constexpr auto value = 0;
5686 static_assert(sum<>::value == 0, "");
5687 static_assert(sum<1>::value == 1, "");
5688 static_assert(sum<23>::value == 23, "");
5689 static_assert(sum<1, 2>::value == 3, "");
5690 static_assert(sum<5, 5, 11>::value == 21, "");
5691 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5695 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5696 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5698 namespace test_template_alias_sfinae
5703 template<typename T>
5704 using member = typename T::member_type;
5706 template<typename T>
5709 template<typename T>
5710 void func(member<T>*) {}
5714 void test() { func<foo>(0); }
5718 } // namespace cxx11
5720 #endif // __cplusplus >= 201103L
5725 if ac_fn_cxx_try_compile
"$LINENO"; then :
5730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5733 eval ac_res
=\$
$cachevar
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5735 $as_echo "$ac_res" >&6; }
5736 if eval test x\$
$cachevar = xyes
; then
5737 CXX_DIALECT
="$switch"
5744 if test x
$ac_success = xno
; then
5745 for alternative
in ${ax_cxx_compile_alternatives}; do
5746 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5747 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5749 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5750 if eval \${$cachevar+:} false; then :
5751 $as_echo_n "(cached
) " >&6
5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5756 /* end confdefs.h. */
5759 // If the compiler admits that it is not ready for C++11, why torture it?
5760 // Hopefully, this will speed up the test.
5764 #error "This is not a C
++ compiler
"
5766 #elif __cplusplus < 201103L
5768 #error "This is not a C
++11 compiler
"
5775 namespace test_static_assert
5778 template <typename T>
5781 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5786 namespace test_final_override
5794 struct Derived : public Base
5796 virtual void f() override {}
5801 namespace test_double_right_angle_brackets
5804 template < typename T >
5807 typedef check<void> single_type;
5808 typedef check<check<void>> double_type;
5809 typedef check<check<check<void>>> triple_type;
5810 typedef check<check<check<check<void>>>> quadruple_type;
5814 namespace test_decltype
5827 namespace test_type_deduction
5830 template < typename T1, typename T2 >
5833 static const bool value = false;
5836 template < typename T >
5837 struct is_same<T, T>
5839 static const bool value = true;
5842 template < typename T1, typename T2 >
5844 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5850 test(const int c, volatile int v)
5852 static_assert(is_same<int, decltype(0)>::value == true, "");
5853 static_assert(is_same<int, decltype(c)>::value == false, "");
5854 static_assert(is_same<int, decltype(v)>::value == false, "");
5857 auto sumi = ac + av + 'x';
5858 auto sumf = ac + av + 1.0;
5859 static_assert(is_same<int, decltype(ac)>::value == true, "");
5860 static_assert(is_same<int, decltype(av)>::value == true, "");
5861 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5862 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5863 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5864 return (sumf > 0.0) ? sumi : add(c, v);
5869 namespace test_noexcept
5872 int f() { return 0; }
5873 int g() noexcept { return 0; }
5875 static_assert(noexcept(f()) == false, "");
5876 static_assert(noexcept(g()) == true, "");
5880 namespace test_constexpr
5883 template < typename CharT >
5884 unsigned long constexpr
5885 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5887 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5890 template < typename CharT >
5891 unsigned long constexpr
5892 strlen_c(const CharT *const s) noexcept
5894 return strlen_c_r(s, 0UL);
5897 static_assert(strlen_c("") == 0UL, "");
5898 static_assert(strlen_c("1") == 1UL, "");
5899 static_assert(strlen_c("example
") == 7UL, "");
5900 static_assert(strlen_c("another\
0example
") == 7UL, "");
5904 namespace test_rvalue_references
5910 static constexpr int value = N;
5913 answer<1> f(int&) { return answer<1>(); }
5914 answer<2> f(const int&) { return answer<2>(); }
5915 answer<3> f(int&&) { return answer<3>(); }
5922 static_assert(decltype(f(i))::value == 1, "");
5923 static_assert(decltype(f(c))::value == 2, "");
5924 static_assert(decltype(f(0))::value == 3, "");
5929 namespace test_uniform_initialization
5934 static const int zero {};
5935 static const int one {1};
5938 static_assert(test::zero == 0, "");
5939 static_assert(test::one == 1, "");
5943 namespace test_lambdas
5949 auto lambda1 = [](){};
5950 auto lambda2 = lambda1;
5958 auto a = [](int i, int j){ return i + j; }(1, 2);
5959 auto b = []() -> int { return '0'; }();
5960 auto c = [=](){ return a + b; }();
5961 auto d = [&](){ return c; }();
5962 auto e = [a, &b](int x) mutable {
5963 const auto identity = [](int y){ return y; };
5964 for (auto i = 0; i < a; ++i)
5966 return x + identity(a + b);
5968 return a + b + c + d + e;
5974 const auto nullary = [](){ return 0; };
5975 const auto unary = [](int x){ return x; };
5976 using nullary_t = decltype(nullary);
5977 using unary_t = decltype(unary);
5978 const auto higher1st = [](nullary_t f){ return f(); };
5979 const auto higher2nd = [unary](nullary_t f1){
5980 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5982 return higher1st(nullary) + higher2nd(nullary)(unary);
5987 namespace test_variadic_templates
5993 template <int N0, int... N1toN>
5994 struct sum<N0, N1toN...>
5996 static constexpr auto value = N0 + sum<N1toN...>::value;
6002 static constexpr auto value = 0;
6005 static_assert(sum<>::value == 0, "");
6006 static_assert(sum<1>::value == 1, "");
6007 static_assert(sum<23>::value == 23, "");
6008 static_assert(sum<1, 2>::value == 3, "");
6009 static_assert(sum<5, 5, 11>::value == 21, "");
6010 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6014 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6015 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6017 namespace test_template_alias_sfinae
6022 template<typename T>
6023 using member = typename T::member_type;
6025 template<typename T>
6028 template<typename T>
6029 void func(member<T>*) {}
6033 void test() { func<foo>(0); }
6037 } // namespace cxx11
6039 #endif // __cplusplus >= 201103L
6044 if ac_fn_cxx_try_compile "$LINENO"; then :
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 eval ac_res=\$$cachevar
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6054 $as_echo "$ac_res" >&6; }
6055 if eval test x\$$cachevar = xyes; then
6056 CXX_DIALECT="$switch"
6061 if test x$ac_success = xyes; then
6067 ac_cpp='$CPP $CPPFLAGS'
6068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6072 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6073 if test x$ac_success = xno; then
6074 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6077 if test x$ac_success = xno; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6080 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6084 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6091 # Dependency checking.
6092 rm -rf .tst
2>/dev
/null
6093 mkdir .tst
2>/dev
/null
6094 if test -d .tst
; then
6099 rmdir .tst
2>/dev
/null
6101 DEPDIR
="${am__leading_dot}deps"
6103 ac_config_commands
="$ac_config_commands depdir"
6106 depcc
="$CC" am_compiler_list
=
6108 am_depcomp
=$ac_aux_dir/depcomp
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6110 $as_echo_n "checking dependency style of $depcc... " >&6; }
6111 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6112 $as_echo_n "(cached) " >&6
6114 if test -f "$am_depcomp"; then
6115 # We make a subdir and do the tests there. Otherwise we can end up
6116 # making bogus files that we don't know about and never remove. For
6117 # instance it was reported that on HP-UX the gcc test will end up
6118 # making a dummy file named `D' -- because `-MD' means `put the output
6121 # Copy depcomp to subdir because otherwise we won't find it if we're
6122 # using a relative directory.
6123 cp "$am_depcomp" conftest.dir
6125 # We will build objects and dependencies in a subdirectory because
6126 # it helps to detect inapplicable dependency modes. For instance
6127 # both Tru64's cc and ICC support -MD to output dependencies as a
6128 # side effect of compilation, but ICC will put the dependencies in
6129 # the current directory while Tru64 will put them in the object
6133 am_cv_CC_dependencies_compiler_type
=none
6134 if test "$am_compiler_list" = ""; then
6135 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6137 for depmode
in $am_compiler_list; do
6138 if test $depmode = none
; then break; fi
6140 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6141 # Setup a source with many dependencies, because some compilers
6142 # like to wrap large dependency lists on column 80 (with \), and
6143 # we should not choose a depcomp mode which is confused by this.
6145 # We need to recreate these files for each test, as the compiler may
6146 # overwrite some of them when testing with obscure command lines.
6147 # This happens at least with the AIX C compiler.
6149 for i
in 1 2 3 4 5 6; do
6150 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6151 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6152 # Solaris 8's {/usr,}/bin/sh.
6153 touch sub
/conftst
$i.h
6155 echo "include sub/conftest.Po" > confmf
6157 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6158 # mode. It turns out that the SunPro C++ compiler does not properly
6159 # handle `-M -o', and we need to detect this.
6160 depcmd
="depmode=$depmode \
6161 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6163 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6164 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6165 if env
$depcmd > conftest.err
2>&1 &&
6166 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6167 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6168 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6169 # icc doesn't choke on unknown options, it will just issue warnings
6170 # or remarks (even with -Werror). So we grep stderr for any message
6171 # that says an option was ignored or not supported.
6172 # When given -MP, icc 7.0 and 7.1 complain thusly:
6173 # icc: Command line warning: ignoring option '-M'; no argument required
6174 # The diagnosis changed in icc 8.0:
6175 # icc: Command line remark: option '-MP' not supported
6176 if (grep 'ignoring option' conftest.err ||
6177 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6178 am_cv_CC_dependencies_compiler_type
=$depmode
6179 $as_echo "$as_me:$LINENO: success" >&5
6183 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6184 sed -e 's/^/| /' < conftest.err
>&5
6190 am_cv_CC_dependencies_compiler_type
=none
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6195 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6196 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6197 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6198 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6214 # If we haven't got the data from the intl directory,
6215 # assume NLS is disabled.
6224 if test -f ..
/intl
/config.intl
; then
6225 . ..
/intl
/config.intl
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6228 $as_echo_n "checking whether NLS is requested... " >&6; }
6229 if test x
"$USE_NLS" != xyes
; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6234 $as_echo "yes" >&6; }
6236 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6240 $as_echo_n "checking for catalogs to be installed... " >&6; }
6241 # Look for .po and .gmo files in the source directory.
6244 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6245 # If there aren't any .gmo files the shell will give us the
6246 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6248 case "$cat" in *\
**)
6251 # The quadruple backslash is collapsed to a double backslash
6252 # by the backticks, then collapsed again by the double quotes,
6253 # leaving us with one backslash in the sed expression (right
6254 # before the dot that mustn't act as a wildcard).
6255 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6256 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6257 # The user is allowed to set LINGUAS to a list of languages to
6258 # install catalogs for. If it's empty that means "all of them."
6259 if test "x$LINGUAS" = x
; then
6260 CATALOGS
="$CATALOGS $cat"
6261 XLINGUAS
="$XLINGUAS $lang"
6263 case "$LINGUAS" in *$lang*)
6264 CATALOGS
="$CATALOGS $cat"
6265 XLINGUAS
="$XLINGUAS $lang"
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6272 $as_echo "$LINGUAS" >&6; }
6285 localedir
='${datadir}/locale'
6288 if test x
"$USE_NLS" = xyes
; then
6289 CONFIG_ALL
="$CONFIG_ALL all-po"
6290 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6291 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6292 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6297 cat >>confdefs.h
<<_ACEOF
6298 #define PACKAGE "$PACKAGE"
6303 # We never need to detect it in this sub-configure.
6304 # But preserve it for config.status --recheck.
6308 MAKEINFO_EXTRA_FLAGS
=""
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6310 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6311 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6312 $as_echo_n "(cached) " >&6
6314 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6315 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6316 gdb_cv_have_makeinfo_click
=yes
6318 gdb_cv_have_makeinfo_click
=no
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6322 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6323 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6324 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6330 # Check whether --with-separate-debug-dir was given.
6331 if test "${with_separate_debug_dir+set}" = set; then :
6332 withval
=$with_separate_debug_dir;
6335 DEBUGDIR
=${libdir}/debug
6339 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6340 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6341 ac_define_dir
=`eval echo $DEBUGDIR`
6342 ac_define_dir
=`eval echo $ac_define_dir`
6344 cat >>confdefs.h
<<_ACEOF
6345 #define DEBUGDIR "$ac_define_dir"
6351 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6352 if test "x$prefix" = xNONE
; then
6353 test_prefix
=/usr
/local
6358 test_prefix
=$exec_prefix
6361 case ${ac_define_dir} in
6362 "${test_prefix}"|
"${test_prefix}/"*|\
6363 '${exec_prefix}'|
'${exec_prefix}/'*)
6368 cat >>confdefs.h
<<_ACEOF
6369 #define DEBUGDIR_RELOCATABLE $value
6375 # We can't pass paths as command line arguments.
6376 # Mingw32 tries to be clever and will convert the paths for us.
6377 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6378 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6379 # This breaks GDB's relocatable path conversions since paths passed in
6380 # config.h would not get so translated, the path prefixes no longer match.
6382 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6383 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6384 ac_define_dir
=`eval echo $bindir`
6385 ac_define_dir
=`eval echo $ac_define_dir`
6387 cat >>confdefs.h
<<_ACEOF
6388 #define BINDIR "$ac_define_dir"
6393 # GDB's datadir relocation
6397 # Check whether --with-gdb-datadir was given.
6398 if test "${with_gdb_datadir+set}" = set; then :
6399 withval
=$with_gdb_datadir;
6400 GDB_DATADIR
=$withval
6402 GDB_DATADIR
=${datadir}/gdb
6406 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6407 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6408 ac_define_dir
=`eval echo $GDB_DATADIR`
6409 ac_define_dir
=`eval echo $ac_define_dir`
6411 cat >>confdefs.h
<<_ACEOF
6412 #define GDB_DATADIR "$ac_define_dir"
6418 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6419 if test "x$prefix" = xNONE
; then
6420 test_prefix
=/usr
/local
6425 test_prefix
=$exec_prefix
6428 case ${ac_define_dir} in
6429 "${test_prefix}"|
"${test_prefix}/"*|\
6430 '${exec_prefix}'|
'${exec_prefix}/'*)
6435 cat >>confdefs.h
<<_ACEOF
6436 #define GDB_DATADIR_RELOCATABLE $value
6443 # Check whether --with-relocated-sources was given.
6444 if test "${with_relocated_sources+set}" = set; then :
6445 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6447 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6448 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6449 ac_define_dir
=`eval echo $reloc_srcdir`
6450 ac_define_dir
=`eval echo $ac_define_dir`
6452 cat >>confdefs.h
<<_ACEOF
6453 #define RELOC_SRCDIR "$ac_define_dir"
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6462 $as_echo_n "checking for default auto-load directory... " >&6; }
6464 # Check whether --with-auto-load-dir was given.
6465 if test "${with_auto_load_dir+set}" = set; then :
6466 withval
=$with_auto_load_dir;
6468 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6471 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6473 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6474 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6475 ac_define_dir
=`eval echo $escape_dir`
6476 ac_define_dir
=`eval echo $ac_define_dir`
6478 cat >>confdefs.h
<<_ACEOF
6479 #define AUTO_LOAD_DIR "$ac_define_dir"
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6484 $as_echo "$with_auto_load_dir" >&6; }
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6487 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6489 # Check whether --with-auto-load-safe-path was given.
6490 if test "${with_auto_load_safe_path+set}" = set; then :
6491 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6492 with_auto_load_safe_path
="/"
6495 with_auto_load_safe_path
="$with_auto_load_dir"
6498 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6500 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6501 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6502 ac_define_dir
=`eval echo $escape_dir`
6503 ac_define_dir
=`eval echo $ac_define_dir`
6505 cat >>confdefs.h
<<_ACEOF
6506 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6511 $as_echo "$with_auto_load_safe_path" >&6; }
6515 subdirs
="$subdirs testsuite"
6518 # Check whether to support alternative target configurations
6519 # Check whether --enable-targets was given.
6520 if test "${enable_targets+set}" = set; then :
6521 enableval
=$enable_targets; case "${enableval}" in
6522 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6524 no
) enable_targets
= ;;
6525 *) enable_targets
=$enableval ;;
6530 # Check whether to enable 64-bit support on 32-bit hosts
6531 # Check whether --enable-64-bit-bfd was given.
6532 if test "${enable_64_bit_bfd+set}" = set; then :
6533 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6536 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6542 # Provide defaults for some variables set by the per-host and per-target
6544 gdb_host_obs
=posix-hdep.o
6546 if test "${target}" = "${host}"; then
6552 .
$srcdir/configure.
host
6554 # Add in the common host objects.
6555 .
$srcdir/gdbsupport
/common.
host
6556 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6558 # Accumulate some settings from configure.tgt over all enabled targets
6562 HAVE_NATIVE_GCORE_TARGET
=
6564 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6566 if test "$targ_alias" = "all"; then
6569 # Canonicalize the secondary target names.
6570 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6571 if test -n "$result"; then
6577 .
${srcdir}/configure.tgt
6579 if test -z "${gdb_target_obs}"; then :
6580 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6583 # Target-specific object files
6584 for i
in ${gdb_target_obs}; do
6585 case " $TARGET_OBS " in
6588 TARGET_OBS
="$TARGET_OBS ${i}"
6593 # Check whether this target needs 64-bit CORE_ADDR
6594 if test x
${want64} = xfalse
; then
6595 .
${srcdir}/..
/bfd
/config.bfd
6598 # Check whether this target is native and supports gcore.
6599 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6600 && $gdb_have_gcore; then
6601 HAVE_NATIVE_GCORE_TARGET
=1
6606 if test x
${all_targets} = xtrue
; then
6608 # We want all 64-bit targets if we either:
6609 # - run on a 64-bit host or
6610 # - already require 64-bit support for some other target or
6611 # - the --enable-64-bit-bfd option was supplied
6612 # Otherwise we only support all 32-bit targets.
6614 # NOTE: This test must be in sync with the corresponding
6617 if test x
${want64} = xfalse
; then
6618 # The cast to long int works around a bug in the HP C Compiler
6619 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6620 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6621 # This bug is HP SR number 8606223364.
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6623 $as_echo_n "checking size of long... " >&6; }
6624 if ${ac_cv_sizeof_long+:} false
; then :
6625 $as_echo_n "(cached) " >&6
6627 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6630 if test "$ac_cv_type_long" = yes; then
6631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6633 as_fn_error
77 "cannot compute sizeof (long)
6634 See \`config.log' for more details" "$LINENO" 5; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6642 $as_echo "$ac_cv_sizeof_long" >&6; }
6646 cat >>confdefs.h
<<_ACEOF
6647 #define SIZEOF_LONG $ac_cv_sizeof_long
6651 if test "x${ac_cv_sizeof_long}" = "x8"; then
6655 if test x
${want64} = xtrue
; then
6656 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6658 TARGET_OBS
='$(ALL_TARGET_OBS)'
6665 # For other settings, only the main target counts.
6669 targ
=$target; .
${srcdir}/configure.tgt
6671 # Fetch the default architecture and default target vector from BFD.
6672 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6674 # We only want the first architecture, so strip off the others if
6675 # there is more than one.
6676 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6678 if test "x$targ_archs" != x
; then
6680 cat >>confdefs.h
<<_ACEOF
6681 #define DEFAULT_BFD_ARCH $targ_archs
6685 if test "x$targ_defvec" != x
; then
6687 cat >>confdefs.h
<<_ACEOF
6688 #define DEFAULT_BFD_VEC $targ_defvec
6694 # Check whether --enable-gdbmi was given.
6695 if test "${enable_gdbmi+set}" = set; then :
6696 enableval
=$enable_gdbmi; case $enableval in
6700 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6706 if test x
"$enable_gdbmi" = xyes
; then
6707 if test -d $srcdir/mi
; then
6708 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6709 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6710 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6711 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6716 # Check whether --enable-tui was given.
6717 if test "${enable_tui+set}" = set; then :
6718 enableval
=$enable_tui; case $enableval in
6722 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6730 # Check whether --enable-gdbtk was given.
6731 if test "${enable_gdbtk+set}" = set; then :
6732 enableval
=$enable_gdbtk; case $enableval in
6736 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6739 if test -d $srcdir/gdbtk
; then
6746 # We unconditionally disable gdbtk tests on selected platforms.
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6750 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6754 # Libunwind support for ia64.
6757 # Check whether --with-libunwind-ia64 was given.
6758 if test "${with_libunwind_ia64+set}" = set; then :
6759 withval
=$with_libunwind_ia64;
6761 with_libunwind_ia64
=auto
6765 # Backward compatibility option.
6766 if test "${with_libunwind+set}" = set; then
6767 if test x
"$with_libunwind_ia64" != xauto
; then
6768 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6771 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6772 with_libunwind_ia64
="$with_libunwind"
6775 case "$with_libunwind_ia64" in
6779 for ac_header
in libunwind-ia64.h
6781 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6782 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6783 cat >>confdefs.h
<<_ACEOF
6784 #define HAVE_LIBUNWIND_IA64_H 1
6791 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6794 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6798 if test x
"$with_libunwind_ia64" = xyes
; then
6799 for ac_header
in libunwind-ia64.h
6801 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6802 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6803 cat >>confdefs.h
<<_ACEOF
6804 #define HAVE_LIBUNWIND_IA64_H 1
6811 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6812 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6814 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6815 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6816 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6821 # Check whether --with-curses was given.
6822 if test "${with_curses+set}" = set; then :
6823 withval
=$with_curses; opt_curses
=$withval
6828 if test "$opt_curses" = "yes"; then
6832 # Profiling support.
6833 # Check whether --enable-profiling was given.
6834 if test "${enable_profiling+set}" = set; then :
6835 enableval
=$enable_profiling; case $enableval in
6839 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6846 for ac_func
in monstartup _mcleanup
6848 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6849 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6850 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6851 cat >>confdefs.h
<<_ACEOF
6852 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6859 $as_echo_n "checking for _etext... " >&6; }
6860 if ${ac_cv_var__etext+:} false
; then :
6861 $as_echo_n "(cached) " >&6
6863 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6876 if ac_fn_c_try_link
"$LINENO"; then :
6877 ac_cv_var__etext
=yes
6881 rm -f core conftest.err conftest.
$ac_objext \
6882 conftest
$ac_exeext conftest.
$ac_ext
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
6885 $as_echo "$ac_cv_var__etext" >&6; }
6886 if test $ac_cv_var__etext = yes; then
6888 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
6892 $as_echo_n "checking for etext... " >&6; }
6893 if ${ac_cv_var_etext+:} false
; then :
6894 $as_echo_n "(cached) " >&6
6896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6909 if ac_fn_c_try_link
"$LINENO"; then :
6914 rm -f core conftest.err conftest.
$ac_objext \
6915 conftest
$ac_exeext conftest.
$ac_ext
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
6918 $as_echo "$ac_cv_var_etext" >&6; }
6919 if test $ac_cv_var_etext = yes; then
6921 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
6924 if test "$enable_profiling" = yes ; then
6925 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
6926 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
6929 OLD_CFLAGS
="$CFLAGS"
6930 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
6933 $as_echo_n "checking whether $CC supports -pg... " >&6; }
6934 if ${ac_cv_cc_supports_pg+:} false
; then :
6935 $as_echo_n "(cached) " >&6
6937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6948 if ac_fn_c_try_compile
"$LINENO"; then :
6949 ac_cv_cc_supports_pg
=yes
6951 ac_cv_cc_supports_pg
=no
6953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
6956 $as_echo "$ac_cv_cc_supports_pg" >&6; }
6958 if test $ac_cv_cc_supports_pg = no
; then
6959 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
6962 CFLAGS
="$OLD_CFLAGS"
6966 # Check whether --enable-codesign was given.
6967 if test "${enable_codesign+set}" = set; then :
6968 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
6975 # Check whether --with-pkgversion was given.
6976 if test "${with_pkgversion+set}" = set; then :
6977 withval
=$with_pkgversion; case "$withval" in
6978 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
6980 *) PKGVERSION
="($withval) " ;;
6991 # Check whether --with-bugurl was given.
6992 if test "${with_bugurl+set}" = set; then :
6993 withval
=$with_bugurl; case "$withval" in
6994 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
6997 *) BUGURL
="$withval"
7001 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7011 REPORT_BUGS_TO
="<$BUGURL>"
7012 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7019 cat >>confdefs.h
<<_ACEOF
7020 #define PKGVERSION "$PKGVERSION"
7024 cat >>confdefs.h
<<_ACEOF
7025 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7029 # --------------------- #
7030 # Checks for programs. #
7031 # --------------------- #
7033 for ac_prog
in gawk mawk nawk
awk
7035 # Extract the first word of "$ac_prog", so it can be a program name with args.
7036 set dummy
$ac_prog; ac_word
=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_AWK+:} false
; then :
7040 $as_echo_n "(cached) " >&6
7042 if test -n "$AWK"; then
7043 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7045 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7049 test -z "$as_dir" && as_dir
=.
7050 for ac_exec_ext
in '' $ac_executable_extensions; do
7051 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7052 ac_cv_prog_AWK
="$ac_prog"
7053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 if test -n "$AWK"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7065 $as_echo "$AWK" >&6; }
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7072 test -n "$AWK" && break
7075 # Find a good install program. We prefer a C program (faster),
7076 # so one script is as good as another. But avoid the broken or
7077 # incompatible versions:
7078 # SysV /etc/install, /usr/sbin/install
7079 # SunOS /usr/etc/install
7080 # IRIX /sbin/install
7082 # AmigaOS /C/install, which installs bootblocks on floppy discs
7083 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7084 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7085 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7086 # OS/2's system install, which has a completely different semantic
7087 # ./install, which can be erroneously created by make from ./install.sh.
7088 # Reject install programs that cannot install multiple files.
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7090 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7091 if test -z "$INSTALL"; then
7092 if ${ac_cv_path_install+:} false
; then :
7093 $as_echo_n "(cached) " >&6
7095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir
=.
7100 # Account for people who put trailing slashes in PATH elements.
7101 case $as_dir/ in #((
7102 .
/ | .
// |
/[cC
]/* | \
7103 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7104 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7107 # OSF1 and SCO ODT 3.0 have their own names for install.
7108 # Don't use installbsd from OSF since it installs stuff as root
7110 for ac_prog
in ginstall scoinst
install; do
7111 for ac_exec_ext
in '' $ac_executable_extensions; do
7112 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7113 if test $ac_prog = install &&
7114 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7115 # AIX install. It has an incompatible calling convention.
7117 elif test $ac_prog = install &&
7118 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7119 # program-specific install script used by HP pwplus--don't use.
7122 rm -rf conftest.one conftest.two conftest.dir
7123 echo one
> conftest.one
7124 echo two
> conftest.two
7126 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7127 test -s conftest.one
&& test -s conftest.two
&&
7128 test -s conftest.dir
/conftest.one
&&
7129 test -s conftest.dir
/conftest.two
7131 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7144 rm -rf conftest.one conftest.two conftest.dir
7147 if test "${ac_cv_path_install+set}" = set; then
7148 INSTALL
=$ac_cv_path_install
7150 # As a last resort, use the slow shell script. Don't cache a
7151 # value for INSTALL within a source directory, because that will
7152 # break other packages using the cache if that directory is
7153 # removed, or if the value is a relative name.
7154 INSTALL
=$ac_install_sh
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7158 $as_echo "$INSTALL" >&6; }
7160 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7161 # It thinks the first close brace ends the variable substitution.
7162 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7164 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7166 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7169 $as_echo_n "checking whether ln -s works... " >&6; }
7171 if test "$LN_S" = "ln -s"; then
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7173 $as_echo "yes" >&6; }
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7176 $as_echo "no, using $LN_S" >&6; }
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7181 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_RANLIB+:} false
; then :
7185 $as_echo_n "(cached) " >&6
7187 if test -n "$RANLIB"; then
7188 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7194 test -z "$as_dir" && as_dir
=.
7195 for ac_exec_ext
in '' $ac_executable_extensions; do
7196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 RANLIB
=$ac_cv_prog_RANLIB
7208 if test -n "$RANLIB"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7210 $as_echo "$RANLIB" >&6; }
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7218 if test -z "$ac_cv_prog_RANLIB"; then
7219 ac_ct_RANLIB
=$RANLIB
7220 # Extract the first word of "ranlib", so it can be a program name with args.
7221 set dummy ranlib
; ac_word
=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$ac_ct_RANLIB"; then
7228 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir
=.
7235 for ac_exec_ext
in '' $ac_executable_extensions; do
7236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7248 if test -n "$ac_ct_RANLIB"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7250 $as_echo "$ac_ct_RANLIB" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256 if test "x$ac_ct_RANLIB" = x
; then
7259 case $cross_compiling:$ac_tool_warned in
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned
=yes ;;
7265 RANLIB
=$ac_ct_RANLIB
7268 RANLIB
="$ac_cv_prog_RANLIB"
7271 for ac_prog
in 'bison -y' byacc
7273 # Extract the first word of "$ac_prog", so it can be a program name with args.
7274 set dummy
$ac_prog; ac_word
=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_YACC+:} false
; then :
7278 $as_echo_n "(cached) " >&6
7280 if test -n "$YACC"; then
7281 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir
=.
7288 for ac_exec_ext
in '' $ac_executable_extensions; do
7289 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7290 ac_cv_prog_YACC
="$ac_prog"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 YACC
=$ac_cv_prog_YACC
7301 if test -n "$YACC"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7303 $as_echo "$YACC" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7310 test -n "$YACC" && break
7312 test -n "$YACC" || YACC
="yacc"
7315 if test -n "$ac_tool_prefix"; then
7316 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7317 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7319 $as_echo_n "checking for $ac_word... " >&6; }
7320 if ${ac_cv_prog_AR+:} false
; then :
7321 $as_echo_n "(cached) " >&6
7323 if test -n "$AR"; then
7324 ac_cv_prog_AR
="$AR" # Let the user override the test.
7326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7330 test -z "$as_dir" && as_dir
=.
7331 for ac_exec_ext
in '' $ac_executable_extensions; do
7332 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7333 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 if test -n "$AR"; then
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7346 $as_echo "$AR" >&6; }
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7349 $as_echo "no" >&6; }
7354 if test -z "$ac_cv_prog_AR"; then
7356 # Extract the first word of "ar", so it can be a program name with args.
7357 set dummy
ar; ac_word
=$2
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7359 $as_echo_n "checking for $ac_word... " >&6; }
7360 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7361 $as_echo_n "(cached) " >&6
7363 if test -n "$ac_ct_AR"; then
7364 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7370 test -z "$as_dir" && as_dir
=.
7371 for ac_exec_ext
in '' $ac_executable_extensions; do
7372 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7373 ac_cv_prog_ac_ct_AR
="ar"
7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7384 if test -n "$ac_ct_AR"; then
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7386 $as_echo "$ac_ct_AR" >&6; }
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389 $as_echo "no" >&6; }
7392 if test "x$ac_ct_AR" = x
; then
7395 case $cross_compiling:$ac_tool_warned in
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7399 ac_tool_warned
=yes ;;
7407 if test -n "$ac_tool_prefix"; then
7408 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7409 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7413 $as_echo_n "(cached) " >&6
7415 if test -n "$DLLTOOL"; then
7416 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7422 test -z "$as_dir" && as_dir
=.
7423 for ac_exec_ext
in '' $ac_executable_extensions; do
7424 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7425 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7435 DLLTOOL
=$ac_cv_prog_DLLTOOL
7436 if test -n "$DLLTOOL"; then
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7438 $as_echo "$DLLTOOL" >&6; }
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441 $as_echo "no" >&6; }
7446 if test -z "$ac_cv_prog_DLLTOOL"; then
7447 ac_ct_DLLTOOL
=$DLLTOOL
7448 # Extract the first word of "dlltool", so it can be a program name with args.
7449 set dummy dlltool
; ac_word
=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7453 $as_echo_n "(cached) " >&6
7455 if test -n "$ac_ct_DLLTOOL"; then
7456 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir
=.
7463 for ac_exec_ext
in '' $ac_executable_extensions; do
7464 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7465 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7475 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7476 if test -n "$ac_ct_DLLTOOL"; then
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7478 $as_echo "$ac_ct_DLLTOOL" >&6; }
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481 $as_echo "no" >&6; }
7484 if test "x$ac_ct_DLLTOOL" = x
; then
7487 case $cross_compiling:$ac_tool_warned in
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7491 ac_tool_warned
=yes ;;
7493 DLLTOOL
=$ac_ct_DLLTOOL
7496 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7499 if test -n "$ac_tool_prefix"; then
7500 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7501 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_WINDRES+:} false
; then :
7505 $as_echo_n "(cached) " >&6
7507 if test -n "$WINDRES"; then
7508 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir
=.
7515 for ac_exec_ext
in '' $ac_executable_extensions; do
7516 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7527 WINDRES
=$ac_cv_prog_WINDRES
7528 if test -n "$WINDRES"; then
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7530 $as_echo "$WINDRES" >&6; }
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7538 if test -z "$ac_cv_prog_WINDRES"; then
7539 ac_ct_WINDRES
=$WINDRES
7540 # Extract the first word of "windres", so it can be a program name with args.
7541 set dummy windres
; ac_word
=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7545 $as_echo_n "(cached) " >&6
7547 if test -n "$ac_ct_WINDRES"; then
7548 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7554 test -z "$as_dir" && as_dir
=.
7555 for ac_exec_ext
in '' $ac_executable_extensions; do
7556 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7557 ac_cv_prog_ac_ct_WINDRES
="windres"
7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7567 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7568 if test -n "$ac_ct_WINDRES"; then
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7570 $as_echo "$ac_ct_WINDRES" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7576 if test "x$ac_ct_WINDRES" = x
; then
7579 case $cross_compiling:$ac_tool_warned in
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7583 ac_tool_warned
=yes ;;
7585 WINDRES
=$ac_ct_WINDRES
7588 WINDRES
="$ac_cv_prog_WINDRES"
7594 # Needed for GNU Hurd hosts.
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7597 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_MIG+:} false
; then :
7601 $as_echo_n "(cached) " >&6
7603 if test -n "$MIG"; then
7604 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7606 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7610 test -z "$as_dir" && as_dir
=.
7611 for ac_exec_ext
in '' $ac_executable_extensions; do
7612 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 if test -n "$MIG"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7626 $as_echo "$MIG" >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7634 if test -z "$ac_cv_prog_MIG"; then
7636 # Extract the first word of "mig", so it can be a program name with args.
7637 set dummy mig
; ac_word
=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7641 $as_echo_n "(cached) " >&6
7643 if test -n "$ac_ct_MIG"; then
7644 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7646 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7650 test -z "$as_dir" && as_dir
=.
7651 for ac_exec_ext
in '' $ac_executable_extensions; do
7652 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_ac_ct_MIG
="mig"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7663 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7664 if test -n "$ac_ct_MIG"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7666 $as_echo "$ac_ct_MIG" >&6; }
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7672 if test "x$ac_ct_MIG" = x
; then
7675 case $cross_compiling:$ac_tool_warned in
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned
=yes ;;
7684 MIG
="$ac_cv_prog_MIG"
7687 if test x
"$MIG" = x
; then
7688 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7693 # ---------------------- #
7694 # Checks for libraries. #
7695 # ---------------------- #
7697 # We might need to link with -lm; most simulators need it.
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7699 $as_echo_n "checking for main in -lm... " >&6; }
7700 if ${ac_cv_lib_m_main+:} false
; then :
7701 $as_echo_n "(cached) " >&6
7703 ac_check_lib_save_LIBS
=$LIBS
7705 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h. */
7717 if ac_fn_c_try_link
"$LINENO"; then :
7718 ac_cv_lib_m_main
=yes
7722 rm -f core conftest.err conftest.
$ac_objext \
7723 conftest
$ac_exeext conftest.
$ac_ext
7724 LIBS
=$ac_check_lib_save_LIBS
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7727 $as_echo "$ac_cv_lib_m_main" >&6; }
7728 if test "x$ac_cv_lib_m_main" = xyes
; then :
7729 cat >>confdefs.h
<<_ACEOF
7738 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7740 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7741 if ${ac_cv_search_gethostbyname+:} false
; then :
7742 $as_echo_n "(cached) " >&6
7744 ac_func_search_save_LIBS
=$LIBS
7745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7748 /* Override any GCC internal prototype to avoid an error.
7749 Use char because int might match the return type of a GCC
7750 builtin and then its argument prototype would still apply. */
7754 char gethostbyname ();
7758 return gethostbyname ();
7763 for ac_lib
in '' nsl
; do
7764 if test -z "$ac_lib"; then
7765 ac_res
="none required"
7768 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7770 if ac_fn_c_try_link
"$LINENO"; then :
7771 ac_cv_search_gethostbyname
=$ac_res
7773 rm -f core conftest.err conftest.
$ac_objext \
7775 if ${ac_cv_search_gethostbyname+:} false
; then :
7779 if ${ac_cv_search_gethostbyname+:} false
; then :
7782 ac_cv_search_gethostbyname
=no
7785 LIBS
=$ac_func_search_save_LIBS
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7788 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7789 ac_res
=$ac_cv_search_gethostbyname
7790 if test "$ac_res" != no
; then :
7791 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7796 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7798 $as_echo_n "checking for library containing socketpair... " >&6; }
7799 if ${ac_cv_search_socketpair+:} false
; then :
7800 $as_echo_n "(cached) " >&6
7802 ac_func_search_save_LIBS
=$LIBS
7803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7806 /* Override any GCC internal prototype to avoid an error.
7807 Use char because int might match the return type of a GCC
7808 builtin and then its argument prototype would still apply. */
7816 return socketpair ();
7821 for ac_lib
in '' socket
; do
7822 if test -z "$ac_lib"; then
7823 ac_res
="none required"
7826 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7828 if ac_fn_c_try_link
"$LINENO"; then :
7829 ac_cv_search_socketpair
=$ac_res
7831 rm -f core conftest.err conftest.
$ac_objext \
7833 if ${ac_cv_search_socketpair+:} false
; then :
7837 if ${ac_cv_search_socketpair+:} false
; then :
7840 ac_cv_search_socketpair
=no
7843 LIBS
=$ac_func_search_save_LIBS
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7846 $as_echo "$ac_cv_search_socketpair" >&6; }
7847 ac_res
=$ac_cv_search_socketpair
7848 if test "$ac_res" != no
; then :
7849 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7854 # Link in zlib if we can. This allows us to read compressed debug sections.
7856 # Use the system's zlib library.
7857 zlibdir
="-L\$(top_builddir)/../zlib"
7858 zlibinc
="-I\$(top_srcdir)/../zlib"
7860 # Check whether --with-system-zlib was given.
7861 if test "${with_system_zlib+set}" = set; then :
7862 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7873 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7874 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7876 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7877 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7878 $as_echo_n "(cached) " >&6
7880 ac_func_search_save_LIBS
=$LIBS
7881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7882 /* end confdefs.h. */
7884 /* Override any GCC internal prototype to avoid an error.
7885 Use char because int might match the return type of a GCC
7886 builtin and then its argument prototype would still apply. */
7890 char kinfo_getvmmap ();
7894 return kinfo_getvmmap ();
7899 for ac_lib
in '' util util-freebsd
; do
7900 if test -z "$ac_lib"; then
7901 ac_res
="none required"
7904 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7906 if ac_fn_c_try_link
"$LINENO"; then :
7907 ac_cv_search_kinfo_getvmmap
=$ac_res
7909 rm -f core conftest.err conftest.
$ac_objext \
7911 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7915 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7918 ac_cv_search_kinfo_getvmmap
=no
7921 LIBS
=$ac_func_search_save_LIBS
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
7924 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
7925 ac_res
=$ac_cv_search_kinfo_getvmmap
7926 if test "$ac_res" != no
; then :
7927 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7929 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
7934 # fbsd-nat.c can also use kinfo_getfile.
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
7936 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
7937 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7938 $as_echo_n "(cached) " >&6
7940 ac_func_search_save_LIBS
=$LIBS
7941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7944 /* Override any GCC internal prototype to avoid an error.
7945 Use char because int might match the return type of a GCC
7946 builtin and then its argument prototype would still apply. */
7950 char kinfo_getfile ();
7954 return kinfo_getfile ();
7959 for ac_lib
in '' util util-freebsd
; do
7960 if test -z "$ac_lib"; then
7961 ac_res
="none required"
7964 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7966 if ac_fn_c_try_link
"$LINENO"; then :
7967 ac_cv_search_kinfo_getfile
=$ac_res
7969 rm -f core conftest.err conftest.
$ac_objext \
7971 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7975 if ${ac_cv_search_kinfo_getfile+:} false
; then :
7978 ac_cv_search_kinfo_getfile
=no
7981 LIBS
=$ac_func_search_save_LIBS
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
7984 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
7985 ac_res
=$ac_cv_search_kinfo_getfile
7986 if test "$ac_res" != no
; then :
7987 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7989 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
7995 if test "X$prefix" = "XNONE"; then
7996 acl_final_prefix
="$ac_default_prefix"
7998 acl_final_prefix
="$prefix"
8000 if test "X$exec_prefix" = "XNONE"; then
8001 acl_final_exec_prefix
='${prefix}'
8003 acl_final_exec_prefix
="$exec_prefix"
8005 acl_save_prefix
="$prefix"
8006 prefix
="$acl_final_prefix"
8007 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8008 prefix
="$acl_save_prefix"
8011 # Check whether --with-gnu-ld was given.
8012 if test "${with_gnu_ld+set}" = set; then :
8013 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8018 # Prepare PATH_SEPARATOR.
8019 # The user is always right.
8020 if test "${PATH_SEPARATOR+set}" != set; then
8021 echo "#! /bin/sh" >conf$$.sh
8022 echo "exit 0" >>conf$$.sh
8024 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8032 if test "$GCC" = yes; then
8033 # Check if gcc -print-prog-name=ld gives a path.
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8035 $as_echo_n "checking for ld used by GCC... " >&6; }
8038 # gcc leaves a trailing carriage return which upsets mingw
8039 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8041 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8044 # Accept absolute paths.
8045 [\\/]* |
[A-Za-z
]:[\\/]*)
8046 re_direlt
='/[^/][^/]*/\.\./'
8047 # Canonicalize the path of ld
8048 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8049 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8050 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8052 test -z "$LD" && LD
="$ac_prog"
8055 # If it fails, then pretend we aren't using GCC.
8059 # If it is relative, then search for the first ld in PATH.
8063 elif test "$with_gnu_ld" = yes; then
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8065 $as_echo_n "checking for GNU ld... " >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8068 $as_echo_n "checking for non-GNU ld... " >&6; }
8070 if ${acl_cv_path_LD+:} false
; then :
8071 $as_echo_n "(cached) " >&6
8073 if test -z "$LD"; then
8074 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8075 for ac_dir
in $PATH; do
8076 test -z "$ac_dir" && ac_dir
=.
8077 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8078 acl_cv_path_LD
="$ac_dir/$ac_prog"
8079 # Check to see if the program is GNU ld. I'd rather use --version,
8080 # but apparently some GNU ld's only accept -v.
8081 # Break only if it was the GNU/non-GNU ld that we prefer.
8082 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8083 test "$with_gnu_ld" != no
&& break
8085 test "$with_gnu_ld" != yes && break
8091 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8095 LD
="$acl_cv_path_LD"
8096 if test -n "$LD"; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8098 $as_echo "$LD" >&6; }
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8101 $as_echo "no" >&6; }
8103 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8105 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8106 if ${acl_cv_prog_gnu_ld+:} false
; then :
8107 $as_echo_n "(cached) " >&6
8109 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8110 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8111 acl_cv_prog_gnu_ld
=yes
8113 acl_cv_prog_gnu_ld
=no
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8117 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8118 with_gnu_ld
=$acl_cv_prog_gnu_ld
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8123 $as_echo_n "checking for shared library run path origin... " >&6; }
8124 if ${acl_cv_rpath+:} false
; then :
8125 $as_echo_n "(cached) " >&6
8128 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8129 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8136 $as_echo "$acl_cv_rpath" >&6; }
8138 libext
="$acl_cv_libext"
8139 shlibext
="$acl_cv_shlibext"
8140 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8141 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8142 hardcode_direct
="$acl_cv_hardcode_direct"
8143 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8144 # Check whether --enable-rpath was given.
8145 if test "${enable_rpath+set}" = set; then :
8146 enableval
=$enable_rpath; :
8160 acl_save_prefix
="$prefix"
8161 prefix
="$acl_final_prefix"
8162 acl_save_exec_prefix
="$exec_prefix"
8163 exec_prefix
="$acl_final_exec_prefix"
8165 eval additional_includedir
=\"$includedir\"
8166 eval additional_libdir
=\"$libdir\"
8168 exec_prefix
="$acl_save_exec_prefix"
8169 prefix
="$acl_save_prefix"
8172 # Check whether --with-libiconv-prefix was given.
8173 if test "${with_libiconv_prefix+set}" = set; then :
8174 withval
=$with_libiconv_prefix;
8175 if test "X$withval" = "Xno"; then
8178 if test "X$withval" = "X"; then
8180 acl_save_prefix
="$prefix"
8181 prefix
="$acl_final_prefix"
8182 acl_save_exec_prefix
="$exec_prefix"
8183 exec_prefix
="$acl_final_exec_prefix"
8185 eval additional_includedir
=\"$includedir\"
8186 eval additional_libdir
=\"$libdir\"
8188 exec_prefix
="$acl_save_exec_prefix"
8189 prefix
="$acl_save_prefix"
8192 additional_includedir
="$withval/include"
8193 additional_libdir
="$withval/lib"
8204 names_already_handled
=
8205 names_next_round
='iconv '
8206 while test -n "$names_next_round"; do
8207 names_this_round
="$names_next_round"
8209 for name
in $names_this_round; do
8211 for n
in $names_already_handled; do
8212 if test "$n" = "$name"; then
8217 if test -z "$already_handled"; then
8218 names_already_handled
="$names_already_handled $name"
8219 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8220 eval value
=\"\
$HAVE_LIB$uppername\"
8221 if test -n "$value"; then
8222 if test "$value" = yes; then
8223 eval value
=\"\
$LIB$uppername\"
8224 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8225 eval value
=\"\
$LTLIB$uppername\"
8226 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8235 if test $use_additional = yes; then
8236 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8237 found_dir
="$additional_libdir"
8238 found_so
="$additional_libdir/lib$name.$shlibext"
8239 if test -f "$additional_libdir/lib$name.la"; then
8240 found_la
="$additional_libdir/lib$name.la"
8243 if test -f "$additional_libdir/lib$name.$libext"; then
8244 found_dir
="$additional_libdir"
8245 found_a
="$additional_libdir/lib$name.$libext"
8246 if test -f "$additional_libdir/lib$name.la"; then
8247 found_la
="$additional_libdir/lib$name.la"
8252 if test "X$found_dir" = "X"; then
8253 for x
in $LDFLAGS $LTLIBICONV; do
8255 acl_save_prefix
="$prefix"
8256 prefix
="$acl_final_prefix"
8257 acl_save_exec_prefix
="$exec_prefix"
8258 exec_prefix
="$acl_final_exec_prefix"
8260 exec_prefix
="$acl_save_exec_prefix"
8261 prefix
="$acl_save_prefix"
8265 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8266 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8268 found_so
="$dir/lib$name.$shlibext"
8269 if test -f "$dir/lib$name.la"; then
8270 found_la
="$dir/lib$name.la"
8273 if test -f "$dir/lib$name.$libext"; then
8275 found_a
="$dir/lib$name.$libext"
8276 if test -f "$dir/lib$name.la"; then
8277 found_la
="$dir/lib$name.la"
8283 if test "X$found_dir" != "X"; then
8288 if test "X$found_dir" != "X"; then
8289 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8290 if test "X$found_so" != "X"; then
8291 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8292 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8295 for x
in $ltrpathdirs; do
8296 if test "X$x" = "X$found_dir"; then
8301 if test -z "$haveit"; then
8302 ltrpathdirs
="$ltrpathdirs $found_dir"
8304 if test "$hardcode_direct" = yes; then
8305 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8307 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8308 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8310 for x
in $rpathdirs; do
8311 if test "X$x" = "X$found_dir"; then
8316 if test -z "$haveit"; then
8317 rpathdirs
="$rpathdirs $found_dir"
8321 for x
in $LDFLAGS $LIBICONV; do
8323 acl_save_prefix
="$prefix"
8324 prefix
="$acl_final_prefix"
8325 acl_save_exec_prefix
="$exec_prefix"
8326 exec_prefix
="$acl_final_exec_prefix"
8328 exec_prefix
="$acl_save_exec_prefix"
8329 prefix
="$acl_save_prefix"
8331 if test "X$x" = "X-L$found_dir"; then
8336 if test -z "$haveit"; then
8337 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8339 if test "$hardcode_minus_L" != no
; then
8340 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8342 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8348 if test "X$found_a" != "X"; then
8349 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8351 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8354 additional_includedir
=
8355 case "$found_dir" in
8357 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8358 additional_includedir
="$basedir/include"
8361 if test "X$additional_includedir" != "X"; then
8362 if test "X$additional_includedir" != "X/usr/include"; then
8364 if test "X$additional_includedir" = "X/usr/local/include"; then
8365 if test -n "$GCC"; then
8367 linux
*) haveit
=yes;;
8371 if test -z "$haveit"; then
8372 for x
in $CPPFLAGS $INCICONV; do
8374 acl_save_prefix
="$prefix"
8375 prefix
="$acl_final_prefix"
8376 acl_save_exec_prefix
="$exec_prefix"
8377 exec_prefix
="$acl_final_exec_prefix"
8379 exec_prefix
="$acl_save_exec_prefix"
8380 prefix
="$acl_save_prefix"
8382 if test "X$x" = "X-I$additional_includedir"; then
8387 if test -z "$haveit"; then
8388 if test -d "$additional_includedir"; then
8389 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8395 if test -n "$found_la"; then
8396 save_libdir
="$libdir"
8398 */* |
*\\*) .
"$found_la" ;;
8399 *) .
"./$found_la" ;;
8401 libdir
="$save_libdir"
8402 for dep
in $dependency_libs; do
8405 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8406 if test "X$additional_libdir" != "X/usr/lib"; then
8408 if test "X$additional_libdir" = "X/usr/local/lib"; then
8409 if test -n "$GCC"; then
8411 linux
*) haveit
=yes;;
8415 if test -z "$haveit"; then
8417 for x
in $LDFLAGS $LIBICONV; do
8419 acl_save_prefix
="$prefix"
8420 prefix
="$acl_final_prefix"
8421 acl_save_exec_prefix
="$exec_prefix"
8422 exec_prefix
="$acl_final_exec_prefix"
8424 exec_prefix
="$acl_save_exec_prefix"
8425 prefix
="$acl_save_prefix"
8427 if test "X$x" = "X-L$additional_libdir"; then
8432 if test -z "$haveit"; then
8433 if test -d "$additional_libdir"; then
8434 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8438 for x
in $LDFLAGS $LTLIBICONV; do
8440 acl_save_prefix
="$prefix"
8441 prefix
="$acl_final_prefix"
8442 acl_save_exec_prefix
="$exec_prefix"
8443 exec_prefix
="$acl_final_exec_prefix"
8445 exec_prefix
="$acl_save_exec_prefix"
8446 prefix
="$acl_save_prefix"
8448 if test "X$x" = "X-L$additional_libdir"; then
8453 if test -z "$haveit"; then
8454 if test -d "$additional_libdir"; then
8455 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8462 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8463 if test "$enable_rpath" != no
; then
8465 for x
in $rpathdirs; do
8466 if test "X$x" = "X$dir"; then
8471 if test -z "$haveit"; then
8472 rpathdirs
="$rpathdirs $dir"
8475 for x
in $ltrpathdirs; do
8476 if test "X$x" = "X$dir"; then
8481 if test -z "$haveit"; then
8482 ltrpathdirs
="$ltrpathdirs $dir"
8487 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8490 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8493 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8494 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8500 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8501 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8507 if test "X$rpathdirs" != "X"; then
8508 if test -n "$hardcode_libdir_separator"; then
8510 for found_dir
in $rpathdirs; do
8511 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8513 acl_save_libdir
="$libdir"
8515 eval flag
=\"$hardcode_libdir_flag_spec\"
8516 libdir
="$acl_save_libdir"
8517 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8519 for found_dir
in $rpathdirs; do
8520 acl_save_libdir
="$libdir"
8522 eval flag
=\"$hardcode_libdir_flag_spec\"
8523 libdir
="$acl_save_libdir"
8524 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8528 if test "X$ltrpathdirs" != "X"; then
8529 for found_dir
in $ltrpathdirs; do
8530 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8541 $as_echo_n "checking for iconv... " >&6; }
8542 if ${am_cv_func_iconv+:} false
; then :
8543 $as_echo_n "(cached) " >&6
8546 am_cv_func_iconv
="no, consider installing GNU libiconv"
8548 am_save_CPPFLAGS
="$CPPFLAGS"
8549 CPPFLAGS
="$CPPFLAGS $INCICONV"
8550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8557 iconv_t cd = iconv_open("","");
8558 iconv(cd,NULL,NULL,NULL,NULL);
8564 if ac_fn_c_try_link
"$LINENO"; then :
8565 am_cv_func_iconv
=yes
8567 rm -f core conftest.err conftest.
$ac_objext \
8568 conftest
$ac_exeext conftest.
$ac_ext
8569 CPPFLAGS
="$am_save_CPPFLAGS"
8571 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8572 for _libs
in .libs _libs
; do
8573 am_save_CPPFLAGS
="$CPPFLAGS"
8574 am_save_LIBS
="$LIBS"
8575 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8576 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8584 iconv_t cd = iconv_open("","");
8585 iconv(cd,NULL,NULL,NULL,NULL);
8591 if ac_fn_c_try_link
"$LINENO"; then :
8592 INCICONV
="-I../libiconv/include"
8593 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8594 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8596 am_cv_func_iconv
=yes
8598 rm -f core conftest.err conftest.
$ac_objext \
8599 conftest
$ac_exeext conftest.
$ac_ext
8600 CPPFLAGS
="$am_save_CPPFLAGS"
8601 LIBS
="$am_save_LIBS"
8602 if test "$am_cv_func_iconv" = "yes"; then
8608 if test "$am_cv_func_iconv" != yes; then
8609 am_save_CPPFLAGS
="$CPPFLAGS"
8610 am_save_LIBS
="$LIBS"
8611 CPPFLAGS
="$CPPFLAGS $INCICONV"
8612 LIBS
="$LIBS $LIBICONV"
8613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8620 iconv_t cd = iconv_open("","");
8621 iconv(cd,NULL,NULL,NULL,NULL);
8627 if ac_fn_c_try_link
"$LINENO"; then :
8629 am_cv_func_iconv
=yes
8631 rm -f core conftest.err conftest.
$ac_objext \
8632 conftest
$ac_exeext conftest.
$ac_ext
8633 CPPFLAGS
="$am_save_CPPFLAGS"
8634 LIBS
="$am_save_LIBS"
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8639 $as_echo "$am_cv_func_iconv" >&6; }
8640 if test "$am_cv_func_iconv" = yes; then
8642 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8645 if test "$am_cv_lib_iconv" = yes; then
8647 for element
in $INCICONV; do
8649 for x
in $CPPFLAGS; do
8651 acl_save_prefix
="$prefix"
8652 prefix
="$acl_final_prefix"
8653 acl_save_exec_prefix
="$exec_prefix"
8654 exec_prefix
="$acl_final_exec_prefix"
8656 exec_prefix
="$acl_save_exec_prefix"
8657 prefix
="$acl_save_prefix"
8659 if test "X$x" = "X$element"; then
8664 if test -z "$haveit"; then
8665 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8670 $as_echo_n "checking how to link with libiconv... " >&6; }
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8672 $as_echo "$LIBICONV" >&6; }
8680 if test "$am_cv_func_iconv" = yes; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8682 $as_echo_n "checking for iconv declaration... " >&6; }
8683 if ${am_cv_proto_iconv+:} false
; then :
8684 $as_echo_n "(cached) " >&6
8687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8696 #if defined(__STDC__) || defined(__cplusplus)
8697 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8710 if ac_fn_c_try_compile
"$LINENO"; then :
8711 am_cv_proto_iconv_arg1
=""
8713 am_cv_proto_iconv_arg1
="const"
8715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8716 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);"
8719 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8721 }$am_cv_proto_iconv" >&5
8723 }$am_cv_proto_iconv" >&6; }
8725 cat >>confdefs.h
<<_ACEOF
8726 #define ICONV_CONST $am_cv_proto_iconv_arg1
8732 # GDB may fork/exec the iconv program to get the list of supported character
8733 # sets. Allow the user to specify where to find it.
8734 # There are several factors affecting the choice of option name:
8735 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8736 # the build-time location of libiconv files.
8737 # - The program we need to find is iconv, which comes with glibc. The user
8738 # doesn't necessarily have libiconv installed. Therefore naming this
8739 # --with-libiconv-foo feels wrong.
8740 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8741 # defined to work on directories not files (though it really doesn't know
8743 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8744 # with --with-libiconv-prefix.
8745 # Putting these together is why the option name is --with-iconv-bin.
8748 # Check whether --with-iconv-bin was given.
8749 if test "${with_iconv_bin+set}" = set; then :
8750 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8752 cat >>confdefs.h
<<_ACEOF
8753 #define ICONV_BIN "${iconv_bin}"
8757 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8758 if test "x$prefix" = xNONE
; then
8759 test_prefix
=/usr
/local
8764 test_prefix
=$exec_prefix
8767 case ${iconv_bin} in
8768 "${test_prefix}"|
"${test_prefix}/"*|\
8769 '${exec_prefix}'|
'${exec_prefix}/'*)
8774 cat >>confdefs.h
<<_ACEOF
8775 #define ICONV_BIN_RELOCATABLE $value
8783 # For the TUI, we need enhanced curses functionality.
8784 if test x
"$enable_tui" != xno
; then
8789 if test x
"$prefer_curses" = xyes
; then
8790 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8791 # curses library because the latter might not provide all the
8792 # functionality we need. However, this leads to problems on systems
8793 # where the linker searches /usr/local/lib, but the compiler doesn't
8794 # search /usr/local/include, if ncurses is installed in /usr/local. A
8795 # default installation of ncurses on alpha*-dec-osf* will lead to such
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8798 $as_echo_n "checking for library containing waddstr... " >&6; }
8799 if ${ac_cv_search_waddstr+:} false
; then :
8800 $as_echo_n "(cached) " >&6
8802 ac_func_search_save_LIBS
=$LIBS
8803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8806 /* Override any GCC internal prototype to avoid an error.
8807 Use char because int might match the return type of a GCC
8808 builtin and then its argument prototype would still apply. */
8821 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8822 if test -z "$ac_lib"; then
8823 ac_res
="none required"
8826 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8828 if ac_fn_c_try_link
"$LINENO"; then :
8829 ac_cv_search_waddstr
=$ac_res
8831 rm -f core conftest.err conftest.
$ac_objext \
8833 if ${ac_cv_search_waddstr+:} false
; then :
8837 if ${ac_cv_search_waddstr+:} false
; then :
8840 ac_cv_search_waddstr
=no
8843 LIBS
=$ac_func_search_save_LIBS
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8846 $as_echo "$ac_cv_search_waddstr" >&6; }
8847 ac_res
=$ac_cv_search_waddstr
8848 if test "$ac_res" != no
; then :
8849 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8854 if test "$ac_cv_search_waddstr" != no
; then
8859 # Check whether we should enable the TUI, but only do so if we really
8861 if test x
"$enable_tui" != xno
; then
8862 if test -d $srcdir/tui
; then
8863 if test "$curses_found" != no
; then
8864 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8865 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8866 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8867 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8869 if test x
"$enable_tui" = xyes
; then
8870 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8873 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8879 # Since GDB uses Readline, we need termcap functionality. In many
8880 # cases this will be provided by the curses library, but some systems
8881 # have a separate termcap library, or no curses library at all.
8885 if test -d $srcdir/libtermcap
; then
8886 LIBS
="../libtermcap/libtermcap.a $LIBS"
8887 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
8890 ac_cv_search_tgetent
="none required"
8894 # These are the libraries checked by Readline.
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
8896 $as_echo_n "checking for library containing tgetent... " >&6; }
8897 if ${ac_cv_search_tgetent+:} false
; then :
8898 $as_echo_n "(cached) " >&6
8900 ac_func_search_save_LIBS
=$LIBS
8901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8904 /* Override any GCC internal prototype to avoid an error.
8905 Use char because int might match the return type of a GCC
8906 builtin and then its argument prototype would still apply. */
8919 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
8920 if test -z "$ac_lib"; then
8921 ac_res
="none required"
8924 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8926 if ac_fn_c_try_link
"$LINENO"; then :
8927 ac_cv_search_tgetent
=$ac_res
8929 rm -f core conftest.err conftest.
$ac_objext \
8931 if ${ac_cv_search_tgetent+:} false
; then :
8935 if ${ac_cv_search_tgetent+:} false
; then :
8938 ac_cv_search_tgetent
=no
8941 LIBS
=$ac_func_search_save_LIBS
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
8944 $as_echo "$ac_cv_search_tgetent" >&6; }
8945 ac_res
=$ac_cv_search_tgetent
8946 if test "$ac_res" != no
; then :
8947 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8952 if test "$ac_cv_search_tgetent" = no
; then
8953 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
8957 # Check whether --with-system-readline was given.
8958 if test "${with_system_readline+set}" = set; then :
8959 withval
=$with_system_readline;
8963 if test "$with_system_readline" = yes; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system readline is new enough" >&5
8965 $as_echo_n "checking whether system readline is new enough... " >&6; }
8966 if ${gdb_cv_readline_ok+:} false
; then :
8967 $as_echo_n "(cached) " >&6
8969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8972 #include <readline/readline.h>
8976 #if RL_VERSION_MAJOR < 7
8977 # error "readline version 7 required"
8983 if ac_fn_c_try_compile
"$LINENO"; then :
8984 gdb_cv_readline_ok
=yes
8986 gdb_cv_readline_ok
=no
8988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_readline_ok" >&5
8991 $as_echo "$gdb_cv_readline_ok" >&6; }
8992 if test "$gdb_cv_readline_ok" != yes; then
8993 as_fn_error $?
"system readline is not new enough" "$LINENO" 5
8999 READLINE_TEXI_INCFLAG
=
9001 READLINE
='$(READLINE_DIR)/libreadline.a'
9002 READLINE_DEPS
='$(READLINE)'
9003 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9004 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9011 # Generate jit-reader.h
9013 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9016 # The cast to long int works around a bug in the HP C Compiler
9017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9019 # This bug is HP SR number 8606223364.
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9021 $as_echo_n "checking size of unsigned long long... " >&6; }
9022 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9023 $as_echo_n "(cached) " >&6
9025 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9028 if test "$ac_cv_type_unsigned_long_long" = yes; then
9029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9031 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9032 See \`config.log' for more details" "$LINENO" 5; }
9034 ac_cv_sizeof_unsigned_long_long
=0
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9040 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9044 cat >>confdefs.h
<<_ACEOF
9045 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9049 # The cast to long int works around a bug in the HP C Compiler
9050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9052 # This bug is HP SR number 8606223364.
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9054 $as_echo_n "checking size of unsigned long... " >&6; }
9055 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9056 $as_echo_n "(cached) " >&6
9058 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9061 if test "$ac_cv_type_unsigned_long" = yes; then
9062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9064 as_fn_error
77 "cannot compute sizeof (unsigned long)
9065 See \`config.log' for more details" "$LINENO" 5; }
9067 ac_cv_sizeof_unsigned_long
=0
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9073 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9077 cat >>confdefs.h
<<_ACEOF
9078 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9082 # The cast to long int works around a bug in the HP C Compiler
9083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9085 # This bug is HP SR number 8606223364.
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9087 $as_echo_n "checking size of unsigned __int128... " >&6; }
9088 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9089 $as_echo_n "(cached) " >&6
9091 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9094 if test "$ac_cv_type_unsigned___int128" = yes; then
9095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9097 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9098 See \`config.log' for more details" "$LINENO" 5; }
9100 ac_cv_sizeof_unsigned___int128
=0
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9106 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9110 cat >>confdefs.h
<<_ACEOF
9111 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9116 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9117 TARGET_PTR
="unsigned long"
9118 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9119 TARGET_PTR
="unsigned long long"
9120 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9121 TARGET_PTR
="unsigned __int128"
9123 TARGET_PTR
="unsigned long"
9127 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9131 $as_echo_n "checking for library containing dlopen... " >&6; }
9132 if ${ac_cv_search_dlopen+:} false
; then :
9133 $as_echo_n "(cached) " >&6
9135 ac_func_search_save_LIBS
=$LIBS
9136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9137 /* end confdefs.h. */
9139 /* Override any GCC internal prototype to avoid an error.
9140 Use char because int might match the return type of a GCC
9141 builtin and then its argument prototype would still apply. */
9154 for ac_lib
in '' dl
; do
9155 if test -z "$ac_lib"; then
9156 ac_res
="none required"
9159 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9161 if ac_fn_c_try_link
"$LINENO"; then :
9162 ac_cv_search_dlopen
=$ac_res
9164 rm -f core conftest.err conftest.
$ac_objext \
9166 if ${ac_cv_search_dlopen+:} false
; then :
9170 if ${ac_cv_search_dlopen+:} false
; then :
9173 ac_cv_search_dlopen
=no
9176 LIBS
=$ac_func_search_save_LIBS
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9179 $as_echo "$ac_cv_search_dlopen" >&6; }
9180 ac_res
=$ac_cv_search_dlopen
9181 if test "$ac_res" != no
; then :
9182 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9189 # Check whether --with-jit-reader-dir was given.
9190 if test "${with_jit_reader_dir+set}" = set; then :
9191 withval
=$with_jit_reader_dir;
9192 JIT_READER_DIR
=$withval
9194 JIT_READER_DIR
=${libdir}/gdb
9198 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9199 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9200 ac_define_dir
=`eval echo $JIT_READER_DIR`
9201 ac_define_dir
=`eval echo $ac_define_dir`
9203 cat >>confdefs.h
<<_ACEOF
9204 #define JIT_READER_DIR "$ac_define_dir"
9210 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9211 if test "x$prefix" = xNONE
; then
9212 test_prefix
=/usr
/local
9217 test_prefix
=$exec_prefix
9220 case ${ac_define_dir} in
9221 "${test_prefix}"|
"${test_prefix}/"*|\
9222 '${exec_prefix}'|
'${exec_prefix}/'*)
9227 cat >>confdefs.h
<<_ACEOF
9228 #define JIT_READER_DIR_RELOCATABLE $value
9235 # Check whether --with-expat was given.
9236 if test "${with_expat+set}" = set; then :
9237 withval
=$with_expat;
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9243 $as_echo_n "checking whether to use expat... " >&6; }
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9245 $as_echo "$with_expat" >&6; }
9247 if test "${with_expat}" = no
; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9249 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9262 acl_save_prefix
="$prefix"
9263 prefix
="$acl_final_prefix"
9264 acl_save_exec_prefix
="$exec_prefix"
9265 exec_prefix
="$acl_final_exec_prefix"
9267 eval additional_includedir
=\"$includedir\"
9268 eval additional_libdir
=\"$libdir\"
9270 exec_prefix
="$acl_save_exec_prefix"
9271 prefix
="$acl_save_prefix"
9274 # Check whether --with-libexpat-prefix was given.
9275 if test "${with_libexpat_prefix+set}" = set; then :
9276 withval
=$with_libexpat_prefix;
9277 if test "X$withval" = "Xno"; then
9280 if test "X$withval" = "X"; then
9282 acl_save_prefix
="$prefix"
9283 prefix
="$acl_final_prefix"
9284 acl_save_exec_prefix
="$exec_prefix"
9285 exec_prefix
="$acl_final_exec_prefix"
9287 eval additional_includedir
=\"$includedir\"
9288 eval additional_libdir
=\"$libdir\"
9290 exec_prefix
="$acl_save_exec_prefix"
9291 prefix
="$acl_save_prefix"
9294 additional_includedir
="$withval/include"
9295 additional_libdir
="$withval/lib"
9306 names_already_handled
=
9307 names_next_round
='expat '
9308 while test -n "$names_next_round"; do
9309 names_this_round
="$names_next_round"
9311 for name
in $names_this_round; do
9313 for n
in $names_already_handled; do
9314 if test "$n" = "$name"; then
9319 if test -z "$already_handled"; then
9320 names_already_handled
="$names_already_handled $name"
9321 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9322 eval value
=\"\
$HAVE_LIB$uppername\"
9323 if test -n "$value"; then
9324 if test "$value" = yes; then
9325 eval value
=\"\
$LIB$uppername\"
9326 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9327 eval value
=\"\
$LTLIB$uppername\"
9328 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9337 if test $use_additional = yes; then
9338 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9339 found_dir
="$additional_libdir"
9340 found_so
="$additional_libdir/lib$name.$shlibext"
9341 if test -f "$additional_libdir/lib$name.la"; then
9342 found_la
="$additional_libdir/lib$name.la"
9345 if test -f "$additional_libdir/lib$name.$libext"; then
9346 found_dir
="$additional_libdir"
9347 found_a
="$additional_libdir/lib$name.$libext"
9348 if test -f "$additional_libdir/lib$name.la"; then
9349 found_la
="$additional_libdir/lib$name.la"
9354 if test "X$found_dir" = "X"; then
9355 for x
in $LDFLAGS $LTLIBEXPAT; do
9357 acl_save_prefix
="$prefix"
9358 prefix
="$acl_final_prefix"
9359 acl_save_exec_prefix
="$exec_prefix"
9360 exec_prefix
="$acl_final_exec_prefix"
9362 exec_prefix
="$acl_save_exec_prefix"
9363 prefix
="$acl_save_prefix"
9367 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9368 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9370 found_so
="$dir/lib$name.$shlibext"
9371 if test -f "$dir/lib$name.la"; then
9372 found_la
="$dir/lib$name.la"
9375 if test -f "$dir/lib$name.$libext"; then
9377 found_a
="$dir/lib$name.$libext"
9378 if test -f "$dir/lib$name.la"; then
9379 found_la
="$dir/lib$name.la"
9385 if test "X$found_dir" != "X"; then
9390 if test "X$found_dir" != "X"; then
9391 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9392 if test "X$found_so" != "X"; then
9393 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9394 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9397 for x
in $ltrpathdirs; do
9398 if test "X$x" = "X$found_dir"; then
9403 if test -z "$haveit"; then
9404 ltrpathdirs
="$ltrpathdirs $found_dir"
9406 if test "$hardcode_direct" = yes; then
9407 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9409 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9410 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9412 for x
in $rpathdirs; do
9413 if test "X$x" = "X$found_dir"; then
9418 if test -z "$haveit"; then
9419 rpathdirs
="$rpathdirs $found_dir"
9423 for x
in $LDFLAGS $LIBEXPAT; do
9425 acl_save_prefix
="$prefix"
9426 prefix
="$acl_final_prefix"
9427 acl_save_exec_prefix
="$exec_prefix"
9428 exec_prefix
="$acl_final_exec_prefix"
9430 exec_prefix
="$acl_save_exec_prefix"
9431 prefix
="$acl_save_prefix"
9433 if test "X$x" = "X-L$found_dir"; then
9438 if test -z "$haveit"; then
9439 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9441 if test "$hardcode_minus_L" != no
; then
9442 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9444 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9450 if test "X$found_a" != "X"; then
9451 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9453 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9456 additional_includedir
=
9457 case "$found_dir" in
9459 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9460 additional_includedir
="$basedir/include"
9463 if test "X$additional_includedir" != "X"; then
9464 if test "X$additional_includedir" != "X/usr/include"; then
9466 if test "X$additional_includedir" = "X/usr/local/include"; then
9467 if test -n "$GCC"; then
9469 linux
*) haveit
=yes;;
9473 if test -z "$haveit"; then
9474 for x
in $CPPFLAGS $INCEXPAT; do
9476 acl_save_prefix
="$prefix"
9477 prefix
="$acl_final_prefix"
9478 acl_save_exec_prefix
="$exec_prefix"
9479 exec_prefix
="$acl_final_exec_prefix"
9481 exec_prefix
="$acl_save_exec_prefix"
9482 prefix
="$acl_save_prefix"
9484 if test "X$x" = "X-I$additional_includedir"; then
9489 if test -z "$haveit"; then
9490 if test -d "$additional_includedir"; then
9491 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9497 if test -n "$found_la"; then
9498 save_libdir
="$libdir"
9500 */* |
*\\*) .
"$found_la" ;;
9501 *) .
"./$found_la" ;;
9503 libdir
="$save_libdir"
9504 for dep
in $dependency_libs; do
9507 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9508 if test "X$additional_libdir" != "X/usr/lib"; then
9510 if test "X$additional_libdir" = "X/usr/local/lib"; then
9511 if test -n "$GCC"; then
9513 linux
*) haveit
=yes;;
9517 if test -z "$haveit"; then
9519 for x
in $LDFLAGS $LIBEXPAT; do
9521 acl_save_prefix
="$prefix"
9522 prefix
="$acl_final_prefix"
9523 acl_save_exec_prefix
="$exec_prefix"
9524 exec_prefix
="$acl_final_exec_prefix"
9526 exec_prefix
="$acl_save_exec_prefix"
9527 prefix
="$acl_save_prefix"
9529 if test "X$x" = "X-L$additional_libdir"; then
9534 if test -z "$haveit"; then
9535 if test -d "$additional_libdir"; then
9536 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9540 for x
in $LDFLAGS $LTLIBEXPAT; do
9542 acl_save_prefix
="$prefix"
9543 prefix
="$acl_final_prefix"
9544 acl_save_exec_prefix
="$exec_prefix"
9545 exec_prefix
="$acl_final_exec_prefix"
9547 exec_prefix
="$acl_save_exec_prefix"
9548 prefix
="$acl_save_prefix"
9550 if test "X$x" = "X-L$additional_libdir"; then
9555 if test -z "$haveit"; then
9556 if test -d "$additional_libdir"; then
9557 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9564 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9565 if test "$enable_rpath" != no
; then
9567 for x
in $rpathdirs; do
9568 if test "X$x" = "X$dir"; then
9573 if test -z "$haveit"; then
9574 rpathdirs
="$rpathdirs $dir"
9577 for x
in $ltrpathdirs; do
9578 if test "X$x" = "X$dir"; then
9583 if test -z "$haveit"; then
9584 ltrpathdirs
="$ltrpathdirs $dir"
9589 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9592 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9595 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9596 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9602 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9603 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9609 if test "X$rpathdirs" != "X"; then
9610 if test -n "$hardcode_libdir_separator"; then
9612 for found_dir
in $rpathdirs; do
9613 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9615 acl_save_libdir
="$libdir"
9617 eval flag
=\"$hardcode_libdir_flag_spec\"
9618 libdir
="$acl_save_libdir"
9619 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9621 for found_dir
in $rpathdirs; do
9622 acl_save_libdir
="$libdir"
9624 eval flag
=\"$hardcode_libdir_flag_spec\"
9625 libdir
="$acl_save_libdir"
9626 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9630 if test "X$ltrpathdirs" != "X"; then
9631 for found_dir
in $ltrpathdirs; do
9632 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9637 ac_save_CPPFLAGS
="$CPPFLAGS"
9639 for element
in $INCEXPAT; do
9641 for x
in $CPPFLAGS; do
9643 acl_save_prefix
="$prefix"
9644 prefix
="$acl_final_prefix"
9645 acl_save_exec_prefix
="$exec_prefix"
9646 exec_prefix
="$acl_final_exec_prefix"
9648 exec_prefix
="$acl_save_exec_prefix"
9649 prefix
="$acl_save_prefix"
9651 if test "X$x" = "X$element"; then
9656 if test -z "$haveit"; then
9657 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9663 $as_echo_n "checking for libexpat... " >&6; }
9664 if ${ac_cv_libexpat+:} false
; then :
9665 $as_echo_n "(cached) " >&6
9668 ac_save_LIBS
="$LIBS"
9669 LIBS
="$LIBS $LIBEXPAT"
9670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9676 XML_Parser p = XML_ParserCreate (0);
9681 if ac_fn_c_try_link
"$LINENO"; then :
9686 rm -f core conftest.err conftest.
$ac_objext \
9687 conftest
$ac_exeext conftest.
$ac_ext
9688 LIBS
="$ac_save_LIBS"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9692 $as_echo "$ac_cv_libexpat" >&6; }
9693 if test "$ac_cv_libexpat" = yes; then
9696 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9699 $as_echo_n "checking how to link with libexpat... " >&6; }
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9701 $as_echo "$LIBEXPAT" >&6; }
9704 CPPFLAGS
="$ac_save_CPPFLAGS"
9714 if test "$HAVE_LIBEXPAT" != yes; then
9715 if test "$with_expat" = yes; then
9716 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9719 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9723 LIBS
="$LIBS $LIBEXPAT"
9724 for ac_func
in XML_StopParser
9726 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9727 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9728 cat >>confdefs.h
<<_ACEOF
9729 #define HAVE_XML_STOPPARSER 1
9740 # Check whether --with-mpfr was given.
9741 if test "${with_mpfr+set}" = set; then :
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9748 $as_echo_n "checking whether to use MPFR... " >&6; }
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9750 $as_echo "$with_mpfr" >&6; }
9752 if test "${with_mpfr}" = no
; then
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9754 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9767 acl_save_prefix
="$prefix"
9768 prefix
="$acl_final_prefix"
9769 acl_save_exec_prefix
="$exec_prefix"
9770 exec_prefix
="$acl_final_exec_prefix"
9772 eval additional_includedir
=\"$includedir\"
9773 eval additional_libdir
=\"$libdir\"
9775 exec_prefix
="$acl_save_exec_prefix"
9776 prefix
="$acl_save_prefix"
9779 # Check whether --with-libmpfr-prefix was given.
9780 if test "${with_libmpfr_prefix+set}" = set; then :
9781 withval
=$with_libmpfr_prefix;
9782 if test "X$withval" = "Xno"; then
9785 if test "X$withval" = "X"; then
9787 acl_save_prefix
="$prefix"
9788 prefix
="$acl_final_prefix"
9789 acl_save_exec_prefix
="$exec_prefix"
9790 exec_prefix
="$acl_final_exec_prefix"
9792 eval additional_includedir
=\"$includedir\"
9793 eval additional_libdir
=\"$libdir\"
9795 exec_prefix
="$acl_save_exec_prefix"
9796 prefix
="$acl_save_prefix"
9799 additional_includedir
="$withval/include"
9800 additional_libdir
="$withval/lib"
9811 names_already_handled
=
9812 names_next_round
='mpfr gmp'
9813 while test -n "$names_next_round"; do
9814 names_this_round
="$names_next_round"
9816 for name
in $names_this_round; do
9818 for n
in $names_already_handled; do
9819 if test "$n" = "$name"; then
9824 if test -z "$already_handled"; then
9825 names_already_handled
="$names_already_handled $name"
9826 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9827 eval value
=\"\
$HAVE_LIB$uppername\"
9828 if test -n "$value"; then
9829 if test "$value" = yes; then
9830 eval value
=\"\
$LIB$uppername\"
9831 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9832 eval value
=\"\
$LTLIB$uppername\"
9833 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9842 if test $use_additional = yes; then
9843 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9844 found_dir
="$additional_libdir"
9845 found_so
="$additional_libdir/lib$name.$shlibext"
9846 if test -f "$additional_libdir/lib$name.la"; then
9847 found_la
="$additional_libdir/lib$name.la"
9850 if test -f "$additional_libdir/lib$name.$libext"; then
9851 found_dir
="$additional_libdir"
9852 found_a
="$additional_libdir/lib$name.$libext"
9853 if test -f "$additional_libdir/lib$name.la"; then
9854 found_la
="$additional_libdir/lib$name.la"
9859 if test "X$found_dir" = "X"; then
9860 for x
in $LDFLAGS $LTLIBMPFR; do
9862 acl_save_prefix
="$prefix"
9863 prefix
="$acl_final_prefix"
9864 acl_save_exec_prefix
="$exec_prefix"
9865 exec_prefix
="$acl_final_exec_prefix"
9867 exec_prefix
="$acl_save_exec_prefix"
9868 prefix
="$acl_save_prefix"
9872 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9873 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9875 found_so
="$dir/lib$name.$shlibext"
9876 if test -f "$dir/lib$name.la"; then
9877 found_la
="$dir/lib$name.la"
9880 if test -f "$dir/lib$name.$libext"; then
9882 found_a
="$dir/lib$name.$libext"
9883 if test -f "$dir/lib$name.la"; then
9884 found_la
="$dir/lib$name.la"
9890 if test "X$found_dir" != "X"; then
9895 if test "X$found_dir" != "X"; then
9896 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9897 if test "X$found_so" != "X"; then
9898 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9899 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9902 for x
in $ltrpathdirs; do
9903 if test "X$x" = "X$found_dir"; then
9908 if test -z "$haveit"; then
9909 ltrpathdirs
="$ltrpathdirs $found_dir"
9911 if test "$hardcode_direct" = yes; then
9912 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9914 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9915 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9917 for x
in $rpathdirs; do
9918 if test "X$x" = "X$found_dir"; then
9923 if test -z "$haveit"; then
9924 rpathdirs
="$rpathdirs $found_dir"
9928 for x
in $LDFLAGS $LIBMPFR; do
9930 acl_save_prefix
="$prefix"
9931 prefix
="$acl_final_prefix"
9932 acl_save_exec_prefix
="$exec_prefix"
9933 exec_prefix
="$acl_final_exec_prefix"
9935 exec_prefix
="$acl_save_exec_prefix"
9936 prefix
="$acl_save_prefix"
9938 if test "X$x" = "X-L$found_dir"; then
9943 if test -z "$haveit"; then
9944 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
9946 if test "$hardcode_minus_L" != no
; then
9947 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9949 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
9955 if test "X$found_a" != "X"; then
9956 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
9958 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
9961 additional_includedir
=
9962 case "$found_dir" in
9964 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9965 additional_includedir
="$basedir/include"
9968 if test "X$additional_includedir" != "X"; then
9969 if test "X$additional_includedir" != "X/usr/include"; then
9971 if test "X$additional_includedir" = "X/usr/local/include"; then
9972 if test -n "$GCC"; then
9974 linux
*) haveit
=yes;;
9978 if test -z "$haveit"; then
9979 for x
in $CPPFLAGS $INCMPFR; do
9981 acl_save_prefix
="$prefix"
9982 prefix
="$acl_final_prefix"
9983 acl_save_exec_prefix
="$exec_prefix"
9984 exec_prefix
="$acl_final_exec_prefix"
9986 exec_prefix
="$acl_save_exec_prefix"
9987 prefix
="$acl_save_prefix"
9989 if test "X$x" = "X-I$additional_includedir"; then
9994 if test -z "$haveit"; then
9995 if test -d "$additional_includedir"; then
9996 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10002 if test -n "$found_la"; then
10003 save_libdir
="$libdir"
10004 case "$found_la" in
10005 */* |
*\\*) .
"$found_la" ;;
10006 *) .
"./$found_la" ;;
10008 libdir
="$save_libdir"
10009 for dep
in $dependency_libs; do
10012 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10013 if test "X$additional_libdir" != "X/usr/lib"; then
10015 if test "X$additional_libdir" = "X/usr/local/lib"; then
10016 if test -n "$GCC"; then
10018 linux
*) haveit
=yes;;
10022 if test -z "$haveit"; then
10024 for x
in $LDFLAGS $LIBMPFR; do
10026 acl_save_prefix
="$prefix"
10027 prefix
="$acl_final_prefix"
10028 acl_save_exec_prefix
="$exec_prefix"
10029 exec_prefix
="$acl_final_exec_prefix"
10031 exec_prefix
="$acl_save_exec_prefix"
10032 prefix
="$acl_save_prefix"
10034 if test "X$x" = "X-L$additional_libdir"; then
10039 if test -z "$haveit"; then
10040 if test -d "$additional_libdir"; then
10041 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10045 for x
in $LDFLAGS $LTLIBMPFR; do
10047 acl_save_prefix
="$prefix"
10048 prefix
="$acl_final_prefix"
10049 acl_save_exec_prefix
="$exec_prefix"
10050 exec_prefix
="$acl_final_exec_prefix"
10052 exec_prefix
="$acl_save_exec_prefix"
10053 prefix
="$acl_save_prefix"
10055 if test "X$x" = "X-L$additional_libdir"; then
10060 if test -z "$haveit"; then
10061 if test -d "$additional_libdir"; then
10062 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10069 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10070 if test "$enable_rpath" != no
; then
10072 for x
in $rpathdirs; do
10073 if test "X$x" = "X$dir"; then
10078 if test -z "$haveit"; then
10079 rpathdirs
="$rpathdirs $dir"
10082 for x
in $ltrpathdirs; do
10083 if test "X$x" = "X$dir"; then
10088 if test -z "$haveit"; then
10089 ltrpathdirs
="$ltrpathdirs $dir"
10094 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10097 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10100 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10101 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10107 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10108 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10114 if test "X$rpathdirs" != "X"; then
10115 if test -n "$hardcode_libdir_separator"; then
10117 for found_dir
in $rpathdirs; do
10118 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10120 acl_save_libdir
="$libdir"
10122 eval flag
=\"$hardcode_libdir_flag_spec\"
10123 libdir
="$acl_save_libdir"
10124 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10126 for found_dir
in $rpathdirs; do
10127 acl_save_libdir
="$libdir"
10128 libdir
="$found_dir"
10129 eval flag
=\"$hardcode_libdir_flag_spec\"
10130 libdir
="$acl_save_libdir"
10131 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10135 if test "X$ltrpathdirs" != "X"; then
10136 for found_dir
in $ltrpathdirs; do
10137 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10142 ac_save_CPPFLAGS
="$CPPFLAGS"
10144 for element
in $INCMPFR; do
10146 for x
in $CPPFLAGS; do
10148 acl_save_prefix
="$prefix"
10149 prefix
="$acl_final_prefix"
10150 acl_save_exec_prefix
="$exec_prefix"
10151 exec_prefix
="$acl_final_exec_prefix"
10153 exec_prefix
="$acl_save_exec_prefix"
10154 prefix
="$acl_save_prefix"
10156 if test "X$x" = "X$element"; then
10161 if test -z "$haveit"; then
10162 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10168 $as_echo_n "checking for libmpfr... " >&6; }
10169 if ${ac_cv_libmpfr+:} false
; then :
10170 $as_echo_n "(cached) " >&6
10173 ac_save_LIBS
="$LIBS"
10174 LIBS
="$LIBS $LIBMPFR"
10175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10176 /* end confdefs.h. */
10181 mpfr_exp_t exp; mpfr_t x;
10182 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10187 if ac_fn_c_try_link
"$LINENO"; then :
10192 rm -f core conftest.err conftest.
$ac_objext \
10193 conftest
$ac_exeext conftest.
$ac_ext
10194 LIBS
="$ac_save_LIBS"
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10198 $as_echo "$ac_cv_libmpfr" >&6; }
10199 if test "$ac_cv_libmpfr" = yes; then
10202 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10205 $as_echo_n "checking how to link with libmpfr... " >&6; }
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10207 $as_echo "$LIBMPFR" >&6; }
10210 CPPFLAGS
="$ac_save_CPPFLAGS"
10220 if test "$HAVE_LIBMPFR" != yes; then
10221 if test "$with_mpfr" = yes; then
10222 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10225 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10230 # --------------------- #
10231 # Check for libpython. #
10232 # --------------------- #
10239 # Check whether --with-python was given.
10240 if test "${with_python+set}" = set; then :
10241 withval
=$with_python;
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10247 $as_echo_n "checking whether to use python... " >&6; }
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10249 $as_echo "$with_python" >&6; }
10251 if test "${with_python}" = no
; then
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10253 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10256 case "${with_python}" in
10258 if test -d ${with_python}; then
10259 # Assume the python binary is ${with_python}/bin/python.
10260 python_prog
="${with_python}/bin/python"
10262 # If python does not exit ${with_python}/bin, then try in
10263 # ${with_python}. On Windows/MinGW, this is where the Python
10265 if test ! -x "${python_prog}"; then
10266 python_prog
="${with_python}/python"
10269 if test ! -x "${python_prog}"; then
10270 # Fall back to gdb 7.0/7.1 behaviour.
10271 python_prog
=missing
10272 python_prefix
=${with_python}
10274 elif test -x "${with_python}"; then
10275 # While we can't run python compiled for $host (unless host == build),
10276 # the user could write a script that provides the needed information,
10277 # so we support that.
10278 python_prog
=${with_python}
10281 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10285 # Disallow --with-python=foo/bar.
10286 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10289 # The user has either specified auto, yes, or the name of the python
10290 # program assumed to be in $PATH.
10292 case "${with_python}" in
10294 if test ${build} = ${host}; then
10295 # Extract the first word of "python", so it can be a program name with args.
10296 set dummy python
; ac_word
=$2
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298 $as_echo_n "checking for $ac_word... " >&6; }
10299 if ${ac_cv_path_python_prog_path+:} false
; then :
10300 $as_echo_n "(cached) " >&6
10302 case $python_prog_path in
10304 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10308 for as_dir
in $PATH
10311 test -z "$as_dir" && as_dir
=.
10312 for ac_exec_ext
in '' $ac_executable_extensions; do
10313 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10314 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10322 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10326 python_prog_path
=$ac_cv_path_python_prog_path
10327 if test -n "$python_prog_path"; then
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10329 $as_echo "$python_prog_path" >&6; }
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10332 $as_echo "no" >&6; }
10336 if test "${python_prog_path}" = missing
; then
10337 python_prog
=missing
10339 python_prog
=${python_prog_path}
10342 # Not much we can do except assume the cross-compiler will find the
10344 python_prog
=missing
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}"
10352 # Extract the first word of "${python_prog}", so it can be a program name with args.
10353 set dummy
${python_prog}; ac_word
=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if ${ac_cv_path_python_prog_path+:} false
; then :
10357 $as_echo_n "(cached) " >&6
10359 case $python_prog_path in
10361 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10364 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10365 for as_dir
in $PATH
10368 test -z "$as_dir" && as_dir
=.
10369 for ac_exec_ext
in '' $ac_executable_extensions; do
10370 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10371 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10383 python_prog_path
=$ac_cv_path_python_prog_path
10384 if test -n "$python_prog_path"; then
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10386 $as_echo "$python_prog_path" >&6; }
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389 $as_echo "no" >&6; }
10393 if test "${python_prog_path}" = missing
; then
10394 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10400 if test "${python_prog}" != missing
; then
10401 # We have a python program to use, but it may be too old.
10402 # Don't flag an error for --with-python=auto (the default).
10403 have_python_config
=yes
10404 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10405 if test $?
!= 0; then
10406 have_python_config
=failed
10407 if test "${with_python}" != auto
; then
10408 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10411 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10412 if test $?
!= 0; then
10413 have_python_config
=failed
10414 if test "${with_python}" != auto
; then
10415 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10418 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10419 if test $?
!= 0; then
10420 have_python_config
=failed
10421 if test "${with_python}" != auto
; then
10422 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10426 # We do not have a python executable we can use to determine where
10427 # to find the Python headers and libs. We cannot guess the include
10428 # path from the python_prefix either, because that include path
10429 # depends on the Python version. So, there is nothing much we can
10430 # do except assume that the compiler will be able to find those files.
10433 have_python_config
=no
10436 # If we have python-config, only try the configuration it provides.
10437 # Otherwise fallback on the old way of trying different versions of
10441 if test "${have_python_config}" = yes; then
10442 # Determine the Python version by extracting "-lpython<version>"
10443 # part of the python_libs. <version> is usually X.Y with X and Y
10444 # being decimal numbers, but can also be XY (seen on Windows).
10446 # The extraction is performed using sed with a regular expression.
10447 # Initially, the regexp used was using the '?' quantifier to make
10448 # the dot in the version number optional. Unfortunately, this
10449 # does not work with non-GNU versions of sed because, because of
10450 # what looks like a limitation (the '?' quantifier does not work
10451 # with back-references). We work around this limitation by using
10452 # the '*' quantifier instead. It means that, in theory, we might
10453 # match unexpected version strings such as "-lpython2..7", but
10454 # this seems unlikely in practice. And even if that happens,
10455 # an error will be triggered later on, when checking that version
10457 python_version
=`echo " ${python_libs} " \
10458 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10459 case "${python_version}" in
10462 version
=${python_version}
10464 new_CPPFLAGS
=${python_includes}
10465 new_LIBS
=${python_libs}
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10467 $as_echo_n "checking for ${version}... " >&6; }
10468 save_CPPFLAGS
=$CPPFLAGS
10470 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10471 LIBS
="$new_LIBS $LIBS"
10472 found_usable_python
=no
10473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 #include "Python.h"
10484 if ac_fn_c_try_link
"$LINENO"; then :
10485 have_libpython
=${version}
10486 found_usable_python
=yes
10487 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10488 PYTHON_LIBS
=$new_LIBS
10490 rm -f core conftest.err conftest.
$ac_objext \
10491 conftest
$ac_exeext conftest.
$ac_ext
10492 CPPFLAGS
=$save_CPPFLAGS
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10495 $as_echo "${found_usable_python}" >&6; }
10499 as_fn_error $?
"unable to determine python version from ${python_libs}" "$LINENO" 5
10502 elif test "${have_python_config}" != failed
; then
10503 if test "${have_libpython}" = no
; then
10507 new_CPPFLAGS
=${python_includes}
10508 new_LIBS
="-lpython2.7 ${python_libs}"
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10510 $as_echo_n "checking for ${version}... " >&6; }
10511 save_CPPFLAGS
=$CPPFLAGS
10513 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10514 LIBS
="$new_LIBS $LIBS"
10515 found_usable_python
=no
10516 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518 #include "Python.h"
10527 if ac_fn_c_try_link
"$LINENO"; then :
10528 have_libpython
=${version}
10529 found_usable_python
=yes
10530 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10531 PYTHON_LIBS
=$new_LIBS
10533 rm -f core conftest.err conftest.
$ac_objext \
10534 conftest
$ac_exeext conftest.
$ac_ext
10535 CPPFLAGS
=$save_CPPFLAGS
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10538 $as_echo "${found_usable_python}" >&6; }
10541 if test "${have_libpython}" = no
; then
10545 new_CPPFLAGS
=${python_includes}
10546 new_LIBS
="-lpython2.6 ${python_libs}"
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10548 $as_echo_n "checking for ${version}... " >&6; }
10549 save_CPPFLAGS
=$CPPFLAGS
10551 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10552 LIBS
="$new_LIBS $LIBS"
10553 found_usable_python
=no
10554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556 #include "Python.h"
10565 if ac_fn_c_try_link
"$LINENO"; then :
10566 have_libpython
=${version}
10567 found_usable_python
=yes
10568 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10569 PYTHON_LIBS
=$new_LIBS
10571 rm -f core conftest.err conftest.
$ac_objext \
10572 conftest
$ac_exeext conftest.
$ac_ext
10573 CPPFLAGS
=$save_CPPFLAGS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10576 $as_echo "${found_usable_python}" >&6; }
10580 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10582 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10584 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10586 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10590 if test "${have_libpython}" = no
; then
10591 case "${with_python}" in
10593 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10597 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10600 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10604 if test -n "${python_prefix}"; then
10606 cat >>confdefs.h
<<_ACEOF
10607 #define WITH_PYTHON_PATH "${python_prefix}"
10611 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10612 if test "x$prefix" = xNONE
; then
10613 test_prefix
=/usr
/local
10615 test_prefix
=$prefix
10618 test_prefix
=$exec_prefix
10621 case ${python_prefix} in
10622 "${test_prefix}"|
"${test_prefix}/"*|\
10623 '${exec_prefix}'|
'${exec_prefix}/'*)
10628 cat >>confdefs.h
<<_ACEOF
10629 #define PYTHON_PATH_RELOCATABLE $value
10637 if test "${have_libpython}" != no
; then
10639 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10641 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10642 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10643 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10644 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10645 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10647 # Flags needed to compile Python code (taken from python-config --cflags).
10648 # We cannot call python-config directly because it will output whatever was
10649 # used when compiling the Python interpreter itself, including flags which
10650 # would make the python-related objects be compiled differently from the
10651 # rest of GDB (e.g., -O2 and -fPIC).
10652 if test "${GCC}" = yes; then
10653 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10654 # Python headers recommend -DNDEBUG, but it's unclear if that just
10655 # refers to building Python itself. In release mode, though, it
10656 # doesn't hurt for the Python code in gdb to follow.
10657 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10660 if test "x${tentative_python_cflags}" != x
; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10662 $as_echo_n "checking compiler flags for python code... " >&6; }
10663 for flag
in ${tentative_python_cflags}; do
10664 # Check that the compiler accepts it
10665 saved_CFLAGS
="$CFLAGS"
10666 CFLAGS
="$CFLAGS $flag"
10667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10668 /* end confdefs.h. */
10678 if ac_fn_c_try_compile
"$LINENO"; then :
10679 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10682 CFLAGS
="$saved_CFLAGS"
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10685 $as_echo "${PYTHON_CFLAGS}" >&6; }
10688 # On x64 Windows, Python's include headers, and pyconfig.h in
10689 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10690 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10691 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10692 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10693 # The issue was reported to the Python community, but still isn't
10694 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10696 case "$gdb_host" in
10698 if test "${GCC}" = yes; then
10699 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10704 # Note that "python -m threading" cannot be used to check for
10705 # threading support due to a bug in Python 2.7.3
10706 # (http://bugs.python.org/issue15567).
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10708 $as_echo_n "checking whether python supports threads... " >&6; }
10709 saved_CPPFLAGS
="${CPPFLAGS}"
10710 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10711 # Note that the test is reversed so that python_has_threads=yes on
10712 # unexpected failures.
10713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10716 #include <Python.h>
10722 if ac_fn_c_try_cpp
"$LINENO"; then :
10723 python_has_threads
=no
10725 python_has_threads
=yes
10727 rm -f conftest.err conftest.i conftest.
$ac_ext
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10729 $as_echo "${python_has_threads}" >&6; }
10730 CPPFLAGS
="${saved_CPPFLAGS}"
10732 # Even if Python support is not compiled in, we need to have this file
10733 # included so that the "python" command, et.al., still exists.
10734 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10735 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10738 # Work around Python http://bugs.python.org/issue10112. See also
10739 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10740 # no effect. Note that the only test after this that uses Python is
10741 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10742 # run without -export-dynamic too.
10743 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10748 if test "${have_libpython}" != no
; then
10750 HAVE_PYTHON_FALSE
='#'
10752 HAVE_PYTHON_TRUE
='#'
10757 # -------------------- #
10758 # Check for libguile. #
10759 # -------------------- #
10766 # Check whether --with-guile was given.
10767 if test "${with_guile+set}" = set; then :
10768 withval
=$with_guile;
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10774 $as_echo_n "checking whether to use guile... " >&6; }
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10776 $as_echo "$with_guile" >&6; }
10778 # Extract the first word of "pkg-config", so it can be a program name with args.
10779 set dummy pkg-config
; ac_word
=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10783 $as_echo_n "(cached) " >&6
10785 case $pkg_config_prog_path in
10787 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10791 for as_dir
in $PATH
10794 test -z "$as_dir" && as_dir
=.
10795 for ac_exec_ext
in '' $ac_executable_extensions; do
10796 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10797 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10805 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10809 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10810 if test -n "$pkg_config_prog_path"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10812 $as_echo "$pkg_config_prog_path" >&6; }
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10820 try_guile_versions
="guile-2.0"
10822 case "${with_guile}" in
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10825 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10828 if test "${pkg_config_prog_path}" = "missing"; then
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10830 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
10833 pkg_config
=${pkg_config_prog_path}
10834 guile_version_list
=${try_guile_versions}
10837 found_usable_guile
=checking
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10839 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10840 for guile_version
in ${guile_version_list}; do
10841 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10842 if test $?
!= 0; then
10845 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10846 if test $?
!= 0; then
10847 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10849 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10850 if test $?
!= 0; then
10851 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10853 found_usable_guile
=${guile_version}
10856 if test "${found_usable_guile}" = "checking"; then
10857 if test "${flag_errors}" = "yes"; then
10858 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10860 found_usable_guile
=no
10863 if test "${found_usable_guile}" != no
; then
10864 save_CPPFLAGS
=$CPPFLAGS
10866 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10867 LIBS
="$LIBS $new_LIBS"
10868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 #include "libguile.h"
10879 if ac_fn_c_try_link
"$LINENO"; then :
10881 GUILE_CPPFLAGS
=$new_CPPFLAGS
10882 GUILE_LIBS
=$new_LIBS
10884 found_usable_guile
=no
10886 rm -f core conftest.err conftest.
$ac_objext \
10887 conftest
$ac_exeext conftest.
$ac_ext
10888 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10889 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
10891 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10896 CPPFLAGS
=$save_CPPFLAGS
10898 if test "${found_usable_guile}" = no
; then
10899 if test "${flag_errors}" = yes; then
10900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10902 as_fn_error $?
"linking guile version ${guile_version} test program failed
10903 See \`config.log' for more details" "$LINENO" 5; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10908 $as_echo "${found_usable_guile}" >&6; }
10913 if test "${pkg_config_prog_path}" = "missing"; then
10914 as_fn_error $?
"pkg-config not found" "$LINENO" 5
10917 pkg_config
=${pkg_config_prog_path}
10918 guile_version_list
=${try_guile_versions}
10921 found_usable_guile
=checking
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
10923 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
10924 for guile_version
in ${guile_version_list}; do
10925 ${pkg_config} --exists ${guile_version} 2>/dev
/null
10926 if test $?
!= 0; then
10929 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
10930 if test $?
!= 0; then
10931 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
10933 new_LIBS
=`${pkg_config} --libs ${guile_version}`
10934 if test $?
!= 0; then
10935 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
10937 found_usable_guile
=${guile_version}
10940 if test "${found_usable_guile}" = "checking"; then
10941 if test "${flag_errors}" = "yes"; then
10942 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
10944 found_usable_guile
=no
10947 if test "${found_usable_guile}" != no
; then
10948 save_CPPFLAGS
=$CPPFLAGS
10950 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10951 LIBS
="$LIBS $new_LIBS"
10952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10954 #include "libguile.h"
10963 if ac_fn_c_try_link
"$LINENO"; then :
10965 GUILE_CPPFLAGS
=$new_CPPFLAGS
10966 GUILE_LIBS
=$new_LIBS
10968 found_usable_guile
=no
10970 rm -f core conftest.err conftest.
$ac_objext \
10971 conftest
$ac_exeext conftest.
$ac_ext
10972 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
10973 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
10975 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
10980 CPPFLAGS
=$save_CPPFLAGS
10982 if test "${found_usable_guile}" = no
; then
10983 if test "${flag_errors}" = yes; then
10984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10986 as_fn_error $?
"linking guile version ${guile_version} test program failed
10987 See \`config.log' for more details" "$LINENO" 5; }
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
10992 $as_echo "${found_usable_guile}" >&6; }
10996 if test -x "${with_guile}"; then
10998 pkg_config
=${with_guile}
10999 guile_version_list
=${try_guile_versions}
11002 found_usable_guile
=checking
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11004 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11005 for guile_version
in ${guile_version_list}; do
11006 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11007 if test $?
!= 0; then
11010 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11011 if test $?
!= 0; then
11012 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11014 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11015 if test $?
!= 0; then
11016 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11018 found_usable_guile
=${guile_version}
11021 if test "${found_usable_guile}" = "checking"; then
11022 if test "${flag_errors}" = "yes"; then
11023 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11025 found_usable_guile
=no
11028 if test "${found_usable_guile}" != no
; then
11029 save_CPPFLAGS
=$CPPFLAGS
11031 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11032 LIBS
="$LIBS $new_LIBS"
11033 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035 #include "libguile.h"
11044 if ac_fn_c_try_link
"$LINENO"; then :
11046 GUILE_CPPFLAGS
=$new_CPPFLAGS
11047 GUILE_LIBS
=$new_LIBS
11049 found_usable_guile
=no
11051 rm -f core conftest.err conftest.
$ac_objext \
11052 conftest
$ac_exeext conftest.
$ac_ext
11053 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11054 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11056 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11061 CPPFLAGS
=$save_CPPFLAGS
11063 if test "${found_usable_guile}" = no
; then
11064 if test "${flag_errors}" = yes; then
11065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11067 as_fn_error $?
"linking guile version ${guile_version} test program failed
11068 See \`config.log' for more details" "$LINENO" 5; }
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11073 $as_echo "${found_usable_guile}" >&6; }
11076 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11080 # Disallow --with=guile="" and --with-guile=foo/bar.
11081 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11084 # A space separate list of guile versions to try, in order.
11085 if test "${pkg_config_prog_path}" = "missing"; then
11086 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11089 pkg_config
=${pkg_config_prog_path}
11090 guile_version_list
=${with_guile}
11093 found_usable_guile
=checking
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11095 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11096 for guile_version
in ${guile_version_list}; do
11097 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11098 if test $?
!= 0; then
11101 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11102 if test $?
!= 0; then
11103 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11105 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11106 if test $?
!= 0; then
11107 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11109 found_usable_guile
=${guile_version}
11112 if test "${found_usable_guile}" = "checking"; then
11113 if test "${flag_errors}" = "yes"; then
11114 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11116 found_usable_guile
=no
11119 if test "${found_usable_guile}" != no
; then
11120 save_CPPFLAGS
=$CPPFLAGS
11122 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11123 LIBS
="$LIBS $new_LIBS"
11124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11125 /* end confdefs.h. */
11126 #include "libguile.h"
11135 if ac_fn_c_try_link
"$LINENO"; then :
11137 GUILE_CPPFLAGS
=$new_CPPFLAGS
11138 GUILE_LIBS
=$new_LIBS
11140 found_usable_guile
=no
11142 rm -f core conftest.err conftest.
$ac_objext \
11143 conftest
$ac_exeext conftest.
$ac_ext
11144 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11145 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11147 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11152 CPPFLAGS
=$save_CPPFLAGS
11154 if test "${found_usable_guile}" = no
; then
11155 if test "${flag_errors}" = yes; then
11156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11158 as_fn_error $?
"linking guile version ${guile_version} test program failed
11159 See \`config.log' for more details" "$LINENO" 5; }
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11164 $as_echo "${found_usable_guile}" >&6; }
11169 if test "${have_libguile}" != no
; then
11170 case "${with_guile}" in
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11174 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11175 if ${ac_cv_guild_program_name+:} false
; then :
11176 $as_echo_n "(cached) " >&6
11178 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11180 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11181 # the 'guild' and 'bindir' variables. In that case, try to guess
11182 # what the program name is, at the risk of getting it wrong if
11183 # Guile was configured with '--program-suffix' or similar.
11184 if test "x$ac_cv_guild_program_name" = "x"; then
11185 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11186 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11191 $as_echo "$ac_cv_guild_program_name" >&6; }
11193 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11194 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11197 GUILD
="$ac_cv_guild_program_name"
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11204 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11205 if ${ac_cv_guild_program_name+:} false
; then :
11206 $as_echo_n "(cached) " >&6
11208 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11210 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11211 # the 'guild' and 'bindir' variables. In that case, try to guess
11212 # what the program name is, at the risk of getting it wrong if
11213 # Guile was configured with '--program-suffix' or similar.
11214 if test "x$ac_cv_guild_program_name" = "x"; then
11215 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11216 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11221 $as_echo "$ac_cv_guild_program_name" >&6; }
11223 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11224 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11227 GUILD
="$ac_cv_guild_program_name"
11234 if test "$cross_compiling" = no
; then
11237 GUILD_TARGET_FLAG
="--target=$host"
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11244 $as_echo_n "checking whether guild supports this host... " >&6; }
11245 if ${ac_cv_guild_ok+:} false
; then :
11246 $as_echo_n "(cached) " >&6
11248 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11249 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11256 $as_echo "$ac_cv_guild_ok" >&6; }
11258 if test "$ac_cv_guild_ok" = no
; then
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11261 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11265 if test "${have_libguile}" != no
; then
11267 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11269 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11270 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11271 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11272 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11273 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11276 save_CPPFLAGS
="$CPPFLAGS"
11278 CPPFLAGS
="$GUILE_CPPFLAGS"
11279 for ac_func
in scm_new_smob
11281 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11282 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11283 cat >>confdefs.h
<<_ACEOF
11284 #define HAVE_SCM_NEW_SMOB 1
11291 CPPFLAGS
="$save_CPPFLAGS"
11293 # Even if Guile support is not compiled in, we need to have these files
11295 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11296 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11300 if test "${have_libguile}" != no
; then
11302 HAVE_GUILE_FALSE
='#'
11304 HAVE_GUILE_TRUE
='#'
11309 # ---------------------------- #
11310 # Check for source highlight. #
11311 # ---------------------------- #
11316 # Check whether --enable-source-highlight was given.
11317 if test "${enable_source_highlight+set}" = set; then :
11318 enableval
=$enable_source_highlight; case "${enableval}" in
11319 yes) enable_source_highlight
=yes ;;
11320 no
) enable_source_highlight
=no
;;
11321 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11324 enable_source_highlight
=auto
11328 if test "${enable_source_highlight}" != "no"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11330 $as_echo_n "checking for the source-highlight library... " >&6; }
11331 if test "${pkg_config_prog_path}" = "missing"; then
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11333 $as_echo "no - pkg-config not found" >&6; }
11334 if test "${enable_source_highlight}" = "yes"; then
11335 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11340 as_fn_error $?
"source highlight is incompatible with -static-libstdc++; either use --disable-source-highlight or --without-static-standard-libraries" "$LINENO" 5
11344 if ${pkg_config_prog_path} --exists source-highlight
; then
11345 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11346 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11348 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351 $as_echo "yes" >&6; }
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11355 if test "${enable_source_highlight}" = "yes"; then
11356 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11365 # Check whether --with-intel_pt was given.
11366 if test "${with_intel_pt+set}" = set; then :
11367 withval
=$with_intel_pt;
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11373 $as_echo_n "checking whether to use intel pt... " >&6; }
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11375 $as_echo "$with_intel_pt" >&6; }
11377 if test "${with_intel_pt}" = no
; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11379 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11385 #include <linux/perf_event.h>
11386 #ifndef PERF_ATTR_SIZE_VER5
11391 if ac_fn_c_try_cpp
"$LINENO"; then :
11396 rm -f conftest.err conftest.i conftest.
$ac_ext
11397 if test "$perf_event" != yes; then
11398 if test "$with_intel_pt" = yes; then
11399 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11402 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11416 acl_save_prefix
="$prefix"
11417 prefix
="$acl_final_prefix"
11418 acl_save_exec_prefix
="$exec_prefix"
11419 exec_prefix
="$acl_final_exec_prefix"
11421 eval additional_includedir
=\"$includedir\"
11422 eval additional_libdir
=\"$libdir\"
11424 exec_prefix
="$acl_save_exec_prefix"
11425 prefix
="$acl_save_prefix"
11428 # Check whether --with-libipt-prefix was given.
11429 if test "${with_libipt_prefix+set}" = set; then :
11430 withval
=$with_libipt_prefix;
11431 if test "X$withval" = "Xno"; then
11434 if test "X$withval" = "X"; then
11436 acl_save_prefix
="$prefix"
11437 prefix
="$acl_final_prefix"
11438 acl_save_exec_prefix
="$exec_prefix"
11439 exec_prefix
="$acl_final_exec_prefix"
11441 eval additional_includedir
=\"$includedir\"
11442 eval additional_libdir
=\"$libdir\"
11444 exec_prefix
="$acl_save_exec_prefix"
11445 prefix
="$acl_save_prefix"
11448 additional_includedir
="$withval/include"
11449 additional_libdir
="$withval/lib"
11460 names_already_handled
=
11461 names_next_round
='ipt '
11462 while test -n "$names_next_round"; do
11463 names_this_round
="$names_next_round"
11465 for name
in $names_this_round; do
11467 for n
in $names_already_handled; do
11468 if test "$n" = "$name"; then
11469 already_handled
=yes
11473 if test -z "$already_handled"; then
11474 names_already_handled
="$names_already_handled $name"
11475 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11476 eval value
=\"\
$HAVE_LIB$uppername\"
11477 if test -n "$value"; then
11478 if test "$value" = yes; then
11479 eval value
=\"\
$LIB$uppername\"
11480 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11481 eval value
=\"\
$LTLIB$uppername\"
11482 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11491 if test $use_additional = yes; then
11492 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11493 found_dir
="$additional_libdir"
11494 found_so
="$additional_libdir/lib$name.$shlibext"
11495 if test -f "$additional_libdir/lib$name.la"; then
11496 found_la
="$additional_libdir/lib$name.la"
11499 if test -f "$additional_libdir/lib$name.$libext"; then
11500 found_dir
="$additional_libdir"
11501 found_a
="$additional_libdir/lib$name.$libext"
11502 if test -f "$additional_libdir/lib$name.la"; then
11503 found_la
="$additional_libdir/lib$name.la"
11508 if test "X$found_dir" = "X"; then
11509 for x
in $LDFLAGS $LTLIBIPT; do
11511 acl_save_prefix
="$prefix"
11512 prefix
="$acl_final_prefix"
11513 acl_save_exec_prefix
="$exec_prefix"
11514 exec_prefix
="$acl_final_exec_prefix"
11516 exec_prefix
="$acl_save_exec_prefix"
11517 prefix
="$acl_save_prefix"
11521 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11522 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11524 found_so
="$dir/lib$name.$shlibext"
11525 if test -f "$dir/lib$name.la"; then
11526 found_la
="$dir/lib$name.la"
11529 if test -f "$dir/lib$name.$libext"; then
11531 found_a
="$dir/lib$name.$libext"
11532 if test -f "$dir/lib$name.la"; then
11533 found_la
="$dir/lib$name.la"
11539 if test "X$found_dir" != "X"; then
11544 if test "X$found_dir" != "X"; then
11545 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11546 if test "X$found_so" != "X"; then
11547 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11548 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11551 for x
in $ltrpathdirs; do
11552 if test "X$x" = "X$found_dir"; then
11557 if test -z "$haveit"; then
11558 ltrpathdirs
="$ltrpathdirs $found_dir"
11560 if test "$hardcode_direct" = yes; then
11561 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11563 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11564 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11566 for x
in $rpathdirs; do
11567 if test "X$x" = "X$found_dir"; then
11572 if test -z "$haveit"; then
11573 rpathdirs
="$rpathdirs $found_dir"
11577 for x
in $LDFLAGS $LIBIPT; do
11579 acl_save_prefix
="$prefix"
11580 prefix
="$acl_final_prefix"
11581 acl_save_exec_prefix
="$exec_prefix"
11582 exec_prefix
="$acl_final_exec_prefix"
11584 exec_prefix
="$acl_save_exec_prefix"
11585 prefix
="$acl_save_prefix"
11587 if test "X$x" = "X-L$found_dir"; then
11592 if test -z "$haveit"; then
11593 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11595 if test "$hardcode_minus_L" != no
; then
11596 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11598 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11604 if test "X$found_a" != "X"; then
11605 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11607 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11610 additional_includedir
=
11611 case "$found_dir" in
11613 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11614 additional_includedir
="$basedir/include"
11617 if test "X$additional_includedir" != "X"; then
11618 if test "X$additional_includedir" != "X/usr/include"; then
11620 if test "X$additional_includedir" = "X/usr/local/include"; then
11621 if test -n "$GCC"; then
11623 linux
*) haveit
=yes;;
11627 if test -z "$haveit"; then
11628 for x
in $CPPFLAGS $INCIPT; do
11630 acl_save_prefix
="$prefix"
11631 prefix
="$acl_final_prefix"
11632 acl_save_exec_prefix
="$exec_prefix"
11633 exec_prefix
="$acl_final_exec_prefix"
11635 exec_prefix
="$acl_save_exec_prefix"
11636 prefix
="$acl_save_prefix"
11638 if test "X$x" = "X-I$additional_includedir"; then
11643 if test -z "$haveit"; then
11644 if test -d "$additional_includedir"; then
11645 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11651 if test -n "$found_la"; then
11652 save_libdir
="$libdir"
11653 case "$found_la" in
11654 */* |
*\\*) .
"$found_la" ;;
11655 *) .
"./$found_la" ;;
11657 libdir
="$save_libdir"
11658 for dep
in $dependency_libs; do
11661 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11662 if test "X$additional_libdir" != "X/usr/lib"; then
11664 if test "X$additional_libdir" = "X/usr/local/lib"; then
11665 if test -n "$GCC"; then
11667 linux
*) haveit
=yes;;
11671 if test -z "$haveit"; then
11673 for x
in $LDFLAGS $LIBIPT; do
11675 acl_save_prefix
="$prefix"
11676 prefix
="$acl_final_prefix"
11677 acl_save_exec_prefix
="$exec_prefix"
11678 exec_prefix
="$acl_final_exec_prefix"
11680 exec_prefix
="$acl_save_exec_prefix"
11681 prefix
="$acl_save_prefix"
11683 if test "X$x" = "X-L$additional_libdir"; then
11688 if test -z "$haveit"; then
11689 if test -d "$additional_libdir"; then
11690 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11694 for x
in $LDFLAGS $LTLIBIPT; do
11696 acl_save_prefix
="$prefix"
11697 prefix
="$acl_final_prefix"
11698 acl_save_exec_prefix
="$exec_prefix"
11699 exec_prefix
="$acl_final_exec_prefix"
11701 exec_prefix
="$acl_save_exec_prefix"
11702 prefix
="$acl_save_prefix"
11704 if test "X$x" = "X-L$additional_libdir"; then
11709 if test -z "$haveit"; then
11710 if test -d "$additional_libdir"; then
11711 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11718 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11719 if test "$enable_rpath" != no
; then
11721 for x
in $rpathdirs; do
11722 if test "X$x" = "X$dir"; then
11727 if test -z "$haveit"; then
11728 rpathdirs
="$rpathdirs $dir"
11731 for x
in $ltrpathdirs; do
11732 if test "X$x" = "X$dir"; then
11737 if test -z "$haveit"; then
11738 ltrpathdirs
="$ltrpathdirs $dir"
11743 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11746 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11749 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11750 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11756 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11757 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11763 if test "X$rpathdirs" != "X"; then
11764 if test -n "$hardcode_libdir_separator"; then
11766 for found_dir
in $rpathdirs; do
11767 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11769 acl_save_libdir
="$libdir"
11771 eval flag
=\"$hardcode_libdir_flag_spec\"
11772 libdir
="$acl_save_libdir"
11773 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11775 for found_dir
in $rpathdirs; do
11776 acl_save_libdir
="$libdir"
11777 libdir
="$found_dir"
11778 eval flag
=\"$hardcode_libdir_flag_spec\"
11779 libdir
="$acl_save_libdir"
11780 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11784 if test "X$ltrpathdirs" != "X"; then
11785 for found_dir
in $ltrpathdirs; do
11786 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11791 ac_save_CPPFLAGS
="$CPPFLAGS"
11793 for element
in $INCIPT; do
11795 for x
in $CPPFLAGS; do
11797 acl_save_prefix
="$prefix"
11798 prefix
="$acl_final_prefix"
11799 acl_save_exec_prefix
="$exec_prefix"
11800 exec_prefix
="$acl_final_exec_prefix"
11802 exec_prefix
="$acl_save_exec_prefix"
11803 prefix
="$acl_save_prefix"
11805 if test "X$x" = "X$element"; then
11810 if test -z "$haveit"; then
11811 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11817 $as_echo_n "checking for libipt... " >&6; }
11818 if ${ac_cv_libipt+:} false
; then :
11819 $as_echo_n "(cached) " >&6
11822 ac_save_LIBS
="$LIBS"
11823 LIBS
="$LIBS $LIBIPT"
11824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11826 #include "intel-pt.h"
11830 pt_insn_alloc_decoder (0);
11835 if ac_fn_c_try_link
"$LINENO"; then :
11840 rm -f core conftest.err conftest.
$ac_objext \
11841 conftest
$ac_exeext conftest.
$ac_ext
11842 LIBS
="$ac_save_LIBS"
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
11846 $as_echo "$ac_cv_libipt" >&6; }
11847 if test "$ac_cv_libipt" = yes; then
11850 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
11853 $as_echo_n "checking how to link with libipt... " >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
11855 $as_echo "$LIBIPT" >&6; }
11858 CPPFLAGS
="$ac_save_CPPFLAGS"
11868 if test "$HAVE_LIBIPT" != yes; then
11869 if test "$with_intel_pt" = yes; then
11870 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
11873 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
11877 LIBS
="$LIBS $LIBIPT"
11878 for ac_func
in pt_insn_event
11880 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
11881 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
11882 cat >>confdefs.h
<<_ACEOF
11883 #define HAVE_PT_INSN_EVENT 1
11889 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
11891 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
11893 cat >>confdefs.h
<<_ACEOF
11894 #define HAVE_STRUCT_PT_INSN_ENABLED 1
11899 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
11901 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
11903 cat >>confdefs.h
<<_ACEOF
11904 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
11914 # ------------------------- #
11915 # Checks for header files. #
11916 # ------------------------- #
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11919 $as_echo_n "checking for ANSI C header files... " >&6; }
11920 if ${ac_cv_header_stdc+:} false
; then :
11921 $as_echo_n "(cached) " >&6
11923 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925 #include <stdlib.h>
11926 #include <stdarg.h>
11927 #include <string.h>
11938 if ac_fn_c_try_compile
"$LINENO"; then :
11939 ac_cv_header_stdc
=yes
11941 ac_cv_header_stdc
=no
11943 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11945 if test $ac_cv_header_stdc = yes; then
11946 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11947 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949 #include <string.h>
11952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11953 $EGREP "memchr" >/dev
/null
2>&1; then :
11956 ac_cv_header_stdc
=no
11962 if test $ac_cv_header_stdc = yes; then
11963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #include <stdlib.h>
11969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11970 $EGREP "free" >/dev
/null
2>&1; then :
11973 ac_cv_header_stdc
=no
11979 if test $ac_cv_header_stdc = yes; then
11980 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11981 if test "$cross_compiling" = yes; then :
11984 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11985 /* end confdefs.h. */
11987 #include <stdlib.h>
11988 #if ((' ' & 0x0FF) == 0x020)
11989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11992 # define ISLOWER(c) \
11993 (('a' <= (c) && (c) <= 'i') \
11994 || ('j' <= (c) && (c) <= 'r') \
11995 || ('s' <= (c) && (c) <= 'z'))
11996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12004 for (i = 0; i < 256; i++)
12005 if (XOR (islower (i), ISLOWER (i))
12006 || toupper (i) != TOUPPER (i))
12011 if ac_fn_c_try_run
"$LINENO"; then :
12014 ac_cv_header_stdc
=no
12016 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12017 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12023 $as_echo "$ac_cv_header_stdc" >&6; }
12024 if test $ac_cv_header_stdc = yes; then
12026 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12030 # elf_hp.h is for HP/UX 64-bit shared library support.
12031 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12032 thread_db.h linux
/elf.h \
12033 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12034 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12035 sys
/reg.h sys
/debugreg.h sys
/select.h \
12038 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12039 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12040 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12041 cat >>confdefs.h
<<_ACEOF
12042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12049 for ac_header
in sys
/user.h
12051 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12052 # include <sys/param.h>
12056 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12057 cat >>confdefs.h
<<_ACEOF
12058 #define HAVE_SYS_USER_H 1
12066 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12068 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12069 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12070 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12071 cat >>confdefs.h
<<_ACEOF
12072 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12079 for ac_header
in term.h
12081 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12082 # include <curses.h>
12086 if test "x$ac_cv_header_term_h" = xyes
; then :
12087 cat >>confdefs.h
<<_ACEOF
12088 #define HAVE_TERM_H 1
12096 # ------------------------- #
12097 # Checks for declarations. #
12098 # ------------------------- #
12101 # Check for presence and size of long long.
12102 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12103 if test "x$ac_cv_type_long_long" = xyes
; then :
12105 cat >>confdefs.h
<<_ACEOF
12106 #define HAVE_LONG_LONG 1
12109 # The cast to long int works around a bug in the HP C Compiler
12110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12112 # This bug is HP SR number 8606223364.
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12114 $as_echo_n "checking size of long long... " >&6; }
12115 if ${ac_cv_sizeof_long_long+:} false
; then :
12116 $as_echo_n "(cached) " >&6
12118 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12121 if test "$ac_cv_type_long_long" = yes; then
12122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12124 as_fn_error
77 "cannot compute sizeof (long long)
12125 See \`config.log' for more details" "$LINENO" 5; }
12127 ac_cv_sizeof_long_long
=0
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12133 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12137 cat >>confdefs.h
<<_ACEOF
12138 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12145 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12146 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12147 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12153 cat >>confdefs.h
<<_ACEOF
12154 #define HAVE_DECL_BASENAME $ac_have_decl
12156 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12157 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12163 cat >>confdefs.h
<<_ACEOF
12164 #define HAVE_DECL_FFS $ac_have_decl
12166 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12167 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12173 cat >>confdefs.h
<<_ACEOF
12174 #define HAVE_DECL_ASPRINTF $ac_have_decl
12176 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12177 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12183 cat >>confdefs.h
<<_ACEOF
12184 #define HAVE_DECL_VASPRINTF $ac_have_decl
12186 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12187 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12193 cat >>confdefs.h
<<_ACEOF
12194 #define HAVE_DECL_SNPRINTF $ac_have_decl
12196 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12197 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12203 cat >>confdefs.h
<<_ACEOF
12204 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12207 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12208 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12214 cat >>confdefs.h
<<_ACEOF
12215 #define HAVE_DECL_STRTOL $ac_have_decl
12217 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12218 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12224 cat >>confdefs.h
<<_ACEOF
12225 #define HAVE_DECL_STRTOUL $ac_have_decl
12227 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12228 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12234 cat >>confdefs.h
<<_ACEOF
12235 #define HAVE_DECL_STRTOLL $ac_have_decl
12237 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12238 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12244 cat >>confdefs.h
<<_ACEOF
12245 #define HAVE_DECL_STRTOULL $ac_have_decl
12248 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12249 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12255 cat >>confdefs.h
<<_ACEOF
12256 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12261 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12262 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12268 cat >>confdefs.h
<<_ACEOF
12269 #define HAVE_DECL_SNPRINTF $ac_have_decl
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12274 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12275 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12276 $as_echo_n "(cached) " >&6
12278 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h. */
12280 #include <locale.h>
12289 if ac_fn_c_try_link
"$LINENO"; then :
12290 am_cv_val_LC_MESSAGES
=yes
12292 am_cv_val_LC_MESSAGES
=no
12294 rm -f core conftest.err conftest.
$ac_objext \
12295 conftest
$ac_exeext conftest.
$ac_ext
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12298 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12299 if test $am_cv_val_LC_MESSAGES = yes; then
12301 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12306 # ----------------------- #
12307 # Checks for structures. #
12308 # ----------------------- #
12310 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12311 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12313 cat >>confdefs.h
<<_ACEOF
12314 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12319 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12320 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12322 cat >>confdefs.h
<<_ACEOF
12323 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12330 # ------------------ #
12331 # Checks for types. #
12332 # ------------------ #
12334 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12335 #include <sys/socket.h>
12338 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12340 cat >>confdefs.h
<<_ACEOF
12341 #define HAVE_SOCKLEN_T 1
12348 # ------------------------------------- #
12349 # Checks for compiler characteristics. #
12350 # ------------------------------------- #
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12353 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12354 if ${ac_cv_c_const+:} false
; then :
12355 $as_echo_n "(cached) " >&6
12357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12364 #ifndef __cplusplus
12365 /* Ultrix mips cc rejects this sort of thing. */
12366 typedef int charset[2];
12367 const charset cs = { 0, 0 };
12368 /* SunOS 4.1.1 cc rejects this. */
12369 char const *const *pcpcc;
12371 /* NEC SVR4.0.2 mips cc rejects this. */
12372 struct point {int x, y;};
12373 static struct point const zero = {0,0};
12374 /* AIX XL C 1.02.0.0 rejects this.
12375 It does not let you subtract one const X* pointer from another in
12376 an arm of an if-expression whose if-part is not a constant
12378 const char *g = "string";
12379 pcpcc = &g + (g ? g-g : 0);
12380 /* HPUX 7.0 cc rejects these. */
12382 ppc = (char**) pcpcc;
12383 pcpcc = (char const *const *) ppc;
12384 { /* SCO 3.2v4 cc rejects this sort of thing. */
12387 char const *s = 0 ? (char *) 0 : (char const *) 0;
12392 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12393 int x[] = {25, 17};
12394 const int *foo = &x[0];
12397 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12398 typedef const int *iptr;
12402 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12403 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12404 struct s { int j; const int *ap[3]; } bx;
12405 struct s *b = &bx; b->j = 5;
12407 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12408 const int foo = 10;
12409 if (!foo) return 0;
12411 return !cs[0] && !zero.x;
12418 if ac_fn_c_try_compile
"$LINENO"; then :
12423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12426 $as_echo "$ac_cv_c_const" >&6; }
12427 if test $ac_cv_c_const = no
; then
12429 $as_echo "#define const /**/" >>confdefs.h
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12434 $as_echo_n "checking for inline... " >&6; }
12435 if ${ac_cv_c_inline+:} false
; then :
12436 $as_echo_n "(cached) " >&6
12439 for ac_kw
in inline __inline__ __inline
; do
12440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 #ifndef __cplusplus
12444 static $ac_kw foo_t static_foo () {return 0; }
12445 $ac_kw foo_t foo () {return 0; }
12449 if ac_fn_c_try_compile
"$LINENO"; then :
12450 ac_cv_c_inline
=$ac_kw
12452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12453 test "$ac_cv_c_inline" != no
&& break
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12458 $as_echo "$ac_cv_c_inline" >&6; }
12460 case $ac_cv_c_inline in
12463 case $ac_cv_c_inline in
12465 *) ac_val
=$ac_cv_c_inline;;
12467 cat >>confdefs.h
<<_ACEOF
12468 #ifndef __cplusplus
12469 #define inline $ac_val
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12476 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12477 if ${ac_cv_c_bigendian+:} false
; then :
12478 $as_echo_n "(cached) " >&6
12480 ac_cv_c_bigendian
=unknown
12481 # See if we're dealing with a universal compiler.
12482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12484 #ifndef __APPLE_CC__
12485 not a universal capable compiler
12490 if ac_fn_c_try_compile
"$LINENO"; then :
12492 # Check for potential -arch flags. It is not universal unless
12493 # there are at least two -arch flags with different values.
12496 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12497 if test -n "$ac_prev"; then
12499 i?
86 | x86_64 | ppc | ppc64
)
12500 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12503 ac_cv_c_bigendian
=universal
12509 elif test "x$ac_word" = "x-arch"; then
12514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12515 if test $ac_cv_c_bigendian = unknown
; then
12516 # See if sys/param.h defines the BYTE_ORDER macro.
12517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 #include <sys/types.h>
12520 #include <sys/param.h>
12525 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12526 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12528 bogus endian macros
12535 if ac_fn_c_try_compile
"$LINENO"; then :
12536 # It does; now see whether it defined to BIG_ENDIAN or not.
12537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h. */
12539 #include <sys/types.h>
12540 #include <sys/param.h>
12545 #if BYTE_ORDER != BIG_ENDIAN
12553 if ac_fn_c_try_compile
"$LINENO"; then :
12554 ac_cv_c_bigendian
=yes
12556 ac_cv_c_bigendian
=no
12558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12560 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12562 if test $ac_cv_c_bigendian = unknown
; then
12563 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12565 /* end confdefs.h. */
12566 #include <limits.h>
12571 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12572 bogus endian macros
12579 if ac_fn_c_try_compile
"$LINENO"; then :
12580 # It does; now see whether it defined to _BIG_ENDIAN or not.
12581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583 #include <limits.h>
12588 #ifndef _BIG_ENDIAN
12596 if ac_fn_c_try_compile
"$LINENO"; then :
12597 ac_cv_c_bigendian
=yes
12599 ac_cv_c_bigendian
=no
12601 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12605 if test $ac_cv_c_bigendian = unknown
; then
12606 # Compile a test program.
12607 if test "$cross_compiling" = yes; then :
12608 # Try to guess by grepping values from an object file.
12609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12611 short int ascii_mm[] =
12612 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12613 short int ascii_ii[] =
12614 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12615 int use_ascii (int i) {
12616 return ascii_mm[i] + ascii_ii[i];
12618 short int ebcdic_ii[] =
12619 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12620 short int ebcdic_mm[] =
12621 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12622 int use_ebcdic (int i) {
12623 return ebcdic_mm[i] + ebcdic_ii[i];
12630 return use_ascii (foo) == use_ebcdic (foo);
12635 if ac_fn_c_try_compile
"$LINENO"; then :
12636 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12637 ac_cv_c_bigendian
=yes
12639 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12640 if test "$ac_cv_c_bigendian" = unknown
; then
12641 ac_cv_c_bigendian
=no
12643 # finding both strings is unlikely to happen, but who knows?
12644 ac_cv_c_bigendian
=unknown
12648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12651 /* end confdefs.h. */
12652 $ac_includes_default
12657 /* Are we little or big endian? From Harbison&Steele. */
12661 char c[sizeof (long int)];
12664 return u.c[sizeof (long int) - 1] == 1;
12670 if ac_fn_c_try_run
"$LINENO"; then :
12671 ac_cv_c_bigendian
=no
12673 ac_cv_c_bigendian
=yes
12675 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12676 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12682 $as_echo "$ac_cv_c_bigendian" >&6; }
12683 case $ac_cv_c_bigendian in #(
12685 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12691 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12695 as_fn_error $?
"unknown endianness
12696 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12700 # ------------------------------ #
12701 # Checks for library functions. #
12702 # ------------------------------ #
12707 for ac_header
in $ac_header_list
12709 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12710 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12712 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12713 cat >>confdefs.h
<<_ACEOF
12714 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12728 for ac_func
in getpagesize
12730 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12731 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12732 cat >>confdefs.h
<<_ACEOF
12733 #define HAVE_GETPAGESIZE 1
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12740 $as_echo_n "checking for working mmap... " >&6; }
12741 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12742 $as_echo_n "(cached) " >&6
12744 if test "$cross_compiling" = yes; then :
12745 ac_cv_func_mmap_fixed_mapped
=no
12747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 $ac_includes_default
12750 /* malloc might have been renamed as rpl_malloc. */
12753 /* Thanks to Mike Haertel and Jim Avera for this test.
12754 Here is a matrix of mmap possibilities:
12755 mmap private not fixed
12756 mmap private fixed at somewhere currently unmapped
12757 mmap private fixed at somewhere already mapped
12758 mmap shared not fixed
12759 mmap shared fixed at somewhere currently unmapped
12760 mmap shared fixed at somewhere already mapped
12761 For private mappings, we should verify that changes cannot be read()
12762 back from the file, nor mmap's back from the file at a different
12763 address. (There have been systems where private was not correctly
12764 implemented like the infamous i386 svr4.0, and systems where the
12765 VM page cache was not coherent with the file system buffer cache
12766 like early versions of FreeBSD and possibly contemporary NetBSD.)
12767 For shared mappings, we should conversely verify that changes get
12768 propagated back to all the places they're supposed to be.
12770 Grep wants private fixed already mapped.
12771 The main things grep needs to know about mmap are:
12772 * does it exist and is it safe to write into the mmap'd area
12773 * how to use it (BSD variants) */
12776 #include <sys/mman.h>
12778 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12782 /* This mess was copied from the GNU getpagesize.h. */
12783 #ifndef HAVE_GETPAGESIZE
12784 # ifdef _SC_PAGESIZE
12785 # define getpagesize() sysconf(_SC_PAGESIZE)
12786 # else /* no _SC_PAGESIZE */
12787 # ifdef HAVE_SYS_PARAM_H
12788 # include <sys/param.h>
12789 # ifdef EXEC_PAGESIZE
12790 # define getpagesize() EXEC_PAGESIZE
12791 # else /* no EXEC_PAGESIZE */
12793 # define getpagesize() NBPG * CLSIZE
12796 # endif /* no CLSIZE */
12797 # else /* no NBPG */
12799 # define getpagesize() NBPC
12800 # else /* no NBPC */
12802 # define getpagesize() PAGESIZE
12803 # endif /* PAGESIZE */
12804 # endif /* no NBPC */
12805 # endif /* no NBPG */
12806 # endif /* no EXEC_PAGESIZE */
12807 # else /* no HAVE_SYS_PARAM_H */
12808 # define getpagesize() 8192 /* punt totally */
12809 # endif /* no HAVE_SYS_PARAM_H */
12810 # endif /* no _SC_PAGESIZE */
12812 #endif /* no HAVE_GETPAGESIZE */
12817 char *data, *data2, *data3;
12818 const char *cdata2;
12822 pagesize = getpagesize ();
12824 /* First, make a file with some known garbage in it. */
12825 data = (char *) malloc (pagesize);
12828 for (i = 0; i < pagesize; ++i)
12829 *(data + i) = rand ();
12831 fd = creat ("conftest.mmap", 0600);
12834 if (write (fd, data, pagesize) != pagesize)
12838 /* Next, check that the tail of a page is zero-filled. File must have
12839 non-zero length, otherwise we risk SIGBUS for entire page. */
12840 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12844 if (write (fd2, cdata2, 1) != 1)
12846 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12847 if (data2 == MAP_FAILED)
12849 for (i = 0; i < pagesize; ++i)
12853 if (munmap (data2, pagesize))
12856 /* Next, try to mmap the file at a fixed address which already has
12857 something else allocated at it. If we can, also make sure that
12858 we see the same garbage. */
12859 fd = open ("conftest.mmap", O_RDWR);
12862 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12863 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12865 for (i = 0; i < pagesize; ++i)
12866 if (*(data + i) != *(data2 + i))
12869 /* Finally, make sure that changes to the mapped area do not
12870 percolate back to the file as seen by read(). (This is a bug on
12871 some variants of i386 svr4.0.) */
12872 for (i = 0; i < pagesize; ++i)
12873 *(data2 + i) = *(data2 + i) + 1;
12874 data3 = (char *) malloc (pagesize);
12877 if (read (fd, data3, pagesize) != pagesize)
12879 for (i = 0; i < pagesize; ++i)
12880 if (*(data + i) != *(data3 + i))
12886 if ac_fn_c_try_run
"$LINENO"; then :
12887 ac_cv_func_mmap_fixed_mapped
=yes
12889 ac_cv_func_mmap_fixed_mapped
=no
12891 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12892 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12897 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12898 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12900 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12903 rm -f conftest.mmap conftest.txt
12905 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12906 if test "x$ac_cv_type_pid_t" = xyes
; then :
12910 cat >>confdefs.h
<<_ACEOF
12916 for ac_header
in vfork.h
12918 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12919 if test "x$ac_cv_header_vfork_h" = xyes
; then :
12920 cat >>confdefs.h
<<_ACEOF
12921 #define HAVE_VFORK_H 1
12928 for ac_func
in fork vfork
12930 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12931 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12932 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
12933 cat >>confdefs.h
<<_ACEOF
12934 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12940 if test "x$ac_cv_func_fork" = xyes
; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12942 $as_echo_n "checking for working fork... " >&6; }
12943 if ${ac_cv_func_fork_works+:} false
; then :
12944 $as_echo_n "(cached) " >&6
12946 if test "$cross_compiling" = yes; then :
12947 ac_cv_func_fork_works
=cross
12949 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951 $ac_includes_default
12956 /* By Ruediger Kuhlmann. */
12957 return fork () < 0;
12963 if ac_fn_c_try_run
"$LINENO"; then :
12964 ac_cv_func_fork_works
=yes
12966 ac_cv_func_fork_works
=no
12968 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12969 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
12974 $as_echo "$ac_cv_func_fork_works" >&6; }
12977 ac_cv_func_fork_works
=$ac_cv_func_fork
12979 if test "x$ac_cv_func_fork_works" = xcross
; then
12981 *-*-amigaos* |
*-*-msdosdjgpp*)
12982 # Override, as these systems have only a dummy fork() stub
12983 ac_cv_func_fork_works
=no
12986 ac_cv_func_fork_works
=yes
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12990 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12992 ac_cv_func_vfork_works
=$ac_cv_func_vfork
12993 if test "x$ac_cv_func_vfork" = xyes
; then
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
12995 $as_echo_n "checking for working vfork... " >&6; }
12996 if ${ac_cv_func_vfork_works+:} false
; then :
12997 $as_echo_n "(cached) " >&6
12999 if test "$cross_compiling" = yes; then :
13000 ac_cv_func_vfork_works
=cross
13002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004 /* Thanks to Paul Eggert for this test. */
13005 $ac_includes_default
13006 #include <sys/wait.h>
13007 #ifdef HAVE_VFORK_H
13008 # include <vfork.h>
13010 /* On some sparc systems, changes by the child to local and incoming
13011 argument registers are propagated back to the parent. The compiler
13012 is told about this with #include <vfork.h>, but some compilers
13013 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13014 static variable whose address is put into a register that is
13015 clobbered by the vfork. */
13018 sparc_address_test (int arg)
13020 sparc_address_test (arg) int arg;
13023 static pid_t child;
13041 pid_t parent = getpid ();
13044 sparc_address_test (0);
13049 /* Here is another test for sparc vfork register problems. This
13050 test uses lots of local variables, at least as many local
13051 variables as main has allocated so far including compiler
13052 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13053 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13054 reuse the register of parent for one of the local variables,
13055 since it will think that parent can't possibly be used any more
13056 in this routine. Assigning to the local variable will thus
13057 munge parent in the parent process. */
13059 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13060 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13061 /* Convince the compiler that p..p7 are live; otherwise, it might
13062 use the same hardware register for all 8 local variables. */
13063 if (p != p1 || p != p2 || p != p3 || p != p4
13064 || p != p5 || p != p6 || p != p7)
13067 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13068 from child file descriptors. If the child closes a descriptor
13069 before it execs or exits, this munges the parent's descriptor
13070 as well. Test for this by closing stdout in the child. */
13071 _exit(close(fileno(stdout)) != 0);
13076 while (wait(&status) != child)
13079 /* Was there some problem with vforking? */
13082 /* Did the child fail? (This shouldn't happen.) */
13085 /* Did the vfork/compiler bug occur? */
13086 || parent != getpid()
13088 /* Did the file descriptor bug occur? */
13089 || fstat(fileno(stdout), &st) != 0
13094 if ac_fn_c_try_run
"$LINENO"; then :
13095 ac_cv_func_vfork_works
=yes
13097 ac_cv_func_vfork_works
=no
13099 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13100 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13105 $as_echo "$ac_cv_func_vfork_works" >&6; }
13108 if test "x$ac_cv_func_fork_works" = xcross
; then
13109 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13111 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13114 if test "x$ac_cv_func_vfork_works" = xyes
; then
13116 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13120 $as_echo "#define vfork fork" >>confdefs.h
13123 if test "x$ac_cv_func_fork_works" = xyes
; then
13125 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13129 for ac_func
in getauxval getrusage getuid getgid \
13130 pipe poll pread pread64 pwrite resize_term \
13131 sbrk getpgid setpgid setpgrp setsid \
13132 sigaction sigsetmask socketpair \
13133 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13134 setrlimit getrlimit posix_madvise waitpid \
13135 ptrace64 sigaltstack setns use_default_colors
13137 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13138 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13139 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13140 cat >>confdefs.h
<<_ACEOF
13141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13149 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13150 if ${am_cv_langinfo_codeset+:} false
; then :
13151 $as_echo_n "(cached) " >&6
13153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13154 /* end confdefs.h. */
13155 #include <langinfo.h>
13159 char* cs = nl_langinfo(CODESET);
13164 if ac_fn_c_try_link
"$LINENO"; then :
13165 am_cv_langinfo_codeset
=yes
13167 am_cv_langinfo_codeset
=no
13169 rm -f core conftest.err conftest.
$ac_objext \
13170 conftest
$ac_exeext conftest.
$ac_ext
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13174 $as_echo "$am_cv_langinfo_codeset" >&6; }
13175 if test $am_cv_langinfo_codeset = yes; then
13177 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13181 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13182 if test "x$ac_cv_type_size_t" = xyes
; then :
13186 cat >>confdefs.h
<<_ACEOF
13187 #define size_t unsigned int
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13194 $as_echo_n "checking for ANSI C header files... " >&6; }
13195 if ${ac_cv_header_stdc+:} false
; then :
13196 $as_echo_n "(cached) " >&6
13198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200 #include <stdlib.h>
13201 #include <stdarg.h>
13202 #include <string.h>
13213 if ac_fn_c_try_compile
"$LINENO"; then :
13214 ac_cv_header_stdc
=yes
13216 ac_cv_header_stdc
=no
13218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13220 if test $ac_cv_header_stdc = yes; then
13221 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13223 /* end confdefs.h. */
13224 #include <string.h>
13227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13228 $EGREP "memchr" >/dev
/null
2>&1; then :
13231 ac_cv_header_stdc
=no
13237 if test $ac_cv_header_stdc = yes; then
13238 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241 #include <stdlib.h>
13244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13245 $EGREP "free" >/dev
/null
2>&1; then :
13248 ac_cv_header_stdc
=no
13254 if test $ac_cv_header_stdc = yes; then
13255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13256 if test "$cross_compiling" = yes; then :
13259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13260 /* end confdefs.h. */
13262 #include <stdlib.h>
13263 #if ((' ' & 0x0FF) == 0x020)
13264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13267 # define ISLOWER(c) \
13268 (('a' <= (c) && (c) <= 'i') \
13269 || ('j' <= (c) && (c) <= 'r') \
13270 || ('s' <= (c) && (c) <= 'z'))
13271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13279 for (i = 0; i < 256; i++)
13280 if (XOR (islower (i), ISLOWER (i))
13281 || toupper (i) != TOUPPER (i))
13286 if ac_fn_c_try_run
"$LINENO"; then :
13289 ac_cv_header_stdc
=no
13291 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13292 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13298 $as_echo "$ac_cv_header_stdc" >&6; }
13299 if test $ac_cv_header_stdc = yes; then
13301 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13305 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13306 # for constant arguments. Useless!
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13308 $as_echo_n "checking for working alloca.h... " >&6; }
13309 if ${ac_cv_working_alloca_h+:} false
; then :
13310 $as_echo_n "(cached) " >&6
13312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13313 /* end confdefs.h. */
13314 #include <alloca.h>
13318 char *p = (char *) alloca (2 * sizeof (int));
13324 if ac_fn_c_try_link
"$LINENO"; then :
13325 ac_cv_working_alloca_h
=yes
13327 ac_cv_working_alloca_h
=no
13329 rm -f core conftest.err conftest.
$ac_objext \
13330 conftest
$ac_exeext conftest.
$ac_ext
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13333 $as_echo "$ac_cv_working_alloca_h" >&6; }
13334 if test $ac_cv_working_alloca_h = yes; then
13336 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13341 $as_echo_n "checking for alloca... " >&6; }
13342 if ${ac_cv_func_alloca_works+:} false
; then :
13343 $as_echo_n "(cached) " >&6
13345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13346 /* end confdefs.h. */
13348 # define alloca __builtin_alloca
13351 # include <malloc.h>
13352 # define alloca _alloca
13354 # ifdef HAVE_ALLOCA_H
13355 # include <alloca.h>
13360 # ifndef alloca /* predefined by HP cc +Olibcalls */
13361 void *alloca (size_t);
13371 char *p = (char *) alloca (1);
13377 if ac_fn_c_try_link
"$LINENO"; then :
13378 ac_cv_func_alloca_works
=yes
13380 ac_cv_func_alloca_works
=no
13382 rm -f core conftest.err conftest.
$ac_objext \
13383 conftest
$ac_exeext conftest.
$ac_ext
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13386 $as_echo "$ac_cv_func_alloca_works" >&6; }
13388 if test $ac_cv_func_alloca_works = yes; then
13390 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13393 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13394 # that cause trouble. Some versions do not even contain alloca or
13395 # contain a buggy version. If you still want to use their alloca,
13396 # use ar to extract alloca.o from them instead of compiling alloca.c.
13398 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13400 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13404 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13405 if ${ac_cv_os_cray+:} false
; then :
13406 $as_echo_n "(cached) " >&6
13408 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410 #if defined CRAY && ! defined CRAY2
13417 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13418 $EGREP "webecray" >/dev
/null
2>&1; then :
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13427 $as_echo "$ac_cv_os_cray" >&6; }
13428 if test $ac_cv_os_cray = yes; then
13429 for ac_func
in _getb67 GETB67 getb67
; do
13430 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13431 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13432 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13434 cat >>confdefs.h
<<_ACEOF
13435 #define CRAY_STACKSEG_END $ac_func
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13445 $as_echo_n "checking stack direction for C alloca... " >&6; }
13446 if ${ac_cv_c_stack_direction+:} false
; then :
13447 $as_echo_n "(cached) " >&6
13449 if test "$cross_compiling" = yes; then :
13450 ac_cv_c_stack_direction
=0
13452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 $ac_includes_default
13456 find_stack_direction (int *addr, int depth)
13458 int dir, dummy = 0;
13461 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13462 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13463 return dir + dummy;
13467 main (int argc, char **argv)
13469 return find_stack_direction (0, argc + !argv + 20) < 0;
13472 if ac_fn_c_try_run
"$LINENO"; then :
13473 ac_cv_c_stack_direction
=1
13475 ac_cv_c_stack_direction
=-1
13477 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13478 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13483 $as_echo "$ac_cv_c_stack_direction" >&6; }
13484 cat >>confdefs.h
<<_ACEOF
13485 #define STACK_DIRECTION $ac_cv_c_stack_direction
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13494 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13495 if ${am_cv_langinfo_codeset+:} false
; then :
13496 $as_echo_n "(cached) " >&6
13498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500 #include <langinfo.h>
13504 char* cs = nl_langinfo(CODESET);
13509 if ac_fn_c_try_link
"$LINENO"; then :
13510 am_cv_langinfo_codeset
=yes
13512 am_cv_langinfo_codeset
=no
13514 rm -f core conftest.err conftest.
$ac_objext \
13515 conftest
$ac_exeext conftest.
$ac_ext
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13519 $as_echo "$am_cv_langinfo_codeset" >&6; }
13520 if test $am_cv_langinfo_codeset = yes; then
13522 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13527 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
13529 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13530 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13531 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13532 cat >>confdefs.h
<<_ACEOF
13533 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13541 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction \
13544 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13545 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13546 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13547 cat >>confdefs.h
<<_ACEOF
13548 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13555 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13556 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13562 cat >>confdefs.h
<<_ACEOF
13563 #define HAVE_DECL_STRERROR $ac_have_decl
13565 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13566 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13572 cat >>confdefs.h
<<_ACEOF
13573 #define HAVE_DECL_STRSTR $ac_have_decl
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13578 $as_echo_n "checking for sigsetjmp... " >&6; }
13579 if ${gdb_cv_func_sigsetjmp+:} false
; then :
13580 $as_echo_n "(cached) " >&6
13582 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13585 #include <setjmp.h>
13590 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13595 if ac_fn_c_try_compile
"$LINENO"; then :
13596 gdb_cv_func_sigsetjmp
=yes
13598 gdb_cv_func_sigsetjmp
=no
13600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13603 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13604 if test $gdb_cv_func_sigsetjmp = yes; then
13606 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13611 # Check the return and argument types of ptrace.
13614 for ac_header
in sys
/ptrace.h ptrace.h
13616 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13617 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13618 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13619 cat >>confdefs.h
<<_ACEOF
13620 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13628 gdb_ptrace_headers
='
13629 #include <sys/types.h>
13630 #if HAVE_SYS_PTRACE_H
13631 # include <sys/ptrace.h>
13634 # include <unistd.h>
13637 # There is no point in checking if we don't have a prototype.
13638 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13640 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
13646 cat >>confdefs.h
<<_ACEOF
13647 #define HAVE_DECL_PTRACE $ac_have_decl
13649 if test $ac_have_decl = 1; then :
13653 : ${gdb_cv_func_ptrace_ret='int'}
13654 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13658 # Check return type. Varargs (used on GNU/Linux) conflict with the
13659 # empty argument list, so check for that explicitly.
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13661 $as_echo_n "checking return type of ptrace... " >&6; }
13662 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13663 $as_echo_n "(cached) " >&6
13665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667 $gdb_ptrace_headers
13671 extern long ptrace (enum __ptrace_request, ...);
13676 if ac_fn_c_try_compile
"$LINENO"; then :
13677 gdb_cv_func_ptrace_ret
='long'
13679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 $gdb_ptrace_headers
13685 extern int ptrace ();
13690 if ac_fn_c_try_compile
"$LINENO"; then :
13691 gdb_cv_func_ptrace_ret
='int'
13693 gdb_cv_func_ptrace_ret
='long'
13695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13700 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13702 cat >>confdefs.h
<<_ACEOF
13703 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13706 # Check argument types.
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13708 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13709 if ${gdb_cv_func_ptrace_args+:} false
; then :
13710 $as_echo_n "(cached) " >&6
13713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13715 $gdb_ptrace_headers
13719 extern long ptrace (enum __ptrace_request, ...);
13724 if ac_fn_c_try_compile
"$LINENO"; then :
13725 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13728 for gdb_arg1
in 'int' 'long'; do
13729 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13730 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13731 for gdb_arg4
in 'int' 'long' 'void *'; do
13732 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 $gdb_ptrace_headers
13739 extern $gdb_cv_func_ptrace_ret
13740 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13746 if ac_fn_c_try_compile
"$LINENO"; then :
13747 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13751 for gdb_arg5
in 'int *' 'int' 'long'; do
13752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13753 /* end confdefs.h. */
13754 $gdb_ptrace_headers
13759 extern $gdb_cv_func_ptrace_ret
13760 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13766 if ac_fn_c_try_compile
"$LINENO"; then :
13768 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13777 # Provide a safe default value.
13778 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13781 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13784 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13785 ac_save_IFS
=$IFS; IFS
=','
13786 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13790 cat >>confdefs.h
<<_ACEOF
13791 #define PTRACE_TYPE_ARG1 $1
13795 cat >>confdefs.h
<<_ACEOF
13796 #define PTRACE_TYPE_ARG3 $3
13800 cat >>confdefs.h
<<_ACEOF
13801 #define PTRACE_TYPE_ARG4 $4
13804 if test -n "$5"; then
13806 cat >>confdefs.h
<<_ACEOF
13807 #define PTRACE_TYPE_ARG5 $5
13813 if test "$cross_compiling" = no
; then
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13815 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13816 if ${ac_cv_func_setpgrp_void+:} false
; then :
13817 $as_echo_n "(cached) " >&6
13819 if test "$cross_compiling" = yes; then :
13820 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
13822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13824 $ac_includes_default
13828 /* If this system has a BSD-style setpgrp which takes arguments,
13829 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13830 exit successfully. */
13831 return setpgrp (1,1) != -1;
13836 if ac_fn_c_try_run
"$LINENO"; then :
13837 ac_cv_func_setpgrp_void
=no
13839 ac_cv_func_setpgrp_void
=yes
13841 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13842 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13847 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13848 if test $ac_cv_func_setpgrp_void = yes; then
13850 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13856 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13857 if ${ac_cv_func_setpgrp_void+:} false
; then :
13858 $as_echo_n "(cached) " >&6
13860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13863 #include <unistd.h>
13869 if (setpgrp(1,1) == -1)
13878 if ac_fn_c_try_compile
"$LINENO"; then :
13879 ac_cv_func_setpgrp_void
=no
13881 ac_cv_func_setpgrp_void
=yes
13883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
13886 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
13887 if test $ac_cv_func_setpgrp_void = yes; then
13888 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
13893 # Assume we'll default to using the included libiberty regex.
13894 gdb_use_included_regex
=yes
13896 # However, if the system regex is GNU regex, then default to *not*
13897 # using the included regex.
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
13899 $as_echo_n "checking for GNU regex... " >&6; }
13900 if ${gdb_cv_have_gnu_regex+:} false
; then :
13901 $as_echo_n "(cached) " >&6
13903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905 #include <gnu-versions.h>
13909 #define REGEX_INTERFACE_VERSION 1
13910 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
13911 # error "Version mismatch"
13917 if ac_fn_c_try_compile
"$LINENO"; then :
13918 gdb_cv_have_gnu_regex
=yes
13920 gdb_cv_have_gnu_regex
=no
13922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
13925 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
13926 if test $gdb_cv_have_gnu_regex = yes; then
13927 gdb_use_included_regex
=no
13931 # Check whether --with-included-regex was given.
13932 if test "${with_included_regex+set}" = set; then :
13933 withval
=$with_included_regex; gdb_with_regex
=$withval
13935 gdb_with_regex
=$gdb_use_included_regex
13938 if test "$gdb_with_regex" = yes; then
13940 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
13944 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
13945 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
13946 #include <sys/proc.h>
13949 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
13951 cat >>confdefs.h
<<_ACEOF
13952 #define HAVE_STRUCT_THREAD_TD_PCB 1
13959 # See if <sys/lwp.h> defines `struct lwp`.
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
13961 $as_echo_n "checking for struct lwp... " >&6; }
13962 if ${gdb_cv_struct_lwp+:} false
; then :
13963 $as_echo_n "(cached) " >&6
13965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h. */
13967 #include <sys/param.h>
13969 #include <sys/lwp.h>
13978 if ac_fn_c_try_compile
"$LINENO"; then :
13979 gdb_cv_struct_lwp
=yes
13981 gdb_cv_struct_lwp
=no
13983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
13986 $as_echo "$gdb_cv_struct_lwp" >&6; }
13987 if test $gdb_cv_struct_lwp = yes; then
13989 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
13993 # See if <machine/reg.h> degines `struct reg'.
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
13995 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
13996 if ${gdb_cv_struct_reg+:} false
; then :
13997 $as_echo_n "(cached) " >&6
13999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14000 /* end confdefs.h. */
14001 #include <sys/types.h>
14002 #include <machine/reg.h>
14011 if ac_fn_c_try_compile
"$LINENO"; then :
14012 gdb_cv_struct_reg
=yes
14014 gdb_cv_struct_reg
=no
14016 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14019 $as_echo "$gdb_cv_struct_reg" >&6; }
14020 if test $gdb_cv_struct_reg = yes; then
14022 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14026 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14027 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14028 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14029 #include <machine/reg.h>
14031 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
14033 cat >>confdefs.h
<<_ACEOF
14034 #define HAVE_STRUCT_REG_R_FS 1
14039 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14040 #include <machine/reg.h>
14042 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
14044 cat >>confdefs.h
<<_ACEOF
14045 #define HAVE_STRUCT_REG_R_GS 1
14052 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14053 # Older amd64 Linux's don't have the fs_base and gs_base members of
14054 # `struct user_regs_struct'.
14055 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>
14056 #include <sys/user.h>
14058 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
14060 cat >>confdefs.h
<<_ACEOF
14061 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14066 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>
14067 #include <sys/user.h>
14069 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14071 cat >>confdefs.h
<<_ACEOF
14072 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14079 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14081 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14082 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14083 $as_echo_n "(cached) " >&6
14085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 #include <sys/ptrace.h>
14096 if ac_fn_c_try_compile
"$LINENO"; then :
14097 gdb_cv_have_ptrace_getregs
=yes
14099 gdb_cv_have_ptrace_getregs
=no
14101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14105 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14106 if test $gdb_cv_have_ptrace_getregs = yes; then
14108 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14112 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14114 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14115 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14116 $as_echo_n "(cached) " >&6
14118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14119 /* end confdefs.h. */
14120 #include <sys/ptrace.h>
14129 if ac_fn_c_try_compile
"$LINENO"; then :
14130 gdb_cv_have_ptrace_getfpxregs
=yes
14132 gdb_cv_have_ptrace_getfpxregs
=no
14134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14138 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14139 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14141 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14145 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14147 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14148 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
14149 $as_echo_n "(cached) " >&6
14151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14152 /* end confdefs.h. */
14153 #include <sys/types.h>
14154 #include <sys/ptrace.h>
14163 if ac_fn_c_try_compile
"$LINENO"; then :
14164 gdb_cv_have_pt_getdbregs
=yes
14166 gdb_cv_have_pt_getdbregs
=no
14168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14172 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14173 if test $gdb_cv_have_pt_getdbregs = yes; then
14175 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14179 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14181 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14182 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
14183 $as_echo_n "(cached) " >&6
14185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14187 #include <sys/types.h>
14188 #include <sys/ptrace.h>
14197 if ac_fn_c_try_compile
"$LINENO"; then :
14198 gdb_cv_have_pt_getxmmregs
=yes
14200 gdb_cv_have_pt_getxmmregs
=no
14202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14206 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14207 if test $gdb_cv_have_pt_getxmmregs = yes; then
14209 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14213 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14214 # Older FreeBSD versions don't have the pl_tdname member of
14215 # `struct ptrace_lwpinfo'.
14216 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14218 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
14220 cat >>confdefs.h
<<_ACEOF
14221 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14228 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14229 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14231 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>
14233 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
14235 cat >>confdefs.h
<<_ACEOF
14236 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14243 if test "$ac_cv_header_sys_procfs_h" = yes; then
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14245 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14246 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14247 $as_echo_n "(cached) " >&6
14249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14250 /* end confdefs.h. */
14253 /* Needed for new procfs interface on sparc-solaris. */
14254 #define _STRUCTURED_PROC 1
14255 #include <sys/procfs.h>
14264 if ac_fn_c_try_compile
"$LINENO"; then :
14265 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14267 bfd_cv_have_sys_procfs_type_gregset_t
=no
14270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14273 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14275 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14279 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14282 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14283 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14284 $as_echo_n "(cached) " >&6
14286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14287 /* end confdefs.h. */
14290 /* Needed for new procfs interface on sparc-solaris. */
14291 #define _STRUCTURED_PROC 1
14292 #include <sys/procfs.h>
14301 if ac_fn_c_try_compile
"$LINENO"; then :
14302 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14304 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14310 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14312 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14316 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14319 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14320 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14321 $as_echo_n "(cached) " >&6
14323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14324 /* end confdefs.h. */
14327 /* Needed for new procfs interface on sparc-solaris. */
14328 #define _STRUCTURED_PROC 1
14329 #include <sys/procfs.h>
14338 if ac_fn_c_try_compile
"$LINENO"; then :
14339 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14341 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14347 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14349 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14353 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14356 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14357 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14358 $as_echo_n "(cached) " >&6
14360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14361 /* end confdefs.h. */
14364 /* Needed for new procfs interface on sparc-solaris. */
14365 #define _STRUCTURED_PROC 1
14366 #include <sys/procfs.h>
14375 if ac_fn_c_try_compile
"$LINENO"; then :
14376 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14378 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14384 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14386 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14390 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14393 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14394 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14395 $as_echo_n "(cached) " >&6
14397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14398 /* end confdefs.h. */
14401 /* Needed for new procfs interface on sparc-solaris. */
14402 #define _STRUCTURED_PROC 1
14403 #include <sys/procfs.h>
14412 if ac_fn_c_try_compile
"$LINENO"; then :
14413 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14415 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14421 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14423 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14427 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14430 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14431 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14432 $as_echo_n "(cached) " >&6
14434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14435 /* end confdefs.h. */
14438 /* Needed for new procfs interface on sparc-solaris. */
14439 #define _STRUCTURED_PROC 1
14440 #include <sys/procfs.h>
14449 if ac_fn_c_try_compile
"$LINENO"; then :
14450 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14452 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14458 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14460 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14464 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14467 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14468 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14469 $as_echo_n "(cached) " >&6
14471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14475 /* Needed for new procfs interface on sparc-solaris. */
14476 #define _STRUCTURED_PROC 1
14477 #include <sys/procfs.h>
14486 if ac_fn_c_try_compile
"$LINENO"; then :
14487 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14489 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14492 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14495 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14497 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14501 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14504 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14505 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
14506 $as_echo_n "(cached) " >&6
14508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14512 /* Needed for new procfs interface on sparc-solaris. */
14513 #define _STRUCTURED_PROC 1
14514 #include <sys/procfs.h>
14518 elf_fpregset_t avar
14523 if ac_fn_c_try_compile
"$LINENO"; then :
14524 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
14526 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
14529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14532 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14534 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14538 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14542 # Check if the compiler supports the `long long' type.
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14545 $as_echo_n "checking for long long support in compiler... " >&6; }
14546 if ${gdb_cv_c_long_long+:} false
; then :
14547 $as_echo_n "(cached) " >&6
14549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14550 /* end confdefs.h. */
14551 extern long long foo;
14555 switch (foo & 2) { case 0: return 1; }
14560 if ac_fn_c_try_compile
"$LINENO"; then :
14561 gdb_cv_c_long_long
=yes
14563 gdb_cv_c_long_long
=no
14565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14568 $as_echo "$gdb_cv_c_long_long" >&6; }
14569 if test $gdb_cv_c_long_long != yes; then
14570 # libdecnumber requires long long.
14571 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
14574 # Check if the compiler and runtime support printing long longs.
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14577 $as_echo_n "checking for long long support in printf... " >&6; }
14578 if ${gdb_cv_printf_has_long_long+:} false
; then :
14579 $as_echo_n "(cached) " >&6
14581 if test "$cross_compiling" = yes; then :
14582 gdb_cv_printf_has_long_long
=no
14584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14586 $ac_includes_default
14592 l = (l << 16) + 0x0123;
14593 l = (l << 16) + 0x4567;
14594 l = (l << 16) + 0x89ab;
14595 l = (l << 16) + 0xcdef;
14596 sprintf (buf, "0x%016llx", l);
14597 return (strcmp ("0x0123456789abcdef", buf));
14602 if ac_fn_c_try_run
"$LINENO"; then :
14603 gdb_cv_printf_has_long_long
=yes
14605 gdb_cv_printf_has_long_long
=no
14607 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14608 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_long" >&5
14613 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14614 if test $gdb_cv_printf_has_long_long = yes; then
14616 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14620 # Check if the compiler and runtime support printing decfloats.
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14623 $as_echo_n "checking for decfloat support in printf... " >&6; }
14624 if ${gdb_cv_printf_has_decfloat+:} false
; then :
14625 $as_echo_n "(cached) " >&6
14627 if test "$cross_compiling" = yes; then :
14628 gdb_cv_printf_has_decfloat
=no
14630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632 $ac_includes_default
14637 _Decimal32 d32 = 1.2345df;
14638 _Decimal64 d64 = 1.2345dd;
14639 _Decimal128 d128 = 1.2345dl;
14640 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14641 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14646 if ac_fn_c_try_run
"$LINENO"; then :
14647 gdb_cv_printf_has_decfloat
=yes
14649 gdb_cv_printf_has_decfloat
=no
14651 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14652 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14657 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14658 if test $gdb_cv_printf_has_decfloat = yes; then
14660 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14664 # Check if the compiler supports the `long double' type. We can't use
14665 # AC_C_LONG_DOUBLE because that one does additional checks on the
14666 # constants defined in <float.h> that fail on some systems,
14667 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14670 $as_echo_n "checking for long double support in compiler... " >&6; }
14671 if ${gdb_cv_c_long_double+:} false
; then :
14672 $as_echo_n "(cached) " >&6
14674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14675 /* end confdefs.h. */
14678 if ac_fn_c_try_compile
"$LINENO"; then :
14679 gdb_cv_c_long_double
=yes
14681 gdb_cv_c_long_double
=no
14683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14686 $as_echo "$gdb_cv_c_long_double" >&6; }
14687 if test $gdb_cv_c_long_double = yes; then
14689 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14693 # Check if the compiler and runtime support printing long doubles.
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14696 $as_echo_n "checking for long double support in printf... " >&6; }
14697 if ${gdb_cv_printf_has_long_double+:} false
; then :
14698 $as_echo_n "(cached) " >&6
14700 if test "$cross_compiling" = yes; then :
14701 gdb_cv_printf_has_long_double
=no
14703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h. */
14705 $ac_includes_default
14710 long double f = 3.141592653;
14711 sprintf (buf, "%Lg", f);
14712 return (strncmp ("3.14159", buf, 7));
14717 if ac_fn_c_try_run
"$LINENO"; then :
14718 gdb_cv_printf_has_long_double
=yes
14720 gdb_cv_printf_has_long_double
=no
14722 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14723 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14728 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14729 if test $gdb_cv_printf_has_long_double = yes; then
14731 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14735 # Check if the compiler and runtime support scanning long doubles.
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14738 $as_echo_n "checking for long double support in scanf... " >&6; }
14739 if ${gdb_cv_scanf_has_long_double+:} false
; then :
14740 $as_echo_n "(cached) " >&6
14742 if test "$cross_compiling" = yes; then :
14743 gdb_cv_scanf_has_long_double
=no
14745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14746 /* end confdefs.h. */
14751 char *buf = "3.141592653";
14753 sscanf (buf, "%Lg", &f);
14754 return !(f > 3.14159 && f < 3.14160);
14759 if ac_fn_c_try_run
"$LINENO"; then :
14760 gdb_cv_scanf_has_long_double
=yes
14762 gdb_cv_scanf_has_long_double
=no
14764 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14765 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14770 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14771 if test $gdb_cv_scanf_has_long_double = yes; then
14773 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14780 $as_echo_n "checking for -bbigtoc option... " >&6; }
14781 if ${gdb_cv_bigtoc+:} false
; then :
14782 $as_echo_n "(cached) " >&6
14785 SAVE_LDFLAGS
=$LDFLAGS
14788 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14789 *) gdb_cv_bigtoc
=-bbigtoc ;;
14792 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14804 if ac_fn_c_try_link
"$LINENO"; then :
14809 rm -f core conftest.err conftest.
$ac_objext \
14810 conftest
$ac_exeext conftest.
$ac_ext
14811 LDFLAGS
="${SAVE_LDFLAGS}"
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14815 $as_echo "$gdb_cv_bigtoc" >&6; }
14816 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14821 $as_echo_n "checking for the dynamic export flag... " >&6; }
14823 if test "${gdb_native}" = yes; then
14824 # The dynamically loaded libthread_db needs access to symbols in the gdb
14825 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14826 # may not be supported there.
14827 old_LDFLAGS
="$LDFLAGS"
14828 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14829 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14830 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14831 if test "${have_libpython}" = no
; then
14832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14833 /* end confdefs.h. */
14843 if ac_fn_c_try_link
"$LINENO"; then :
14846 rm -f core conftest.err conftest.
$ac_objext \
14847 conftest
$ac_exeext conftest.
$ac_ext
14849 # Workaround http://bugs.python.org/issue4434 where static
14850 # libpythonX.Y.a would get its symbols required for
14851 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
14852 # Problem does not happen for the recommended libpythonX.Y.so linkage.
14854 # Note the workaround for Python
14855 # http://bugs.python.org/issue10112 earlier has removed
14856 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
14857 # here too, as otherwise it'd make this -Wl,--dynamic-list test
14859 old_CFLAGS
="$CFLAGS"
14860 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
14862 LIBS
="$LIBS $PYTHON_LIBS"
14863 old_CPPFLAGS
="$CPPFLAGS"
14864 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
14865 if test "$cross_compiling" = yes; then :
14868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14870 #include "Python.h"
14876 err = PyRun_SimpleString ("import itertools\n");
14878 return err == 0 ? 0 : 1;
14883 if ac_fn_c_try_run
"$LINENO"; then :
14886 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14887 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14891 CFLAGS
="$old_CFLAGS"
14892 CPPFLAGS
="$old_CPPFLAGS"
14894 LDFLAGS
="$old_LDFLAGS"
14896 if $dynamic_list; then
14897 found
="-Wl,--dynamic-list"
14898 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
14901 RDYNAMIC
="-rdynamic"
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
14905 $as_echo "$found" >&6; }
14908 if test ${build} = ${host} -a ${host} = ${target} ; then
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
14912 $as_echo_n "checking for AiX thread debugging library... " >&6; }
14913 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
14914 $as_echo_n "(cached) " >&6
14916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14918 #include <sys/pthdebug.h>
14922 #ifndef PTHDB_VERSION_3
14929 if ac_fn_c_try_compile
"$LINENO"; then :
14930 gdb_cv_have_aix_thread_debug
=yes
14932 gdb_cv_have_aix_thread_debug
=no
14934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
14938 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
14939 if test $gdb_cv_have_aix_thread_debug = yes; then
14940 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
14941 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
14942 LIBS
="$LIBS -lpthdebug"
14944 # Older versions of AIX do not provide the declaration for
14945 # the getthrds function (it appears that it was introduced
14947 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
14949 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
14955 cat >>confdefs.h
<<_ACEOF
14956 #define HAVE_DECL_GETTHRDS $ac_have_decl
14965 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
14967 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
14968 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
14969 $as_echo_n "(cached) " >&6
14971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14972 /* end confdefs.h. */
14973 #include <thread_db.h>
14977 int i = TD_NOTALLOC;
14982 if ac_fn_c_try_compile
"$LINENO"; then :
14983 gdb_cv_thread_db_h_has_td_notalloc
=yes
14985 gdb_cv_thread_db_h_has_td_notalloc
=no
14988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
14992 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
14994 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
14995 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
14996 $as_echo_n "(cached) " >&6
14998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14999 /* end confdefs.h. */
15000 #include <thread_db.h>
15004 int i = TD_VERSION;
15009 if ac_fn_c_try_compile
"$LINENO"; then :
15010 gdb_cv_thread_db_h_has_td_version
=yes
15012 gdb_cv_thread_db_h_has_td_version
=no
15015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15019 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15021 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15022 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
15023 $as_echo_n "(cached) " >&6
15025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15027 #include <thread_db.h>
15036 if ac_fn_c_try_compile
"$LINENO"; then :
15037 gdb_cv_thread_db_h_has_td_notls
=yes
15039 gdb_cv_thread_db_h_has_td_notls
=no
15042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15046 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15048 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15050 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15053 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15055 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15058 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15060 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15064 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15066 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15072 cat >>confdefs.h
<<_ACEOF
15073 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15077 if test "$cross_compiling" = yes; then :
15078 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080 #include <sys/personality.h>
15085 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15086 # define ADDR_NO_RANDOMIZE 0x0040000
15088 /* Test the flag could be set and stays set. */
15089 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15090 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15096 if ac_fn_c_try_link
"$LINENO"; then :
15097 have_personality
=true
15099 have_personality
=false
15101 rm -f core conftest.err conftest.
$ac_objext \
15102 conftest
$ac_exeext conftest.
$ac_ext
15104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15106 #include <sys/personality.h>
15111 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15112 # define ADDR_NO_RANDOMIZE 0x0040000
15114 /* Test the flag could be set and stays set. */
15115 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15116 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15122 if ac_fn_c_try_run
"$LINENO"; then :
15123 have_personality
=true
15125 have_personality
=false
15127 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15128 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15131 if $have_personality
15134 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15147 cat >>confdefs.h
<<_ACEOF
15148 #define GDBINIT "$gdbinit"
15153 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15154 # except that the argument to --with-sysroot is optional.
15155 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15156 if test "x$with_sysroot" = xyes
; then
15157 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15160 # Check whether --with-sysroot was given.
15161 if test "${with_sysroot+set}" = set; then :
15162 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15164 TARGET_SYSTEM_ROOT
=
15168 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15169 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15170 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15171 ac_define_dir
=`eval echo $ac_define_dir`
15173 cat >>confdefs.h
<<_ACEOF
15174 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15180 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15181 if test "x$prefix" = xNONE
; then
15182 test_prefix
=/usr
/local
15184 test_prefix
=$prefix
15187 test_prefix
=$exec_prefix
15190 case ${ac_define_dir} in
15191 "${test_prefix}"|
"${test_prefix}/"*|\
15192 '${exec_prefix}'|
'${exec_prefix}/'*)
15197 cat >>confdefs.h
<<_ACEOF
15198 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15205 # Check whether --with-system-gdbinit was given.
15206 if test "${with_system_gdbinit+set}" = set; then :
15207 withval
=$with_system_gdbinit;
15208 SYSTEM_GDBINIT
=$withval
15214 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15215 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15216 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15217 ac_define_dir
=`eval echo $ac_define_dir`
15219 cat >>confdefs.h
<<_ACEOF
15220 #define SYSTEM_GDBINIT "$ac_define_dir"
15226 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15227 if test "x$prefix" = xNONE
; then
15228 test_prefix
=/usr
/local
15230 test_prefix
=$prefix
15233 test_prefix
=$exec_prefix
15236 case ${ac_define_dir} in
15237 "${test_prefix}"|
"${test_prefix}/"*|\
15238 '${exec_prefix}'|
'${exec_prefix}/'*)
15243 cat >>confdefs.h
<<_ACEOF
15244 #define SYSTEM_GDBINIT_RELOCATABLE $value
15251 # Check whether --enable-werror was given.
15252 if test "${enable_werror+set}" = set; then :
15253 enableval
=$enable_werror; case "${enableval}" in
15254 yes | y
) ERROR_ON_WARNING
="yes" ;;
15255 no | n
) ERROR_ON_WARNING
="no" ;;
15256 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15261 # Enable -Werror by default when using gcc. Turn it off for releases.
15262 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15263 ERROR_ON_WARNING
=yes
15267 if test "${ERROR_ON_WARNING}" = yes ; then
15268 WERROR_CFLAGS
="-Werror"
15271 # The options we'll try to enable.
15272 build_warnings
="-Wall -Wpointer-arith \
15273 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15274 -Wno-switch -Wno-char-subscripts \
15275 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15276 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15277 -Wno-mismatched-tags \
15278 -Wno-error=deprecated-register \
15279 -Wsuggest-override \
15280 -Wimplicit-fallthrough=3 \
15281 -Wduplicated-cond \
15283 -Wdeprecated-copy \
15284 -Wdeprecated-copy-dtor \
15289 # Enable -Wno-format by default when using gcc on mingw since many
15290 # GCC versions complain about %I64.
15291 build_warnings
="$build_warnings -Wno-format" ;;
15293 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15294 # doesn't understand.
15295 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15296 # Solaris 11 <unistd.h> marks vfork deprecated.
15297 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15299 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15300 # but there's a special case for this below.
15301 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15304 # Check whether --enable-build-warnings was given.
15305 if test "${enable_build_warnings+set}" = set; then :
15306 enableval
=$enable_build_warnings; case "${enableval}" in
15308 no
) build_warnings
="-w";;
15309 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15310 build_warnings
="${build_warnings} ${t}";;
15311 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15312 build_warnings
="${t} ${build_warnings}";;
15313 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15315 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15316 echo "Setting compiler warning flags = $build_warnings" 6>&1
15319 # Check whether --enable-gdb-build-warnings was given.
15320 if test "${enable_gdb_build_warnings+set}" = set; then :
15321 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15323 no
) build_warnings
="-w";;
15324 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15325 build_warnings
="${build_warnings} ${t}";;
15326 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15327 build_warnings
="${t} ${build_warnings}";;
15328 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15330 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15331 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15335 # The set of warnings supported by a C++ compiler is not the same as
15336 # of the C compiler.
15338 ac_cpp
='$CXXCPP $CPPFLAGS'
15339 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15340 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15341 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15345 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15348 $as_echo_n "checking compiler warning flags... " >&6; }
15349 # Separate out the -Werror flag as some files just cannot be
15350 # compiled with it enabled.
15351 for w
in ${build_warnings}; do
15352 # GCC does not complain about -Wno-unknown-warning. Invert
15353 # and test -Wunknown-warning instead.
15356 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15357 -Wformat-nonliteral)
15358 # gcc requires -Wformat before -Wformat-nonliteral
15359 # will work, so stick them together.
15368 -Werr*) WERROR_CFLAGS
=-Werror ;;
15370 # Check whether GCC accepts it.
15371 saved_CFLAGS
="$CFLAGS"
15372 CFLAGS
="$CFLAGS -Werror $wtest"
15373 saved_CXXFLAGS
="$CXXFLAGS"
15374 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15375 if test "x$w" = "x-Wunused-variable"; then
15376 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15377 # fixed in GCC 4.9. This test is derived from the gdb
15378 # source code that triggered this bug in GCC.
15379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15380 /* end confdefs.h. */
15381 struct scoped_restore_base {};
15382 struct scoped_restore_tmpl : public scoped_restore_base {
15383 ~scoped_restore_tmpl() {}
15388 const scoped_restore_base &b = scoped_restore_tmpl();
15393 if ac_fn_cxx_try_compile
"$LINENO"; then :
15394 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15399 /* end confdefs.h. */
15409 if ac_fn_cxx_try_compile
"$LINENO"; then :
15410 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15414 CFLAGS
="$saved_CFLAGS"
15415 CXXFLAGS
="$saved_CXXFLAGS"
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15419 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15425 ac_cpp='$CPP $CPPFLAGS'
15426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15432 # Check whether --enable-ubsan was given.
15433 if test "${enable_ubsan+set}" = set; then :
15434 enableval=$enable_ubsan;
15439 if test "x
$enable_ubsan" = xauto; then
15440 if $development; then
15445 ac_cpp='$CXXCPP $CPPFLAGS'
15446 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15447 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15448 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15450 if test "x
$enable_ubsan" = xyes; then
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
15452 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
15453 saved_CXXFLAGS="$CXXFLAGS"
15454 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15466 if ac_fn_cxx_try_link "$LINENO"; then :
15471 rm -f core conftest.err conftest.$ac_objext \
15472 conftest$ac_exeext conftest.$ac_ext
15473 CXXFLAGS="$saved_CXXFLAGS"
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
15475 $as_echo "$enable_ubsan" >&6; }
15476 if test "x
$enable_ubsan" = xyes; then
15477 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15478 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
15482 ac_cpp='$CPP $CPPFLAGS'
15483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15489 # In the Cygwin environment, we need some additional flags.
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15491 $as_echo_n "checking
for cygwin...
" >&6; }
15492 if ${gdb_cv_os_cygwin+:} false; then :
15493 $as_echo_n "(cached
) " >&6
15495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15496 /* end confdefs.h. */
15498 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15502 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15503 $EGREP "^lose$
" >/dev/null 2>&1; then :
15504 gdb_cv_os_cygwin=yes
15506 gdb_cv_os_cygwin=no
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15512 $as_echo "$gdb_cv_os_cygwin" >&6; }
15515 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15517 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15518 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15519 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15520 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
15524 # libreadline needs libuser32.a in a cygwin environment
15526 if test x$gdb_cv_os_cygwin = xyes; then
15527 WIN32LIBS="-luser32"
15528 case "${target}" in
15529 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15534 # The ser-tcp.c module requires sockets.
15538 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15540 WIN32LIBS
="$WIN32LIBS -lws2_32"
15545 # Add ELF support to GDB, but only if BFD includes ELF support.
15548 OLD_LDFLAGS
=$LDFLAGS
15550 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15551 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15552 # always want our bfd.
15553 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15554 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15555 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15556 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15557 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15559 $as_echo_n "checking for ELF support in BFD... " >&6; }
15560 if ${gdb_cv_var_elf+:} false
; then :
15561 $as_echo_n "(cached) " >&6
15563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15564 /* end confdefs.h. */
15565 #include <stdlib.h>
15567 #include "elf-bfd.h"
15572 return bfd_get_elf_phdr_upper_bound (NULL);
15577 if ac_fn_c_try_link
"$LINENO"; then :
15582 rm -f core conftest.err conftest.
$ac_objext \
15583 conftest
$ac_exeext conftest.
$ac_ext
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15586 $as_echo "$gdb_cv_var_elf" >&6; }
15588 LDFLAGS
=$OLD_LDFLAGS
15590 if test $gdb_cv_var_elf = yes; then
15591 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15593 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15595 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15596 if test "$plugins" = "yes"; then
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15598 $as_echo_n "checking for library containing dlopen... " >&6; }
15599 if ${ac_cv_search_dlopen+:} false
; then :
15600 $as_echo_n "(cached) " >&6
15602 ac_func_search_save_LIBS
=$LIBS
15603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15604 /* end confdefs.h. */
15606 /* Override any GCC internal prototype to avoid an error.
15607 Use char because int might match the return type of a GCC
15608 builtin and then its argument prototype would still apply. */
15621 for ac_lib
in '' dl
; do
15622 if test -z "$ac_lib"; then
15623 ac_res
="none required"
15626 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15628 if ac_fn_c_try_link
"$LINENO"; then :
15629 ac_cv_search_dlopen
=$ac_res
15631 rm -f core conftest.err conftest.
$ac_objext \
15633 if ${ac_cv_search_dlopen+:} false
; then :
15637 if ${ac_cv_search_dlopen+:} false
; then :
15640 ac_cv_search_dlopen
=no
15642 rm conftest.
$ac_ext
15643 LIBS
=$ac_func_search_save_LIBS
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15646 $as_echo "$ac_cv_search_dlopen" >&6; }
15647 ac_res
=$ac_cv_search_dlopen
15648 if test "$ac_res" != no
; then :
15649 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15656 # Add macho support to GDB, but only if BFD includes it.
15659 OLD_LDFLAGS
=$LDFLAGS
15661 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15662 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15663 # always want our bfd.
15664 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15665 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15666 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15667 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15668 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15670 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15671 if ${gdb_cv_var_macho+:} false
; then :
15672 $as_echo_n "(cached) " >&6
15674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 #include <stdlib.h>
15678 #include "mach-o.h"
15683 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15688 if ac_fn_c_try_link
"$LINENO"; then :
15689 gdb_cv_var_macho
=yes
15691 gdb_cv_var_macho
=no
15693 rm -f core conftest.err conftest.
$ac_objext \
15694 conftest
$ac_exeext conftest.
$ac_ext
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15697 $as_echo "$gdb_cv_var_macho" >&6; }
15699 LDFLAGS
=$OLD_LDFLAGS
15701 if test $gdb_cv_var_macho = yes; then
15702 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15705 # Add any host-specific objects to GDB.
15706 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15708 # If building on ELF, look for lzma support for embedded compressed debug info.
15709 if test $gdb_cv_var_elf = yes; then
15711 # Check whether --with-lzma was given.
15712 if test "${with_lzma+set}" = set; then :
15713 withval
=$with_lzma;
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15719 $as_echo_n "checking whether to use lzma... " >&6; }
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15721 $as_echo "$with_lzma" >&6; }
15723 if test "${with_lzma}" != no
; then
15734 acl_save_prefix
="$prefix"
15735 prefix
="$acl_final_prefix"
15736 acl_save_exec_prefix
="$exec_prefix"
15737 exec_prefix
="$acl_final_exec_prefix"
15739 eval additional_includedir
=\"$includedir\"
15740 eval additional_libdir
=\"$libdir\"
15742 exec_prefix
="$acl_save_exec_prefix"
15743 prefix
="$acl_save_prefix"
15746 # Check whether --with-liblzma-prefix was given.
15747 if test "${with_liblzma_prefix+set}" = set; then :
15748 withval
=$with_liblzma_prefix;
15749 if test "X$withval" = "Xno"; then
15752 if test "X$withval" = "X"; then
15754 acl_save_prefix
="$prefix"
15755 prefix
="$acl_final_prefix"
15756 acl_save_exec_prefix
="$exec_prefix"
15757 exec_prefix
="$acl_final_exec_prefix"
15759 eval additional_includedir
=\"$includedir\"
15760 eval additional_libdir
=\"$libdir\"
15762 exec_prefix
="$acl_save_exec_prefix"
15763 prefix
="$acl_save_prefix"
15766 additional_includedir
="$withval/include"
15767 additional_libdir
="$withval/lib"
15778 names_already_handled
=
15779 names_next_round
='lzma '
15780 while test -n "$names_next_round"; do
15781 names_this_round
="$names_next_round"
15783 for name
in $names_this_round; do
15785 for n
in $names_already_handled; do
15786 if test "$n" = "$name"; then
15787 already_handled
=yes
15791 if test -z "$already_handled"; then
15792 names_already_handled
="$names_already_handled $name"
15793 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15794 eval value
=\"\
$HAVE_LIB$uppername\"
15795 if test -n "$value"; then
15796 if test "$value" = yes; then
15797 eval value
=\"\
$LIB$uppername\"
15798 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15799 eval value
=\"\
$LTLIB$uppername\"
15800 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15809 if test $use_additional = yes; then
15810 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15811 found_dir
="$additional_libdir"
15812 found_so
="$additional_libdir/lib$name.$shlibext"
15813 if test -f "$additional_libdir/lib$name.la"; then
15814 found_la
="$additional_libdir/lib$name.la"
15817 if test -f "$additional_libdir/lib$name.$libext"; then
15818 found_dir
="$additional_libdir"
15819 found_a
="$additional_libdir/lib$name.$libext"
15820 if test -f "$additional_libdir/lib$name.la"; then
15821 found_la
="$additional_libdir/lib$name.la"
15826 if test "X$found_dir" = "X"; then
15827 for x
in $LDFLAGS $LTLIBLZMA; do
15829 acl_save_prefix
="$prefix"
15830 prefix
="$acl_final_prefix"
15831 acl_save_exec_prefix
="$exec_prefix"
15832 exec_prefix
="$acl_final_exec_prefix"
15834 exec_prefix
="$acl_save_exec_prefix"
15835 prefix
="$acl_save_prefix"
15839 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15840 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15842 found_so
="$dir/lib$name.$shlibext"
15843 if test -f "$dir/lib$name.la"; then
15844 found_la
="$dir/lib$name.la"
15847 if test -f "$dir/lib$name.$libext"; then
15849 found_a
="$dir/lib$name.$libext"
15850 if test -f "$dir/lib$name.la"; then
15851 found_la
="$dir/lib$name.la"
15857 if test "X$found_dir" != "X"; then
15862 if test "X$found_dir" != "X"; then
15863 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
15864 if test "X$found_so" != "X"; then
15865 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
15866 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15869 for x
in $ltrpathdirs; do
15870 if test "X$x" = "X$found_dir"; then
15875 if test -z "$haveit"; then
15876 ltrpathdirs
="$ltrpathdirs $found_dir"
15878 if test "$hardcode_direct" = yes; then
15879 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15881 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
15882 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15884 for x
in $rpathdirs; do
15885 if test "X$x" = "X$found_dir"; then
15890 if test -z "$haveit"; then
15891 rpathdirs
="$rpathdirs $found_dir"
15895 for x
in $LDFLAGS $LIBLZMA; do
15897 acl_save_prefix
="$prefix"
15898 prefix
="$acl_final_prefix"
15899 acl_save_exec_prefix
="$exec_prefix"
15900 exec_prefix
="$acl_final_exec_prefix"
15902 exec_prefix
="$acl_save_exec_prefix"
15903 prefix
="$acl_save_prefix"
15905 if test "X$x" = "X-L$found_dir"; then
15910 if test -z "$haveit"; then
15911 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
15913 if test "$hardcode_minus_L" != no
; then
15914 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
15916 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
15922 if test "X$found_a" != "X"; then
15923 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
15925 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
15928 additional_includedir
=
15929 case "$found_dir" in
15931 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
15932 additional_includedir
="$basedir/include"
15935 if test "X$additional_includedir" != "X"; then
15936 if test "X$additional_includedir" != "X/usr/include"; then
15938 if test "X$additional_includedir" = "X/usr/local/include"; then
15939 if test -n "$GCC"; then
15941 linux
*) haveit
=yes;;
15945 if test -z "$haveit"; then
15946 for x
in $CPPFLAGS $INCLZMA; do
15948 acl_save_prefix
="$prefix"
15949 prefix
="$acl_final_prefix"
15950 acl_save_exec_prefix
="$exec_prefix"
15951 exec_prefix
="$acl_final_exec_prefix"
15953 exec_prefix
="$acl_save_exec_prefix"
15954 prefix
="$acl_save_prefix"
15956 if test "X$x" = "X-I$additional_includedir"; then
15961 if test -z "$haveit"; then
15962 if test -d "$additional_includedir"; then
15963 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
15969 if test -n "$found_la"; then
15970 save_libdir
="$libdir"
15971 case "$found_la" in
15972 */* |
*\\*) .
"$found_la" ;;
15973 *) .
"./$found_la" ;;
15975 libdir
="$save_libdir"
15976 for dep
in $dependency_libs; do
15979 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
15980 if test "X$additional_libdir" != "X/usr/lib"; then
15982 if test "X$additional_libdir" = "X/usr/local/lib"; then
15983 if test -n "$GCC"; then
15985 linux
*) haveit
=yes;;
15989 if test -z "$haveit"; then
15991 for x
in $LDFLAGS $LIBLZMA; do
15993 acl_save_prefix
="$prefix"
15994 prefix
="$acl_final_prefix"
15995 acl_save_exec_prefix
="$exec_prefix"
15996 exec_prefix
="$acl_final_exec_prefix"
15998 exec_prefix
="$acl_save_exec_prefix"
15999 prefix
="$acl_save_prefix"
16001 if test "X$x" = "X-L$additional_libdir"; then
16006 if test -z "$haveit"; then
16007 if test -d "$additional_libdir"; then
16008 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16012 for x
in $LDFLAGS $LTLIBLZMA; do
16014 acl_save_prefix
="$prefix"
16015 prefix
="$acl_final_prefix"
16016 acl_save_exec_prefix
="$exec_prefix"
16017 exec_prefix
="$acl_final_exec_prefix"
16019 exec_prefix
="$acl_save_exec_prefix"
16020 prefix
="$acl_save_prefix"
16022 if test "X$x" = "X-L$additional_libdir"; then
16027 if test -z "$haveit"; then
16028 if test -d "$additional_libdir"; then
16029 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16036 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16037 if test "$enable_rpath" != no
; then
16039 for x
in $rpathdirs; do
16040 if test "X$x" = "X$dir"; then
16045 if test -z "$haveit"; then
16046 rpathdirs
="$rpathdirs $dir"
16049 for x
in $ltrpathdirs; do
16050 if test "X$x" = "X$dir"; then
16055 if test -z "$haveit"; then
16056 ltrpathdirs
="$ltrpathdirs $dir"
16061 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16064 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16067 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16068 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16074 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16075 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16081 if test "X$rpathdirs" != "X"; then
16082 if test -n "$hardcode_libdir_separator"; then
16084 for found_dir
in $rpathdirs; do
16085 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16087 acl_save_libdir
="$libdir"
16089 eval flag
=\"$hardcode_libdir_flag_spec\"
16090 libdir
="$acl_save_libdir"
16091 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16093 for found_dir
in $rpathdirs; do
16094 acl_save_libdir
="$libdir"
16095 libdir
="$found_dir"
16096 eval flag
=\"$hardcode_libdir_flag_spec\"
16097 libdir
="$acl_save_libdir"
16098 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16102 if test "X$ltrpathdirs" != "X"; then
16103 for found_dir
in $ltrpathdirs; do
16104 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16109 ac_save_CPPFLAGS
="$CPPFLAGS"
16111 for element
in $INCLZMA; do
16113 for x
in $CPPFLAGS; do
16115 acl_save_prefix
="$prefix"
16116 prefix
="$acl_final_prefix"
16117 acl_save_exec_prefix
="$exec_prefix"
16118 exec_prefix
="$acl_final_exec_prefix"
16120 exec_prefix
="$acl_save_exec_prefix"
16121 prefix
="$acl_save_prefix"
16123 if test "X$x" = "X$element"; then
16128 if test -z "$haveit"; then
16129 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16135 $as_echo_n "checking for liblzma... " >&6; }
16136 if ${ac_cv_liblzma+:} false
; then :
16137 $as_echo_n "(cached) " >&6
16140 ac_save_LIBS
="$LIBS"
16141 LIBS
="$LIBS $LIBLZMA"
16142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16148 lzma_index_iter iter;
16149 lzma_index_iter_init (&iter, 0);
16150 lzma_mf_is_supported (LZMA_MF_HC3);
16155 if ac_fn_c_try_link
"$LINENO"; then :
16160 rm -f core conftest.err conftest.
$ac_objext \
16161 conftest
$ac_exeext conftest.
$ac_ext
16162 LIBS
="$ac_save_LIBS"
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16166 $as_echo "$ac_cv_liblzma" >&6; }
16167 if test "$ac_cv_liblzma" = yes; then
16170 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16173 $as_echo_n "checking how to link with liblzma... " >&6; }
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16175 $as_echo "$LIBLZMA" >&6; }
16178 CPPFLAGS
="$ac_save_CPPFLAGS"
16188 if test "$HAVE_LIBLZMA" != yes; then
16189 if test "$with_lzma" = yes; then
16190 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
16196 LIBGUI
="../libgui/src/libgui.a"
16197 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16206 *-*-cygwin* |
*-*-mingw* )
16215 if test "${enable_gdbtk}" = "yes"; then
16217 # Gdbtk must have an absolute path to srcdir in order to run
16218 # properly when not installed.
16221 GDBTK_SRC_DIR
=`pwd`
16226 # Ok, lets find the tcl configuration
16227 # First, look for one uninstalled.
16228 # the alternative search directory is invoked by --with-tcl
16231 if test x
"${no_tcl}" = x
; then
16232 # we reset no_tcl in case something fails here
16235 # Check whether --with-tcl was given.
16236 if test "${with_tcl+set}" = set; then :
16237 withval
=$with_tcl; with_tclconfig
=${withval}
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16241 $as_echo_n "checking for Tcl configuration... " >&6; }
16242 if ${ac_cv_c_tclconfig+:} false
; then :
16243 $as_echo_n "(cached) " >&6
16247 # First check to see if --with-tcl was specified.
16249 *-*-cygwin*) platDir
="win" ;;
16250 *) platDir
="unix" ;;
16252 if test x
"${with_tclconfig}" != x
; then
16253 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16254 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16256 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16260 # then check for a private Tcl installation
16261 if test x
"${ac_cv_c_tclconfig}" = x
; then
16264 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16265 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16266 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16268 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16269 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16270 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16272 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16273 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16274 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16275 if test -f "$i/$platDir/tclConfig.sh" ; then
16276 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16282 # on Darwin, check in Framework installation locations
16283 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16284 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16285 `ls -d /Library/Frameworks 2>/dev/null` \
16286 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16287 `ls -d /System/Library/Frameworks 2>/dev/null` \
16289 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16290 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16296 # check in a few common install locations
16297 if test x
"${ac_cv_c_tclconfig}" = x
; then
16298 for i
in `ls -d ${libdir} 2>/dev/null` \
16299 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16300 `ls -d ${prefix}/lib 2>/dev/null` \
16301 `ls -d /usr/local/lib 2>/dev/null` \
16302 `ls -d /usr/contrib/lib 2>/dev/null` \
16303 `ls -d /usr/lib 2>/dev/null` \
16305 if test -f "$i/tclConfig.sh" ; then
16306 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16312 # check in a few other private locations
16313 if test x
"${ac_cv_c_tclconfig}" = x
; then
16316 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16317 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16318 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16319 if test -f "$i/$platDir/tclConfig.sh" ; then
16320 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16329 if test x
"${ac_cv_c_tclconfig}" = x
; then
16330 TCL_BIN_DIR
="# no Tcl configs found"
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16332 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16335 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16337 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16342 # If $no_tk is nonempty, then we can't do Tk, and there is no
16343 # point to doing Tcl.
16346 # Ok, lets find the tk configuration
16347 # First, look for one uninstalled.
16348 # the alternative search directory is invoked by --with-tk
16351 if test x
"${no_tk}" = x
; then
16352 # we reset no_tk in case something fails here
16355 # Check whether --with-tk was given.
16356 if test "${with_tk+set}" = set; then :
16357 withval
=$with_tk; with_tkconfig
=${withval}
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16361 $as_echo_n "checking for Tk configuration... " >&6; }
16362 if ${ac_cv_c_tkconfig+:} false
; then :
16363 $as_echo_n "(cached) " >&6
16367 # First check to see if --with-tkconfig was specified.
16368 if test x
"${with_tkconfig}" != x
; then
16369 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16370 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16372 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16376 # then check for a private Tk library
16378 *-*-cygwin*) platDir
="win" ;;
16379 *) platDir
="unix" ;;
16381 if test x
"${ac_cv_c_tkconfig}" = x
; then
16384 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16385 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16386 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16388 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16389 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16390 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16392 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16393 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16394 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16395 if test -f "$i/$platDir/tkConfig.sh" ; then
16396 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16402 # on Darwin, check in Framework installation locations
16403 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16404 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16405 `ls -d /Library/Frameworks 2>/dev/null` \
16406 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16407 `ls -d /System/Library/Frameworks 2>/dev/null` \
16409 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16410 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16416 # check in a few common install locations
16417 if test x
"${ac_cv_c_tkconfig}" = x
; then
16418 for i
in `ls -d ${libdir} 2>/dev/null` \
16419 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16420 `ls -d ${prefix}/lib 2>/dev/null` \
16421 `ls -d /usr/local/lib 2>/dev/null` \
16422 `ls -d /usr/contrib/lib 2>/dev/null` \
16423 `ls -d /usr/lib 2>/dev/null` \
16425 if test -f "$i/tkConfig.sh" ; then
16426 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16431 # check in a few other private locations
16432 if test x
"${ac_cv_c_tkconfig}" = x
; then
16435 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16436 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16437 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16438 if test -f "$i/$platDir/tkConfig.sh" ; then
16439 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16448 if test x
"${ac_cv_c_tkconfig}" = x
; then
16449 TK_BIN_DIR
="# no Tk configs found"
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16451 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16454 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16456 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16461 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16464 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16466 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16468 $as_echo "loading" >&6; }
16469 .
${TCL_BIN_DIR}/tclConfig.sh
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16472 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16475 # eval is required to do the TCL_DBGX substitution
16476 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16477 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16479 # If the TCL_BIN_DIR is the build directory (not the install directory),
16480 # then set the common variable name to the value of the build variables.
16481 # For example, the variable TCL_LIB_SPEC will be set to the value
16482 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16483 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16484 # installed and uninstalled version of Tcl.
16485 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16486 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16487 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16488 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16489 elif test "`uname -s`" = "Darwin"; then
16490 # If Tcl was built as a framework, attempt to use the libraries
16491 # from the framework at the given location so that linking works
16492 # against Tcl.framework installed in an arbitrary location.
16493 case ${TCL_DEFS} in
16495 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16496 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16497 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16498 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16499 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16504 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16505 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16506 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16512 # eval is required to do the TCL_DBGX substitution
16513 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16514 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16515 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16516 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16532 # Check for in-tree tcl
16539 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16543 # Find Tcl private headers
16544 if test x
"${intree}" = xno
; then
16546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16547 $as_echo_n "checking for Tcl private headers... " >&6; }
16549 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16550 if test -f ${dir}/tclInt.h
; then
16554 if test x
"${private_dir}" = x
; then
16555 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
16557 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16559 $as_echo "${private_dir}" >&6; }
16562 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16563 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16566 # If building tcl in the same src tree, private headers
16567 # are not needed, but we need to be sure to use the right
16569 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16570 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16571 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16579 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16581 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16583 $as_echo "loading" >&6; }
16584 .
${TK_BIN_DIR}/tkConfig.sh
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16587 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16590 # eval is required to do the TK_DBGX substitution
16591 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16592 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16594 # If the TK_BIN_DIR is the build directory (not the install directory),
16595 # then set the common variable name to the value of the build variables.
16596 # For example, the variable TK_LIB_SPEC will be set to the value
16597 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16598 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16599 # installed and uninstalled version of Tcl.
16600 if test -f "${TK_BIN_DIR}/Makefile" ; then
16601 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16602 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16603 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16604 elif test "`uname -s`" = "Darwin"; then
16605 # If Tk was built as a framework, attempt to use the libraries
16606 # from the framework at the given location so that linking works
16607 # against Tk.framework installed in an arbitrary location.
16610 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16611 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16612 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16613 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16614 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16619 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16620 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16621 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16627 # eval is required to do the TK_DBGX substitution
16628 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16629 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16630 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16631 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16646 # Check for in-tree Tk
16648 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16652 # Find Tk private headers
16653 if test x
"${intree}" = xno
; then
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16656 $as_echo_n "checking for Tk private headers... " >&6; }
16658 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16659 if test -f ${dir}/tkInt.h
; then
16663 if test x
"${private_dir}" = x
; then
16664 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
16666 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16668 $as_echo "${private_dir}" >&6; }
16671 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16672 TK_LIBRARY
=${TK_LIB_SPEC}
16675 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16676 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16677 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16684 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16686 # Include some libraries that Tcl and Tk want.
16687 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16688 # Yes, the ordering seems wrong here. But it isn't.
16689 # TK_LIBS is the list of libraries that need to be linked
16690 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16691 # were in LIBS then any link tests after this point would
16692 # try to include things like `$(LIBGUI)', which wouldn't work.
16693 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16695 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16696 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16697 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16698 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16699 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16700 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16701 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16703 if test x
$gdb_cv_os_cygwin = xyes
; then
16704 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16705 WIN32LDAPP
="-Wl,--subsystem,console"
16706 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16709 subdirs
="$subdirs gdbtk"
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16722 $as_echo_n "checking for X... " >&6; }
16725 # Check whether --with-x was given.
16726 if test "${with_x+set}" = set; then :
16730 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16731 if test "x$with_x" = xno
; then
16732 # The user explicitly disabled X.
16735 case $x_includes,$x_libraries in #(
16736 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
16737 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
16738 $as_echo_n "(cached) " >&6
16740 # One or both of the vars are not set, and there is no cached value.
16741 ac_x_includes
=no ac_x_libraries
=no
16742 rm -f -r conftest.dir
16743 if mkdir conftest.dir
; then
16745 cat >Imakefile
<<'_ACEOF'
16747 @echo incroot='${INCROOT}'
16749 @echo usrlibdir='${USRLIBDIR}'
16751 @echo libdir='${LIBDIR}'
16753 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16754 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16755 for ac_var
in incroot usrlibdir libdir
; do
16756 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16758 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16759 for ac_extension
in a so sl dylib la dll
; do
16760 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16761 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16762 ac_im_usrlibdir
=$ac_im_libdir; break
16765 # Screen out bogus values from the imake configuration. They are
16766 # bogus both because they are the default anyway, and because
16767 # using them would break gcc on systems where it needs fixed includes.
16768 case $ac_im_incroot in
16769 /usr
/include
) ac_x_includes
= ;;
16770 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16772 case $ac_im_usrlibdir in
16773 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16774 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16778 rm -f -r conftest.dir
16781 # Standard set of common directories for X headers.
16782 # Check X11 before X11Rn because it is often a symlink to the current release.
16796 /usr/local/X11/include
16797 /usr/local/X11R7/include
16798 /usr/local/X11R6/include
16799 /usr/local/X11R5/include
16800 /usr/local/X11R4/include
16802 /usr/local/include/X11
16803 /usr/local/include/X11R7
16804 /usr/local/include/X11R6
16805 /usr/local/include/X11R5
16806 /usr/local/include/X11R4
16810 /usr/XFree86/include/X11
16814 /usr/unsupported/include
16815 /usr/athena/include
16816 /usr/local/x11r5/include
16817 /usr/lpp/Xamples/include
16819 /usr/openwin/include
16820 /usr/openwin/share/include'
16822 if test "$ac_x_includes" = no
; then
16823 # Guess where to find include files, by looking for Xlib.h.
16824 # First, try using that file with no special directory specified.
16825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16827 #include <X11/Xlib.h>
16829 if ac_fn_c_try_cpp
"$LINENO"; then :
16830 # We can compile using X headers with no special include directory.
16833 for ac_dir
in $ac_x_header_dirs; do
16834 if test -r "$ac_dir/X11/Xlib.h"; then
16835 ac_x_includes
=$ac_dir
16840 rm -f conftest.err conftest.i conftest.
$ac_ext
16841 fi # $ac_x_includes = no
16843 if test "$ac_x_libraries" = no
; then
16844 # Check for the libraries.
16845 # See if we find them without any special options.
16846 # Don't add to $LIBS permanently.
16849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h. */
16851 #include <X11/Xlib.h>
16860 if ac_fn_c_try_link
"$LINENO"; then :
16862 # We can link X programs with no special library path.
16866 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16868 # Don't even attempt the hair of trying to link an X program!
16869 for ac_extension
in a so sl dylib la dll
; do
16870 if test -r "$ac_dir/libX11.$ac_extension"; then
16871 ac_x_libraries
=$ac_dir
16877 rm -f core conftest.err conftest.
$ac_objext \
16878 conftest
$ac_exeext conftest.
$ac_ext
16879 fi # $ac_x_libraries = no
16881 case $ac_x_includes,$ac_x_libraries in #(
16882 no
,* |
*,no |
*\'*)
16883 # Didn't find X, or a directory has "'" in its name.
16884 ac_cv_have_x
="have_x=no";; #(
16886 # Record where we found X for the cache.
16887 ac_cv_have_x
="have_x=yes\
16888 ac_x_includes='$ac_x_includes'\
16889 ac_x_libraries='$ac_x_libraries'"
16895 eval "$ac_cv_have_x"
16898 if test "$have_x" != yes; then
16899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16900 $as_echo "$have_x" >&6; }
16903 # If each of the values was on the command line, it overrides each guess.
16904 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
16905 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
16906 # Update the cache value to reflect the command line values.
16907 ac_cv_have_x
="have_x=yes\
16908 ac_x_includes='$x_includes'\
16909 ac_x_libraries='$x_libraries'"
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16911 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16915 # Unlike the sim directory, whether a simulator is linked is controlled by
16916 # presence of a gdb_sim definition in the target configure.tgt entry.
16917 # This code just checks for a few cases where we'd like to ignore those
16918 # definitions, even when they're present in the '.mt' file. These cases
16919 # are when --disable-sim is specified, or if the simulator directory is
16920 # not part of the source tree.
16922 # Check whether --enable-sim was given.
16923 if test "${enable_sim+set}" = set; then :
16924 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
16925 echo "enableval = ${enableval}";
16926 case "${enableval}" in
16927 yes) ignore_sim
=false
;;
16928 no
) ignore_sim
=true
;;
16929 *) ignore_sim
=false
;;
16936 if test ! -d "${srcdir}/../sim"; then
16942 if test "${ignore_sim}" = "false"; then
16943 if test x
"${gdb_sim}" != x
; then
16945 SIM_OBS
="remote-sim.o"
16947 $as_echo "#define WITH_SIM 1" >>confdefs.h
16950 # Some tdep code should only be compiled in when the ppc sim is
16951 # built. PR sim/13418.
16955 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
16975 # List of host floatformats.
16977 cat >>confdefs.h
<<_ACEOF
16978 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
16982 cat >>confdefs.h
<<_ACEOF
16983 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
16987 cat >>confdefs.h
<<_ACEOF
16988 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
16992 # target_subdir is used by the testsuite to find the target libraries.
16994 if test "${host}" != "${target}"; then
16995 target_subdir
="${target_alias}/"
16999 # Import nat definitions.
17000 nat_makefile_frag
=/dev
/null
17001 if test "${gdb_native}" = "yes"; then
17002 .
${srcdir}/configure.nat
17003 nativefile
=$NAT_FILE
17016 if test x
"${gdb_osabi}" != x
; then
17018 cat >>confdefs.h
<<_ACEOF
17019 #define GDB_OSABI_DEFAULT $gdb_osabi
17024 # Check whether --enable-gdbserver was given.
17025 if test "${enable_gdbserver+set}" = set; then :
17026 enableval
=$enable_gdbserver; case "${enableval}" in
17028 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17031 enable_gdbserver
=auto
17035 # We only build gdbserver automatically in a native configuration, and
17036 # only if the user did not explicitly disable its build.
17037 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17039 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17040 if test "x$build_gdbserver" = xyes
; then
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17042 $as_echo "yes" >&6; }
17043 subdirs
="$subdirs gdbserver"
17045 gdbserver_build_enabled
=yes
17047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17048 $as_echo "no" >&6; }
17052 # If the user explicitly request the gdbserver to be built, verify that
17053 # we were in fact able to enable it.
17054 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17055 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17058 # Check for babeltrace and babeltrace-ctf
17060 # Check whether --with-babeltrace was given.
17061 if test "${with_babeltrace+set}" = set; then :
17062 withval
=$with_babeltrace;
17064 with_babeltrace
=auto
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17068 $as_echo_n "checking whether to use babeltrace... " >&6; }
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17070 $as_echo "$with_babeltrace" >&6; }
17072 if test "x$with_babeltrace" = "xno"; then
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17074 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17076 # Append -Werror to CFLAGS so that configure can catch the warning
17077 # "assignment from incompatible pointer type", which is related to
17078 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17079 # in GDB, while babeltrace 1.0.3 is broken.
17080 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17081 # safe to save and restore CFLAGS here.
17082 saved_CFLAGS
=$CFLAGS
17083 CFLAGS
="$CFLAGS -Werror"
17094 acl_save_prefix
="$prefix"
17095 prefix
="$acl_final_prefix"
17096 acl_save_exec_prefix
="$exec_prefix"
17097 exec_prefix
="$acl_final_exec_prefix"
17099 eval additional_includedir
=\"$includedir\"
17100 eval additional_libdir
=\"$libdir\"
17102 exec_prefix
="$acl_save_exec_prefix"
17103 prefix
="$acl_save_prefix"
17106 # Check whether --with-libbabeltrace-prefix was given.
17107 if test "${with_libbabeltrace_prefix+set}" = set; then :
17108 withval
=$with_libbabeltrace_prefix;
17109 if test "X$withval" = "Xno"; then
17112 if test "X$withval" = "X"; then
17114 acl_save_prefix
="$prefix"
17115 prefix
="$acl_final_prefix"
17116 acl_save_exec_prefix
="$exec_prefix"
17117 exec_prefix
="$acl_final_exec_prefix"
17119 eval additional_includedir
=\"$includedir\"
17120 eval additional_libdir
=\"$libdir\"
17122 exec_prefix
="$acl_save_exec_prefix"
17123 prefix
="$acl_save_prefix"
17126 additional_includedir
="$withval/include"
17127 additional_libdir
="$withval/lib"
17138 names_already_handled
=
17139 names_next_round
='babeltrace babeltrace-ctf'
17140 while test -n "$names_next_round"; do
17141 names_this_round
="$names_next_round"
17143 for name
in $names_this_round; do
17145 for n
in $names_already_handled; do
17146 if test "$n" = "$name"; then
17147 already_handled
=yes
17151 if test -z "$already_handled"; then
17152 names_already_handled
="$names_already_handled $name"
17153 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17154 eval value
=\"\
$HAVE_LIB$uppername\"
17155 if test -n "$value"; then
17156 if test "$value" = yes; then
17157 eval value
=\"\
$LIB$uppername\"
17158 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17159 eval value
=\"\
$LTLIB$uppername\"
17160 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17169 if test $use_additional = yes; then
17170 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17171 found_dir
="$additional_libdir"
17172 found_so
="$additional_libdir/lib$name.$shlibext"
17173 if test -f "$additional_libdir/lib$name.la"; then
17174 found_la
="$additional_libdir/lib$name.la"
17177 if test -f "$additional_libdir/lib$name.$libext"; then
17178 found_dir
="$additional_libdir"
17179 found_a
="$additional_libdir/lib$name.$libext"
17180 if test -f "$additional_libdir/lib$name.la"; then
17181 found_la
="$additional_libdir/lib$name.la"
17186 if test "X$found_dir" = "X"; then
17187 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17189 acl_save_prefix
="$prefix"
17190 prefix
="$acl_final_prefix"
17191 acl_save_exec_prefix
="$exec_prefix"
17192 exec_prefix
="$acl_final_exec_prefix"
17194 exec_prefix
="$acl_save_exec_prefix"
17195 prefix
="$acl_save_prefix"
17199 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17200 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17202 found_so
="$dir/lib$name.$shlibext"
17203 if test -f "$dir/lib$name.la"; then
17204 found_la
="$dir/lib$name.la"
17207 if test -f "$dir/lib$name.$libext"; then
17209 found_a
="$dir/lib$name.$libext"
17210 if test -f "$dir/lib$name.la"; then
17211 found_la
="$dir/lib$name.la"
17217 if test "X$found_dir" != "X"; then
17222 if test "X$found_dir" != "X"; then
17223 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17224 if test "X$found_so" != "X"; then
17225 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17226 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17229 for x
in $ltrpathdirs; do
17230 if test "X$x" = "X$found_dir"; then
17235 if test -z "$haveit"; then
17236 ltrpathdirs
="$ltrpathdirs $found_dir"
17238 if test "$hardcode_direct" = yes; then
17239 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17241 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17242 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17244 for x
in $rpathdirs; do
17245 if test "X$x" = "X$found_dir"; then
17250 if test -z "$haveit"; then
17251 rpathdirs
="$rpathdirs $found_dir"
17255 for x
in $LDFLAGS $LIBBABELTRACE; do
17257 acl_save_prefix
="$prefix"
17258 prefix
="$acl_final_prefix"
17259 acl_save_exec_prefix
="$exec_prefix"
17260 exec_prefix
="$acl_final_exec_prefix"
17262 exec_prefix
="$acl_save_exec_prefix"
17263 prefix
="$acl_save_prefix"
17265 if test "X$x" = "X-L$found_dir"; then
17270 if test -z "$haveit"; then
17271 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17273 if test "$hardcode_minus_L" != no
; then
17274 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17276 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17282 if test "X$found_a" != "X"; then
17283 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17285 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17288 additional_includedir
=
17289 case "$found_dir" in
17291 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17292 additional_includedir
="$basedir/include"
17295 if test "X$additional_includedir" != "X"; then
17296 if test "X$additional_includedir" != "X/usr/include"; then
17298 if test "X$additional_includedir" = "X/usr/local/include"; then
17299 if test -n "$GCC"; then
17301 linux
*) haveit
=yes;;
17305 if test -z "$haveit"; then
17306 for x
in $CPPFLAGS $INCBABELTRACE; do
17308 acl_save_prefix
="$prefix"
17309 prefix
="$acl_final_prefix"
17310 acl_save_exec_prefix
="$exec_prefix"
17311 exec_prefix
="$acl_final_exec_prefix"
17313 exec_prefix
="$acl_save_exec_prefix"
17314 prefix
="$acl_save_prefix"
17316 if test "X$x" = "X-I$additional_includedir"; then
17321 if test -z "$haveit"; then
17322 if test -d "$additional_includedir"; then
17323 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17329 if test -n "$found_la"; then
17330 save_libdir
="$libdir"
17331 case "$found_la" in
17332 */* |
*\\*) .
"$found_la" ;;
17333 *) .
"./$found_la" ;;
17335 libdir
="$save_libdir"
17336 for dep
in $dependency_libs; do
17339 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17340 if test "X$additional_libdir" != "X/usr/lib"; then
17342 if test "X$additional_libdir" = "X/usr/local/lib"; then
17343 if test -n "$GCC"; then
17345 linux
*) haveit
=yes;;
17349 if test -z "$haveit"; then
17351 for x
in $LDFLAGS $LIBBABELTRACE; do
17353 acl_save_prefix
="$prefix"
17354 prefix
="$acl_final_prefix"
17355 acl_save_exec_prefix
="$exec_prefix"
17356 exec_prefix
="$acl_final_exec_prefix"
17358 exec_prefix
="$acl_save_exec_prefix"
17359 prefix
="$acl_save_prefix"
17361 if test "X$x" = "X-L$additional_libdir"; then
17366 if test -z "$haveit"; then
17367 if test -d "$additional_libdir"; then
17368 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17372 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17374 acl_save_prefix
="$prefix"
17375 prefix
="$acl_final_prefix"
17376 acl_save_exec_prefix
="$exec_prefix"
17377 exec_prefix
="$acl_final_exec_prefix"
17379 exec_prefix
="$acl_save_exec_prefix"
17380 prefix
="$acl_save_prefix"
17382 if test "X$x" = "X-L$additional_libdir"; then
17387 if test -z "$haveit"; then
17388 if test -d "$additional_libdir"; then
17389 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17396 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17397 if test "$enable_rpath" != no
; then
17399 for x
in $rpathdirs; do
17400 if test "X$x" = "X$dir"; then
17405 if test -z "$haveit"; then
17406 rpathdirs
="$rpathdirs $dir"
17409 for x
in $ltrpathdirs; do
17410 if test "X$x" = "X$dir"; then
17415 if test -z "$haveit"; then
17416 ltrpathdirs
="$ltrpathdirs $dir"
17421 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17424 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17427 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17428 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17434 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17435 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17441 if test "X$rpathdirs" != "X"; then
17442 if test -n "$hardcode_libdir_separator"; then
17444 for found_dir
in $rpathdirs; do
17445 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17447 acl_save_libdir
="$libdir"
17449 eval flag
=\"$hardcode_libdir_flag_spec\"
17450 libdir
="$acl_save_libdir"
17451 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17453 for found_dir
in $rpathdirs; do
17454 acl_save_libdir
="$libdir"
17455 libdir
="$found_dir"
17456 eval flag
=\"$hardcode_libdir_flag_spec\"
17457 libdir
="$acl_save_libdir"
17458 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17462 if test "X$ltrpathdirs" != "X"; then
17463 for found_dir
in $ltrpathdirs; do
17464 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17469 ac_save_CPPFLAGS
="$CPPFLAGS"
17471 for element
in $INCBABELTRACE; do
17473 for x
in $CPPFLAGS; do
17475 acl_save_prefix
="$prefix"
17476 prefix
="$acl_final_prefix"
17477 acl_save_exec_prefix
="$exec_prefix"
17478 exec_prefix
="$acl_final_exec_prefix"
17480 exec_prefix
="$acl_save_exec_prefix"
17481 prefix
="$acl_save_prefix"
17483 if test "X$x" = "X$element"; then
17488 if test -z "$haveit"; then
17489 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17495 $as_echo_n "checking for libbabeltrace... " >&6; }
17496 if ${ac_cv_libbabeltrace+:} false
; then :
17497 $as_echo_n "(cached) " >&6
17500 ac_save_LIBS
="$LIBS"
17501 LIBS
="$LIBS $LIBBABELTRACE"
17502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17504 #include <babeltrace/babeltrace.h>
17505 #include <babeltrace/ctf/events.h>
17506 #include <babeltrace/ctf/iterator.h>
17510 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17511 struct bt_ctf_event *event = NULL;
17512 const struct bt_definition *scope;
17514 pos->type = BT_SEEK_BEGIN;
17515 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17516 scope = bt_ctf_get_top_level_scope (event,
17517 BT_STREAM_EVENT_HEADER);
17518 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17524 if ac_fn_c_try_link
"$LINENO"; then :
17525 ac_cv_libbabeltrace
=yes
17527 ac_cv_libbabeltrace
=no
17529 rm -f core conftest.err conftest.
$ac_objext \
17530 conftest
$ac_exeext conftest.
$ac_ext
17531 LIBS
="$ac_save_LIBS"
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17535 $as_echo "$ac_cv_libbabeltrace" >&6; }
17536 if test "$ac_cv_libbabeltrace" = yes; then
17537 HAVE_LIBBABELTRACE
=yes
17539 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17542 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17544 $as_echo "$LIBBABELTRACE" >&6; }
17546 HAVE_LIBBABELTRACE
=no
17547 CPPFLAGS
="$ac_save_CPPFLAGS"
17557 CFLAGS
=$saved_CFLAGS
17559 if test "$HAVE_LIBBABELTRACE" != yes; then
17560 if test "$with_babeltrace" = yes; then
17561 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17564 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17571 # Check whether --with-xxhash was given.
17572 if test "${with_xxhash+set}" = set; then :
17573 withval
=$with_xxhash;
17579 if test "x$with_xxhash" != "xno"; then
17590 acl_save_prefix
="$prefix"
17591 prefix
="$acl_final_prefix"
17592 acl_save_exec_prefix
="$exec_prefix"
17593 exec_prefix
="$acl_final_exec_prefix"
17595 eval additional_includedir
=\"$includedir\"
17596 eval additional_libdir
=\"$libdir\"
17598 exec_prefix
="$acl_save_exec_prefix"
17599 prefix
="$acl_save_prefix"
17602 # Check whether --with-libxxhash-prefix was given.
17603 if test "${with_libxxhash_prefix+set}" = set; then :
17604 withval
=$with_libxxhash_prefix;
17605 if test "X$withval" = "Xno"; then
17608 if test "X$withval" = "X"; then
17610 acl_save_prefix
="$prefix"
17611 prefix
="$acl_final_prefix"
17612 acl_save_exec_prefix
="$exec_prefix"
17613 exec_prefix
="$acl_final_exec_prefix"
17615 eval additional_includedir
=\"$includedir\"
17616 eval additional_libdir
=\"$libdir\"
17618 exec_prefix
="$acl_save_exec_prefix"
17619 prefix
="$acl_save_prefix"
17622 additional_includedir
="$withval/include"
17623 additional_libdir
="$withval/lib"
17634 names_already_handled
=
17635 names_next_round
='xxhash '
17636 while test -n "$names_next_round"; do
17637 names_this_round
="$names_next_round"
17639 for name
in $names_this_round; do
17641 for n
in $names_already_handled; do
17642 if test "$n" = "$name"; then
17643 already_handled
=yes
17647 if test -z "$already_handled"; then
17648 names_already_handled
="$names_already_handled $name"
17649 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17650 eval value
=\"\
$HAVE_LIB$uppername\"
17651 if test -n "$value"; then
17652 if test "$value" = yes; then
17653 eval value
=\"\
$LIB$uppername\"
17654 test -z "$value" || LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$value"
17655 eval value
=\"\
$LTLIB$uppername\"
17656 test -z "$value" || LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$value"
17665 if test $use_additional = yes; then
17666 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17667 found_dir
="$additional_libdir"
17668 found_so
="$additional_libdir/lib$name.$shlibext"
17669 if test -f "$additional_libdir/lib$name.la"; then
17670 found_la
="$additional_libdir/lib$name.la"
17673 if test -f "$additional_libdir/lib$name.$libext"; then
17674 found_dir
="$additional_libdir"
17675 found_a
="$additional_libdir/lib$name.$libext"
17676 if test -f "$additional_libdir/lib$name.la"; then
17677 found_la
="$additional_libdir/lib$name.la"
17682 if test "X$found_dir" = "X"; then
17683 for x
in $LDFLAGS $LTLIBXXHASH; do
17685 acl_save_prefix
="$prefix"
17686 prefix
="$acl_final_prefix"
17687 acl_save_exec_prefix
="$exec_prefix"
17688 exec_prefix
="$acl_final_exec_prefix"
17690 exec_prefix
="$acl_save_exec_prefix"
17691 prefix
="$acl_save_prefix"
17695 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17696 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17698 found_so
="$dir/lib$name.$shlibext"
17699 if test -f "$dir/lib$name.la"; then
17700 found_la
="$dir/lib$name.la"
17703 if test -f "$dir/lib$name.$libext"; then
17705 found_a
="$dir/lib$name.$libext"
17706 if test -f "$dir/lib$name.la"; then
17707 found_la
="$dir/lib$name.la"
17713 if test "X$found_dir" != "X"; then
17718 if test "X$found_dir" != "X"; then
17719 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$found_dir -l$name"
17720 if test "X$found_so" != "X"; then
17721 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17722 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
17725 for x
in $ltrpathdirs; do
17726 if test "X$x" = "X$found_dir"; then
17731 if test -z "$haveit"; then
17732 ltrpathdirs
="$ltrpathdirs $found_dir"
17734 if test "$hardcode_direct" = yes; then
17735 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
17737 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17738 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
17740 for x
in $rpathdirs; do
17741 if test "X$x" = "X$found_dir"; then
17746 if test -z "$haveit"; then
17747 rpathdirs
="$rpathdirs $found_dir"
17751 for x
in $LDFLAGS $LIBXXHASH; do
17753 acl_save_prefix
="$prefix"
17754 prefix
="$acl_final_prefix"
17755 acl_save_exec_prefix
="$exec_prefix"
17756 exec_prefix
="$acl_final_exec_prefix"
17758 exec_prefix
="$acl_save_exec_prefix"
17759 prefix
="$acl_save_prefix"
17761 if test "X$x" = "X-L$found_dir"; then
17766 if test -z "$haveit"; then
17767 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir"
17769 if test "$hardcode_minus_L" != no
; then
17770 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_so"
17772 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
17778 if test "X$found_a" != "X"; then
17779 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$found_a"
17781 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$found_dir -l$name"
17784 additional_includedir
=
17785 case "$found_dir" in
17787 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17788 additional_includedir
="$basedir/include"
17791 if test "X$additional_includedir" != "X"; then
17792 if test "X$additional_includedir" != "X/usr/include"; then
17794 if test "X$additional_includedir" = "X/usr/local/include"; then
17795 if test -n "$GCC"; then
17797 linux
*) haveit
=yes;;
17801 if test -z "$haveit"; then
17802 for x
in $CPPFLAGS $INCXXHASH; do
17804 acl_save_prefix
="$prefix"
17805 prefix
="$acl_final_prefix"
17806 acl_save_exec_prefix
="$exec_prefix"
17807 exec_prefix
="$acl_final_exec_prefix"
17809 exec_prefix
="$acl_save_exec_prefix"
17810 prefix
="$acl_save_prefix"
17812 if test "X$x" = "X-I$additional_includedir"; then
17817 if test -z "$haveit"; then
17818 if test -d "$additional_includedir"; then
17819 INCXXHASH
="${INCXXHASH}${INCXXHASH:+ }-I$additional_includedir"
17825 if test -n "$found_la"; then
17826 save_libdir
="$libdir"
17827 case "$found_la" in
17828 */* |
*\\*) .
"$found_la" ;;
17829 *) .
"./$found_la" ;;
17831 libdir
="$save_libdir"
17832 for dep
in $dependency_libs; do
17835 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17836 if test "X$additional_libdir" != "X/usr/lib"; then
17838 if test "X$additional_libdir" = "X/usr/local/lib"; then
17839 if test -n "$GCC"; then
17841 linux
*) haveit
=yes;;
17845 if test -z "$haveit"; then
17847 for x
in $LDFLAGS $LIBXXHASH; do
17849 acl_save_prefix
="$prefix"
17850 prefix
="$acl_final_prefix"
17851 acl_save_exec_prefix
="$exec_prefix"
17852 exec_prefix
="$acl_final_exec_prefix"
17854 exec_prefix
="$acl_save_exec_prefix"
17855 prefix
="$acl_save_prefix"
17857 if test "X$x" = "X-L$additional_libdir"; then
17862 if test -z "$haveit"; then
17863 if test -d "$additional_libdir"; then
17864 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-L$additional_libdir"
17868 for x
in $LDFLAGS $LTLIBXXHASH; do
17870 acl_save_prefix
="$prefix"
17871 prefix
="$acl_final_prefix"
17872 acl_save_exec_prefix
="$exec_prefix"
17873 exec_prefix
="$acl_final_exec_prefix"
17875 exec_prefix
="$acl_save_exec_prefix"
17876 prefix
="$acl_save_prefix"
17878 if test "X$x" = "X-L$additional_libdir"; then
17883 if test -z "$haveit"; then
17884 if test -d "$additional_libdir"; then
17885 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-L$additional_libdir"
17892 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17893 if test "$enable_rpath" != no
; then
17895 for x
in $rpathdirs; do
17896 if test "X$x" = "X$dir"; then
17901 if test -z "$haveit"; then
17902 rpathdirs
="$rpathdirs $dir"
17905 for x
in $ltrpathdirs; do
17906 if test "X$x" = "X$dir"; then
17911 if test -z "$haveit"; then
17912 ltrpathdirs
="$ltrpathdirs $dir"
17917 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17920 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17923 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$dep"
17924 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }$dep"
17930 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }-l$name"
17931 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-l$name"
17937 if test "X$rpathdirs" != "X"; then
17938 if test -n "$hardcode_libdir_separator"; then
17940 for found_dir
in $rpathdirs; do
17941 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17943 acl_save_libdir
="$libdir"
17945 eval flag
=\"$hardcode_libdir_flag_spec\"
17946 libdir
="$acl_save_libdir"
17947 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
17949 for found_dir
in $rpathdirs; do
17950 acl_save_libdir
="$libdir"
17951 libdir
="$found_dir"
17952 eval flag
=\"$hardcode_libdir_flag_spec\"
17953 libdir
="$acl_save_libdir"
17954 LIBXXHASH
="${LIBXXHASH}${LIBXXHASH:+ }$flag"
17958 if test "X$ltrpathdirs" != "X"; then
17959 for found_dir
in $ltrpathdirs; do
17960 LTLIBXXHASH
="${LTLIBXXHASH}${LTLIBXXHASH:+ }-R$found_dir"
17965 ac_save_CPPFLAGS
="$CPPFLAGS"
17967 for element
in $INCXXHASH; do
17969 for x
in $CPPFLAGS; do
17971 acl_save_prefix
="$prefix"
17972 prefix
="$acl_final_prefix"
17973 acl_save_exec_prefix
="$exec_prefix"
17974 exec_prefix
="$acl_final_exec_prefix"
17976 exec_prefix
="$acl_save_exec_prefix"
17977 prefix
="$acl_save_prefix"
17979 if test "X$x" = "X$element"; then
17984 if test -z "$haveit"; then
17985 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxxhash" >&5
17991 $as_echo_n "checking for libxxhash... " >&6; }
17992 if ${ac_cv_libxxhash+:} false
; then :
17993 $as_echo_n "(cached) " >&6
17996 ac_save_LIBS
="$LIBS"
17997 LIBS
="$LIBS $LIBXXHASH"
17998 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17999 /* end confdefs.h. */
18000 #include <xxhash.h>
18004 XXH32("foo", 3, 0);
18010 if ac_fn_c_try_link
"$LINENO"; then :
18011 ac_cv_libxxhash
=yes
18015 rm -f core conftest.err conftest.
$ac_objext \
18016 conftest
$ac_exeext conftest.
$ac_ext
18017 LIBS
="$ac_save_LIBS"
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libxxhash" >&5
18021 $as_echo "$ac_cv_libxxhash" >&6; }
18022 if test "$ac_cv_libxxhash" = yes; then
18025 $as_echo "#define HAVE_LIBXXHASH 1" >>confdefs.h
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libxxhash" >&5
18028 $as_echo_n "checking how to link with libxxhash... " >&6; }
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXXHASH" >&5
18030 $as_echo "$LIBXXHASH" >&6; }
18033 CPPFLAGS
="$ac_save_CPPFLAGS"
18043 if test "$HAVE_LIBXXHASH" != yes; then
18044 if test "$with_xxhash" = yes; then
18045 as_fn_error $?
"xxhash is missing or unusable" "$LINENO" 5
18048 if test "x$with_xxhash" = "xauto"; then
18049 with_xxhash
="$HAVE_LIBXXHASH"
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xxhash" >&5
18054 $as_echo_n "checking whether to use xxhash... " >&6; }
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xxhash" >&5
18056 $as_echo "$with_xxhash" >&6; }
18060 if test "${nativefile}" != ""; then
18061 case "${nativefile}" in
18062 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
18063 * ) GDB_NM_FILE
="${nativefile}"
18065 ac_config_links
="$ac_config_links nm.h:$GDB_NM_FILE"
18068 cat >>confdefs.h
<<_ACEOF
18069 #define GDB_NM_FILE "${GDB_NM_FILE}"
18077 for ac_prog
in xsltproc
18079 # Extract the first word of "$ac_prog", so it can be a program name with args.
18080 set dummy
$ac_prog; ac_word
=$2
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18082 $as_echo_n "checking for $ac_word... " >&6; }
18083 if ${ac_cv_path_XSLTPROC+:} false
; then :
18084 $as_echo_n "(cached) " >&6
18088 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
18091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18092 for as_dir
in $PATH
18095 test -z "$as_dir" && as_dir
=.
18096 for ac_exec_ext
in '' $ac_executable_extensions; do
18097 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
18098 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
18099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18109 XSLTPROC
=$ac_cv_path_XSLTPROC
18110 if test -n "$XSLTPROC"; then
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
18112 $as_echo "$XSLTPROC" >&6; }
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18115 $as_echo "no" >&6; }
18119 test -n "$XSLTPROC" && break
18121 test -n "$XSLTPROC" || XSLTPROC
="missing"
18123 if test "x$USE_MAINTAINER_MODE" = xyes
; then
18124 if test "${XSLTPROC}" = missing
; then
18125 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
18133 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
18137 # Check whether we will enable the inclusion of unit tests when
18140 # The default value of this option changes depending whether we're on
18141 # development mode (in which case it's "true") or not (in which case
18143 # Check whether --enable-unit-tests was given.
18144 if test "${enable_unit_tests+set}" = set; then :
18145 enableval
=$enable_unit_tests; case "${enableval}" in
18146 yes) enable_unittests
=true
;;
18147 no
) enable_unittests
=false
;;
18148 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
18151 enable_unittests
=$development
18155 if $enable_unittests; then
18157 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
18160 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) gdbsupport/selftest.o selftest-arch.o"
18161 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) gdbsupport/selftest.c selftest-arch.c"
18167 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
18168 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
18169 if test "x$GDB_TRANSFORM_NAME" = x
; then
18170 GDB_TRANSFORM_NAME
=gdb
18175 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
18176 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
18177 if test "x$GCORE_TRANSFORM_NAME" = x
; then
18178 GCORE_TRANSFORM_NAME
=gcore
18182 ac_config_files
="$ac_config_files gcore"
18184 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
18187 cat >confcache
<<\_ACEOF
18188 # This file is a shell script that caches the results of configure
18189 # tests run on this system so they can be shared between configure
18190 # scripts and configure runs, see configure's option --config-cache.
18191 # It is not useful on other systems. If it contains results you don't
18192 # want to keep, you may remove or edit it.
18194 # config.status only pays attention to the cache file if you give it
18195 # the --recheck option to rerun configure.
18197 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18198 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18199 # following values.
18203 # The following way of writing the cache mishandles newlines in values,
18204 # but we know of no workaround that is simple, portable, and efficient.
18205 # So, we kill variables containing newlines.
18206 # Ultrix sh set writes to stderr and can't be redirected directly,
18207 # and sets the high bit in the cache file unless we assign to the vars.
18209 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18210 eval ac_val
=\$
$ac_var
18214 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18215 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18218 _ | IFS | as_nl
) ;; #(
18219 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
18220 *) { eval $ac_var=; unset $ac_var;} ;;
18226 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18227 *${as_nl}ac_space
=\
*)
18228 # `set' does not quote correctly, so add quotes: double-quote
18229 # substitution turns \\\\ into \\, and sed turns \\ into \.
18232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18235 # `set' quotes correctly as required by POSIX, so do not add quotes.
18236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18245 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18247 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18249 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
18250 if test -w "$cache_file"; then
18251 if test "x$cache_file" != "x/dev/null"; then
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18253 $as_echo "$as_me: updating cache $cache_file" >&6;}
18254 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
18255 cat confcache
>"$cache_file"
18257 case $cache_file in #(
18259 mv -f confcache
"$cache_file"$$
&&
18260 mv -f "$cache_file"$$
"$cache_file" ;; #(
18262 mv -f confcache
"$cache_file" ;;
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18268 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18273 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
18274 # Let make expand exec_prefix.
18275 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
18277 DEFS
=-DHAVE_CONFIG_H
18282 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
18283 # 1. Remove the extension, and $U if already installed.
18284 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
18285 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
18286 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18287 # will be set to the directory where LIBOBJS objects are built.
18288 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18289 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
18291 LIBOBJS
=$ac_libobjs
18293 LTLIBOBJS
=$ac_ltlibobjs
18296 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18297 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
18298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18300 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
18301 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
18302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18304 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
18305 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
18306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18310 : "${CONFIG_STATUS=./config.status}"
18312 ac_clean_files_save
=$ac_clean_files
18313 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18315 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18317 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18319 # Generated by $as_me.
18320 # Run this file to recreate the current configuration.
18321 # Compiler output produced by configure, useful for debugging
18322 # configure, is in config.log if it exists.
18325 ac_cs_recheck=false
18328 SHELL=\${CONFIG_SHELL-$SHELL}
18331 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
18332 ## -------------------- ##
18333 ## M4sh Initialization. ##
18334 ## -------------------- ##
18336 # Be more Bourne compatible
18337 DUALCASE
=1; export DUALCASE
# for MKS sh
18338 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
18341 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18342 # is contrary to our usage. Disable this feature.
18343 alias -g '${1+"$@"}'='"$@"'
18344 setopt NO_GLOB_SUBST
18346 case `(set -o) 2>/dev/null` in #(
18358 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18359 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18360 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18362 # Prefer a ksh shell builtin over an external printf program on Solaris,
18363 # but without wasting forks for bash or zsh.
18364 if test -z "$BASH_VERSION$ZSH_VERSION" \
18365 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18366 as_echo='print
-r --'
18367 as_echo_n='print
-rn --'
18368 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18369 as_echo='printf %s
\n'
18370 as_echo_n='printf %s
'
18372 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18373 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18374 as_echo_n='/usr
/ucb
/echo -n'
18376 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18377 as_echo_n_body='eval
18381 expr "X$arg" : "X\\(.*\\)$as_nl";
18382 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18384 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18386 export as_echo_n_body
18387 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18389 export as_echo_body
18390 as_echo='sh
-c $as_echo_body as_echo
'
18393 # The user is always right.
18394 if test "${PATH_SEPARATOR+set}" != set; then
18396 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18397 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18404 # We need space, tab and new line, in precisely that order. Quoting is
18405 # there to prevent editors from complaining about space-tab.
18406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18407 # splitting by setting IFS to empty value.)
18410 # Find who we are. Look in the path if we contain no directory separator.
18413 *[\\/]* ) as_myself=$0 ;;
18414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18415 for as_dir in $PATH
18418 test -z "$as_dir" && as_dir=.
18419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18425 # We did not find ourselves, most probably we were run as `sh COMMAND'
18426 # in which case we are not to be found in the path.
18427 if test "x$as_myself" = x
; then
18430 if test ! -f "$as_myself"; then
18431 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18435 # Unset variables that we do not need and which cause bugs (e.g. in
18436 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18437 # suppresses any "Segmentation fault" message there. '((' could
18438 # trigger a bug in pdksh 5.2.14.
18439 for as_var
in BASH_ENV ENV MAIL MAILPATH
18440 do eval test x\
${$as_var+set} = xset \
18441 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18454 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18457 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18458 # ----------------------------------------
18459 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18460 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18461 # script with STATUS, using 1 if that was 0.
18464 as_status
=$1; test $as_status -eq 0 && as_status
=1
18466 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18467 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18469 $as_echo "$as_me: error: $2" >&2
18470 as_fn_exit
$as_status
18474 # as_fn_set_status STATUS
18475 # -----------------------
18476 # Set $? to STATUS, without forking.
18477 as_fn_set_status
()
18480 } # as_fn_set_status
18482 # as_fn_exit STATUS
18483 # -----------------
18484 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18488 as_fn_set_status
$1
18494 # Portably unset VAR.
18497 { eval $1=; unset $1;}
18499 as_unset
=as_fn_unset
18500 # as_fn_append VAR VALUE
18501 # ----------------------
18502 # Append the text in VALUE to the end of the definition contained in VAR. Take
18503 # advantage of any shell optimizations that allow amortized linear growth over
18504 # repeated appends, instead of the typical quadratic growth present in naive
18506 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18507 eval 'as_fn_append ()
18518 # as_fn_arith ARG...
18519 # ------------------
18520 # Perform arithmetic evaluation on the ARGs, and store the result in the
18521 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18522 # must be portable across $(()) and expr.
18523 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18524 eval 'as_fn_arith ()
18531 as_val
=`expr "$@" || test $? -eq 1`
18536 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18537 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18543 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18544 as_basename
=basename
18549 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18555 as_me
=`$as_basename -- "$0" ||
18556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18557 X"$0" : 'X\(//\)$' \| \
18558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18560 sed '/^.*\/\([^/][^/]*\)\/*$/{
18574 # Avoid depending upon Character Ranges.
18575 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18576 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18577 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18578 as_cr_digits
='0123456789'
18579 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18581 ECHO_C
= ECHO_N
= ECHO_T
=
18582 case `echo -n x` in #(((((
18584 case `echo 'xy\c'` in
18585 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18587 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18594 rm -f conf$$ conf$$.exe conf$$.
file
18595 if test -d conf$$.dir
; then
18596 rm -f conf$$.dir
/conf$$.
file
18599 mkdir conf$$.dir
2>/dev
/null
18601 if (echo >conf$$.
file) 2>/dev
/null
; then
18602 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18604 # ... but there are two gotchas:
18605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18607 # In both cases, we have to default to `cp -pR'.
18608 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18610 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18618 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18619 rmdir conf$$.dir
2>/dev
/null
18624 # Create "$as_dir" as a directory, including parents if necessary.
18629 -*) as_dir
=.
/$as_dir;;
18631 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18635 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18636 *) as_qdir
=$as_dir;;
18638 as_dirs
="'$as_qdir' $as_dirs"
18639 as_dir
=`$as_dirname -- "$as_dir" ||
18640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18641 X"$as_dir" : 'X\(//\)[^/]' \| \
18642 X"$as_dir" : 'X\(//\)$' \| \
18643 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18644 $as_echo X"$as_dir" |
18645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18649 /^X\(\/\/\)[^/].*/{
18662 test -d "$as_dir" && break
18664 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18665 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18669 if mkdir
-p .
2>/dev
/null
; then
18670 as_mkdir_p
='mkdir -p "$as_dir"'
18672 test -d .
/-p && rmdir .
/-p
18677 # as_fn_executable_p FILE
18678 # -----------------------
18679 # Test if FILE is an executable regular file.
18680 as_fn_executable_p
()
18682 test -f "$1" && test -x "$1"
18683 } # as_fn_executable_p
18684 as_test_x
='test -x'
18685 as_executable_p
=as_fn_executable_p
18687 # Sed expression to map a string onto a valid CPP name.
18688 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18690 # Sed expression to map a string onto a valid variable name.
18691 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18695 ## ----------------------------------- ##
18696 ## Main body of $CONFIG_STATUS script. ##
18697 ## ----------------------------------- ##
18699 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18702 # Save the log message, to keep $0 and so on meaningful, and to
18703 # report actual input values of CONFIG_FILES etc. instead of their
18704 # values after options handling.
18706 This file was extended by $as_me, which was
18707 generated by GNU Autoconf 2.69. Invocation command line was
18709 CONFIG_FILES = $CONFIG_FILES
18710 CONFIG_HEADERS = $CONFIG_HEADERS
18711 CONFIG_LINKS = $CONFIG_LINKS
18712 CONFIG_COMMANDS = $CONFIG_COMMANDS
18715 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18720 case $ac_config_files in *"
18721 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18724 case $ac_config_headers in *"
18725 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18730 # Files that config.status was made for.
18731 config_files="$ac_config_files"
18732 config_headers="$ac_config_headers"
18733 config_links="$ac_config_links"
18734 config_commands="$ac_config_commands"
18738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18740 \`$as_me' instantiates files and other configuration actions
18741 from templates according to the current configuration. Unless the files
18742 and actions are specified as TAGs, all are instantiated by default.
18744 Usage: $0 [OPTION]... [TAG]...
18746 -h, --help print this help, then exit
18747 -V, --version print version number and configuration settings, then exit
18748 --config print configuration, then exit
18749 -q, --quiet, --silent
18750 do not print progress messages
18751 -d, --debug don't remove temporary files
18752 --recheck update $as_me by reconfiguring in the same conditions
18753 --file=FILE[:TEMPLATE]
18754 instantiate the configuration file FILE
18755 --header=FILE[:TEMPLATE]
18756 instantiate the configuration header FILE
18758 Configuration files:
18761 Configuration headers:
18764 Configuration links:
18767 Configuration commands:
18770 Report bugs to the package provider."
18773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18774 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18777 configured by $0, generated by GNU Autoconf 2.69,
18778 with options \\"\$ac_cs_config\\"
18780 Copyright (C) 2012 Free Software Foundation, Inc.
18781 This config.status script is free software; the Free Software Foundation
18782 gives unlimited permission to copy, distribute and modify it."
18788 test -n "\$AWK" || AWK=awk
18791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18792 # The default lists apply if the user does not specify any file.
18798 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18799 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18803 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18815 # Handling of the options.
18816 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18818 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18819 $as_echo "$ac_cs_version"; exit ;;
18820 --config |
--confi |
--conf |
--con |
--co |
--c )
18821 $as_echo "$ac_cs_config"; exit ;;
18822 --debug |
--debu |
--deb |
--de |
--d |
-d )
18824 --file |
--fil |
--fi |
--f )
18827 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18828 '') as_fn_error $?
"missing file argument" ;;
18830 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18831 ac_need_defaults
=false
;;
18832 --header |
--heade |
--head |
--hea )
18835 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18837 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18838 ac_need_defaults
=false
;;
18840 # Conflict between --help and --header
18841 as_fn_error $?
"ambiguous option: \`$1'
18842 Try \`$0 --help' for more information.";;
18843 --help |
--hel |
-h )
18844 $as_echo "$ac_cs_usage"; exit ;;
18845 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18846 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18849 # This is an error.
18850 -*) as_fn_error $?
"unrecognized option: \`$1'
18851 Try \`$0 --help' for more information." ;;
18853 *) as_fn_append ac_config_targets
" $1"
18854 ac_need_defaults
=false
;;
18860 ac_configure_extra_args
=
18862 if $ac_cs_silent; then
18864 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18869 if \$ac_cs_recheck; then
18870 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18872 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18873 CONFIG_SHELL='$SHELL'
18874 export CONFIG_SHELL
18879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18883 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18884 ## Running $as_me. ##
18890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18894 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18895 GDB_NM_FILE=$GDB_NM_FILE
18899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18901 # Handling of arguments.
18902 for ac_config_target
in $ac_config_targets
18904 case $ac_config_target in
18905 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18906 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18907 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18908 "nm.h") CONFIG_LINKS
="$CONFIG_LINKS nm.h:$GDB_NM_FILE" ;;
18909 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18910 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18911 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18912 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
18913 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18914 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18916 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18921 # If the user did not use the arguments to specify the items to instantiate,
18922 # then the envvar interface is used. Set only those that are not.
18923 # We use the long form for the default assignment because of an extremely
18924 # bizarre bug on SunOS 4.1.3.
18925 if $ac_need_defaults; then
18926 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18927 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18928 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18929 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18932 # Have a temporary directory for convenience. Make it in the build tree
18933 # simply because there is no reason against having it here, and in addition,
18934 # creating and moving files from /tmp can sometimes cause problems.
18935 # Hook for its removal unless debugging.
18936 # Note that there is a small window in which the directory will not be cleaned:
18937 # after its creation but before its name has been assigned to `$tmp'.
18941 trap 'exit_status=$?
18942 : "${ac_tmp:=$tmp}"
18943 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18945 trap 'as_fn_exit 1' 1 2 13 15
18947 # Create a (secure) tmp directory for tmp files.
18950 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18954 tmp
=.
/conf$$
-$RANDOM
18955 (umask 077 && mkdir
"$tmp")
18956 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18959 # Set up the scripts for CONFIG_FILES section.
18960 # No need to generate them if there are no CONFIG_FILES.
18961 # This happens for instance with `./config.status config.h'.
18962 if test -n "$CONFIG_FILES"; then
18964 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18965 ac_cs_awk_getline
=:
18966 ac_cs_awk_pipe_init
=
18967 ac_cs_awk_read_file
='
18968 while ((getline aline < (F[key])) > 0)
18971 ac_cs_awk_pipe_fini
=
18973 ac_cs_awk_getline
=false
18974 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18975 ac_cs_awk_read_file
='
18977 print "cat " F[key] " &&"
18978 '$ac_cs_awk_pipe_init
18979 # The final `:' finishes the AND list.
18980 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18982 ac_cr
=`echo X | tr X '\015'`
18983 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18984 # But we know of no other shell where ac_cr would be empty at this
18985 # point, so we can use a bashism as a fallback.
18986 if test "x$ac_cr" = x
; then
18987 eval ac_cr
=\$
\'\\r
\'
18989 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18990 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18993 ac_cs_awk_cr
=$ac_cr
18996 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18999 # Create commands to substitute file output variables.
19001 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19002 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19003 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19006 } >conf$
$files.sh
&&
19007 . .
/conf$
$files.sh ||
19008 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19009 rm -f conf$
$files.sh
19012 echo "cat >conf$$subs.awk <<_ACEOF" &&
19013 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19015 } >conf$$subs.sh ||
19016 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19017 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19019 for ac_last_try in false false false false false :; do
19020 . ./conf$$subs.sh ||
19021 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19023 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19024 if test $ac_delim_n = $ac_delim_num; then
19026 elif $ac_last_try; then
19027 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19029 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19032 rm -f conf$$subs.sh
19034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19035 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19039 s/^/S["/; s
/!.
*/"]=/
19049 s/\(.\{148\}\)..*/\1/
19051 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19056 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19063 s/\(.\{148\}\)..*/\1/
19065 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19069 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19074 ' <conf$$subs.awk | sed '
19079 ' >>$CONFIG_STATUS || ac_write_fail=1
19080 rm -f conf$$subs.awk
19081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19083 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19084 for (key in S) S_is_set[key] = 1
19086 \$ac_cs_awk_pipe_init
19090 nfields = split(line, field, "@
")
19092 len = length(field[1])
19093 for (i = 2; i < nfields; i++) {
19095 keylen = length(key)
19096 if (S_is_set[key]) {
19098 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19099 len += length(value) + length(field[++i])
19104 if (nfields == 3 && !substed) {
19106 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19107 \$ac_cs_awk_read_file
19113 \$ac_cs_awk_pipe_fini
19116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19117 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19118 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19121 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19122 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19125 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19126 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19127 # trailing colons and then remove the whole line if VPATH becomes empty
19128 # (actually we leave an empty line to preserve line numbers).
19129 if test "x
$srcdir" = x.; then
19130 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19149 fi # test -n "$CONFIG_FILES"
19151 # Set up the scripts for CONFIG_HEADERS section.
19152 # No need to generate them if there are no CONFIG_HEADERS.
19153 # This happens for instance with `./config.status Makefile'.
19154 if test -n "$CONFIG_HEADERS"; then
19155 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
19159 # Transform confdefs.h into an awk script `defines.awk', embedded as
19160 # here-document in config.status, that substitutes the proper values into
19161 # config.h.in to produce config.h.
19163 # Create a delimiter string that does not exist in confdefs.h, to ease
19164 # handling of long lines.
19166 for ac_last_try in false false :; do
19167 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
19168 if test -z "$ac_tt"; then
19170 elif $ac_last_try; then
19171 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
19173 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19177 # For the awk script, D is an array of macro values keyed by name,
19178 # likewise P contains macro parameters if any. Preserve backslash
19179 # newline sequences.
19181 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19183 s/.\{148\}/&'"$ac_delim"'/g
19186 s/^[ ]*#[ ]*define[ ][ ]*/ /
19193 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
19195 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
19199 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
19200 D["\
1"]=" \
3\\\\\\n
"\\/p
19202 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
19207 s/.\{148\}/&'"$ac_delim"'/g
19212 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
19215 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
19217 ' <confdefs.h | sed '
19218 s/'"$ac_delim"'/"\\\
19219 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19222 for (key in D) D_is_set[key] = 1
19225 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19227 split(line, arg, " ")
19228 if (arg[1] == "#") {
19232 defundef
= substr
(arg
[1], 2)
19235 split(mac1
, mac2
, "(") #)
19237 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
19238 if (D_is_set
[macro
]) {
19239 # Preserve the white space surrounding the "#".
19240 print prefix
"define", macro P
[macro
] D
[macro
]
19243 # Replace #undef with comments. This is necessary, for example,
19244 # in the case of _POSIX_SOURCE, which is predefined and required
19245 # on some systems where configure will not decide to define it.
19246 if (defundef
== "undef") {
19247 print
"/*", prefix defundef
, macro
, "*/"
19255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19256 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
19257 fi # test -n "$CONFIG_HEADERS"
19260 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
19265 :[FHLC
]) ac_mode
=$ac_tag; continue;;
19267 case $ac_mode$ac_tag in
19269 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
19270 :[FH
]-) ac_tag
=-:-;;
19271 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
19288 -) ac_f
="$ac_tmp/stdin";;
19289 *) # Look for the file first in the build tree, then in the source tree
19290 # (if the path is not absolute). The absolute path cannot be DOS-style,
19291 # because $ac_f cannot contain `:'.
19295 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
19297 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19299 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19300 as_fn_append ac_file_inputs
" '$ac_f'"
19303 # Let's still pretend it is `configure' which instantiates (i.e., don't
19304 # use $as_me), people would be surprised to read:
19305 # /* config.h. Generated by config.status. */
19306 configure_input
='Generated from '`
19307 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19309 if test x
"$ac_file" != x-
; then
19310 configure_input
="$ac_file. $configure_input"
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19312 $as_echo "$as_me: creating $ac_file" >&6;}
19314 # Neutralize special characters interpreted by sed in replacement strings.
19315 case $configure_input in #(
19316 *\
&* |
*\|
* |
*\\* )
19317 ac_sed_conf_input
=`$as_echo "$configure_input" |
19318 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19319 *) ac_sed_conf_input
=$configure_input;;
19323 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
19324 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
19329 ac_dir
=`$as_dirname -- "$ac_file" ||
19330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19331 X"$ac_file" : 'X\(//\)[^/]' \| \
19332 X"$ac_file" : 'X\(//\)$' \| \
19333 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19334 $as_echo X"$ac_file" |
19335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19339 /^X\(\/\/\)[^/].*/{
19352 as_dir
="$ac_dir"; as_fn_mkdir_p
19356 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19358 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19359 # A ".." for each directory in $ac_dir_suffix.
19360 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19361 case $ac_top_builddir_sub in
19362 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19363 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19366 ac_abs_top_builddir
=$ac_pwd
19367 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19368 # for backward compatibility:
19369 ac_top_builddir
=$ac_top_build_prefix
19372 .
) # We are building in place.
19374 ac_top_srcdir
=$ac_top_builddir_sub
19375 ac_abs_top_srcdir
=$ac_pwd ;;
19376 [\\/]* | ?
:[\\/]* ) # Absolute name.
19377 ac_srcdir
=$srcdir$ac_dir_suffix;
19378 ac_top_srcdir
=$srcdir
19379 ac_abs_top_srcdir
=$srcdir ;;
19380 *) # Relative name.
19381 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19382 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19383 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19385 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19395 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19396 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19401 # If the template does not know about datarootdir, expand it.
19402 # FIXME: This hack should be removed a few years after 2.60.
19403 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19414 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19415 *datarootdir
*) ac_datarootdir_seen
=yes;;
19416 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19418 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19421 ac_datarootdir_hack='
19422 s&@datadir@&$datadir&g
19423 s&@docdir@&$docdir&g
19424 s&@infodir@&$infodir&g
19425 s&@localedir@&$localedir&g
19426 s&@mandir@&$mandir&g
19427 s&\\\${datarootdir}&$datarootdir&g' ;;
19431 # Neutralize VPATH when `$srcdir' = `.'.
19432 # Shell code in configure.ac might set extrasub.
19433 # FIXME: do we really want to maintain this feature?
19434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19435 ac_sed_extra="$ac_vpsub
19438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19440 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19441 s|@configure_input@|
$ac_sed_conf_input|
;t t
19442 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19443 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19444 s
&@srcdir@
&$ac_srcdir&;t t
19445 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19446 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19447 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19448 s
&@builddir@
&$ac_builddir&;t t
19449 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19450 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19451 s
&@INSTALL@
&$ac_INSTALL&;t t
19452 $ac_datarootdir_hack
19454 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19455 if $ac_cs_awk_getline; then
19456 $AWK -f "$ac_tmp/subs.
awk"
19458 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19460 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19462 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19463 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19464 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19465 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19467 which seems to be undefined. Please make sure it is defined" >&5
19468 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19469 which seems to be undefined. Please make sure it is defined" >&2;}
19471 rm -f "$ac_tmp/stdin"
19473 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19474 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19482 if test x"$ac_file" != x-; then
19484 $as_echo "/* $configure_input */" \
19485 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19486 } >"$ac_tmp/config.h" \
19487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19488 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19490 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19493 mv "$ac_tmp/config.h" "$ac_file" \
19494 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19497 $as_echo "/* $configure_input */" \
19498 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19499 || as_fn_error $? "could not create -" "$LINENO" 5
19507 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
19510 # Prefer the file from the source tree if names are identical.
19511 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19512 ac_source=$srcdir/$ac_source
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19516 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19518 if test ! -r "$ac_source"; then
19519 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19523 # Try a relative symlink, then a hard link, then a copy.
19525 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19526 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19528 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19529 ln "$ac_source" "$ac_file" 2>/dev/null ||
19530 cp -p "$ac_source" "$ac_file" ||
19531 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19534 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19535 $as_echo "$as_me: executing $ac_file commands" >&6;}
19540 case $ac_file$ac_mode in
19541 "config.h":H) echo > stamp-h ;;
19542 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19543 "nm.h":L) echo > stamp-nmh ;;
19544 "gcore":F) chmod +x gcore ;;
19552 ac_clean_files=$ac_clean_files_save
19554 test $ac_write_fail = 0 ||
19555 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19558 # configure is writing to config.log, and then calls config.status.
19559 # config.status does its own redirection, appending to config.log.
19560 # Unfortunately, on DOS this fails, as config.log is still kept open
19561 # by configure, so config.status won't be able to
write to it
; its
19562 # output is simply discarded. So we exec the FD to /dev/null,
19563 # effectively closing config.log, so it can be properly (re)opened and
19564 # appended to by config.status. When coming back to configure, we
19565 # need to make the FD available again.
19566 if test "$no_create" != yes; then
19568 ac_config_status_args
=
19569 test "$silent" = yes &&
19570 ac_config_status_args
="$ac_config_status_args --quiet"
19572 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19574 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19575 # would make configure fail if this is the last instruction.
19576 $ac_cs_success || as_fn_exit
1
19580 # CONFIG_SUBDIRS section.
19582 if test "$no_recursion" != yes; then
19584 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19585 # so they do not pile up.
19586 ac_sub_configure_args
=
19588 eval "set x $ac_configure_args"
19592 if test -n "$ac_prev"; then
19597 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19598 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19599 ac_prev
=cache_file
;;
19600 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19601 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19604 --config-cache |
-C)
19606 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19608 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19610 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19612 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19614 --disable-option-checking)
19618 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19620 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19624 # Always prepend --prefix to ensure using the same prefix
19625 # in subdir configurations.
19626 ac_arg
="--prefix=$prefix"
19628 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19630 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19633 if test "$silent" = yes; then
19634 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19637 # Always prepend --disable-option-checking to silence warnings, since
19638 # different subdirs can have different --enable and --with options.
19639 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19642 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19644 # Do not complain, so a configure script can configure whichever
19645 # parts of a large source tree are present.
19646 test -d "$srcdir/$ac_dir" ||
continue
19648 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19649 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19650 $as_echo "$ac_msg" >&6
19651 as_dir
="$ac_dir"; as_fn_mkdir_p
19655 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19657 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19658 # A ".." for each directory in $ac_dir_suffix.
19659 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19660 case $ac_top_builddir_sub in
19661 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19662 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19665 ac_abs_top_builddir
=$ac_pwd
19666 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19667 # for backward compatibility:
19668 ac_top_builddir
=$ac_top_build_prefix
19671 .
) # We are building in place.
19673 ac_top_srcdir
=$ac_top_builddir_sub
19674 ac_abs_top_srcdir
=$ac_pwd ;;
19675 [\\/]* | ?
:[\\/]* ) # Absolute name.
19676 ac_srcdir
=$srcdir$ac_dir_suffix;
19677 ac_top_srcdir
=$srcdir
19678 ac_abs_top_srcdir
=$srcdir ;;
19679 *) # Relative name.
19680 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19681 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19682 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19684 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19689 # Check for guested configure; otherwise get Cygnus style configure.
19690 if test -f "$ac_srcdir/configure.gnu"; then
19691 ac_sub_configure
=$ac_srcdir/configure.gnu
19692 elif test -f "$ac_srcdir/configure"; then
19693 ac_sub_configure
=$ac_srcdir/configure
19694 elif test -f "$ac_srcdir/configure.in"; then
19695 # This should be Cygnus configure.
19696 ac_sub_configure
=$ac_aux_dir/configure
19698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19703 # The recursion is here.
19704 if test -n "$ac_sub_configure"; then
19705 # Make the cache file name correct relative to the subdirectory.
19706 case $cache_file in
19707 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19708 *) # Relative name.
19709 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19712 { $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
19713 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19714 # The eval makes quoting arguments work.
19715 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19716 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19717 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19723 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19725 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}