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
633 HAVE_NATIVE_GCORE_HOST
727 READLINE_TEXI_INCFLAG
751 HAVE_NATIVE_GCORE_TARGET
778 INSTALL_STRIP_PROGRAM
807 MAINTAINER_MODE_FALSE
836 program_transform_name
847 ac_subst_files
='nat_makefile_frag'
849 enable_option_checking
850 enable_maintainer_mode
853 with_separate_debug_dir
855 with_relocated_sources
857 with_auto_load_safe_path
882 enable_source_highlight
890 enable_build_warnings
891 enable_gdb_build_warnings
901 with_libbabeltrace_prefix
904 ac_precious_vars
='build_alias
921 ac_subdirs_all
='testsuite
925 # Initialize some variables set by options.
927 ac_init_version
=false
928 ac_unrecognized_opts
=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
939 program_transform_name
=s
,x
,x
,
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir
='${exec_prefix}/bin'
954 sbindir
='${exec_prefix}/sbin'
955 libexecdir
='${exec_prefix}/libexec'
956 datarootdir
='${prefix}/share'
957 datadir
='${datarootdir}'
958 sysconfdir
='${prefix}/etc'
959 sharedstatedir
='${prefix}/com'
960 localstatedir
='${prefix}/var'
961 includedir
='${prefix}/include'
962 oldincludedir
='/usr/include'
963 docdir
='${datarootdir}/doc/${PACKAGE}'
964 infodir
='${datarootdir}/info'
969 libdir
='${exec_prefix}/lib'
970 localedir
='${datarootdir}/locale'
971 mandir
='${datarootdir}/man'
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\
$ac_option
985 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990 # Accept the important Cygnus configure options, so we can diagnose typos.
992 case $ac_dashdash$ac_option in
996 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
998 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1001 -build |
--build |
--buil |
--bui |
--bu)
1002 ac_prev
=build_alias
;;
1003 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1004 build_alias
=$ac_optarg ;;
1006 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1007 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1008 ac_prev
=cache_file
;;
1009 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1010 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1011 cache_file
=$ac_optarg ;;
1013 --config-cache |
-C)
1014 cache_file
=config.cache
;;
1016 -datadir |
--datadir |
--datadi |
--datad)
1018 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1019 datadir
=$ac_optarg ;;
1021 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1022 |
--dataroo |
--dataro |
--datar)
1023 ac_prev
=datarootdir
;;
1024 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1025 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1026 datarootdir
=$ac_optarg ;;
1028 -disable-* |
--disable-*)
1029 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1032 as_fn_error $?
"invalid feature name: $ac_useropt"
1033 ac_useropt_orig
=$ac_useropt
1034 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "enable_
$ac_useropt"
1039 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040 ac_unrecognized_sep
=', ';;
1042 eval enable_
$ac_useropt=no
;;
1044 -docdir |
--docdir |
--docdi |
--doc |
--do)
1046 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1047 docdir
=$ac_optarg ;;
1049 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1051 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1052 dvidir
=$ac_optarg ;;
1054 -enable-* |
--enable-*)
1055 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1058 as_fn_error $?
"invalid feature name: $ac_useropt"
1059 ac_useropt_orig
=$ac_useropt
1060 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_
$ac_useropt"
1065 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep
=', ';;
1068 eval enable_
$ac_useropt=\
$ac_optarg ;;
1070 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1071 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1072 |
--exec |
--exe |
--ex)
1073 ac_prev
=exec_prefix
;;
1074 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1075 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1076 |
--exec=* |
--exe=* |
--ex=*)
1077 exec_prefix
=$ac_optarg ;;
1079 -gas |
--gas |
--ga |
--g)
1080 # Obsolete; use --with-gas.
1083 -help |
--help |
--hel |
--he |
-h)
1084 ac_init_help
=long
;;
1085 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1086 ac_init_help
=recursive
;;
1087 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1088 ac_init_help
=short
;;
1090 -host |
--host |
--hos |
--ho)
1091 ac_prev
=host_alias
;;
1092 -host=* |
--host=* |
--hos=* |
--ho=*)
1093 host_alias
=$ac_optarg ;;
1095 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1097 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1099 htmldir
=$ac_optarg ;;
1101 -includedir |
--includedir |
--includedi |
--included |
--include \
1102 |
--includ |
--inclu |
--incl |
--inc)
1103 ac_prev
=includedir
;;
1104 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1105 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1106 includedir
=$ac_optarg ;;
1108 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1110 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1111 infodir
=$ac_optarg ;;
1113 -libdir |
--libdir |
--libdi |
--libd)
1115 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1116 libdir
=$ac_optarg ;;
1118 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1119 |
--libexe |
--libex |
--libe)
1120 ac_prev
=libexecdir
;;
1121 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1122 |
--libexe=* |
--libex=* |
--libe=*)
1123 libexecdir
=$ac_optarg ;;
1125 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1126 ac_prev
=localedir
;;
1127 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1128 localedir
=$ac_optarg ;;
1130 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1131 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1132 ac_prev
=localstatedir
;;
1133 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1134 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1135 localstatedir
=$ac_optarg ;;
1137 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1139 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1140 mandir
=$ac_optarg ;;
1142 -nfp |
--nfp |
--nf)
1143 # Obsolete; use --without-fp.
1146 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1147 |
--no-cr |
--no-c |
-n)
1150 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1151 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1154 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1155 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1156 |
--oldin |
--oldi |
--old |
--ol |
--o)
1157 ac_prev
=oldincludedir
;;
1158 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1159 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1160 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1161 oldincludedir
=$ac_optarg ;;
1163 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1165 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1166 prefix
=$ac_optarg ;;
1168 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1169 |
--program-pre |
--program-pr |
--program-p)
1170 ac_prev
=program_prefix
;;
1171 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1172 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1173 program_prefix
=$ac_optarg ;;
1175 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1176 |
--program-suf |
--program-su |
--program-s)
1177 ac_prev
=program_suffix
;;
1178 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1179 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1180 program_suffix
=$ac_optarg ;;
1182 -program-transform-name |
--program-transform-name \
1183 |
--program-transform-nam |
--program-transform-na \
1184 |
--program-transform-n |
--program-transform- \
1185 |
--program-transform |
--program-transfor \
1186 |
--program-transfo |
--program-transf \
1187 |
--program-trans |
--program-tran \
1188 |
--progr-tra |
--program-tr |
--program-t)
1189 ac_prev
=program_transform_name
;;
1190 -program-transform-name=* |
--program-transform-name=* \
1191 |
--program-transform-nam=* |
--program-transform-na=* \
1192 |
--program-transform-n=* |
--program-transform-=* \
1193 |
--program-transform=* |
--program-transfor=* \
1194 |
--program-transfo=* |
--program-transf=* \
1195 |
--program-trans=* |
--program-tran=* \
1196 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1197 program_transform_name
=$ac_optarg ;;
1199 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1201 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1202 pdfdir
=$ac_optarg ;;
1204 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1206 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1209 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1210 |
-silent |
--silent |
--silen |
--sile |
--sil)
1213 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1215 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1217 sbindir
=$ac_optarg ;;
1219 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1220 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1221 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1223 ac_prev
=sharedstatedir
;;
1224 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1225 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1226 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1228 sharedstatedir
=$ac_optarg ;;
1230 -site |
--site |
--sit)
1232 -site=* |
--site=* |
--sit=*)
1235 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1237 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1238 srcdir
=$ac_optarg ;;
1240 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1241 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1242 ac_prev
=sysconfdir
;;
1243 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1244 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1245 sysconfdir
=$ac_optarg ;;
1247 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1248 ac_prev
=target_alias
;;
1249 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1250 target_alias
=$ac_optarg ;;
1252 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1255 -version |
--version |
--versio |
--versi |
--vers |
-V)
1256 ac_init_version
=: ;;
1259 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1262 as_fn_error $?
"invalid package name: $ac_useropt"
1263 ac_useropt_orig
=$ac_useropt
1264 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1269 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep
=', ';;
1272 eval with_
$ac_useropt=\
$ac_optarg ;;
1274 -without-* |
--without-*)
1275 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1278 as_fn_error $?
"invalid package name: $ac_useropt"
1279 ac_useropt_orig
=$ac_useropt
1280 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286 ac_unrecognized_sep
=', ';;
1288 eval with_
$ac_useropt=no
;;
1291 # Obsolete; use --with-x.
1294 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1295 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1296 ac_prev
=x_includes
;;
1297 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1298 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1299 x_includes
=$ac_optarg ;;
1301 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1302 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1303 ac_prev
=x_libraries
;;
1304 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1305 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1306 x_libraries
=$ac_optarg ;;
1308 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1309 Try \`$0 --help' for more information"
1313 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 case $ac_envvar in #(
1316 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1317 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1319 eval $ac_envvar=\
$ac_optarg
1320 export $ac_envvar ;;
1323 # FIXME: should be removed in autoconf 3.0.
1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1333 if test -n "$ac_prev"; then
1334 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1335 as_fn_error $?
"missing argument to $ac_option"
1338 if test -n "$ac_unrecognized_opts"; then
1339 case $enable_option_checking in
1341 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1342 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 # Check all directory arguments for consistency.
1347 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1352 eval ac_val
=\$
$ac_var
1353 # Remove trailing slashes.
1356 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357 eval $ac_var=\
$ac_val;;
1359 # Be sure to have absolute directory names.
1361 [\\/$
]* | ?
:[\\/]* ) continue;;
1362 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1364 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1367 # There might be people who depend on the old broken behavior: `$host'
1368 # used to hold the argument of --host etc.
1369 # FIXME: To remove some day.
1372 target
=$target_alias
1374 # FIXME: To remove some day.
1375 if test "x$host_alias" != x
; then
1376 if test "x$build_alias" = x
; then
1377 cross_compiling
=maybe
1378 elif test "x$build_alias" != "x$host_alias"; then
1384 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1386 test "$silent" = yes && exec 6>/dev
/null
1389 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1390 ac_ls_di
=`ls -di .` &&
1391 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1392 as_fn_error $?
"working directory cannot be determined"
1393 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1394 as_fn_error $?
"pwd does not report name of working directory"
1397 # Find the source files, if location was not specified.
1398 if test -z "$srcdir"; then
1399 ac_srcdir_defaulted
=yes
1400 # Try the directory containing this script, then the parent directory.
1401 ac_confdir
=`$as_dirname -- "$as_myself" ||
1402 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403 X"$as_myself" : 'X\(//\)[^/]' \| \
1404 X"$as_myself" : 'X\(//\)$' \| \
1405 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406 $as_echo X"$as_myself" |
1407 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1429 ac_srcdir_defaulted
=no
1431 if test ! -r "$srcdir/$ac_unique_file"; then
1432 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1433 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1435 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1437 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1439 # When building in place, set srcdir=.
1440 if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 # Remove unnecessary trailing slashes from srcdir.
1444 # Double slashes in file names in object file debugging info
1445 # mess up M-x gdb in Emacs.
1447 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449 for ac_var
in $ac_precious_vars; do
1450 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1451 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1452 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1453 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1457 # Report the --help message.
1459 if test "$ac_init_help" = "long"; then
1460 # Omit some internal or obsolete options to make the list less imposing.
1461 # This message is too long to be a string in the A/UX 3.1 sh.
1463 \`configure' configures this package to adapt to many kinds of systems.
1465 Usage: $0 [OPTION]... [VAR=VALUE]...
1467 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1468 VAR=VALUE. See below for descriptions of some of the useful variables.
1470 Defaults for the options are specified in brackets.
1473 -h, --help display this help and exit
1474 --help=short display options specific to this package
1475 --help=recursive display the short help of all the included packages
1476 -V, --version display version information and exit
1477 -q, --quiet, --silent do not print \`checking ...' messages
1478 --cache-file=FILE cache test results in FILE [disabled]
1479 -C, --config-cache alias for \`--cache-file=config.cache'
1480 -n, --no-create do not create output files
1481 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483 Installation directories:
1484 --prefix=PREFIX install architecture-independent files in PREFIX
1485 [$ac_default_prefix]
1486 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 By default, \`make install' will install all the files in
1490 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1491 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1492 for instance \`--prefix=\$HOME'.
1494 For better control, use the options below.
1496 Fine tuning of the installation directories:
1497 --bindir=DIR user executables [EPREFIX/bin]
1498 --sbindir=DIR system admin executables [EPREFIX/sbin]
1499 --libexecdir=DIR program executables [EPREFIX/libexec]
1500 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1501 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1502 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1503 --libdir=DIR object code libraries [EPREFIX/lib]
1504 --includedir=DIR C header files [PREFIX/include]
1505 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1506 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1507 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1508 --infodir=DIR info documentation [DATAROOTDIR/info]
1509 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1510 --mandir=DIR man documentation [DATAROOTDIR/man]
1511 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1512 --htmldir=DIR html documentation [DOCDIR]
1513 --dvidir=DIR dvi documentation [DOCDIR]
1514 --pdfdir=DIR pdf documentation [DOCDIR]
1515 --psdir=DIR ps documentation [DOCDIR]
1521 --program-prefix=PREFIX prepend PREFIX to installed program names
1522 --program-suffix=SUFFIX append SUFFIX to installed program names
1523 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1526 --x-includes=DIR X include files are
in DIR
1527 --x-libraries=DIR X library files are
in DIR
1530 --build=BUILD configure
for building on BUILD
[guessed
]
1531 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1532 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1536 if test -n "$ac_init_help"; then
1541 --disable-option-checking ignore unrecognized
--enable/--with options
1542 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1543 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1544 --enable-maintainer-mode
1545 enable make rules and dependencies not useful
(and
1546 sometimes confusing
) to the casual installer
1547 --enable-plugins Enable support
for plugins
1548 --disable-largefile omit support
for large files
1549 --enable-targets=TARGETS
1550 alternative target configurations
1551 --enable-64-bit-bfd 64-bit support
(on hosts with narrower word sizes
)
1552 --disable-gdbmi disable machine-interface
(MI
)
1553 --enable-tui enable full-screen terminal user interface
(TUI
)
1554 --enable-gdbtk enable gdbtk graphical user interface
(GUI
)
1555 --enable-profiling enable profiling of GDB
1556 --enable-codesign=CERT sign gdb with
'codesign -s CERT'
1557 --disable-rpath do not hardcode runtime library paths
1558 --enable-source-highlight
1559 enable source-highlight
for source listings
1560 --enable-libmcheck Try linking with
-lmcheck if available
1561 --enable-werror treat compile warnings as errors
1562 --enable-build-warnings enable build-time compiler warnings
if gcc is used
1563 --enable-gdb-build-warnings
1564 enable GDB specific build-time compiler warnings
if
1566 --enable-ubsan enable undefined behavior sanitizer
(auto
/yes
/no
)
1567 --enable-sim link gdb with simulator
1568 --enable-gdbserver automatically build gdbserver
(yes
/no
/auto
, default
1570 --enable-unit-tests Enable the inclusion of unit tests when compiling
1574 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1575 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1576 --with-separate-debug-dir=PATH
1577 look for global separate debug info
in this path
1579 --with-gdb-datadir=PATH
look for global separate data files
in this path
1581 --with-relocated-sources=PATH
1582 automatically relocate this path
for source files
1583 --with-auto-load-dir=PATH
1584 directories from
which to load auto-loaded scripts
1585 [$debugdir:$datadir/auto-load
]
1586 --with-auto-load-safe-path=PATH
1587 directories safe to hold auto-loaded files
1588 [--with-auto-load-dir]
1589 --without-auto-load-safe-path
1590 do not restrict auto-loaded files locations
1591 --with-libunwind-ia64 use libunwind frame unwinding
for ia64 targets
1592 --with-curses use the curses library instead of the termcap
1594 --with-pkgversion=PKG Use PKG
in the version string
in place of
"GDB"
1595 --with-bugurl=URL Direct users to URL to report a bug
1596 --with-system-zlib use installed libz
1597 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1598 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1599 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1600 --with-iconv-bin=PATH specify where to find the iconv program
1601 --with-system-readline use installed readline library
1602 --with-jit-reader-dir=PATH
1603 directory to load the JIT readers from
1604 --with-expat include expat support (auto/yes/no)
1605 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
1606 --without-libexpat-prefix don't search
for libexpat
in includedir and libdir
1607 --with-mpfr include MPFR support
(auto
/yes
/no
)
1608 --with-libmpfr-prefix[=DIR
] search
for libmpfr
in DIR
/include and DIR
/lib
1609 --without-libmpfr-prefix don
't search for libmpfr in includedir and libdir
1610 --with-python[=PYTHON] include python support
1611 (auto/yes/no/<python-program>)
1612 --with-guile[=GUILE] include guile support
1613 (auto/yes/no/<guile-version>/<pkg-config-program>)
1614 --with-intel-pt include Intel Processor Trace support (auto/yes/no)
1615 --with-libipt-prefix[=DIR] search for libipt in DIR/include and DIR/lib
1616 --without-libipt-prefix don't search
for libipt
in includedir and libdir
1617 --without-included-regex
1618 don
't use included regex; this is the default on
1619 systems with version 2 of the GNU C library (use
1620 with caution on other system)
1621 --with-sysroot[=DIR] search for usr/lib et al within DIR
1622 --with-system-gdbinit=PATH
1623 automatically load a system-wide gdbinit file
1624 --with-lzma support lzma compression (auto/yes/no)
1625 --with-liblzma-prefix[=DIR] search for liblzma in DIR/include and DIR/lib
1626 --without-liblzma-prefix don't search
for liblzma
in includedir and libdir
1627 --with-tcl directory containing tcl configuration
(tclConfig.sh
)
1628 --with-tk directory containing tk configuration
(tkConfig.sh
)
1629 --with-x use the X Window System
1630 --with-babeltrace include babeltrace support
(auto
/yes
/no
)
1631 --with-libbabeltrace-prefix[=DIR
] search
for libbabeltrace
in DIR
/include and DIR
/lib
1632 --without-libbabeltrace-prefix don
't search for libbabeltrace in includedir and libdir
1634 Some influential environment variables:
1635 CC C compiler command
1636 CFLAGS C compiler flags
1637 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1638 nonstandard directory <lib dir>
1639 LIBS libraries to pass to the linker, e.g. -l<library>
1640 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1641 you have headers in a nonstandard directory <include dir>
1642 CXX C++ compiler command
1643 CXXFLAGS C++ compiler flags
1645 MAKEINFO Parent configure detects if it is of sufficient version.
1647 Parameters for MAKEINFO.
1648 YACC The `Yet Another Compiler Compiler' implementation to use.
1649 Defaults to the first program found out of
: `bison -y', `byacc
',
1651 YFLAGS The list of arguments that will be passed by default to
$YACC.
1652 This
script will default YFLAGS to the empty string to avoid a
1653 default value of
`-d' given by some make applications.
1654 XMKMF Path to xmkmf, Makefile generator for X Window System
1656 Use these variables to override the choices made by `configure
' or to help
1657 it to find libraries and programs with nonstandard names/locations.
1659 Report bugs to the package provider.
1664 if test "$ac_init_help" = "recursive"; then
1665 # If there are subdirs, report their specific --help.
1666 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1667 test -d "$ac_dir" ||
1668 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1673 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1675 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.
[\\/]||
'`
1676 # A ".." for each directory in $ac_dir_suffix.
1677 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|
/[^
\\/]*|
/..|g
;s|
/||
'`
1678 case $ac_top_builddir_sub in
1679 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1680 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1683 ac_abs_top_builddir=$ac_pwd
1684 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1685 # for backward compatibility:
1686 ac_top_builddir=$ac_top_build_prefix
1689 .) # We are building in place.
1691 ac_top_srcdir=$ac_top_builddir_sub
1692 ac_abs_top_srcdir=$ac_pwd ;;
1693 [\\/]* | ?:[\\/]* ) # Absolute name.
1694 ac_srcdir=$srcdir$ac_dir_suffix;
1695 ac_top_srcdir=$srcdir
1696 ac_abs_top_srcdir=$srcdir ;;
1698 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1699 ac_top_srcdir=$ac_top_build_prefix$srcdir
1700 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1702 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1704 cd "$ac_dir" || { ac_status=$?; continue; }
1705 # Check for guested configure.
1706 if test -f "$ac_srcdir/configure.gnu"; then
1708 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1709 elif test -f "$ac_srcdir/configure"; then
1711 $SHELL "$ac_srcdir/configure" --help=recursive
1713 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1715 cd "$ac_pwd" || { ac_status=$?; break; }
1719 test -n "$ac_init_help" && exit $ac_status
1720 if $ac_init_version; then
1723 generated by GNU Autoconf 2.69
1725 Copyright (C) 2012 Free Software Foundation, Inc.
1726 This configure script is free software; the Free Software Foundation
1727 gives unlimited permission to copy, distribute and modify it.
1732 ## ------------------------ ##
1733 ## Autoconf initialization. ##
1734 ## ------------------------ ##
1736 # ac_fn_c_try_compile LINENO
1737 # --------------------------
1738 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1739 ac_fn_c_try_compile ()
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext
1743 if { { ac_try="$ac_compile"
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749 $as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_compile") 2>conftest.err
1752 if test -s conftest.err; then
1753 grep -v '^
*+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest.$ac_objext; then :
1764 $as_echo "$as_me: failed program was:" >&5
1765 sed 's
/^
/|
/' conftest.$ac_ext >&5
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1772 } # ac_fn_c_try_compile
1774 # ac_fn_cxx_try_compile LINENO
1775 # ----------------------------
1776 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1777 ac_fn_cxx_try_compile ()
1779 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780 rm -f conftest.$ac_objext
1781 if { { ac_try="$ac_compile"
1783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1784 *) ac_try_echo=$ac_try;;
1786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1787 $as_echo "$ac_try_echo"; } >&5
1788 (eval "$ac_compile") 2>conftest.err
1790 if test -s conftest.err; then
1791 grep -v '^
*+' conftest.err >conftest.er1
1792 cat conftest.er1 >&5
1793 mv -f conftest.er1 conftest.err
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && {
1797 test -z "$ac_cxx_werror_flag" ||
1798 test ! -s conftest.err
1799 } && test -s conftest.$ac_objext; then :
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's
/^
/|
/' conftest.$ac_ext >&5
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 as_fn_set_status $ac_retval
1810 } # ac_fn_cxx_try_compile
1812 # ac_fn_c_try_cpp LINENO
1813 # ----------------------
1814 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_cpp conftest.$ac_ext"
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1827 if test -s conftest.err; then
1828 grep -v '^
*+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } > conftest.i && {
1834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1839 $as_echo "$as_me: failed program was:" >&5
1840 sed 's
/^
/|
/' conftest.$ac_ext >&5
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845 as_fn_set_status $ac_retval
1849 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1850 # -------------------------------------------------------
1851 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1852 # the include files in INCLUDES and setting the cache variable VAR
1854 ac_fn_c_check_header_mongrel ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 if eval \${$3+:} false; then :
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1859 $as_echo_n "checking for $2... " >&6; }
1860 if eval \${$3+:} false; then :
1861 $as_echo_n "(cached) " >&6
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1867 # Is the header compilable?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1869 $as_echo_n "checking $2 usability... " >&6; }
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 ac_header_compiler=yes
1878 ac_header_compiler=no
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1882 $as_echo "$ac_header_compiler" >&6; }
1884 # Is the header present?
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1886 $as_echo_n "checking $2 presence... " >&6; }
1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888 /* end confdefs.h. */
1891 if ac_fn_c_try_cpp "$LINENO"; then :
1892 ac_header_preproc=yes
1894 ac_header_preproc=no
1896 rm -f conftest.err conftest.i conftest.$ac_ext
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1898 $as_echo "$ac_header_preproc" >&6; }
1900 # So? What about this header?
1901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1904 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1906 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1910 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1912 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1914 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1916 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result
" >&5
1918 $as_echo "$as_me: WARNING
: $2: proceeding with the compiler
's result" >&2;}
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1922 $as_echo_n "checking for $2... " >&6; }
1923 if eval \${$3+:} false; then :
1924 $as_echo_n "(cached) " >&6
1926 eval "$3=\$ac_header_compiler"
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 } # ac_fn_c_check_header_mongrel
1936 # ac_fn_c_try_run LINENO
1937 # ----------------------
1938 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1939 # that executables *can* be run.
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if { { ac_try="$ac_link"
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949 $as_echo "$ac_try_echo"; } >&5
1950 (eval "$ac_link") 2>&5
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && { ac_try='.
/conftest
$ac_exeext'
1954 { { case "(($ac_try" in
1955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1956 *) ac_try_echo=$ac_try;;
1958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1959 $as_echo "$ac_try_echo"; } >&5
1960 (eval "$ac_try") 2>&5
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; }; }; then :
1966 $as_echo "$as_me: program exited with status $ac_status" >&5
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's
/^
/|
/' conftest.$ac_ext >&5
1970 ac_retval=$ac_status
1972 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
1978 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1979 # -------------------------------------------------------
1980 # Tests whether HEADER exists and can be compiled using the include files in
1981 # INCLUDES, setting the cache variable VAR accordingly.
1982 ac_fn_c_check_header_compile ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1995 if ac_fn_c_try_compile "$LINENO"; then :
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2007 } # ac_fn_c_check_header_compile
2009 # ac_fn_c_try_link LINENO
2010 # -----------------------
2011 # Try to link conftest.$ac_ext, and return whether this succeeded.
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 rm -f conftest.$ac_objext conftest$ac_exeext
2016 if { { ac_try="$ac_link"
2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2019 *) ac_try_echo=$ac_try;;
2021 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2022 $as_echo "$ac_try_echo"; } >&5
2023 (eval "$ac_link") 2>conftest.err
2025 if test -s conftest.err; then
2026 grep -v '^
*+' conftest.err >conftest.er1
2027 cat conftest.er1 >&5
2028 mv -f conftest.er1 conftest.err
2030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2031 test $ac_status = 0; } && {
2032 test -z "$ac_c_werror_flag" ||
2033 test ! -s conftest.err
2034 } && test -s conftest$ac_exeext && {
2035 test "$cross_compiling" = yes ||
2036 test -x conftest$ac_exeext
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's
/^
/|
/' conftest.$ac_ext >&5
2045 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2046 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2047 # interfere with the next link command; also delete a directory that is
2048 # left behind by Apple's compiler. We
do this before executing the actions.
2049 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051 as_fn_set_status
$ac_retval
2053 } # ac_fn_c_try_link
2055 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2056 # --------------------------------------------
2057 # Tries to find the compile-time value of EXPR in a program that includes
2058 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2060 ac_fn_c_compute_int
()
2062 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2063 if test "$cross_compiling" = yes; then
2064 # Depending upon the size, compute the lo and hi bounds.
2065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2071 static int test_array [1 - 2 * !(($2) >= 0)];
2073 return test_array [0];
2079 if ac_fn_c_try_compile
"$LINENO"; then :
2082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h. */
2088 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2090 return test_array [0];
2096 if ac_fn_c_try_compile
"$LINENO"; then :
2097 ac_hi
=$ac_mid; break
2099 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2100 if test $ac_lo -le $ac_mid; then
2104 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2115 static int test_array [1 - 2 * !(($2) < 0)];
2117 return test_array [0];
2123 if ac_fn_c_try_compile
"$LINENO"; then :
2126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2132 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2134 return test_array [0];
2140 if ac_fn_c_try_compile
"$LINENO"; then :
2141 ac_lo
=$ac_mid; break
2143 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2144 if test $ac_mid -le $ac_hi; then
2148 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2158 # Binary search between lo and hi bounds.
2159 while test "x$ac_lo" != "x$ac_hi"; do
2160 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2167 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2169 return test_array [0];
2175 if ac_fn_c_try_compile
"$LINENO"; then :
2178 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2183 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 static long int longval () { return $2; }
2191 static unsigned long int ulongval () { return $2; }
2198 FILE *f = fopen ("conftest.val", "w");
2203 long int i = longval ();
2206 fprintf (f, "%ld", i);
2210 unsigned long int i = ulongval ();
2213 fprintf (f, "%lu", i);
2215 /* Do not output a trailing newline, as this causes \r\n confusion
2216 on some platforms. */
2217 return ferror (f) || fclose (f) != 0;
2223 if ac_fn_c_try_run
"$LINENO"; then :
2224 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2228 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2229 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234 as_fn_set_status
$ac_retval
2236 } # ac_fn_c_compute_int
2238 # ac_fn_c_check_func LINENO FUNC VAR
2239 # ----------------------------------
2240 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2241 ac_fn_c_check_func
()
2243 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \
${$3+:} false
; then :
2247 $as_echo_n "(cached) " >&6
2249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2251 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2253 #define $2 innocuous_$2
2255 /* System header to define __stub macros and hopefully few prototypes,
2256 which can conflict with char $2 (); below.
2257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2258 <limits.h> exists even on freestanding compilers. */
2261 # include <limits.h>
2263 # include <assert.h>
2268 /* Override any GCC internal prototype to avoid an error.
2269 Use char because int might match the return type of a GCC
2270 builtin and then its argument prototype would still apply. */
2275 /* The GNU C library defines this for functions which it implements
2276 to always fail with ENOSYS. Some functions are actually named
2277 something starting with __ and the normal name is an alias. */
2278 #if defined __stub_$2 || defined __stub___$2
2290 if ac_fn_c_try_link
"$LINENO"; then :
2295 rm -f core conftest.err conftest.
$ac_objext \
2296 conftest
$ac_exeext conftest.
$ac_ext
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303 } # ac_fn_c_check_func
2305 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2306 # ----------------------------------------------------
2307 # Tries to find if the field MEMBER exists in type AGGR, after including
2308 # INCLUDES, setting cache variable VAR accordingly.
2309 ac_fn_c_check_member
()
2311 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2313 $as_echo_n "checking for $2.$3... " >&6; }
2314 if eval \
${$4+:} false
; then :
2315 $as_echo_n "(cached) " >&6
2317 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2330 if ac_fn_c_try_compile
"$LINENO"; then :
2333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2340 if (sizeof ac_aggr.$3)
2346 if ac_fn_c_try_compile
"$LINENO"; then :
2351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357 $as_echo "$ac_res" >&6; }
2358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2360 } # ac_fn_c_check_member
2362 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2363 # -------------------------------------------
2364 # Tests whether TYPE exists after having included INCLUDES, setting cache
2365 # variable VAR accordingly.
2366 ac_fn_c_check_type
()
2368 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2370 $as_echo_n "checking for $2... " >&6; }
2371 if eval \
${$3+:} false
; then :
2372 $as_echo_n "(cached) " >&6
2375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2387 if ac_fn_c_try_compile
"$LINENO"; then :
2388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2389 /* end confdefs.h. */
2400 if ac_fn_c_try_compile
"$LINENO"; then :
2405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414 } # ac_fn_c_check_type
2416 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2417 # ---------------------------------------------
2418 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2420 ac_fn_c_check_decl
()
2422 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2423 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2424 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2426 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2427 if eval \
${$3+:} false
; then :
2428 $as_echo_n "(cached) " >&6
2430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2431 /* end confdefs.h. */
2436 #ifndef $as_decl_name
2438 (void) $as_decl_use;
2440 (void) $as_decl_name;
2448 if ac_fn_c_try_compile
"$LINENO"; then :
2453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2460 } # ac_fn_c_check_decl
2462 # ac_fn_cxx_try_link LINENO
2463 # -------------------------
2464 # Try to link conftest.$ac_ext, and return whether this succeeded.
2465 ac_fn_cxx_try_link
()
2467 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2468 rm -f conftest.
$ac_objext conftest
$ac_exeext
2469 if { { ac_try
="$ac_link"
2471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476 (eval "$ac_link") 2>conftest.err
2478 if test -s conftest.err; then
2479 grep -v '^ *+' conftest.err >conftest.er1
2480 cat conftest.er1 >&5
2481 mv -f conftest.er1 conftest.err
2483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484 test $ac_status = 0; } && {
2485 test -z "$ac_cxx_werror_flag" ||
2486 test ! -s conftest.err
2487 } && test -s conftest$ac_exeext && {
2488 test "$cross_compiling" = yes ||
2489 test -x conftest$ac_exeext
2493 $as_echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2498 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2499 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2500 # interfere with the next link command; also delete a directory that is
2501 # left behind by Apple's compiler. We do this before executing the actions.
2502 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2504 as_fn_set_status $ac_retval
2506 } # ac_fn_cxx_try_link
2507 cat >config.log <<_ACEOF
2508 This file contains any messages produced by compilers while
2509 running configure, to aid debugging if configure makes a mistake.
2511 It was created by $as_me, which was
2512 generated by GNU Autoconf 2.69. Invocation command line was
2524 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2525 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2526 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2527 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2528 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2530 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2531 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2533 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2534 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2535 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2536 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2537 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2538 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2539 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 $as_echo "PATH: $as_dir"
2564 # Keep a trace of the command line.
2565 # Strip out --no-create and --no-recursion so they do not pile up.
2566 # Strip out --silent because we don't want to record it for future runs.
2567 # Also quote any args containing shell meta-characters.
2568 # Make two passes to allow for proper duplicate-argument suppression.
2572 ac_must_keep_next=false
2578 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2580 | -silent | --silent | --silen | --sile | --sil)
2583 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2586 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2588 as_fn_append ac_configure_args1 " '$ac_arg'"
2589 if test $ac_must_keep_next = true; then
2590 ac_must_keep_next=false # Got value, back to normal.
2593 *=* | --config-cache | -C | -disable-* | --disable-* \
2594 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2595 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2596 | -with-* | --with-* | -without-* | --without-* | --x)
2597 case "$ac_configure_args0 " in
2598 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2601 -* ) ac_must_keep_next=true ;;
2604 as_fn_append ac_configure_args " '$ac_arg'"
2609 { ac_configure_args0=; unset ac_configure_args0;}
2610 { ac_configure_args1=; unset ac_configure_args1;}
2612 # When interrupted or exit'd, cleanup temporary files, and complete
2613 # config.log. We remove comments because anyway the quotes in there
2614 # would cause problems or look ugly.
2615 # WARNING: Use '\'' to represent an apostrophe within the trap.
2616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2617 trap 'exit_status=$?
2618 # Save into config.log some information that might help in debugging.
2622 $as_echo "## ---------------- ##
2623 ## Cache variables. ##
2624 ## ---------------- ##"
2626 # The following way of writing the cache mishandles newlines in values,
2628 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2629 eval ac_val=\$$ac_var
2633 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2634 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2637 _ | IFS | as_nl) ;; #(
2638 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2639 *) { eval $ac_var=; unset $ac_var;} ;;
2644 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2645 *${as_nl}ac_space=\ *)
2647 "s/'\''/'\''\\\\'\'''\''/g;
2648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2651 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2658 $as_echo "## ----------------- ##
2659 ## Output variables. ##
2660 ## ----------------- ##"
2662 for ac_var in $ac_subst_vars
2664 eval ac_val=\$$ac_var
2666 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2668 $as_echo "$ac_var='\''$ac_val'\''"
2672 if test -n "$ac_subst_files"; then
2673 $as_echo "## ------------------- ##
2674 ## File substitutions. ##
2675 ## ------------------- ##"
2677 for ac_var in $ac_subst_files
2679 eval ac_val=\$$ac_var
2681 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2683 $as_echo "$ac_var='\''$ac_val'\''"
2688 if test -s confdefs.h; then
2689 $as_echo "## ----------- ##
2696 test "$ac_signal" != 0 &&
2697 $as_echo "$as_me: caught signal $ac_signal"
2698 $as_echo "$as_me: exit $exit_status"
2700 rm -f core *.core core.conftest.* &&
2701 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2704 for ac_signal in 1 2 13 15; do
2705 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2709 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2710 rm -f -r conftest* confdefs.h
2712 $as_echo "/* confdefs.h */" > confdefs.h
2714 # Predefined preprocessor variables.
2716 cat >>confdefs.h <<_ACEOF
2717 #define PACKAGE_NAME "$PACKAGE_NAME"
2720 cat >>confdefs.h <<_ACEOF
2721 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2724 cat >>confdefs.h <<_ACEOF
2725 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2728 cat >>confdefs.h <<_ACEOF
2729 #define PACKAGE_STRING "$PACKAGE_STRING"
2732 cat >>confdefs.h <<_ACEOF
2733 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2736 cat >>confdefs.h <<_ACEOF
2737 #define PACKAGE_URL "$PACKAGE_URL"
2741 # Let the site file select an alternate cache file if it wants to.
2742 # Prefer an explicitly selected file to automatically selected ones.
2745 if test -n "$CONFIG_SITE"; then
2746 # We do not want a PATH search for config.site.
2747 case $CONFIG_SITE in #((
2748 -*) ac_site_file1=./$CONFIG_SITE;;
2749 */*) ac_site_file1=$CONFIG_SITE;;
2750 *) ac_site_file1=./$CONFIG_SITE;;
2752 elif test "x$prefix" != xNONE; then
2753 ac_site_file1=$prefix/share/config.site
2754 ac_site_file2=$prefix/etc/config.site
2756 ac_site_file1=$ac_default_prefix/share/config.site
2757 ac_site_file2=$ac_default_prefix/etc/config.site
2759 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2761 test "x$ac_site_file" = xNONE && continue
2762 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2764 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2765 sed 's/^/| /' "$ac_site_file" >&5
2767 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2769 as_fn_error $? "failed to load site
script $ac_site_file
2770 See \
`config.log' for more details" "$LINENO" 5; }
2774 if test -r "$cache_file"; then
2775 # Some versions of bash will fail to source /dev/null (special files
2776 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2777 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2779 $as_echo "$as_me: loading cache $cache_file" >&6;}
2781 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2782 *) . "./$cache_file";;
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2787 $as_echo "$as_me: creating cache $cache_file" >&6;}
2791 as_fn_append ac_header_list " stdlib.h"
2792 as_fn_append ac_header_list " unistd.h"
2793 as_fn_append ac_header_list " sys/param.h"
2794 # Check that the precious variables saved in the cache have kept the same
2796 ac_cache_corrupted=false
2797 for ac_var in $ac_precious_vars; do
2798 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2799 eval ac_new_set=\$ac_env_${ac_var}_set
2800 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2801 eval ac_new_val=\$ac_env_${ac_var}_value
2802 case $ac_old_set,$ac_new_set in
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2805 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2806 ac_cache_corrupted=: ;;
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2809 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2810 ac_cache_corrupted=: ;;
2813 if test "x$ac_old_val" != "x$ac_new_val"; then
2814 # differences in whitespace do not lead to failure.
2815 ac_old_val_w=`echo x
$ac_old_val`
2816 ac_new_val_w=`echo x
$ac_new_val`
2817 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2819 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2820 ac_cache_corrupted=:
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2823 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2824 eval $ac_var=\$ac_old_val
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2827 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2829 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2832 # Pass precious variables to config.status.
2833 if test "$ac_new_set" = set; then
2835 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2836 *) ac_arg=$ac_var=$ac_new_val ;;
2838 case " $ac_configure_args " in
2839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2840 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2844 if $ac_cache_corrupted; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2848 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2849 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2851 ## -------------------- ##
2852 ## Main body of script. ##
2853 ## -------------------- ##
2856 ac_cpp='$CPP $CPPFLAGS'
2857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865 ac_config_headers="$ac_config_headers config.h:config.in"
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2869 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2870 # Check whether --enable-maintainer-mode was given.
2871 if test "${enable_maintainer_mode+set}" = set; then :
2872 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2874 USE_MAINTAINER_MODE=no
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2878 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2879 if test $USE_MAINTAINER_MODE = yes; then
2880 MAINTAINER_MODE_TRUE=
2881 MAINTAINER_MODE_FALSE='#'
2883 MAINTAINER_MODE_TRUE='#'
2884 MAINTAINER_MODE_FALSE=
2887 MAINT=$MAINTAINER_MODE_TRUE
2891 # Set the 'development' global.
2892 . $srcdir/../bfd/development.sh
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2903 $as_echo_n "checking for $ac_word... " >&6; }
2904 if ${ac_cv_prog_CC+:} false; then :
2905 $as_echo_n "(cached) " >&6
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC="$CC" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 if test -n "$CC"; then
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2930 $as_echo "$CC" >&6; }
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2933 $as_echo "no" >&6; }
2938 if test -z "$ac_cv_prog_CC"; then
2940 # Extract the first word of "gcc", so it can be a program name with args.
2941 set dummy gcc; ac_word=$2
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943 $as_echo_n "checking for $ac_word... " >&6; }
2944 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2945 $as_echo_n "(cached) " >&6
2947 if test -n "$ac_ct_CC"; then
2948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 for ac_exec_ext in '' $ac_executable_extensions; do
2956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957 ac_cv_prog_ac_ct_CC="gcc"
2958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2968 if test -n "$ac_ct_CC"; then
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2970 $as_echo "$ac_ct_CC" >&6; }
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2976 if test "x$ac_ct_CC" = x; then
2979 case $cross_compiling:$ac_tool_warned in
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2983 ac_tool_warned=yes ;;
2991 if test -z "$CC"; then
2992 if test -n "$ac_tool_prefix"; then
2993 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2994 set dummy ${ac_tool_prefix}cc; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_CC+:} false; then :
2998 $as_echo_n "(cached) " >&6
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_CC="${ac_tool_prefix}cc"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 if test -n "$CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3032 if test -z "$CC"; then
3033 # Extract the first word of "cc", so it can be a program name with args.
3034 set dummy cc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038 $as_echo_n "(cached) " >&6
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3051 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3052 ac_prog_rejected=yes
3056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 if test $ac_prog_rejected = yes; then
3064 # We found a bogon in the path, so make sure we never use it.
3065 set dummy $ac_cv_prog_CC
3067 if test $# != 0; then
3068 # We chose a different compiler from the bogus one.
3069 # However, it has the same basename, so the bogon will be chosen
3070 # first if we set CC to just the basename; use the full file name.
3072 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3078 if test -n "$CC"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080 $as_echo "$CC" >&6; }
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3088 if test -z "$CC"; then
3089 if test -n "$ac_tool_prefix"; then
3090 for ac_prog in cl.exe
3092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3095 $as_echo_n "checking for $ac_word... " >&6; }
3096 if ${ac_cv_prog_CC+:} false; then :
3097 $as_echo_n "(cached) " >&6
3099 if test -n "$CC"; then
3100 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir=.
3107 for ac_exec_ext in '' $ac_executable_extensions; do
3108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3109 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 if test -n "$CC"; then
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3122 $as_echo "$CC" >&6; }
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3125 $as_echo "no" >&6; }
3129 test -n "$CC" && break
3132 if test -z "$CC"; then
3134 for ac_prog in cl.exe
3136 # Extract the first word of "$ac_prog", so it can be a program name with args.
3137 set dummy $ac_prog; ac_word=$2
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3141 $as_echo_n "(cached) " >&6
3143 if test -n "$ac_ct_CC"; then
3144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3153 ac_cv_prog_ac_ct_CC="$ac_prog"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3164 if test -n "$ac_ct_CC"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3166 $as_echo "$ac_ct_CC" >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3173 test -n "$ac_ct_CC" && break
3176 if test "x$ac_ct_CC" = x; then
3179 case $cross_compiling:$ac_tool_warned in
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned=yes ;;
3192 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194 as_fn_error $? "no acceptable C compiler found
in \
$PATH
3195 See \
`config.log' for more details" "$LINENO" 5; }
3197 # Provide some information about the compiler.
3198 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3201 for ac_option in --version -v -V -qversion; do
3202 { { ac_try="$ac_compiler $ac_option >&5"
3204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3205 *) ac_try_echo
=$ac_try;;
3207 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208 $as_echo "$ac_try_echo"; } >&5
3209 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3211 if test -s conftest.err
; then
3213 ... rest of stderr output deleted ...
3214 10q' conftest.err
>conftest.er1
3215 cat conftest.er1
>&5
3217 rm -f conftest.er1 conftest.err
3218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }
3222 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3233 ac_clean_files_save
=$ac_clean_files
3234 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3235 # Try to create an executable without -o first, disregard a.out.
3236 # It will help us diagnose broken compilers, and finding out an intuition
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3239 $as_echo_n "checking whether the C compiler works... " >&6; }
3240 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3242 # The possible output files:
3243 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3246 for ac_file
in $ac_files
3249 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3250 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
3255 if { { ac_try
="$ac_link_default"
3257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3262 (eval "$ac_link_default") 2>&5
3264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; then :
3266 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
3267 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
3268 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3269 # so that the user can short-circuit this test for compilers unknown to
3271 for ac_file in $ac_files ''
3273 test -f "$ac_file" || continue
3275 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3278 # We found the default executable, but exeext='' is most
3282 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3284 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3286 # We set ac_cv_exeext here because the later test for it is not
3287 # safe: cross compilers may not add the suffix if given an `-o'
3288 # argument, so we may need to know it at that point already.
3289 # Even if this section looks crufty: it has the advantage of
3296 test "$ac_cv_exeext" = no && ac_cv_exeext=
3301 if test -z "$ac_file"; then :
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 $as_echo "$as_me: failed program was:" >&5
3305 sed 's
/^
/|
/' conftest.$ac_ext >&5
3307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3308 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
3309 as_fn_error 77 "C compiler cannot create executables
3310 See \`config.log
' for more details" "$LINENO" 5; }
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3316 $as_echo_n "checking for C compiler default output file name... " >&6; }
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3318 $as_echo "$ac_file" >&6; }
3319 ac_exeext=$ac_cv_exeext
3321 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3322 ac_clean_files=$ac_clean_files_save
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3324 $as_echo_n "checking for suffix of executables... " >&6; }
3325 if { { ac_try="$ac_link"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_link") 2>&5
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }; then :
3336 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3337 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3338 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3340 for ac_file
in conftest.exe conftest conftest.
*; do
3341 test -f "$ac_file" ||
continue
3343 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3344 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3351 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3352 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3353 See \`config.log' for more details" "$LINENO" 5; }
3355 rm -f conftest conftest
$ac_cv_exeext
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3357 $as_echo "$ac_cv_exeext" >&6; }
3359 rm -f conftest.
$ac_ext
3360 EXEEXT
=$ac_cv_exeext
3362 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h. */
3368 FILE *f = fopen ("conftest.out", "w");
3369 return ferror (f) || fclose (f) != 0;
3375 ac_clean_files
="$ac_clean_files conftest.out"
3376 # Check that the compiler produces executables we can run. If not, either
3377 # the compiler is broken, or we cross compile.
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3379 $as_echo_n "checking whether we are cross compiling... " >&6; }
3380 if test "$cross_compiling" != yes; then
3381 { { ac_try
="$ac_link"
3383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }
3392 if { ac_try='./conftest$ac_cv_exeext'
3393 { { case "(($ac_try" in
3394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3395 *) ac_try_echo
=$ac_try;;
3397 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398 $as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_try") 2>&5
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }; }; then
3405 if test "$cross_compiling" = maybe
; then
3408 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error $?
"cannot run C compiled programs.
3411 If you meant to cross compile, use \`--host'.
3412 See \`config.log' for more details" "$LINENO" 5; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3417 $as_echo "$cross_compiling" >&6; }
3419 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3420 ac_clean_files
=$ac_clean_files_save
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3422 $as_echo_n "checking for suffix of object files... " >&6; }
3423 if ${ac_cv_objext+:} false
; then :
3424 $as_echo_n "(cached) " >&6
3426 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3437 rm -f conftest.o conftest.obj
3438 if { { ac_try
="$ac_compile"
3440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 $as_echo "$ac_try_echo"; } >&5
3445 (eval "$ac_compile") 2>&5
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }; then :
3449 for ac_file in conftest.o conftest.obj conftest.*; do
3450 test -f "$ac_file" || continue;
3452 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3453 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458 $as_echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3464 See \
`config.log' for more details" "$LINENO" 5; }
3466 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3469 $as_echo "$ac_cv_objext" >&6; }
3470 OBJEXT=$ac_cv_objext
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3474 if ${ac_cv_c_compiler_gnu+:} false; then :
3475 $as_echo_n "(cached) " >&6
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3491 if ac_fn_c_try_compile "$LINENO"; then :
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3501 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3502 if test $ac_compiler_gnu = yes; then
3507 ac_test_CFLAGS=${CFLAGS+set}
3508 ac_save_CFLAGS=$CFLAGS
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3510 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3511 if ${ac_cv_prog_cc_g+:} false; then :
3512 $as_echo_n "(cached) " >&6
3514 ac_save_c_werror_flag=$ac_c_werror_flag
3515 ac_c_werror_flag=yes
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3529 if ac_fn_c_try_compile "$LINENO"; then :
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3544 if ac_fn_c_try_compile "$LINENO"; then :
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3560 if ac_fn_c_try_compile "$LINENO"; then :
3563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3568 ac_c_werror_flag=$ac_save_c_werror_flag
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3571 $as_echo "$ac_cv_prog_cc_g" >&6; }
3572 if test "$ac_test_CFLAGS" = set; then
3573 CFLAGS=$ac_save_CFLAGS
3574 elif test $ac_cv_prog_cc_g = yes; then
3575 if test "$GCC" = yes; then
3581 if test "$GCC" = yes; then
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3589 if ${ac_cv_prog_cc_c89+:} false; then :
3590 $as_echo_n "(cached) " >&6
3592 ac_cv_prog_cc_c89=no
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3600 struct buf { int x; };
3601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3602 static char *e (p, i)
3608 static char *f (char * (*g) (char **, int), char **p, ...)
3613 s = g (p, va_arg (v,int));
3618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3619 function prototypes and stuff, but not '\xHH' hex character constants.
3620 These don't provoke an error unfortunately, instead are silently treated
3621 as 'x'. The following induces an error, until -std is added to get
3622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3623 array size at least. It's necessary to write '\x00'==0 to get something
3624 that's true only with -std. */
3625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3628 inside strings and character constants. */
3630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3632 int test (int i, double x);
3633 struct s1 {int (*f) (int a);};
3634 struct s2 {int (*f) (double a);};
3635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3649 CC="$ac_save_CC $ac_arg"
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_cv_prog_cc_c89=$ac_arg
3653 rm -f core conftest.err conftest.$ac_objext
3654 test "x$ac_cv_prog_cc_c89" != "xno" && break
3656 rm -f conftest.$ac_ext
3661 case "x$ac_cv_prog_cc_c89" in
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3664 $as_echo "none needed" >&6; } ;;
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3667 $as_echo "unsupported" >&6; } ;;
3669 CC="$CC $ac_cv_prog_cc_c89"
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3671 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3673 if test "x$ac_cv_prog_cc_c89" != xno; then :
3678 ac_cpp='$CPP $CPPFLAGS'
3679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3684 ac_cpp='$CXXCPP $CPPFLAGS'
3685 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3688 if test -z "$CXX"; then
3689 if test -n "$CCC"; then
3692 if test -n "$ac_tool_prefix"; then
3693 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if ${ac_cv_prog_CXX+:} false; then :
3700 $as_echo_n "(cached) " >&6
3702 if test -n "$CXX"; then
3703 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3723 if test -n "$CXX"; then
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3725 $as_echo "$CXX" >&6; }
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3732 test -n "$CXX" && break
3735 if test -z "$CXX"; then
3737 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3739 # Extract the first word of "$ac_prog", so it can be a program name with args.
3740 set dummy $ac_prog; ac_word=$2
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742 $as_echo_n "checking for $ac_word... " >&6; }
3743 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3744 $as_echo_n "(cached) " >&6
3746 if test -n "$ac_ct_CXX"; then
3747 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753 test -z "$as_dir" && as_dir=.
3754 for ac_exec_ext in '' $ac_executable_extensions; do
3755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3756 ac_cv_prog_ac_ct_CXX="$ac_prog"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3766 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3767 if test -n "$ac_ct_CXX"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3769 $as_echo "$ac_ct_CXX" >&6; }
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772 $as_echo "no" >&6; }
3776 test -n "$ac_ct_CXX" && break
3779 if test "x$ac_ct_CXX" = x; then
3782 case $cross_compiling:$ac_tool_warned in
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3786 ac_tool_warned=yes ;;
3794 # Provide some information about the compiler.
3795 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3798 for ac_option in --version -v -V -qversion; do
3799 { { ac_try="$ac_compiler $ac_option >&5"
3801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3802 *) ac_try_echo
=$ac_try;;
3804 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3808 if test -s conftest.err
; then
3810 ... rest of stderr output deleted ...
3811 10q' conftest.err
>conftest.er1
3812 cat conftest.er1
>&5
3814 rm -f conftest.er1 conftest.err
3815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3820 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3821 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3822 $as_echo_n "(cached) " >&6
3824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3825 /* end confdefs.h. */
3838 if ac_fn_cxx_try_compile
"$LINENO"; then :
3843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3844 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3848 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3849 if test $ac_compiler_gnu = yes; then
3854 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3855 ac_save_CXXFLAGS
=$CXXFLAGS
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3857 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3858 if ${ac_cv_prog_cxx_g+:} false
; then :
3859 $as_echo_n "(cached) " >&6
3861 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3862 ac_cxx_werror_flag
=yes
3865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3876 if ac_fn_cxx_try_compile
"$LINENO"; then :
3877 ac_cv_prog_cxx_g
=yes
3880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3891 if ac_fn_cxx_try_compile
"$LINENO"; then :
3894 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3896 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3907 if ac_fn_cxx_try_compile
"$LINENO"; then :
3908 ac_cv_prog_cxx_g
=yes
3910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3915 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3918 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3919 if test "$ac_test_CXXFLAGS" = set; then
3920 CXXFLAGS
=$ac_save_CXXFLAGS
3921 elif test $ac_cv_prog_cxx_g = yes; then
3922 if test "$GXX" = yes; then
3928 if test "$GXX" = yes; then
3935 ac_cpp
='$CPP $CPPFLAGS'
3936 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3943 ac_cpp
='$CPP $CPPFLAGS'
3944 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3945 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3946 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3948 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3949 # On Suns, sometimes $CPP names a directory.
3950 if test -n "$CPP" && test -d "$CPP"; then
3953 if test -z "$CPP"; then
3954 if ${ac_cv_prog_CPP+:} false
; then :
3955 $as_echo_n "(cached) " >&6
3957 # Double quotes because CPP needs to be expanded
3958 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3961 for ac_c_preproc_warn_flag
in '' yes
3963 # Use a header file that comes with gcc, so configuring glibc
3964 # with a fresh cross-compiler works.
3965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3966 # <limits.h> exists even on freestanding compilers.
3967 # On the NeXT, cc -E runs the code through the compiler's parser,
3968 # not just through cpp. "Syntax error" is here to catch this case.
3969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h. */
3972 # include <limits.h>
3974 # include <assert.h>
3978 if ac_fn_c_try_cpp
"$LINENO"; then :
3981 # Broken: fails on valid input.
3984 rm -f conftest.err conftest.i conftest.
$ac_ext
3986 # OK, works on sane cases. Now check whether nonexistent headers
3987 # can be detected and how.
3988 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990 #include <ac_nonexistent.h>
3992 if ac_fn_c_try_cpp
"$LINENO"; then :
3993 # Broken: success on invalid input.
3996 # Passes both tests.
4000 rm -f conftest.err conftest.i conftest.
$ac_ext
4003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4004 rm -f conftest.i conftest.err conftest.
$ac_ext
4005 if $ac_preproc_ok; then :
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4018 $as_echo "$CPP" >&6; }
4020 for ac_c_preproc_warn_flag
in '' yes
4022 # Use a header file that comes with gcc, so configuring glibc
4023 # with a fresh cross-compiler works.
4024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4025 # <limits.h> exists even on freestanding compilers.
4026 # On the NeXT, cc -E runs the code through the compiler's parser,
4027 # not just through cpp. "Syntax error" is here to catch this case.
4028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4029 /* end confdefs.h. */
4031 # include <limits.h>
4033 # include <assert.h>
4037 if ac_fn_c_try_cpp
"$LINENO"; then :
4040 # Broken: fails on valid input.
4043 rm -f conftest.err conftest.i conftest.
$ac_ext
4045 # OK, works on sane cases. Now check whether nonexistent headers
4046 # can be detected and how.
4047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049 #include <ac_nonexistent.h>
4051 if ac_fn_c_try_cpp
"$LINENO"; then :
4052 # Broken: success on invalid input.
4055 # Passes both tests.
4059 rm -f conftest.err conftest.i conftest.
$ac_ext
4062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4063 rm -f conftest.i conftest.err conftest.
$ac_ext
4064 if $ac_preproc_ok; then :
4067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4070 See \`config.log' for more details" "$LINENO" 5; }
4074 ac_cpp
='$CPP $CPPFLAGS'
4075 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4081 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4082 if ${ac_cv_path_GREP+:} false
; then :
4083 $as_echo_n "(cached) " >&6
4085 if test -z "$GREP"; then
4086 ac_path_GREP_found
=false
4087 # Loop through the user's path and test for each of PROGNAME-LIST
4088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4089 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4092 test -z "$as_dir" && as_dir
=.
4093 for ac_prog
in grep ggrep
; do
4094 for ac_exec_ext
in '' $ac_executable_extensions; do
4095 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4096 as_fn_executable_p
"$ac_path_GREP" ||
continue
4097 # Check for GNU ac_path_GREP and select it if it is found.
4098 # Check for GNU $ac_path_GREP
4099 case `"$ac_path_GREP" --version 2>&1` in
4101 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4104 $as_echo_n 0123456789 >"conftest.in"
4107 cat "conftest.in" "conftest.in" >"conftest.tmp"
4108 mv "conftest.tmp" "conftest.in"
4109 cp "conftest.in" "conftest.nl"
4110 $as_echo 'GREP' >> "conftest.nl"
4111 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4112 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4113 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4114 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4115 # Best one so far, save it but keep looking for a better one
4116 ac_cv_path_GREP
="$ac_path_GREP"
4117 ac_path_GREP_max
=$ac_count
4119 # 10*(2^10) chars as input seems more than enough
4120 test $ac_count -gt 10 && break
4122 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4125 $ac_path_GREP_found && break 3
4130 if test -z "$ac_cv_path_GREP"; then
4131 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4134 ac_cv_path_GREP
=$GREP
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4139 $as_echo "$ac_cv_path_GREP" >&6; }
4140 GREP
="$ac_cv_path_GREP"
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4144 $as_echo_n "checking for egrep... " >&6; }
4145 if ${ac_cv_path_EGREP+:} false
; then :
4146 $as_echo_n "(cached) " >&6
4148 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4149 then ac_cv_path_EGREP
="$GREP -E"
4151 if test -z "$EGREP"; then
4152 ac_path_EGREP_found
=false
4153 # Loop through the user's path and test for each of PROGNAME-LIST
4154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4155 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4158 test -z "$as_dir" && as_dir
=.
4159 for ac_prog
in egrep; do
4160 for ac_exec_ext
in '' $ac_executable_extensions; do
4161 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4162 as_fn_executable_p
"$ac_path_EGREP" ||
continue
4163 # Check for GNU ac_path_EGREP and select it if it is found.
4164 # Check for GNU $ac_path_EGREP
4165 case `"$ac_path_EGREP" --version 2>&1` in
4167 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4170 $as_echo_n 0123456789 >"conftest.in"
4173 cat "conftest.in" "conftest.in" >"conftest.tmp"
4174 mv "conftest.tmp" "conftest.in"
4175 cp "conftest.in" "conftest.nl"
4176 $as_echo 'EGREP' >> "conftest.nl"
4177 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4178 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4179 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4180 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4181 # Best one so far, save it but keep looking for a better one
4182 ac_cv_path_EGREP
="$ac_path_EGREP"
4183 ac_path_EGREP_max
=$ac_count
4185 # 10*(2^10) chars as input seems more than enough
4186 test $ac_count -gt 10 && break
4188 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4191 $ac_path_EGREP_found && break 3
4196 if test -z "$ac_cv_path_EGREP"; then
4197 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4200 ac_cv_path_EGREP
=$EGREP
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4206 $as_echo "$ac_cv_path_EGREP" >&6; }
4207 EGREP
="$ac_cv_path_EGREP"
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4211 $as_echo_n "checking for ANSI C header files... " >&6; }
4212 if ${ac_cv_header_stdc+:} false
; then :
4213 $as_echo_n "(cached) " >&6
4215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4230 if ac_fn_c_try_compile
"$LINENO"; then :
4231 ac_cv_header_stdc
=yes
4233 ac_cv_header_stdc
=no
4235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4237 if test $ac_cv_header_stdc = yes; then
4238 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4239 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245 $EGREP "memchr" >/dev
/null
2>&1; then :
4248 ac_cv_header_stdc
=no
4254 if test $ac_cv_header_stdc = yes; then
4255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4256 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4262 $EGREP "free" >/dev
/null
2>&1; then :
4265 ac_cv_header_stdc
=no
4271 if test $ac_cv_header_stdc = yes; then
4272 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4273 if test "$cross_compiling" = yes; then :
4276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4277 /* end confdefs.h. */
4280 #if ((' ' & 0x0FF) == 0x020)
4281 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4282 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4284 # define ISLOWER(c) \
4285 (('a' <= (c) && (c) <= 'i') \
4286 || ('j' <= (c) && (c) <= 'r') \
4287 || ('s' <= (c) && (c) <= 'z'))
4288 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4291 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4296 for (i = 0; i < 256; i++)
4297 if (XOR (islower (i), ISLOWER (i))
4298 || toupper (i) != TOUPPER (i))
4303 if ac_fn_c_try_run
"$LINENO"; then :
4306 ac_cv_header_stdc
=no
4308 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4309 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4315 $as_echo "$ac_cv_header_stdc" >&6; }
4316 if test $ac_cv_header_stdc = yes; then
4318 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4322 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4323 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4324 inttypes.h stdint.h unistd.h
4326 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4327 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4329 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4330 cat >>confdefs.h
<<_ACEOF
4331 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4340 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4341 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4348 if test "$MINIX" = yes; then
4350 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4353 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4356 $as_echo "#define _MINIX 1" >>confdefs.h
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4362 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4363 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4364 $as_echo_n "(cached) " >&6
4366 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4367 /* end confdefs.h. */
4369 # define __EXTENSIONS__ 1
4370 $ac_includes_default
4379 if ac_fn_c_try_compile
"$LINENO"; then :
4380 ac_cv_safe_to_define___extensions__
=yes
4382 ac_cv_safe_to_define___extensions__
=no
4384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4387 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4388 test $ac_cv_safe_to_define___extensions__ = yes &&
4389 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4391 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4393 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4395 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4397 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4401 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4402 if test -f "$ac_dir/install-sh"; then
4404 ac_install_sh
="$ac_aux_dir/install-sh -c"
4406 elif test -f "$ac_dir/install.sh"; then
4408 ac_install_sh
="$ac_aux_dir/install.sh -c"
4410 elif test -f "$ac_dir/shtool"; then
4412 ac_install_sh
="$ac_aux_dir/shtool install -c"
4416 if test -z "$ac_aux_dir"; then
4417 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4420 # These three variables are undocumented and unsupported,
4421 # and are intended to be withdrawn in a future Autoconf release.
4422 # They can cause serious problems if a builder's source tree is in a directory
4423 # whose full name contains unusual characters.
4424 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4425 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4426 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4429 # Make sure we can run config.sub.
4430 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4431 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4434 $as_echo_n "checking build system type... " >&6; }
4435 if ${ac_cv_build+:} false
; then :
4436 $as_echo_n "(cached) " >&6
4438 ac_build_alias
=$build_alias
4439 test "x$ac_build_alias" = x
&&
4440 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4441 test "x$ac_build_alias" = x
&&
4442 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
4443 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4444 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4448 $as_echo "$ac_cv_build" >&6; }
4449 case $ac_cv_build in
4451 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
4454 ac_save_IFS
=$IFS; IFS
='-'
4460 # Remember, the first character of IFS is used to create $*,
4461 # except with old shells:
4464 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4468 $as_echo_n "checking host system type... " >&6; }
4469 if ${ac_cv_host+:} false
; then :
4470 $as_echo_n "(cached) " >&6
4472 if test "x$host_alias" = x
; then
4473 ac_cv_host
=$ac_cv_build
4475 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4476 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4481 $as_echo "$ac_cv_host" >&6; }
4484 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
4487 ac_save_IFS
=$IFS; IFS
='-'
4493 # Remember, the first character of IFS is used to create $*,
4494 # except with old shells:
4497 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4501 $as_echo_n "checking target system type... " >&6; }
4502 if ${ac_cv_target+:} false
; then :
4503 $as_echo_n "(cached) " >&6
4505 if test "x$target_alias" = x
; then
4506 ac_cv_target
=$ac_cv_host
4508 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4509 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4514 $as_echo "$ac_cv_target" >&6; }
4515 case $ac_cv_target in
4517 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
4519 target
=$ac_cv_target
4520 ac_save_IFS
=$IFS; IFS
='-'
4526 # Remember, the first character of IFS is used to create $*,
4527 # except with old shells:
4530 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
4533 # The aliases save the names the user supplied, while $host etc.
4534 # will get canonicalized.
4535 test -n "$target_alias" &&
4536 test "$program_prefix$program_suffix$program_transform_name" = \
4538 program_prefix
=${target_alias}-
4540 # The tests for host and target for $enable_largefile require
4545 # As the $enable_largefile decision depends on --enable-plugins we must set it
4546 # even in directories otherwise not depending on the $plugins option.
4550 for ac_header
in dlfcn.h
4552 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
4554 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
4555 cat >>confdefs.h
<<_ACEOF
4556 #define HAVE_DLFCN_H 1
4563 for ac_header
in windows.h
4565 ac_fn_c_check_header_compile
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
4567 if test "x$ac_cv_header_windows_h" = xyes
; then :
4568 cat >>confdefs.h
<<_ACEOF
4569 #define HAVE_WINDOWS_H 1
4577 # Check whether --enable-plugins was given.
4578 if test "${enable_plugins+set}" = set; then :
4579 enableval
=$enable_plugins; case "${enableval}" in
4582 if test "$maybe_plugins" != "yes" ; then
4583 as_fn_error $?
"Building with plugin support requires a host that supports dlopen." "$LINENO" 5
4587 plugins
=$maybe_plugins
4591 if test "$plugins" = "yes"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
4593 $as_echo_n "checking for library containing dlsym... " >&6; }
4594 if ${ac_cv_search_dlsym+:} false
; then :
4595 $as_echo_n "(cached) " >&6
4597 ac_func_search_save_LIBS
=$LIBS
4598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4601 /* Override any GCC internal prototype to avoid an error.
4602 Use char because int might match the return type of a GCC
4603 builtin and then its argument prototype would still apply. */
4616 for ac_lib
in '' dl
; do
4617 if test -z "$ac_lib"; then
4618 ac_res
="none required"
4621 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4623 if ac_fn_c_try_link
"$LINENO"; then :
4624 ac_cv_search_dlsym
=$ac_res
4626 rm -f core conftest.err conftest.
$ac_objext \
4628 if ${ac_cv_search_dlsym+:} false
; then :
4632 if ${ac_cv_search_dlsym+:} false
; then :
4635 ac_cv_search_dlsym
=no
4638 LIBS
=$ac_func_search_save_LIBS
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
4641 $as_echo "$ac_cv_search_dlsym" >&6; }
4642 ac_res
=$ac_cv_search_dlsym
4643 if test "$ac_res" != no
; then :
4644 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4652 sparc-
*-solaris*|i
[3-7]86-*-solaris*)
4653 # On native 32bit sparc and ia32 solaris, large-file and procfs support
4654 # are mutually exclusive; and without procfs support, the bfd/ elf module
4655 # cannot provide certain routines such as elfcore_write_prpsinfo
4656 # or elfcore_write_prstatus. So unless the user explicitly requested
4657 # large-file support through the --enable-largefile switch, disable
4658 # large-file support in favor of procfs support.
4659 test "${target}" = "${host}" -a "x$plugins" = xno \
4660 && : ${enable_largefile="no"}
4664 # Check whether --enable-largefile was given.
4665 if test "${enable_largefile+set}" = set; then :
4666 enableval
=$enable_largefile;
4669 if test "$enable_largefile" != no
; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4672 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4673 if ${ac_cv_sys_largefile_CC+:} false
; then :
4674 $as_echo_n "(cached) " >&6
4676 ac_cv_sys_largefile_CC
=no
4677 if test "$GCC" != yes; then
4680 # IRIX 6.2 and later do not support large files by default,
4681 # so use the C compiler's -n32 option if that helps.
4682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4683 /* end confdefs.h. */
4684 #include <sys/types.h>
4685 /* Check that off_t can represent 2**63 - 1 correctly.
4686 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4687 since some C++ compilers masquerading as C compilers
4688 incorrectly reject 9223372036854775807. */
4689 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4690 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4691 && LARGE_OFF_T % 2147483647 == 1)
4701 if ac_fn_c_try_compile
"$LINENO"; then :
4704 rm -f core conftest.err conftest.
$ac_objext
4706 if ac_fn_c_try_compile
"$LINENO"; then :
4707 ac_cv_sys_largefile_CC
=' -n32'; break
4709 rm -f core conftest.err conftest.
$ac_objext
4713 rm -f conftest.
$ac_ext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4717 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4718 if test "$ac_cv_sys_largefile_CC" != no
; then
4719 CC
=$CC$ac_cv_sys_largefile_CC
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4723 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4724 if ${ac_cv_sys_file_offset_bits+:} false
; then :
4725 $as_echo_n "(cached) " >&6
4728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730 #include <sys/types.h>
4731 /* Check that off_t can represent 2**63 - 1 correctly.
4732 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4733 since some C++ compilers masquerading as C compilers
4734 incorrectly reject 9223372036854775807. */
4735 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4736 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4737 && LARGE_OFF_T % 2147483647 == 1)
4747 if ac_fn_c_try_compile
"$LINENO"; then :
4748 ac_cv_sys_file_offset_bits
=no
; break
4750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753 #define _FILE_OFFSET_BITS 64
4754 #include <sys/types.h>
4755 /* Check that off_t can represent 2**63 - 1 correctly.
4756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4757 since some C++ compilers masquerading as C compilers
4758 incorrectly reject 9223372036854775807. */
4759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4761 && LARGE_OFF_T % 2147483647 == 1)
4771 if ac_fn_c_try_compile
"$LINENO"; then :
4772 ac_cv_sys_file_offset_bits
=64; break
4774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4775 ac_cv_sys_file_offset_bits
=unknown
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4780 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4781 case $ac_cv_sys_file_offset_bits in #(
4784 cat >>confdefs.h
<<_ACEOF
4785 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4790 if test $ac_cv_sys_file_offset_bits = unknown
; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4792 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4793 if ${ac_cv_sys_large_files+:} false
; then :
4794 $as_echo_n "(cached) " >&6
4797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4799 #include <sys/types.h>
4800 /* Check that off_t can represent 2**63 - 1 correctly.
4801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4802 since some C++ compilers masquerading as C compilers
4803 incorrectly reject 9223372036854775807. */
4804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4806 && LARGE_OFF_T % 2147483647 == 1)
4816 if ac_fn_c_try_compile
"$LINENO"; then :
4817 ac_cv_sys_large_files
=no
; break
4819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 #define _LARGE_FILES 1
4823 #include <sys/types.h>
4824 /* Check that off_t can represent 2**63 - 1 correctly.
4825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4826 since some C++ compilers masquerading as C compilers
4827 incorrectly reject 9223372036854775807. */
4828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4830 && LARGE_OFF_T % 2147483647 == 1)
4840 if ac_fn_c_try_compile
"$LINENO"; then :
4841 ac_cv_sys_large_files
=1; break
4843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4844 ac_cv_sys_large_files
=unknown
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4849 $as_echo "$ac_cv_sys_large_files" >&6; }
4850 case $ac_cv_sys_large_files in #(
4853 cat >>confdefs.h
<<_ACEOF
4854 #define _LARGE_FILES $ac_cv_sys_large_files
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5
4869 $as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; }
4870 if ${am_cv_prog_cc_stdc+:} false
; then :
4871 $as_echo_n "(cached) " >&6
4873 am_cv_prog_cc_stdc
=no
4875 # Don't try gcc -ansi; that turns off useful extensions and
4876 # breaks some systems' header files.
4877 # AIX -qlanglvl=ansi
4878 # Ultrix and OSF/1 -std1
4879 # HP-UX 10.20 and later -Ae
4880 # HP-UX older versions -Aa -D_HPUX_SOURCE
4881 # SVR4 -Xc -D__EXTENSIONS__
4882 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4884 CC
="$ac_save_CC $ac_arg"
4885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4889 #include <sys/types.h>
4890 #include <sys/stat.h>
4891 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4892 struct buf { int x; };
4893 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4894 static char *e (p, i)
4900 static char *f (char * (*g) (char **, int), char **p, ...)
4905 s = g (p, va_arg (v,int));
4909 int test (int i, double x);
4910 struct s1 {int (*f) (int a);};
4911 struct s2 {int (*f) (double a);};
4912 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4920 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4926 if ac_fn_c_try_compile
"$LINENO"; then :
4927 am_cv_prog_cc_stdc
="$ac_arg"; break
4929 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4935 if test -z "$am_cv_prog_cc_stdc"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4937 $as_echo "none needed" >&6; }
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5
4940 $as_echo "$am_cv_prog_cc_stdc" >&6; }
4942 case "x$am_cv_prog_cc_stdc" in
4944 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
4947 # Expand $ac_aux_dir to an absolute path.
4948 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
4950 if test x
"${install_sh+set}" != xset
; then
4953 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
4955 install_sh
="\${SHELL} $am_aux_dir/install-sh"
4959 # Installed binaries are usually stripped using 'strip' when the user
4960 # run "make install-strip". However 'strip' might not be the right
4961 # tool to use in cross-compilation environments, therefore Automake
4962 # will honor the 'STRIP' environment variable to overrule this program.
4963 if test "$cross_compiling" != no
; then
4964 if test -n "$ac_tool_prefix"; then
4965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4966 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_STRIP+:} false
; then :
4970 $as_echo_n "(cached) " >&6
4972 if test -n "$STRIP"; then
4973 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
4975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir
=.
4980 for ac_exec_ext
in '' $ac_executable_extensions; do
4981 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 STRIP
=$ac_cv_prog_STRIP
4993 if test -n "$STRIP"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4995 $as_echo "$STRIP" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5003 if test -z "$ac_cv_prog_STRIP"; then
5005 # Extract the first word of "strip", so it can be a program name with args.
5006 set dummy strip
; ac_word
=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
5010 $as_echo_n "(cached) " >&6
5012 if test -n "$ac_ct_STRIP"; then
5013 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
5015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir
=.
5020 for ac_exec_ext
in '' $ac_executable_extensions; do
5021 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_ac_ct_STRIP
="strip"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
5033 if test -n "$ac_ct_STRIP"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5035 $as_echo "$ac_ct_STRIP" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5041 if test "x$ac_ct_STRIP" = x
; then
5044 case $cross_compiling:$ac_tool_warned in
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5048 ac_tool_warned
=yes ;;
5053 STRIP
="$ac_cv_prog_STRIP"
5057 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
5061 for ac_dir
in ..
"$srcdir"/..
; do
5062 if test -f "$ac_dir/install-sh"; then
5064 ac_install_sh
="$ac_aux_dir/install-sh -c"
5066 elif test -f "$ac_dir/install.sh"; then
5068 ac_install_sh
="$ac_aux_dir/install.sh -c"
5070 elif test -f "$ac_dir/shtool"; then
5072 ac_install_sh
="$ac_aux_dir/shtool install -c"
5076 if test -z "$ac_aux_dir"; then
5077 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
5080 # These three variables are undocumented and unsupported,
5081 # and are intended to be withdrawn in a future Autoconf release.
5082 # They can cause serious problems if a builder's source tree is in a directory
5083 # whose full name contains unusual characters.
5084 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5085 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5086 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5090 test "$program_prefix" != NONE
&&
5091 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
5092 # Use a double $ so make ignores it.
5093 test "$program_suffix" != NONE
&&
5094 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
5095 # Double any \ or $.
5096 # By default was `s,x,x', remove it if useless.
5097 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
5098 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
5101 # We require a C++11 compiler. Check if one is available, and if
5102 # necessary, set CXX_DIALECT to some -std=xxx switch.
5104 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5106 ac_cpp
='$CXXCPP $CPPFLAGS'
5107 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5113 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5114 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5115 $as_echo_n "(cached) " >&6
5117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5118 /* end confdefs.h. */
5121 // If the compiler admits that it is not ready for C++11, why torture it?
5122 // Hopefully, this will speed up the test.
5126 #error "This is not a C++ compiler"
5128 #elif __cplusplus < 201103L
5130 #error "This is not a C++11 compiler"
5137 namespace test_static_assert
5140 template <typename T>
5143 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5148 namespace test_final_override
5156 struct Derived : public Base
5158 virtual void f() override {}
5163 namespace test_double_right_angle_brackets
5166 template < typename T >
5169 typedef check<void> single_type;
5170 typedef check<check<void>> double_type;
5171 typedef check<check<check<void>>> triple_type;
5172 typedef check<check<check<check<void>>>> quadruple_type;
5176 namespace test_decltype
5189 namespace test_type_deduction
5192 template < typename T1, typename T2 >
5195 static const bool value = false;
5198 template < typename T >
5199 struct is_same<T, T>
5201 static const bool value = true;
5204 template < typename T1, typename T2 >
5206 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5212 test(const int c, volatile int v)
5214 static_assert(is_same<int, decltype(0)>::value == true, "");
5215 static_assert(is_same<int, decltype(c)>::value == false, "");
5216 static_assert(is_same<int, decltype(v)>::value == false, "");
5219 auto sumi = ac + av + 'x';
5220 auto sumf = ac + av + 1.0;
5221 static_assert(is_same<int, decltype(ac)>::value == true, "");
5222 static_assert(is_same<int, decltype(av)>::value == true, "");
5223 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5224 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5225 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5226 return (sumf > 0.0) ? sumi : add(c, v);
5231 namespace test_noexcept
5234 int f() { return 0; }
5235 int g() noexcept { return 0; }
5237 static_assert(noexcept(f()) == false, "");
5238 static_assert(noexcept(g()) == true, "");
5242 namespace test_constexpr
5245 template < typename CharT >
5246 unsigned long constexpr
5247 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5249 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5252 template < typename CharT >
5253 unsigned long constexpr
5254 strlen_c(const CharT *const s) noexcept
5256 return strlen_c_r(s, 0UL);
5259 static_assert(strlen_c("") == 0UL, "");
5260 static_assert(strlen_c("1") == 1UL, "");
5261 static_assert(strlen_c("example") == 7UL, "");
5262 static_assert(strlen_c("another\0example") == 7UL, "");
5266 namespace test_rvalue_references
5272 static constexpr int value = N;
5275 answer<1> f(int&) { return answer<1>(); }
5276 answer<2> f(const int&) { return answer<2>(); }
5277 answer<3> f(int&&) { return answer<3>(); }
5284 static_assert(decltype(f(i))::value == 1, "");
5285 static_assert(decltype(f(c))::value == 2, "");
5286 static_assert(decltype(f(0))::value == 3, "");
5291 namespace test_uniform_initialization
5296 static const int zero {};
5297 static const int one {1};
5300 static_assert(test::zero == 0, "");
5301 static_assert(test::one == 1, "");
5305 namespace test_lambdas
5311 auto lambda1 = [](){};
5312 auto lambda2 = lambda1;
5320 auto a = [](int i, int j){ return i + j; }(1, 2);
5321 auto b = []() -> int { return '0'; }();
5322 auto c = [=](){ return a + b; }();
5323 auto d = [&](){ return c; }();
5324 auto e = [a, &b](int x) mutable {
5325 const auto identity = [](int y){ return y; };
5326 for (auto i = 0; i < a; ++i)
5328 return x + identity(a + b);
5330 return a + b + c + d + e;
5336 const auto nullary = [](){ return 0; };
5337 const auto unary = [](int x){ return x; };
5338 using nullary_t = decltype(nullary);
5339 using unary_t = decltype(unary);
5340 const auto higher1st = [](nullary_t f){ return f(); };
5341 const auto higher2nd = [unary](nullary_t f1){
5342 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5344 return higher1st(nullary) + higher2nd(nullary)(unary);
5349 namespace test_variadic_templates
5355 template <int N0, int... N1toN>
5356 struct sum<N0, N1toN...>
5358 static constexpr auto value = N0 + sum<N1toN...>::value;
5364 static constexpr auto value = 0;
5367 static_assert(sum<>::value == 0, "");
5368 static_assert(sum<1>::value == 1, "");
5369 static_assert(sum<23>::value == 23, "");
5370 static_assert(sum<1, 2>::value == 3, "");
5371 static_assert(sum<5, 5, 11>::value == 21, "");
5372 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5376 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5377 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5379 namespace test_template_alias_sfinae
5384 template<typename T>
5385 using member = typename T::member_type;
5387 template<typename T>
5390 template<typename T>
5391 void func(member<T>*) {}
5395 void test() { func<foo>(0); }
5399 } // namespace cxx11
5401 #endif // __cplusplus >= 201103L
5406 if ac_fn_cxx_try_compile
"$LINENO"; then :
5407 ax_cv_cxx_compile_cxx11
=yes
5409 ax_cv_cxx_compile_cxx11
=no
5411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5414 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5415 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
5419 if test x
$ac_success = xno
; then
5420 for alternative
in ${ax_cxx_compile_alternatives}; do
5421 switch
="-std=gnu++${alternative}"
5422 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5424 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5425 if eval \
${$cachevar+:} false
; then :
5426 $as_echo_n "(cached) " >&6
5430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5434 // If the compiler admits that it is not ready for C++11, why torture it?
5435 // Hopefully, this will speed up the test.
5439 #error "This is not a C++ compiler"
5441 #elif __cplusplus < 201103L
5443 #error "This is not a C++11 compiler"
5450 namespace test_static_assert
5453 template <typename T>
5456 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5461 namespace test_final_override
5469 struct Derived : public Base
5471 virtual void f() override {}
5476 namespace test_double_right_angle_brackets
5479 template < typename T >
5482 typedef check<void> single_type;
5483 typedef check<check<void>> double_type;
5484 typedef check<check<check<void>>> triple_type;
5485 typedef check<check<check<check<void>>>> quadruple_type;
5489 namespace test_decltype
5502 namespace test_type_deduction
5505 template < typename T1, typename T2 >
5508 static const bool value = false;
5511 template < typename T >
5512 struct is_same<T, T>
5514 static const bool value = true;
5517 template < typename T1, typename T2 >
5519 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5525 test(const int c, volatile int v)
5527 static_assert(is_same<int, decltype(0)>::value == true, "");
5528 static_assert(is_same<int, decltype(c)>::value == false, "");
5529 static_assert(is_same<int, decltype(v)>::value == false, "");
5532 auto sumi = ac + av + 'x';
5533 auto sumf = ac + av + 1.0;
5534 static_assert(is_same<int, decltype(ac)>::value == true, "");
5535 static_assert(is_same<int, decltype(av)>::value == true, "");
5536 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5537 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5538 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5539 return (sumf > 0.0) ? sumi : add(c, v);
5544 namespace test_noexcept
5547 int f() { return 0; }
5548 int g() noexcept { return 0; }
5550 static_assert(noexcept(f()) == false, "");
5551 static_assert(noexcept(g()) == true, "");
5555 namespace test_constexpr
5558 template < typename CharT >
5559 unsigned long constexpr
5560 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5562 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5565 template < typename CharT >
5566 unsigned long constexpr
5567 strlen_c(const CharT *const s) noexcept
5569 return strlen_c_r(s, 0UL);
5572 static_assert(strlen_c("") == 0UL, "");
5573 static_assert(strlen_c("1") == 1UL, "");
5574 static_assert(strlen_c("example") == 7UL, "");
5575 static_assert(strlen_c("another\0example") == 7UL, "");
5579 namespace test_rvalue_references
5585 static constexpr int value = N;
5588 answer<1> f(int&) { return answer<1>(); }
5589 answer<2> f(const int&) { return answer<2>(); }
5590 answer<3> f(int&&) { return answer<3>(); }
5597 static_assert(decltype(f(i))::value == 1, "");
5598 static_assert(decltype(f(c))::value == 2, "");
5599 static_assert(decltype(f(0))::value == 3, "");
5604 namespace test_uniform_initialization
5609 static const int zero {};
5610 static const int one {1};
5613 static_assert(test::zero == 0, "");
5614 static_assert(test::one == 1, "");
5618 namespace test_lambdas
5624 auto lambda1 = [](){};
5625 auto lambda2 = lambda1;
5633 auto a = [](int i, int j){ return i + j; }(1, 2);
5634 auto b = []() -> int { return '0'; }();
5635 auto c = [=](){ return a + b; }();
5636 auto d = [&](){ return c; }();
5637 auto e = [a, &b](int x) mutable {
5638 const auto identity = [](int y){ return y; };
5639 for (auto i = 0; i < a; ++i)
5641 return x + identity(a + b);
5643 return a + b + c + d + e;
5649 const auto nullary = [](){ return 0; };
5650 const auto unary = [](int x){ return x; };
5651 using nullary_t = decltype(nullary);
5652 using unary_t = decltype(unary);
5653 const auto higher1st = [](nullary_t f){ return f(); };
5654 const auto higher2nd = [unary](nullary_t f1){
5655 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5657 return higher1st(nullary) + higher2nd(nullary)(unary);
5662 namespace test_variadic_templates
5668 template <int N0, int... N1toN>
5669 struct sum<N0, N1toN...>
5671 static constexpr auto value = N0 + sum<N1toN...>::value;
5677 static constexpr auto value = 0;
5680 static_assert(sum<>::value == 0, "");
5681 static_assert(sum<1>::value == 1, "");
5682 static_assert(sum<23>::value == 23, "");
5683 static_assert(sum<1, 2>::value == 3, "");
5684 static_assert(sum<5, 5, 11>::value == 21, "");
5685 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5689 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5690 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5692 namespace test_template_alias_sfinae
5697 template<typename T>
5698 using member = typename T::member_type;
5700 template<typename T>
5703 template<typename T>
5704 void func(member<T>*) {}
5708 void test() { func<foo>(0); }
5712 } // namespace cxx11
5714 #endif // __cplusplus >= 201103L
5719 if ac_fn_cxx_try_compile
"$LINENO"; then :
5724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5727 eval ac_res
=\$
$cachevar
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5729 $as_echo "$ac_res" >&6; }
5730 if eval test x\$
$cachevar = xyes
; then
5731 CXX_DIALECT
="$switch"
5738 if test x
$ac_success = xno
; then
5739 for alternative
in ${ax_cxx_compile_alternatives}; do
5740 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
5741 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
5743 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
5744 if eval \${$cachevar+:} false; then :
5745 $as_echo_n "(cached
) " >&6
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5753 // If the compiler admits that it is not ready for C++11, why torture it?
5754 // Hopefully, this will speed up the test.
5758 #error "This is not a C
++ compiler
"
5760 #elif __cplusplus < 201103L
5762 #error "This is not a C
++11 compiler
"
5769 namespace test_static_assert
5772 template <typename T>
5775 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
5780 namespace test_final_override
5788 struct Derived : public Base
5790 virtual void f() override {}
5795 namespace test_double_right_angle_brackets
5798 template < typename T >
5801 typedef check<void> single_type;
5802 typedef check<check<void>> double_type;
5803 typedef check<check<check<void>>> triple_type;
5804 typedef check<check<check<check<void>>>> quadruple_type;
5808 namespace test_decltype
5821 namespace test_type_deduction
5824 template < typename T1, typename T2 >
5827 static const bool value = false;
5830 template < typename T >
5831 struct is_same<T, T>
5833 static const bool value = true;
5836 template < typename T1, typename T2 >
5838 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5844 test(const int c, volatile int v)
5846 static_assert(is_same<int, decltype(0)>::value == true, "");
5847 static_assert(is_same<int, decltype(c)>::value == false, "");
5848 static_assert(is_same<int, decltype(v)>::value == false, "");
5851 auto sumi = ac + av + 'x';
5852 auto sumf = ac + av + 1.0;
5853 static_assert(is_same<int, decltype(ac)>::value == true, "");
5854 static_assert(is_same<int, decltype(av)>::value == true, "");
5855 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5856 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5857 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5858 return (sumf > 0.0) ? sumi : add(c, v);
5863 namespace test_noexcept
5866 int f() { return 0; }
5867 int g() noexcept { return 0; }
5869 static_assert(noexcept(f()) == false, "");
5870 static_assert(noexcept(g()) == true, "");
5874 namespace test_constexpr
5877 template < typename CharT >
5878 unsigned long constexpr
5879 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5881 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5884 template < typename CharT >
5885 unsigned long constexpr
5886 strlen_c(const CharT *const s) noexcept
5888 return strlen_c_r(s, 0UL);
5891 static_assert(strlen_c("") == 0UL, "");
5892 static_assert(strlen_c("1") == 1UL, "");
5893 static_assert(strlen_c("example
") == 7UL, "");
5894 static_assert(strlen_c("another\
0example
") == 7UL, "");
5898 namespace test_rvalue_references
5904 static constexpr int value = N;
5907 answer<1> f(int&) { return answer<1>(); }
5908 answer<2> f(const int&) { return answer<2>(); }
5909 answer<3> f(int&&) { return answer<3>(); }
5916 static_assert(decltype(f(i))::value == 1, "");
5917 static_assert(decltype(f(c))::value == 2, "");
5918 static_assert(decltype(f(0))::value == 3, "");
5923 namespace test_uniform_initialization
5928 static const int zero {};
5929 static const int one {1};
5932 static_assert(test::zero == 0, "");
5933 static_assert(test::one == 1, "");
5937 namespace test_lambdas
5943 auto lambda1 = [](){};
5944 auto lambda2 = lambda1;
5952 auto a = [](int i, int j){ return i + j; }(1, 2);
5953 auto b = []() -> int { return '0'; }();
5954 auto c = [=](){ return a + b; }();
5955 auto d = [&](){ return c; }();
5956 auto e = [a, &b](int x) mutable {
5957 const auto identity = [](int y){ return y; };
5958 for (auto i = 0; i < a; ++i)
5960 return x + identity(a + b);
5962 return a + b + c + d + e;
5968 const auto nullary = [](){ return 0; };
5969 const auto unary = [](int x){ return x; };
5970 using nullary_t = decltype(nullary);
5971 using unary_t = decltype(unary);
5972 const auto higher1st = [](nullary_t f){ return f(); };
5973 const auto higher2nd = [unary](nullary_t f1){
5974 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5976 return higher1st(nullary) + higher2nd(nullary)(unary);
5981 namespace test_variadic_templates
5987 template <int N0, int... N1toN>
5988 struct sum<N0, N1toN...>
5990 static constexpr auto value = N0 + sum<N1toN...>::value;
5996 static constexpr auto value = 0;
5999 static_assert(sum<>::value == 0, "");
6000 static_assert(sum<1>::value == 1, "");
6001 static_assert(sum<23>::value == 23, "");
6002 static_assert(sum<1, 2>::value == 3, "");
6003 static_assert(sum<5, 5, 11>::value == 21, "");
6004 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6008 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6009 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6011 namespace test_template_alias_sfinae
6016 template<typename T>
6017 using member = typename T::member_type;
6019 template<typename T>
6022 template<typename T>
6023 void func(member<T>*) {}
6027 void test() { func<foo>(0); }
6031 } // namespace cxx11
6033 #endif // __cplusplus >= 201103L
6038 if ac_fn_cxx_try_compile "$LINENO"; then :
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6046 eval ac_res=\$$cachevar
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6048 $as_echo "$ac_res" >&6; }
6049 if eval test x\$$cachevar = xyes; then
6050 CXX_DIALECT="$switch"
6055 if test x$ac_success = xyes; then
6061 ac_cpp='$CPP $CPPFLAGS'
6062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6067 if test x$ac_success = xno; then
6068 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6071 if test x$ac_success = xno; then
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6074 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6078 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6085 # Dependency checking.
6086 rm -rf .tst
2>/dev
/null
6087 mkdir .tst
2>/dev
/null
6088 if test -d .tst
; then
6093 rmdir .tst
2>/dev
/null
6095 DEPDIR
="${am__leading_dot}deps"
6097 ac_config_commands
="$ac_config_commands depdir"
6100 depcc
="$CC" am_compiler_list
=
6102 am_depcomp
=$ac_aux_dir/depcomp
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6104 $as_echo_n "checking dependency style of $depcc... " >&6; }
6105 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
6106 $as_echo_n "(cached) " >&6
6108 if test -f "$am_depcomp"; then
6109 # We make a subdir and do the tests there. Otherwise we can end up
6110 # making bogus files that we don't know about and never remove. For
6111 # instance it was reported that on HP-UX the gcc test will end up
6112 # making a dummy file named `D' -- because `-MD' means `put the output
6115 # Copy depcomp to subdir because otherwise we won't find it if we're
6116 # using a relative directory.
6117 cp "$am_depcomp" conftest.dir
6119 # We will build objects and dependencies in a subdirectory because
6120 # it helps to detect inapplicable dependency modes. For instance
6121 # both Tru64's cc and ICC support -MD to output dependencies as a
6122 # side effect of compilation, but ICC will put the dependencies in
6123 # the current directory while Tru64 will put them in the object
6127 am_cv_CC_dependencies_compiler_type
=none
6128 if test "$am_compiler_list" = ""; then
6129 am_compiler_list
=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6131 for depmode
in $am_compiler_list; do
6132 if test $depmode = none
; then break; fi
6134 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6135 # Setup a source with many dependencies, because some compilers
6136 # like to wrap large dependency lists on column 80 (with \), and
6137 # we should not choose a depcomp mode which is confused by this.
6139 # We need to recreate these files for each test, as the compiler may
6140 # overwrite some of them when testing with obscure command lines.
6141 # This happens at least with the AIX C compiler.
6143 for i
in 1 2 3 4 5 6; do
6144 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
6145 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6146 # Solaris 8's {/usr,}/bin/sh.
6147 touch sub
/conftst
$i.h
6149 echo "include sub/conftest.Po" > confmf
6151 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6152 # mode. It turns out that the SunPro C++ compiler does not properly
6153 # handle `-M -o', and we need to detect this.
6154 depcmd
="depmode=$depmode \
6155 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6156 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6157 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
6158 echo "| $depcmd" |
sed -e 's/ */ /g' >&5
6159 if env
$depcmd > conftest.err
2>&1 &&
6160 grep sub
/conftst6.h sub
/conftest.Po
>>conftest.err
2>&1 &&
6161 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
>>conftest.err
2>&1 &&
6162 ${MAKE-make} -s -f confmf
>>conftest.err
2>&1; then
6163 # icc doesn't choke on unknown options, it will just issue warnings
6164 # or remarks (even with -Werror). So we grep stderr for any message
6165 # that says an option was ignored or not supported.
6166 # When given -MP, icc 7.0 and 7.1 complain thusly:
6167 # icc: Command line warning: ignoring option '-M'; no argument required
6168 # The diagnosis changed in icc 8.0:
6169 # icc: Command line remark: option '-MP' not supported
6170 if (grep 'ignoring option' conftest.err ||
6171 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
6172 am_cv_CC_dependencies_compiler_type
=$depmode
6173 $as_echo "$as_me:$LINENO: success" >&5
6177 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
6178 sed -e 's/^/| /' < conftest.err
>&5
6184 am_cv_CC_dependencies_compiler_type
=none
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6189 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6190 if test x
${am_cv_CC_dependencies_compiler_type-none} = xnone
6191 then as_fn_error $?
"no usable dependency style found" "$LINENO" 5
6192 else CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
6197 gnulib_extra_configure_args
=
6198 # If large-file support is disabled, make sure gnulib does the same.
6199 if test "$enable_largefile" = no
; then
6200 gnulib_extra_configure_args
="$gnulib_extra_configure_args --disable-largefile"
6203 # Configure gnulib. We need to build gnulib under some other
6204 # directory not "gnulib", to avoid the problem of both GDB and
6205 # GDBserver wanting to build it in the same directory, when building
6206 # in the source dir.
6209 in_build
="build-gnulib"
6210 in_extra_args
="$gnulib_extra_configure_args"
6212 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
6213 # so they do not pile up.
6214 ac_sub_configure_args
=
6216 eval "set x $ac_configure_args"
6220 if test -n "$ac_prev"; then
6225 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
6226 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
6227 ac_prev
=cache_file
;;
6228 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
6229 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
6232 --config-cache |
-C)
6234 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
6236 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
6238 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
6240 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
6242 --disable-option-checking)
6246 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6248 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
6252 # Always prepend --prefix to ensure using the same prefix
6253 # in subdir configurations.
6254 ac_arg
="--prefix=$prefix"
6256 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6258 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
6261 if test "$silent" = yes; then
6262 ac_sub_configure_args
="--silent $ac_sub_configure_args"
6265 # Always prepend --disable-option-checking to silence warnings, since
6266 # different subdirs can have different --enable and --with options.
6267 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
6272 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
6273 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
6274 $as_echo "$ac_msg" >&6
6275 as_dir
="$ac_dir"; as_fn_mkdir_p
6279 ac_srcdir
=$srcdir/$in_src ;;
6281 ac_srcdir
=..
/$srcdir/$in_src ;;
6286 ac_sub_configure
=$ac_srcdir/configure
6288 # Make the cache file name correct relative to the subdirectory.
6290 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
6292 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
6295 if test -n "$in_extra_args"; then
6296 # Add the extra args at the end.
6297 ac_sub_configure_args
="$ac_sub_configure_args $in_extra_args"
6300 { $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
6301 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
6302 # The eval makes quoting arguments work.
6303 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
6304 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
6305 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
6321 # If we haven't got the data from the intl directory,
6322 # assume NLS is disabled.
6331 if test -f ..
/intl
/config.intl
; then
6332 . ..
/intl
/config.intl
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6335 $as_echo_n "checking whether NLS is requested... " >&6; }
6336 if test x
"$USE_NLS" != xyes
; then
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6341 $as_echo "yes" >&6; }
6343 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
6347 $as_echo_n "checking for catalogs to be installed... " >&6; }
6348 # Look for .po and .gmo files in the source directory.
6351 for cat in $srcdir/po
/*.gmo
$srcdir/po
/*.po
; do
6352 # If there aren't any .gmo files the shell will give us the
6353 # literal string "../path/to/srcdir/po/*.gmo" which has to be
6355 case "$cat" in *\
**)
6358 # The quadruple backslash is collapsed to a double backslash
6359 # by the backticks, then collapsed again by the double quotes,
6360 # leaving us with one backslash in the sed expression (right
6361 # before the dot that mustn't act as a wildcard).
6362 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
6363 lang
=`echo $cat | sed -e "s!\\\\.gmo!!"`
6364 # The user is allowed to set LINGUAS to a list of languages to
6365 # install catalogs for. If it's empty that means "all of them."
6366 if test "x$LINGUAS" = x
; then
6367 CATALOGS
="$CATALOGS $cat"
6368 XLINGUAS
="$XLINGUAS $lang"
6370 case "$LINGUAS" in *$lang*)
6371 CATALOGS
="$CATALOGS $cat"
6372 XLINGUAS
="$XLINGUAS $lang"
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
6379 $as_echo "$LINGUAS" >&6; }
6392 localedir
='${datadir}/locale'
6395 if test x
"$USE_NLS" = xyes
; then
6396 CONFIG_ALL
="$CONFIG_ALL all-po"
6397 CONFIG_CLEAN
="$CONFIG_CLEAN clean-po"
6398 CONFIG_INSTALL
="$CONFIG_INSTALL install-po"
6399 CONFIG_UNINSTALL
="$CONFIG_UNINSTALL uninstall-po"
6402 GNULIB
=build-gnulib
/import
6404 # For Makefile dependencies.
6406 if test x
"$STDINT_H" != x
; then
6407 GNULIB_STDINT_H
=$GNULIB/$STDINT_H
6413 cat >>confdefs.h
<<_ACEOF
6414 #define PACKAGE "$PACKAGE"
6419 # We never need to detect it in this sub-configure.
6420 # But preserve it for config.status --recheck.
6424 MAKEINFO_EXTRA_FLAGS
=""
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $MAKEINFO supports @click" >&5
6426 $as_echo_n "checking whether $MAKEINFO supports @click... " >&6; }
6427 if ${gdb_cv_have_makeinfo_click+:} false
; then :
6428 $as_echo_n "(cached) " >&6
6430 echo '@clicksequence{a @click{} b}' >conftest.texinfo
6431 if eval "$MAKEINFO conftest.texinfo >&5 2>&5"; then
6432 gdb_cv_have_makeinfo_click
=yes
6434 gdb_cv_have_makeinfo_click
=no
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_makeinfo_click" >&5
6438 $as_echo "$gdb_cv_have_makeinfo_click" >&6; }
6439 if test x
"$gdb_cv_have_makeinfo_click" = xyes
; then
6440 MAKEINFO_EXTRA_FLAGS
="$MAKEINFO_EXTRA_FLAGS -DHAVE_MAKEINFO_CLICK"
6446 # Check whether --with-separate-debug-dir was given.
6447 if test "${with_separate_debug_dir+set}" = set; then :
6448 withval
=$with_separate_debug_dir;
6451 DEBUGDIR
=${libdir}/debug
6455 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6456 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6457 ac_define_dir
=`eval echo $DEBUGDIR`
6458 ac_define_dir
=`eval echo $ac_define_dir`
6460 cat >>confdefs.h
<<_ACEOF
6461 #define DEBUGDIR "$ac_define_dir"
6467 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6468 if test "x$prefix" = xNONE
; then
6469 test_prefix
=/usr
/local
6474 test_prefix
=$exec_prefix
6477 case ${ac_define_dir} in
6478 "${test_prefix}"|
"${test_prefix}/"*|\
6479 '${exec_prefix}'|
'${exec_prefix}/'*)
6484 cat >>confdefs.h
<<_ACEOF
6485 #define DEBUGDIR_RELOCATABLE $value
6491 # We can't pass paths as command line arguments.
6492 # Mingw32 tries to be clever and will convert the paths for us.
6493 # For example -DBINDIR="/usr/local/bin" passed on the command line may get
6494 # converted to -DBINDIR="E:/msys/mingw32/msys/1.0/local/bin".
6495 # This breaks GDB's relocatable path conversions since paths passed in
6496 # config.h would not get so translated, the path prefixes no longer match.
6498 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6499 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6500 ac_define_dir
=`eval echo $bindir`
6501 ac_define_dir
=`eval echo $ac_define_dir`
6503 cat >>confdefs.h
<<_ACEOF
6504 #define BINDIR "$ac_define_dir"
6509 # GDB's datadir relocation
6513 # Check whether --with-gdb-datadir was given.
6514 if test "${with_gdb_datadir+set}" = set; then :
6515 withval
=$with_gdb_datadir;
6516 GDB_DATADIR
=$withval
6518 GDB_DATADIR
=${datadir}/gdb
6522 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6523 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6524 ac_define_dir
=`eval echo $GDB_DATADIR`
6525 ac_define_dir
=`eval echo $ac_define_dir`
6527 cat >>confdefs.h
<<_ACEOF
6528 #define GDB_DATADIR "$ac_define_dir"
6534 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
6535 if test "x$prefix" = xNONE
; then
6536 test_prefix
=/usr
/local
6541 test_prefix
=$exec_prefix
6544 case ${ac_define_dir} in
6545 "${test_prefix}"|
"${test_prefix}/"*|\
6546 '${exec_prefix}'|
'${exec_prefix}/'*)
6551 cat >>confdefs.h
<<_ACEOF
6552 #define GDB_DATADIR_RELOCATABLE $value
6559 # Check whether --with-relocated-sources was given.
6560 if test "${with_relocated_sources+set}" = set; then :
6561 withval
=$with_relocated_sources; reloc_srcdir
="${withval}"
6563 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6564 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6565 ac_define_dir
=`eval echo $reloc_srcdir`
6566 ac_define_dir
=`eval echo $ac_define_dir`
6568 cat >>confdefs.h
<<_ACEOF
6569 #define RELOC_SRCDIR "$ac_define_dir"
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load directory" >&5
6578 $as_echo_n "checking for default auto-load directory... " >&6; }
6580 # Check whether --with-auto-load-dir was given.
6581 if test "${with_auto_load_dir+set}" = set; then :
6582 withval
=$with_auto_load_dir;
6584 with_auto_load_dir
='$debugdir:$datadir/auto-load'
6587 escape_dir
=`echo $with_auto_load_dir | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6589 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6590 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6591 ac_define_dir
=`eval echo $escape_dir`
6592 ac_define_dir
=`eval echo $ac_define_dir`
6594 cat >>confdefs.h
<<_ACEOF
6595 #define AUTO_LOAD_DIR "$ac_define_dir"
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_dir" >&5
6600 $as_echo "$with_auto_load_dir" >&6; }
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default auto-load safe-path" >&5
6603 $as_echo_n "checking for default auto-load safe-path... " >&6; }
6605 # Check whether --with-auto-load-safe-path was given.
6606 if test "${with_auto_load_safe_path+set}" = set; then :
6607 withval
=$with_auto_load_safe_path; if test "$with_auto_load_safe_path" = "no"; then
6608 with_auto_load_safe_path
="/"
6611 with_auto_load_safe_path
="$with_auto_load_dir"
6614 escape_dir
=`echo $with_auto_load_safe_path | sed -e 's/[$]datadir\>/\\\\\\\\\\\\&/g' -e 's/[$]debugdir\>/\\\\\\\\\\\\&/g'`
6616 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
6617 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6618 ac_define_dir
=`eval echo $escape_dir`
6619 ac_define_dir
=`eval echo $ac_define_dir`
6621 cat >>confdefs.h
<<_ACEOF
6622 #define AUTO_LOAD_SAFE_PATH "$ac_define_dir"
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5
6627 $as_echo "$with_auto_load_safe_path" >&6; }
6631 subdirs
="$subdirs testsuite"
6634 # Check whether to support alternative target configurations
6635 # Check whether --enable-targets was given.
6636 if test "${enable_targets+set}" = set; then :
6637 enableval
=$enable_targets; case "${enableval}" in
6638 yes |
"") as_fn_error $?
"enable-targets option must specify target names or 'all'" "$LINENO" 5
6640 no
) enable_targets
= ;;
6641 *) enable_targets
=$enableval ;;
6646 # Check whether to enable 64-bit support on 32-bit hosts
6647 # Check whether --enable-64-bit-bfd was given.
6648 if test "${enable_64_bit_bfd+set}" = set; then :
6649 enableval
=$enable_64_bit_bfd; case "${enableval}" in
6652 *) as_fn_error $?
"bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
6658 # Provide defaults for some variables set by the per-host and per-target
6660 gdb_host_obs
=posix-hdep.o
6662 if test "${target}" = "${host}"; then
6668 .
$srcdir/configure.
host
6670 # Add in the common host objects.
6671 .
$srcdir/common
/common.
host
6672 gdb_host_obs
="$gdb_host_obs $common_host_obs"
6674 # Accumulate some settings from configure.tgt over all enabled targets
6678 HAVE_NATIVE_GCORE_TARGET
=
6680 for targ_alias
in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6682 if test "$targ_alias" = "all"; then
6685 # Canonicalize the secondary target names.
6686 result
=`$ac_config_sub $targ_alias 2>/dev/null`
6687 if test -n "$result"; then
6693 .
${srcdir}/configure.tgt
6695 if test -z "${gdb_target_obs}"; then :
6696 as_fn_error $?
"configuration ${targ} is unsupported." "$LINENO" 5
6699 # Target-specific object files
6700 for i
in ${gdb_target_obs}; do
6701 case " $TARGET_OBS " in
6704 TARGET_OBS
="$TARGET_OBS ${i}"
6709 # Check whether this target needs 64-bit CORE_ADDR
6710 if test x
${want64} = xfalse
; then
6711 .
${srcdir}/..
/bfd
/config.bfd
6714 # Check whether this target is native and supports gcore.
6715 if test $gdb_native = yes -a "$targ_alias" = "$target_alias" \
6716 && $gdb_have_gcore; then
6717 HAVE_NATIVE_GCORE_TARGET
=1
6722 if test x
${all_targets} = xtrue
; then
6724 # We want all 64-bit targets if we either:
6725 # - run on a 64-bit host or
6726 # - already require 64-bit support for some other target or
6727 # - the --enable-64-bit-bfd option was supplied
6728 # Otherwise we only support all 32-bit targets.
6730 # NOTE: This test must be in sync with the corresponding
6733 if test x
${want64} = xfalse
; then
6734 # The cast to long int works around a bug in the HP C Compiler
6735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6737 # This bug is HP SR number 8606223364.
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
6739 $as_echo_n "checking size of long... " >&6; }
6740 if ${ac_cv_sizeof_long+:} false
; then :
6741 $as_echo_n "(cached) " >&6
6743 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
6746 if test "$ac_cv_type_long" = yes; then
6747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6749 as_fn_error
77 "cannot compute sizeof (long)
6750 See \`config.log' for more details" "$LINENO" 5; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
6758 $as_echo "$ac_cv_sizeof_long" >&6; }
6762 cat >>confdefs.h
<<_ACEOF
6763 #define SIZEOF_LONG $ac_cv_sizeof_long
6767 if test "x${ac_cv_sizeof_long}" = "x8"; then
6771 if test x
${want64} = xtrue
; then
6772 TARGET_OBS
='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
6774 TARGET_OBS
='$(ALL_TARGET_OBS)'
6781 # For other settings, only the main target counts.
6785 targ
=$target; .
${srcdir}/configure.tgt
6787 # Fetch the default architecture and default target vector from BFD.
6788 targ
=$target; .
$srcdir/..
/bfd
/config.bfd
6790 # We only want the first architecture, so strip off the others if
6791 # there is more than one.
6792 targ_archs
=`echo $targ_archs | sed 's/ .*//'`
6794 if test "x$targ_archs" != x
; then
6796 cat >>confdefs.h
<<_ACEOF
6797 #define DEFAULT_BFD_ARCH $targ_archs
6801 if test "x$targ_defvec" != x
; then
6803 cat >>confdefs.h
<<_ACEOF
6804 #define DEFAULT_BFD_VEC $targ_defvec
6810 # Check whether --enable-gdbmi was given.
6811 if test "${enable_gdbmi+set}" = set; then :
6812 enableval
=$enable_gdbmi; case $enableval in
6816 as_fn_error $?
"bad value $enableval for --enable-gdbmi" "$LINENO" 5 ;;
6822 if test x
"$enable_gdbmi" = xyes
; then
6823 if test -d $srcdir/mi
; then
6824 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
6825 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
6826 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
6827 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
6832 # Check whether --enable-tui was given.
6833 if test "${enable_tui+set}" = set; then :
6834 enableval
=$enable_tui; case $enableval in
6838 as_fn_error $?
"bad value $enableval for --enable-tui" "$LINENO" 5 ;;
6846 # Check whether --enable-gdbtk was given.
6847 if test "${enable_gdbtk+set}" = set; then :
6848 enableval
=$enable_gdbtk; case $enableval in
6852 as_fn_error $?
"bad value $enableval for --enable-gdbtk" "$LINENO" 5 ;;
6855 if test -d $srcdir/gdbtk
; then
6862 # We unconditionally disable gdbtk tests on selected platforms.
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gdbtk isn't supported on $host; disabling" >&5
6866 $as_echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
6870 # Libunwind support for ia64.
6873 # Check whether --with-libunwind-ia64 was given.
6874 if test "${with_libunwind_ia64+set}" = set; then :
6875 withval
=$with_libunwind_ia64;
6877 with_libunwind_ia64
=auto
6881 # Backward compatibility option.
6882 if test "${with_libunwind+set}" = set; then
6883 if test x
"$with_libunwind_ia64" != xauto
; then
6884 as_fn_error $?
"option --with-libunwind is deprecated, use --with-libunwind-ia64" "$LINENO" 5
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&5
6887 $as_echo "$as_me: WARNING: option --with-libunwind is deprecated, use --with-libunwind-ia64" >&2;}
6888 with_libunwind_ia64
="$with_libunwind"
6891 case "$with_libunwind_ia64" in
6895 for ac_header
in libunwind-ia64.h
6897 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6898 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6899 cat >>confdefs.h
<<_ACEOF
6900 #define HAVE_LIBUNWIND_IA64_H 1
6907 with_libunwind_ia64
=$ac_cv_header_libunwind_ia64_h
6910 as_fn_error $?
"bad value $with_libunwind_ia64 for GDB --with-libunwind-ia64 option" "$LINENO" 5
6914 if test x
"$with_libunwind_ia64" = xyes
; then
6915 for ac_header
in libunwind-ia64.h
6917 ac_fn_c_check_header_mongrel
"$LINENO" "libunwind-ia64.h" "ac_cv_header_libunwind_ia64_h" "$ac_includes_default"
6918 if test "x$ac_cv_header_libunwind_ia64_h" = xyes
; then :
6919 cat >>confdefs.h
<<_ACEOF
6920 #define HAVE_LIBUNWIND_IA64_H 1
6927 if test x
"$ac_cv_header_libunwind_ia64_h" != xyes
; then
6928 as_fn_error $?
"GDB option --with-libunwind-ia64 requires libunwind-ia64.h" "$LINENO" 5
6930 CONFIG_OBS
="$CONFIG_OBS ia64-libunwind-tdep.o"
6931 CONFIG_DEPS
="$CONFIG_DEPS ia64-libunwind-tdep.o"
6932 CONFIG_SRCS
="$CONFIG_SRCS ia64-libunwind-tdep.c"
6937 # Check whether --with-curses was given.
6938 if test "${with_curses+set}" = set; then :
6939 withval
=$with_curses; opt_curses
=$withval
6944 if test "$opt_curses" = "yes"; then
6948 # Profiling support.
6949 # Check whether --enable-profiling was given.
6950 if test "${enable_profiling+set}" = set; then :
6951 enableval
=$enable_profiling; case $enableval in
6955 as_fn_error $?
"bad value $enableval for --enable-profile" "$LINENO" 5 ;;
6962 for ac_func
in monstartup _mcleanup
6964 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6965 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
6966 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
6967 cat >>confdefs.h
<<_ACEOF
6968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _etext" >&5
6975 $as_echo_n "checking for _etext... " >&6; }
6976 if ${ac_cv_var__etext+:} false
; then :
6977 $as_echo_n "(cached) " >&6
6979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6992 if ac_fn_c_try_link
"$LINENO"; then :
6993 ac_cv_var__etext
=yes
6997 rm -f core conftest.err conftest.
$ac_objext \
6998 conftest
$ac_exeext conftest.
$ac_ext
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__etext" >&5
7001 $as_echo "$ac_cv_var__etext" >&6; }
7002 if test $ac_cv_var__etext = yes; then
7004 $as_echo "#define HAVE__ETEXT 1" >>confdefs.h
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for etext" >&5
7008 $as_echo_n "checking for etext... " >&6; }
7009 if ${ac_cv_var_etext+:} false
; then :
7010 $as_echo_n "(cached) " >&6
7012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7025 if ac_fn_c_try_link
"$LINENO"; then :
7030 rm -f core conftest.err conftest.
$ac_objext \
7031 conftest
$ac_exeext conftest.
$ac_ext
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_etext" >&5
7034 $as_echo "$ac_cv_var_etext" >&6; }
7035 if test $ac_cv_var_etext = yes; then
7037 $as_echo "#define HAVE_ETEXT 1" >>confdefs.h
7040 if test "$enable_profiling" = yes ; then
7041 if test $ac_cv_func_monstartup = no ||
test $ac_cv_func__mcleanup = no
; then
7042 as_fn_error $?
"--enable-profiling requires monstartup and _mcleanup" "$LINENO" 5
7045 OLD_CFLAGS
="$CFLAGS"
7046 CFLAGS
="$CFLAGS $PROFILE_CFLAGS"
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pg" >&5
7049 $as_echo_n "checking whether $CC supports -pg... " >&6; }
7050 if ${ac_cv_cc_supports_pg+:} false
; then :
7051 $as_echo_n "(cached) " >&6
7053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7054 /* end confdefs.h. */
7064 if ac_fn_c_try_compile
"$LINENO"; then :
7065 ac_cv_cc_supports_pg
=yes
7067 ac_cv_cc_supports_pg
=no
7069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_pg" >&5
7072 $as_echo "$ac_cv_cc_supports_pg" >&6; }
7074 if test $ac_cv_cc_supports_pg = no
; then
7075 as_fn_error $?
"--enable-profiling requires a compiler which supports -pg" "$LINENO" 5
7078 CFLAGS
="$OLD_CFLAGS"
7082 # Check whether --enable-codesign was given.
7083 if test "${enable_codesign+set}" = set; then :
7084 enableval
=$enable_codesign; CODESIGN_CERT
=$enableval
7091 # Check whether --with-pkgversion was given.
7092 if test "${with_pkgversion+set}" = set; then :
7093 withval
=$with_pkgversion; case "$withval" in
7094 yes) as_fn_error $?
"package version not specified" "$LINENO" 5 ;;
7096 *) PKGVERSION
="($withval) " ;;
7107 # Check whether --with-bugurl was given.
7108 if test "${with_bugurl+set}" = set; then :
7109 withval
=$with_bugurl; case "$withval" in
7110 yes) as_fn_error $?
"bug URL not specified" "$LINENO" 5 ;;
7113 *) BUGURL
="$withval"
7117 BUGURL
="http://www.gnu.org/software/gdb/bugs/"
7127 REPORT_BUGS_TO
="<$BUGURL>"
7128 REPORT_BUGS_TEXI
=@uref
{`echo "$BUGURL" | sed 's/@/@@/g'`}
7135 cat >>confdefs.h
<<_ACEOF
7136 #define PKGVERSION "$PKGVERSION"
7140 cat >>confdefs.h
<<_ACEOF
7141 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
7145 # --------------------- #
7146 # Checks for programs. #
7147 # --------------------- #
7149 for ac_prog
in gawk mawk nawk
awk
7151 # Extract the first word of "$ac_prog", so it can be a program name with args.
7152 set dummy
$ac_prog; ac_word
=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_prog_AWK+:} false
; then :
7156 $as_echo_n "(cached) " >&6
7158 if test -n "$AWK"; then
7159 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
7161 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7165 test -z "$as_dir" && as_dir
=.
7166 for ac_exec_ext
in '' $ac_executable_extensions; do
7167 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7168 ac_cv_prog_AWK
="$ac_prog"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 if test -n "$AWK"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7181 $as_echo "$AWK" >&6; }
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7188 test -n "$AWK" && break
7191 # Find a good install program. We prefer a C program (faster),
7192 # so one script is as good as another. But avoid the broken or
7193 # incompatible versions:
7194 # SysV /etc/install, /usr/sbin/install
7195 # SunOS /usr/etc/install
7196 # IRIX /sbin/install
7198 # AmigaOS /C/install, which installs bootblocks on floppy discs
7199 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7200 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7201 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7202 # OS/2's system install, which has a completely different semantic
7203 # ./install, which can be erroneously created by make from ./install.sh.
7204 # Reject install programs that cannot install multiple files.
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7206 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7207 if test -z "$INSTALL"; then
7208 if ${ac_cv_path_install+:} false
; then :
7209 $as_echo_n "(cached) " >&6
7211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7215 test -z "$as_dir" && as_dir
=.
7216 # Account for people who put trailing slashes in PATH elements.
7217 case $as_dir/ in #((
7218 .
/ | .
// |
/[cC
]/* | \
7219 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7220 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7223 # OSF1 and SCO ODT 3.0 have their own names for install.
7224 # Don't use installbsd from OSF since it installs stuff as root
7226 for ac_prog
in ginstall scoinst
install; do
7227 for ac_exec_ext
in '' $ac_executable_extensions; do
7228 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
7229 if test $ac_prog = install &&
7230 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7231 # AIX install. It has an incompatible calling convention.
7233 elif test $ac_prog = install &&
7234 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7235 # program-specific install script used by HP pwplus--don't use.
7238 rm -rf conftest.one conftest.two conftest.dir
7239 echo one
> conftest.one
7240 echo two
> conftest.two
7242 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7243 test -s conftest.one
&& test -s conftest.two
&&
7244 test -s conftest.dir
/conftest.one
&&
7245 test -s conftest.dir
/conftest.two
7247 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7260 rm -rf conftest.one conftest.two conftest.dir
7263 if test "${ac_cv_path_install+set}" = set; then
7264 INSTALL
=$ac_cv_path_install
7266 # As a last resort, use the slow shell script. Don't cache a
7267 # value for INSTALL within a source directory, because that will
7268 # break other packages using the cache if that directory is
7269 # removed, or if the value is a relative name.
7270 INSTALL
=$ac_install_sh
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7274 $as_echo "$INSTALL" >&6; }
7276 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7277 # It thinks the first close brace ends the variable substitution.
7278 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7280 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7282 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7285 $as_echo_n "checking whether ln -s works... " >&6; }
7287 if test "$LN_S" = "ln -s"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7289 $as_echo "yes" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7292 $as_echo "no, using $LN_S" >&6; }
7295 if test -n "$ac_tool_prefix"; then
7296 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7297 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299 $as_echo_n "checking for $ac_word... " >&6; }
7300 if ${ac_cv_prog_RANLIB+:} false
; then :
7301 $as_echo_n "(cached) " >&6
7303 if test -n "$RANLIB"; then
7304 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7306 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7310 test -z "$as_dir" && as_dir
=.
7311 for ac_exec_ext
in '' $ac_executable_extensions; do
7312 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7313 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 RANLIB
=$ac_cv_prog_RANLIB
7324 if test -n "$RANLIB"; then
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7326 $as_echo "$RANLIB" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7334 if test -z "$ac_cv_prog_RANLIB"; then
7335 ac_ct_RANLIB
=$RANLIB
7336 # Extract the first word of "ranlib", so it can be a program name with args.
7337 set dummy ranlib
; ac_word
=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7341 $as_echo_n "(cached) " >&6
7343 if test -n "$ac_ct_RANLIB"; then
7344 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7350 test -z "$as_dir" && as_dir
=.
7351 for ac_exec_ext
in '' $ac_executable_extensions; do
7352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7353 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7364 if test -n "$ac_ct_RANLIB"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7366 $as_echo "$ac_ct_RANLIB" >&6; }
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7372 if test "x$ac_ct_RANLIB" = x
; then
7375 case $cross_compiling:$ac_tool_warned in
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7379 ac_tool_warned
=yes ;;
7381 RANLIB
=$ac_ct_RANLIB
7384 RANLIB
="$ac_cv_prog_RANLIB"
7387 for ac_prog
in 'bison -y' byacc
7389 # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy
$ac_prog; ac_word
=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_prog_YACC+:} false
; then :
7394 $as_echo_n "(cached) " >&6
7396 if test -n "$YACC"; then
7397 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
7399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7403 test -z "$as_dir" && as_dir
=.
7404 for ac_exec_ext
in '' $ac_executable_extensions; do
7405 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7406 ac_cv_prog_YACC
="$ac_prog"
7407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416 YACC
=$ac_cv_prog_YACC
7417 if test -n "$YACC"; then
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7419 $as_echo "$YACC" >&6; }
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7422 $as_echo "no" >&6; }
7426 test -n "$YACC" && break
7428 test -n "$YACC" || YACC
="yacc"
7431 if test -n "$ac_tool_prefix"; then
7432 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7433 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_AR+:} false
; then :
7437 $as_echo_n "(cached) " >&6
7439 if test -n "$AR"; then
7440 ac_cv_prog_AR
="$AR" # Let the user override the test.
7442 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7446 test -z "$as_dir" && as_dir
=.
7447 for ac_exec_ext
in '' $ac_executable_extensions; do
7448 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 if test -n "$AR"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7462 $as_echo "$AR" >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7470 if test -z "$ac_cv_prog_AR"; then
7472 # Extract the first word of "ar", so it can be a program name with args.
7473 set dummy
ar; ac_word
=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7477 $as_echo_n "(cached) " >&6
7479 if test -n "$ac_ct_AR"; then
7480 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7486 test -z "$as_dir" && as_dir
=.
7487 for ac_exec_ext
in '' $ac_executable_extensions; do
7488 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7489 ac_cv_prog_ac_ct_AR
="ar"
7490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7500 if test -n "$ac_ct_AR"; then
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7502 $as_echo "$ac_ct_AR" >&6; }
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7508 if test "x$ac_ct_AR" = x
; then
7511 case $cross_compiling:$ac_tool_warned in
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7515 ac_tool_warned
=yes ;;
7523 if test -n "$ac_tool_prefix"; then
7524 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7525 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7529 $as_echo_n "(cached) " >&6
7531 if test -n "$DLLTOOL"; then
7532 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7538 test -z "$as_dir" && as_dir
=.
7539 for ac_exec_ext
in '' $ac_executable_extensions; do
7540 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551 DLLTOOL
=$ac_cv_prog_DLLTOOL
7552 if test -n "$DLLTOOL"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7554 $as_echo "$DLLTOOL" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7562 if test -z "$ac_cv_prog_DLLTOOL"; then
7563 ac_ct_DLLTOOL
=$DLLTOOL
7564 # Extract the first word of "dlltool", so it can be a program name with args.
7565 set dummy dlltool
; ac_word
=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7569 $as_echo_n "(cached) " >&6
7571 if test -n "$ac_ct_DLLTOOL"; then
7572 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7574 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7578 test -z "$as_dir" && as_dir
=.
7579 for ac_exec_ext
in '' $ac_executable_extensions; do
7580 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7581 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7591 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7592 if test -n "$ac_ct_DLLTOOL"; then
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7594 $as_echo "$ac_ct_DLLTOOL" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7600 if test "x$ac_ct_DLLTOOL" = x
; then
7603 case $cross_compiling:$ac_tool_warned in
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7607 ac_tool_warned
=yes ;;
7609 DLLTOOL
=$ac_ct_DLLTOOL
7612 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7615 if test -n "$ac_tool_prefix"; then
7616 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7617 set dummy
${ac_tool_prefix}windres
; ac_word
=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_WINDRES+:} false
; then :
7621 $as_echo_n "(cached) " >&6
7623 if test -n "$WINDRES"; then
7624 ac_cv_prog_WINDRES
="$WINDRES" # Let the user override the test.
7626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir
=.
7631 for ac_exec_ext
in '' $ac_executable_extensions; do
7632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_WINDRES
="${ac_tool_prefix}windres"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643 WINDRES
=$ac_cv_prog_WINDRES
7644 if test -n "$WINDRES"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7646 $as_echo "$WINDRES" >&6; }
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7654 if test -z "$ac_cv_prog_WINDRES"; then
7655 ac_ct_WINDRES
=$WINDRES
7656 # Extract the first word of "windres", so it can be a program name with args.
7657 set dummy windres
; ac_word
=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_prog_ac_ct_WINDRES+:} false
; then :
7661 $as_echo_n "(cached) " >&6
7663 if test -n "$ac_ct_WINDRES"; then
7664 ac_cv_prog_ac_ct_WINDRES
="$ac_ct_WINDRES" # Let the user override the test.
7666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7670 test -z "$as_dir" && as_dir
=.
7671 for ac_exec_ext
in '' $ac_executable_extensions; do
7672 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7673 ac_cv_prog_ac_ct_WINDRES
="windres"
7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7683 ac_ct_WINDRES
=$ac_cv_prog_ac_ct_WINDRES
7684 if test -n "$ac_ct_WINDRES"; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
7686 $as_echo "$ac_ct_WINDRES" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7692 if test "x$ac_ct_WINDRES" = x
; then
7695 case $cross_compiling:$ac_tool_warned in
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned
=yes ;;
7701 WINDRES
=$ac_ct_WINDRES
7704 WINDRES
="$ac_cv_prog_WINDRES"
7710 # Needed for GNU Hurd hosts.
7711 if test -n "$ac_tool_prefix"; then
7712 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
7713 set dummy
${ac_tool_prefix}mig
; ac_word
=$2
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7715 $as_echo_n "checking for $ac_word... " >&6; }
7716 if ${ac_cv_prog_MIG+:} false
; then :
7717 $as_echo_n "(cached) " >&6
7719 if test -n "$MIG"; then
7720 ac_cv_prog_MIG
="$MIG" # Let the user override the test.
7722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7726 test -z "$as_dir" && as_dir
=.
7727 for ac_exec_ext
in '' $ac_executable_extensions; do
7728 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7729 ac_cv_prog_MIG
="${ac_tool_prefix}mig"
7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 if test -n "$MIG"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIG" >&5
7742 $as_echo "$MIG" >&6; }
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7750 if test -z "$ac_cv_prog_MIG"; then
7752 # Extract the first word of "mig", so it can be a program name with args.
7753 set dummy mig
; ac_word
=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if ${ac_cv_prog_ac_ct_MIG+:} false
; then :
7757 $as_echo_n "(cached) " >&6
7759 if test -n "$ac_ct_MIG"; then
7760 ac_cv_prog_ac_ct_MIG
="$ac_ct_MIG" # Let the user override the test.
7762 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir
=.
7767 for ac_exec_ext
in '' $ac_executable_extensions; do
7768 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7769 ac_cv_prog_ac_ct_MIG
="mig"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 ac_ct_MIG
=$ac_cv_prog_ac_ct_MIG
7780 if test -n "$ac_ct_MIG"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MIG" >&5
7782 $as_echo "$ac_ct_MIG" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7788 if test "x$ac_ct_MIG" = x
; then
7791 case $cross_compiling:$ac_tool_warned in
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7795 ac_tool_warned
=yes ;;
7800 MIG
="$ac_cv_prog_MIG"
7803 if test x
"$MIG" = x
; then
7804 as_fn_error $?
"MIG not found but required for $host hosts" "$LINENO" 5
7809 # ---------------------- #
7810 # Checks for libraries. #
7811 # ---------------------- #
7813 # We might need to link with -lm; most simulators need it.
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7815 $as_echo_n "checking for main in -lm... " >&6; }
7816 if ${ac_cv_lib_m_main+:} false
; then :
7817 $as_echo_n "(cached) " >&6
7819 ac_check_lib_save_LIBS
=$LIBS
7821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7833 if ac_fn_c_try_link
"$LINENO"; then :
7834 ac_cv_lib_m_main
=yes
7838 rm -f core conftest.err conftest.
$ac_objext \
7839 conftest
$ac_exeext conftest.
$ac_ext
7840 LIBS
=$ac_check_lib_save_LIBS
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7843 $as_echo "$ac_cv_lib_m_main" >&6; }
7844 if test "x$ac_cv_lib_m_main" = xyes
; then :
7845 cat >>confdefs.h
<<_ACEOF
7854 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
7856 $as_echo_n "checking for library containing gethostbyname... " >&6; }
7857 if ${ac_cv_search_gethostbyname+:} false
; then :
7858 $as_echo_n "(cached) " >&6
7860 ac_func_search_save_LIBS
=$LIBS
7861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7864 /* Override any GCC internal prototype to avoid an error.
7865 Use char because int might match the return type of a GCC
7866 builtin and then its argument prototype would still apply. */
7870 char gethostbyname ();
7874 return gethostbyname ();
7879 for ac_lib
in '' nsl
; do
7880 if test -z "$ac_lib"; then
7881 ac_res
="none required"
7884 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7886 if ac_fn_c_try_link
"$LINENO"; then :
7887 ac_cv_search_gethostbyname
=$ac_res
7889 rm -f core conftest.err conftest.
$ac_objext \
7891 if ${ac_cv_search_gethostbyname+:} false
; then :
7895 if ${ac_cv_search_gethostbyname+:} false
; then :
7898 ac_cv_search_gethostbyname
=no
7901 LIBS
=$ac_func_search_save_LIBS
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
7904 $as_echo "$ac_cv_search_gethostbyname" >&6; }
7905 ac_res
=$ac_cv_search_gethostbyname
7906 if test "$ac_res" != no
; then :
7907 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7912 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socketpair" >&5
7914 $as_echo_n "checking for library containing socketpair... " >&6; }
7915 if ${ac_cv_search_socketpair+:} false
; then :
7916 $as_echo_n "(cached) " >&6
7918 ac_func_search_save_LIBS
=$LIBS
7919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7922 /* Override any GCC internal prototype to avoid an error.
7923 Use char because int might match the return type of a GCC
7924 builtin and then its argument prototype would still apply. */
7932 return socketpair ();
7937 for ac_lib
in '' socket
; do
7938 if test -z "$ac_lib"; then
7939 ac_res
="none required"
7942 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7944 if ac_fn_c_try_link
"$LINENO"; then :
7945 ac_cv_search_socketpair
=$ac_res
7947 rm -f core conftest.err conftest.
$ac_objext \
7949 if ${ac_cv_search_socketpair+:} false
; then :
7953 if ${ac_cv_search_socketpair+:} false
; then :
7956 ac_cv_search_socketpair
=no
7959 LIBS
=$ac_func_search_save_LIBS
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socketpair" >&5
7962 $as_echo "$ac_cv_search_socketpair" >&6; }
7963 ac_res
=$ac_cv_search_socketpair
7964 if test "$ac_res" != no
; then :
7965 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7970 # Link in zlib if we can. This allows us to read compressed debug sections.
7972 # Use the system's zlib library.
7973 zlibdir
="-L\$(top_builddir)/../zlib"
7974 zlibinc
="-I\$(top_srcdir)/../zlib"
7976 # Check whether --with-system-zlib was given.
7977 if test "${with_system_zlib+set}" = set; then :
7978 withval
=$with_system_zlib; if test x
$with_system_zlib = xyes
; then
7989 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
7990 # On GNU/kFreeBSD systems, FreeBSD libutil is renamed to libutil-freebsd.
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getvmmap" >&5
7992 $as_echo_n "checking for library containing kinfo_getvmmap... " >&6; }
7993 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
7994 $as_echo_n "(cached) " >&6
7996 ac_func_search_save_LIBS
=$LIBS
7997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7998 /* end confdefs.h. */
8000 /* Override any GCC internal prototype to avoid an error.
8001 Use char because int might match the return type of a GCC
8002 builtin and then its argument prototype would still apply. */
8006 char kinfo_getvmmap ();
8010 return kinfo_getvmmap ();
8015 for ac_lib
in '' util util-freebsd
; do
8016 if test -z "$ac_lib"; then
8017 ac_res
="none required"
8020 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8022 if ac_fn_c_try_link
"$LINENO"; then :
8023 ac_cv_search_kinfo_getvmmap
=$ac_res
8025 rm -f core conftest.err conftest.
$ac_objext \
8027 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8031 if ${ac_cv_search_kinfo_getvmmap+:} false
; then :
8034 ac_cv_search_kinfo_getvmmap
=no
8037 LIBS
=$ac_func_search_save_LIBS
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getvmmap" >&5
8040 $as_echo "$ac_cv_search_kinfo_getvmmap" >&6; }
8041 ac_res
=$ac_cv_search_kinfo_getvmmap
8042 if test "$ac_res" != no
; then :
8043 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8045 $as_echo "#define HAVE_KINFO_GETVMMAP 1" >>confdefs.h
8050 # fbsd-nat.c can also use kinfo_getfile.
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing kinfo_getfile" >&5
8052 $as_echo_n "checking for library containing kinfo_getfile... " >&6; }
8053 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8054 $as_echo_n "(cached) " >&6
8056 ac_func_search_save_LIBS
=$LIBS
8057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8060 /* Override any GCC internal prototype to avoid an error.
8061 Use char because int might match the return type of a GCC
8062 builtin and then its argument prototype would still apply. */
8066 char kinfo_getfile ();
8070 return kinfo_getfile ();
8075 for ac_lib
in '' util util-freebsd
; do
8076 if test -z "$ac_lib"; then
8077 ac_res
="none required"
8080 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8082 if ac_fn_c_try_link
"$LINENO"; then :
8083 ac_cv_search_kinfo_getfile
=$ac_res
8085 rm -f core conftest.err conftest.
$ac_objext \
8087 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8091 if ${ac_cv_search_kinfo_getfile+:} false
; then :
8094 ac_cv_search_kinfo_getfile
=no
8097 LIBS
=$ac_func_search_save_LIBS
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_kinfo_getfile" >&5
8100 $as_echo "$ac_cv_search_kinfo_getfile" >&6; }
8101 ac_res
=$ac_cv_search_kinfo_getfile
8102 if test "$ac_res" != no
; then :
8103 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8105 $as_echo "#define HAVE_KINFO_GETFILE 1" >>confdefs.h
8111 if test "X$prefix" = "XNONE"; then
8112 acl_final_prefix
="$ac_default_prefix"
8114 acl_final_prefix
="$prefix"
8116 if test "X$exec_prefix" = "XNONE"; then
8117 acl_final_exec_prefix
='${prefix}'
8119 acl_final_exec_prefix
="$exec_prefix"
8121 acl_save_prefix
="$prefix"
8122 prefix
="$acl_final_prefix"
8123 eval acl_final_exec_prefix
=\"$acl_final_exec_prefix\"
8124 prefix
="$acl_save_prefix"
8127 # Check whether --with-gnu-ld was given.
8128 if test "${with_gnu_ld+set}" = set; then :
8129 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
8134 # Prepare PATH_SEPARATOR.
8135 # The user is always right.
8136 if test "${PATH_SEPARATOR+set}" != set; then
8137 echo "#! /bin/sh" >conf$$.sh
8138 echo "exit 0" >>conf$$.sh
8140 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8148 if test "$GCC" = yes; then
8149 # Check if gcc -print-prog-name=ld gives a path.
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
8151 $as_echo_n "checking for ld used by GCC... " >&6; }
8154 # gcc leaves a trailing carriage return which upsets mingw
8155 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8157 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8160 # Accept absolute paths.
8161 [\\/]* |
[A-Za-z
]:[\\/]*)
8162 re_direlt
='/[^/][^/]*/\.\./'
8163 # Canonicalize the path of ld
8164 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8165 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8166 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8168 test -z "$LD" && LD
="$ac_prog"
8171 # If it fails, then pretend we aren't using GCC.
8175 # If it is relative, then search for the first ld in PATH.
8179 elif test "$with_gnu_ld" = yes; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8181 $as_echo_n "checking for GNU ld... " >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8184 $as_echo_n "checking for non-GNU ld... " >&6; }
8186 if ${acl_cv_path_LD+:} false
; then :
8187 $as_echo_n "(cached) " >&6
8189 if test -z "$LD"; then
8190 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8191 for ac_dir
in $PATH; do
8192 test -z "$ac_dir" && ac_dir
=.
8193 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8194 acl_cv_path_LD
="$ac_dir/$ac_prog"
8195 # Check to see if the program is GNU ld. I'd rather use --version,
8196 # but apparently some GNU ld's only accept -v.
8197 # Break only if it was the GNU/non-GNU ld that we prefer.
8198 if "$acl_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
8199 test "$with_gnu_ld" != no
&& break
8201 test "$with_gnu_ld" != yes && break
8207 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8211 LD
="$acl_cv_path_LD"
8212 if test -n "$LD"; then
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8214 $as_echo "$LD" >&6; }
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8217 $as_echo "no" >&6; }
8219 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8221 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8222 if ${acl_cv_prog_gnu_ld+:} false
; then :
8223 $as_echo_n "(cached) " >&6
8225 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8226 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
8227 acl_cv_prog_gnu_ld
=yes
8229 acl_cv_prog_gnu_ld
=no
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8233 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
8234 with_gnu_ld
=$acl_cv_prog_gnu_ld
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8239 $as_echo_n "checking for shared library run path origin... " >&6; }
8240 if ${acl_cv_rpath+:} false
; then :
8241 $as_echo_n "(cached) " >&6
8244 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8245 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8252 $as_echo "$acl_cv_rpath" >&6; }
8254 libext
="$acl_cv_libext"
8255 shlibext
="$acl_cv_shlibext"
8256 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8257 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8258 hardcode_direct
="$acl_cv_hardcode_direct"
8259 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8260 # Check whether --enable-rpath was given.
8261 if test "${enable_rpath+set}" = set; then :
8262 enableval
=$enable_rpath; :
8276 acl_save_prefix
="$prefix"
8277 prefix
="$acl_final_prefix"
8278 acl_save_exec_prefix
="$exec_prefix"
8279 exec_prefix
="$acl_final_exec_prefix"
8281 eval additional_includedir
=\"$includedir\"
8282 eval additional_libdir
=\"$libdir\"
8284 exec_prefix
="$acl_save_exec_prefix"
8285 prefix
="$acl_save_prefix"
8288 # Check whether --with-libiconv-prefix was given.
8289 if test "${with_libiconv_prefix+set}" = set; then :
8290 withval
=$with_libiconv_prefix;
8291 if test "X$withval" = "Xno"; then
8294 if test "X$withval" = "X"; then
8296 acl_save_prefix
="$prefix"
8297 prefix
="$acl_final_prefix"
8298 acl_save_exec_prefix
="$exec_prefix"
8299 exec_prefix
="$acl_final_exec_prefix"
8301 eval additional_includedir
=\"$includedir\"
8302 eval additional_libdir
=\"$libdir\"
8304 exec_prefix
="$acl_save_exec_prefix"
8305 prefix
="$acl_save_prefix"
8308 additional_includedir
="$withval/include"
8309 additional_libdir
="$withval/lib"
8320 names_already_handled
=
8321 names_next_round
='iconv '
8322 while test -n "$names_next_round"; do
8323 names_this_round
="$names_next_round"
8325 for name
in $names_this_round; do
8327 for n
in $names_already_handled; do
8328 if test "$n" = "$name"; then
8333 if test -z "$already_handled"; then
8334 names_already_handled
="$names_already_handled $name"
8335 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8336 eval value
=\"\
$HAVE_LIB$uppername\"
8337 if test -n "$value"; then
8338 if test "$value" = yes; then
8339 eval value
=\"\
$LIB$uppername\"
8340 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8341 eval value
=\"\
$LTLIB$uppername\"
8342 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8351 if test $use_additional = yes; then
8352 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8353 found_dir
="$additional_libdir"
8354 found_so
="$additional_libdir/lib$name.$shlibext"
8355 if test -f "$additional_libdir/lib$name.la"; then
8356 found_la
="$additional_libdir/lib$name.la"
8359 if test -f "$additional_libdir/lib$name.$libext"; then
8360 found_dir
="$additional_libdir"
8361 found_a
="$additional_libdir/lib$name.$libext"
8362 if test -f "$additional_libdir/lib$name.la"; then
8363 found_la
="$additional_libdir/lib$name.la"
8368 if test "X$found_dir" = "X"; then
8369 for x
in $LDFLAGS $LTLIBICONV; do
8371 acl_save_prefix
="$prefix"
8372 prefix
="$acl_final_prefix"
8373 acl_save_exec_prefix
="$exec_prefix"
8374 exec_prefix
="$acl_final_exec_prefix"
8376 exec_prefix
="$acl_save_exec_prefix"
8377 prefix
="$acl_save_prefix"
8381 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8382 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8384 found_so
="$dir/lib$name.$shlibext"
8385 if test -f "$dir/lib$name.la"; then
8386 found_la
="$dir/lib$name.la"
8389 if test -f "$dir/lib$name.$libext"; then
8391 found_a
="$dir/lib$name.$libext"
8392 if test -f "$dir/lib$name.la"; then
8393 found_la
="$dir/lib$name.la"
8399 if test "X$found_dir" != "X"; then
8404 if test "X$found_dir" != "X"; then
8405 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8406 if test "X$found_so" != "X"; then
8407 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8408 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8411 for x
in $ltrpathdirs; do
8412 if test "X$x" = "X$found_dir"; then
8417 if test -z "$haveit"; then
8418 ltrpathdirs
="$ltrpathdirs $found_dir"
8420 if test "$hardcode_direct" = yes; then
8421 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8423 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8424 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8426 for x
in $rpathdirs; do
8427 if test "X$x" = "X$found_dir"; then
8432 if test -z "$haveit"; then
8433 rpathdirs
="$rpathdirs $found_dir"
8437 for x
in $LDFLAGS $LIBICONV; do
8439 acl_save_prefix
="$prefix"
8440 prefix
="$acl_final_prefix"
8441 acl_save_exec_prefix
="$exec_prefix"
8442 exec_prefix
="$acl_final_exec_prefix"
8444 exec_prefix
="$acl_save_exec_prefix"
8445 prefix
="$acl_save_prefix"
8447 if test "X$x" = "X-L$found_dir"; then
8452 if test -z "$haveit"; then
8453 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8455 if test "$hardcode_minus_L" != no
; then
8456 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8458 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8464 if test "X$found_a" != "X"; then
8465 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8467 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8470 additional_includedir
=
8471 case "$found_dir" in
8473 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8474 additional_includedir
="$basedir/include"
8477 if test "X$additional_includedir" != "X"; then
8478 if test "X$additional_includedir" != "X/usr/include"; then
8480 if test "X$additional_includedir" = "X/usr/local/include"; then
8481 if test -n "$GCC"; then
8483 linux
*) haveit
=yes;;
8487 if test -z "$haveit"; then
8488 for x
in $CPPFLAGS $INCICONV; do
8490 acl_save_prefix
="$prefix"
8491 prefix
="$acl_final_prefix"
8492 acl_save_exec_prefix
="$exec_prefix"
8493 exec_prefix
="$acl_final_exec_prefix"
8495 exec_prefix
="$acl_save_exec_prefix"
8496 prefix
="$acl_save_prefix"
8498 if test "X$x" = "X-I$additional_includedir"; then
8503 if test -z "$haveit"; then
8504 if test -d "$additional_includedir"; then
8505 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8511 if test -n "$found_la"; then
8512 save_libdir
="$libdir"
8514 */* |
*\\*) .
"$found_la" ;;
8515 *) .
"./$found_la" ;;
8517 libdir
="$save_libdir"
8518 for dep
in $dependency_libs; do
8521 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8522 if test "X$additional_libdir" != "X/usr/lib"; then
8524 if test "X$additional_libdir" = "X/usr/local/lib"; then
8525 if test -n "$GCC"; then
8527 linux
*) haveit
=yes;;
8531 if test -z "$haveit"; then
8533 for x
in $LDFLAGS $LIBICONV; do
8535 acl_save_prefix
="$prefix"
8536 prefix
="$acl_final_prefix"
8537 acl_save_exec_prefix
="$exec_prefix"
8538 exec_prefix
="$acl_final_exec_prefix"
8540 exec_prefix
="$acl_save_exec_prefix"
8541 prefix
="$acl_save_prefix"
8543 if test "X$x" = "X-L$additional_libdir"; then
8548 if test -z "$haveit"; then
8549 if test -d "$additional_libdir"; then
8550 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8554 for x
in $LDFLAGS $LTLIBICONV; do
8556 acl_save_prefix
="$prefix"
8557 prefix
="$acl_final_prefix"
8558 acl_save_exec_prefix
="$exec_prefix"
8559 exec_prefix
="$acl_final_exec_prefix"
8561 exec_prefix
="$acl_save_exec_prefix"
8562 prefix
="$acl_save_prefix"
8564 if test "X$x" = "X-L$additional_libdir"; then
8569 if test -z "$haveit"; then
8570 if test -d "$additional_libdir"; then
8571 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8578 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8579 if test "$enable_rpath" != no
; then
8581 for x
in $rpathdirs; do
8582 if test "X$x" = "X$dir"; then
8587 if test -z "$haveit"; then
8588 rpathdirs
="$rpathdirs $dir"
8591 for x
in $ltrpathdirs; do
8592 if test "X$x" = "X$dir"; then
8597 if test -z "$haveit"; then
8598 ltrpathdirs
="$ltrpathdirs $dir"
8603 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8606 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8609 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8610 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8616 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8617 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8623 if test "X$rpathdirs" != "X"; then
8624 if test -n "$hardcode_libdir_separator"; then
8626 for found_dir
in $rpathdirs; do
8627 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8629 acl_save_libdir
="$libdir"
8631 eval flag
=\"$hardcode_libdir_flag_spec\"
8632 libdir
="$acl_save_libdir"
8633 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8635 for found_dir
in $rpathdirs; do
8636 acl_save_libdir
="$libdir"
8638 eval flag
=\"$hardcode_libdir_flag_spec\"
8639 libdir
="$acl_save_libdir"
8640 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8644 if test "X$ltrpathdirs" != "X"; then
8645 for found_dir
in $ltrpathdirs; do
8646 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8657 $as_echo_n "checking for iconv... " >&6; }
8658 if ${am_cv_func_iconv+:} false
; then :
8659 $as_echo_n "(cached) " >&6
8662 am_cv_func_iconv
="no, consider installing GNU libiconv"
8664 am_save_CPPFLAGS
="$CPPFLAGS"
8665 CPPFLAGS
="$CPPFLAGS $INCICONV"
8666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8667 /* end confdefs.h. */
8673 iconv_t cd = iconv_open("","");
8674 iconv(cd,NULL,NULL,NULL,NULL);
8680 if ac_fn_c_try_link
"$LINENO"; then :
8681 am_cv_func_iconv
=yes
8683 rm -f core conftest.err conftest.
$ac_objext \
8684 conftest
$ac_exeext conftest.
$ac_ext
8685 CPPFLAGS
="$am_save_CPPFLAGS"
8687 if test "$am_cv_func_iconv" != yes && test -d ..
/libiconv
; then
8688 for _libs
in .libs _libs
; do
8689 am_save_CPPFLAGS
="$CPPFLAGS"
8690 am_save_LIBS
="$LIBS"
8691 CPPFLAGS
="$CPPFLAGS -I../libiconv/include"
8692 LIBS
="$LIBS ../libiconv/lib/$_libs/libiconv.a"
8693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8694 /* end confdefs.h. */
8700 iconv_t cd = iconv_open("","");
8701 iconv(cd,NULL,NULL,NULL,NULL);
8707 if ac_fn_c_try_link
"$LINENO"; then :
8708 INCICONV
="-I../libiconv/include"
8709 LIBICONV
='${top_builddir}'/..
/libiconv
/lib
/$_libs/libiconv.a
8710 LTLIBICONV
='${top_builddir}'/..
/libiconv
/lib
/libiconv.la
8712 am_cv_func_iconv
=yes
8714 rm -f core conftest.err conftest.
$ac_objext \
8715 conftest
$ac_exeext conftest.
$ac_ext
8716 CPPFLAGS
="$am_save_CPPFLAGS"
8717 LIBS
="$am_save_LIBS"
8718 if test "$am_cv_func_iconv" = "yes"; then
8724 if test "$am_cv_func_iconv" != yes; then
8725 am_save_CPPFLAGS
="$CPPFLAGS"
8726 am_save_LIBS
="$LIBS"
8727 CPPFLAGS
="$CPPFLAGS $INCICONV"
8728 LIBS
="$LIBS $LIBICONV"
8729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8730 /* end confdefs.h. */
8736 iconv_t cd = iconv_open("","");
8737 iconv(cd,NULL,NULL,NULL,NULL);
8743 if ac_fn_c_try_link
"$LINENO"; then :
8745 am_cv_func_iconv
=yes
8747 rm -f core conftest.err conftest.
$ac_objext \
8748 conftest
$ac_exeext conftest.
$ac_ext
8749 CPPFLAGS
="$am_save_CPPFLAGS"
8750 LIBS
="$am_save_LIBS"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8755 $as_echo "$am_cv_func_iconv" >&6; }
8756 if test "$am_cv_func_iconv" = yes; then
8758 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
8761 if test "$am_cv_lib_iconv" = yes; then
8763 for element
in $INCICONV; do
8765 for x
in $CPPFLAGS; do
8767 acl_save_prefix
="$prefix"
8768 prefix
="$acl_final_prefix"
8769 acl_save_exec_prefix
="$exec_prefix"
8770 exec_prefix
="$acl_final_exec_prefix"
8772 exec_prefix
="$acl_save_exec_prefix"
8773 prefix
="$acl_save_prefix"
8775 if test "X$x" = "X$element"; then
8780 if test -z "$haveit"; then
8781 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8786 $as_echo_n "checking how to link with libiconv... " >&6; }
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8788 $as_echo "$LIBICONV" >&6; }
8796 if test "$am_cv_func_iconv" = yes; then
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
8798 $as_echo_n "checking for iconv declaration... " >&6; }
8799 if ${am_cv_proto_iconv+:} false
; then :
8800 $as_echo_n "(cached) " >&6
8803 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8804 /* end confdefs.h. */
8812 #if defined(__STDC__) || defined(__cplusplus)
8813 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8826 if ac_fn_c_try_compile
"$LINENO"; then :
8827 am_cv_proto_iconv_arg1
=""
8829 am_cv_proto_iconv_arg1
="const"
8831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8832 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);"
8835 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
8837 }$am_cv_proto_iconv" >&5
8839 }$am_cv_proto_iconv" >&6; }
8841 cat >>confdefs.h
<<_ACEOF
8842 #define ICONV_CONST $am_cv_proto_iconv_arg1
8848 # GDB may fork/exec the iconv program to get the list of supported character
8849 # sets. Allow the user to specify where to find it.
8850 # There are several factors affecting the choice of option name:
8851 # - There is already --with-libiconv-prefix but we can't use it, it specifies
8852 # the build-time location of libiconv files.
8853 # - The program we need to find is iconv, which comes with glibc. The user
8854 # doesn't necessarily have libiconv installed. Therefore naming this
8855 # --with-libiconv-foo feels wrong.
8856 # - We want the path to be relocatable, but GDB_AC_DEFINE_RELOCATABLE is
8857 # defined to work on directories not files (though it really doesn't know
8859 # - Calling this --with-iconv-prefix is perceived to cause too much confusion
8860 # with --with-libiconv-prefix.
8861 # Putting these together is why the option name is --with-iconv-bin.
8864 # Check whether --with-iconv-bin was given.
8865 if test "${with_iconv_bin+set}" = set; then :
8866 withval
=$with_iconv_bin; iconv_bin
="${withval}"
8868 cat >>confdefs.h
<<_ACEOF
8869 #define ICONV_BIN "${iconv_bin}"
8873 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
8874 if test "x$prefix" = xNONE
; then
8875 test_prefix
=/usr
/local
8880 test_prefix
=$exec_prefix
8883 case ${iconv_bin} in
8884 "${test_prefix}"|
"${test_prefix}/"*|\
8885 '${exec_prefix}'|
'${exec_prefix}/'*)
8890 cat >>confdefs.h
<<_ACEOF
8891 #define ICONV_BIN_RELOCATABLE $value
8899 # For the TUI, we need enhanced curses functionality.
8900 if test x
"$enable_tui" != xno
; then
8905 if test x
"$prefer_curses" = xyes
; then
8906 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
8907 # curses library because the latter might not provide all the
8908 # functionality we need. However, this leads to problems on systems
8909 # where the linker searches /usr/local/lib, but the compiler doesn't
8910 # search /usr/local/include, if ncurses is installed in /usr/local. A
8911 # default installation of ncurses on alpha*-dec-osf* will lead to such
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5
8914 $as_echo_n "checking for library containing waddstr... " >&6; }
8915 if ${ac_cv_search_waddstr+:} false
; then :
8916 $as_echo_n "(cached) " >&6
8918 ac_func_search_save_LIBS
=$LIBS
8919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8922 /* Override any GCC internal prototype to avoid an error.
8923 Use char because int might match the return type of a GCC
8924 builtin and then its argument prototype would still apply. */
8937 for ac_lib
in '' ncursesw ncurses cursesX curses
; do
8938 if test -z "$ac_lib"; then
8939 ac_res
="none required"
8942 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8944 if ac_fn_c_try_link
"$LINENO"; then :
8945 ac_cv_search_waddstr
=$ac_res
8947 rm -f core conftest.err conftest.
$ac_objext \
8949 if ${ac_cv_search_waddstr+:} false
; then :
8953 if ${ac_cv_search_waddstr+:} false
; then :
8956 ac_cv_search_waddstr
=no
8959 LIBS
=$ac_func_search_save_LIBS
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_waddstr" >&5
8962 $as_echo "$ac_cv_search_waddstr" >&6; }
8963 ac_res
=$ac_cv_search_waddstr
8964 if test "$ac_res" != no
; then :
8965 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8970 if test "$ac_cv_search_waddstr" != no
; then
8975 # Check whether we should enable the TUI, but only do so if we really
8977 if test x
"$enable_tui" != xno
; then
8978 if test -d $srcdir/tui
; then
8979 if test "$curses_found" != no
; then
8980 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
8981 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
8982 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
8983 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
8985 if test x
"$enable_tui" = xyes
; then
8986 as_fn_error $?
"no enhanced curses library found; disable TUI" "$LINENO" 5
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no enhanced curses library found; disabling TUI" >&5
8989 $as_echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
8995 # Since GDB uses Readline, we need termcap functionality. In many
8996 # cases this will be provided by the curses library, but some systems
8997 # have a separate termcap library, or no curses library at all.
9001 if test -d $srcdir/libtermcap
; then
9002 LIBS
="../libtermcap/libtermcap.a $LIBS"
9003 ac_cv_search_tgetent
="../libtermcap/libtermcap.a"
9006 ac_cv_search_tgetent
="none required"
9010 # These are the libraries checked by Readline.
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9012 $as_echo_n "checking for library containing tgetent... " >&6; }
9013 if ${ac_cv_search_tgetent+:} false
; then :
9014 $as_echo_n "(cached) " >&6
9016 ac_func_search_save_LIBS
=$LIBS
9017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9020 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */
9035 for ac_lib
in '' termcap tinfow tinfo curses ncursesw ncurses
; do
9036 if test -z "$ac_lib"; then
9037 ac_res
="none required"
9040 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9042 if ac_fn_c_try_link
"$LINENO"; then :
9043 ac_cv_search_tgetent
=$ac_res
9045 rm -f core conftest.err conftest.
$ac_objext \
9047 if ${ac_cv_search_tgetent+:} false
; then :
9051 if ${ac_cv_search_tgetent+:} false
; then :
9054 ac_cv_search_tgetent
=no
9057 LIBS
=$ac_func_search_save_LIBS
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9060 $as_echo "$ac_cv_search_tgetent" >&6; }
9061 ac_res
=$ac_cv_search_tgetent
9062 if test "$ac_res" != no
; then :
9063 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9068 if test "$ac_cv_search_tgetent" = no
; then
9069 CONFIG_OBS
="$CONFIG_OBS stub-termcap.o"
9073 # Check whether --with-system-readline was given.
9074 if test "${with_system_readline+set}" = set; then :
9075 withval
=$with_system_readline;
9079 if test "$with_system_readline" = yes; then
9083 READLINE_TEXI_INCFLAG
=
9085 READLINE
='$(READLINE_DIR)/libreadline.a'
9086 READLINE_DEPS
='$(READLINE)'
9087 READLINE_CFLAGS
='-I$(READLINE_SRC)/..'
9088 READLINE_TEXI_INCFLAG
='-I $(READLINE_DIR)'
9095 # Generate jit-reader.h
9097 # This is typedeffed to GDB_CORE_ADDR in jit-reader.h
9100 # The cast to long int works around a bug in the HP C Compiler
9101 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9102 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9103 # This bug is HP SR number 8606223364.
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
9105 $as_echo_n "checking size of unsigned long long... " >&6; }
9106 if ${ac_cv_sizeof_unsigned_long_long+:} false
; then :
9107 $as_echo_n "(cached) " >&6
9109 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
9112 if test "$ac_cv_type_unsigned_long_long" = yes; then
9113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9115 as_fn_error
77 "cannot compute sizeof (unsigned long long)
9116 See \`config.log' for more details" "$LINENO" 5; }
9118 ac_cv_sizeof_unsigned_long_long
=0
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
9124 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
9128 cat >>confdefs.h
<<_ACEOF
9129 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
9133 # The cast to long int works around a bug in the HP C Compiler
9134 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9135 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9136 # This bug is HP SR number 8606223364.
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
9138 $as_echo_n "checking size of unsigned long... " >&6; }
9139 if ${ac_cv_sizeof_unsigned_long+:} false
; then :
9140 $as_echo_n "(cached) " >&6
9142 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
9145 if test "$ac_cv_type_unsigned_long" = yes; then
9146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9148 as_fn_error
77 "cannot compute sizeof (unsigned long)
9149 See \`config.log' for more details" "$LINENO" 5; }
9151 ac_cv_sizeof_unsigned_long
=0
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
9157 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
9161 cat >>confdefs.h
<<_ACEOF
9162 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9166 # The cast to long int works around a bug in the HP C Compiler
9167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9169 # This bug is HP SR number 8606223364.
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned __int128" >&5
9171 $as_echo_n "checking size of unsigned __int128... " >&6; }
9172 if ${ac_cv_sizeof_unsigned___int128+:} false
; then :
9173 $as_echo_n "(cached) " >&6
9175 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (unsigned __int128))" "ac_cv_sizeof_unsigned___int128" "$ac_includes_default"; then :
9178 if test "$ac_cv_type_unsigned___int128" = yes; then
9179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9181 as_fn_error
77 "cannot compute sizeof (unsigned __int128)
9182 See \`config.log' for more details" "$LINENO" 5; }
9184 ac_cv_sizeof_unsigned___int128
=0
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned___int128" >&5
9190 $as_echo "$ac_cv_sizeof_unsigned___int128" >&6; }
9194 cat >>confdefs.h
<<_ACEOF
9195 #define SIZEOF_UNSIGNED___INT128 $ac_cv_sizeof_unsigned___int128
9200 if test "x${ac_cv_sizeof_unsigned_long}" = "x8"; then
9201 TARGET_PTR
="unsigned long"
9202 elif test "x${ac_cv_sizeof_unsigned_long_long}" = "x8"; then
9203 TARGET_PTR
="unsigned long long"
9204 elif test "x${ac_cv_sizeof_unsigned___int128}" = "x16"; then
9205 TARGET_PTR
="unsigned __int128"
9207 TARGET_PTR
="unsigned long"
9211 ac_config_files
="$ac_config_files jit-reader.h:jit-reader.in"
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9215 $as_echo_n "checking for library containing dlopen... " >&6; }
9216 if ${ac_cv_search_dlopen+:} false
; then :
9217 $as_echo_n "(cached) " >&6
9219 ac_func_search_save_LIBS
=$LIBS
9220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9223 /* Override any GCC internal prototype to avoid an error.
9224 Use char because int might match the return type of a GCC
9225 builtin and then its argument prototype would still apply. */
9238 for ac_lib
in '' dl
; do
9239 if test -z "$ac_lib"; then
9240 ac_res
="none required"
9243 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9245 if ac_fn_c_try_link
"$LINENO"; then :
9246 ac_cv_search_dlopen
=$ac_res
9248 rm -f core conftest.err conftest.
$ac_objext \
9250 if ${ac_cv_search_dlopen+:} false
; then :
9254 if ${ac_cv_search_dlopen+:} false
; then :
9257 ac_cv_search_dlopen
=no
9260 LIBS
=$ac_func_search_save_LIBS
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9263 $as_echo "$ac_cv_search_dlopen" >&6; }
9264 ac_res
=$ac_cv_search_dlopen
9265 if test "$ac_res" != no
; then :
9266 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9273 # Check whether --with-jit-reader-dir was given.
9274 if test "${with_jit_reader_dir+set}" = set; then :
9275 withval
=$with_jit_reader_dir;
9276 JIT_READER_DIR
=$withval
9278 JIT_READER_DIR
=${libdir}/gdb
9282 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
9283 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9284 ac_define_dir
=`eval echo $JIT_READER_DIR`
9285 ac_define_dir
=`eval echo $ac_define_dir`
9287 cat >>confdefs.h
<<_ACEOF
9288 #define JIT_READER_DIR "$ac_define_dir"
9294 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
9295 if test "x$prefix" = xNONE
; then
9296 test_prefix
=/usr
/local
9301 test_prefix
=$exec_prefix
9304 case ${ac_define_dir} in
9305 "${test_prefix}"|
"${test_prefix}/"*|\
9306 '${exec_prefix}'|
'${exec_prefix}/'*)
9311 cat >>confdefs.h
<<_ACEOF
9312 #define JIT_READER_DIR_RELOCATABLE $value
9319 # Check whether --with-expat was given.
9320 if test "${with_expat+set}" = set; then :
9321 withval
=$with_expat;
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use expat" >&5
9327 $as_echo_n "checking whether to use expat... " >&6; }
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_expat" >&5
9329 $as_echo "$with_expat" >&6; }
9331 if test "${with_expat}" = no
; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat support disabled; some features may be unavailable." >&5
9333 $as_echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
9346 acl_save_prefix
="$prefix"
9347 prefix
="$acl_final_prefix"
9348 acl_save_exec_prefix
="$exec_prefix"
9349 exec_prefix
="$acl_final_exec_prefix"
9351 eval additional_includedir
=\"$includedir\"
9352 eval additional_libdir
=\"$libdir\"
9354 exec_prefix
="$acl_save_exec_prefix"
9355 prefix
="$acl_save_prefix"
9358 # Check whether --with-libexpat-prefix was given.
9359 if test "${with_libexpat_prefix+set}" = set; then :
9360 withval
=$with_libexpat_prefix;
9361 if test "X$withval" = "Xno"; then
9364 if test "X$withval" = "X"; then
9366 acl_save_prefix
="$prefix"
9367 prefix
="$acl_final_prefix"
9368 acl_save_exec_prefix
="$exec_prefix"
9369 exec_prefix
="$acl_final_exec_prefix"
9371 eval additional_includedir
=\"$includedir\"
9372 eval additional_libdir
=\"$libdir\"
9374 exec_prefix
="$acl_save_exec_prefix"
9375 prefix
="$acl_save_prefix"
9378 additional_includedir
="$withval/include"
9379 additional_libdir
="$withval/lib"
9390 names_already_handled
=
9391 names_next_round
='expat '
9392 while test -n "$names_next_round"; do
9393 names_this_round
="$names_next_round"
9395 for name
in $names_this_round; do
9397 for n
in $names_already_handled; do
9398 if test "$n" = "$name"; then
9403 if test -z "$already_handled"; then
9404 names_already_handled
="$names_already_handled $name"
9405 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9406 eval value
=\"\
$HAVE_LIB$uppername\"
9407 if test -n "$value"; then
9408 if test "$value" = yes; then
9409 eval value
=\"\
$LIB$uppername\"
9410 test -z "$value" || LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$value"
9411 eval value
=\"\
$LTLIB$uppername\"
9412 test -z "$value" || LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
9421 if test $use_additional = yes; then
9422 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9423 found_dir
="$additional_libdir"
9424 found_so
="$additional_libdir/lib$name.$shlibext"
9425 if test -f "$additional_libdir/lib$name.la"; then
9426 found_la
="$additional_libdir/lib$name.la"
9429 if test -f "$additional_libdir/lib$name.$libext"; then
9430 found_dir
="$additional_libdir"
9431 found_a
="$additional_libdir/lib$name.$libext"
9432 if test -f "$additional_libdir/lib$name.la"; then
9433 found_la
="$additional_libdir/lib$name.la"
9438 if test "X$found_dir" = "X"; then
9439 for x
in $LDFLAGS $LTLIBEXPAT; do
9441 acl_save_prefix
="$prefix"
9442 prefix
="$acl_final_prefix"
9443 acl_save_exec_prefix
="$exec_prefix"
9444 exec_prefix
="$acl_final_exec_prefix"
9446 exec_prefix
="$acl_save_exec_prefix"
9447 prefix
="$acl_save_prefix"
9451 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9452 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9454 found_so
="$dir/lib$name.$shlibext"
9455 if test -f "$dir/lib$name.la"; then
9456 found_la
="$dir/lib$name.la"
9459 if test -f "$dir/lib$name.$libext"; then
9461 found_a
="$dir/lib$name.$libext"
9462 if test -f "$dir/lib$name.la"; then
9463 found_la
="$dir/lib$name.la"
9469 if test "X$found_dir" != "X"; then
9474 if test "X$found_dir" != "X"; then
9475 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
9476 if test "X$found_so" != "X"; then
9477 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9478 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9481 for x
in $ltrpathdirs; do
9482 if test "X$x" = "X$found_dir"; then
9487 if test -z "$haveit"; then
9488 ltrpathdirs
="$ltrpathdirs $found_dir"
9490 if test "$hardcode_direct" = yes; then
9491 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9493 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9494 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9496 for x
in $rpathdirs; do
9497 if test "X$x" = "X$found_dir"; then
9502 if test -z "$haveit"; then
9503 rpathdirs
="$rpathdirs $found_dir"
9507 for x
in $LDFLAGS $LIBEXPAT; do
9509 acl_save_prefix
="$prefix"
9510 prefix
="$acl_final_prefix"
9511 acl_save_exec_prefix
="$exec_prefix"
9512 exec_prefix
="$acl_final_exec_prefix"
9514 exec_prefix
="$acl_save_exec_prefix"
9515 prefix
="$acl_save_prefix"
9517 if test "X$x" = "X-L$found_dir"; then
9522 if test -z "$haveit"; then
9523 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
9525 if test "$hardcode_minus_L" != no
; then
9526 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
9528 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9534 if test "X$found_a" != "X"; then
9535 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
9537 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
9540 additional_includedir
=
9541 case "$found_dir" in
9543 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9544 additional_includedir
="$basedir/include"
9547 if test "X$additional_includedir" != "X"; then
9548 if test "X$additional_includedir" != "X/usr/include"; then
9550 if test "X$additional_includedir" = "X/usr/local/include"; then
9551 if test -n "$GCC"; then
9553 linux
*) haveit
=yes;;
9557 if test -z "$haveit"; then
9558 for x
in $CPPFLAGS $INCEXPAT; do
9560 acl_save_prefix
="$prefix"
9561 prefix
="$acl_final_prefix"
9562 acl_save_exec_prefix
="$exec_prefix"
9563 exec_prefix
="$acl_final_exec_prefix"
9565 exec_prefix
="$acl_save_exec_prefix"
9566 prefix
="$acl_save_prefix"
9568 if test "X$x" = "X-I$additional_includedir"; then
9573 if test -z "$haveit"; then
9574 if test -d "$additional_includedir"; then
9575 INCEXPAT
="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
9581 if test -n "$found_la"; then
9582 save_libdir
="$libdir"
9584 */* |
*\\*) .
"$found_la" ;;
9585 *) .
"./$found_la" ;;
9587 libdir
="$save_libdir"
9588 for dep
in $dependency_libs; do
9591 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
9592 if test "X$additional_libdir" != "X/usr/lib"; then
9594 if test "X$additional_libdir" = "X/usr/local/lib"; then
9595 if test -n "$GCC"; then
9597 linux
*) haveit
=yes;;
9601 if test -z "$haveit"; then
9603 for x
in $LDFLAGS $LIBEXPAT; do
9605 acl_save_prefix
="$prefix"
9606 prefix
="$acl_final_prefix"
9607 acl_save_exec_prefix
="$exec_prefix"
9608 exec_prefix
="$acl_final_exec_prefix"
9610 exec_prefix
="$acl_save_exec_prefix"
9611 prefix
="$acl_save_prefix"
9613 if test "X$x" = "X-L$additional_libdir"; then
9618 if test -z "$haveit"; then
9619 if test -d "$additional_libdir"; then
9620 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
9624 for x
in $LDFLAGS $LTLIBEXPAT; do
9626 acl_save_prefix
="$prefix"
9627 prefix
="$acl_final_prefix"
9628 acl_save_exec_prefix
="$exec_prefix"
9629 exec_prefix
="$acl_final_exec_prefix"
9631 exec_prefix
="$acl_save_exec_prefix"
9632 prefix
="$acl_save_prefix"
9634 if test "X$x" = "X-L$additional_libdir"; then
9639 if test -z "$haveit"; then
9640 if test -d "$additional_libdir"; then
9641 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
9648 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
9649 if test "$enable_rpath" != no
; then
9651 for x
in $rpathdirs; do
9652 if test "X$x" = "X$dir"; then
9657 if test -z "$haveit"; then
9658 rpathdirs
="$rpathdirs $dir"
9661 for x
in $ltrpathdirs; do
9662 if test "X$x" = "X$dir"; then
9667 if test -z "$haveit"; then
9668 ltrpathdirs
="$ltrpathdirs $dir"
9673 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9676 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9679 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$dep"
9680 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
9686 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
9687 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
9693 if test "X$rpathdirs" != "X"; then
9694 if test -n "$hardcode_libdir_separator"; then
9696 for found_dir
in $rpathdirs; do
9697 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9699 acl_save_libdir
="$libdir"
9701 eval flag
=\"$hardcode_libdir_flag_spec\"
9702 libdir
="$acl_save_libdir"
9703 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9705 for found_dir
in $rpathdirs; do
9706 acl_save_libdir
="$libdir"
9708 eval flag
=\"$hardcode_libdir_flag_spec\"
9709 libdir
="$acl_save_libdir"
9710 LIBEXPAT
="${LIBEXPAT}${LIBEXPAT:+ }$flag"
9714 if test "X$ltrpathdirs" != "X"; then
9715 for found_dir
in $ltrpathdirs; do
9716 LTLIBEXPAT
="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
9721 ac_save_CPPFLAGS
="$CPPFLAGS"
9723 for element
in $INCEXPAT; do
9725 for x
in $CPPFLAGS; do
9727 acl_save_prefix
="$prefix"
9728 prefix
="$acl_final_prefix"
9729 acl_save_exec_prefix
="$exec_prefix"
9730 exec_prefix
="$acl_final_exec_prefix"
9732 exec_prefix
="$acl_save_exec_prefix"
9733 prefix
="$acl_save_prefix"
9735 if test "X$x" = "X$element"; then
9740 if test -z "$haveit"; then
9741 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libexpat" >&5
9747 $as_echo_n "checking for libexpat... " >&6; }
9748 if ${ac_cv_libexpat+:} false
; then :
9749 $as_echo_n "(cached) " >&6
9752 ac_save_LIBS
="$LIBS"
9753 LIBS
="$LIBS $LIBEXPAT"
9754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9760 XML_Parser p = XML_ParserCreate (0);
9765 if ac_fn_c_try_link
"$LINENO"; then :
9770 rm -f core conftest.err conftest.
$ac_objext \
9771 conftest
$ac_exeext conftest.
$ac_ext
9772 LIBS
="$ac_save_LIBS"
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libexpat" >&5
9776 $as_echo "$ac_cv_libexpat" >&6; }
9777 if test "$ac_cv_libexpat" = yes; then
9780 $as_echo "#define HAVE_LIBEXPAT 1" >>confdefs.h
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libexpat" >&5
9783 $as_echo_n "checking how to link with libexpat... " >&6; }
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBEXPAT" >&5
9785 $as_echo "$LIBEXPAT" >&6; }
9788 CPPFLAGS
="$ac_save_CPPFLAGS"
9798 if test "$HAVE_LIBEXPAT" != yes; then
9799 if test "$with_expat" = yes; then
9800 as_fn_error $?
"expat is missing or unusable" "$LINENO" 5
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: expat is missing or unusable; some features may be unavailable." >&5
9803 $as_echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
9807 LIBS
="$LIBS $LIBEXPAT"
9808 for ac_func
in XML_StopParser
9810 ac_fn_c_check_func
"$LINENO" "XML_StopParser" "ac_cv_func_XML_StopParser"
9811 if test "x$ac_cv_func_XML_StopParser" = xyes
; then :
9812 cat >>confdefs.h
<<_ACEOF
9813 #define HAVE_XML_STOPPARSER 1
9824 # Check whether --with-mpfr was given.
9825 if test "${with_mpfr+set}" = set; then :
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use MPFR" >&5
9832 $as_echo_n "checking whether to use MPFR... " >&6; }
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mpfr" >&5
9834 $as_echo "$with_mpfr" >&6; }
9836 if test "${with_mpfr}" = no
; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR support disabled; some features may be unavailable." >&5
9838 $as_echo "$as_me: WARNING: MPFR support disabled; some features may be unavailable." >&2;}
9851 acl_save_prefix
="$prefix"
9852 prefix
="$acl_final_prefix"
9853 acl_save_exec_prefix
="$exec_prefix"
9854 exec_prefix
="$acl_final_exec_prefix"
9856 eval additional_includedir
=\"$includedir\"
9857 eval additional_libdir
=\"$libdir\"
9859 exec_prefix
="$acl_save_exec_prefix"
9860 prefix
="$acl_save_prefix"
9863 # Check whether --with-libmpfr-prefix was given.
9864 if test "${with_libmpfr_prefix+set}" = set; then :
9865 withval
=$with_libmpfr_prefix;
9866 if test "X$withval" = "Xno"; then
9869 if test "X$withval" = "X"; then
9871 acl_save_prefix
="$prefix"
9872 prefix
="$acl_final_prefix"
9873 acl_save_exec_prefix
="$exec_prefix"
9874 exec_prefix
="$acl_final_exec_prefix"
9876 eval additional_includedir
=\"$includedir\"
9877 eval additional_libdir
=\"$libdir\"
9879 exec_prefix
="$acl_save_exec_prefix"
9880 prefix
="$acl_save_prefix"
9883 additional_includedir
="$withval/include"
9884 additional_libdir
="$withval/lib"
9895 names_already_handled
=
9896 names_next_round
='mpfr gmp'
9897 while test -n "$names_next_round"; do
9898 names_this_round
="$names_next_round"
9900 for name
in $names_this_round; do
9902 for n
in $names_already_handled; do
9903 if test "$n" = "$name"; then
9908 if test -z "$already_handled"; then
9909 names_already_handled
="$names_already_handled $name"
9910 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9911 eval value
=\"\
$HAVE_LIB$uppername\"
9912 if test -n "$value"; then
9913 if test "$value" = yes; then
9914 eval value
=\"\
$LIB$uppername\"
9915 test -z "$value" || LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$value"
9916 eval value
=\"\
$LTLIB$uppername\"
9917 test -z "$value" || LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$value"
9926 if test $use_additional = yes; then
9927 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9928 found_dir
="$additional_libdir"
9929 found_so
="$additional_libdir/lib$name.$shlibext"
9930 if test -f "$additional_libdir/lib$name.la"; then
9931 found_la
="$additional_libdir/lib$name.la"
9934 if test -f "$additional_libdir/lib$name.$libext"; then
9935 found_dir
="$additional_libdir"
9936 found_a
="$additional_libdir/lib$name.$libext"
9937 if test -f "$additional_libdir/lib$name.la"; then
9938 found_la
="$additional_libdir/lib$name.la"
9943 if test "X$found_dir" = "X"; then
9944 for x
in $LDFLAGS $LTLIBMPFR; do
9946 acl_save_prefix
="$prefix"
9947 prefix
="$acl_final_prefix"
9948 acl_save_exec_prefix
="$exec_prefix"
9949 exec_prefix
="$acl_final_exec_prefix"
9951 exec_prefix
="$acl_save_exec_prefix"
9952 prefix
="$acl_save_prefix"
9956 dir
=`echo "X$x" | sed -e 's/^X-L//'`
9957 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9959 found_so
="$dir/lib$name.$shlibext"
9960 if test -f "$dir/lib$name.la"; then
9961 found_la
="$dir/lib$name.la"
9964 if test -f "$dir/lib$name.$libext"; then
9966 found_a
="$dir/lib$name.$libext"
9967 if test -f "$dir/lib$name.la"; then
9968 found_la
="$dir/lib$name.la"
9974 if test "X$found_dir" != "X"; then
9979 if test "X$found_dir" != "X"; then
9980 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$found_dir -l$name"
9981 if test "X$found_so" != "X"; then
9982 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
9983 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9986 for x
in $ltrpathdirs; do
9987 if test "X$x" = "X$found_dir"; then
9992 if test -z "$haveit"; then
9993 ltrpathdirs
="$ltrpathdirs $found_dir"
9995 if test "$hardcode_direct" = yes; then
9996 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
9998 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
9999 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10001 for x
in $rpathdirs; do
10002 if test "X$x" = "X$found_dir"; then
10007 if test -z "$haveit"; then
10008 rpathdirs
="$rpathdirs $found_dir"
10012 for x
in $LDFLAGS $LIBMPFR; do
10014 acl_save_prefix
="$prefix"
10015 prefix
="$acl_final_prefix"
10016 acl_save_exec_prefix
="$exec_prefix"
10017 exec_prefix
="$acl_final_exec_prefix"
10019 exec_prefix
="$acl_save_exec_prefix"
10020 prefix
="$acl_save_prefix"
10022 if test "X$x" = "X-L$found_dir"; then
10027 if test -z "$haveit"; then
10028 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir"
10030 if test "$hardcode_minus_L" != no
; then
10031 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_so"
10033 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10039 if test "X$found_a" != "X"; then
10040 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$found_a"
10042 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$found_dir -l$name"
10045 additional_includedir
=
10046 case "$found_dir" in
10048 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10049 additional_includedir
="$basedir/include"
10052 if test "X$additional_includedir" != "X"; then
10053 if test "X$additional_includedir" != "X/usr/include"; then
10055 if test "X$additional_includedir" = "X/usr/local/include"; then
10056 if test -n "$GCC"; then
10058 linux
*) haveit
=yes;;
10062 if test -z "$haveit"; then
10063 for x
in $CPPFLAGS $INCMPFR; do
10065 acl_save_prefix
="$prefix"
10066 prefix
="$acl_final_prefix"
10067 acl_save_exec_prefix
="$exec_prefix"
10068 exec_prefix
="$acl_final_exec_prefix"
10070 exec_prefix
="$acl_save_exec_prefix"
10071 prefix
="$acl_save_prefix"
10073 if test "X$x" = "X-I$additional_includedir"; then
10078 if test -z "$haveit"; then
10079 if test -d "$additional_includedir"; then
10080 INCMPFR
="${INCMPFR}${INCMPFR:+ }-I$additional_includedir"
10086 if test -n "$found_la"; then
10087 save_libdir
="$libdir"
10088 case "$found_la" in
10089 */* |
*\\*) .
"$found_la" ;;
10090 *) .
"./$found_la" ;;
10092 libdir
="$save_libdir"
10093 for dep
in $dependency_libs; do
10096 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
10097 if test "X$additional_libdir" != "X/usr/lib"; then
10099 if test "X$additional_libdir" = "X/usr/local/lib"; then
10100 if test -n "$GCC"; then
10102 linux
*) haveit
=yes;;
10106 if test -z "$haveit"; then
10108 for x
in $LDFLAGS $LIBMPFR; do
10110 acl_save_prefix
="$prefix"
10111 prefix
="$acl_final_prefix"
10112 acl_save_exec_prefix
="$exec_prefix"
10113 exec_prefix
="$acl_final_exec_prefix"
10115 exec_prefix
="$acl_save_exec_prefix"
10116 prefix
="$acl_save_prefix"
10118 if test "X$x" = "X-L$additional_libdir"; then
10123 if test -z "$haveit"; then
10124 if test -d "$additional_libdir"; then
10125 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-L$additional_libdir"
10129 for x
in $LDFLAGS $LTLIBMPFR; do
10131 acl_save_prefix
="$prefix"
10132 prefix
="$acl_final_prefix"
10133 acl_save_exec_prefix
="$exec_prefix"
10134 exec_prefix
="$acl_final_exec_prefix"
10136 exec_prefix
="$acl_save_exec_prefix"
10137 prefix
="$acl_save_prefix"
10139 if test "X$x" = "X-L$additional_libdir"; then
10144 if test -z "$haveit"; then
10145 if test -d "$additional_libdir"; then
10146 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-L$additional_libdir"
10153 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
10154 if test "$enable_rpath" != no
; then
10156 for x
in $rpathdirs; do
10157 if test "X$x" = "X$dir"; then
10162 if test -z "$haveit"; then
10163 rpathdirs
="$rpathdirs $dir"
10166 for x
in $ltrpathdirs; do
10167 if test "X$x" = "X$dir"; then
10172 if test -z "$haveit"; then
10173 ltrpathdirs
="$ltrpathdirs $dir"
10178 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10181 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10184 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$dep"
10185 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }$dep"
10191 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }-l$name"
10192 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-l$name"
10198 if test "X$rpathdirs" != "X"; then
10199 if test -n "$hardcode_libdir_separator"; then
10201 for found_dir
in $rpathdirs; do
10202 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10204 acl_save_libdir
="$libdir"
10206 eval flag
=\"$hardcode_libdir_flag_spec\"
10207 libdir
="$acl_save_libdir"
10208 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10210 for found_dir
in $rpathdirs; do
10211 acl_save_libdir
="$libdir"
10212 libdir
="$found_dir"
10213 eval flag
=\"$hardcode_libdir_flag_spec\"
10214 libdir
="$acl_save_libdir"
10215 LIBMPFR
="${LIBMPFR}${LIBMPFR:+ }$flag"
10219 if test "X$ltrpathdirs" != "X"; then
10220 for found_dir
in $ltrpathdirs; do
10221 LTLIBMPFR
="${LTLIBMPFR}${LTLIBMPFR:+ }-R$found_dir"
10226 ac_save_CPPFLAGS
="$CPPFLAGS"
10228 for element
in $INCMPFR; do
10230 for x
in $CPPFLAGS; do
10232 acl_save_prefix
="$prefix"
10233 prefix
="$acl_final_prefix"
10234 acl_save_exec_prefix
="$exec_prefix"
10235 exec_prefix
="$acl_final_exec_prefix"
10237 exec_prefix
="$acl_save_exec_prefix"
10238 prefix
="$acl_save_prefix"
10240 if test "X$x" = "X$element"; then
10245 if test -z "$haveit"; then
10246 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpfr" >&5
10252 $as_echo_n "checking for libmpfr... " >&6; }
10253 if ${ac_cv_libmpfr+:} false
; then :
10254 $as_echo_n "(cached) " >&6
10257 ac_save_LIBS
="$LIBS"
10258 LIBS
="$LIBS $LIBMPFR"
10259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10260 /* end confdefs.h. */
10265 mpfr_exp_t exp; mpfr_t x;
10266 mpfr_frexp (&exp, x, x, MPFR_RNDN);
10271 if ac_fn_c_try_link
"$LINENO"; then :
10276 rm -f core conftest.err conftest.
$ac_objext \
10277 conftest
$ac_exeext conftest.
$ac_ext
10278 LIBS
="$ac_save_LIBS"
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libmpfr" >&5
10282 $as_echo "$ac_cv_libmpfr" >&6; }
10283 if test "$ac_cv_libmpfr" = yes; then
10286 $as_echo "#define HAVE_LIBMPFR 1" >>confdefs.h
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libmpfr" >&5
10289 $as_echo_n "checking how to link with libmpfr... " >&6; }
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPFR" >&5
10291 $as_echo "$LIBMPFR" >&6; }
10294 CPPFLAGS
="$ac_save_CPPFLAGS"
10304 if test "$HAVE_LIBMPFR" != yes; then
10305 if test "$with_mpfr" = yes; then
10306 as_fn_error $?
"MPFR is missing or unusable" "$LINENO" 5
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: MPFR is missing or unusable; some features may be unavailable." >&5
10309 $as_echo "$as_me: WARNING: MPFR is missing or unusable; some features may be unavailable." >&2;}
10314 # --------------------- #
10315 # Check for libpython. #
10316 # --------------------- #
10323 # Check whether --with-python was given.
10324 if test "${with_python+set}" = set; then :
10325 withval
=$with_python;
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use python" >&5
10331 $as_echo_n "checking whether to use python... " >&6; }
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python" >&5
10333 $as_echo "$with_python" >&6; }
10335 if test "${with_python}" = no
; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python support disabled; some features may be unavailable." >&5
10337 $as_echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
10340 case "${with_python}" in
10342 if test -d ${with_python}; then
10343 # Assume the python binary is ${with_python}/bin/python.
10344 python_prog
="${with_python}/bin/python"
10346 # If python does not exit ${with_python}/bin, then try in
10347 # ${with_python}. On Windows/MinGW, this is where the Python
10349 if test ! -x "${python_prog}"; then
10350 python_prog
="${with_python}/python"
10353 if test ! -x "${python_prog}"; then
10354 # Fall back to gdb 7.0/7.1 behaviour.
10355 python_prog
=missing
10356 python_prefix
=${with_python}
10358 elif test -x "${with_python}"; then
10359 # While we can't run python compiled for $host (unless host == build),
10360 # the user could write a script that provides the needed information,
10361 # so we support that.
10362 python_prog
=${with_python}
10365 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10369 # Disallow --with-python=foo/bar.
10370 as_fn_error $?
"invalid value for --with-python" "$LINENO" 5
10373 # The user has either specified auto, yes, or the name of the python
10374 # program assumed to be in $PATH.
10376 case "${with_python}" in
10378 if test ${build} = ${host}; then
10379 # Extract the first word of "python", so it can be a program name with args.
10380 set dummy python
; ac_word
=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if ${ac_cv_path_python_prog_path+:} false
; then :
10384 $as_echo_n "(cached) " >&6
10386 case $python_prog_path in
10388 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10392 for as_dir
in $PATH
10395 test -z "$as_dir" && as_dir
=.
10396 for ac_exec_ext
in '' $ac_executable_extensions; do
10397 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10398 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10410 python_prog_path
=$ac_cv_path_python_prog_path
10411 if test -n "$python_prog_path"; then
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10413 $as_echo "$python_prog_path" >&6; }
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10416 $as_echo "no" >&6; }
10420 if test "${python_prog_path}" = missing
; then
10421 python_prog
=missing
10423 python_prog
=${python_prog_path}
10426 # Not much we can do except assume the cross-compiler will find the
10428 python_prog
=missing
10432 # While we can't run python compiled for $host (unless host == build),
10433 # the user could write a script that provides the needed information,
10434 # so we support that.
10435 python_prog
="${with_python}"
10436 # Extract the first word of "${python_prog}", so it can be a program name with args.
10437 set dummy
${python_prog}; ac_word
=$2
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if ${ac_cv_path_python_prog_path+:} false
; then :
10441 $as_echo_n "(cached) " >&6
10443 case $python_prog_path in
10445 ac_cv_path_python_prog_path
="$python_prog_path" # Let the user override the test with a path.
10448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10449 for as_dir
in $PATH
10452 test -z "$as_dir" && as_dir
=.
10453 for ac_exec_ext
in '' $ac_executable_extensions; do
10454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_path_python_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 test -z "$ac_cv_path_python_prog_path" && ac_cv_path_python_prog_path
="missing"
10467 python_prog_path
=$ac_cv_path_python_prog_path
10468 if test -n "$python_prog_path"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_prog_path" >&5
10470 $as_echo "$python_prog_path" >&6; }
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10477 if test "${python_prog_path}" = missing
; then
10478 as_fn_error $?
"unable to find python program ${python_prog}" "$LINENO" 5
10484 if test "${python_prog}" != missing
; then
10485 # We have a python program to use, but it may be too old.
10486 # Don't flag an error for --with-python=auto (the default).
10487 have_python_config
=yes
10488 python_includes
=`${python_prog} ${srcdir}/python/python-config.py --includes`
10489 if test $?
!= 0; then
10490 have_python_config
=failed
10491 if test "${with_python}" != auto
; then
10492 as_fn_error $?
"failure running python-config --includes" "$LINENO" 5
10495 python_libs
=`${python_prog} ${srcdir}/python/python-config.py --ldflags`
10496 if test $?
!= 0; then
10497 have_python_config
=failed
10498 if test "${with_python}" != auto
; then
10499 as_fn_error $?
"failure running python-config --ldflags" "$LINENO" 5
10502 python_prefix
=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix`
10503 if test $?
!= 0; then
10504 have_python_config
=failed
10505 if test "${with_python}" != auto
; then
10506 as_fn_error $?
"failure running python-config --exec-prefix" "$LINENO" 5
10510 # We do not have a python executable we can use to determine where
10511 # to find the Python headers and libs. We cannot guess the include
10512 # path from the python_prefix either, because that include path
10513 # depends on the Python version. So, there is nothing much we can
10514 # do except assume that the compiler will be able to find those files.
10517 have_python_config
=no
10520 # If we have python-config, only try the configuration it provides.
10521 # Otherwise fallback on the old way of trying different versions of
10525 if test "${have_python_config}" = yes; then
10526 # Determine the Python version by extracting "-lpython<version>"
10527 # part of the python_libs. <version> is usually X.Y with X and Y
10528 # being decimal numbers, but can also be XY (seen on Windows).
10530 # The extraction is performed using sed with a regular expression.
10531 # Initially, the regexp used was using the '?' quantifier to make
10532 # the dot in the version number optional. Unfortunately, this
10533 # does not work with non-GNU versions of sed because, because of
10534 # what looks like a limitation (the '?' quantifier does not work
10535 # with back-references). We work around this limitation by using
10536 # the '*' quantifier instead. It means that, in theory, we might
10537 # match unexpected version strings such as "-lpython2..7", but
10538 # this seems unlikely in practice. And even if that happens,
10539 # an error will be triggered later on, when checking that version
10541 python_version
=`echo " ${python_libs} " \
10542 | sed -e 's,^.* -l\(python[0-9]*[.]*[0-9]*\).*$,\1,'`
10543 case "${python_version}" in
10546 version
=${python_version}
10548 new_CPPFLAGS
=${python_includes}
10549 new_LIBS
=${python_libs}
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10551 $as_echo_n "checking for ${version}... " >&6; }
10552 save_CPPFLAGS
=$CPPFLAGS
10554 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10555 LIBS
="$new_LIBS $LIBS"
10556 found_usable_python
=no
10557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10559 #include "Python.h"
10568 if ac_fn_c_try_link
"$LINENO"; then :
10569 have_libpython
=${version}
10570 found_usable_python
=yes
10571 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10572 PYTHON_LIBS
=$new_LIBS
10574 rm -f core conftest.err conftest.
$ac_objext \
10575 conftest
$ac_exeext conftest.
$ac_ext
10576 CPPFLAGS
=$save_CPPFLAGS
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10579 $as_echo "${found_usable_python}" >&6; }
10583 as_fn_error $?
"unable to determine python version from ${python_libs}" "$LINENO" 5
10586 elif test "${have_python_config}" != failed
; then
10587 if test "${have_libpython}" = no
; then
10591 new_CPPFLAGS
=${python_includes}
10592 new_LIBS
="-lpython2.7 ${python_libs}"
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10594 $as_echo_n "checking for ${version}... " >&6; }
10595 save_CPPFLAGS
=$CPPFLAGS
10597 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10598 LIBS
="$new_LIBS $LIBS"
10599 found_usable_python
=no
10600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10602 #include "Python.h"
10611 if ac_fn_c_try_link
"$LINENO"; then :
10612 have_libpython
=${version}
10613 found_usable_python
=yes
10614 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10615 PYTHON_LIBS
=$new_LIBS
10617 rm -f core conftest.err conftest.
$ac_objext \
10618 conftest
$ac_exeext conftest.
$ac_ext
10619 CPPFLAGS
=$save_CPPFLAGS
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10622 $as_echo "${found_usable_python}" >&6; }
10625 if test "${have_libpython}" = no
; then
10629 new_CPPFLAGS
=${python_includes}
10630 new_LIBS
="-lpython2.6 ${python_libs}"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${version}" >&5
10632 $as_echo_n "checking for ${version}... " >&6; }
10633 save_CPPFLAGS
=$CPPFLAGS
10635 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
10636 LIBS
="$new_LIBS $LIBS"
10637 found_usable_python
=no
10638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 #include "Python.h"
10649 if ac_fn_c_try_link
"$LINENO"; then :
10650 have_libpython
=${version}
10651 found_usable_python
=yes
10652 PYTHON_CPPFLAGS
=$new_CPPFLAGS
10653 PYTHON_LIBS
=$new_LIBS
10655 rm -f core conftest.err conftest.
$ac_objext \
10656 conftest
$ac_exeext conftest.
$ac_ext
10657 CPPFLAGS
=$save_CPPFLAGS
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_python}" >&5
10660 $as_echo "${found_usable_python}" >&6; }
10664 if test "${have_libpython}" = python2.7
-o "${have_libpython}" = python27
; then
10666 $as_echo "#define HAVE_LIBPYTHON2_7 1" >>confdefs.h
10668 elif test "${have_libpython}" = python2.6
-o "${have_libpython}" = python26
; then
10670 $as_echo "#define HAVE_LIBPYTHON2_6 1" >>confdefs.h
10674 if test "${have_libpython}" = no
; then
10675 case "${with_python}" in
10677 as_fn_error $?
"python is missing or unusable" "$LINENO" 5
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: python is missing or unusable; some features may be unavailable." >&5
10681 $as_echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
10684 as_fn_error $?
"no usable python found at ${with_python}" "$LINENO" 5
10688 if test -n "${python_prefix}"; then
10690 cat >>confdefs.h
<<_ACEOF
10691 #define WITH_PYTHON_PATH "${python_prefix}"
10695 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
10696 if test "x$prefix" = xNONE
; then
10697 test_prefix
=/usr
/local
10699 test_prefix
=$prefix
10702 test_prefix
=$exec_prefix
10705 case ${python_prefix} in
10706 "${test_prefix}"|
"${test_prefix}/"*|\
10707 '${exec_prefix}'|
'${exec_prefix}/'*)
10712 cat >>confdefs.h
<<_ACEOF
10713 #define PYTHON_PATH_RELOCATABLE $value
10721 if test "${have_libpython}" != no
; then
10723 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10725 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
10726 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
10727 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
10728 CONFIG_INSTALL
="$CONFIG_INSTALL install-python"
10729 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
10731 # Flags needed to compile Python code (taken from python-config --cflags).
10732 # We cannot call python-config directly because it will output whatever was
10733 # used when compiling the Python interpreter itself, including flags which
10734 # would make the python-related objects be compiled differently from the
10735 # rest of GDB (e.g., -O2 and -fPIC).
10736 if test "${GCC}" = yes; then
10737 tentative_python_cflags
="-fno-strict-aliasing -fwrapv"
10738 # Python headers recommend -DNDEBUG, but it's unclear if that just
10739 # refers to building Python itself. In release mode, though, it
10740 # doesn't hurt for the Python code in gdb to follow.
10741 $development || tentative_python_cflags
="$tentative_python_cflags -DNDEBUG"
10744 if test "x${tentative_python_cflags}" != x
; then
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for python code" >&5
10746 $as_echo_n "checking compiler flags for python code... " >&6; }
10747 for flag
in ${tentative_python_cflags}; do
10748 # Check that the compiler accepts it
10749 saved_CFLAGS
="$CFLAGS"
10750 CFLAGS
="$CFLAGS $flag"
10751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10752 /* end confdefs.h. */
10762 if ac_fn_c_try_compile
"$LINENO"; then :
10763 PYTHON_CFLAGS
="${PYTHON_CFLAGS} $flag"
10765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10766 CFLAGS
="$saved_CFLAGS"
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PYTHON_CFLAGS}" >&5
10769 $as_echo "${PYTHON_CFLAGS}" >&6; }
10772 # On x64 Windows, Python's include headers, and pyconfig.h in
10773 # particular, rely on MS_WIN64 macro to detect that it's a 64bit
10774 # version of Windows. Unfortunately, MS_WIN64 is only defined if
10775 # _MSC_VER, a Microsoft-specific macro, is defined. So, when
10776 # building on x64 Windows with GCC, we define MS_WIN64 ourselves.
10777 # The issue was reported to the Python community, but still isn't
10778 # solved as of 2012-10-02 (http://bugs.python.org/issue4709).
10780 case "$gdb_host" in
10782 if test "${GCC}" = yes; then
10783 CPPFLAGS
="$CPPFLAGS -DMS_WIN64"
10788 # Note that "python -m threading" cannot be used to check for
10789 # threading support due to a bug in Python 2.7.3
10790 # (http://bugs.python.org/issue15567).
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether python supports threads" >&5
10792 $as_echo_n "checking whether python supports threads... " >&6; }
10793 saved_CPPFLAGS
="${CPPFLAGS}"
10794 CPPFLAGS
="${PYTHON_CPPFLAGS}"
10795 # Note that the test is reversed so that python_has_threads=yes on
10796 # unexpected failures.
10797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10798 /* end confdefs.h. */
10800 #include <Python.h>
10806 if ac_fn_c_try_cpp
"$LINENO"; then :
10807 python_has_threads
=no
10809 python_has_threads
=yes
10811 rm -f conftest.err conftest.i conftest.
$ac_ext
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${python_has_threads}" >&5
10813 $as_echo "${python_has_threads}" >&6; }
10814 CPPFLAGS
="${saved_CPPFLAGS}"
10816 # Even if Python support is not compiled in, we need to have this file
10817 # included so that the "python" command, et.al., still exists.
10818 CONFIG_OBS
="$CONFIG_OBS python/python.o"
10819 CONFIG_SRCS
="$CONFIG_SRCS python/python.c"
10822 # Work around Python http://bugs.python.org/issue10112. See also
10823 # http://bugs.python.org/issue11410, otherwise -Wl,--dynamic-list has
10824 # no effect. Note that the only test after this that uses Python is
10825 # the -rdynamic/-Wl,--dynamic-list test, and we do want that one to be
10826 # run without -export-dynamic too.
10827 PYTHON_LIBS
=`echo $PYTHON_LIBS | sed -e 's/-Xlinker -export-dynamic//'`
10832 if test "${have_libpython}" != no
; then
10834 HAVE_PYTHON_FALSE
='#'
10836 HAVE_PYTHON_TRUE
='#'
10841 # -------------------- #
10842 # Check for libguile. #
10843 # -------------------- #
10850 # Check whether --with-guile was given.
10851 if test "${with_guile+set}" = set; then :
10852 withval
=$with_guile;
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use guile" >&5
10858 $as_echo_n "checking whether to use guile... " >&6; }
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_guile" >&5
10860 $as_echo "$with_guile" >&6; }
10862 # Extract the first word of "pkg-config", so it can be a program name with args.
10863 set dummy pkg-config
; ac_word
=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if ${ac_cv_path_pkg_config_prog_path+:} false
; then :
10867 $as_echo_n "(cached) " >&6
10869 case $pkg_config_prog_path in
10871 ac_cv_path_pkg_config_prog_path
="$pkg_config_prog_path" # Let the user override the test with a path.
10874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10875 for as_dir
in $PATH
10878 test -z "$as_dir" && as_dir
=.
10879 for ac_exec_ext
in '' $ac_executable_extensions; do
10880 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10881 ac_cv_path_pkg_config_prog_path
="$as_dir/$ac_word$ac_exec_ext"
10882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 test -z "$ac_cv_path_pkg_config_prog_path" && ac_cv_path_pkg_config_prog_path
="missing"
10893 pkg_config_prog_path
=$ac_cv_path_pkg_config_prog_path
10894 if test -n "$pkg_config_prog_path"; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config_prog_path" >&5
10896 $as_echo "$pkg_config_prog_path" >&6; }
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10904 try_guile_versions
="guile-2.0"
10906 case "${with_guile}" in
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: guile support disabled; some features will be unavailable." >&5
10909 $as_echo "$as_me: WARNING: guile support disabled; some features will be unavailable." >&2;}
10912 if test "${pkg_config_prog_path}" = "missing"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config not found, guile support disabled" >&5
10914 $as_echo "$as_me: WARNING: pkg-config not found, guile support disabled" >&2;}
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; }
10997 if test "${pkg_config_prog_path}" = "missing"; then
10998 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11001 pkg_config
=${pkg_config_prog_path}
11002 guile_version_list
=${try_guile_versions}
11005 found_usable_guile
=checking
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11007 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11008 for guile_version
in ${guile_version_list}; do
11009 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11010 if test $?
!= 0; then
11013 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11014 if test $?
!= 0; then
11015 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11017 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11018 if test $?
!= 0; then
11019 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11021 found_usable_guile
=${guile_version}
11024 if test "${found_usable_guile}" = "checking"; then
11025 if test "${flag_errors}" = "yes"; then
11026 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11028 found_usable_guile
=no
11031 if test "${found_usable_guile}" != no
; then
11032 save_CPPFLAGS
=$CPPFLAGS
11034 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11035 LIBS
="$LIBS $new_LIBS"
11036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11038 #include "libguile.h"
11047 if ac_fn_c_try_link
"$LINENO"; then :
11049 GUILE_CPPFLAGS
=$new_CPPFLAGS
11050 GUILE_LIBS
=$new_LIBS
11052 found_usable_guile
=no
11054 rm -f core conftest.err conftest.
$ac_objext \
11055 conftest
$ac_exeext conftest.
$ac_ext
11056 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11057 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11059 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11064 CPPFLAGS
=$save_CPPFLAGS
11066 if test "${found_usable_guile}" = no
; then
11067 if test "${flag_errors}" = yes; then
11068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11070 as_fn_error $?
"linking guile version ${guile_version} test program failed
11071 See \`config.log' for more details" "$LINENO" 5; }
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11076 $as_echo "${found_usable_guile}" >&6; }
11080 if test -x "${with_guile}"; then
11082 pkg_config
=${with_guile}
11083 guile_version_list
=${try_guile_versions}
11086 found_usable_guile
=checking
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11088 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11089 for guile_version
in ${guile_version_list}; do
11090 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11091 if test $?
!= 0; then
11094 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11095 if test $?
!= 0; then
11096 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11098 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11099 if test $?
!= 0; then
11100 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11102 found_usable_guile
=${guile_version}
11105 if test "${found_usable_guile}" = "checking"; then
11106 if test "${flag_errors}" = "yes"; then
11107 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11109 found_usable_guile
=no
11112 if test "${found_usable_guile}" != no
; then
11113 save_CPPFLAGS
=$CPPFLAGS
11115 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11116 LIBS
="$LIBS $new_LIBS"
11117 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11118 /* end confdefs.h. */
11119 #include "libguile.h"
11128 if ac_fn_c_try_link
"$LINENO"; then :
11130 GUILE_CPPFLAGS
=$new_CPPFLAGS
11131 GUILE_LIBS
=$new_LIBS
11133 found_usable_guile
=no
11135 rm -f core conftest.err conftest.
$ac_objext \
11136 conftest
$ac_exeext conftest.
$ac_ext
11137 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11138 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11140 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11145 CPPFLAGS
=$save_CPPFLAGS
11147 if test "${found_usable_guile}" = no
; then
11148 if test "${flag_errors}" = yes; then
11149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11151 as_fn_error $?
"linking guile version ${guile_version} test program failed
11152 See \`config.log' for more details" "$LINENO" 5; }
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11157 $as_echo "${found_usable_guile}" >&6; }
11160 as_fn_error $?
"Guile config program not executable: ${with_guile}" "$LINENO" 5
11164 # Disallow --with=guile="" and --with-guile=foo/bar.
11165 as_fn_error $?
"invalid value for --with-guile" "$LINENO" 5
11168 # A space separate list of guile versions to try, in order.
11169 if test "${pkg_config_prog_path}" = "missing"; then
11170 as_fn_error $?
"pkg-config not found" "$LINENO" 5
11173 pkg_config
=${pkg_config_prog_path}
11174 guile_version_list
=${with_guile}
11177 found_usable_guile
=checking
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable guile from ${pkg_config}" >&5
11179 $as_echo_n "checking for usable guile from ${pkg_config}... " >&6; }
11180 for guile_version
in ${guile_version_list}; do
11181 ${pkg_config} --exists ${guile_version} 2>/dev
/null
11182 if test $?
!= 0; then
11185 new_CPPFLAGS
=`${pkg_config} --cflags ${guile_version}`
11186 if test $?
!= 0; then
11187 as_fn_error $?
"failure running pkg-config --cflags ${guile_version}" "$LINENO" 5
11189 new_LIBS
=`${pkg_config} --libs ${guile_version}`
11190 if test $?
!= 0; then
11191 as_fn_error $?
"failure running pkg-config --libs ${guile_version}" "$LINENO" 5
11193 found_usable_guile
=${guile_version}
11196 if test "${found_usable_guile}" = "checking"; then
11197 if test "${flag_errors}" = "yes"; then
11198 as_fn_error $?
"unable to find usable guile version from \"${guile_version_list}\"" "$LINENO" 5
11200 found_usable_guile
=no
11203 if test "${found_usable_guile}" != no
; then
11204 save_CPPFLAGS
=$CPPFLAGS
11206 CPPFLAGS
="$CPPFLAGS $new_CPPFLAGS"
11207 LIBS
="$LIBS $new_LIBS"
11208 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 #include "libguile.h"
11219 if ac_fn_c_try_link
"$LINENO"; then :
11221 GUILE_CPPFLAGS
=$new_CPPFLAGS
11222 GUILE_LIBS
=$new_LIBS
11224 found_usable_guile
=no
11226 rm -f core conftest.err conftest.
$ac_objext \
11227 conftest
$ac_exeext conftest.
$ac_ext
11228 ac_fn_c_check_func
"$LINENO" "scm_set_automatic_finalization_enabled" "ac_cv_func_scm_set_automatic_finalization_enabled"
11229 if test "x$ac_cv_func_scm_set_automatic_finalization_enabled" = xyes
; then :
11231 $as_echo "#define HAVE_GUILE_MANUAL_FINALIZATION 1" >>confdefs.h
11236 CPPFLAGS
=$save_CPPFLAGS
11238 if test "${found_usable_guile}" = no
; then
11239 if test "${flag_errors}" = yes; then
11240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11242 as_fn_error $?
"linking guile version ${guile_version} test program failed
11243 See \`config.log' for more details" "$LINENO" 5; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${found_usable_guile}" >&5
11248 $as_echo "${found_usable_guile}" >&6; }
11253 if test "${have_libguile}" != no
; then
11254 case "${with_guile}" in
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11258 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11259 if ${ac_cv_guild_program_name+:} false
; then :
11260 $as_echo_n "(cached) " >&6
11262 ac_cv_guild_program_name
="`"${with_guile}" --variable guild "${guile_version}"`"
11264 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11265 # the 'guild' and 'bindir' variables. In that case, try to guess
11266 # what the program name is, at the risk of getting it wrong if
11267 # Guile was configured with '--program-suffix' or similar.
11268 if test "x$ac_cv_guild_program_name" = "x"; then
11269 guile_exec_prefix
="`"${with_guile}" --variable exec_prefix "${guile_version}"`"
11270 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11275 $as_echo "$ac_cv_guild_program_name" >&6; }
11277 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11278 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11281 GUILD
="$ac_cv_guild_program_name"
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the absolute file name of the 'guild' command" >&5
11288 $as_echo_n "checking for the absolute file name of the 'guild' command... " >&6; }
11289 if ${ac_cv_guild_program_name+:} false
; then :
11290 $as_echo_n "(cached) " >&6
11292 ac_cv_guild_program_name
="`"${pkg_config_prog_path}" --variable guild "${guile_version}"`"
11294 # In Guile up to 2.0.11 included, guile-2.0.pc would not define
11295 # the 'guild' and 'bindir' variables. In that case, try to guess
11296 # what the program name is, at the risk of getting it wrong if
11297 # Guile was configured with '--program-suffix' or similar.
11298 if test "x$ac_cv_guild_program_name" = "x"; then
11299 guile_exec_prefix
="`"${pkg_config_prog_path}" --variable exec_prefix "${guile_version}"`"
11300 ac_cv_guild_program_name
="$guile_exec_prefix/bin/guild"
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_program_name" >&5
11305 $as_echo "$ac_cv_guild_program_name" >&6; }
11307 if ! "$ac_cv_guild_program_name" --version >&5 2>&5; then
11308 as_fn_error $?
"'$ac_cv_guild_program_name' appears to be unusable" "$LINENO" 5
11311 GUILD
="$ac_cv_guild_program_name"
11318 if test "$cross_compiling" = no
; then
11321 GUILD_TARGET_FLAG
="--target=$host"
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether guild supports this host" >&5
11328 $as_echo_n "checking whether guild supports this host... " >&6; }
11329 if ${ac_cv_guild_ok+:} false
; then :
11330 $as_echo_n "(cached) " >&6
11332 echo "$ac_cv_guild_program_name compile $GUILD_TARGET_FLAG -o conftest.go $srcdir/guile/lib/gdb/support.scm" >&5
11333 if "$ac_cv_guild_program_name" compile
$GUILD_TARGET_FLAG -o conftest.go
"$srcdir/guile/lib/gdb/support.scm" >&5 2>&5; then
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_guild_ok" >&5
11340 $as_echo "$ac_cv_guild_ok" >&6; }
11342 if test "$ac_cv_guild_ok" = no
; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling guile support" >&5
11345 $as_echo "$as_me: WARNING: disabling guile support" >&2;}
11349 if test "${have_libguile}" != no
; then
11351 $as_echo "#define HAVE_GUILE 1" >>confdefs.h
11353 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_GUILE_OBS)"
11354 CONFIG_DEPS
="$CONFIG_DEPS \$(SUBDIR_GUILE_DEPS)"
11355 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_GUILE_SRCS)"
11356 CONFIG_INSTALL
="$CONFIG_INSTALL install-guile"
11357 ENABLE_CFLAGS
="$ENABLE_CFLAGS \$(SUBDIR_GUILE_CFLAGS)"
11360 save_CPPFLAGS
="$CPPFLAGS"
11362 CPPFLAGS
="$GUILE_CPPFLAGS"
11363 for ac_func
in scm_new_smob
11365 ac_fn_c_check_func
"$LINENO" "scm_new_smob" "ac_cv_func_scm_new_smob"
11366 if test "x$ac_cv_func_scm_new_smob" = xyes
; then :
11367 cat >>confdefs.h
<<_ACEOF
11368 #define HAVE_SCM_NEW_SMOB 1
11375 CPPFLAGS
="$save_CPPFLAGS"
11377 # Even if Guile support is not compiled in, we need to have these files
11379 CONFIG_OBS
="$CONFIG_OBS guile/guile.o"
11380 CONFIG_SRCS
="$CONFIG_SRCS guile/guile.c"
11384 if test "${have_libguile}" != no
; then
11386 HAVE_GUILE_FALSE
='#'
11388 HAVE_GUILE_TRUE
='#'
11393 # ---------------------------- #
11394 # Check for source highlight. #
11395 # ---------------------------- #
11400 # Check whether --enable-source-highlight was given.
11401 if test "${enable_source_highlight+set}" = set; then :
11402 enableval
=$enable_source_highlight; case "${enableval}" in
11403 yes) enable_source_highlight
=yes ;;
11404 no
) enable_source_highlight
=no
;;
11405 *) as_fn_error $?
"bad value ${enableval} for source-highlight option" "$LINENO" 5 ;;
11408 enable_source_highlight
=auto
11412 if test "${enable_source_highlight}" != "no"; then
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the source-highlight library" >&5
11414 $as_echo_n "checking for the source-highlight library... " >&6; }
11415 if test "${pkg_config_prog_path}" = "missing"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - pkg-config not found" >&5
11417 $as_echo "no - pkg-config not found" >&6; }
11418 if test "${enable_source_highlight}" = "yes"; then
11419 as_fn_error $?
"pkg-config was not found in your system" "$LINENO" 5
11422 if ${pkg_config_prog_path} --exists source-highlight
; then
11423 SRCHIGH_CFLAGS
=`${pkg_config_prog_path} --cflags source-highlight`
11424 SRCHIGH_LIBS
=`${pkg_config_prog_path} --libs source-highlight`
11426 $as_echo "#define HAVE_SOURCE_HIGHLIGHT 1" >>confdefs.h
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11429 $as_echo "yes" >&6; }
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432 $as_echo "no" >&6; }
11433 if test "${enable_source_highlight}" = "yes"; then
11434 as_fn_error $?
"source-highlight was not found in your system" "$LINENO" 5
11442 # --------------------- #
11443 # Check for libmcheck. #
11444 # --------------------- #
11446 # Enable -lmcheck by default (it provides cheap-enough memory mangling),
11447 # but turn it off if Python is enabled with threads, since -lmcheck is
11448 # not thread safe (http://sourceware.org/bugzilla/show_bug.cgi?id=9939),
11449 # and for releases.
11450 if test \
( "${have_libpython}" = "no" -o "${python_has_threads}" = "no" \
) \
11451 && $development; then
11452 libmcheck_default
=yes
11454 libmcheck_default
=no
11457 # Check whether --enable-libmcheck was given.
11458 if test "${enable_libmcheck+set}" = set; then :
11459 enableval
=$enable_libmcheck; case "${enableval}" in
11460 yes | y
) ENABLE_LIBMCHECK
="yes" ;;
11461 no | n
) ENABLE_LIBMCHECK
="no" ;;
11462 *) as_fn_error $?
"bad value ${enableval} for --enable-libmcheck" "$LINENO" 5 ;;
11467 if test -z "${ENABLE_LIBMCHECK}"; then
11468 ENABLE_LIBMCHECK
=${libmcheck_default}
11471 if test "$ENABLE_LIBMCHECK" = "yes" ; then
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmcheck" >&5
11473 $as_echo_n "checking for main in -lmcheck... " >&6; }
11474 if ${ac_cv_lib_mcheck_main+:} false
; then :
11475 $as_echo_n "(cached) " >&6
11477 ac_check_lib_save_LIBS
=$LIBS
11478 LIBS
="-lmcheck $LIBS"
11479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h. */
11491 if ac_fn_c_try_link
"$LINENO"; then :
11492 ac_cv_lib_mcheck_main
=yes
11494 ac_cv_lib_mcheck_main
=no
11496 rm -f core conftest.err conftest.
$ac_objext \
11497 conftest
$ac_exeext conftest.
$ac_ext
11498 LIBS
=$ac_check_lib_save_LIBS
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mcheck_main" >&5
11501 $as_echo "$ac_cv_lib_mcheck_main" >&6; }
11502 if test "x$ac_cv_lib_mcheck_main" = xyes
; then :
11503 cat >>confdefs.h
<<_ACEOF
11504 #define HAVE_LIBMCHECK 1
11507 LIBS
="-lmcheck $LIBS"
11514 if test "$ENABLE_LIBMCHECK" = "yes" \
11515 -a "${have_libpython}" != "no" \
11516 -a "${python_has_threads}" = "yes" ; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&5
11518 $as_echo "$as_me: WARNING: --enable-libmcheck may lead to spurious crashes if threads are used in python" >&2;}
11522 # Check whether --with-intel_pt was given.
11523 if test "${with_intel_pt+set}" = set; then :
11524 withval
=$with_intel_pt;
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use intel pt" >&5
11530 $as_echo_n "checking whether to use intel pt... " >&6; }
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_intel_pt" >&5
11532 $as_echo "$with_intel_pt" >&6; }
11534 if test "${with_intel_pt}" = no
; then
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&5
11536 $as_echo "$as_me: WARNING: Intel Processor Trace support disabled; some features may be unavailable." >&2;}
11539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11542 #include <linux/perf_event.h>
11543 #ifndef PERF_ATTR_SIZE_VER5
11548 if ac_fn_c_try_cpp
"$LINENO"; then :
11553 rm -f conftest.err conftest.i conftest.
$ac_ext
11554 if test "$perf_event" != yes; then
11555 if test "$with_intel_pt" = yes; then
11556 as_fn_error $?
"linux/perf_event.h missing or too old" "$LINENO" 5
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&5
11559 $as_echo "$as_me: WARNING: linux/perf_event.h missing or too old; some features may be unavailable." >&2;}
11573 acl_save_prefix
="$prefix"
11574 prefix
="$acl_final_prefix"
11575 acl_save_exec_prefix
="$exec_prefix"
11576 exec_prefix
="$acl_final_exec_prefix"
11578 eval additional_includedir
=\"$includedir\"
11579 eval additional_libdir
=\"$libdir\"
11581 exec_prefix
="$acl_save_exec_prefix"
11582 prefix
="$acl_save_prefix"
11585 # Check whether --with-libipt-prefix was given.
11586 if test "${with_libipt_prefix+set}" = set; then :
11587 withval
=$with_libipt_prefix;
11588 if test "X$withval" = "Xno"; then
11591 if test "X$withval" = "X"; then
11593 acl_save_prefix
="$prefix"
11594 prefix
="$acl_final_prefix"
11595 acl_save_exec_prefix
="$exec_prefix"
11596 exec_prefix
="$acl_final_exec_prefix"
11598 eval additional_includedir
=\"$includedir\"
11599 eval additional_libdir
=\"$libdir\"
11601 exec_prefix
="$acl_save_exec_prefix"
11602 prefix
="$acl_save_prefix"
11605 additional_includedir
="$withval/include"
11606 additional_libdir
="$withval/lib"
11617 names_already_handled
=
11618 names_next_round
='ipt '
11619 while test -n "$names_next_round"; do
11620 names_this_round
="$names_next_round"
11622 for name
in $names_this_round; do
11624 for n
in $names_already_handled; do
11625 if test "$n" = "$name"; then
11626 already_handled
=yes
11630 if test -z "$already_handled"; then
11631 names_already_handled
="$names_already_handled $name"
11632 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11633 eval value
=\"\
$HAVE_LIB$uppername\"
11634 if test -n "$value"; then
11635 if test "$value" = yes; then
11636 eval value
=\"\
$LIB$uppername\"
11637 test -z "$value" || LIBIPT
="${LIBIPT}${LIBIPT:+ }$value"
11638 eval value
=\"\
$LTLIB$uppername\"
11639 test -z "$value" || LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$value"
11648 if test $use_additional = yes; then
11649 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11650 found_dir
="$additional_libdir"
11651 found_so
="$additional_libdir/lib$name.$shlibext"
11652 if test -f "$additional_libdir/lib$name.la"; then
11653 found_la
="$additional_libdir/lib$name.la"
11656 if test -f "$additional_libdir/lib$name.$libext"; then
11657 found_dir
="$additional_libdir"
11658 found_a
="$additional_libdir/lib$name.$libext"
11659 if test -f "$additional_libdir/lib$name.la"; then
11660 found_la
="$additional_libdir/lib$name.la"
11665 if test "X$found_dir" = "X"; then
11666 for x
in $LDFLAGS $LTLIBIPT; do
11668 acl_save_prefix
="$prefix"
11669 prefix
="$acl_final_prefix"
11670 acl_save_exec_prefix
="$exec_prefix"
11671 exec_prefix
="$acl_final_exec_prefix"
11673 exec_prefix
="$acl_save_exec_prefix"
11674 prefix
="$acl_save_prefix"
11678 dir
=`echo "X$x" | sed -e 's/^X-L//'`
11679 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11681 found_so
="$dir/lib$name.$shlibext"
11682 if test -f "$dir/lib$name.la"; then
11683 found_la
="$dir/lib$name.la"
11686 if test -f "$dir/lib$name.$libext"; then
11688 found_a
="$dir/lib$name.$libext"
11689 if test -f "$dir/lib$name.la"; then
11690 found_la
="$dir/lib$name.la"
11696 if test "X$found_dir" != "X"; then
11701 if test "X$found_dir" != "X"; then
11702 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$found_dir -l$name"
11703 if test "X$found_so" != "X"; then
11704 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
11705 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11708 for x
in $ltrpathdirs; do
11709 if test "X$x" = "X$found_dir"; then
11714 if test -z "$haveit"; then
11715 ltrpathdirs
="$ltrpathdirs $found_dir"
11717 if test "$hardcode_direct" = yes; then
11718 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11720 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
11721 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11723 for x
in $rpathdirs; do
11724 if test "X$x" = "X$found_dir"; then
11729 if test -z "$haveit"; then
11730 rpathdirs
="$rpathdirs $found_dir"
11734 for x
in $LDFLAGS $LIBIPT; do
11736 acl_save_prefix
="$prefix"
11737 prefix
="$acl_final_prefix"
11738 acl_save_exec_prefix
="$exec_prefix"
11739 exec_prefix
="$acl_final_exec_prefix"
11741 exec_prefix
="$acl_save_exec_prefix"
11742 prefix
="$acl_save_prefix"
11744 if test "X$x" = "X-L$found_dir"; then
11749 if test -z "$haveit"; then
11750 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir"
11752 if test "$hardcode_minus_L" != no
; then
11753 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_so"
11755 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11761 if test "X$found_a" != "X"; then
11762 LIBIPT
="${LIBIPT}${LIBIPT:+ }$found_a"
11764 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$found_dir -l$name"
11767 additional_includedir
=
11768 case "$found_dir" in
11770 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11771 additional_includedir
="$basedir/include"
11774 if test "X$additional_includedir" != "X"; then
11775 if test "X$additional_includedir" != "X/usr/include"; then
11777 if test "X$additional_includedir" = "X/usr/local/include"; then
11778 if test -n "$GCC"; then
11780 linux
*) haveit
=yes;;
11784 if test -z "$haveit"; then
11785 for x
in $CPPFLAGS $INCIPT; do
11787 acl_save_prefix
="$prefix"
11788 prefix
="$acl_final_prefix"
11789 acl_save_exec_prefix
="$exec_prefix"
11790 exec_prefix
="$acl_final_exec_prefix"
11792 exec_prefix
="$acl_save_exec_prefix"
11793 prefix
="$acl_save_prefix"
11795 if test "X$x" = "X-I$additional_includedir"; then
11800 if test -z "$haveit"; then
11801 if test -d "$additional_includedir"; then
11802 INCIPT
="${INCIPT}${INCIPT:+ }-I$additional_includedir"
11808 if test -n "$found_la"; then
11809 save_libdir
="$libdir"
11810 case "$found_la" in
11811 */* |
*\\*) .
"$found_la" ;;
11812 *) .
"./$found_la" ;;
11814 libdir
="$save_libdir"
11815 for dep
in $dependency_libs; do
11818 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
11819 if test "X$additional_libdir" != "X/usr/lib"; then
11821 if test "X$additional_libdir" = "X/usr/local/lib"; then
11822 if test -n "$GCC"; then
11824 linux
*) haveit
=yes;;
11828 if test -z "$haveit"; then
11830 for x
in $LDFLAGS $LIBIPT; do
11832 acl_save_prefix
="$prefix"
11833 prefix
="$acl_final_prefix"
11834 acl_save_exec_prefix
="$exec_prefix"
11835 exec_prefix
="$acl_final_exec_prefix"
11837 exec_prefix
="$acl_save_exec_prefix"
11838 prefix
="$acl_save_prefix"
11840 if test "X$x" = "X-L$additional_libdir"; then
11845 if test -z "$haveit"; then
11846 if test -d "$additional_libdir"; then
11847 LIBIPT
="${LIBIPT}${LIBIPT:+ }-L$additional_libdir"
11851 for x
in $LDFLAGS $LTLIBIPT; do
11853 acl_save_prefix
="$prefix"
11854 prefix
="$acl_final_prefix"
11855 acl_save_exec_prefix
="$exec_prefix"
11856 exec_prefix
="$acl_final_exec_prefix"
11858 exec_prefix
="$acl_save_exec_prefix"
11859 prefix
="$acl_save_prefix"
11861 if test "X$x" = "X-L$additional_libdir"; then
11866 if test -z "$haveit"; then
11867 if test -d "$additional_libdir"; then
11868 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-L$additional_libdir"
11875 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
11876 if test "$enable_rpath" != no
; then
11878 for x
in $rpathdirs; do
11879 if test "X$x" = "X$dir"; then
11884 if test -z "$haveit"; then
11885 rpathdirs
="$rpathdirs $dir"
11888 for x
in $ltrpathdirs; do
11889 if test "X$x" = "X$dir"; then
11894 if test -z "$haveit"; then
11895 ltrpathdirs
="$ltrpathdirs $dir"
11900 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11903 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11906 LIBIPT
="${LIBIPT}${LIBIPT:+ }$dep"
11907 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }$dep"
11913 LIBIPT
="${LIBIPT}${LIBIPT:+ }-l$name"
11914 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-l$name"
11920 if test "X$rpathdirs" != "X"; then
11921 if test -n "$hardcode_libdir_separator"; then
11923 for found_dir
in $rpathdirs; do
11924 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11926 acl_save_libdir
="$libdir"
11928 eval flag
=\"$hardcode_libdir_flag_spec\"
11929 libdir
="$acl_save_libdir"
11930 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11932 for found_dir
in $rpathdirs; do
11933 acl_save_libdir
="$libdir"
11934 libdir
="$found_dir"
11935 eval flag
=\"$hardcode_libdir_flag_spec\"
11936 libdir
="$acl_save_libdir"
11937 LIBIPT
="${LIBIPT}${LIBIPT:+ }$flag"
11941 if test "X$ltrpathdirs" != "X"; then
11942 for found_dir
in $ltrpathdirs; do
11943 LTLIBIPT
="${LTLIBIPT}${LTLIBIPT:+ }-R$found_dir"
11948 ac_save_CPPFLAGS
="$CPPFLAGS"
11950 for element
in $INCIPT; do
11952 for x
in $CPPFLAGS; do
11954 acl_save_prefix
="$prefix"
11955 prefix
="$acl_final_prefix"
11956 acl_save_exec_prefix
="$exec_prefix"
11957 exec_prefix
="$acl_final_exec_prefix"
11959 exec_prefix
="$acl_save_exec_prefix"
11960 prefix
="$acl_save_prefix"
11962 if test "X$x" = "X$element"; then
11967 if test -z "$haveit"; then
11968 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libipt" >&5
11974 $as_echo_n "checking for libipt... " >&6; }
11975 if ${ac_cv_libipt+:} false
; then :
11976 $as_echo_n "(cached) " >&6
11979 ac_save_LIBS
="$LIBS"
11980 LIBS
="$LIBS $LIBIPT"
11981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11982 /* end confdefs.h. */
11983 #include "intel-pt.h"
11987 pt_insn_alloc_decoder (0);
11992 if ac_fn_c_try_link
"$LINENO"; then :
11997 rm -f core conftest.err conftest.
$ac_objext \
11998 conftest
$ac_exeext conftest.
$ac_ext
11999 LIBS
="$ac_save_LIBS"
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libipt" >&5
12003 $as_echo "$ac_cv_libipt" >&6; }
12004 if test "$ac_cv_libipt" = yes; then
12007 $as_echo "#define HAVE_LIBIPT 1" >>confdefs.h
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libipt" >&5
12010 $as_echo_n "checking how to link with libipt... " >&6; }
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBIPT" >&5
12012 $as_echo "$LIBIPT" >&6; }
12015 CPPFLAGS
="$ac_save_CPPFLAGS"
12025 if test "$HAVE_LIBIPT" != yes; then
12026 if test "$with_intel_pt" = yes; then
12027 as_fn_error $?
"libipt is missing or unusable" "$LINENO" 5
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libipt is missing or unusable; some features may be unavailable." >&5
12030 $as_echo "$as_me: WARNING: libipt is missing or unusable; some features may be unavailable." >&2;}
12034 LIBS
="$LIBS $LIBIPT"
12035 for ac_func
in pt_insn_event
12037 ac_fn_c_check_func
"$LINENO" "pt_insn_event" "ac_cv_func_pt_insn_event"
12038 if test "x$ac_cv_func_pt_insn_event" = xyes
; then :
12039 cat >>confdefs.h
<<_ACEOF
12040 #define HAVE_PT_INSN_EVENT 1
12046 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "enabled" "ac_cv_member_struct_pt_insn_enabled" "#include <intel-pt.h>
12048 if test "x$ac_cv_member_struct_pt_insn_enabled" = xyes
; then :
12050 cat >>confdefs.h
<<_ACEOF
12051 #define HAVE_STRUCT_PT_INSN_ENABLED 1
12056 ac_fn_c_check_member
"$LINENO" "struct pt_insn" "resynced" "ac_cv_member_struct_pt_insn_resynced" "#include <intel-pt.h>
12058 if test "x$ac_cv_member_struct_pt_insn_resynced" = xyes
; then :
12060 cat >>confdefs.h
<<_ACEOF
12061 #define HAVE_STRUCT_PT_INSN_RESYNCED 1
12071 # ------------------------- #
12072 # Checks for header files. #
12073 # ------------------------- #
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12076 $as_echo_n "checking for ANSI C header files... " >&6; }
12077 if ${ac_cv_header_stdc+:} false
; then :
12078 $as_echo_n "(cached) " >&6
12080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #include <stdlib.h>
12083 #include <stdarg.h>
12084 #include <string.h>
12095 if ac_fn_c_try_compile
"$LINENO"; then :
12096 ac_cv_header_stdc
=yes
12098 ac_cv_header_stdc
=no
12100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12102 if test $ac_cv_header_stdc = yes; then
12103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12105 /* end confdefs.h. */
12106 #include <string.h>
12109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12110 $EGREP "memchr" >/dev
/null
2>&1; then :
12113 ac_cv_header_stdc
=no
12119 if test $ac_cv_header_stdc = yes; then
12120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123 #include <stdlib.h>
12126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12127 $EGREP "free" >/dev
/null
2>&1; then :
12130 ac_cv_header_stdc
=no
12136 if test $ac_cv_header_stdc = yes; then
12137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12138 if test "$cross_compiling" = yes; then :
12141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12144 #include <stdlib.h>
12145 #if ((' ' & 0x0FF) == 0x020)
12146 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12147 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12149 # define ISLOWER(c) \
12150 (('a' <= (c) && (c) <= 'i') \
12151 || ('j' <= (c) && (c) <= 'r') \
12152 || ('s' <= (c) && (c) <= 'z'))
12153 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12156 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12161 for (i = 0; i < 256; i++)
12162 if (XOR (islower (i), ISLOWER (i))
12163 || toupper (i) != TOUPPER (i))
12168 if ac_fn_c_try_run
"$LINENO"; then :
12171 ac_cv_header_stdc
=no
12173 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12174 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12180 $as_echo "$ac_cv_header_stdc" >&6; }
12181 if test $ac_cv_header_stdc = yes; then
12183 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12187 # elf_hp.h is for HP/UX 64-bit shared library support.
12188 for ac_header
in nlist.h machine
/reg.h poll.h sys
/poll.h proc_service.h \
12189 thread_db.h linux
/elf.h \
12190 sys
/file.h sys
/filio.h sys
/ioctl.h sys
/param.h \
12191 sys
/resource.h sys
/procfs.h sys
/ptrace.h ptrace.h \
12192 sys
/reg.h sys
/debugreg.h sys
/select.h \
12193 termios.h elf_hp.h \
12196 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12197 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12198 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12199 cat >>confdefs.h
<<_ACEOF
12200 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12207 for ac_header
in sys
/user.h
12209 ac_fn_c_check_header_compile
"$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "#if HAVE_SYS_PARAM_H
12210 # include <sys/param.h>
12214 if test "x$ac_cv_header_sys_user_h" = xyes
; then :
12215 cat >>confdefs.h
<<_ACEOF
12216 #define HAVE_SYS_USER_H 1
12224 for ac_header
in curses.h cursesX.h ncurses.h ncursesw
/ncurses.h ncurses
/ncurses.h ncurses
/term.h
12226 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12227 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12228 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12229 cat >>confdefs.h
<<_ACEOF
12230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12237 for ac_header
in term.h
12239 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "#if HAVE_CURSES_H
12240 # include <curses.h>
12244 if test "x$ac_cv_header_term_h" = xyes
; then :
12245 cat >>confdefs.h
<<_ACEOF
12246 #define HAVE_TERM_H 1
12254 # ------------------------- #
12255 # Checks for declarations. #
12256 # ------------------------- #
12259 # Check for presence and size of long long.
12260 ac_fn_c_check_type
"$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12261 if test "x$ac_cv_type_long_long" = xyes
; then :
12263 cat >>confdefs.h
<<_ACEOF
12264 #define HAVE_LONG_LONG 1
12267 # The cast to long int works around a bug in the HP C Compiler
12268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12270 # This bug is HP SR number 8606223364.
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12272 $as_echo_n "checking size of long long... " >&6; }
12273 if ${ac_cv_sizeof_long_long+:} false
; then :
12274 $as_echo_n "(cached) " >&6
12276 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12279 if test "$ac_cv_type_long_long" = yes; then
12280 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12282 as_fn_error
77 "cannot compute sizeof (long long)
12283 See \`config.log' for more details" "$LINENO" 5; }
12285 ac_cv_sizeof_long_long
=0
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12291 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12295 cat >>confdefs.h
<<_ACEOF
12296 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12303 as_ac_Symbol
=`$as_echo "ac_cv_have_decl_basename(char *)" | $as_tr_sh`
12304 ac_fn_c_check_decl
"$LINENO" "basename(char *)" "$as_ac_Symbol" "$ac_includes_default"
12305 if eval test \"x\$
"$as_ac_Symbol"\" = x
"yes"; then :
12311 cat >>confdefs.h
<<_ACEOF
12312 #define HAVE_DECL_BASENAME $ac_have_decl
12314 ac_fn_c_check_decl
"$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12315 if test "x$ac_cv_have_decl_ffs" = xyes
; then :
12321 cat >>confdefs.h
<<_ACEOF
12322 #define HAVE_DECL_FFS $ac_have_decl
12324 ac_fn_c_check_decl
"$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12325 if test "x$ac_cv_have_decl_asprintf" = xyes
; then :
12331 cat >>confdefs.h
<<_ACEOF
12332 #define HAVE_DECL_ASPRINTF $ac_have_decl
12334 ac_fn_c_check_decl
"$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12335 if test "x$ac_cv_have_decl_vasprintf" = xyes
; then :
12341 cat >>confdefs.h
<<_ACEOF
12342 #define HAVE_DECL_VASPRINTF $ac_have_decl
12344 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12345 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12351 cat >>confdefs.h
<<_ACEOF
12352 #define HAVE_DECL_SNPRINTF $ac_have_decl
12354 ac_fn_c_check_decl
"$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
12355 if test "x$ac_cv_have_decl_vsnprintf" = xyes
; then :
12361 cat >>confdefs.h
<<_ACEOF
12362 #define HAVE_DECL_VSNPRINTF $ac_have_decl
12365 ac_fn_c_check_decl
"$LINENO" "strtol" "ac_cv_have_decl_strtol" "$ac_includes_default"
12366 if test "x$ac_cv_have_decl_strtol" = xyes
; then :
12372 cat >>confdefs.h
<<_ACEOF
12373 #define HAVE_DECL_STRTOL $ac_have_decl
12375 ac_fn_c_check_decl
"$LINENO" "strtoul" "ac_cv_have_decl_strtoul" "$ac_includes_default"
12376 if test "x$ac_cv_have_decl_strtoul" = xyes
; then :
12382 cat >>confdefs.h
<<_ACEOF
12383 #define HAVE_DECL_STRTOUL $ac_have_decl
12385 ac_fn_c_check_decl
"$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default"
12386 if test "x$ac_cv_have_decl_strtoll" = xyes
; then :
12392 cat >>confdefs.h
<<_ACEOF
12393 #define HAVE_DECL_STRTOLL $ac_have_decl
12395 ac_fn_c_check_decl
"$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default"
12396 if test "x$ac_cv_have_decl_strtoull" = xyes
; then :
12402 cat >>confdefs.h
<<_ACEOF
12403 #define HAVE_DECL_STRTOULL $ac_have_decl
12406 ac_fn_c_check_decl
"$LINENO" "strverscmp" "ac_cv_have_decl_strverscmp" "$ac_includes_default"
12407 if test "x$ac_cv_have_decl_strverscmp" = xyes
; then :
12413 cat >>confdefs.h
<<_ACEOF
12414 #define HAVE_DECL_STRVERSCMP $ac_have_decl
12419 ac_fn_c_check_decl
"$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
12420 if test "x$ac_cv_have_decl_snprintf" = xyes
; then :
12426 cat >>confdefs.h
<<_ACEOF
12427 #define HAVE_DECL_SNPRINTF $ac_have_decl
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
12432 $as_echo_n "checking for LC_MESSAGES... " >&6; }
12433 if ${am_cv_val_LC_MESSAGES+:} false
; then :
12434 $as_echo_n "(cached) " >&6
12436 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12437 /* end confdefs.h. */
12438 #include <locale.h>
12447 if ac_fn_c_try_link
"$LINENO"; then :
12448 am_cv_val_LC_MESSAGES
=yes
12450 am_cv_val_LC_MESSAGES
=no
12452 rm -f core conftest.err conftest.
$ac_objext \
12453 conftest
$ac_exeext conftest.
$ac_ext
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
12456 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
12457 if test $am_cv_val_LC_MESSAGES = yes; then
12459 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
12464 # ----------------------- #
12465 # Checks for structures. #
12466 # ----------------------- #
12468 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
12469 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
; then :
12471 cat >>confdefs.h
<<_ACEOF
12472 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12477 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
12478 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
; then :
12480 cat >>confdefs.h
<<_ACEOF
12481 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12488 # ------------------ #
12489 # Checks for types. #
12490 # ------------------ #
12492 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12493 #include <sys/socket.h>
12496 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12498 cat >>confdefs.h
<<_ACEOF
12499 #define HAVE_SOCKLEN_T 1
12506 # ------------------------------------- #
12507 # Checks for compiler characteristics. #
12508 # ------------------------------------- #
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12511 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12512 if ${ac_cv_c_const+:} false
; then :
12513 $as_echo_n "(cached) " >&6
12515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12522 #ifndef __cplusplus
12523 /* Ultrix mips cc rejects this sort of thing. */
12524 typedef int charset[2];
12525 const charset cs = { 0, 0 };
12526 /* SunOS 4.1.1 cc rejects this. */
12527 char const *const *pcpcc;
12529 /* NEC SVR4.0.2 mips cc rejects this. */
12530 struct point {int x, y;};
12531 static struct point const zero = {0,0};
12532 /* AIX XL C 1.02.0.0 rejects this.
12533 It does not let you subtract one const X* pointer from another in
12534 an arm of an if-expression whose if-part is not a constant
12536 const char *g = "string";
12537 pcpcc = &g + (g ? g-g : 0);
12538 /* HPUX 7.0 cc rejects these. */
12540 ppc = (char**) pcpcc;
12541 pcpcc = (char const *const *) ppc;
12542 { /* SCO 3.2v4 cc rejects this sort of thing. */
12545 char const *s = 0 ? (char *) 0 : (char const *) 0;
12550 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12551 int x[] = {25, 17};
12552 const int *foo = &x[0];
12555 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12556 typedef const int *iptr;
12560 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12561 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12562 struct s { int j; const int *ap[3]; } bx;
12563 struct s *b = &bx; b->j = 5;
12565 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12566 const int foo = 10;
12567 if (!foo) return 0;
12569 return !cs[0] && !zero.x;
12576 if ac_fn_c_try_compile
"$LINENO"; then :
12581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12584 $as_echo "$ac_cv_c_const" >&6; }
12585 if test $ac_cv_c_const = no
; then
12587 $as_echo "#define const /**/" >>confdefs.h
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12592 $as_echo_n "checking for inline... " >&6; }
12593 if ${ac_cv_c_inline+:} false
; then :
12594 $as_echo_n "(cached) " >&6
12597 for ac_kw
in inline __inline__ __inline
; do
12598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12600 #ifndef __cplusplus
12602 static $ac_kw foo_t static_foo () {return 0; }
12603 $ac_kw foo_t foo () {return 0; }
12607 if ac_fn_c_try_compile
"$LINENO"; then :
12608 ac_cv_c_inline
=$ac_kw
12610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12611 test "$ac_cv_c_inline" != no
&& break
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12616 $as_echo "$ac_cv_c_inline" >&6; }
12618 case $ac_cv_c_inline in
12621 case $ac_cv_c_inline in
12623 *) ac_val
=$ac_cv_c_inline;;
12625 cat >>confdefs.h
<<_ACEOF
12626 #ifndef __cplusplus
12627 #define inline $ac_val
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12634 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12635 if ${ac_cv_c_bigendian+:} false
; then :
12636 $as_echo_n "(cached) " >&6
12638 ac_cv_c_bigendian
=unknown
12639 # See if we're dealing with a universal compiler.
12640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 #ifndef __APPLE_CC__
12643 not a universal capable compiler
12648 if ac_fn_c_try_compile
"$LINENO"; then :
12650 # Check for potential -arch flags. It is not universal unless
12651 # there are at least two -arch flags with different values.
12654 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12655 if test -n "$ac_prev"; then
12657 i?
86 | x86_64 | ppc | ppc64
)
12658 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
12661 ac_cv_c_bigendian
=universal
12667 elif test "x$ac_word" = "x-arch"; then
12672 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12673 if test $ac_cv_c_bigendian = unknown
; then
12674 # See if sys/param.h defines the BYTE_ORDER macro.
12675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #include <sys/types.h>
12678 #include <sys/param.h>
12683 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12684 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12686 bogus endian macros
12693 if ac_fn_c_try_compile
"$LINENO"; then :
12694 # It does; now see whether it defined to BIG_ENDIAN or not.
12695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697 #include <sys/types.h>
12698 #include <sys/param.h>
12703 #if BYTE_ORDER != BIG_ENDIAN
12711 if ac_fn_c_try_compile
"$LINENO"; then :
12712 ac_cv_c_bigendian
=yes
12714 ac_cv_c_bigendian
=no
12716 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12720 if test $ac_cv_c_bigendian = unknown
; then
12721 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12723 /* end confdefs.h. */
12724 #include <limits.h>
12729 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12730 bogus endian macros
12737 if ac_fn_c_try_compile
"$LINENO"; then :
12738 # It does; now see whether it defined to _BIG_ENDIAN or not.
12739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h. */
12741 #include <limits.h>
12746 #ifndef _BIG_ENDIAN
12754 if ac_fn_c_try_compile
"$LINENO"; then :
12755 ac_cv_c_bigendian
=yes
12757 ac_cv_c_bigendian
=no
12759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12761 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12763 if test $ac_cv_c_bigendian = unknown
; then
12764 # Compile a test program.
12765 if test "$cross_compiling" = yes; then :
12766 # Try to guess by grepping values from an object file.
12767 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12768 /* end confdefs.h. */
12769 short int ascii_mm[] =
12770 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12771 short int ascii_ii[] =
12772 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12773 int use_ascii (int i) {
12774 return ascii_mm[i] + ascii_ii[i];
12776 short int ebcdic_ii[] =
12777 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12778 short int ebcdic_mm[] =
12779 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12780 int use_ebcdic (int i) {
12781 return ebcdic_mm[i] + ebcdic_ii[i];
12788 return use_ascii (foo) == use_ebcdic (foo);
12793 if ac_fn_c_try_compile
"$LINENO"; then :
12794 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
12795 ac_cv_c_bigendian
=yes
12797 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
12798 if test "$ac_cv_c_bigendian" = unknown
; then
12799 ac_cv_c_bigendian
=no
12801 # finding both strings is unlikely to happen, but who knows?
12802 ac_cv_c_bigendian
=unknown
12806 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 $ac_includes_default
12815 /* Are we little or big endian? From Harbison&Steele. */
12819 char c[sizeof (long int)];
12822 return u.c[sizeof (long int) - 1] == 1;
12828 if ac_fn_c_try_run
"$LINENO"; then :
12829 ac_cv_c_bigendian
=no
12831 ac_cv_c_bigendian
=yes
12833 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12834 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12840 $as_echo "$ac_cv_c_bigendian" >&6; }
12841 case $ac_cv_c_bigendian in #(
12843 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12849 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12853 as_fn_error $?
"unknown endianness
12854 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12858 # ------------------------------ #
12859 # Checks for library functions. #
12860 # ------------------------------ #
12865 for ac_header
in $ac_header_list
12867 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12868 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12870 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12871 cat >>confdefs.h
<<_ACEOF
12872 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12886 for ac_func
in getpagesize
12888 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12889 if test "x$ac_cv_func_getpagesize" = xyes
; then :
12890 cat >>confdefs.h
<<_ACEOF
12891 #define HAVE_GETPAGESIZE 1
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12898 $as_echo_n "checking for working mmap... " >&6; }
12899 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
12900 $as_echo_n "(cached) " >&6
12902 if test "$cross_compiling" = yes; then :
12903 ac_cv_func_mmap_fixed_mapped
=no
12905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907 $ac_includes_default
12908 /* malloc might have been renamed as rpl_malloc. */
12911 /* Thanks to Mike Haertel and Jim Avera for this test.
12912 Here is a matrix of mmap possibilities:
12913 mmap private not fixed
12914 mmap private fixed at somewhere currently unmapped
12915 mmap private fixed at somewhere already mapped
12916 mmap shared not fixed
12917 mmap shared fixed at somewhere currently unmapped
12918 mmap shared fixed at somewhere already mapped
12919 For private mappings, we should verify that changes cannot be read()
12920 back from the file, nor mmap's back from the file at a different
12921 address. (There have been systems where private was not correctly
12922 implemented like the infamous i386 svr4.0, and systems where the
12923 VM page cache was not coherent with the file system buffer cache
12924 like early versions of FreeBSD and possibly contemporary NetBSD.)
12925 For shared mappings, we should conversely verify that changes get
12926 propagated back to all the places they're supposed to be.
12928 Grep wants private fixed already mapped.
12929 The main things grep needs to know about mmap are:
12930 * does it exist and is it safe to write into the mmap'd area
12931 * how to use it (BSD variants) */
12934 #include <sys/mman.h>
12936 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12940 /* This mess was copied from the GNU getpagesize.h. */
12941 #ifndef HAVE_GETPAGESIZE
12942 # ifdef _SC_PAGESIZE
12943 # define getpagesize() sysconf(_SC_PAGESIZE)
12944 # else /* no _SC_PAGESIZE */
12945 # ifdef HAVE_SYS_PARAM_H
12946 # include <sys/param.h>
12947 # ifdef EXEC_PAGESIZE
12948 # define getpagesize() EXEC_PAGESIZE
12949 # else /* no EXEC_PAGESIZE */
12951 # define getpagesize() NBPG * CLSIZE
12954 # endif /* no CLSIZE */
12955 # else /* no NBPG */
12957 # define getpagesize() NBPC
12958 # else /* no NBPC */
12960 # define getpagesize() PAGESIZE
12961 # endif /* PAGESIZE */
12962 # endif /* no NBPC */
12963 # endif /* no NBPG */
12964 # endif /* no EXEC_PAGESIZE */
12965 # else /* no HAVE_SYS_PARAM_H */
12966 # define getpagesize() 8192 /* punt totally */
12967 # endif /* no HAVE_SYS_PARAM_H */
12968 # endif /* no _SC_PAGESIZE */
12970 #endif /* no HAVE_GETPAGESIZE */
12975 char *data, *data2, *data3;
12976 const char *cdata2;
12980 pagesize = getpagesize ();
12982 /* First, make a file with some known garbage in it. */
12983 data = (char *) malloc (pagesize);
12986 for (i = 0; i < pagesize; ++i)
12987 *(data + i) = rand ();
12989 fd = creat ("conftest.mmap", 0600);
12992 if (write (fd, data, pagesize) != pagesize)
12996 /* Next, check that the tail of a page is zero-filled. File must have
12997 non-zero length, otherwise we risk SIGBUS for entire page. */
12998 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13002 if (write (fd2, cdata2, 1) != 1)
13004 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13005 if (data2 == MAP_FAILED)
13007 for (i = 0; i < pagesize; ++i)
13011 if (munmap (data2, pagesize))
13014 /* Next, try to mmap the file at a fixed address which already has
13015 something else allocated at it. If we can, also make sure that
13016 we see the same garbage. */
13017 fd = open ("conftest.mmap", O_RDWR);
13020 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13021 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13023 for (i = 0; i < pagesize; ++i)
13024 if (*(data + i) != *(data2 + i))
13027 /* Finally, make sure that changes to the mapped area do not
13028 percolate back to the file as seen by read(). (This is a bug on
13029 some variants of i386 svr4.0.) */
13030 for (i = 0; i < pagesize; ++i)
13031 *(data2 + i) = *(data2 + i) + 1;
13032 data3 = (char *) malloc (pagesize);
13035 if (read (fd, data3, pagesize) != pagesize)
13037 for (i = 0; i < pagesize; ++i)
13038 if (*(data + i) != *(data3 + i))
13044 if ac_fn_c_try_run
"$LINENO"; then :
13045 ac_cv_func_mmap_fixed_mapped
=yes
13047 ac_cv_func_mmap_fixed_mapped
=no
13049 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13050 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13055 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13056 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13058 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13061 rm -f conftest.mmap conftest.txt
13063 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13064 if test "x$ac_cv_type_pid_t" = xyes
; then :
13068 cat >>confdefs.h
<<_ACEOF
13074 for ac_header
in vfork.h
13076 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13077 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13078 cat >>confdefs.h
<<_ACEOF
13079 #define HAVE_VFORK_H 1
13086 for ac_func
in fork vfork
13088 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13089 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13090 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13091 cat >>confdefs.h
<<_ACEOF
13092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13098 if test "x$ac_cv_func_fork" = xyes
; then
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13100 $as_echo_n "checking for working fork... " >&6; }
13101 if ${ac_cv_func_fork_works+:} false
; then :
13102 $as_echo_n "(cached) " >&6
13104 if test "$cross_compiling" = yes; then :
13105 ac_cv_func_fork_works
=cross
13107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h. */
13109 $ac_includes_default
13114 /* By Ruediger Kuhlmann. */
13115 return fork () < 0;
13121 if ac_fn_c_try_run
"$LINENO"; then :
13122 ac_cv_func_fork_works
=yes
13124 ac_cv_func_fork_works
=no
13126 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13127 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13132 $as_echo "$ac_cv_func_fork_works" >&6; }
13135 ac_cv_func_fork_works
=$ac_cv_func_fork
13137 if test "x$ac_cv_func_fork_works" = xcross
; then
13139 *-*-amigaos* |
*-*-msdosdjgpp*)
13140 # Override, as these systems have only a dummy fork() stub
13141 ac_cv_func_fork_works
=no
13144 ac_cv_func_fork_works
=yes
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13148 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13150 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13151 if test "x$ac_cv_func_vfork" = xyes
; then
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13153 $as_echo_n "checking for working vfork... " >&6; }
13154 if ${ac_cv_func_vfork_works+:} false
; then :
13155 $as_echo_n "(cached) " >&6
13157 if test "$cross_compiling" = yes; then :
13158 ac_cv_func_vfork_works
=cross
13160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162 /* Thanks to Paul Eggert for this test. */
13163 $ac_includes_default
13164 #include <sys/wait.h>
13165 #ifdef HAVE_VFORK_H
13166 # include <vfork.h>
13168 /* On some sparc systems, changes by the child to local and incoming
13169 argument registers are propagated back to the parent. The compiler
13170 is told about this with #include <vfork.h>, but some compilers
13171 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13172 static variable whose address is put into a register that is
13173 clobbered by the vfork. */
13176 sparc_address_test (int arg)
13178 sparc_address_test (arg) int arg;
13181 static pid_t child;
13199 pid_t parent = getpid ();
13202 sparc_address_test (0);
13207 /* Here is another test for sparc vfork register problems. This
13208 test uses lots of local variables, at least as many local
13209 variables as main has allocated so far including compiler
13210 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13211 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13212 reuse the register of parent for one of the local variables,
13213 since it will think that parent can't possibly be used any more
13214 in this routine. Assigning to the local variable will thus
13215 munge parent in the parent process. */
13217 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13218 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13219 /* Convince the compiler that p..p7 are live; otherwise, it might
13220 use the same hardware register for all 8 local variables. */
13221 if (p != p1 || p != p2 || p != p3 || p != p4
13222 || p != p5 || p != p6 || p != p7)
13225 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13226 from child file descriptors. If the child closes a descriptor
13227 before it execs or exits, this munges the parent's descriptor
13228 as well. Test for this by closing stdout in the child. */
13229 _exit(close(fileno(stdout)) != 0);
13234 while (wait(&status) != child)
13237 /* Was there some problem with vforking? */
13240 /* Did the child fail? (This shouldn't happen.) */
13243 /* Did the vfork/compiler bug occur? */
13244 || parent != getpid()
13246 /* Did the file descriptor bug occur? */
13247 || fstat(fileno(stdout), &st) != 0
13252 if ac_fn_c_try_run
"$LINENO"; then :
13253 ac_cv_func_vfork_works
=yes
13255 ac_cv_func_vfork_works
=no
13257 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13258 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13263 $as_echo "$ac_cv_func_vfork_works" >&6; }
13266 if test "x$ac_cv_func_fork_works" = xcross
; then
13267 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13269 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13272 if test "x$ac_cv_func_vfork_works" = xyes
; then
13274 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13278 $as_echo "#define vfork fork" >>confdefs.h
13281 if test "x$ac_cv_func_fork_works" = xyes
; then
13283 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13287 for ac_func
in getauxval getrusage getuid getgid \
13288 pipe poll pread pread64 pwrite resize_term \
13289 sbrk getpgid setpgid setpgrp setsid \
13290 sigaction sigprocmask sigsetmask socketpair \
13291 ttrace wborder wresize setlocale iconvlist libiconvlist btowc \
13292 setrlimit getrlimit posix_madvise waitpid \
13293 ptrace64 sigaltstack setns use_default_colors
13295 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13296 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13297 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13298 cat >>confdefs.h
<<_ACEOF
13299 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13307 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13308 if ${am_cv_langinfo_codeset+:} false
; then :
13309 $as_echo_n "(cached) " >&6
13311 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13312 /* end confdefs.h. */
13313 #include <langinfo.h>
13317 char* cs = nl_langinfo(CODESET);
13322 if ac_fn_c_try_link
"$LINENO"; then :
13323 am_cv_langinfo_codeset
=yes
13325 am_cv_langinfo_codeset
=no
13327 rm -f core conftest.err conftest.
$ac_objext \
13328 conftest
$ac_exeext conftest.
$ac_ext
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13332 $as_echo "$am_cv_langinfo_codeset" >&6; }
13333 if test $am_cv_langinfo_codeset = yes; then
13335 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13339 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13340 if test "x$ac_cv_type_size_t" = xyes
; then :
13344 cat >>confdefs.h
<<_ACEOF
13345 #define size_t unsigned int
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13352 $as_echo_n "checking for ANSI C header files... " >&6; }
13353 if ${ac_cv_header_stdc+:} false
; then :
13354 $as_echo_n "(cached) " >&6
13356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358 #include <stdlib.h>
13359 #include <stdarg.h>
13360 #include <string.h>
13371 if ac_fn_c_try_compile
"$LINENO"; then :
13372 ac_cv_header_stdc
=yes
13374 ac_cv_header_stdc
=no
13376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13378 if test $ac_cv_header_stdc = yes; then
13379 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13381 /* end confdefs.h. */
13382 #include <string.h>
13385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13386 $EGREP "memchr" >/dev
/null
2>&1; then :
13389 ac_cv_header_stdc
=no
13395 if test $ac_cv_header_stdc = yes; then
13396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13399 #include <stdlib.h>
13402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13403 $EGREP "free" >/dev
/null
2>&1; then :
13406 ac_cv_header_stdc
=no
13412 if test $ac_cv_header_stdc = yes; then
13413 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13414 if test "$cross_compiling" = yes; then :
13417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13418 /* end confdefs.h. */
13420 #include <stdlib.h>
13421 #if ((' ' & 0x0FF) == 0x020)
13422 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13423 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13425 # define ISLOWER(c) \
13426 (('a' <= (c) && (c) <= 'i') \
13427 || ('j' <= (c) && (c) <= 'r') \
13428 || ('s' <= (c) && (c) <= 'z'))
13429 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13437 for (i = 0; i < 256; i++)
13438 if (XOR (islower (i), ISLOWER (i))
13439 || toupper (i) != TOUPPER (i))
13444 if ac_fn_c_try_run
"$LINENO"; then :
13447 ac_cv_header_stdc
=no
13449 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13450 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13456 $as_echo "$ac_cv_header_stdc" >&6; }
13457 if test $ac_cv_header_stdc = yes; then
13459 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13463 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13464 # for constant arguments. Useless!
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13466 $as_echo_n "checking for working alloca.h... " >&6; }
13467 if ${ac_cv_working_alloca_h+:} false
; then :
13468 $as_echo_n "(cached) " >&6
13470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13472 #include <alloca.h>
13476 char *p = (char *) alloca (2 * sizeof (int));
13482 if ac_fn_c_try_link
"$LINENO"; then :
13483 ac_cv_working_alloca_h
=yes
13485 ac_cv_working_alloca_h
=no
13487 rm -f core conftest.err conftest.
$ac_objext \
13488 conftest
$ac_exeext conftest.
$ac_ext
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13491 $as_echo "$ac_cv_working_alloca_h" >&6; }
13492 if test $ac_cv_working_alloca_h = yes; then
13494 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13499 $as_echo_n "checking for alloca... " >&6; }
13500 if ${ac_cv_func_alloca_works+:} false
; then :
13501 $as_echo_n "(cached) " >&6
13503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13506 # define alloca __builtin_alloca
13509 # include <malloc.h>
13510 # define alloca _alloca
13512 # ifdef HAVE_ALLOCA_H
13513 # include <alloca.h>
13518 # ifndef alloca /* predefined by HP cc +Olibcalls */
13519 void *alloca (size_t);
13529 char *p = (char *) alloca (1);
13535 if ac_fn_c_try_link
"$LINENO"; then :
13536 ac_cv_func_alloca_works
=yes
13538 ac_cv_func_alloca_works
=no
13540 rm -f core conftest.err conftest.
$ac_objext \
13541 conftest
$ac_exeext conftest.
$ac_ext
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13544 $as_echo "$ac_cv_func_alloca_works" >&6; }
13546 if test $ac_cv_func_alloca_works = yes; then
13548 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13551 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13552 # that cause trouble. Some versions do not even contain alloca or
13553 # contain a buggy version. If you still want to use their alloca,
13554 # use ar to extract alloca.o from them instead of compiling alloca.c.
13556 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13558 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13562 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13563 if ${ac_cv_os_cray+:} false
; then :
13564 $as_echo_n "(cached) " >&6
13566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h. */
13568 #if defined CRAY && ! defined CRAY2
13575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13576 $EGREP "webecray" >/dev
/null
2>&1; then :
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13585 $as_echo "$ac_cv_os_cray" >&6; }
13586 if test $ac_cv_os_cray = yes; then
13587 for ac_func
in _getb67 GETB67 getb67
; do
13588 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13589 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13590 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13592 cat >>confdefs.h
<<_ACEOF
13593 #define CRAY_STACKSEG_END $ac_func
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13603 $as_echo_n "checking stack direction for C alloca... " >&6; }
13604 if ${ac_cv_c_stack_direction+:} false
; then :
13605 $as_echo_n "(cached) " >&6
13607 if test "$cross_compiling" = yes; then :
13608 ac_cv_c_stack_direction
=0
13610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13612 $ac_includes_default
13614 find_stack_direction (int *addr, int depth)
13616 int dir, dummy = 0;
13619 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13620 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13621 return dir + dummy;
13625 main (int argc, char **argv)
13627 return find_stack_direction (0, argc + !argv + 20) < 0;
13630 if ac_fn_c_try_run
"$LINENO"; then :
13631 ac_cv_c_stack_direction
=1
13633 ac_cv_c_stack_direction
=-1
13635 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13636 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13641 $as_echo "$ac_cv_c_stack_direction" >&6; }
13642 cat >>confdefs.h
<<_ACEOF
13643 #define STACK_DIRECTION $ac_cv_c_stack_direction
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13652 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13653 if ${am_cv_langinfo_codeset+:} false
; then :
13654 $as_echo_n "(cached) " >&6
13656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13657 /* end confdefs.h. */
13658 #include <langinfo.h>
13662 char* cs = nl_langinfo(CODESET);
13667 if ac_fn_c_try_link
"$LINENO"; then :
13668 am_cv_langinfo_codeset
=yes
13670 am_cv_langinfo_codeset
=no
13672 rm -f core conftest.err conftest.
$ac_objext \
13673 conftest
$ac_exeext conftest.
$ac_ext
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13677 $as_echo "$am_cv_langinfo_codeset" >&6; }
13678 if test $am_cv_langinfo_codeset = yes; then
13680 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13685 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
13687 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13688 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13689 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13690 cat >>confdefs.h
<<_ACEOF
13691 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13699 for ac_func
in fdwalk getrlimit pipe pipe2 socketpair sigaction
13701 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13702 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13703 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13704 cat >>confdefs.h
<<_ACEOF
13705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13712 ac_fn_c_check_decl
"$LINENO" "strerror" "ac_cv_have_decl_strerror" "$ac_includes_default"
13713 if test "x$ac_cv_have_decl_strerror" = xyes
; then :
13719 cat >>confdefs.h
<<_ACEOF
13720 #define HAVE_DECL_STRERROR $ac_have_decl
13722 ac_fn_c_check_decl
"$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13723 if test "x$ac_cv_have_decl_strstr" = xyes
; then :
13729 cat >>confdefs.h
<<_ACEOF
13730 #define HAVE_DECL_STRSTR $ac_have_decl
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5
13735 $as_echo_n "checking for sigsetjmp... " >&6; }
13736 if ${gdb_cv_func_sigsetjmp+:} false
; then :
13737 $as_echo_n "(cached) " >&6
13739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13740 /* end confdefs.h. */
13742 #include <setjmp.h>
13747 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
13752 if ac_fn_c_try_compile
"$LINENO"; then :
13753 gdb_cv_func_sigsetjmp
=yes
13755 gdb_cv_func_sigsetjmp
=no
13757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_sigsetjmp" >&5
13760 $as_echo "$gdb_cv_func_sigsetjmp" >&6; }
13761 if test $gdb_cv_func_sigsetjmp = yes; then
13763 $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h
13768 # Check the return and argument types of ptrace.
13771 for ac_header
in sys
/ptrace.h ptrace.h
13773 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13774 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13775 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13776 cat >>confdefs.h
<<_ACEOF
13777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13785 gdb_ptrace_headers
='
13786 #include <sys/types.h>
13787 #if HAVE_SYS_PTRACE_H
13788 # include <sys/ptrace.h>
13791 # include <unistd.h>
13794 # There is no point in checking if we don't have a prototype.
13795 ac_fn_c_check_decl
"$LINENO" "ptrace" "ac_cv_have_decl_ptrace" "$gdb_ptrace_headers
13797 if test "x$ac_cv_have_decl_ptrace" = xyes
; then :
13803 cat >>confdefs.h
<<_ACEOF
13804 #define HAVE_DECL_PTRACE $ac_have_decl
13806 if test $ac_have_decl = 1; then :
13810 : ${gdb_cv_func_ptrace_ret='int'}
13811 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13815 # Check return type. Varargs (used on GNU/Linux) conflict with the
13816 # empty argument list, so check for that explicitly.
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of ptrace" >&5
13818 $as_echo_n "checking return type of ptrace... " >&6; }
13819 if ${gdb_cv_func_ptrace_ret+:} false
; then :
13820 $as_echo_n "(cached) " >&6
13822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13824 $gdb_ptrace_headers
13828 extern long ptrace (enum __ptrace_request, ...);
13833 if ac_fn_c_try_compile
"$LINENO"; then :
13834 gdb_cv_func_ptrace_ret
='long'
13836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838 $gdb_ptrace_headers
13842 extern int ptrace ();
13847 if ac_fn_c_try_compile
"$LINENO"; then :
13848 gdb_cv_func_ptrace_ret
='int'
13850 gdb_cv_func_ptrace_ret
='long'
13852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_ret" >&5
13857 $as_echo "$gdb_cv_func_ptrace_ret" >&6; }
13859 cat >>confdefs.h
<<_ACEOF
13860 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
13863 # Check argument types.
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for ptrace" >&5
13865 $as_echo_n "checking types of arguments for ptrace... " >&6; }
13866 if ${gdb_cv_func_ptrace_args+:} false
; then :
13867 $as_echo_n "(cached) " >&6
13870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13871 /* end confdefs.h. */
13872 $gdb_ptrace_headers
13876 extern long ptrace (enum __ptrace_request, ...);
13881 if ac_fn_c_try_compile
"$LINENO"; then :
13882 gdb_cv_func_ptrace_args
='enum __ptrace_request,int,long,long'
13885 for gdb_arg1
in 'int' 'long'; do
13886 for gdb_arg2
in 'pid_t' 'int' 'long'; do
13887 for gdb_arg3
in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
13888 for gdb_arg4
in 'int' 'long' 'void *'; do
13889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h. */
13891 $gdb_ptrace_headers
13896 extern $gdb_cv_func_ptrace_ret
13897 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
13903 if ac_fn_c_try_compile
"$LINENO"; then :
13904 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
13907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13908 for gdb_arg5
in 'int *' 'int' 'long'; do
13909 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13910 /* end confdefs.h. */
13911 $gdb_ptrace_headers
13916 extern $gdb_cv_func_ptrace_ret
13917 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
13923 if ac_fn_c_try_compile
"$LINENO"; then :
13925 gdb_cv_func_ptrace_args
="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
13928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13934 # Provide a safe default value.
13935 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
13938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_func_ptrace_args" >&5
13941 $as_echo "$gdb_cv_func_ptrace_args" >&6; }
13942 ac_save_IFS
=$IFS; IFS
=','
13943 set dummy
`echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
13947 cat >>confdefs.h
<<_ACEOF
13948 #define PTRACE_TYPE_ARG1 $1
13952 cat >>confdefs.h
<<_ACEOF
13953 #define PTRACE_TYPE_ARG3 $3
13957 cat >>confdefs.h
<<_ACEOF
13958 #define PTRACE_TYPE_ARG4 $4
13961 if test -n "$5"; then
13963 cat >>confdefs.h
<<_ACEOF
13964 #define PTRACE_TYPE_ARG5 $5
13970 if test "$cross_compiling" = no
; then
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
13972 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
13973 if ${ac_cv_func_setpgrp_void+:} false
; then :
13974 $as_echo_n "(cached) " >&6
13976 if test "$cross_compiling" = yes; then :
13977 as_fn_error $?
"cannot check setpgrp when cross compiling" "$LINENO" 5
13979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h. */
13981 $ac_includes_default
13985 /* If this system has a BSD-style setpgrp which takes arguments,
13986 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
13987 exit successfully. */
13988 return setpgrp (1,1) != -1;
13993 if ac_fn_c_try_run
"$LINENO"; then :
13994 ac_cv_func_setpgrp_void
=no
13996 ac_cv_func_setpgrp_void
=yes
13998 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13999 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14004 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14005 if test $ac_cv_func_setpgrp_void = yes; then
14007 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
14013 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
14014 if ${ac_cv_func_setpgrp_void+:} false
; then :
14015 $as_echo_n "(cached) " >&6
14017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h. */
14020 #include <unistd.h>
14026 if (setpgrp(1,1) == -1)
14035 if ac_fn_c_try_compile
"$LINENO"; then :
14036 ac_cv_func_setpgrp_void
=no
14038 ac_cv_func_setpgrp_void
=yes
14040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
14043 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
14044 if test $ac_cv_func_setpgrp_void = yes; then
14045 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
14050 # Assume we'll default to using the included libiberty regex.
14051 gdb_use_included_regex
=yes
14053 # However, if the system regex is GNU regex, then default to *not*
14054 # using the included regex.
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU regex" >&5
14056 $as_echo_n "checking for GNU regex... " >&6; }
14057 if ${gdb_cv_have_gnu_regex+:} false
; then :
14058 $as_echo_n "(cached) " >&6
14060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14062 #include <gnu-versions.h>
14066 #define REGEX_INTERFACE_VERSION 1
14067 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
14068 # error "Version mismatch"
14074 if ac_fn_c_try_compile
"$LINENO"; then :
14075 gdb_cv_have_gnu_regex
=yes
14077 gdb_cv_have_gnu_regex
=no
14079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_gnu_regex" >&5
14082 $as_echo "$gdb_cv_have_gnu_regex" >&6; }
14083 if test $gdb_cv_have_gnu_regex = yes; then
14084 gdb_use_included_regex
=no
14088 # Check whether --with-included-regex was given.
14089 if test "${with_included_regex+set}" = set; then :
14090 withval
=$with_included_regex; gdb_with_regex
=$withval
14092 gdb_with_regex
=$gdb_use_included_regex
14095 if test "$gdb_with_regex" = yes; then
14097 $as_echo "#define USE_INCLUDED_REGEX 1" >>confdefs.h
14101 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
14102 ac_fn_c_check_member
"$LINENO" "struct thread" "td_pcb" "ac_cv_member_struct_thread_td_pcb" "#include <sys/param.h>
14103 #include <sys/proc.h>
14106 if test "x$ac_cv_member_struct_thread_td_pcb" = xyes
; then :
14108 cat >>confdefs.h
<<_ACEOF
14109 #define HAVE_STRUCT_THREAD_TD_PCB 1
14116 # See if <sys/lwp.h> defines `struct lwp`.
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct lwp" >&5
14118 $as_echo_n "checking for struct lwp... " >&6; }
14119 if ${gdb_cv_struct_lwp+:} false
; then :
14120 $as_echo_n "(cached) " >&6
14122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14123 /* end confdefs.h. */
14124 #include <sys/param.h>
14126 #include <sys/lwp.h>
14135 if ac_fn_c_try_compile
"$LINENO"; then :
14136 gdb_cv_struct_lwp
=yes
14138 gdb_cv_struct_lwp
=no
14140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_lwp" >&5
14143 $as_echo "$gdb_cv_struct_lwp" >&6; }
14144 if test $gdb_cv_struct_lwp = yes; then
14146 $as_echo "#define HAVE_STRUCT_LWP 1" >>confdefs.h
14150 # See if <machine/reg.h> degines `struct reg'.
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct reg in machine/reg.h" >&5
14152 $as_echo_n "checking for struct reg in machine/reg.h... " >&6; }
14153 if ${gdb_cv_struct_reg+:} false
; then :
14154 $as_echo_n "(cached) " >&6
14156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14158 #include <sys/types.h>
14159 #include <machine/reg.h>
14168 if ac_fn_c_try_compile
"$LINENO"; then :
14169 gdb_cv_struct_reg
=yes
14171 gdb_cv_struct_reg
=no
14173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_struct_reg" >&5
14176 $as_echo "$gdb_cv_struct_reg" >&6; }
14177 if test $gdb_cv_struct_reg = yes; then
14179 $as_echo "#define HAVE_STRUCT_REG 1" >>confdefs.h
14183 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
14184 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
14185 ac_fn_c_check_member
"$LINENO" "struct reg" "r_fs" "ac_cv_member_struct_reg_r_fs" "#include <sys/types.h>
14186 #include <machine/reg.h>
14188 if test "x$ac_cv_member_struct_reg_r_fs" = xyes
; then :
14190 cat >>confdefs.h
<<_ACEOF
14191 #define HAVE_STRUCT_REG_R_FS 1
14196 ac_fn_c_check_member
"$LINENO" "struct reg" "r_gs" "ac_cv_member_struct_reg_r_gs" "#include <sys/types.h>
14197 #include <machine/reg.h>
14199 if test "x$ac_cv_member_struct_reg_r_gs" = xyes
; then :
14201 cat >>confdefs.h
<<_ACEOF
14202 #define HAVE_STRUCT_REG_R_GS 1
14209 # See if <sys/user.h> supports the %fs_base and %gs_bas amd64 segment registers.
14210 # Older amd64 Linux's don't have the fs_base and gs_base members of
14211 # `struct user_regs_struct'.
14212 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>
14213 #include <sys/user.h>
14215 if test "x$ac_cv_member_struct_user_regs_struct_fs_base" = xyes
; then :
14217 cat >>confdefs.h
<<_ACEOF
14218 #define HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE 1
14223 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>
14224 #include <sys/user.h>
14226 if test "x$ac_cv_member_struct_user_regs_struct_gs_base" = xyes
; then :
14228 cat >>confdefs.h
<<_ACEOF
14229 #define HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE 1
14236 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETREGS" >&5
14238 $as_echo_n "checking for PTRACE_GETREGS... " >&6; }
14239 if ${gdb_cv_have_ptrace_getregs+:} false
; then :
14240 $as_echo_n "(cached) " >&6
14242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h. */
14244 #include <sys/ptrace.h>
14253 if ac_fn_c_try_compile
"$LINENO"; then :
14254 gdb_cv_have_ptrace_getregs
=yes
14256 gdb_cv_have_ptrace_getregs
=no
14258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getregs" >&5
14262 $as_echo "$gdb_cv_have_ptrace_getregs" >&6; }
14263 if test $gdb_cv_have_ptrace_getregs = yes; then
14265 $as_echo "#define HAVE_PTRACE_GETREGS 1" >>confdefs.h
14269 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTRACE_GETFPXREGS" >&5
14271 $as_echo_n "checking for PTRACE_GETFPXREGS... " >&6; }
14272 if ${gdb_cv_have_ptrace_getfpxregs+:} false
; then :
14273 $as_echo_n "(cached) " >&6
14275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 #include <sys/ptrace.h>
14286 if ac_fn_c_try_compile
"$LINENO"; then :
14287 gdb_cv_have_ptrace_getfpxregs
=yes
14289 gdb_cv_have_ptrace_getfpxregs
=no
14291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_ptrace_getfpxregs" >&5
14295 $as_echo "$gdb_cv_have_ptrace_getfpxregs" >&6; }
14296 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
14298 $as_echo "#define HAVE_PTRACE_GETFPXREGS 1" >>confdefs.h
14302 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETDBREGS" >&5
14304 $as_echo_n "checking for PT_GETDBREGS... " >&6; }
14305 if ${gdb_cv_have_pt_getdbregs+:} false
; then :
14306 $as_echo_n "(cached) " >&6
14308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14309 /* end confdefs.h. */
14310 #include <sys/types.h>
14311 #include <sys/ptrace.h>
14320 if ac_fn_c_try_compile
"$LINENO"; then :
14321 gdb_cv_have_pt_getdbregs
=yes
14323 gdb_cv_have_pt_getdbregs
=no
14325 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getdbregs" >&5
14329 $as_echo "$gdb_cv_have_pt_getdbregs" >&6; }
14330 if test $gdb_cv_have_pt_getdbregs = yes; then
14332 $as_echo "#define HAVE_PT_GETDBREGS 1" >>confdefs.h
14336 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PT_GETXMMREGS" >&5
14338 $as_echo_n "checking for PT_GETXMMREGS... " >&6; }
14339 if ${gdb_cv_have_pt_getxmmregs+:} false
; then :
14340 $as_echo_n "(cached) " >&6
14342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 #include <sys/types.h>
14345 #include <sys/ptrace.h>
14354 if ac_fn_c_try_compile
"$LINENO"; then :
14355 gdb_cv_have_pt_getxmmregs
=yes
14357 gdb_cv_have_pt_getxmmregs
=no
14359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_pt_getxmmregs" >&5
14363 $as_echo "$gdb_cv_have_pt_getxmmregs" >&6; }
14364 if test $gdb_cv_have_pt_getxmmregs = yes; then
14366 $as_echo "#define HAVE_PT_GETXMMREGS 1" >>confdefs.h
14370 # See if <sys/ptrace.h> supports LWP names on FreeBSD
14371 # Older FreeBSD versions don't have the pl_tdname member of
14372 # `struct ptrace_lwpinfo'.
14373 ac_fn_c_check_member
"$LINENO" "struct ptrace_lwpinfo" "pl_tdname" "ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" "#include <sys/ptrace.h>
14375 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_tdname" = xyes
; then :
14377 cat >>confdefs.h
<<_ACEOF
14378 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_TDNAME 1
14385 # See if <sys/ptrace.h> supports syscall fields on FreeBSD. The
14386 # pl_syscall_code member of `struct ptrace_lwpinfo' was added in
14388 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>
14390 if test "x$ac_cv_member_struct_ptrace_lwpinfo_pl_syscall_code" = xyes
; then :
14392 cat >>confdefs.h
<<_ACEOF
14393 #define HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE 1
14400 if test "$ac_cv_header_sys_procfs_h" = yes; then
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gregset_t in sys/procfs.h" >&5
14402 $as_echo_n "checking for gregset_t in sys/procfs.h... " >&6; }
14403 if ${bfd_cv_have_sys_procfs_type_gregset_t+:} false
; then :
14404 $as_echo_n "(cached) " >&6
14406 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14410 /* Needed for new procfs interface on sparc-solaris. */
14411 #define _STRUCTURED_PROC 1
14412 #include <sys/procfs.h>
14421 if ac_fn_c_try_compile
"$LINENO"; then :
14422 bfd_cv_have_sys_procfs_type_gregset_t
=yes
14424 bfd_cv_have_sys_procfs_type_gregset_t
=no
14427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14430 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
14432 $as_echo "#define HAVE_GREGSET_T 1" >>confdefs.h
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
14436 $as_echo "$bfd_cv_have_sys_procfs_type_gregset_t" >&6; }
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpregset_t in sys/procfs.h" >&5
14439 $as_echo_n "checking for fpregset_t in sys/procfs.h... " >&6; }
14440 if ${bfd_cv_have_sys_procfs_type_fpregset_t+:} false
; then :
14441 $as_echo_n "(cached) " >&6
14443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14447 /* Needed for new procfs interface on sparc-solaris. */
14448 #define _STRUCTURED_PROC 1
14449 #include <sys/procfs.h>
14458 if ac_fn_c_try_compile
"$LINENO"; then :
14459 bfd_cv_have_sys_procfs_type_fpregset_t
=yes
14461 bfd_cv_have_sys_procfs_type_fpregset_t
=no
14464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14467 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
14469 $as_echo "#define HAVE_FPREGSET_T 1" >>confdefs.h
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
14473 $as_echo "$bfd_cv_have_sys_procfs_type_fpregset_t" >&6; }
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset_t in sys/procfs.h" >&5
14476 $as_echo_n "checking for prgregset_t in sys/procfs.h... " >&6; }
14477 if ${bfd_cv_have_sys_procfs_type_prgregset_t+:} false
; then :
14478 $as_echo_n "(cached) " >&6
14480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14481 /* end confdefs.h. */
14484 /* Needed for new procfs interface on sparc-solaris. */
14485 #define _STRUCTURED_PROC 1
14486 #include <sys/procfs.h>
14495 if ac_fn_c_try_compile
"$LINENO"; then :
14496 bfd_cv_have_sys_procfs_type_prgregset_t
=yes
14498 bfd_cv_have_sys_procfs_type_prgregset_t
=no
14501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14504 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
14506 $as_echo "#define HAVE_PRGREGSET_T 1" >>confdefs.h
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
14510 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset_t" >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prfpregset_t in sys/procfs.h" >&5
14513 $as_echo_n "checking for prfpregset_t in sys/procfs.h... " >&6; }
14514 if ${bfd_cv_have_sys_procfs_type_prfpregset_t+:} false
; then :
14515 $as_echo_n "(cached) " >&6
14517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14518 /* end confdefs.h. */
14521 /* Needed for new procfs interface on sparc-solaris. */
14522 #define _STRUCTURED_PROC 1
14523 #include <sys/procfs.h>
14532 if ac_fn_c_try_compile
"$LINENO"; then :
14533 bfd_cv_have_sys_procfs_type_prfpregset_t
=yes
14535 bfd_cv_have_sys_procfs_type_prfpregset_t
=no
14538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14541 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
14543 $as_echo "#define HAVE_PRFPREGSET_T 1" >>confdefs.h
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
14547 $as_echo "$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6; }
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prgregset32_t in sys/procfs.h" >&5
14550 $as_echo_n "checking for prgregset32_t in sys/procfs.h... " >&6; }
14551 if ${bfd_cv_have_sys_procfs_type_prgregset32_t+:} false
; then :
14552 $as_echo_n "(cached) " >&6
14554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14555 /* end confdefs.h. */
14558 /* Needed for new procfs interface on sparc-solaris. */
14559 #define _STRUCTURED_PROC 1
14560 #include <sys/procfs.h>
14569 if ac_fn_c_try_compile
"$LINENO"; then :
14570 bfd_cv_have_sys_procfs_type_prgregset32_t
=yes
14572 bfd_cv_have_sys_procfs_type_prgregset32_t
=no
14575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14578 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
14580 $as_echo "#define HAVE_PRGREGSET32_T 1" >>confdefs.h
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
14584 $as_echo "$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6; }
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpid_t in sys/procfs.h" >&5
14587 $as_echo_n "checking for lwpid_t in sys/procfs.h... " >&6; }
14588 if ${bfd_cv_have_sys_procfs_type_lwpid_t+:} false
; then :
14589 $as_echo_n "(cached) " >&6
14591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14592 /* end confdefs.h. */
14595 /* Needed for new procfs interface on sparc-solaris. */
14596 #define _STRUCTURED_PROC 1
14597 #include <sys/procfs.h>
14606 if ac_fn_c_try_compile
"$LINENO"; then :
14607 bfd_cv_have_sys_procfs_type_lwpid_t
=yes
14609 bfd_cv_have_sys_procfs_type_lwpid_t
=no
14612 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14615 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
14617 $as_echo "#define HAVE_LWPID_T 1" >>confdefs.h
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
14621 $as_echo "$bfd_cv_have_sys_procfs_type_lwpid_t" >&6; }
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psaddr_t in sys/procfs.h" >&5
14624 $as_echo_n "checking for psaddr_t in sys/procfs.h... " >&6; }
14625 if ${bfd_cv_have_sys_procfs_type_psaddr_t+:} false
; then :
14626 $as_echo_n "(cached) " >&6
14628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14629 /* end confdefs.h. */
14632 /* Needed for new procfs interface on sparc-solaris. */
14633 #define _STRUCTURED_PROC 1
14634 #include <sys/procfs.h>
14643 if ac_fn_c_try_compile
"$LINENO"; then :
14644 bfd_cv_have_sys_procfs_type_psaddr_t
=yes
14646 bfd_cv_have_sys_procfs_type_psaddr_t
=no
14649 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14652 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
14654 $as_echo "#define HAVE_PSADDR_T 1" >>confdefs.h
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
14658 $as_echo "$bfd_cv_have_sys_procfs_type_psaddr_t" >&6; }
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_fpregset_t in sys/procfs.h" >&5
14661 $as_echo_n "checking for elf_fpregset_t in sys/procfs.h... " >&6; }
14662 if ${bfd_cv_have_sys_procfs_type_elf_fpregset_t+:} false
; then :
14663 $as_echo_n "(cached) " >&6
14665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14669 /* Needed for new procfs interface on sparc-solaris. */
14670 #define _STRUCTURED_PROC 1
14671 #include <sys/procfs.h>
14675 elf_fpregset_t avar
14680 if ac_fn_c_try_compile
"$LINENO"; then :
14681 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=yes
14683 bfd_cv_have_sys_procfs_type_elf_fpregset_t
=no
14686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14689 if test $bfd_cv_have_sys_procfs_type_elf_fpregset_t = yes; then
14691 $as_echo "#define HAVE_ELF_FPREGSET_T 1" >>confdefs.h
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&5
14695 $as_echo "$bfd_cv_have_sys_procfs_type_elf_fpregset_t" >&6; }
14699 # Check if the compiler supports the `long long' type.
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in compiler" >&5
14702 $as_echo_n "checking for long long support in compiler... " >&6; }
14703 if ${gdb_cv_c_long_long+:} false
; then :
14704 $as_echo_n "(cached) " >&6
14706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14707 /* end confdefs.h. */
14708 extern long long foo;
14712 switch (foo & 2) { case 0: return 1; }
14717 if ac_fn_c_try_compile
"$LINENO"; then :
14718 gdb_cv_c_long_long
=yes
14720 gdb_cv_c_long_long
=no
14722 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_long" >&5
14725 $as_echo "$gdb_cv_c_long_long" >&6; }
14726 if test $gdb_cv_c_long_long != yes; then
14727 # libdecnumber requires long long.
14728 as_fn_error $?
"Compiler must support long long for GDB." "$LINENO" 5
14731 # Check if the compiler and runtime support printing long longs.
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support in printf" >&5
14734 $as_echo_n "checking for long long support in printf... " >&6; }
14735 if ${gdb_cv_printf_has_long_long+:} false
; then :
14736 $as_echo_n "(cached) " >&6
14738 if test "$cross_compiling" = yes; then :
14739 gdb_cv_printf_has_long_long
=no
14741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h. */
14743 $ac_includes_default
14749 l = (l << 16) + 0x0123;
14750 l = (l << 16) + 0x4567;
14751 l = (l << 16) + 0x89ab;
14752 l = (l << 16) + 0xcdef;
14753 sprintf (buf, "0x%016llx", l);
14754 return (strcmp ("0x0123456789abcdef", buf));
14759 if ac_fn_c_try_run
"$LINENO"; then :
14760 gdb_cv_printf_has_long_long
=yes
14762 gdb_cv_printf_has_long_long
=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_printf_has_long_long" >&5
14770 $as_echo "$gdb_cv_printf_has_long_long" >&6; }
14771 if test $gdb_cv_printf_has_long_long = yes; then
14773 $as_echo "#define PRINTF_HAS_LONG_LONG 1" >>confdefs.h
14777 # Check if the compiler and runtime support printing decfloats.
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for decfloat support in printf" >&5
14780 $as_echo_n "checking for decfloat support in printf... " >&6; }
14781 if ${gdb_cv_printf_has_decfloat+:} false
; then :
14782 $as_echo_n "(cached) " >&6
14784 if test "$cross_compiling" = yes; then :
14785 gdb_cv_printf_has_decfloat
=no
14787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14788 /* end confdefs.h. */
14789 $ac_includes_default
14794 _Decimal32 d32 = 1.2345df;
14795 _Decimal64 d64 = 1.2345dd;
14796 _Decimal128 d128 = 1.2345dl;
14797 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
14798 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
14803 if ac_fn_c_try_run
"$LINENO"; then :
14804 gdb_cv_printf_has_decfloat
=yes
14806 gdb_cv_printf_has_decfloat
=no
14808 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14809 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_decfloat" >&5
14814 $as_echo "$gdb_cv_printf_has_decfloat" >&6; }
14815 if test $gdb_cv_printf_has_decfloat = yes; then
14817 $as_echo "#define PRINTF_HAS_DECFLOAT 1" >>confdefs.h
14821 # Check if the compiler supports the `long double' type. We can't use
14822 # AC_C_LONG_DOUBLE because that one does additional checks on the
14823 # constants defined in <float.h> that fail on some systems,
14824 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in compiler" >&5
14827 $as_echo_n "checking for long double support in compiler... " >&6; }
14828 if ${gdb_cv_c_long_double+:} false
; then :
14829 $as_echo_n "(cached) " >&6
14831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14835 if ac_fn_c_try_compile
"$LINENO"; then :
14836 gdb_cv_c_long_double
=yes
14838 gdb_cv_c_long_double
=no
14840 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_c_long_double" >&5
14843 $as_echo "$gdb_cv_c_long_double" >&6; }
14844 if test $gdb_cv_c_long_double = yes; then
14846 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14850 # Check if the compiler and runtime support printing long doubles.
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in printf" >&5
14853 $as_echo_n "checking for long double support in printf... " >&6; }
14854 if ${gdb_cv_printf_has_long_double+:} false
; then :
14855 $as_echo_n "(cached) " >&6
14857 if test "$cross_compiling" = yes; then :
14858 gdb_cv_printf_has_long_double
=no
14860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14862 $ac_includes_default
14867 long double f = 3.141592653;
14868 sprintf (buf, "%Lg", f);
14869 return (strncmp ("3.14159", buf, 7));
14874 if ac_fn_c_try_run
"$LINENO"; then :
14875 gdb_cv_printf_has_long_double
=yes
14877 gdb_cv_printf_has_long_double
=no
14879 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14880 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_printf_has_long_double" >&5
14885 $as_echo "$gdb_cv_printf_has_long_double" >&6; }
14886 if test $gdb_cv_printf_has_long_double = yes; then
14888 $as_echo "#define PRINTF_HAS_LONG_DOUBLE 1" >>confdefs.h
14892 # Check if the compiler and runtime support scanning long doubles.
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support in scanf" >&5
14895 $as_echo_n "checking for long double support in scanf... " >&6; }
14896 if ${gdb_cv_scanf_has_long_double+:} false
; then :
14897 $as_echo_n "(cached) " >&6
14899 if test "$cross_compiling" = yes; then :
14900 gdb_cv_scanf_has_long_double
=no
14902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14903 /* end confdefs.h. */
14908 char *buf = "3.141592653";
14910 sscanf (buf, "%Lg", &f);
14911 return !(f > 3.14159 && f < 3.14160);
14916 if ac_fn_c_try_run
"$LINENO"; then :
14917 gdb_cv_scanf_has_long_double
=yes
14919 gdb_cv_scanf_has_long_double
=no
14921 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14922 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_scanf_has_long_double" >&5
14927 $as_echo "$gdb_cv_scanf_has_long_double" >&6; }
14928 if test $gdb_cv_scanf_has_long_double = yes; then
14930 $as_echo "#define SCANF_HAS_LONG_DOUBLE 1" >>confdefs.h
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
14937 $as_echo_n "checking for -bbigtoc option... " >&6; }
14938 if ${gdb_cv_bigtoc+:} false
; then :
14939 $as_echo_n "(cached) " >&6
14942 SAVE_LDFLAGS
=$LDFLAGS
14945 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
14946 *) gdb_cv_bigtoc
=-bbigtoc ;;
14949 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
14950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14951 /* end confdefs.h. */
14961 if ac_fn_c_try_link
"$LINENO"; then :
14966 rm -f core conftest.err conftest.
$ac_objext \
14967 conftest
$ac_exeext conftest.
$ac_ext
14968 LDFLAGS
="${SAVE_LDFLAGS}"
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
14972 $as_echo "$gdb_cv_bigtoc" >&6; }
14973 CONFIG_LDFLAGS
="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the dynamic export flag" >&5
14978 $as_echo_n "checking for the dynamic export flag... " >&6; }
14980 if test "${gdb_native}" = yes; then
14981 # The dynamically loaded libthread_db needs access to symbols in the gdb
14982 # executable. Older GNU ld supports --export-dynamic but --dynamic-list
14983 # may not be supported there.
14984 old_LDFLAGS
="$LDFLAGS"
14985 # Older GNU ld supports --export-dynamic but --dynamic-list it does not.
14986 RDYNAMIC
="-Wl,--dynamic-list=${srcdir}/proc-service.list"
14987 LDFLAGS
="$LDFLAGS $RDYNAMIC"
14988 if test "${have_libpython}" = no
; then
14989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14990 /* end confdefs.h. */
15000 if ac_fn_c_try_link
"$LINENO"; then :
15003 rm -f core conftest.err conftest.
$ac_objext \
15004 conftest
$ac_exeext conftest.
$ac_ext
15006 # Workaround http://bugs.python.org/issue4434 where static
15007 # libpythonX.Y.a would get its symbols required for
15008 # pythonX.Y/lib-dynload/*.so modules hidden by -Wl,--dynamic-list.
15009 # Problem does not happen for the recommended libpythonX.Y.so linkage.
15011 # Note the workaround for Python
15012 # http://bugs.python.org/issue10112 earlier has removed
15013 # -export-dynamic from PYTHON_LIBS. That's exactly what we want
15014 # here too, as otherwise it'd make this -Wl,--dynamic-list test
15016 old_CFLAGS
="$CFLAGS"
15017 CFLAGS
="$CFLAGS $PYTHON_CFLAGS"
15019 LIBS
="$LIBS $PYTHON_LIBS"
15020 old_CPPFLAGS
="$CPPFLAGS"
15021 CPPFLAGS
="$CPPFLAGS $PYTHON_CPPFLAGS"
15022 if test "$cross_compiling" = yes; then :
15025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15027 #include "Python.h"
15033 err = PyRun_SimpleString ("import itertools\n");
15035 return err == 0 ? 0 : 1;
15040 if ac_fn_c_try_run
"$LINENO"; then :
15043 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15044 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15048 CFLAGS
="$old_CFLAGS"
15049 CPPFLAGS
="$old_CPPFLAGS"
15051 LDFLAGS
="$old_LDFLAGS"
15053 if $dynamic_list; then
15054 found
="-Wl,--dynamic-list"
15055 RDYNAMIC
='-Wl,--dynamic-list=$(srcdir)/proc-service.list'
15058 RDYNAMIC
="-rdynamic"
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found" >&5
15062 $as_echo "$found" >&6; }
15065 if test ${build} = ${host} -a ${host} = ${target} ; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AiX thread debugging library" >&5
15069 $as_echo_n "checking for AiX thread debugging library... " >&6; }
15070 if ${gdb_cv_have_aix_thread_debug+:} false
; then :
15071 $as_echo_n "(cached) " >&6
15073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15074 /* end confdefs.h. */
15075 #include <sys/pthdebug.h>
15079 #ifndef PTHDB_VERSION_3
15086 if ac_fn_c_try_compile
"$LINENO"; then :
15087 gdb_cv_have_aix_thread_debug
=yes
15089 gdb_cv_have_aix_thread_debug
=no
15091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_have_aix_thread_debug" >&5
15095 $as_echo "$gdb_cv_have_aix_thread_debug" >&6; }
15096 if test $gdb_cv_have_aix_thread_debug = yes; then
15097 CONFIG_SRCS
="${CONFIG_SRCS} aix-thread.c"
15098 CONFIG_OBS
="${CONFIG_OBS} aix-thread.o"
15099 LIBS
="$LIBS -lpthdebug"
15101 # Older versions of AIX do not provide the declaration for
15102 # the getthrds function (it appears that it was introduced
15104 ac_fn_c_check_decl
"$LINENO" "getthrds" "ac_cv_have_decl_getthrds" "#include <procinfo.h>
15106 if test "x$ac_cv_have_decl_getthrds" = xyes
; then :
15112 cat >>confdefs.h
<<_ACEOF
15113 #define HAVE_DECL_GETTHRDS $ac_have_decl
15122 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTALLOC" >&5
15124 $as_echo_n "checking whether <thread_db.h> has TD_NOTALLOC... " >&6; }
15125 if ${gdb_cv_thread_db_h_has_td_notalloc+:} false
; then :
15126 $as_echo_n "(cached) " >&6
15128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15129 /* end confdefs.h. */
15130 #include <thread_db.h>
15134 int i = TD_NOTALLOC;
15139 if ac_fn_c_try_compile
"$LINENO"; then :
15140 gdb_cv_thread_db_h_has_td_notalloc
=yes
15142 gdb_cv_thread_db_h_has_td_notalloc
=no
15145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
15149 $as_echo "$gdb_cv_thread_db_h_has_td_notalloc" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_VERSION" >&5
15151 $as_echo_n "checking whether <thread_db.h> has TD_VERSION... " >&6; }
15152 if ${gdb_cv_thread_db_h_has_td_version+:} false
; then :
15153 $as_echo_n "(cached) " >&6
15155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15157 #include <thread_db.h>
15161 int i = TD_VERSION;
15166 if ac_fn_c_try_compile
"$LINENO"; then :
15167 gdb_cv_thread_db_h_has_td_version
=yes
15169 gdb_cv_thread_db_h_has_td_version
=no
15172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_version" >&5
15176 $as_echo "$gdb_cv_thread_db_h_has_td_version" >&6; }
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <thread_db.h> has TD_NOTLS" >&5
15178 $as_echo_n "checking whether <thread_db.h> has TD_NOTLS... " >&6; }
15179 if ${gdb_cv_thread_db_h_has_td_notls+:} false
; then :
15180 $as_echo_n "(cached) " >&6
15182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 #include <thread_db.h>
15193 if ac_fn_c_try_compile
"$LINENO"; then :
15194 gdb_cv_thread_db_h_has_td_notls
=yes
15196 gdb_cv_thread_db_h_has_td_notls
=no
15199 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_thread_db_h_has_td_notls" >&5
15203 $as_echo "$gdb_cv_thread_db_h_has_td_notls" >&6; }
15205 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
15207 $as_echo "#define THREAD_DB_HAS_TD_NOTALLOC 1" >>confdefs.h
15210 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
15212 $as_echo "#define THREAD_DB_HAS_TD_VERSION 1" >>confdefs.h
15215 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
15217 $as_echo "#define THREAD_DB_HAS_TD_NOTLS 1" >>confdefs.h
15221 ac_fn_c_check_decl
"$LINENO" "ADDR_NO_RANDOMIZE" "ac_cv_have_decl_ADDR_NO_RANDOMIZE" "#include <sys/personality.h>
15223 if test "x$ac_cv_have_decl_ADDR_NO_RANDOMIZE" = xyes
; then :
15229 cat >>confdefs.h
<<_ACEOF
15230 #define HAVE_DECL_ADDR_NO_RANDOMIZE $ac_have_decl
15234 if test "$cross_compiling" = yes; then :
15235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15236 /* end confdefs.h. */
15237 #include <sys/personality.h>
15242 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15243 # define ADDR_NO_RANDOMIZE 0x0040000
15245 /* Test the flag could be set and stays set. */
15246 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15247 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15253 if ac_fn_c_try_link
"$LINENO"; then :
15254 have_personality
=true
15256 have_personality
=false
15258 rm -f core conftest.err conftest.
$ac_objext \
15259 conftest
$ac_exeext conftest.
$ac_ext
15261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15262 /* end confdefs.h. */
15263 #include <sys/personality.h>
15268 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
15269 # define ADDR_NO_RANDOMIZE 0x0040000
15271 /* Test the flag could be set and stays set. */
15272 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
15273 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
15279 if ac_fn_c_try_run
"$LINENO"; then :
15280 have_personality
=true
15282 have_personality
=false
15284 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
15285 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15288 if $have_personality
15291 $as_echo "#define HAVE_PERSONALITY 1" >>confdefs.h
15304 cat >>confdefs.h
<<_ACEOF
15305 #define GDBINIT "$gdbinit"
15310 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR,
15311 # except that the argument to --with-sysroot is optional.
15312 # --with-sysroot (or --with-sysroot=yes) sets the default sysroot path.
15313 if test "x$with_sysroot" = xyes
; then
15314 with_sysroot
="${exec_prefix}/${target_alias}/sys-root"
15317 # Check whether --with-sysroot was given.
15318 if test "${with_sysroot+set}" = set; then :
15319 withval
=$with_sysroot; TARGET_SYSTEM_ROOT
=$withval
15321 TARGET_SYSTEM_ROOT
=
15325 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15326 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15327 ac_define_dir
=`eval echo $TARGET_SYSTEM_ROOT`
15328 ac_define_dir
=`eval echo $ac_define_dir`
15330 cat >>confdefs.h
<<_ACEOF
15331 #define TARGET_SYSTEM_ROOT "$ac_define_dir"
15337 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15338 if test "x$prefix" = xNONE
; then
15339 test_prefix
=/usr
/local
15341 test_prefix
=$prefix
15344 test_prefix
=$exec_prefix
15347 case ${ac_define_dir} in
15348 "${test_prefix}"|
"${test_prefix}/"*|\
15349 '${exec_prefix}'|
'${exec_prefix}/'*)
15354 cat >>confdefs.h
<<_ACEOF
15355 #define TARGET_SYSTEM_ROOT_RELOCATABLE $value
15362 # Check whether --with-system-gdbinit was given.
15363 if test "${with_system_gdbinit+set}" = set; then :
15364 withval
=$with_system_gdbinit;
15365 SYSTEM_GDBINIT
=$withval
15371 test "x$prefix" = xNONE
&& prefix
="$ac_default_prefix"
15372 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15373 ac_define_dir
=`eval echo $SYSTEM_GDBINIT`
15374 ac_define_dir
=`eval echo $ac_define_dir`
15376 cat >>confdefs.h
<<_ACEOF
15377 #define SYSTEM_GDBINIT "$ac_define_dir"
15383 if test "x$exec_prefix" = xNONE ||
test "x$exec_prefix" = 'x${prefix}'; then
15384 if test "x$prefix" = xNONE
; then
15385 test_prefix
=/usr
/local
15387 test_prefix
=$prefix
15390 test_prefix
=$exec_prefix
15393 case ${ac_define_dir} in
15394 "${test_prefix}"|
"${test_prefix}/"*|\
15395 '${exec_prefix}'|
'${exec_prefix}/'*)
15400 cat >>confdefs.h
<<_ACEOF
15401 #define SYSTEM_GDBINIT_RELOCATABLE $value
15408 # Check whether --enable-werror was given.
15409 if test "${enable_werror+set}" = set; then :
15410 enableval
=$enable_werror; case "${enableval}" in
15411 yes | y
) ERROR_ON_WARNING
="yes" ;;
15412 no | n
) ERROR_ON_WARNING
="no" ;;
15413 *) as_fn_error $?
"bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
15418 # Enable -Werror by default when using gcc. Turn it off for releases.
15419 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" && $development; then
15420 ERROR_ON_WARNING
=yes
15424 if test "${ERROR_ON_WARNING}" = yes ; then
15425 WERROR_CFLAGS
="-Werror"
15428 # The options we'll try to enable.
15429 build_warnings
="-Wall -Wpointer-arith \
15430 -Wno-unused -Wunused-value -Wunused-variable -Wunused-function \
15431 -Wno-switch -Wno-char-subscripts \
15432 -Wempty-body -Wunused-but-set-parameter -Wunused-but-set-variable \
15433 -Wno-sign-compare -Wno-error=maybe-uninitialized \
15434 -Wno-mismatched-tags \
15435 -Wno-error=deprecated-register \
15436 -Wsuggest-override \
15437 -Wimplicit-fallthrough=3 \
15438 -Wduplicated-cond \
15443 # Enable -Wno-format by default when using gcc on mingw since many
15444 # GCC versions complain about %I64.
15445 build_warnings
="$build_warnings -Wno-format" ;;
15447 # Solaris 11.4 <python2.7/ceval.h> uses #pragma no_inline that GCC
15448 # doesn't understand.
15449 build_warnings
="$build_warnings -Wno-unknown-pragmas"
15450 # Solaris 11 <unistd.h> marks vfork deprecated.
15451 build_warnings
="$build_warnings -Wno-deprecated-declarations" ;;
15453 # Note that gcc requires -Wformat for -Wformat-nonliteral to work,
15454 # but there's a special case for this below.
15455 build_warnings
="$build_warnings -Wformat-nonliteral" ;;
15458 # Check whether --enable-build-warnings was given.
15459 if test "${enable_build_warnings+set}" = set; then :
15460 enableval
=$enable_build_warnings; case "${enableval}" in
15462 no
) build_warnings
="-w";;
15463 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15464 build_warnings
="${build_warnings} ${t}";;
15465 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15466 build_warnings
="${t} ${build_warnings}";;
15467 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15469 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15470 echo "Setting compiler warning flags = $build_warnings" 6>&1
15473 # Check whether --enable-gdb-build-warnings was given.
15474 if test "${enable_gdb_build_warnings+set}" = set; then :
15475 enableval
=$enable_gdb_build_warnings; case "${enableval}" in
15477 no
) build_warnings
="-w";;
15478 ,*) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15479 build_warnings
="${build_warnings} ${t}";;
15480 *,) t
=`echo "${enableval}" | sed -e "s/,/ /g"`
15481 build_warnings
="${t} ${build_warnings}";;
15482 *) build_warnings
=`echo "${enableval}" | sed -e "s/,/ /g"`;;
15484 if test x
"$silent" != x
"yes" && test x
"$build_warnings" != x
""; then
15485 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
15489 # The set of warnings supported by a C++ compiler is not the same as
15490 # of the C compiler.
15492 ac_cpp
='$CXXCPP $CPPFLAGS'
15493 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15494 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15495 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15499 if test "x${build_warnings}" != x
-a "x$GCC" = xyes
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
15502 $as_echo_n "checking compiler warning flags... " >&6; }
15503 # Separate out the -Werror flag as some files just cannot be
15504 # compiled with it enabled.
15505 for w
in ${build_warnings}; do
15506 # GCC does not complain about -Wno-unknown-warning. Invert
15507 # and test -Wunknown-warning instead.
15510 wtest
=`echo $w | sed 's/-Wno-/-W/g'` ;;
15511 -Wformat-nonliteral)
15512 # gcc requires -Wformat before -Wformat-nonliteral
15513 # will work, so stick them together.
15522 -Werr*) WERROR_CFLAGS
=-Werror ;;
15524 # Check whether GCC accepts it.
15525 saved_CFLAGS
="$CFLAGS"
15526 CFLAGS
="$CFLAGS -Werror $wtest"
15527 saved_CXXFLAGS
="$CXXFLAGS"
15528 CXXFLAGS
="$CXXFLAGS -Werror $wtest"
15529 if test "x$w" = "x-Wunused-variable"; then
15530 # Check for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38958,
15531 # fixed in GCC 4.9. This test is derived from the gdb
15532 # source code that triggered this bug in GCC.
15533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535 struct scoped_restore_base {};
15536 struct scoped_restore_tmpl : public scoped_restore_base {
15537 ~scoped_restore_tmpl() {}
15542 const scoped_restore_base &b = scoped_restore_tmpl();
15547 if ac_fn_cxx_try_compile
"$LINENO"; then :
15548 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15550 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15553 /* end confdefs.h. */
15563 if ac_fn_cxx_try_compile
"$LINENO"; then :
15564 WARN_CFLAGS
="${WARN_CFLAGS} $w"
15566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15568 CFLAGS
="$saved_CFLAGS"
15569 CXXFLAGS
="$saved_CXXFLAGS"
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
15573 $as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
15579 ac_cpp='$CPP $CPPFLAGS'
15580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15586 # Check whether --enable-ubsan was given.
15587 if test "${enable_ubsan+set}" = set; then :
15588 enableval=$enable_ubsan;
15593 if test "x
$enable_ubsan" = xauto; then
15594 if $development; then
15599 ac_cpp='$CXXCPP $CPPFLAGS'
15600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15604 if test "x
$enable_ubsan" = xyes; then
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
-fsanitize=undefined is accepted
" >&5
15606 $as_echo_n "checking whether
-fsanitize=undefined is accepted...
" >&6; }
15607 saved_CXXFLAGS="$CXXFLAGS"
15608 CXXFLAGS="$CXXFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15620 if ac_fn_cxx_try_link "$LINENO"; then :
15625 rm -f core conftest.err conftest.$ac_objext \
15626 conftest$ac_exeext conftest.$ac_ext
15627 CXXFLAGS="$saved_CXXFLAGS"
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $enable_ubsan" >&5
15629 $as_echo "$enable_ubsan" >&6; }
15630 if test "x
$enable_ubsan" = xyes; then
15631 WARN_CFLAGS="$WARN_CFLAGS -fsanitize=undefined
-fno-sanitize-recover=undefined
"
15632 CONFIG_LDFLAGS="$CONFIG_LDFLAGS -fsanitize=undefined
"
15636 ac_cpp='$CPP $CPPFLAGS'
15637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15643 # In the Cygwin environment, we need some additional flags.
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for cygwin
" >&5
15645 $as_echo_n "checking
for cygwin...
" >&6; }
15646 if ${gdb_cv_os_cygwin+:} false; then :
15647 $as_echo_n "(cached
) " >&6
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15652 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
15656 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15657 $EGREP "^lose$
" >/dev/null 2>&1; then :
15658 gdb_cv_os_cygwin=yes
15660 gdb_cv_os_cygwin=no
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $gdb_cv_os_cygwin" >&5
15666 $as_echo "$gdb_cv_os_cygwin" >&6; }
15669 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o
"
15671 *go32* ) SER_HARDWIRE=ser-go32.o ;;
15672 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
15673 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o
" ;;
15674 *) SER_HARDWIRE="$SER_HARDWIRE ser-uds.o
" ;;
15678 # libreadline needs libuser32.a in a cygwin environment
15680 if test x$gdb_cv_os_cygwin = xyes; then
15681 WIN32LIBS="-luser32"
15682 case "${target}" in
15683 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
15688 # The ser-tcp.c module requires sockets.
15692 $as_echo "#define USE_WIN32API 1" >>confdefs.h
15694 WIN32LIBS
="$WIN32LIBS -lws2_32"
15699 # Add ELF support to GDB, but only if BFD includes ELF support.
15702 OLD_LDFLAGS
=$LDFLAGS
15704 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15705 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15706 # always want our bfd.
15707 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15708 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15709 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15710 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15711 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF support in BFD" >&5
15713 $as_echo_n "checking for ELF support in BFD... " >&6; }
15714 if ${gdb_cv_var_elf+:} false
; then :
15715 $as_echo_n "(cached) " >&6
15717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15718 /* end confdefs.h. */
15719 #include <stdlib.h>
15721 #include "elf-bfd.h"
15726 return bfd_get_elf_phdr_upper_bound (NULL);
15731 if ac_fn_c_try_link
"$LINENO"; then :
15736 rm -f core conftest.err conftest.
$ac_objext \
15737 conftest
$ac_exeext conftest.
$ac_ext
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_elf" >&5
15740 $as_echo "$gdb_cv_var_elf" >&6; }
15742 LDFLAGS
=$OLD_LDFLAGS
15744 if test $gdb_cv_var_elf = yes; then
15745 CONFIG_OBS
="$CONFIG_OBS elfread.o stap-probe.o dtrace-probe.o"
15747 $as_echo "#define HAVE_ELF 1" >>confdefs.h
15749 # -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
15750 if test "$plugins" = "yes"; then
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15752 $as_echo_n "checking for library containing dlopen... " >&6; }
15753 if ${ac_cv_search_dlopen+:} false
; then :
15754 $as_echo_n "(cached) " >&6
15756 ac_func_search_save_LIBS
=$LIBS
15757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15760 /* Override any GCC internal prototype to avoid an error.
15761 Use char because int might match the return type of a GCC
15762 builtin and then its argument prototype would still apply. */
15775 for ac_lib
in '' dl
; do
15776 if test -z "$ac_lib"; then
15777 ac_res
="none required"
15780 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15782 if ac_fn_c_try_link
"$LINENO"; then :
15783 ac_cv_search_dlopen
=$ac_res
15785 rm -f core conftest.err conftest.
$ac_objext \
15787 if ${ac_cv_search_dlopen+:} false
; then :
15791 if ${ac_cv_search_dlopen+:} false
; then :
15794 ac_cv_search_dlopen
=no
15796 rm conftest.
$ac_ext
15797 LIBS
=$ac_func_search_save_LIBS
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15800 $as_echo "$ac_cv_search_dlopen" >&6; }
15801 ac_res
=$ac_cv_search_dlopen
15802 if test "$ac_res" != no
; then :
15803 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15810 # Add macho support to GDB, but only if BFD includes it.
15813 OLD_LDFLAGS
=$LDFLAGS
15815 # Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS
15816 # points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We
15817 # always want our bfd.
15818 CFLAGS
="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS"
15819 ZLIBDIR
=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'`
15820 LDFLAGS
="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS"
15821 intl
=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
15822 LIBS
="-lbfd -liberty -lz $intl $LIBS"
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mach-O support in BFD" >&5
15824 $as_echo_n "checking for Mach-O support in BFD... " >&6; }
15825 if ${gdb_cv_var_macho+:} false
; then :
15826 $as_echo_n "(cached) " >&6
15828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15829 /* end confdefs.h. */
15830 #include <stdlib.h>
15832 #include "mach-o.h"
15837 return bfd_mach_o_lookup_command (NULL, 0, NULL);
15842 if ac_fn_c_try_link
"$LINENO"; then :
15843 gdb_cv_var_macho
=yes
15845 gdb_cv_var_macho
=no
15847 rm -f core conftest.err conftest.
$ac_objext \
15848 conftest
$ac_exeext conftest.
$ac_ext
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_var_macho" >&5
15851 $as_echo "$gdb_cv_var_macho" >&6; }
15853 LDFLAGS
=$OLD_LDFLAGS
15855 if test $gdb_cv_var_macho = yes; then
15856 CONFIG_OBS
="$CONFIG_OBS machoread.o"
15859 # Add any host-specific objects to GDB.
15860 CONFIG_OBS
="${CONFIG_OBS} ${gdb_host_obs}"
15862 # If building on ELF, look for lzma support for embedded compressed debug info.
15863 if test $gdb_cv_var_elf = yes; then
15865 # Check whether --with-lzma was given.
15866 if test "${with_lzma+set}" = set; then :
15867 withval
=$with_lzma;
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use lzma" >&5
15873 $as_echo_n "checking whether to use lzma... " >&6; }
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_lzma" >&5
15875 $as_echo "$with_lzma" >&6; }
15877 if test "${with_lzma}" != no
; then
15888 acl_save_prefix
="$prefix"
15889 prefix
="$acl_final_prefix"
15890 acl_save_exec_prefix
="$exec_prefix"
15891 exec_prefix
="$acl_final_exec_prefix"
15893 eval additional_includedir
=\"$includedir\"
15894 eval additional_libdir
=\"$libdir\"
15896 exec_prefix
="$acl_save_exec_prefix"
15897 prefix
="$acl_save_prefix"
15900 # Check whether --with-liblzma-prefix was given.
15901 if test "${with_liblzma_prefix+set}" = set; then :
15902 withval
=$with_liblzma_prefix;
15903 if test "X$withval" = "Xno"; then
15906 if test "X$withval" = "X"; then
15908 acl_save_prefix
="$prefix"
15909 prefix
="$acl_final_prefix"
15910 acl_save_exec_prefix
="$exec_prefix"
15911 exec_prefix
="$acl_final_exec_prefix"
15913 eval additional_includedir
=\"$includedir\"
15914 eval additional_libdir
=\"$libdir\"
15916 exec_prefix
="$acl_save_exec_prefix"
15917 prefix
="$acl_save_prefix"
15920 additional_includedir
="$withval/include"
15921 additional_libdir
="$withval/lib"
15932 names_already_handled
=
15933 names_next_round
='lzma '
15934 while test -n "$names_next_round"; do
15935 names_this_round
="$names_next_round"
15937 for name
in $names_this_round; do
15939 for n
in $names_already_handled; do
15940 if test "$n" = "$name"; then
15941 already_handled
=yes
15945 if test -z "$already_handled"; then
15946 names_already_handled
="$names_already_handled $name"
15947 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15948 eval value
=\"\
$HAVE_LIB$uppername\"
15949 if test -n "$value"; then
15950 if test "$value" = yes; then
15951 eval value
=\"\
$LIB$uppername\"
15952 test -z "$value" || LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$value"
15953 eval value
=\"\
$LTLIB$uppername\"
15954 test -z "$value" || LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$value"
15963 if test $use_additional = yes; then
15964 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15965 found_dir
="$additional_libdir"
15966 found_so
="$additional_libdir/lib$name.$shlibext"
15967 if test -f "$additional_libdir/lib$name.la"; then
15968 found_la
="$additional_libdir/lib$name.la"
15971 if test -f "$additional_libdir/lib$name.$libext"; then
15972 found_dir
="$additional_libdir"
15973 found_a
="$additional_libdir/lib$name.$libext"
15974 if test -f "$additional_libdir/lib$name.la"; then
15975 found_la
="$additional_libdir/lib$name.la"
15980 if test "X$found_dir" = "X"; then
15981 for x
in $LDFLAGS $LTLIBLZMA; do
15983 acl_save_prefix
="$prefix"
15984 prefix
="$acl_final_prefix"
15985 acl_save_exec_prefix
="$exec_prefix"
15986 exec_prefix
="$acl_final_exec_prefix"
15988 exec_prefix
="$acl_save_exec_prefix"
15989 prefix
="$acl_save_prefix"
15993 dir
=`echo "X$x" | sed -e 's/^X-L//'`
15994 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15996 found_so
="$dir/lib$name.$shlibext"
15997 if test -f "$dir/lib$name.la"; then
15998 found_la
="$dir/lib$name.la"
16001 if test -f "$dir/lib$name.$libext"; then
16003 found_a
="$dir/lib$name.$libext"
16004 if test -f "$dir/lib$name.la"; then
16005 found_la
="$dir/lib$name.la"
16011 if test "X$found_dir" != "X"; then
16016 if test "X$found_dir" != "X"; then
16017 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$found_dir -l$name"
16018 if test "X$found_so" != "X"; then
16019 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
16020 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16023 for x
in $ltrpathdirs; do
16024 if test "X$x" = "X$found_dir"; then
16029 if test -z "$haveit"; then
16030 ltrpathdirs
="$ltrpathdirs $found_dir"
16032 if test "$hardcode_direct" = yes; then
16033 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16035 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
16036 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16038 for x
in $rpathdirs; do
16039 if test "X$x" = "X$found_dir"; then
16044 if test -z "$haveit"; then
16045 rpathdirs
="$rpathdirs $found_dir"
16049 for x
in $LDFLAGS $LIBLZMA; do
16051 acl_save_prefix
="$prefix"
16052 prefix
="$acl_final_prefix"
16053 acl_save_exec_prefix
="$exec_prefix"
16054 exec_prefix
="$acl_final_exec_prefix"
16056 exec_prefix
="$acl_save_exec_prefix"
16057 prefix
="$acl_save_prefix"
16059 if test "X$x" = "X-L$found_dir"; then
16064 if test -z "$haveit"; then
16065 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir"
16067 if test "$hardcode_minus_L" != no
; then
16068 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_so"
16070 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16076 if test "X$found_a" != "X"; then
16077 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$found_a"
16079 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$found_dir -l$name"
16082 additional_includedir
=
16083 case "$found_dir" in
16085 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16086 additional_includedir
="$basedir/include"
16089 if test "X$additional_includedir" != "X"; then
16090 if test "X$additional_includedir" != "X/usr/include"; then
16092 if test "X$additional_includedir" = "X/usr/local/include"; then
16093 if test -n "$GCC"; then
16095 linux
*) haveit
=yes;;
16099 if test -z "$haveit"; then
16100 for x
in $CPPFLAGS $INCLZMA; do
16102 acl_save_prefix
="$prefix"
16103 prefix
="$acl_final_prefix"
16104 acl_save_exec_prefix
="$exec_prefix"
16105 exec_prefix
="$acl_final_exec_prefix"
16107 exec_prefix
="$acl_save_exec_prefix"
16108 prefix
="$acl_save_prefix"
16110 if test "X$x" = "X-I$additional_includedir"; then
16115 if test -z "$haveit"; then
16116 if test -d "$additional_includedir"; then
16117 INCLZMA
="${INCLZMA}${INCLZMA:+ }-I$additional_includedir"
16123 if test -n "$found_la"; then
16124 save_libdir
="$libdir"
16125 case "$found_la" in
16126 */* |
*\\*) .
"$found_la" ;;
16127 *) .
"./$found_la" ;;
16129 libdir
="$save_libdir"
16130 for dep
in $dependency_libs; do
16133 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
16134 if test "X$additional_libdir" != "X/usr/lib"; then
16136 if test "X$additional_libdir" = "X/usr/local/lib"; then
16137 if test -n "$GCC"; then
16139 linux
*) haveit
=yes;;
16143 if test -z "$haveit"; then
16145 for x
in $LDFLAGS $LIBLZMA; do
16147 acl_save_prefix
="$prefix"
16148 prefix
="$acl_final_prefix"
16149 acl_save_exec_prefix
="$exec_prefix"
16150 exec_prefix
="$acl_final_exec_prefix"
16152 exec_prefix
="$acl_save_exec_prefix"
16153 prefix
="$acl_save_prefix"
16155 if test "X$x" = "X-L$additional_libdir"; then
16160 if test -z "$haveit"; then
16161 if test -d "$additional_libdir"; then
16162 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-L$additional_libdir"
16166 for x
in $LDFLAGS $LTLIBLZMA; do
16168 acl_save_prefix
="$prefix"
16169 prefix
="$acl_final_prefix"
16170 acl_save_exec_prefix
="$exec_prefix"
16171 exec_prefix
="$acl_final_exec_prefix"
16173 exec_prefix
="$acl_save_exec_prefix"
16174 prefix
="$acl_save_prefix"
16176 if test "X$x" = "X-L$additional_libdir"; then
16181 if test -z "$haveit"; then
16182 if test -d "$additional_libdir"; then
16183 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-L$additional_libdir"
16190 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
16191 if test "$enable_rpath" != no
; then
16193 for x
in $rpathdirs; do
16194 if test "X$x" = "X$dir"; then
16199 if test -z "$haveit"; then
16200 rpathdirs
="$rpathdirs $dir"
16203 for x
in $ltrpathdirs; do
16204 if test "X$x" = "X$dir"; then
16209 if test -z "$haveit"; then
16210 ltrpathdirs
="$ltrpathdirs $dir"
16215 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16218 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16221 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$dep"
16222 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }$dep"
16228 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }-l$name"
16229 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-l$name"
16235 if test "X$rpathdirs" != "X"; then
16236 if test -n "$hardcode_libdir_separator"; then
16238 for found_dir
in $rpathdirs; do
16239 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16241 acl_save_libdir
="$libdir"
16243 eval flag
=\"$hardcode_libdir_flag_spec\"
16244 libdir
="$acl_save_libdir"
16245 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16247 for found_dir
in $rpathdirs; do
16248 acl_save_libdir
="$libdir"
16249 libdir
="$found_dir"
16250 eval flag
=\"$hardcode_libdir_flag_spec\"
16251 libdir
="$acl_save_libdir"
16252 LIBLZMA
="${LIBLZMA}${LIBLZMA:+ }$flag"
16256 if test "X$ltrpathdirs" != "X"; then
16257 for found_dir
in $ltrpathdirs; do
16258 LTLIBLZMA
="${LTLIBLZMA}${LTLIBLZMA:+ }-R$found_dir"
16263 ac_save_CPPFLAGS
="$CPPFLAGS"
16265 for element
in $INCLZMA; do
16267 for x
in $CPPFLAGS; do
16269 acl_save_prefix
="$prefix"
16270 prefix
="$acl_final_prefix"
16271 acl_save_exec_prefix
="$exec_prefix"
16272 exec_prefix
="$acl_final_exec_prefix"
16274 exec_prefix
="$acl_save_exec_prefix"
16275 prefix
="$acl_save_prefix"
16277 if test "X$x" = "X$element"; then
16282 if test -z "$haveit"; then
16283 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
16289 $as_echo_n "checking for liblzma... " >&6; }
16290 if ${ac_cv_liblzma+:} false
; then :
16291 $as_echo_n "(cached) " >&6
16294 ac_save_LIBS
="$LIBS"
16295 LIBS
="$LIBS $LIBLZMA"
16296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16302 lzma_index_iter iter;
16303 lzma_index_iter_init (&iter, 0);
16304 lzma_mf_is_supported (LZMA_MF_HC3);
16309 if ac_fn_c_try_link
"$LINENO"; then :
16314 rm -f core conftest.err conftest.
$ac_objext \
16315 conftest
$ac_exeext conftest.
$ac_ext
16316 LIBS
="$ac_save_LIBS"
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_liblzma" >&5
16320 $as_echo "$ac_cv_liblzma" >&6; }
16321 if test "$ac_cv_liblzma" = yes; then
16324 $as_echo "#define HAVE_LIBLZMA 1" >>confdefs.h
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with liblzma" >&5
16327 $as_echo_n "checking how to link with liblzma... " >&6; }
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLZMA" >&5
16329 $as_echo "$LIBLZMA" >&6; }
16332 CPPFLAGS
="$ac_save_CPPFLAGS"
16342 if test "$HAVE_LIBLZMA" != yes; then
16343 if test "$with_lzma" = yes; then
16344 as_fn_error $?
"missing liblzma for --with-lzma" "$LINENO" 5
16350 LIBGUI
="../libgui/src/libgui.a"
16351 GUI_CFLAGS_X
="-I${srcdir}/../libgui/src"
16360 *-*-cygwin* |
*-*-mingw* )
16369 if test "${enable_gdbtk}" = "yes"; then
16371 # Gdbtk must have an absolute path to srcdir in order to run
16372 # properly when not installed.
16375 GDBTK_SRC_DIR
=`pwd`
16380 # Ok, lets find the tcl configuration
16381 # First, look for one uninstalled.
16382 # the alternative search directory is invoked by --with-tcl
16385 if test x
"${no_tcl}" = x
; then
16386 # we reset no_tcl in case something fails here
16389 # Check whether --with-tcl was given.
16390 if test "${with_tcl+set}" = set; then :
16391 withval
=$with_tcl; with_tclconfig
=${withval}
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
16395 $as_echo_n "checking for Tcl configuration... " >&6; }
16396 if ${ac_cv_c_tclconfig+:} false
; then :
16397 $as_echo_n "(cached) " >&6
16401 # First check to see if --with-tcl was specified.
16403 *-*-cygwin*) platDir
="win" ;;
16404 *) platDir
="unix" ;;
16406 if test x
"${with_tclconfig}" != x
; then
16407 if test -f "${with_tclconfig}/tclConfig.sh" ; then
16408 ac_cv_c_tclconfig
=`(cd ${with_tclconfig}; pwd)`
16410 as_fn_error $?
"${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
16414 # then check for a private Tcl installation
16415 if test x
"${ac_cv_c_tclconfig}" = x
; then
16418 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16419 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
16420 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
16422 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16423 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
16424 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
16426 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16427 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
16428 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
16429 if test -f "$i/$platDir/tclConfig.sh" ; then
16430 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16436 # on Darwin, check in Framework installation locations
16437 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tclconfig}" = x
; then
16438 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16439 `ls -d /Library/Frameworks 2>/dev/null` \
16440 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16441 `ls -d /System/Library/Frameworks 2>/dev/null` \
16443 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
16444 ac_cv_c_tclconfig
=`(cd $i/Tcl.framework; pwd)`
16450 # check in a few common install locations
16451 if test x
"${ac_cv_c_tclconfig}" = x
; then
16452 for i
in `ls -d ${libdir} 2>/dev/null` \
16453 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16454 `ls -d ${prefix}/lib 2>/dev/null` \
16455 `ls -d /usr/local/lib 2>/dev/null` \
16456 `ls -d /usr/contrib/lib 2>/dev/null` \
16457 `ls -d /usr/lib 2>/dev/null` \
16459 if test -f "$i/tclConfig.sh" ; then
16460 ac_cv_c_tclconfig
=`(cd $i; pwd)`
16466 # check in a few other private locations
16467 if test x
"${ac_cv_c_tclconfig}" = x
; then
16470 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
16471 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
16472 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
16473 if test -f "$i/$platDir/tclConfig.sh" ; then
16474 ac_cv_c_tclconfig
=`(cd $i/$platDir; pwd)`
16483 if test x
"${ac_cv_c_tclconfig}" = x
; then
16484 TCL_BIN_DIR
="# no Tcl configs found"
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
16486 $as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
16489 TCL_BIN_DIR
=${ac_cv_c_tclconfig}
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
16491 $as_echo "found ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16496 # If $no_tk is nonempty, then we can't do Tk, and there is no
16497 # point to doing Tcl.
16500 # Ok, lets find the tk configuration
16501 # First, look for one uninstalled.
16502 # the alternative search directory is invoked by --with-tk
16505 if test x
"${no_tk}" = x
; then
16506 # we reset no_tk in case something fails here
16509 # Check whether --with-tk was given.
16510 if test "${with_tk+set}" = set; then :
16511 withval
=$with_tk; with_tkconfig
=${withval}
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk configuration" >&5
16515 $as_echo_n "checking for Tk configuration... " >&6; }
16516 if ${ac_cv_c_tkconfig+:} false
; then :
16517 $as_echo_n "(cached) " >&6
16521 # First check to see if --with-tkconfig was specified.
16522 if test x
"${with_tkconfig}" != x
; then
16523 if test -f "${with_tkconfig}/tkConfig.sh" ; then
16524 ac_cv_c_tkconfig
=`(cd ${with_tkconfig}; pwd)`
16526 as_fn_error $?
"${with_tkconfig} directory doesn't contain tkConfig.sh" "$LINENO" 5
16530 # then check for a private Tk library
16532 *-*-cygwin*) platDir
="win" ;;
16533 *) platDir
="unix" ;;
16535 if test x
"${ac_cv_c_tkconfig}" = x
; then
16538 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16539 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
16540 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
16542 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16543 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
16544 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
16546 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16547 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
16548 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
16549 if test -f "$i/$platDir/tkConfig.sh" ; then
16550 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16556 # on Darwin, check in Framework installation locations
16557 if test "`uname -s`" = "Darwin" -a x
"${ac_cv_c_tkconfig}" = x
; then
16558 for i
in `ls -d ~/Library/Frameworks 2>/dev/null` \
16559 `ls -d /Library/Frameworks 2>/dev/null` \
16560 `ls -d /Network/Library/Frameworks 2>/dev/null` \
16561 `ls -d /System/Library/Frameworks 2>/dev/null` \
16563 if test -f "$i/Tk.framework/tkConfig.sh" ; then
16564 ac_cv_c_tkconfig
=`(cd $i/Tk.framework; pwd)`
16570 # check in a few common install locations
16571 if test x
"${ac_cv_c_tkconfig}" = x
; then
16572 for i
in `ls -d ${libdir} 2>/dev/null` \
16573 `ls -d ${exec_prefix}/lib 2>/dev/null` \
16574 `ls -d ${prefix}/lib 2>/dev/null` \
16575 `ls -d /usr/local/lib 2>/dev/null` \
16576 `ls -d /usr/contrib/lib 2>/dev/null` \
16577 `ls -d /usr/lib 2>/dev/null` \
16579 if test -f "$i/tkConfig.sh" ; then
16580 ac_cv_c_tkconfig
=`(cd $i; pwd)`
16585 # check in a few other private locations
16586 if test x
"${ac_cv_c_tkconfig}" = x
; then
16589 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
16590 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
16591 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
16592 if test -f "$i/$platDir/tkConfig.sh" ; then
16593 ac_cv_c_tkconfig
=`(cd $i/$platDir; pwd)`
16602 if test x
"${ac_cv_c_tkconfig}" = x
; then
16603 TK_BIN_DIR
="# no Tk configs found"
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tk configuration definitions" >&5
16605 $as_echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
16608 TK_BIN_DIR
=${ac_cv_c_tkconfig}
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
16610 $as_echo "found ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16615 if test -z "${no_tcl}" -a -z "${no_tk}"; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
16618 $as_echo_n "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... " >&6; }
16620 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16622 $as_echo "loading" >&6; }
16623 .
${TCL_BIN_DIR}/tclConfig.sh
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
16626 $as_echo "could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6; }
16629 # eval is required to do the TCL_DBGX substitution
16630 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
16631 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
16633 # If the TCL_BIN_DIR is the build directory (not the install directory),
16634 # then set the common variable name to the value of the build variables.
16635 # For example, the variable TCL_LIB_SPEC will be set to the value
16636 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
16637 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
16638 # installed and uninstalled version of Tcl.
16639 if test -f "${TCL_BIN_DIR}/Makefile" ; then
16640 TCL_LIB_SPEC
=${TCL_BUILD_LIB_SPEC}
16641 TCL_STUB_LIB_SPEC
=${TCL_BUILD_STUB_LIB_SPEC}
16642 TCL_STUB_LIB_PATH
=${TCL_BUILD_STUB_LIB_PATH}
16643 elif test "`uname -s`" = "Darwin"; then
16644 # If Tcl was built as a framework, attempt to use the libraries
16645 # from the framework at the given location so that linking works
16646 # against Tcl.framework installed in an arbitrary location.
16647 case ${TCL_DEFS} in
16649 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
16650 for i
in "`cd ${TCL_BIN_DIR}; pwd`" \
16651 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
16652 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
16653 TCL_LIB_SPEC
="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
16658 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
16659 TCL_STUB_LIB_SPEC
="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
16660 TCL_STUB_LIB_PATH
="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
16666 # eval is required to do the TCL_DBGX substitution
16667 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
16668 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
16669 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
16670 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
16686 # Check for in-tree tcl
16693 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
16697 # Find Tcl private headers
16698 if test x
"${intree}" = xno
; then
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl private headers" >&5
16701 $as_echo_n "checking for Tcl private headers... " >&6; }
16703 dir
=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
16704 if test -f ${dir}/tclInt.h
; then
16708 if test x
"${private_dir}" = x
; then
16709 as_fn_error $?
"could not find private Tcl headers" "$LINENO" 5
16711 TCL_PRIVATE_INCLUDE
="-I${private_dir}"
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16713 $as_echo "${private_dir}" >&6; }
16716 TCL_INCLUDE
="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
16717 TCL_LIBRARY
="${TCL_LIB_SPEC}"
16720 # If building tcl in the same src tree, private headers
16721 # are not needed, but we need to be sure to use the right
16723 TCL_INCLUDE
="-I${TCL_SRC_DIR}/generic"
16724 TCL_LIBRARY
="${TCL_BUILD_LIB_SPEC}"
16725 TCL_DEPS
="../tcl/${configdir}${TCL_LIB_FILE}"
16732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
16733 $as_echo_n "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... " >&6; }
16735 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
16737 $as_echo "loading" >&6; }
16738 .
${TK_BIN_DIR}/tkConfig.sh
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
16741 $as_echo "could not find ${TK_BIN_DIR}/tkConfig.sh" >&6; }
16744 # eval is required to do the TK_DBGX substitution
16745 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
16746 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
16748 # If the TK_BIN_DIR is the build directory (not the install directory),
16749 # then set the common variable name to the value of the build variables.
16750 # For example, the variable TK_LIB_SPEC will be set to the value
16751 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
16752 # instead of TK_BUILD_LIB_SPEC since it will work with both an
16753 # installed and uninstalled version of Tcl.
16754 if test -f "${TK_BIN_DIR}/Makefile" ; then
16755 TK_LIB_SPEC
=${TK_BUILD_LIB_SPEC}
16756 TK_STUB_LIB_SPEC
=${TK_BUILD_STUB_LIB_SPEC}
16757 TK_STUB_LIB_PATH
=${TK_BUILD_STUB_LIB_PATH}
16758 elif test "`uname -s`" = "Darwin"; then
16759 # If Tk was built as a framework, attempt to use the libraries
16760 # from the framework at the given location so that linking works
16761 # against Tk.framework installed in an arbitrary location.
16764 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
16765 for i
in "`cd ${TK_BIN_DIR}; pwd`" \
16766 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
16767 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
16768 TK_LIB_SPEC
="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
16773 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
16774 TK_STUB_LIB_SPEC
="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
16775 TK_STUB_LIB_PATH
="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
16781 # eval is required to do the TK_DBGX substitution
16782 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
16783 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
16784 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
16785 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
16800 # Check for in-tree Tk
16802 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
16806 # Find Tk private headers
16807 if test x
"${intree}" = xno
; then
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tk private headers" >&5
16810 $as_echo_n "checking for Tk private headers... " >&6; }
16812 dir
=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
16813 if test -f ${dir}/tkInt.h
; then
16817 if test x
"${private_dir}" = x
; then
16818 as_fn_error $?
"could not find Tk private headers" "$LINENO" 5
16820 TK_PRIVATE_INCLUDE
="-I${private_dir}"
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${private_dir}" >&5
16822 $as_echo "${private_dir}" >&6; }
16825 TK_INCLUDE
="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
16826 TK_LIBRARY
=${TK_LIB_SPEC}
16829 TK_INCLUDE
="-I${TK_SRC_DIR}/generic"
16830 TK_LIBRARY
="${TK_BUILD_LIB_SPEC}"
16831 TK_DEPS
="../tk/${configdir}/${TK_LIB_FILE}"
16838 ENABLE_CFLAGS
="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
16840 # Include some libraries that Tcl and Tk want.
16841 TCL_LIBS
='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
16842 # Yes, the ordering seems wrong here. But it isn't.
16843 # TK_LIBS is the list of libraries that need to be linked
16844 # after Tcl/Tk. Note that this isn't put into LIBS. If it
16845 # were in LIBS then any link tests after this point would
16846 # try to include things like `$(LIBGUI)', which wouldn't work.
16847 GDBTKLIBS
="${TCL_LIBS} ${TK_LIBS}"
16849 CONFIG_OBS
="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
16850 CONFIG_DEPS
="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
16851 CONFIG_SRCS
="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
16852 CONFIG_ALL
="${CONFIG_ALL} all-gdbtk"
16853 CONFIG_CLEAN
="${CONFIG_CLEAN} clean-gdbtk"
16854 CONFIG_INSTALL
="${CONFIG_INSTALL} install-gdbtk"
16855 CONFIG_UNINSTALL
="${CONFIG_UNINSTALL} uninstall-gdbtk"
16857 if test x
$gdb_cv_os_cygwin = xyes
; then
16858 WIN32LIBS
="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
16859 WIN32LDAPP
="-Wl,--subsystem,console"
16860 CONFIG_OBS
="${CONFIG_OBS} gdbres.o"
16863 subdirs
="$subdirs gdbtk"
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16876 $as_echo_n "checking for X... " >&6; }
16879 # Check whether --with-x was given.
16880 if test "${with_x+set}" = set; then :
16884 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16885 if test "x$with_x" = xno
; then
16886 # The user explicitly disabled X.
16889 case $x_includes,$x_libraries in #(
16890 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
16891 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
16892 $as_echo_n "(cached) " >&6
16894 # One or both of the vars are not set, and there is no cached value.
16895 ac_x_includes
=no ac_x_libraries
=no
16896 rm -f -r conftest.dir
16897 if mkdir conftest.dir
; then
16899 cat >Imakefile
<<'_ACEOF'
16901 @echo incroot='${INCROOT}'
16903 @echo usrlibdir='${USRLIBDIR}'
16905 @echo libdir='${LIBDIR}'
16907 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
16908 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16909 for ac_var
in incroot usrlibdir libdir
; do
16910 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16912 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16913 for ac_extension
in a so sl dylib la dll
; do
16914 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16915 test -f "$ac_im_libdir/libX11.$ac_extension"; then
16916 ac_im_usrlibdir
=$ac_im_libdir; break
16919 # Screen out bogus values from the imake configuration. They are
16920 # bogus both because they are the default anyway, and because
16921 # using them would break gcc on systems where it needs fixed includes.
16922 case $ac_im_incroot in
16923 /usr
/include
) ac_x_includes
= ;;
16924 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
16926 case $ac_im_usrlibdir in
16927 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
16928 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
16932 rm -f -r conftest.dir
16935 # Standard set of common directories for X headers.
16936 # Check X11 before X11Rn because it is often a symlink to the current release.
16950 /usr/local/X11/include
16951 /usr/local/X11R7/include
16952 /usr/local/X11R6/include
16953 /usr/local/X11R5/include
16954 /usr/local/X11R4/include
16956 /usr/local/include/X11
16957 /usr/local/include/X11R7
16958 /usr/local/include/X11R6
16959 /usr/local/include/X11R5
16960 /usr/local/include/X11R4
16964 /usr/XFree86/include/X11
16968 /usr/unsupported/include
16969 /usr/athena/include
16970 /usr/local/x11r5/include
16971 /usr/lpp/Xamples/include
16973 /usr/openwin/include
16974 /usr/openwin/share/include'
16976 if test "$ac_x_includes" = no
; then
16977 # Guess where to find include files, by looking for Xlib.h.
16978 # First, try using that file with no special directory specified.
16979 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981 #include <X11/Xlib.h>
16983 if ac_fn_c_try_cpp
"$LINENO"; then :
16984 # We can compile using X headers with no special include directory.
16987 for ac_dir
in $ac_x_header_dirs; do
16988 if test -r "$ac_dir/X11/Xlib.h"; then
16989 ac_x_includes
=$ac_dir
16994 rm -f conftest.err conftest.i conftest.
$ac_ext
16995 fi # $ac_x_includes = no
16997 if test "$ac_x_libraries" = no
; then
16998 # Check for the libraries.
16999 # See if we find them without any special options.
17000 # Don't add to $LIBS permanently.
17003 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17004 /* end confdefs.h. */
17005 #include <X11/Xlib.h>
17014 if ac_fn_c_try_link
"$LINENO"; then :
17016 # We can link X programs with no special library path.
17020 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17022 # Don't even attempt the hair of trying to link an X program!
17023 for ac_extension
in a so sl dylib la dll
; do
17024 if test -r "$ac_dir/libX11.$ac_extension"; then
17025 ac_x_libraries
=$ac_dir
17031 rm -f core conftest.err conftest.
$ac_objext \
17032 conftest
$ac_exeext conftest.
$ac_ext
17033 fi # $ac_x_libraries = no
17035 case $ac_x_includes,$ac_x_libraries in #(
17036 no
,* |
*,no |
*\'*)
17037 # Didn't find X, or a directory has "'" in its name.
17038 ac_cv_have_x
="have_x=no";; #(
17040 # Record where we found X for the cache.
17041 ac_cv_have_x
="have_x=yes\
17042 ac_x_includes='$ac_x_includes'\
17043 ac_x_libraries='$ac_x_libraries'"
17049 eval "$ac_cv_have_x"
17052 if test "$have_x" != yes; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17054 $as_echo "$have_x" >&6; }
17057 # If each of the values was on the command line, it overrides each guess.
17058 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
17059 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
17060 # Update the cache value to reflect the command line values.
17061 ac_cv_have_x
="have_x=yes\
17062 ac_x_includes='$x_includes'\
17063 ac_x_libraries='$x_libraries'"
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17065 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
17069 # Unlike the sim directory, whether a simulator is linked is controlled by
17070 # presence of a gdb_sim definition in the target configure.tgt entry.
17071 # This code just checks for a few cases where we'd like to ignore those
17072 # definitions, even when they're present in the '.mt' file. These cases
17073 # are when --disable-sim is specified, or if the simulator directory is
17074 # not part of the source tree.
17076 # Check whether --enable-sim was given.
17077 if test "${enable_sim+set}" = set; then :
17078 enableval
=$enable_sim; echo "enable_sim = $enable_sim";
17079 echo "enableval = ${enableval}";
17080 case "${enableval}" in
17081 yes) ignore_sim
=false
;;
17082 no
) ignore_sim
=true
;;
17083 *) ignore_sim
=false
;;
17090 if test ! -d "${srcdir}/../sim"; then
17096 if test "${ignore_sim}" = "false"; then
17097 if test x
"${gdb_sim}" != x
; then
17099 SIM_OBS
="remote-sim.o"
17101 $as_echo "#define WITH_SIM 1" >>confdefs.h
17104 # Some tdep code should only be compiled in when the ppc sim is
17105 # built. PR sim/13418.
17109 $as_echo "#define WITH_PPC_SIM 1" >>confdefs.h
17129 # List of host floatformats.
17131 cat >>confdefs.h
<<_ACEOF
17132 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
17136 cat >>confdefs.h
<<_ACEOF
17137 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
17141 cat >>confdefs.h
<<_ACEOF
17142 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
17146 # target_subdir is used by the testsuite to find the target libraries.
17148 if test "${host}" != "${target}"; then
17149 target_subdir
="${target_alias}/"
17153 # Import nat definitions.
17154 nat_makefile_frag
=/dev
/null
17155 if test "${gdb_native}" = "yes"; then
17156 .
${srcdir}/configure.nat
17157 nativefile
=$NAT_FILE
17170 if test x
"${gdb_osabi}" != x
; then
17172 cat >>confdefs.h
<<_ACEOF
17173 #define GDB_OSABI_DEFAULT $gdb_osabi
17178 # Check whether --enable-gdbserver was given.
17179 if test "${enable_gdbserver+set}" = set; then :
17180 enableval
=$enable_gdbserver; case "${enableval}" in
17182 *) as_fn_error $?
"bad value ${enableval} for --enable-gdbserver option" "$LINENO" 5 ;;
17185 enable_gdbserver
=auto
17189 # We only build gdbserver automatically in a native configuration, and
17190 # only if the user did not explicitly disable its build.
17191 if test "$gdb_native" = "yes" -a "$enable_gdbserver" != "no"; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gdbserver is supported on this host" >&5
17193 $as_echo_n "checking whether gdbserver is supported on this host... " >&6; }
17194 if test "x$build_gdbserver" = xyes
; then
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17196 $as_echo "yes" >&6; }
17197 subdirs
="$subdirs gdbserver"
17199 gdbserver_build_enabled
=yes
17201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17202 $as_echo "no" >&6; }
17206 # If the user explicitly request the gdbserver to be built, verify that
17207 # we were in fact able to enable it.
17208 if test "$enable_gdbserver" = "yes" -a "$gdbserver_build_enabled" != "yes"; then
17209 as_fn_error $?
"Automatic gdbserver build is not supported for this configuration" "$LINENO" 5
17212 # Check for babeltrace and babeltrace-ctf
17214 # Check whether --with-babeltrace was given.
17215 if test "${with_babeltrace+set}" = set; then :
17216 withval
=$with_babeltrace;
17218 with_babeltrace
=auto
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use babeltrace" >&5
17222 $as_echo_n "checking whether to use babeltrace... " >&6; }
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_babeltrace" >&5
17224 $as_echo "$with_babeltrace" >&6; }
17226 if test "x$with_babeltrace" = "xno"; then
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&5
17228 $as_echo "$as_me: WARNING: babletrace support disabled; GDB is unable to read CTF data." >&2;}
17230 # Append -Werror to CFLAGS so that configure can catch the warning
17231 # "assignment from incompatible pointer type", which is related to
17232 # the babeltrace change from 1.0.3 to 1.1.0. Babeltrace 1.1.0 works
17233 # in GDB, while babeltrace 1.0.3 is broken.
17234 # AC_LIB_HAVE_LINKFLAGS may modify CPPFLAGS in it, so it should be
17235 # safe to save and restore CFLAGS here.
17236 saved_CFLAGS
=$CFLAGS
17237 CFLAGS
="$CFLAGS -Werror"
17248 acl_save_prefix
="$prefix"
17249 prefix
="$acl_final_prefix"
17250 acl_save_exec_prefix
="$exec_prefix"
17251 exec_prefix
="$acl_final_exec_prefix"
17253 eval additional_includedir
=\"$includedir\"
17254 eval additional_libdir
=\"$libdir\"
17256 exec_prefix
="$acl_save_exec_prefix"
17257 prefix
="$acl_save_prefix"
17260 # Check whether --with-libbabeltrace-prefix was given.
17261 if test "${with_libbabeltrace_prefix+set}" = set; then :
17262 withval
=$with_libbabeltrace_prefix;
17263 if test "X$withval" = "Xno"; then
17266 if test "X$withval" = "X"; then
17268 acl_save_prefix
="$prefix"
17269 prefix
="$acl_final_prefix"
17270 acl_save_exec_prefix
="$exec_prefix"
17271 exec_prefix
="$acl_final_exec_prefix"
17273 eval additional_includedir
=\"$includedir\"
17274 eval additional_libdir
=\"$libdir\"
17276 exec_prefix
="$acl_save_exec_prefix"
17277 prefix
="$acl_save_prefix"
17280 additional_includedir
="$withval/include"
17281 additional_libdir
="$withval/lib"
17292 names_already_handled
=
17293 names_next_round
='babeltrace babeltrace-ctf'
17294 while test -n "$names_next_round"; do
17295 names_this_round
="$names_next_round"
17297 for name
in $names_this_round; do
17299 for n
in $names_already_handled; do
17300 if test "$n" = "$name"; then
17301 already_handled
=yes
17305 if test -z "$already_handled"; then
17306 names_already_handled
="$names_already_handled $name"
17307 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17308 eval value
=\"\
$HAVE_LIB$uppername\"
17309 if test -n "$value"; then
17310 if test "$value" = yes; then
17311 eval value
=\"\
$LIB$uppername\"
17312 test -z "$value" || LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$value"
17313 eval value
=\"\
$LTLIB$uppername\"
17314 test -z "$value" || LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$value"
17323 if test $use_additional = yes; then
17324 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17325 found_dir
="$additional_libdir"
17326 found_so
="$additional_libdir/lib$name.$shlibext"
17327 if test -f "$additional_libdir/lib$name.la"; then
17328 found_la
="$additional_libdir/lib$name.la"
17331 if test -f "$additional_libdir/lib$name.$libext"; then
17332 found_dir
="$additional_libdir"
17333 found_a
="$additional_libdir/lib$name.$libext"
17334 if test -f "$additional_libdir/lib$name.la"; then
17335 found_la
="$additional_libdir/lib$name.la"
17340 if test "X$found_dir" = "X"; then
17341 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17343 acl_save_prefix
="$prefix"
17344 prefix
="$acl_final_prefix"
17345 acl_save_exec_prefix
="$exec_prefix"
17346 exec_prefix
="$acl_final_exec_prefix"
17348 exec_prefix
="$acl_save_exec_prefix"
17349 prefix
="$acl_save_prefix"
17353 dir
=`echo "X$x" | sed -e 's/^X-L//'`
17354 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17356 found_so
="$dir/lib$name.$shlibext"
17357 if test -f "$dir/lib$name.la"; then
17358 found_la
="$dir/lib$name.la"
17361 if test -f "$dir/lib$name.$libext"; then
17363 found_a
="$dir/lib$name.$libext"
17364 if test -f "$dir/lib$name.la"; then
17365 found_la
="$dir/lib$name.la"
17371 if test "X$found_dir" != "X"; then
17376 if test "X$found_dir" != "X"; then
17377 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$found_dir -l$name"
17378 if test "X$found_so" != "X"; then
17379 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
17380 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17383 for x
in $ltrpathdirs; do
17384 if test "X$x" = "X$found_dir"; then
17389 if test -z "$haveit"; then
17390 ltrpathdirs
="$ltrpathdirs $found_dir"
17392 if test "$hardcode_direct" = yes; then
17393 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17395 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
17396 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17398 for x
in $rpathdirs; do
17399 if test "X$x" = "X$found_dir"; then
17404 if test -z "$haveit"; then
17405 rpathdirs
="$rpathdirs $found_dir"
17409 for x
in $LDFLAGS $LIBBABELTRACE; do
17411 acl_save_prefix
="$prefix"
17412 prefix
="$acl_final_prefix"
17413 acl_save_exec_prefix
="$exec_prefix"
17414 exec_prefix
="$acl_final_exec_prefix"
17416 exec_prefix
="$acl_save_exec_prefix"
17417 prefix
="$acl_save_prefix"
17419 if test "X$x" = "X-L$found_dir"; then
17424 if test -z "$haveit"; then
17425 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir"
17427 if test "$hardcode_minus_L" != no
; then
17428 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_so"
17430 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17436 if test "X$found_a" != "X"; then
17437 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$found_a"
17439 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$found_dir -l$name"
17442 additional_includedir
=
17443 case "$found_dir" in
17445 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17446 additional_includedir
="$basedir/include"
17449 if test "X$additional_includedir" != "X"; then
17450 if test "X$additional_includedir" != "X/usr/include"; then
17452 if test "X$additional_includedir" = "X/usr/local/include"; then
17453 if test -n "$GCC"; then
17455 linux
*) haveit
=yes;;
17459 if test -z "$haveit"; then
17460 for x
in $CPPFLAGS $INCBABELTRACE; do
17462 acl_save_prefix
="$prefix"
17463 prefix
="$acl_final_prefix"
17464 acl_save_exec_prefix
="$exec_prefix"
17465 exec_prefix
="$acl_final_exec_prefix"
17467 exec_prefix
="$acl_save_exec_prefix"
17468 prefix
="$acl_save_prefix"
17470 if test "X$x" = "X-I$additional_includedir"; then
17475 if test -z "$haveit"; then
17476 if test -d "$additional_includedir"; then
17477 INCBABELTRACE
="${INCBABELTRACE}${INCBABELTRACE:+ }-I$additional_includedir"
17483 if test -n "$found_la"; then
17484 save_libdir
="$libdir"
17485 case "$found_la" in
17486 */* |
*\\*) .
"$found_la" ;;
17487 *) .
"./$found_la" ;;
17489 libdir
="$save_libdir"
17490 for dep
in $dependency_libs; do
17493 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
17494 if test "X$additional_libdir" != "X/usr/lib"; then
17496 if test "X$additional_libdir" = "X/usr/local/lib"; then
17497 if test -n "$GCC"; then
17499 linux
*) haveit
=yes;;
17503 if test -z "$haveit"; then
17505 for x
in $LDFLAGS $LIBBABELTRACE; do
17507 acl_save_prefix
="$prefix"
17508 prefix
="$acl_final_prefix"
17509 acl_save_exec_prefix
="$exec_prefix"
17510 exec_prefix
="$acl_final_exec_prefix"
17512 exec_prefix
="$acl_save_exec_prefix"
17513 prefix
="$acl_save_prefix"
17515 if test "X$x" = "X-L$additional_libdir"; then
17520 if test -z "$haveit"; then
17521 if test -d "$additional_libdir"; then
17522 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-L$additional_libdir"
17526 for x
in $LDFLAGS $LTLIBBABELTRACE; do
17528 acl_save_prefix
="$prefix"
17529 prefix
="$acl_final_prefix"
17530 acl_save_exec_prefix
="$exec_prefix"
17531 exec_prefix
="$acl_final_exec_prefix"
17533 exec_prefix
="$acl_save_exec_prefix"
17534 prefix
="$acl_save_prefix"
17536 if test "X$x" = "X-L$additional_libdir"; then
17541 if test -z "$haveit"; then
17542 if test -d "$additional_libdir"; then
17543 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-L$additional_libdir"
17550 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
17551 if test "$enable_rpath" != no
; then
17553 for x
in $rpathdirs; do
17554 if test "X$x" = "X$dir"; then
17559 if test -z "$haveit"; then
17560 rpathdirs
="$rpathdirs $dir"
17563 for x
in $ltrpathdirs; do
17564 if test "X$x" = "X$dir"; then
17569 if test -z "$haveit"; then
17570 ltrpathdirs
="$ltrpathdirs $dir"
17575 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17578 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17581 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$dep"
17582 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }$dep"
17588 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }-l$name"
17589 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-l$name"
17595 if test "X$rpathdirs" != "X"; then
17596 if test -n "$hardcode_libdir_separator"; then
17598 for found_dir
in $rpathdirs; do
17599 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17601 acl_save_libdir
="$libdir"
17603 eval flag
=\"$hardcode_libdir_flag_spec\"
17604 libdir
="$acl_save_libdir"
17605 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17607 for found_dir
in $rpathdirs; do
17608 acl_save_libdir
="$libdir"
17609 libdir
="$found_dir"
17610 eval flag
=\"$hardcode_libdir_flag_spec\"
17611 libdir
="$acl_save_libdir"
17612 LIBBABELTRACE
="${LIBBABELTRACE}${LIBBABELTRACE:+ }$flag"
17616 if test "X$ltrpathdirs" != "X"; then
17617 for found_dir
in $ltrpathdirs; do
17618 LTLIBBABELTRACE
="${LTLIBBABELTRACE}${LTLIBBABELTRACE:+ }-R$found_dir"
17623 ac_save_CPPFLAGS
="$CPPFLAGS"
17625 for element
in $INCBABELTRACE; do
17627 for x
in $CPPFLAGS; do
17629 acl_save_prefix
="$prefix"
17630 prefix
="$acl_final_prefix"
17631 acl_save_exec_prefix
="$exec_prefix"
17632 exec_prefix
="$acl_final_exec_prefix"
17634 exec_prefix
="$acl_save_exec_prefix"
17635 prefix
="$acl_save_prefix"
17637 if test "X$x" = "X$element"; then
17642 if test -z "$haveit"; then
17643 CPPFLAGS
="${CPPFLAGS}${CPPFLAGS:+ }$element"
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbabeltrace" >&5
17649 $as_echo_n "checking for libbabeltrace... " >&6; }
17650 if ${ac_cv_libbabeltrace+:} false
; then :
17651 $as_echo_n "(cached) " >&6
17654 ac_save_LIBS
="$LIBS"
17655 LIBS
="$LIBS $LIBBABELTRACE"
17656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17658 #include <babeltrace/babeltrace.h>
17659 #include <babeltrace/ctf/events.h>
17660 #include <babeltrace/ctf/iterator.h>
17664 struct bt_iter_pos *pos = bt_iter_get_pos (bt_ctf_get_iter (NULL));
17665 struct bt_ctf_event *event = NULL;
17666 const struct bt_definition *scope;
17668 pos->type = BT_SEEK_BEGIN;
17669 bt_iter_set_pos (bt_ctf_get_iter (NULL), pos);
17670 scope = bt_ctf_get_top_level_scope (event,
17671 BT_STREAM_EVENT_HEADER);
17672 bt_ctf_get_uint64 (bt_ctf_get_field (event, scope, "id"));
17678 if ac_fn_c_try_link
"$LINENO"; then :
17679 ac_cv_libbabeltrace
=yes
17681 ac_cv_libbabeltrace
=no
17683 rm -f core conftest.err conftest.
$ac_objext \
17684 conftest
$ac_exeext conftest.
$ac_ext
17685 LIBS
="$ac_save_LIBS"
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libbabeltrace" >&5
17689 $as_echo "$ac_cv_libbabeltrace" >&6; }
17690 if test "$ac_cv_libbabeltrace" = yes; then
17691 HAVE_LIBBABELTRACE
=yes
17693 $as_echo "#define HAVE_LIBBABELTRACE 1" >>confdefs.h
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libbabeltrace" >&5
17696 $as_echo_n "checking how to link with libbabeltrace... " >&6; }
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBBABELTRACE" >&5
17698 $as_echo "$LIBBABELTRACE" >&6; }
17700 HAVE_LIBBABELTRACE
=no
17701 CPPFLAGS
="$ac_save_CPPFLAGS"
17711 CFLAGS
=$saved_CFLAGS
17713 if test "$HAVE_LIBBABELTRACE" != yes; then
17714 if test "$with_babeltrace" = yes; then
17715 as_fn_error $?
"babeltrace is missing or unusable" "$LINENO" 5
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&5
17718 $as_echo "$as_me: WARNING: babeltrace is missing or unusable; GDB is unable to read CTF data." >&2;}
17723 # If nativefile (NAT_FILE) is not set in configure.nat, we link to an
17730 if test "${nativefile}" != ""; then
17731 case "${nativefile}" in
17732 nm-
*.h
) GDB_NM_FILE
="config/${gdb_host_cpu}/${nativefile}" ;;
17733 * ) GDB_NM_FILE
="${nativefile}"
17735 files
="${files} ${GDB_NM_FILE}"
17736 links
="${links} nm.h"
17738 cat >>confdefs.h
<<_ACEOF
17739 #define GDB_NM_FILE "${GDB_NM_FILE}"
17745 for ac_prog
in xsltproc
17747 # Extract the first word of "$ac_prog", so it can be a program name with args.
17748 set dummy
$ac_prog; ac_word
=$2
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17750 $as_echo_n "checking for $ac_word... " >&6; }
17751 if ${ac_cv_path_XSLTPROC+:} false
; then :
17752 $as_echo_n "(cached) " >&6
17756 ac_cv_path_XSLTPROC
="$XSLTPROC" # Let the user override the test with a path.
17759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17760 for as_dir
in $PATH
17763 test -z "$as_dir" && as_dir
=.
17764 for ac_exec_ext
in '' $ac_executable_extensions; do
17765 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
17766 ac_cv_path_XSLTPROC
="$as_dir/$ac_word$ac_exec_ext"
17767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17777 XSLTPROC
=$ac_cv_path_XSLTPROC
17778 if test -n "$XSLTPROC"; then
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
17780 $as_echo "$XSLTPROC" >&6; }
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17783 $as_echo "no" >&6; }
17787 test -n "$XSLTPROC" && break
17789 test -n "$XSLTPROC" || XSLTPROC
="missing"
17791 if test "x$USE_MAINTAINER_MODE" = xyes
; then
17792 if test "${XSLTPROC}" = missing
; then
17793 as_fn_error $?
"unable to find xsltproc. maintainer-mode requires xsltproc." "$LINENO" 5
17798 ac_sources
="$files"
17800 while test -n "$ac_sources"; do
17801 set $ac_dests; ac_dest
=$1; shift; ac_dests
=$
*
17802 set $ac_sources; ac_source
=$1; shift; ac_sources
=$
*
17803 ac_config_links_1
="$ac_config_links_1 $ac_dest:$ac_source"
17805 ac_config_links
="$ac_config_links $ac_config_links_1"
17811 $as_echo "#define GDB_DEFAULT_HOST_CHARSET \"UTF-8\"" >>confdefs.h
17815 # Check whether we will enable the inclusion of unit tests when
17818 # The default value of this option changes depending whether we're on
17819 # development mode (in which case it's "true") or not (in which case
17821 # Check whether --enable-unit-tests was given.
17822 if test "${enable_unit_tests+set}" = set; then :
17823 enableval
=$enable_unit_tests; case "${enableval}" in
17824 yes) enable_unittests
=true
;;
17825 no
) enable_unittests
=false
;;
17826 *) as_fn_error $?
"bad value ${enableval} for --{enable,disable}-unit-tests option" "$LINENO" 5 ;;
17829 enable_unittests
=$development
17833 if $enable_unittests; then
17835 $as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
17838 CONFIG_OBS
="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
17839 CONFIG_SRCS
="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
17845 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17846 GDB_TRANSFORM_NAME
=`echo gdb | sed -e "$gdb_ac_transform"`
17847 if test "x$GDB_TRANSFORM_NAME" = x
; then
17848 GDB_TRANSFORM_NAME
=gdb
17853 gdb_ac_transform
=`echo "$program_transform_name" | sed -e 's/\\$\\$/\\$/g'`
17854 GCORE_TRANSFORM_NAME
=`echo gcore | sed -e "$gdb_ac_transform"`
17855 if test "x$GCORE_TRANSFORM_NAME" = x
; then
17856 GCORE_TRANSFORM_NAME
=gcore
17860 ac_config_files
="$ac_config_files gcore"
17862 ac_config_files
="$ac_config_files Makefile gdb-gdb.gdb gdb-gdb.py doc/Makefile data-directory/Makefile"
17865 cat >confcache
<<\_ACEOF
17866 # This file is a shell script that caches the results of configure
17867 # tests run on this system so they can be shared between configure
17868 # scripts and configure runs, see configure's option --config-cache.
17869 # It is not useful on other systems. If it contains results you don't
17870 # want to keep, you may remove or edit it.
17872 # config.status only pays attention to the cache file if you give it
17873 # the --recheck option to rerun configure.
17875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17877 # following values.
17881 # The following way of writing the cache mishandles newlines in values,
17882 # but we know of no workaround that is simple, portable, and efficient.
17883 # So, we kill variables containing newlines.
17884 # Ultrix sh set writes to stderr and can't be redirected directly,
17885 # and sets the high bit in the cache file unless we assign to the vars.
17887 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17888 eval ac_val
=\$
$ac_var
17892 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17896 _ | IFS | as_nl
) ;; #(
17897 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
17898 *) { eval $ac_var=; unset $ac_var;} ;;
17904 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17905 *${as_nl}ac_space
=\
*)
17906 # `set' does not quote correctly, so add quotes: double-quote
17907 # substitution turns \\\\ into \\, and sed turns \\ into \.
17910 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17913 # `set' quotes correctly as required by POSIX, so do not add quotes.
17914 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17923 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17925 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17927 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
17928 if test -w "$cache_file"; then
17929 if test "x$cache_file" != "x/dev/null"; then
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17931 $as_echo "$as_me: updating cache $cache_file" >&6;}
17932 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
17933 cat confcache
>"$cache_file"
17935 case $cache_file in #(
17937 mv -f confcache
"$cache_file"$$
&&
17938 mv -f "$cache_file"$$
"$cache_file" ;; #(
17940 mv -f confcache
"$cache_file" ;;
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17946 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17951 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
17952 # Let make expand exec_prefix.
17953 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
17955 DEFS
=-DHAVE_CONFIG_H
17960 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
17961 # 1. Remove the extension, and $U if already installed.
17962 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
17963 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
17964 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17965 # will be set to the directory where LIBOBJS objects are built.
17966 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17967 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
17969 LIBOBJS
=$ac_libobjs
17971 LTLIBOBJS
=$ac_ltlibobjs
17974 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17975 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
17976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17978 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17979 as_fn_error $?
"conditional \"HAVE_PYTHON\" was never defined.
17980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17982 if test -z "${HAVE_GUILE_TRUE}" && test -z "${HAVE_GUILE_FALSE}"; then
17983 as_fn_error $?
"conditional \"HAVE_GUILE\" was never defined.
17984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17988 : "${CONFIG_STATUS=./config.status}"
17990 ac_clean_files_save
=$ac_clean_files
17991 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
17992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17993 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17995 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17997 # Generated by $as_me.
17998 # Run this file to recreate the current configuration.
17999 # Compiler output produced by configure, useful for debugging
18000 # configure, is in config.log if it exists.
18003 ac_cs_recheck=false
18006 SHELL=\${CONFIG_SHELL-$SHELL}
18009 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
18010 ## -------------------- ##
18011 ## M4sh Initialization. ##
18012 ## -------------------- ##
18014 # Be more Bourne compatible
18015 DUALCASE
=1; export DUALCASE
# for MKS sh
18016 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
18019 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18020 # is contrary to our usage. Disable this feature.
18021 alias -g '${1+"$@"}'='"$@"'
18022 setopt NO_GLOB_SUBST
18024 case `(set -o) 2>/dev/null` in #(
18036 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18037 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18038 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18039 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18040 # Prefer a ksh shell builtin over an external printf program on Solaris,
18041 # but without wasting forks for bash or zsh.
18042 if test -z "$BASH_VERSION$ZSH_VERSION" \
18043 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18044 as_echo='print
-r --'
18045 as_echo_n='print
-rn --'
18046 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18047 as_echo='printf %s
\n'
18048 as_echo_n='printf %s
'
18050 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18051 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
18052 as_echo_n='/usr
/ucb
/echo -n'
18054 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18055 as_echo_n_body='eval
18059 expr "X$arg" : "X\\(.*\\)$as_nl";
18060 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18062 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
18064 export as_echo_n_body
18065 as_echo_n='sh
-c $as_echo_n_body as_echo
'
18067 export as_echo_body
18068 as_echo='sh
-c $as_echo_body as_echo
'
18071 # The user is always right.
18072 if test "${PATH_SEPARATOR+set}" != set; then
18074 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18075 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18082 # We need space, tab and new line, in precisely that order. Quoting is
18083 # there to prevent editors from complaining about space-tab.
18084 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18085 # splitting by setting IFS to empty value.)
18088 # Find who we are. Look in the path if we contain no directory separator.
18091 *[\\/]* ) as_myself=$0 ;;
18092 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18093 for as_dir in $PATH
18096 test -z "$as_dir" && as_dir=.
18097 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18103 # We did not find ourselves, most probably we were run as `sh COMMAND'
18104 # in which case we are not to be found in the path.
18105 if test "x$as_myself" = x
; then
18108 if test ! -f "$as_myself"; then
18109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18113 # Unset variables that we do not need and which cause bugs (e.g. in
18114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18115 # suppresses any "Segmentation fault" message there. '((' could
18116 # trigger a bug in pdksh 5.2.14.
18117 for as_var
in BASH_ENV ENV MAIL MAILPATH
18118 do eval test x\
${$as_var+set} = xset \
18119 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18132 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18135 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18136 # ----------------------------------------
18137 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18138 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18139 # script with STATUS, using 1 if that was 0.
18142 as_status
=$1; test $as_status -eq 0 && as_status
=1
18144 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18145 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18147 $as_echo "$as_me: error: $2" >&2
18148 as_fn_exit
$as_status
18152 # as_fn_set_status STATUS
18153 # -----------------------
18154 # Set $? to STATUS, without forking.
18155 as_fn_set_status
()
18158 } # as_fn_set_status
18160 # as_fn_exit STATUS
18161 # -----------------
18162 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18166 as_fn_set_status
$1
18172 # Portably unset VAR.
18175 { eval $1=; unset $1;}
18177 as_unset
=as_fn_unset
18178 # as_fn_append VAR VALUE
18179 # ----------------------
18180 # Append the text in VALUE to the end of the definition contained in VAR. Take
18181 # advantage of any shell optimizations that allow amortized linear growth over
18182 # repeated appends, instead of the typical quadratic growth present in naive
18184 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18185 eval 'as_fn_append ()
18196 # as_fn_arith ARG...
18197 # ------------------
18198 # Perform arithmetic evaluation on the ARGs, and store the result in the
18199 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18200 # must be portable across $(()) and expr.
18201 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18202 eval 'as_fn_arith ()
18209 as_val
=`expr "$@" || test $? -eq 1`
18214 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18215 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18221 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18222 as_basename
=basename
18227 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18233 as_me
=`$as_basename -- "$0" ||
18234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18235 X"$0" : 'X\(//\)$' \| \
18236 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18238 sed '/^.*\/\([^/][^/]*\)\/*$/{
18252 # Avoid depending upon Character Ranges.
18253 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18254 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18255 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18256 as_cr_digits
='0123456789'
18257 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18259 ECHO_C
= ECHO_N
= ECHO_T
=
18260 case `echo -n x` in #(((((
18262 case `echo 'xy\c'` in
18263 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18265 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18272 rm -f conf$$ conf$$.exe conf$$.
file
18273 if test -d conf$$.dir
; then
18274 rm -f conf$$.dir
/conf$$.
file
18277 mkdir conf$$.dir
2>/dev
/null
18279 if (echo >conf$$.
file) 2>/dev
/null
; then
18280 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18282 # ... but there are two gotchas:
18283 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18284 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18285 # In both cases, we have to default to `cp -pR'.
18286 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18288 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18296 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18297 rmdir conf$$.dir
2>/dev
/null
18302 # Create "$as_dir" as a directory, including parents if necessary.
18307 -*) as_dir
=.
/$as_dir;;
18309 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18313 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18314 *) as_qdir
=$as_dir;;
18316 as_dirs
="'$as_qdir' $as_dirs"
18317 as_dir
=`$as_dirname -- "$as_dir" ||
18318 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18319 X"$as_dir" : 'X\(//\)[^/]' \| \
18320 X"$as_dir" : 'X\(//\)$' \| \
18321 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18322 $as_echo X"$as_dir" |
18323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18327 /^X\(\/\/\)[^/].*/{
18340 test -d "$as_dir" && break
18342 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18343 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18347 if mkdir
-p .
2>/dev
/null
; then
18348 as_mkdir_p
='mkdir -p "$as_dir"'
18350 test -d .
/-p && rmdir .
/-p
18355 # as_fn_executable_p FILE
18356 # -----------------------
18357 # Test if FILE is an executable regular file.
18358 as_fn_executable_p
()
18360 test -f "$1" && test -x "$1"
18361 } # as_fn_executable_p
18362 as_test_x
='test -x'
18363 as_executable_p
=as_fn_executable_p
18365 # Sed expression to map a string onto a valid CPP name.
18366 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18368 # Sed expression to map a string onto a valid variable name.
18369 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18373 ## ----------------------------------- ##
18374 ## Main body of $CONFIG_STATUS script. ##
18375 ## ----------------------------------- ##
18377 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18380 # Save the log message, to keep $0 and so on meaningful, and to
18381 # report actual input values of CONFIG_FILES etc. instead of their
18382 # values after options handling.
18384 This file was extended by $as_me, which was
18385 generated by GNU Autoconf 2.69. Invocation command line was
18387 CONFIG_FILES = $CONFIG_FILES
18388 CONFIG_HEADERS = $CONFIG_HEADERS
18389 CONFIG_LINKS = $CONFIG_LINKS
18390 CONFIG_COMMANDS = $CONFIG_COMMANDS
18393 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18398 case $ac_config_files in *"
18399 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18402 case $ac_config_headers in *"
18403 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
18407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18408 # Files that config.status was made for.
18409 config_files="$ac_config_files"
18410 config_headers="$ac_config_headers"
18411 config_links="$ac_config_links"
18412 config_commands="$ac_config_commands"
18416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18418 \`$as_me' instantiates files and other configuration actions
18419 from templates according to the current configuration. Unless the files
18420 and actions are specified as TAGs, all are instantiated by default.
18422 Usage: $0 [OPTION]... [TAG]...
18424 -h, --help print this help, then exit
18425 -V, --version print version number and configuration settings, then exit
18426 --config print configuration, then exit
18427 -q, --quiet, --silent
18428 do not print progress messages
18429 -d, --debug don't remove temporary files
18430 --recheck update $as_me by reconfiguring in the same conditions
18431 --file=FILE[:TEMPLATE]
18432 instantiate the configuration file FILE
18433 --header=FILE[:TEMPLATE]
18434 instantiate the configuration header FILE
18436 Configuration files:
18439 Configuration headers:
18442 Configuration links:
18445 Configuration commands:
18448 Report bugs to the package provider."
18451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18452 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18455 configured by $0, generated by GNU Autoconf 2.69,
18456 with options \\"\$ac_cs_config\\"
18458 Copyright (C) 2012 Free Software Foundation, Inc.
18459 This config.status script is free software; the Free Software Foundation
18460 gives unlimited permission to copy, distribute and modify it."
18466 test -n "\$AWK" || AWK=awk
18469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18470 # The default lists apply if the user does not specify any file.
18476 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18477 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18481 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18493 # Handling of the options.
18494 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18496 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18497 $as_echo "$ac_cs_version"; exit ;;
18498 --config |
--confi |
--conf |
--con |
--co |
--c )
18499 $as_echo "$ac_cs_config"; exit ;;
18500 --debug |
--debu |
--deb |
--de |
--d |
-d )
18502 --file |
--fil |
--fi |
--f )
18505 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18506 '') as_fn_error $?
"missing file argument" ;;
18508 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18509 ac_need_defaults
=false
;;
18510 --header |
--heade |
--head |
--hea )
18513 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18515 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
18516 ac_need_defaults
=false
;;
18518 # Conflict between --help and --header
18519 as_fn_error $?
"ambiguous option: \`$1'
18520 Try \`$0 --help' for more information.";;
18521 --help |
--hel |
-h )
18522 $as_echo "$ac_cs_usage"; exit ;;
18523 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18524 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18527 # This is an error.
18528 -*) as_fn_error $?
"unrecognized option: \`$1'
18529 Try \`$0 --help' for more information." ;;
18531 *) as_fn_append ac_config_targets
" $1"
18532 ac_need_defaults
=false
;;
18538 ac_configure_extra_args
=
18540 if $ac_cs_silent; then
18542 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18547 if \$ac_cs_recheck; then
18548 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18550 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18551 CONFIG_SHELL='$SHELL'
18552 export CONFIG_SHELL
18557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18561 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18562 ## Running $as_me. ##
18568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18572 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
18576 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18578 # Handling of arguments.
18579 for ac_config_target
in $ac_config_targets
18581 case $ac_config_target in
18582 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
18583 "depdir") CONFIG_COMMANDS
="$CONFIG_COMMANDS depdir" ;;
18584 "jit-reader.h") CONFIG_FILES
="$CONFIG_FILES jit-reader.h:jit-reader.in" ;;
18585 "$ac_config_links_1") CONFIG_LINKS
="$CONFIG_LINKS $ac_config_links_1" ;;
18586 "gcore") CONFIG_FILES
="$CONFIG_FILES gcore" ;;
18587 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18588 "gdb-gdb.gdb") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.gdb" ;;
18589 "gdb-gdb.py") CONFIG_FILES
="$CONFIG_FILES gdb-gdb.py" ;;
18590 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
18591 "data-directory/Makefile") CONFIG_FILES
="$CONFIG_FILES data-directory/Makefile" ;;
18593 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18598 # If the user did not use the arguments to specify the items to instantiate,
18599 # then the envvar interface is used. Set only those that are not.
18600 # We use the long form for the default assignment because of an extremely
18601 # bizarre bug on SunOS 4.1.3.
18602 if $ac_need_defaults; then
18603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
18605 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
18606 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
18609 # Have a temporary directory for convenience. Make it in the build tree
18610 # simply because there is no reason against having it here, and in addition,
18611 # creating and moving files from /tmp can sometimes cause problems.
18612 # Hook for its removal unless debugging.
18613 # Note that there is a small window in which the directory will not be cleaned:
18614 # after its creation but before its name has been assigned to `$tmp'.
18618 trap 'exit_status=$?
18619 : "${ac_tmp:=$tmp}"
18620 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18622 trap 'as_fn_exit 1' 1 2 13 15
18624 # Create a (secure) tmp directory for tmp files.
18627 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18631 tmp
=.
/conf$$
-$RANDOM
18632 (umask 077 && mkdir
"$tmp")
18633 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18636 # Set up the scripts for CONFIG_FILES section.
18637 # No need to generate them if there are no CONFIG_FILES.
18638 # This happens for instance with `./config.status config.h'.
18639 if test -n "$CONFIG_FILES"; then
18641 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18642 ac_cs_awk_getline
=:
18643 ac_cs_awk_pipe_init
=
18644 ac_cs_awk_read_file
='
18645 while ((getline aline < (F[key])) > 0)
18648 ac_cs_awk_pipe_fini
=
18650 ac_cs_awk_getline
=false
18651 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18652 ac_cs_awk_read_file
='
18654 print "cat " F[key] " &&"
18655 '$ac_cs_awk_pipe_init
18656 # The final `:' finishes the AND list.
18657 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18659 ac_cr
=`echo X | tr X '\015'`
18660 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18661 # But we know of no other shell where ac_cr would be empty at this
18662 # point, so we can use a bashism as a fallback.
18663 if test "x$ac_cr" = x
; then
18664 eval ac_cr
=\$
\'\\r
\'
18666 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18667 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18670 ac_cs_awk_cr
=$ac_cr
18673 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18676 # Create commands to substitute file output variables.
18678 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18679 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18680 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18683 } >conf$
$files.sh
&&
18684 . .
/conf$
$files.sh ||
18685 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18686 rm -f conf$
$files.sh
18689 echo "cat >conf$$subs.awk <<_ACEOF" &&
18690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18692 } >conf$$subs.sh ||
18693 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18694 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18696 for ac_last_try in false false false false false :; do
18697 . ./conf$$subs.sh ||
18698 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18700 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18701 if test $ac_delim_n = $ac_delim_num; then
18703 elif $ac_last_try; then
18704 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18706 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18709 rm -f conf$$subs.sh
18711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18712 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18716 s/^/S["/; s
/!.
*/"]=/
18726 s/\(.\{148\}\)..*/\1/
18728 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18733 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18740 s/\(.\{148\}\)..*/\1/
18742 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18746 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18751 ' <conf$$subs.awk | sed '
18756 ' >>$CONFIG_STATUS || ac_write_fail=1
18757 rm -f conf$$subs.awk
18758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18760 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18761 for (key in S) S_is_set[key] = 1
18763 \$ac_cs_awk_pipe_init
18767 nfields = split(line, field, "@
")
18769 len = length(field[1])
18770 for (i = 2; i < nfields; i++) {
18772 keylen = length(key)
18773 if (S_is_set[key]) {
18775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18776 len += length(value) + length(field[++i])
18781 if (nfields == 3 && !substed) {
18783 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18784 \$ac_cs_awk_read_file
18790 \$ac_cs_awk_pipe_fini
18793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18794 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18795 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18798 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18799 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18802 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18803 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18804 # trailing colons and then remove the whole line if VPATH becomes empty
18805 # (actually we leave an empty line to preserve line numbers).
18806 if test "x
$srcdir" = x.; then
18807 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18826 fi # test -n "$CONFIG_FILES"
18828 # Set up the scripts for CONFIG_HEADERS section.
18829 # No need to generate them if there are no CONFIG_HEADERS.
18830 # This happens for instance with `./config.status Makefile'.
18831 if test -n "$CONFIG_HEADERS"; then
18832 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
18836 # Transform confdefs.h into an awk script `defines.awk', embedded as
18837 # here-document in config.status, that substitutes the proper values into
18838 # config.h.in to produce config.h.
18840 # Create a delimiter string that does not exist in confdefs.h, to ease
18841 # handling of long lines.
18843 for ac_last_try in false false :; do
18844 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
18845 if test -z "$ac_tt"; then
18847 elif $ac_last_try; then
18848 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
18850 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18854 # For the awk script, D is an array of macro values keyed by name,
18855 # likewise P contains macro parameters if any. Preserve backslash
18856 # newline sequences.
18858 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18860 s/.\{148\}/&'"$ac_delim"'/g
18863 s/^[ ]*#[ ]*define[ ][ ]*/ /
18870 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
18872 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
18876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
18877 D["\
1"]=" \
3\\\\\\n
"\\/p
18879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
18884 s/.\{148\}/&'"$ac_delim"'/g
18889 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
18892 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
18894 ' <confdefs.h | sed '
18895 s/'"$ac_delim"'/"\\\
18896 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18899 for (key in D) D_is_set[key] = 1
18902 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18904 split(line, arg, " ")
18905 if (arg[1] == "#") {
18909 defundef
= substr
(arg
[1], 2)
18912 split(mac1
, mac2
, "(") #)
18914 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
18915 if (D_is_set
[macro
]) {
18916 # Preserve the white space surrounding the "#".
18917 print prefix
"define", macro P
[macro
] D
[macro
]
18920 # Replace #undef with comments. This is necessary, for example,
18921 # in the case of _POSIX_SOURCE, which is predefined and required
18922 # on some systems where configure will not decide to define it.
18923 if (defundef
== "undef") {
18924 print
"/*", prefix defundef
, macro
, "*/"
18932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18933 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
18934 fi # test -n "$CONFIG_HEADERS"
18937 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18942 :[FHLC
]) ac_mode
=$ac_tag; continue;;
18944 case $ac_mode$ac_tag in
18946 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
18947 :[FH
]-) ac_tag
=-:-;;
18948 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
18965 -) ac_f
="$ac_tmp/stdin";;
18966 *) # Look for the file first in the build tree, then in the source tree
18967 # (if the path is not absolute). The absolute path cannot be DOS-style,
18968 # because $ac_f cannot contain `:'.
18972 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
18974 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18976 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18977 as_fn_append ac_file_inputs
" '$ac_f'"
18980 # Let's still pretend it is `configure' which instantiates (i.e., don't
18981 # use $as_me), people would be surprised to read:
18982 # /* config.h. Generated by config.status. */
18983 configure_input
='Generated from '`
18984 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18986 if test x
"$ac_file" != x-
; then
18987 configure_input
="$ac_file. $configure_input"
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18989 $as_echo "$as_me: creating $ac_file" >&6;}
18991 # Neutralize special characters interpreted by sed in replacement strings.
18992 case $configure_input in #(
18993 *\
&* |
*\|
* |
*\\* )
18994 ac_sed_conf_input
=`$as_echo "$configure_input" |
18995 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18996 *) ac_sed_conf_input
=$configure_input;;
19000 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
19001 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
19006 ac_dir
=`$as_dirname -- "$ac_file" ||
19007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19008 X"$ac_file" : 'X\(//\)[^/]' \| \
19009 X"$ac_file" : 'X\(//\)$' \| \
19010 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19011 $as_echo X"$ac_file" |
19012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19016 /^X\(\/\/\)[^/].*/{
19029 as_dir
="$ac_dir"; as_fn_mkdir_p
19033 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19035 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19036 # A ".." for each directory in $ac_dir_suffix.
19037 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19038 case $ac_top_builddir_sub in
19039 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19040 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19043 ac_abs_top_builddir
=$ac_pwd
19044 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19045 # for backward compatibility:
19046 ac_top_builddir
=$ac_top_build_prefix
19049 .
) # We are building in place.
19051 ac_top_srcdir
=$ac_top_builddir_sub
19052 ac_abs_top_srcdir
=$ac_pwd ;;
19053 [\\/]* | ?
:[\\/]* ) # Absolute name.
19054 ac_srcdir
=$srcdir$ac_dir_suffix;
19055 ac_top_srcdir
=$srcdir
19056 ac_abs_top_srcdir
=$srcdir ;;
19057 *) # Relative name.
19058 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19059 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19060 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19062 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19072 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
19073 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
19077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19078 # If the template does not know about datarootdir, expand it.
19079 # FIXME: This hack should be removed a few years after 2.60.
19080 ac_datarootdir_hack
=; ac_datarootdir_seen
=
19091 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19092 *datarootdir
*) ac_datarootdir_seen
=yes;;
19093 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19095 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19098 ac_datarootdir_hack='
19099 s&@datadir@&$datadir&g
19100 s&@docdir@&$docdir&g
19101 s&@infodir@&$infodir&g
19102 s&@localedir@&$localedir&g
19103 s&@mandir@&$mandir&g
19104 s&\\\${datarootdir}&$datarootdir&g' ;;
19108 # Neutralize VPATH when `$srcdir' = `.'.
19109 # Shell code in configure.ac might set extrasub.
19110 # FIXME: do we really want to maintain this feature?
19111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19112 ac_sed_extra="$ac_vpsub
19115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19117 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19118 s|@configure_input@|
$ac_sed_conf_input|
;t t
19119 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19120 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19121 s
&@srcdir@
&$ac_srcdir&;t t
19122 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19123 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19124 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19125 s
&@builddir@
&$ac_builddir&;t t
19126 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19127 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19128 s
&@INSTALL@
&$ac_INSTALL&;t t
19129 $ac_datarootdir_hack
19131 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19132 if $ac_cs_awk_getline; then
19133 $AWK -f "$ac_tmp/subs.
awk"
19135 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19137 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19139 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19140 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19141 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19142 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19144 which seems to be undefined. Please make sure it is defined" >&5
19145 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19146 which seems to be undefined. Please make sure it is defined" >&2;}
19148 rm -f "$ac_tmp/stdin"
19150 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19151 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19159 if test x"$ac_file" != x-; then
19161 $as_echo "/* $configure_input */" \
19162 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19163 } >"$ac_tmp/config.h" \
19164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19165 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19167 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19170 mv "$ac_tmp/config.h" "$ac_file" \
19171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19174 $as_echo "/* $configure_input */" \
19175 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19176 || as_fn_error $? "could not create -" "$LINENO" 5
19184 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.
'; then
19187 # Prefer the file from the source tree if names are identical.
19188 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
19189 ac_source=$srcdir/$ac_source
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
19193 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
19195 if test ! -r "$ac_source"; then
19196 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
19200 # Try a relative symlink, then a hard link, then a copy.
19202 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
19203 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
19205 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
19206 ln "$ac_source" "$ac_file" 2>/dev/null ||
19207 cp -p "$ac_source" "$ac_file" ||
19208 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
19211 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19212 $as_echo "$as_me: executing $ac_file commands" >&6;}
19217 case $ac_file$ac_mode in
19218 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
19219 "gcore":F) chmod +x gcore ;;
19221 case x$CONFIG_HEADERS in
19222 xconfig.h:config.in)
19227 case x$CONFIG_HEADERS in
19228 xconfig.h:config.in)
19233 case x$CONFIG_HEADERS in
19234 xconfig.h:config.in)
19239 case x$CONFIG_HEADERS in
19240 xconfig.h:config.in)
19244 "data-directory/Makefile":F)
19245 case x$CONFIG_HEADERS in
19246 xconfig.h:config.in)
19257 ac_clean_files=$ac_clean_files_save
19259 test $ac_write_fail = 0 ||
19260 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19263 # configure is writing to config.log, and then calls config.status.
19264 # config.status does its own redirection, appending to config.log.
19265 # Unfortunately, on DOS this fails, as config.log is still kept open
19266 # by configure, so config.status won't be able to
write to it
; its
19267 # output is simply discarded. So we exec the FD to /dev/null,
19268 # effectively closing config.log, so it can be properly (re)opened and
19269 # appended to by config.status. When coming back to configure, we
19270 # need to make the FD available again.
19271 if test "$no_create" != yes; then
19273 ac_config_status_args
=
19274 test "$silent" = yes &&
19275 ac_config_status_args
="$ac_config_status_args --quiet"
19277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19280 # would make configure fail if this is the last instruction.
19281 $ac_cs_success || as_fn_exit
1
19285 # CONFIG_SUBDIRS section.
19287 if test "$no_recursion" != yes; then
19289 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
19290 # so they do not pile up.
19291 ac_sub_configure_args
=
19293 eval "set x $ac_configure_args"
19297 if test -n "$ac_prev"; then
19302 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
19303 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
19304 ac_prev
=cache_file
;;
19305 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
19306 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
19309 --config-cache |
-C)
19311 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
19313 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
19315 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
19317 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
19319 --disable-option-checking)
19323 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19325 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
19329 # Always prepend --prefix to ensure using the same prefix
19330 # in subdir configurations.
19331 ac_arg
="--prefix=$prefix"
19333 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19335 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
19338 if test "$silent" = yes; then
19339 ac_sub_configure_args
="--silent $ac_sub_configure_args"
19342 # Always prepend --disable-option-checking to silence warnings, since
19343 # different subdirs can have different --enable and --with options.
19344 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
19347 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
19349 # Do not complain, so a configure script can configure whichever
19350 # parts of a large source tree are present.
19351 test -d "$srcdir/$ac_dir" ||
continue
19353 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19354 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
19355 $as_echo "$ac_msg" >&6
19356 as_dir
="$ac_dir"; as_fn_mkdir_p
19360 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19362 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19363 # A ".." for each directory in $ac_dir_suffix.
19364 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19365 case $ac_top_builddir_sub in
19366 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
19367 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
19370 ac_abs_top_builddir
=$ac_pwd
19371 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
19372 # for backward compatibility:
19373 ac_top_builddir
=$ac_top_build_prefix
19376 .
) # We are building in place.
19378 ac_top_srcdir
=$ac_top_builddir_sub
19379 ac_abs_top_srcdir
=$ac_pwd ;;
19380 [\\/]* | ?
:[\\/]* ) # Absolute name.
19381 ac_srcdir
=$srcdir$ac_dir_suffix;
19382 ac_top_srcdir
=$srcdir
19383 ac_abs_top_srcdir
=$srcdir ;;
19384 *) # Relative name.
19385 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
19386 ac_top_srcdir
=$ac_top_build_prefix$srcdir
19387 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
19389 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
19394 # Check for guested configure; otherwise get Cygnus style configure.
19395 if test -f "$ac_srcdir/configure.gnu"; then
19396 ac_sub_configure
=$ac_srcdir/configure.gnu
19397 elif test -f "$ac_srcdir/configure"; then
19398 ac_sub_configure
=$ac_srcdir/configure
19399 elif test -f "$ac_srcdir/configure.in"; then
19400 # This should be Cygnus configure.
19401 ac_sub_configure
=$ac_aux_dir/configure
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
19404 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19408 # The recursion is here.
19409 if test -n "$ac_sub_configure"; then
19410 # Make the cache file name correct relative to the subdirectory.
19411 case $cache_file in
19412 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
19413 *) # Relative name.
19414 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
19417 { $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
19418 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19419 # The eval makes quoting arguments work.
19420 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
19421 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
19422 as_fn_error $?
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
19428 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19430 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}